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 loose_warn cxx_compat_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI 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_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 despite compiler version
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
,df
,fold,gc
,gcac
,misc
,
871 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
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={no,yes,bid,dpd}
883 enable decimal float extension to C. Selecting 'bid
'
884 or 'dpd
' choses which decimal floating point format
886 --enable-fixed-point enable fixed-point arithmetic extension to C
887 --enable-threads enable thread usage for target GCC
888 --enable-threads=LIB use LIB thread package for target GCC
889 --enable-tls enable or disable generation of tls code
890 overriding the assembler check for tls support
891 --enable-objc-gc enable the use of Boehm's garbage collector with
892 the GNU Objective-C runtime
893 --disable-shared don
't provide a shared libgcc
894 --enable-intermodule build the compiler in one step
895 --enable-languages=LIST specify which front-ends to build
896 --disable-rpath do not hardcode runtime library paths
897 --enable-initfini-array use .init_array/.fini_array sections
898 --enable-sjlj-exceptions
899 arrange to use setjmp/longjmp exception handling
900 --enable-secureplt enable -msecure-plt by default for PowerPC
901 --disable-win32-registry
902 disable lookup of installation paths in the
903 Registry on Windows hosts
904 --enable-win32-registry enable registry lookup (default)
905 --enable-win32-registry=KEY
906 use KEY instead of GCC version as the last portion
908 --enable-maintainer-mode
909 enable make rules and dependencies not useful
910 (and sometimes confusing) to the casual installer
911 --enable-version-specific-runtime-libs
912 specify that runtime libraries should be
913 installed in a compiler-specific directory
916 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
917 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
918 --with-build-libsubdir=DIR Directory where to find libraries for build system
919 --with-local-prefix=DIR specifies directory to put local include
920 --with-gxx-include-dir=DIR
921 specifies directory to put g++ header files
922 --with-cpp-install-dir=DIR
923 install the user visible C preprocessor in DIR
924 (relative to PREFIX) as well as PREFIX/bin
925 --with-gnu-ld arrange to work with GNU ld.
926 --with-ld arrange to use the specified ld (full pathname)
927 --with-demangler-in-ld try to use demangler in GNU ld.
928 --with-gnu-as arrange to work with GNU as
929 --with-as arrange to use the specified as (full pathname)
930 --with-stabs arrange to use stabs instead of host debug format
931 --with-dwarf2 force the default debug format to be DWARF 2
932 --with-build-sysroot=sysroot
933 use sysroot as the system root during the build
934 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
935 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
936 --with-bugurl=URL Direct users to URL to report a bug
937 --with-gnu-ld assume the C compiler uses GNU ld default=no
938 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
939 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
940 --with-system-libunwind use installed libunwind
941 --with-long-double-128 Use
128-bit long double by default.
942 --with-gc={page
,zone
} choose the garbage collection mechanism to use
944 --with-system-zlib use installed libz
945 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
946 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
947 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
948 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
950 Some influential environment variables
:
951 CC C compiler
command
952 CFLAGS C compiler flags
953 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
954 nonstandard directory
<lib dir
>
955 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
956 headers
in a nonstandard directory
<include dir
>
958 GMPLIBS How to link GMP
959 GMPINC How to
find GMP include files
961 Use these variables to override the choices made by
`configure' or to help
962 it to find libraries and programs with nonstandard names/locations.
967 if test "$ac_init_help" = "recursive"; then
968 # If there are subdirs, report their specific --help.
970 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
971 test -d $ac_dir || continue
974 if test "$ac_dir" != .; then
975 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
976 # A "../" for each directory in $ac_dir_suffix.
977 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
979 ac_dir_suffix= ac_top_builddir=
983 .) # No --srcdir option. We are building in place.
985 if test -z "$ac_top_builddir"; then
988 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
990 [\\/]* | ?:[\\/]* ) # Absolute path.
991 ac_srcdir=$srcdir$ac_dir_suffix;
992 ac_top_srcdir=$srcdir ;;
994 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
995 ac_top_srcdir=$ac_top_builddir$srcdir ;;
998 # Do not use `cd foo
&& pwd` to compute absolute paths, because
999 # the directories may not exist.
1001 .) ac_abs_builddir="$ac_dir";;
1004 .) ac_abs_builddir=`pwd`;;
1005 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1006 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1009 case $ac_abs_builddir in
1010 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1012 case ${ac_top_builddir}. in
1013 .) ac_abs_top_builddir=$ac_abs_builddir;;
1014 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1015 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1018 case $ac_abs_builddir in
1019 .) ac_abs_srcdir=$ac_srcdir;;
1022 .) ac_abs_srcdir=$ac_abs_builddir;;
1023 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1024 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1027 case $ac_abs_builddir in
1028 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1030 case $ac_top_srcdir in
1031 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1032 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1033 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1038 # Check for guested configure; otherwise get Cygnus style configure.
1039 if test -f $ac_srcdir/configure.gnu; then
1041 $SHELL $ac_srcdir/configure.gnu --help=recursive
1042 elif test -f $ac_srcdir/configure; then
1044 $SHELL $ac_srcdir/configure --help=recursive
1045 elif test -f $ac_srcdir/configure.ac ||
1046 test -f $ac_srcdir/configure.in; then
1048 $ac_configure --help
1050 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1056 test -n "$ac_init_help" && exit 0
1057 if $ac_init_version; then
1060 Copyright (C) 2003 Free Software Foundation, Inc.
1061 This configure script is free software; the Free Software Foundation
1062 gives unlimited permission to copy, distribute and modify it.
1068 This file contains any messages produced by compilers while
1069 running configure, to aid debugging if configure makes a mistake.
1071 It was created by $as_me, which was
1072 generated by GNU Autoconf 2.59. Invocation command line was
1083 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1084 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1085 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1086 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1087 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1089 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1090 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1092 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1093 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1094 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1095 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1096 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1097 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1098 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1106 test -z "$as_dir" && as_dir=.
1107 echo "PATH: $as_dir"
1122 # Keep a trace of the command line.
1123 # Strip out --no-create and --no-recursion so they do not pile up.
1124 # Strip out --silent because we don't want to record it for future runs.
1125 # Also quote any args containing shell meta-characters.
1126 # Make two passes to allow for proper duplicate-argument suppression.
1131 ac_must_keep_next=false
1137 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1141 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1142 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1145 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1147 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1148 if test $ac_must_keep_next = true; then
1149 ac_must_keep_next=false # Got value, back to normal.
1152 *=* | --config-cache | -C | -disable-* | --disable-* \
1153 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1154 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1155 | -with-* | --with-* | -without-* | --without-* | --x)
1156 case "$ac_configure_args0 " in
1157 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1160 -* ) ac_must_keep_next=true ;;
1163 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1164 # Get rid of the leading space.
1170 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1171 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1173 # When interrupted or exit'd, cleanup temporary files, and complete
1174 # config.log. We remove comments because anyway the quotes in there
1175 # would cause problems or look ugly.
1176 # WARNING: Be sure not to use single quotes in there, as some shells,
1177 # such as our DU 5.0 friend, will then `close
' the trap.
1178 trap 'exit_status
=$?
1179 # Save into config.log some information that might help in debugging.
1184 ## ---------------- ##
1185 ## Cache variables. ##
1186 ## ---------------- ##
1189 # The following way of writing the cache mishandles newlines in values,
1192 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1195 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1200 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1207 ## ----------------- ##
1208 ## Output variables. ##
1209 ## ----------------- ##
1212 for ac_var
in $ac_subst_vars
1214 eval ac_val
=$
`echo $ac_var`
1215 echo "$ac_var='"'"'$ac_val'"'"'"
1219 if test -n "$ac_subst_files"; then
1226 for ac_var
in $ac_subst_files
1228 eval ac_val
=$
`echo $ac_var`
1229 echo "$ac_var='"'"'$ac_val'"'"'"
1234 if test -s confdefs.h
; then
1241 sed "/^$/d" confdefs.h |
sort
1244 test "$ac_signal" != 0 &&
1245 echo "$as_me: caught signal $ac_signal"
1246 echo "$as_me: exit $exit_status"
1248 rm -f core
*.core
&&
1249 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1252 for ac_signal in 1 2 13 15; do
1253 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1257 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1258 rm -rf conftest* confdefs.h
1259 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1262 # Predefined preprocessor variables.
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_NAME "$PACKAGE_NAME"
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_STRING "$PACKAGE_STRING"
1284 cat >>confdefs.h <<_ACEOF
1285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1289 # Let the site file select an alternate cache file if it wants to.
1290 # Prefer explicitly selected file to automatically selected ones.
1291 if test -z "$CONFIG_SITE"; then
1292 if test "x$prefix" != xNONE; then
1293 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1295 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1298 for ac_site_file in $CONFIG_SITE; do
1299 if test -r "$ac_site_file"; then
1300 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1301 echo "$as_me: loading site script $ac_site_file" >&6;}
1302 sed 's
/^
/|
/' "$ac_site_file" >&5
1307 if test -r "$cache_file"; then
1308 # Some versions of bash will fail to source /dev/null (special
1309 # files actually), so we avoid doing that.
1310 if test -f "$cache_file"; then
1311 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1312 echo "$as_me: loading cache $cache_file" >&6;}
1314 [\\/]* | ?:[\\/]* ) . $cache_file;;
1315 *) . ./$cache_file;;
1319 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1320 echo "$as_me: creating cache $cache_file" >&6;}
1324 # Check that the precious variables saved in the cache have kept the same
1326 ac_cache_corrupted=false
1327 for ac_var in `(set) 2>&1 |
1328 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1329 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1330 eval ac_new_set=\$ac_env_${ac_var}_set
1331 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1332 eval ac_new_val="\$ac_env_${ac_var}_value"
1333 case $ac_old_set,$ac_new_set in
1335 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1336 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1337 ac_cache_corrupted=: ;;
1339 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1340 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1341 ac_cache_corrupted=: ;;
1344 if test "x$ac_old_val" != "x$ac_new_val"; then
1345 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1346 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1347 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1348 echo "$as_me: former value: $ac_old_val" >&2;}
1349 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1350 echo "$as_me: current value: $ac_new_val" >&2;}
1351 ac_cache_corrupted=:
1354 # Pass precious variables to config.status.
1355 if test "$ac_new_set" = set; then
1357 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1358 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1359 *) ac_arg=$ac_var=$ac_new_val ;;
1361 case " $ac_configure_args " in
1362 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1363 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1367 if $ac_cache_corrupted; then
1368 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1369 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1370 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1371 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1372 { (exit 1); exit 1; }; }
1376 ac_cpp='$CPP $CPPFLAGS'
1377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1378 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1400 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1403 gcc_version=`cat $srcdir/BASE-VER`
1405 # Determine the host, build, and target systems
1407 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1408 if test -f $ac_dir/install-sh; then
1410 ac_install_sh="$ac_aux_dir/install-sh -c"
1412 elif test -f $ac_dir/install.sh; then
1414 ac_install_sh="$ac_aux_dir/install.sh -c"
1416 elif test -f $ac_dir/shtool; then
1418 ac_install_sh="$ac_aux_dir/shtool install -c"
1422 if test -z "$ac_aux_dir"; then
1423 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1424 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1425 { (exit 1); exit 1; }; }
1427 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1428 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1429 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1431 # Make sure we can run config.sub.
1432 $ac_config_sub sun4 >/dev/null 2>&1 ||
1433 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1434 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1435 { (exit 1); exit 1; }; }
1437 echo "$as_me:$LINENO: checking build system type" >&5
1438 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1439 if test "${ac_cv_build+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 ac_cv_build_alias=$build_alias
1443 test -z "$ac_cv_build_alias" &&
1444 ac_cv_build_alias=`$ac_config_guess`
1445 test -z "$ac_cv_build_alias" &&
1446 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1447 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1448 { (exit 1); exit 1; }; }
1449 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1450 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1451 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1452 { (exit 1); exit 1; }; }
1455 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1456 echo "${ECHO_T}$ac_cv_build" >&6
1458 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1459 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1460 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1463 echo "$as_me:$LINENO: checking host system type" >&5
1464 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1465 if test "${ac_cv_host+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 ac_cv_host_alias=$host_alias
1469 test -z "$ac_cv_host_alias" &&
1470 ac_cv_host_alias=$ac_cv_build_alias
1471 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1472 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1473 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1474 { (exit 1); exit 1; }; }
1477 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1478 echo "${ECHO_T}$ac_cv_host" >&6
1480 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1481 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1482 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1485 echo "$as_me:$LINENO: checking target system type" >&5
1486 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1487 if test "${ac_cv_target+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 ac_cv_target_alias=$target_alias
1491 test "x$ac_cv_target_alias" = "x" &&
1492 ac_cv_target_alias=$ac_cv_host_alias
1493 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1494 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1495 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1496 { (exit 1); exit 1; }; }
1499 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1500 echo "${ECHO_T}$ac_cv_target" >&6
1501 target=$ac_cv_target
1502 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1503 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1504 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1507 # The aliases save the names the user supplied, while $host etc.
1508 # will get canonicalized.
1509 test -n "$target_alias" &&
1510 test "$program_prefix$program_suffix$program_transform_name" = \
1512 program_prefix=${target_alias}-
1514 # Determine the noncanonical target name, for directory use.
1515 case ${build_alias} in
1516 "") build_noncanonical=${build} ;;
1517 *) build_noncanonical=${build_alias} ;;
1520 case ${host_alias} in
1521 "") host_noncanonical=${build_noncanonical} ;;
1522 *) host_noncanonical=${host_alias} ;;
1525 case ${target_alias} in
1526 "") target_noncanonical=${host_noncanonical} ;;
1527 *) target_noncanonical=${target_alias} ;;
1533 # Determine the target- and build-specific subdirectories
1535 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1536 # have matching libraries, they should use host libraries: Makefile.tpl
1537 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1538 # However, they still use the build modules, because the corresponding
1539 # host modules (e.g. bison) are only built for the host when bootstrap
1541 # - build_subdir is where we find build modules, and never changes.
1542 # - build_libsubdir is where we find build libraries, and can be overridden.
1544 # Prefix 'build-
' so this never conflicts with target_subdir.
1545 build_subdir="build-${build_noncanonical}"
1547 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1548 if test "${with_build_libsubdir+set}" = set; then
1549 withval="$with_build_libsubdir"
1550 build_libsubdir="$withval"
1552 build_libsubdir="$build_subdir"
1554 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1555 if ( test $srcdir = . && test -d gcc ) \
1556 || test -d $srcdir/../host-${host_noncanonical}; then
1557 host_subdir="host-${host_noncanonical}"
1562 target_subdir=${target_noncanonical}
1565 # Set program_transform_name
1566 test "$program_prefix" != NONE &&
1567 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1568 # Use a double $ so make ignores it.
1569 test "$program_suffix" != NONE &&
1570 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1571 # Double any \ or $. echo might interpret backslashes.
1572 # By default was `s,x,x', remove it
if useless.
1573 cat <<\_ACEOF
>conftest.
sed
1574 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1576 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1580 # Check for bogus environment variables.
1581 # Test if LIBRARY_PATH contains the notation for the current directory
1582 # since this would lead to problems installing/building glibc.
1583 # LIBRARY_PATH contains the current directory if one of the following
1585 # - one of the terminals (":" and ";") is the first or last sign
1586 # - two terminals occur directly after each other
1587 # - the path contains an element with a dot in it
1588 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1589 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1590 case ${LIBRARY_PATH} in
1591 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1592 library_path_setting
="contains current directory"
1595 library_path_setting
="ok"
1598 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1599 echo "${ECHO_T}$library_path_setting" >&6
1600 if test "$library_path_setting" != "ok"; then
1601 { { echo "$as_me:$LINENO: error:
1602 *** LIBRARY_PATH shouldn't contain the current directory when
1603 *** building gcc. Please change the environment variable
1604 *** and run configure again." >&5
1605 echo "$as_me: error:
1606 *** LIBRARY_PATH shouldn't contain the current directory when
1607 *** building gcc. Please change the environment variable
1608 *** and run configure again." >&2;}
1609 { (exit 1); exit 1; }; }
1612 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1613 # since this would lead to problems installing/building glibc.
1614 # GCC_EXEC_PREFIX contains the current directory if one of the following
1616 # - one of the terminals (":" and ";") is the first or last sign
1617 # - two terminals occur directly after each other
1618 # - the path contains an element with a dot in it
1619 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1620 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1621 case ${GCC_EXEC_PREFIX} in
1622 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1623 gcc_exec_prefix_setting
="contains current directory"
1626 gcc_exec_prefix_setting
="ok"
1629 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1630 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1631 if test "$gcc_exec_prefix_setting" != "ok"; then
1632 { { echo "$as_me:$LINENO: error:
1633 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1634 *** building gcc. Please change the environment variable
1635 *** and run configure again." >&5
1636 echo "$as_me: error:
1637 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1638 *** building gcc. Please change the environment variable
1639 *** and run configure again." >&2;}
1640 { (exit 1); exit 1; }; }
1647 # Specify the local prefix
1650 # Check whether --with-local-prefix or --without-local-prefix was given.
1651 if test "${with_local_prefix+set}" = set; then
1652 withval
="$with_local_prefix"
1653 case "${withval}" in
1654 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1655 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1656 { (exit 1); exit 1; }; } ;;
1658 *) local_prefix
=$with_local_prefix ;;
1662 # Default local prefix if it is empty
1663 if test x
$local_prefix = x
; then
1664 local_prefix
=/usr
/local
1667 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1668 # passed in by the toplevel make and thus we'd get different behavior
1669 # depending on where we built the sources.
1670 gcc_gxx_include_dir
=
1671 # Specify the g++ header file directory
1673 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1674 if test "${with_gxx_include_dir+set}" = set; then
1675 withval
="$with_gxx_include_dir"
1676 case "${withval}" in
1677 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1678 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1679 { (exit 1); exit 1; }; } ;;
1681 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1685 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1686 if test x
${gcc_gxx_include_dir} = x
; then
1687 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1688 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1690 libstdcxx_incdir
='include/c++/$(version)'
1691 if test x
$host != x
$target; then
1692 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1694 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1699 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1700 if test "${with_cpp_install_dir+set}" = set; then
1701 withval
="$with_cpp_install_dir"
1702 if test x
$withval = xyes
; then
1703 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1704 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1705 { (exit 1); exit 1; }; }
1706 elif test x
$withval != xno
; then
1707 cpp_install_dir
=$withval
1711 # We would like to our source tree to be readonly. However when releases or
1712 # pre-releases are generated, the flex/bison generated files as well as the
1713 # various formats of manuals need to be included along with the rest of the
1714 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1717 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1718 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1719 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1720 if test "${enable_generated_files_in_srcdir+set}" = set; then
1721 enableval
="$enable_generated_files_in_srcdir"
1722 generated_files_in_srcdir
=$enableval
1724 generated_files_in_srcdir
=no
1727 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1728 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1730 if test "$generated_files_in_srcdir" = "yes"; then
1737 # -------------------
1738 # Find default linker
1739 # -------------------
1743 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1744 if test "${with_gnu_ld+set}" = set; then
1745 withval
="$with_gnu_ld"
1746 gnu_ld_flag
="$with_gnu_ld"
1751 # With pre-defined ld
1753 # Check whether --with-ld or --without-ld was given.
1754 if test "${with_ld+set}" = set; then
1756 DEFAULT_LINKER
="$with_ld"
1758 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1759 if test ! -x "$DEFAULT_LINKER"; then
1760 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1761 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1762 { (exit 1); exit 1; }; }
1763 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1767 cat >>confdefs.h
<<_ACEOF
1768 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1773 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1775 cat >>confdefs.h
<<_ACEOF
1776 #define HAVE_GNU_LD $gnu_ld
1780 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1781 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1782 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1783 if test x
"$gnu_ld_flag" = x
"no"; then
1784 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1785 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1787 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1788 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1795 # With demangler in GNU ld
1797 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1798 if test "${with_demangler_in_ld+set}" = set; then
1799 withval
="$with_demangler_in_ld"
1800 demangler_in_ld
="$with_demangler_in_ld"
1805 # ----------------------
1806 # Find default assembler
1807 # ----------------------
1811 # Check whether --with-gnu-as or --without-gnu-as was given.
1812 if test "${with_gnu_as+set}" = set; then
1813 withval
="$with_gnu_as"
1814 gas_flag
="$with_gnu_as"
1820 # Check whether --with-as or --without-as was given.
1821 if test "${with_as+set}" = set; then
1823 DEFAULT_ASSEMBLER
="$with_as"
1825 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1826 if test ! -x "$DEFAULT_ASSEMBLER"; then
1827 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1828 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1829 { (exit 1); exit 1; }; }
1830 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1834 cat >>confdefs.h
<<_ACEOF
1835 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1840 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
1842 cat >>confdefs.h
<<_ACEOF
1843 #define HAVE_GNU_AS $gnu_as
1847 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1848 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1849 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1850 if test x
"$gas_flag" = x
"no"; then
1851 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1852 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1854 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1855 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1866 # If a non-executable a.out is present (e.g. created by GNU as above even if
1867 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1868 # file, even when creating an executable, so an execution test fails.
1869 # Remove possible default executable files to avoid this.
1871 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1872 # Autoconf includes it.
1873 rm -f a.out a.exe b.out
1875 # Find the native compiler
1877 ac_cpp
='$CPP $CPPFLAGS'
1878 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1881 if test -n "$ac_tool_prefix"; then
1882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1883 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_CC+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC
="$CC" # Let the user override the test.
1892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir
=.
1897 for ac_exec_ext
in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 if test -n "$CC"; then
1910 echo "$as_me:$LINENO: result: $CC" >&5
1911 echo "${ECHO_T}$CC" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1918 if test -z "$ac_cv_prog_CC"; then
1920 # Extract the first word of "gcc", so it can be a program name with args.
1921 set dummy gcc
; ac_word
=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 if test -n "$ac_ct_CC"; then
1928 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1934 test -z "$as_dir" && as_dir
=.
1935 for ac_exec_ext
in '' $ac_executable_extensions; do
1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_ac_ct_CC
="gcc"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1947 if test -n "$ac_ct_CC"; then
1948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1949 echo "${ECHO_T}$ac_ct_CC" >&6
1951 echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1960 if test -z "$CC"; then
1961 if test -n "$ac_tool_prefix"; then
1962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1963 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test -n "$CC"; then
1970 ac_cv_prog_CC
="$CC" # Let the user override the test.
1972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir
=.
1977 for ac_exec_ext
in '' $ac_executable_extensions; do
1978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 if test -n "$CC"; then
1990 echo "$as_me:$LINENO: result: $CC" >&5
1991 echo "${ECHO_T}$CC" >&6
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1998 if test -z "$ac_cv_prog_CC"; then
2000 # Extract the first word of "cc", so it can be a program name with args.
2001 set dummy cc
; ac_word
=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 if test -n "$ac_ct_CC"; then
2008 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2014 test -z "$as_dir" && as_dir
=.
2015 for ac_exec_ext
in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_ac_ct_CC
="cc"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2027 if test -n "$ac_ct_CC"; then
2028 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2029 echo "${ECHO_T}$ac_ct_CC" >&6
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2041 if test -z "$CC"; then
2042 # Extract the first word of "cc", so it can be a program name with args.
2043 set dummy cc
; ac_word
=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_CC+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 if test -n "$CC"; then
2050 ac_cv_prog_CC
="$CC" # Let the user override the test.
2053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir
=.
2058 for ac_exec_ext
in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2061 ac_prog_rejected
=yes
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 if test $ac_prog_rejected = yes; then
2072 # We found a bogon in the path, so make sure we never use it.
2073 set dummy
$ac_cv_prog_CC
2075 if test $# != 0; then
2076 # We chose a different compiler from the bogus one.
2077 # However, it has the same basename, so the bogon will be chosen
2078 # first if we set CC to just the basename; use the full file name.
2080 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2086 if test -n "$CC"; then
2087 echo "$as_me:$LINENO: result: $CC" >&5
2088 echo "${ECHO_T}$CC" >&6
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2095 if test -z "$CC"; then
2096 if test -n "$ac_tool_prefix"; then
2099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2100 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2101 echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103 if test "${ac_cv_prog_CC+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 if test -n "$CC"; then
2107 ac_cv_prog_CC
="$CC" # Let the user override the test.
2109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2113 test -z "$as_dir" && as_dir
=.
2114 for ac_exec_ext
in '' $ac_executable_extensions; do
2115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126 if test -n "$CC"; then
2127 echo "$as_me:$LINENO: result: $CC" >&5
2128 echo "${ECHO_T}$CC" >&6
2130 echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2134 test -n "$CC" && break
2137 if test -z "$CC"; then
2141 # Extract the first word of "$ac_prog", so it can be a program name with args.
2142 set dummy
$ac_prog; ac_word
=$2
2143 echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 if test -n "$ac_ct_CC"; then
2149 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir
=.
2156 for ac_exec_ext
in '' $ac_executable_extensions; do
2157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2158 ac_cv_prog_ac_ct_CC
="$ac_prog"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2168 if test -n "$ac_ct_CC"; then
2169 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2170 echo "${ECHO_T}$ac_ct_CC" >&6
2172 echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6
2176 test -n "$ac_ct_CC" && break
2185 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: no acceptable C compiler found in \$PATH
2188 See \`config.log' for more details." >&2;}
2189 { (exit 1); exit 1; }; }
2191 # Provide some information about the compiler.
2192 echo "$as_me:$LINENO:" \
2193 "checking for C compiler version" >&5
2194 ac_compiler
=`set X $ac_compile; echo $2`
2195 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2196 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2201 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }
2205 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2206 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }
2211 cat >conftest.
$ac_ext <<_ACEOF
2214 cat confdefs.h
>>conftest.
$ac_ext
2215 cat >>conftest.
$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2226 ac_clean_files_save
=$ac_clean_files
2227 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2228 # Try to create an executable without -o first, disregard a.out.
2229 # It will help us diagnose broken compilers, and finding out an intuition
2231 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2232 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2233 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2234 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2235 (eval $ac_link_default) 2>&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; then
2239 # Find the output, starting from the most likely. This scheme is
2240 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2243 # Be careful to initialize this variable, since it used to be cached.
2244 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2246 # b.out is created by i960 compilers.
2247 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2249 test -f "$ac_file" ||
continue
2251 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2254 # This is the source file.
2257 # We found the default executable, but exeext='' is most
2261 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2262 # FIXME: I believe we export ac_cv_exeext for Libtool,
2263 # but it would be cool to find out if it's true. Does anybody
2264 # maintain Libtool? --akim.
2272 echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.
$ac_ext >&5
2275 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: C compiler cannot create executables
2278 See \`config.log' for more details." >&2;}
2279 { (exit 77); exit 77; }; }
2282 ac_exeext
=$ac_cv_exeext
2283 echo "$as_me:$LINENO: result: $ac_file" >&5
2284 echo "${ECHO_T}$ac_file" >&6
2286 # Check the compiler produces executables we can run. If not, either
2287 # the compiler is broken, or we cross compile.
2288 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2289 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2290 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2291 # If not cross compiling, check that we can run a simple program.
2292 if test "$cross_compiling" != yes; then
2293 if { ac_try
='./$ac_file'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; }; then
2301 if test "$cross_compiling" = maybe
; then
2304 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2305 If you meant to cross compile, use \`--host'.
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: cannot run C compiled programs.
2308 If you meant to cross compile, use \`--host'.
2309 See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2314 echo "$as_me:$LINENO: result: yes" >&5
2315 echo "${ECHO_T}yes" >&6
2317 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2318 ac_clean_files
=$ac_clean_files_save
2319 # Check the compiler produces executables we can run. If not, either
2320 # the compiler is broken, or we cross compile.
2321 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2322 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2323 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2324 echo "${ECHO_T}$cross_compiling" >&6
2326 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2327 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2329 (eval $ac_link) 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; then
2333 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2334 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2335 # work properly (i.e., refer to `conftest.exe'), while it won't with
2337 for ac_file
in conftest.exe conftest conftest.
*; do
2338 test -f "$ac_file" ||
continue
2340 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2341 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2348 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2351 See \`config.log' for more details." >&2;}
2352 { (exit 1); exit 1; }; }
2355 rm -f conftest
$ac_cv_exeext
2356 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2357 echo "${ECHO_T}$ac_cv_exeext" >&6
2359 rm -f conftest.
$ac_ext
2360 EXEEXT
=$ac_cv_exeext
2362 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2363 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2364 if test "${ac_cv_objext+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 cat >conftest.
$ac_ext <<_ACEOF
2370 cat confdefs.h
>>conftest.
$ac_ext
2371 cat >>conftest.
$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2382 rm -f conftest.o conftest.obj
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; then
2388 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2390 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2391 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2396 echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.
$ac_ext >&5
2399 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2400 See \`config.log' for more details." >&5
2401 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2402 See \`config.log' for more details." >&2;}
2403 { (exit 1); exit 1; }; }
2406 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2408 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2409 echo "${ECHO_T}$ac_cv_objext" >&6
2410 OBJEXT
=$ac_cv_objext
2412 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2413 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2414 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 cat >conftest.
$ac_ext <<_ACEOF
2420 cat confdefs.h
>>conftest.
$ac_ext
2421 cat >>conftest.
$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2435 rm -f conftest.
$ac_objext
2436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437 (eval $ac_compile) 2>conftest.er1
2439 grep -v '^ *+' conftest.er1
>conftest.err
2441 cat conftest.err
>&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } &&
2444 { ac_try
='test -z "$ac_c_werror_flag"
2445 || test ! -s conftest.err'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; } &&
2451 { ac_try
='test -s conftest.$ac_objext'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.
$ac_ext >&5
2464 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2465 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2468 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2469 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2470 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2471 ac_test_CFLAGS
=${CFLAGS+set}
2472 ac_save_CFLAGS
=$CFLAGS
2474 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2475 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2476 if test "${ac_cv_prog_cc_g+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 cat >conftest.
$ac_ext <<_ACEOF
2482 cat confdefs.h
>>conftest.
$ac_ext
2483 cat >>conftest.
$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2494 rm -f conftest.
$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>conftest.er1
2498 grep -v '^ *+' conftest.er1
>conftest.err
2500 cat conftest.err
>&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try
='test -z "$ac_c_werror_flag"
2504 || test ! -s conftest.err'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; } &&
2510 { ac_try
='test -s conftest.$ac_objext'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.
$ac_ext >&5
2523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2525 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2526 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2527 if test "$ac_test_CFLAGS" = set; then
2528 CFLAGS
=$ac_save_CFLAGS
2529 elif test $ac_cv_prog_cc_g = yes; then
2530 if test "$GCC" = yes; then
2536 if test "$GCC" = yes; then
2542 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2543 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2544 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 ac_cv_prog_cc_stdc
=no
2549 cat >conftest.
$ac_ext <<_ACEOF
2552 cat confdefs.h
>>conftest.
$ac_ext
2553 cat >>conftest.
$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2557 #include <sys/types.h>
2558 #include <sys/stat.h>
2559 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2560 struct buf { int x; };
2561 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2562 static char *e (p, i)
2568 static char *f (char * (*g) (char **, int), char **p, ...)
2573 s = g (p, va_arg (v,int));
2578 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2579 function prototypes and stuff, but not '\xHH' hex character constants.
2580 These don't provoke an error unfortunately, instead are silently treated
2581 as 'x'. The following induces an error, until -std1 is added to get
2582 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2583 array size at least. It's necessary to write '\x00'==0 to get something
2584 that's true only with -std1. */
2585 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2587 int test (int i, double x);
2588 struct s1 {int (*f) (int a);};
2589 struct s2 {int (*f) (double a);};
2590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2596 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2601 # Don't try gcc -ansi; that turns off useful extensions and
2602 # breaks some systems' header files.
2603 # AIX -qlanglvl=ansi
2604 # Ultrix and OSF/1 -std1
2605 # HP-UX 10.20 and later -Ae
2606 # HP-UX older versions -Aa -D_HPUX_SOURCE
2607 # SVR4 -Xc -D__EXTENSIONS__
2608 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2610 CC
="$ac_save_CC $ac_arg"
2611 rm -f conftest.
$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>conftest.er1
2615 grep -v '^ *+' conftest.er1
>conftest.err
2617 cat conftest.err
>&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try
='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try
='test -s conftest.$ac_objext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2633 ac_cv_prog_cc_stdc
=$ac_arg
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.
$ac_ext >&5
2640 rm -f conftest.err conftest.
$ac_objext
2642 rm -f conftest.
$ac_ext conftest.
$ac_objext
2647 case "x$ac_cv_prog_cc_stdc" in
2649 echo "$as_me:$LINENO: result: none needed" >&5
2650 echo "${ECHO_T}none needed" >&6 ;;
2652 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2654 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2657 # Some people use a C++ compiler to compile C. Since we use `exit',
2658 # in C++ we need to declare it. In case someone uses the same compiler
2659 # for both compiling C and C++ we need to have the C++ compiler decide
2660 # the declaration of exit, since it's the most demanding environment.
2661 cat >conftest.
$ac_ext <<_ACEOF
2666 rm -f conftest.
$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2670 grep -v '^ *+' conftest.er1
>conftest.err
2672 cat conftest.err
>&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try
='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try
='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 for ac_declaration
in \
2690 'extern "C" void std::exit (int) throw (); using std::exit;' \
2691 'extern "C" void std::exit (int); using std::exit;' \
2692 'extern "C" void exit (int) throw ();' \
2693 'extern "C" void exit (int);' \
2696 cat >conftest.
$ac_ext <<_ACEOF
2699 cat confdefs.h
>>conftest.
$ac_ext
2700 cat >>conftest.
$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2712 rm -f conftest.
$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>conftest.er1
2716 grep -v '^ *+' conftest.er1
>conftest.err
2718 cat conftest.err
>&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try
='test -z "$ac_c_werror_flag"
2722 || test ! -s conftest.err'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try
='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.
$ac_ext >&5
2741 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2742 cat >conftest.
$ac_ext <<_ACEOF
2745 cat confdefs.h
>>conftest.
$ac_ext
2746 cat >>conftest.
$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2757 rm -f conftest.
$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>conftest.er1
2761 grep -v '^ *+' conftest.er1
>conftest.err
2763 cat conftest.err
>&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try
='test -z "$ac_c_werror_flag"
2767 || test ! -s conftest.err'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; } &&
2773 { ac_try
='test -s conftest.$ac_objext'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; }; then
2781 echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.
$ac_ext >&5
2785 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2788 if test -n "$ac_declaration"; then
2789 echo '#ifdef __cplusplus' >>confdefs.h
2790 echo $ac_declaration >>confdefs.h
2791 echo '#endif' >>confdefs.h
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.
$ac_ext >&5
2799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2801 ac_cpp
='$CPP $CPPFLAGS'
2802 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2806 if test "x$CC" != xcc
; then
2807 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2808 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2810 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2811 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2813 set dummy
$CC; ac_cc
=`echo $2 |
2814 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2815 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 cat >conftest.
$ac_ext <<_ACEOF
2821 cat confdefs.h
>>conftest.
$ac_ext
2822 cat >>conftest.
$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2833 # Make sure it works both with $CC and with simple cc.
2834 # We do the test twice because some compilers refuse to overwrite an
2835 # existing .o file with -o, though they will create one.
2836 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2837 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); };
2848 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2849 if test "x$CC" != xcc
; then
2850 # Test first that cc exists at all.
2851 if { ac_try
='cc -c conftest.$ac_ext >&5'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2858 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); };
2872 # cc exists but doesn't like -o.
2873 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2878 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2883 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2884 echo "$as_me:$LINENO: result: yes" >&5
2885 echo "${ECHO_T}yes" >&6
2887 echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6
2890 cat >>confdefs.h
<<\_ACEOF
2891 #define NO_MINUS_C_MINUS_O 1
2896 # expand $ac_aux_dir to an absolute path
2897 am_aux_dir
=`cd $ac_aux_dir && pwd`
2899 # FIXME: we rely on the cache variable name because
2900 # there is no other way.
2902 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2904 # Losing compiler, so override with the script.
2905 # FIXME: It is wrong to rewrite CC.
2906 # But if we don't then we get into trouble of one sort or another.
2907 # A longer-term fix would be to have automake use am__CC in this case,
2908 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2909 CC
="$am_aux_dir/compile $CC"
2912 # autoconf is lame and doesn't give us any substitution variable for this.
2913 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2914 NO_MINUS_C_MINUS_O
=yes
2916 OUTPUT_OPTION
='-o $@'
2921 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2922 # optimizations to be activated explicitly by the toplevel.
2924 */prev-gcc
/xgcc
*) ;;
2925 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2929 # -------------------------
2930 # Check C compiler features
2931 # -------------------------
2934 ac_cpp
='$CPP $CPPFLAGS'
2935 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2940 # On Suns, sometimes $CPP names a directory.
2941 if test -n "$CPP" && test -d "$CPP"; then
2944 if test -z "$CPP"; then
2945 if test "${ac_cv_prog_CPP+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 # Double quotes because CPP needs to be expanded
2949 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2952 for ac_c_preproc_warn_flag
in '' yes
2954 # Use a header file that comes with gcc, so configuring glibc
2955 # with a fresh cross-compiler works.
2956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2957 # <limits.h> exists even on freestanding compilers.
2958 # On the NeXT, cc -E runs the code through the compiler's parser,
2959 # not just through cpp. "Syntax error" is here to catch this case.
2960 cat >conftest.
$ac_ext <<_ACEOF
2963 cat confdefs.h
>>conftest.
$ac_ext
2964 cat >>conftest.
$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2967 # include <limits.h>
2969 # include <assert.h>
2973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2974 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2976 grep -v '^ *+' conftest.er1
>conftest.err
2978 cat conftest.err
>&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } >/dev
/null
; then
2981 if test -s conftest.err
; then
2982 ac_cpp_err
=$ac_c_preproc_warn_flag
2983 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2990 if test -z "$ac_cpp_err"; then
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.
$ac_ext >&5
2996 # Broken: fails on valid input.
2999 rm -f conftest.err conftest.
$ac_ext
3001 # OK, works on sane cases. Now check whether non-existent headers
3002 # can be detected and how.
3003 cat >conftest.
$ac_ext <<_ACEOF
3006 cat confdefs.h
>>conftest.
$ac_ext
3007 cat >>conftest.
$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3009 #include <ac_nonexistent.h>
3011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3012 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3014 grep -v '^ *+' conftest.er1
>conftest.err
3016 cat conftest.err
>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } >/dev
/null
; then
3019 if test -s conftest.err
; then
3020 ac_cpp_err
=$ac_c_preproc_warn_flag
3021 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3028 if test -z "$ac_cpp_err"; then
3029 # Broken: success on invalid input.
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.
$ac_ext >&5
3035 # Passes both tests.
3039 rm -f conftest.err conftest.
$ac_ext
3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3043 rm -f conftest.err conftest.
$ac_ext
3044 if $ac_preproc_ok; then
3056 echo "$as_me:$LINENO: result: $CPP" >&5
3057 echo "${ECHO_T}$CPP" >&6
3059 for ac_c_preproc_warn_flag
in '' yes
3061 # Use a header file that comes with gcc, so configuring glibc
3062 # with a fresh cross-compiler works.
3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3064 # <limits.h> exists even on freestanding compilers.
3065 # On the NeXT, cc -E runs the code through the compiler's parser,
3066 # not just through cpp. "Syntax error" is here to catch this case.
3067 cat >conftest.
$ac_ext <<_ACEOF
3070 cat confdefs.h
>>conftest.
$ac_ext
3071 cat >>conftest.
$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3074 # include <limits.h>
3076 # include <assert.h>
3080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3081 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3083 grep -v '^ *+' conftest.er1
>conftest.err
3085 cat conftest.err
>&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } >/dev
/null
; then
3088 if test -s conftest.err
; then
3089 ac_cpp_err
=$ac_c_preproc_warn_flag
3090 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3097 if test -z "$ac_cpp_err"; then
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.
$ac_ext >&5
3103 # Broken: fails on valid input.
3106 rm -f conftest.err conftest.
$ac_ext
3108 # OK, works on sane cases. Now check whether non-existent headers
3109 # can be detected and how.
3110 cat >conftest.
$ac_ext <<_ACEOF
3113 cat confdefs.h
>>conftest.
$ac_ext
3114 cat >>conftest.
$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 #include <ac_nonexistent.h>
3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3119 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3121 grep -v '^ *+' conftest.er1
>conftest.err
3123 cat conftest.err
>&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } >/dev
/null
; then
3126 if test -s conftest.err
; then
3127 ac_cpp_err
=$ac_c_preproc_warn_flag
3128 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3135 if test -z "$ac_cpp_err"; then
3136 # Broken: success on invalid input.
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.
$ac_ext >&5
3142 # Passes both tests.
3146 rm -f conftest.err conftest.
$ac_ext
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.
$ac_ext
3151 if $ac_preproc_ok; then
3154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." >&2;}
3158 { (exit 1); exit 1; }; }
3162 ac_cpp
='$CPP $CPPFLAGS'
3163 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3168 echo "$as_me:$LINENO: checking for inline" >&5
3169 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3170 if test "${ac_cv_c_inline+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 for ac_kw
in inline __inline__ __inline
; do
3175 cat >conftest.
$ac_ext <<_ACEOF
3178 cat confdefs.h
>>conftest.
$ac_ext
3179 cat >>conftest.
$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3183 static $ac_kw foo_t static_foo () {return 0; }
3184 $ac_kw foo_t foo () {return 0; }
3188 rm -f conftest.
$ac_objext
3189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190 (eval $ac_compile) 2>conftest.er1
3192 grep -v '^ *+' conftest.er1
>conftest.err
3194 cat conftest.err
>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try
='test -z "$ac_c_werror_flag"
3198 || test ! -s conftest.err'
3199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try
='test -s conftest.$ac_objext'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3210 ac_cv_c_inline
=$ac_kw; break
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.
$ac_ext >&5
3216 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3220 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3221 echo "${ECHO_T}$ac_cv_c_inline" >&6
3224 case $ac_cv_c_inline in
3227 case $ac_cv_c_inline in
3229 *) ac_val
=$ac_cv_c_inline;;
3231 cat >>confdefs.h
<<_ACEOF
3233 #define inline $ac_val
3240 # sizeof(char) is 1 by definition.
3242 echo "$as_me:$LINENO: checking for egrep" >&5
3243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3244 if test "${ac_cv_prog_egrep+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3248 then ac_cv_prog_egrep
='grep -E'
3249 else ac_cv_prog_egrep
='egrep'
3252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3254 EGREP
=$ac_cv_prog_egrep
3257 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3258 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3259 if test "${ac_cv_header_stdc+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 cat >conftest.
$ac_ext <<_ACEOF
3265 cat confdefs.h
>>conftest.
$ac_ext
3266 cat >>conftest.
$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3281 rm -f conftest.
$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>conftest.er1
3285 grep -v '^ *+' conftest.er1
>conftest.err
3287 cat conftest.err
>&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try
='test -z "$ac_c_werror_flag"
3291 || test ! -s conftest.err'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try
='test -s conftest.$ac_objext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 ac_cv_header_stdc
=yes
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.
$ac_ext >&5
3308 ac_cv_header_stdc
=no
3310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3312 if test $ac_cv_header_stdc = yes; then
3313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3314 cat >conftest.
$ac_ext <<_ACEOF
3317 cat confdefs.h
>>conftest.
$ac_ext
3318 cat >>conftest.
$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3324 $EGREP "memchr" >/dev
/null
2>&1; then
3327 ac_cv_header_stdc
=no
3333 if test $ac_cv_header_stdc = yes; then
3334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3335 cat >conftest.
$ac_ext <<_ACEOF
3338 cat confdefs.h
>>conftest.
$ac_ext
3339 cat >>conftest.
$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3345 $EGREP "free" >/dev
/null
2>&1; then
3348 ac_cv_header_stdc
=no
3354 if test $ac_cv_header_stdc = yes; then
3355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3356 if test "$cross_compiling" = yes; then
3359 cat >conftest.
$ac_ext <<_ACEOF
3362 cat confdefs.h
>>conftest.
$ac_ext
3363 cat >>conftest.
$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3366 #if ((' ' & 0x0FF) == 0x020)
3367 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3368 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3370 # define ISLOWER(c) \
3371 (('a' <= (c) && (c) <= 'i') \
3372 || ('j' <= (c) && (c) <= 'r') \
3373 || ('s' <= (c) && (c) <= 'z'))
3374 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3377 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3382 for (i = 0; i < 256; i++)
3383 if (XOR (islower (i), ISLOWER (i))
3384 || toupper (i) != TOUPPER (i))
3389 rm -f conftest
$ac_exeext
3390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3391 (eval $ac_link) 2>&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3402 echo "$as_me: program exited with status $ac_status" >&5
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.
$ac_ext >&5
3407 ac_cv_header_stdc
=no
3409 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3413 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3414 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3415 if test $ac_cv_header_stdc = yes; then
3417 cat >>confdefs.h
<<\_ACEOF
3418 #define STDC_HEADERS 1
3423 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3433 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3434 inttypes.h stdint.h unistd.h
3436 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3437 echo "$as_me:$LINENO: checking for $ac_header" >&5
3438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 cat >conftest.
$ac_ext <<_ACEOF
3445 cat confdefs.h
>>conftest.
$ac_ext
3446 cat >>conftest.
$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3448 $ac_includes_default
3450 #include <$ac_header>
3452 rm -f conftest.
$ac_objext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454 (eval $ac_compile) 2>conftest.er1
3456 grep -v '^ *+' conftest.er1
>conftest.err
3458 cat conftest.err
>&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } &&
3461 { ac_try
='test -z "$ac_c_werror_flag"
3462 || test ! -s conftest.err'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; } &&
3468 { ac_try
='test -s conftest.$ac_objext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 eval "$as_ac_Header=yes"
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.
$ac_ext >&5
3479 eval "$as_ac_Header=no"
3481 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3486 cat >>confdefs.h
<<_ACEOF
3487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3495 echo "$as_me:$LINENO: checking for void *" >&5
3496 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3497 if test "${ac_cv_type_void_p+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 cat >conftest.
$ac_ext <<_ACEOF
3503 cat confdefs.h
>>conftest.
$ac_ext
3504 cat >>conftest.
$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 $ac_includes_default
3512 if (sizeof (void *))
3518 rm -f conftest.
$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>conftest.er1
3522 grep -v '^ *+' conftest.er1
>conftest.err
3524 cat conftest.err
>&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try
='test -z "$ac_c_werror_flag"
3528 || test ! -s conftest.err'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try
='test -s conftest.$ac_objext'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 ac_cv_type_void_p
=yes
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.
$ac_ext >&5
3545 ac_cv_type_void_p
=no
3547 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3549 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3550 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3552 echo "$as_me:$LINENO: checking size of void *" >&5
3553 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3554 if test "${ac_cv_sizeof_void_p+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 if test "$ac_cv_type_void_p" = yes; then
3558 # The cast to unsigned long works around a bug in the HP C Compiler
3559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3561 # This bug is HP SR number 8606223364.
3562 if test "$cross_compiling" = yes; then
3563 # Depending upon the size, compute the lo and hi bounds.
3564 cat >conftest.
$ac_ext <<_ACEOF
3567 cat confdefs.h
>>conftest.
$ac_ext
3568 cat >>conftest.
$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570 $ac_includes_default
3574 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3581 rm -f conftest.
$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>conftest.er1
3585 grep -v '^ *+' conftest.er1
>conftest.err
3587 cat conftest.err
>&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try
='test -z "$ac_c_werror_flag"
3591 || test ! -s conftest.err'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; } &&
3597 { ac_try
='test -s conftest.$ac_objext'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3605 cat >conftest.
$ac_ext <<_ACEOF
3608 cat confdefs.h
>>conftest.
$ac_ext
3609 cat >>conftest.
$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 $ac_includes_default
3615 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3622 rm -f conftest.
$ac_objext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>conftest.er1
3626 grep -v '^ *+' conftest.er1
>conftest.err
3628 cat conftest.err
>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try
='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try
='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 ac_hi
=$ac_mid; break
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.
$ac_ext >&5
3649 ac_lo
=`expr $ac_mid + 1`
3650 if test $ac_lo -le $ac_mid; then
3654 ac_mid
=`expr 2 '*' $ac_mid + 1`
3656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.
$ac_ext >&5
3662 cat >conftest.
$ac_ext <<_ACEOF
3665 cat confdefs.h
>>conftest.
$ac_ext
3666 cat >>conftest.
$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3668 $ac_includes_default
3672 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3679 rm -f conftest.
$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3683 grep -v '^ *+' conftest.er1
>conftest.err
3685 cat conftest.err
>&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try
='test -z "$ac_c_werror_flag"
3689 || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try
='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3703 cat >conftest.
$ac_ext <<_ACEOF
3706 cat confdefs.h
>>conftest.
$ac_ext
3707 cat >>conftest.
$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3709 $ac_includes_default
3713 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3720 rm -f conftest.
$ac_objext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3722 (eval $ac_compile) 2>conftest.er1
3724 grep -v '^ *+' conftest.er1
>conftest.err
3726 cat conftest.err
>&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try
='test -z "$ac_c_werror_flag"
3730 || test ! -s conftest.err'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; } &&
3736 { ac_try
='test -s conftest.$ac_objext'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3742 ac_lo
=$ac_mid; break
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.
$ac_ext >&5
3747 ac_hi
=`expr '(' $ac_mid ')' - 1`
3748 if test $ac_mid -le $ac_hi; then
3752 ac_mid
=`expr 2 '*' $ac_mid`
3754 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.
$ac_ext >&5
3762 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3764 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3765 # Binary search between lo and hi bounds.
3766 while test "x$ac_lo" != "x$ac_hi"; do
3767 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3768 cat >conftest.
$ac_ext <<_ACEOF
3771 cat confdefs.h
>>conftest.
$ac_ext
3772 cat >>conftest.
$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 $ac_includes_default
3778 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3785 rm -f conftest.
$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>conftest.er1
3789 grep -v '^ *+' conftest.er1
>conftest.err
3791 cat conftest.err
>&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try
='test -z "$ac_c_werror_flag"
3795 || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try
='test -s conftest.$ac_objext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.
$ac_ext >&5
3812 ac_lo
=`expr '(' $ac_mid ')' + 1`
3814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3817 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3818 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3819 See \`config.log' for more details." >&5
3820 echo "$as_me: error: cannot compute sizeof (void *), 77
3821 See \`config.log' for more details." >&2;}
3822 { (exit 1); exit 1; }; } ;;
3825 if test "$cross_compiling" = yes; then
3826 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3827 See \`config.log' for more details." >&5
3828 echo "$as_me: error: cannot run test program while cross compiling
3829 See \`config.log' for more details." >&2;}
3830 { (exit 1); exit 1; }; }
3832 cat >conftest.
$ac_ext <<_ACEOF
3835 cat confdefs.h
>>conftest.
$ac_ext
3836 cat >>conftest.
$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 $ac_includes_default
3839 long longval () { return (long) (sizeof (void *)); }
3840 unsigned long ulongval () { return (long) (sizeof (void *)); }
3847 FILE *f = fopen ("conftest.val", "w");
3850 if (((long) (sizeof (void *))) < 0)
3852 long i = longval ();
3853 if (i != ((long) (sizeof (void *))))
3855 fprintf (f, "%ld\n", i);
3859 unsigned long i = ulongval ();
3860 if (i != ((long) (sizeof (void *))))
3862 fprintf (f, "%lu\n", i);
3864 exit (ferror (f) || fclose (f) != 0);
3870 rm -f conftest
$ac_exeext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3872 (eval $ac_link) 2>&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_cv_sizeof_void_p
=`cat conftest.val`
3883 echo "$as_me: program exited with status $ac_status" >&5
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.
$ac_ext >&5
3888 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3889 See \`config.log' for more details." >&5
3890 echo "$as_me: error: cannot compute sizeof (void *), 77
3891 See \`config.log' for more details." >&2;}
3892 { (exit 1); exit 1; }; }
3894 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3899 ac_cv_sizeof_void_p
=0
3902 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3903 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3904 cat >>confdefs.h
<<_ACEOF
3905 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3909 echo "$as_me:$LINENO: checking for short" >&5
3910 echo $ECHO_N "checking for short... $ECHO_C" >&6
3911 if test "${ac_cv_type_short+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 cat >conftest.
$ac_ext <<_ACEOF
3917 cat confdefs.h
>>conftest.
$ac_ext
3918 cat >>conftest.
$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 $ac_includes_default
3932 rm -f conftest.
$ac_objext
3933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3934 (eval $ac_compile) 2>conftest.er1
3936 grep -v '^ *+' conftest.er1
>conftest.err
3938 cat conftest.err
>&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try
='test -z "$ac_c_werror_flag"
3942 || test ! -s conftest.err'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try
='test -s conftest.$ac_objext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 ac_cv_type_short
=yes
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.
$ac_ext >&5
3961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3963 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3964 echo "${ECHO_T}$ac_cv_type_short" >&6
3966 echo "$as_me:$LINENO: checking size of short" >&5
3967 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3968 if test "${ac_cv_sizeof_short+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 if test "$ac_cv_type_short" = yes; then
3972 # The cast to unsigned long works around a bug in the HP C Compiler
3973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3975 # This bug is HP SR number 8606223364.
3976 if test "$cross_compiling" = yes; then
3977 # Depending upon the size, compute the lo and hi bounds.
3978 cat >conftest.
$ac_ext <<_ACEOF
3981 cat confdefs.h
>>conftest.
$ac_ext
3982 cat >>conftest.
$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 $ac_includes_default
3988 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3995 rm -f conftest.
$ac_objext
3996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3997 (eval $ac_compile) 2>conftest.er1
3999 grep -v '^ *+' conftest.er1
>conftest.err
4001 cat conftest.err
>&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } &&
4004 { ac_try
='test -z "$ac_c_werror_flag"
4005 || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try
='test -s conftest.$ac_objext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4019 cat >conftest.
$ac_ext <<_ACEOF
4022 cat confdefs.h
>>conftest.
$ac_ext
4023 cat >>conftest.
$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 $ac_includes_default
4029 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4036 rm -f conftest.
$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
4040 grep -v '^ *+' conftest.er1
>conftest.err
4042 cat conftest.err
>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try
='test -z "$ac_c_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try
='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 ac_hi
=$ac_mid; break
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.
$ac_ext >&5
4063 ac_lo
=`expr $ac_mid + 1`
4064 if test $ac_lo -le $ac_mid; then
4068 ac_mid
=`expr 2 '*' $ac_mid + 1`
4070 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.
$ac_ext >&5
4076 cat >conftest.
$ac_ext <<_ACEOF
4079 cat confdefs.h
>>conftest.
$ac_ext
4080 cat >>conftest.
$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 $ac_includes_default
4086 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4093 rm -f conftest.
$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>conftest.er1
4097 grep -v '^ *+' conftest.er1
>conftest.err
4099 cat conftest.err
>&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try
='test -z "$ac_c_werror_flag"
4103 || test ! -s conftest.err'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; } &&
4109 { ac_try
='test -s conftest.$ac_objext'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4117 cat >conftest.
$ac_ext <<_ACEOF
4120 cat confdefs.h
>>conftest.
$ac_ext
4121 cat >>conftest.
$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4123 $ac_includes_default
4127 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4134 rm -f conftest.
$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4138 grep -v '^ *+' conftest.er1
>conftest.err
4140 cat conftest.err
>&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try
='test -z "$ac_c_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try
='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_lo
=$ac_mid; break
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.
$ac_ext >&5
4161 ac_hi
=`expr '(' $ac_mid ')' - 1`
4162 if test $ac_mid -le $ac_hi; then
4166 ac_mid
=`expr 2 '*' $ac_mid`
4168 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.
$ac_ext >&5
4176 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4178 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4179 # Binary search between lo and hi bounds.
4180 while test "x$ac_lo" != "x$ac_hi"; do
4181 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4182 cat >conftest.
$ac_ext <<_ACEOF
4185 cat confdefs.h
>>conftest.
$ac_ext
4186 cat >>conftest.
$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 $ac_includes_default
4192 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4199 rm -f conftest.
$ac_objext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>conftest.er1
4203 grep -v '^ *+' conftest.er1
>conftest.err
4205 cat conftest.err
>&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try
='test -z "$ac_c_werror_flag"
4209 || test ! -s conftest.err'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try
='test -s conftest.$ac_objext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.
$ac_ext >&5
4226 ac_lo
=`expr '(' $ac_mid ')' + 1`
4228 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4231 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4232 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4233 See \`config.log' for more details." >&5
4234 echo "$as_me: error: cannot compute sizeof (short), 77
4235 See \`config.log' for more details." >&2;}
4236 { (exit 1); exit 1; }; } ;;
4239 if test "$cross_compiling" = yes; then
4240 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4241 See \`config.log' for more details." >&5
4242 echo "$as_me: error: cannot run test program while cross compiling
4243 See \`config.log' for more details." >&2;}
4244 { (exit 1); exit 1; }; }
4246 cat >conftest.
$ac_ext <<_ACEOF
4249 cat confdefs.h
>>conftest.
$ac_ext
4250 cat >>conftest.
$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 $ac_includes_default
4253 long longval () { return (long) (sizeof (short)); }
4254 unsigned long ulongval () { return (long) (sizeof (short)); }
4261 FILE *f = fopen ("conftest.val", "w");
4264 if (((long) (sizeof (short))) < 0)
4266 long i = longval ();
4267 if (i != ((long) (sizeof (short))))
4269 fprintf (f, "%ld\n", i);
4273 unsigned long i = ulongval ();
4274 if (i != ((long) (sizeof (short))))
4276 fprintf (f, "%lu\n", i);
4278 exit (ferror (f) || fclose (f) != 0);
4284 rm -f conftest
$ac_exeext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4286 (eval $ac_link) 2>&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 ac_cv_sizeof_short
=`cat conftest.val`
4297 echo "$as_me: program exited with status $ac_status" >&5
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.
$ac_ext >&5
4302 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4303 See \`config.log' for more details." >&5
4304 echo "$as_me: error: cannot compute sizeof (short), 77
4305 See \`config.log' for more details." >&2;}
4306 { (exit 1); exit 1; }; }
4308 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4313 ac_cv_sizeof_short
=0
4316 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4317 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4318 cat >>confdefs.h
<<_ACEOF
4319 #define SIZEOF_SHORT $ac_cv_sizeof_short
4323 echo "$as_me:$LINENO: checking for int" >&5
4324 echo $ECHO_N "checking for int... $ECHO_C" >&6
4325 if test "${ac_cv_type_int+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 cat >conftest.
$ac_ext <<_ACEOF
4331 cat confdefs.h
>>conftest.
$ac_ext
4332 cat >>conftest.
$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 $ac_includes_default
4346 rm -f conftest.
$ac_objext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>conftest.er1
4350 grep -v '^ *+' conftest.er1
>conftest.err
4352 cat conftest.err
>&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try
='test -z "$ac_c_werror_flag"
4356 || test ! -s conftest.err'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; } &&
4362 { ac_try
='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.
$ac_ext >&5
4375 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4377 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4378 echo "${ECHO_T}$ac_cv_type_int" >&6
4380 echo "$as_me:$LINENO: checking size of int" >&5
4381 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4382 if test "${ac_cv_sizeof_int+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 if test "$ac_cv_type_int" = yes; then
4386 # The cast to unsigned long works around a bug in the HP C Compiler
4387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4389 # This bug is HP SR number 8606223364.
4390 if test "$cross_compiling" = yes; then
4391 # Depending upon the size, compute the lo and hi bounds.
4392 cat >conftest.
$ac_ext <<_ACEOF
4395 cat confdefs.h
>>conftest.
$ac_ext
4396 cat >>conftest.
$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 $ac_includes_default
4402 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4409 rm -f conftest.
$ac_objext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411 (eval $ac_compile) 2>conftest.er1
4413 grep -v '^ *+' conftest.er1
>conftest.err
4415 cat conftest.err
>&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } &&
4418 { ac_try
='test -z "$ac_c_werror_flag"
4419 || test ! -s conftest.err'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try
='test -s conftest.$ac_objext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4433 cat >conftest.
$ac_ext <<_ACEOF
4436 cat confdefs.h
>>conftest.
$ac_ext
4437 cat >>conftest.
$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 $ac_includes_default
4443 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4450 rm -f conftest.
$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>conftest.er1
4454 grep -v '^ *+' conftest.er1
>conftest.err
4456 cat conftest.err
>&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try
='test -z "$ac_c_werror_flag"
4460 || test ! -s conftest.err'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; } &&
4466 { ac_try
='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 ac_hi
=$ac_mid; break
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.
$ac_ext >&5
4477 ac_lo
=`expr $ac_mid + 1`
4478 if test $ac_lo -le $ac_mid; then
4482 ac_mid
=`expr 2 '*' $ac_mid + 1`
4484 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.
$ac_ext >&5
4490 cat >conftest.
$ac_ext <<_ACEOF
4493 cat confdefs.h
>>conftest.
$ac_ext
4494 cat >>conftest.
$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 $ac_includes_default
4500 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4507 rm -f conftest.
$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4511 grep -v '^ *+' conftest.er1
>conftest.err
4513 cat conftest.err
>&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try
='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try
='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4531 cat >conftest.
$ac_ext <<_ACEOF
4534 cat confdefs.h
>>conftest.
$ac_ext
4535 cat >>conftest.
$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4541 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4548 rm -f conftest.
$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>conftest.er1
4552 grep -v '^ *+' conftest.er1
>conftest.err
4554 cat conftest.err
>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try
='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try
='test -s conftest.$ac_objext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 ac_lo
=$ac_mid; break
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.
$ac_ext >&5
4575 ac_hi
=`expr '(' $ac_mid ')' - 1`
4576 if test $ac_mid -le $ac_hi; then
4580 ac_mid
=`expr 2 '*' $ac_mid`
4582 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.
$ac_ext >&5
4590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4593 # Binary search between lo and hi bounds.
4594 while test "x$ac_lo" != "x$ac_hi"; do
4595 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4596 cat >conftest.
$ac_ext <<_ACEOF
4599 cat confdefs.h
>>conftest.
$ac_ext
4600 cat >>conftest.
$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 $ac_includes_default
4606 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4613 rm -f conftest.
$ac_objext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>conftest.er1
4617 grep -v '^ *+' conftest.er1
>conftest.err
4619 cat conftest.err
>&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try
='test -z "$ac_c_werror_flag"
4623 || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try
='test -s conftest.$ac_objext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.
$ac_ext >&5
4640 ac_lo
=`expr '(' $ac_mid ')' + 1`
4642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4645 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4646 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4647 See \`config.log' for more details." >&5
4648 echo "$as_me: error: cannot compute sizeof (int), 77
4649 See \`config.log' for more details." >&2;}
4650 { (exit 1); exit 1; }; } ;;
4653 if test "$cross_compiling" = yes; then
4654 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4655 See \`config.log' for more details." >&5
4656 echo "$as_me: error: cannot run test program while cross compiling
4657 See \`config.log' for more details." >&2;}
4658 { (exit 1); exit 1; }; }
4660 cat >conftest.
$ac_ext <<_ACEOF
4663 cat confdefs.h
>>conftest.
$ac_ext
4664 cat >>conftest.
$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4667 long longval () { return (long) (sizeof (int)); }
4668 unsigned long ulongval () { return (long) (sizeof (int)); }
4675 FILE *f = fopen ("conftest.val", "w");
4678 if (((long) (sizeof (int))) < 0)
4680 long i = longval ();
4681 if (i != ((long) (sizeof (int))))
4683 fprintf (f, "%ld\n", i);
4687 unsigned long i = ulongval ();
4688 if (i != ((long) (sizeof (int))))
4690 fprintf (f, "%lu\n", i);
4692 exit (ferror (f) || fclose (f) != 0);
4698 rm -f conftest
$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_cv_sizeof_int
=`cat conftest.val`
4711 echo "$as_me: program exited with status $ac_status" >&5
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.
$ac_ext >&5
4716 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4717 See \`config.log' for more details." >&5
4718 echo "$as_me: error: cannot compute sizeof (int), 77
4719 See \`config.log' for more details." >&2;}
4720 { (exit 1); exit 1; }; }
4722 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4730 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4731 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4732 cat >>confdefs.h
<<_ACEOF
4733 #define SIZEOF_INT $ac_cv_sizeof_int
4737 echo "$as_me:$LINENO: checking for long" >&5
4738 echo $ECHO_N "checking for long... $ECHO_C" >&6
4739 if test "${ac_cv_type_long+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 cat >conftest.
$ac_ext <<_ACEOF
4745 cat confdefs.h
>>conftest.
$ac_ext
4746 cat >>conftest.
$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 $ac_includes_default
4760 rm -f conftest.
$ac_objext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762 (eval $ac_compile) 2>conftest.er1
4764 grep -v '^ *+' conftest.er1
>conftest.err
4766 cat conftest.err
>&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try
='test -z "$ac_c_werror_flag"
4770 || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try
='test -s conftest.$ac_objext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.
$ac_ext >&5
4789 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4791 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4792 echo "${ECHO_T}$ac_cv_type_long" >&6
4794 echo "$as_me:$LINENO: checking size of long" >&5
4795 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4796 if test "${ac_cv_sizeof_long+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 if test "$ac_cv_type_long" = yes; then
4800 # The cast to unsigned long works around a bug in the HP C Compiler
4801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4803 # This bug is HP SR number 8606223364.
4804 if test "$cross_compiling" = yes; then
4805 # Depending upon the size, compute the lo and hi bounds.
4806 cat >conftest.
$ac_ext <<_ACEOF
4809 cat confdefs.h
>>conftest.
$ac_ext
4810 cat >>conftest.
$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 $ac_includes_default
4816 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4823 rm -f conftest.
$ac_objext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825 (eval $ac_compile) 2>conftest.er1
4827 grep -v '^ *+' conftest.er1
>conftest.err
4829 cat conftest.err
>&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } &&
4832 { ac_try
='test -z "$ac_c_werror_flag"
4833 || test ! -s conftest.err'
4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; } &&
4839 { ac_try
='test -s conftest.$ac_objext'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4847 cat >conftest.
$ac_ext <<_ACEOF
4850 cat confdefs.h
>>conftest.
$ac_ext
4851 cat >>conftest.
$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 $ac_includes_default
4857 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4864 rm -f conftest.
$ac_objext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866 (eval $ac_compile) 2>conftest.er1
4868 grep -v '^ *+' conftest.er1
>conftest.err
4870 cat conftest.err
>&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try
='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try
='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_hi
=$ac_mid; break
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.
$ac_ext >&5
4891 ac_lo
=`expr $ac_mid + 1`
4892 if test $ac_lo -le $ac_mid; then
4896 ac_mid
=`expr 2 '*' $ac_mid + 1`
4898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.
$ac_ext >&5
4904 cat >conftest.
$ac_ext <<_ACEOF
4907 cat confdefs.h
>>conftest.
$ac_ext
4908 cat >>conftest.
$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 $ac_includes_default
4914 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4921 rm -f conftest.
$ac_objext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923 (eval $ac_compile) 2>conftest.er1
4925 grep -v '^ *+' conftest.er1
>conftest.err
4927 cat conftest.err
>&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } &&
4930 { ac_try
='test -z "$ac_c_werror_flag"
4931 || test ! -s conftest.err'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; } &&
4937 { ac_try
='test -s conftest.$ac_objext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4945 cat >conftest.
$ac_ext <<_ACEOF
4948 cat confdefs.h
>>conftest.
$ac_ext
4949 cat >>conftest.
$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4951 $ac_includes_default
4955 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4962 rm -f conftest.
$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964 (eval $ac_compile) 2>conftest.er1
4966 grep -v '^ *+' conftest.er1
>conftest.err
4968 cat conftest.err
>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try
='test -z "$ac_c_werror_flag"
4972 || test ! -s conftest.err'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; } &&
4978 { ac_try
='test -s conftest.$ac_objext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 ac_lo
=$ac_mid; break
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.
$ac_ext >&5
4989 ac_hi
=`expr '(' $ac_mid ')' - 1`
4990 if test $ac_mid -le $ac_hi; then
4994 ac_mid
=`expr 2 '*' $ac_mid`
4996 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.
$ac_ext >&5
5004 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5007 # Binary search between lo and hi bounds.
5008 while test "x$ac_lo" != "x$ac_hi"; do
5009 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5010 cat >conftest.
$ac_ext <<_ACEOF
5013 cat confdefs.h
>>conftest.
$ac_ext
5014 cat >>conftest.
$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 $ac_includes_default
5020 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5027 rm -f conftest.
$ac_objext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029 (eval $ac_compile) 2>conftest.er1
5031 grep -v '^ *+' conftest.er1
>conftest.err
5033 cat conftest.err
>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try
='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try
='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.
$ac_ext >&5
5054 ac_lo
=`expr '(' $ac_mid ')' + 1`
5056 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5059 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5060 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5061 See \`config.log' for more details." >&5
5062 echo "$as_me: error: cannot compute sizeof (long), 77
5063 See \`config.log' for more details." >&2;}
5064 { (exit 1); exit 1; }; } ;;
5067 if test "$cross_compiling" = yes; then
5068 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5069 See \`config.log' for more details." >&5
5070 echo "$as_me: error: cannot run test program while cross compiling
5071 See \`config.log' for more details." >&2;}
5072 { (exit 1); exit 1; }; }
5074 cat >conftest.
$ac_ext <<_ACEOF
5077 cat confdefs.h
>>conftest.
$ac_ext
5078 cat >>conftest.
$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 $ac_includes_default
5081 long longval () { return (long) (sizeof (long)); }
5082 unsigned long ulongval () { return (long) (sizeof (long)); }
5089 FILE *f = fopen ("conftest.val", "w");
5092 if (((long) (sizeof (long))) < 0)
5094 long i = longval ();
5095 if (i != ((long) (sizeof (long))))
5097 fprintf (f, "%ld\n", i);
5101 unsigned long i = ulongval ();
5102 if (i != ((long) (sizeof (long))))
5104 fprintf (f, "%lu\n", i);
5106 exit (ferror (f) || fclose (f) != 0);
5112 rm -f conftest
$ac_exeext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5114 (eval $ac_link) 2>&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 ac_cv_sizeof_long
=`cat conftest.val`
5125 echo "$as_me: program exited with status $ac_status" >&5
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.
$ac_ext >&5
5130 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5131 See \`config.log' for more details." >&5
5132 echo "$as_me: error: cannot compute sizeof (long), 77
5133 See \`config.log' for more details." >&2;}
5134 { (exit 1); exit 1; }; }
5136 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5144 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5145 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5146 cat >>confdefs.h
<<_ACEOF
5147 #define SIZEOF_LONG $ac_cv_sizeof_long
5151 echo "$as_me:$LINENO: checking for long long" >&5
5152 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5153 if test "${ac_cv_type_long_long+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 cat >conftest.
$ac_ext <<_ACEOF
5159 cat confdefs.h
>>conftest.
$ac_ext
5160 cat >>conftest.
$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 $ac_includes_default
5166 if ((long long *) 0)
5168 if (sizeof (long long))
5174 rm -f conftest.
$ac_objext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176 (eval $ac_compile) 2>conftest.er1
5178 grep -v '^ *+' conftest.er1
>conftest.err
5180 cat conftest.err
>&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try
='test -z "$ac_c_werror_flag"
5184 || test ! -s conftest.err'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try
='test -s conftest.$ac_objext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_type_long_long
=yes
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.
$ac_ext >&5
5201 ac_cv_type_long_long
=no
5203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5205 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5206 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5207 if test $ac_cv_type_long_long = yes; then
5209 cat >>confdefs.h
<<_ACEOF
5210 #define HAVE_LONG_LONG 1
5213 echo "$as_me:$LINENO: checking for long long" >&5
5214 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5215 if test "${ac_cv_type_long_long+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 cat >conftest.
$ac_ext <<_ACEOF
5221 cat confdefs.h
>>conftest.
$ac_ext
5222 cat >>conftest.
$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 $ac_includes_default
5228 if ((long long *) 0)
5230 if (sizeof (long long))
5236 rm -f conftest.
$ac_objext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5238 (eval $ac_compile) 2>conftest.er1
5240 grep -v '^ *+' conftest.er1
>conftest.err
5242 cat conftest.err
>&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try
='test -z "$ac_c_werror_flag"
5246 || test ! -s conftest.err'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; } &&
5252 { ac_try
='test -s conftest.$ac_objext'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 ac_cv_type_long_long
=yes
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.
$ac_ext >&5
5263 ac_cv_type_long_long
=no
5265 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5267 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5268 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5270 echo "$as_me:$LINENO: checking size of long long" >&5
5271 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5272 if test "${ac_cv_sizeof_long_long+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 if test "$ac_cv_type_long_long" = yes; then
5276 # The cast to unsigned long works around a bug in the HP C Compiler
5277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5279 # This bug is HP SR number 8606223364.
5280 if test "$cross_compiling" = yes; then
5281 # Depending upon the size, compute the lo and hi bounds.
5282 cat >conftest.
$ac_ext <<_ACEOF
5285 cat confdefs.h
>>conftest.
$ac_ext
5286 cat >>conftest.
$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288 $ac_includes_default
5292 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5299 rm -f conftest.
$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301 (eval $ac_compile) 2>conftest.er1
5303 grep -v '^ *+' conftest.er1
>conftest.err
5305 cat conftest.err
>&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try
='test -z "$ac_c_werror_flag"
5309 || test ! -s conftest.err'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try
='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5323 cat >conftest.
$ac_ext <<_ACEOF
5326 cat confdefs.h
>>conftest.
$ac_ext
5327 cat >>conftest.
$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5333 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5340 rm -f conftest.
$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>conftest.er1
5344 grep -v '^ *+' conftest.er1
>conftest.err
5346 cat conftest.err
>&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try
='test -z "$ac_c_werror_flag"
5350 || test ! -s conftest.err'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; } &&
5356 { ac_try
='test -s conftest.$ac_objext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 ac_hi
=$ac_mid; break
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.
$ac_ext >&5
5367 ac_lo
=`expr $ac_mid + 1`
5368 if test $ac_lo -le $ac_mid; then
5372 ac_mid
=`expr 2 '*' $ac_mid + 1`
5374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.
$ac_ext >&5
5380 cat >conftest.
$ac_ext <<_ACEOF
5383 cat confdefs.h
>>conftest.
$ac_ext
5384 cat >>conftest.
$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 $ac_includes_default
5390 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5397 rm -f conftest.
$ac_objext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399 (eval $ac_compile) 2>conftest.er1
5401 grep -v '^ *+' conftest.er1
>conftest.err
5403 cat conftest.err
>&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try
='test -z "$ac_c_werror_flag"
5407 || test ! -s conftest.err'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; } &&
5413 { ac_try
='test -s conftest.$ac_objext'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; }; then
5421 cat >conftest.
$ac_ext <<_ACEOF
5424 cat confdefs.h
>>conftest.
$ac_ext
5425 cat >>conftest.
$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 $ac_includes_default
5431 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5438 rm -f conftest.
$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5442 grep -v '^ *+' conftest.er1
>conftest.err
5444 cat conftest.err
>&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try
='test -z "$ac_c_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try
='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 ac_lo
=$ac_mid; break
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.
$ac_ext >&5
5465 ac_hi
=`expr '(' $ac_mid ')' - 1`
5466 if test $ac_mid -le $ac_hi; then
5470 ac_mid
=`expr 2 '*' $ac_mid`
5472 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.
$ac_ext >&5
5480 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5482 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5483 # Binary search between lo and hi bounds.
5484 while test "x$ac_lo" != "x$ac_hi"; do
5485 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5486 cat >conftest.
$ac_ext <<_ACEOF
5489 cat confdefs.h
>>conftest.
$ac_ext
5490 cat >>conftest.
$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 $ac_includes_default
5496 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5503 rm -f conftest.
$ac_objext
5504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505 (eval $ac_compile) 2>conftest.er1
5507 grep -v '^ *+' conftest.er1
>conftest.err
5509 cat conftest.err
>&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try
='test -z "$ac_c_werror_flag"
5513 || test ! -s conftest.err'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; } &&
5519 { ac_try
='test -s conftest.$ac_objext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.
$ac_ext >&5
5530 ac_lo
=`expr '(' $ac_mid ')' + 1`
5532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5535 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5536 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5537 See \`config.log' for more details." >&5
5538 echo "$as_me: error: cannot compute sizeof (long long), 77
5539 See \`config.log' for more details." >&2;}
5540 { (exit 1); exit 1; }; } ;;
5543 if test "$cross_compiling" = yes; then
5544 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5545 See \`config.log' for more details." >&5
5546 echo "$as_me: error: cannot run test program while cross compiling
5547 See \`config.log' for more details." >&2;}
5548 { (exit 1); exit 1; }; }
5550 cat >conftest.
$ac_ext <<_ACEOF
5553 cat confdefs.h
>>conftest.
$ac_ext
5554 cat >>conftest.
$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 $ac_includes_default
5557 long longval () { return (long) (sizeof (long long)); }
5558 unsigned long ulongval () { return (long) (sizeof (long long)); }
5565 FILE *f = fopen ("conftest.val", "w");
5568 if (((long) (sizeof (long long))) < 0)
5570 long i = longval ();
5571 if (i != ((long) (sizeof (long long))))
5573 fprintf (f, "%ld\n", i);
5577 unsigned long i = ulongval ();
5578 if (i != ((long) (sizeof (long long))))
5580 fprintf (f, "%lu\n", i);
5582 exit (ferror (f) || fclose (f) != 0);
5588 rm -f conftest
$ac_exeext
5589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5590 (eval $ac_link) 2>&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; }; then
5599 ac_cv_sizeof_long_long
=`cat conftest.val`
5601 echo "$as_me: program exited with status $ac_status" >&5
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.
$ac_ext >&5
5606 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5607 See \`config.log' for more details." >&5
5608 echo "$as_me: error: cannot compute sizeof (long long), 77
5609 See \`config.log' for more details." >&2;}
5610 { (exit 1); exit 1; }; }
5612 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5617 ac_cv_sizeof_long_long
=0
5620 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5621 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5622 cat >>confdefs.h
<<_ACEOF
5623 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5629 echo "$as_me:$LINENO: checking for __int64" >&5
5630 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5631 if test "${ac_cv_type___int64+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 cat >conftest.
$ac_ext <<_ACEOF
5637 cat confdefs.h
>>conftest.
$ac_ext
5638 cat >>conftest.
$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 $ac_includes_default
5646 if (sizeof (__int64))
5652 rm -f conftest.
$ac_objext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>conftest.er1
5656 grep -v '^ *+' conftest.er1
>conftest.err
5658 cat conftest.err
>&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try
='test -z "$ac_c_werror_flag"
5662 || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try
='test -s conftest.$ac_objext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 ac_cv_type___int64
=yes
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.
$ac_ext >&5
5679 ac_cv_type___int64
=no
5681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5683 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5684 echo "${ECHO_T}$ac_cv_type___int64" >&6
5685 if test $ac_cv_type___int64 = yes; then
5687 cat >>confdefs.h
<<_ACEOF
5688 #define HAVE___INT64 1
5691 echo "$as_me:$LINENO: checking for __int64" >&5
5692 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5693 if test "${ac_cv_type___int64+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 cat >conftest.
$ac_ext <<_ACEOF
5699 cat confdefs.h
>>conftest.
$ac_ext
5700 cat >>conftest.
$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 $ac_includes_default
5708 if (sizeof (__int64))
5714 rm -f conftest.
$ac_objext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716 (eval $ac_compile) 2>conftest.er1
5718 grep -v '^ *+' conftest.er1
>conftest.err
5720 cat conftest.err
>&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } &&
5723 { ac_try
='test -z "$ac_c_werror_flag"
5724 || test ! -s conftest.err'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; } &&
5730 { ac_try
='test -s conftest.$ac_objext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5736 ac_cv_type___int64
=yes
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.
$ac_ext >&5
5741 ac_cv_type___int64
=no
5743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5745 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5746 echo "${ECHO_T}$ac_cv_type___int64" >&6
5748 echo "$as_me:$LINENO: checking size of __int64" >&5
5749 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5750 if test "${ac_cv_sizeof___int64+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 if test "$ac_cv_type___int64" = yes; then
5754 # The cast to unsigned long works around a bug in the HP C Compiler
5755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5757 # This bug is HP SR number 8606223364.
5758 if test "$cross_compiling" = yes; then
5759 # Depending upon the size, compute the lo and hi bounds.
5760 cat >conftest.
$ac_ext <<_ACEOF
5763 cat confdefs.h
>>conftest.
$ac_ext
5764 cat >>conftest.
$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 $ac_includes_default
5770 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5777 rm -f conftest.
$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>conftest.er1
5781 grep -v '^ *+' conftest.er1
>conftest.err
5783 cat conftest.err
>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try
='test -z "$ac_c_werror_flag"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try
='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5801 cat >conftest.
$ac_ext <<_ACEOF
5804 cat confdefs.h
>>conftest.
$ac_ext
5805 cat >>conftest.
$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 $ac_includes_default
5811 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5818 rm -f conftest.
$ac_objext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820 (eval $ac_compile) 2>conftest.er1
5822 grep -v '^ *+' conftest.er1
>conftest.err
5824 cat conftest.err
>&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try
='test -z "$ac_c_werror_flag"
5828 || test ! -s conftest.err'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; } &&
5834 { ac_try
='test -s conftest.$ac_objext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5840 ac_hi
=$ac_mid; break
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.
$ac_ext >&5
5845 ac_lo
=`expr $ac_mid + 1`
5846 if test $ac_lo -le $ac_mid; then
5850 ac_mid
=`expr 2 '*' $ac_mid + 1`
5852 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.
$ac_ext >&5
5858 cat >conftest.
$ac_ext <<_ACEOF
5861 cat confdefs.h
>>conftest.
$ac_ext
5862 cat >>conftest.
$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 $ac_includes_default
5868 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5875 rm -f conftest.
$ac_objext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5877 (eval $ac_compile) 2>conftest.er1
5879 grep -v '^ *+' conftest.er1
>conftest.err
5881 cat conftest.err
>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try
='test -z "$ac_c_werror_flag"
5885 || test ! -s conftest.err'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try
='test -s conftest.$ac_objext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5899 cat >conftest.
$ac_ext <<_ACEOF
5902 cat confdefs.h
>>conftest.
$ac_ext
5903 cat >>conftest.
$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5909 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5916 rm -f conftest.
$ac_objext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918 (eval $ac_compile) 2>conftest.er1
5920 grep -v '^ *+' conftest.er1
>conftest.err
5922 cat conftest.err
>&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try
='test -z "$ac_c_werror_flag"
5926 || test ! -s conftest.err'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; } &&
5932 { ac_try
='test -s conftest.$ac_objext'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5938 ac_lo
=$ac_mid; break
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.
$ac_ext >&5
5943 ac_hi
=`expr '(' $ac_mid ')' - 1`
5944 if test $ac_mid -le $ac_hi; then
5948 ac_mid
=`expr 2 '*' $ac_mid`
5950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.
$ac_ext >&5
5958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5960 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5961 # Binary search between lo and hi bounds.
5962 while test "x$ac_lo" != "x$ac_hi"; do
5963 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5964 cat >conftest.
$ac_ext <<_ACEOF
5967 cat confdefs.h
>>conftest.
$ac_ext
5968 cat >>conftest.
$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5970 $ac_includes_default
5974 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5981 rm -f conftest.
$ac_objext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983 (eval $ac_compile) 2>conftest.er1
5985 grep -v '^ *+' conftest.er1
>conftest.err
5987 cat conftest.err
>&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try
='test -z "$ac_c_werror_flag"
5991 || test ! -s conftest.err'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; } &&
5997 { ac_try
='test -s conftest.$ac_objext'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.
$ac_ext >&5
6008 ac_lo
=`expr '(' $ac_mid ')' + 1`
6010 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6013 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
6014 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6015 See \`config.log' for more details." >&5
6016 echo "$as_me: error: cannot compute sizeof (__int64), 77
6017 See \`config.log' for more details." >&2;}
6018 { (exit 1); exit 1; }; } ;;
6021 if test "$cross_compiling" = yes; then
6022 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6023 See \`config.log' for more details." >&5
6024 echo "$as_me: error: cannot run test program while cross compiling
6025 See \`config.log' for more details." >&2;}
6026 { (exit 1); exit 1; }; }
6028 cat >conftest.
$ac_ext <<_ACEOF
6031 cat confdefs.h
>>conftest.
$ac_ext
6032 cat >>conftest.
$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 $ac_includes_default
6035 long longval () { return (long) (sizeof (__int64)); }
6036 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6043 FILE *f = fopen ("conftest.val", "w");
6046 if (((long) (sizeof (__int64))) < 0)
6048 long i = longval ();
6049 if (i != ((long) (sizeof (__int64))))
6051 fprintf (f, "%ld\n", i);
6055 unsigned long i = ulongval ();
6056 if (i != ((long) (sizeof (__int64))))
6058 fprintf (f, "%lu\n", i);
6060 exit (ferror (f) || fclose (f) != 0);
6066 rm -f conftest
$ac_exeext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068 (eval $ac_link) 2>&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6077 ac_cv_sizeof___int64
=`cat conftest.val`
6079 echo "$as_me: program exited with status $ac_status" >&5
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.
$ac_ext >&5
6084 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6085 See \`config.log' for more details." >&5
6086 echo "$as_me: error: cannot compute sizeof (__int64), 77
6087 See \`config.log' for more details." >&2;}
6088 { (exit 1); exit 1; }; }
6090 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6095 ac_cv_sizeof___int64
=0
6098 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6099 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6100 cat >>confdefs.h
<<_ACEOF
6101 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6108 # ---------------------
6109 # Warnings and checking
6110 # ---------------------
6112 # Check $CC warning features (if it's GCC).
6113 # We want to use -pedantic, but we don't want warnings about
6116 # * overlong strings
6117 # So, we only use -pedantic if we can disable those warnings.
6120 save_CFLAGS
="$CFLAGS"
6121 for option
in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6122 -Wmissing-prototypes; do
6123 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6125 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6126 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6127 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 cat >conftest.
$ac_ext <<_ACEOF
6134 cat confdefs.h
>>conftest.
$ac_ext
6135 cat >>conftest.
$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6146 rm -f conftest.
$ac_objext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 (eval $ac_compile) 2>conftest.er1
6150 grep -v '^ *+' conftest.er1
>conftest.err
6152 cat conftest.err
>&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try
='test -z "$ac_c_werror_flag"
6156 || test ! -s conftest.err'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try
='test -s conftest.$ac_objext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 eval "$as_acx_Woption=yes"
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.
$ac_ext >&5
6173 eval "$as_acx_Woption=no"
6175 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6178 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6179 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6180 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6181 loose_warn
="$loose_warn${loose_warn:+ }$option"
6185 CFLAGS
="$save_CFLAGS"
6188 save_CFLAGS
="$CFLAGS"
6189 for option
in -Wc++-compat; do
6190 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6192 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6193 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6194 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 cat >conftest.
$ac_ext <<_ACEOF
6201 cat confdefs.h
>>conftest.
$ac_ext
6202 cat >>conftest.
$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6213 rm -f conftest.
$ac_objext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215 (eval $ac_compile) 2>conftest.er1
6217 grep -v '^ *+' conftest.er1
>conftest.err
6219 cat conftest.err
>&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try
='test -z "$ac_c_werror_flag"
6223 || test ! -s conftest.err'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; } &&
6229 { ac_try
='test -s conftest.$ac_objext'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6235 eval "$as_acx_Woption=yes"
6237 echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.
$ac_ext >&5
6240 eval "$as_acx_Woption=no"
6242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6245 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6246 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6247 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6248 cxx_compat_warn
="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6252 CFLAGS
="$save_CFLAGS"
6255 save_CFLAGS
="$CFLAGS"
6256 for option
in -Wold-style-definition \
6257 -Wmissing-format-attribute; do
6258 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6260 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6261 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6262 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 cat >conftest.
$ac_ext <<_ACEOF
6269 cat confdefs.h
>>conftest.
$ac_ext
6270 cat >>conftest.
$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6281 rm -f conftest.
$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283 (eval $ac_compile) 2>conftest.er1
6285 grep -v '^ *+' conftest.er1
>conftest.err
6287 cat conftest.err
>&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try
='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try
='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 eval "$as_acx_Woption=yes"
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.
$ac_ext >&5
6308 eval "$as_acx_Woption=no"
6310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6313 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6314 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6315 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6316 strict_warn
="$strict_warn${strict_warn:+ }$option"
6320 CFLAGS
="$save_CFLAGS"
6322 if test "$GCC" = yes; then
6323 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6324 -Wno-overlength-strings" >&5
6325 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6326 -Wno-overlength-strings... $ECHO_C" >&6
6327 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 save_CFLAGS
="$CFLAGS"
6331 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros \
6332 -Wno-overlength-strings"
6333 cat >conftest.
$ac_ext <<_ACEOF
6336 cat confdefs.h
>>conftest.
$ac_ext
6337 cat >>conftest.
$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6348 rm -f conftest.
$ac_objext
6349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6350 (eval $ac_compile) 2>conftest.er1
6352 grep -v '^ *+' conftest.er1
>conftest.err
6354 cat conftest.err
>&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try
='test -z "$ac_c_werror_flag"
6358 || test ! -s conftest.err'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; } &&
6364 { ac_try
='test -s conftest.$ac_objext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=yes
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.
$ac_ext >&5
6375 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=no
6377 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6378 CFLAGS
="$save_CFLAGS"
6380 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
6381 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
6382 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
6383 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
6384 -Wno-overlength-strings"
6391 # Check whether --enable-werror-always or --disable-werror-always was given.
6392 if test "${enable_werror_always+set}" = set; then
6393 enableval
="$enable_werror_always"
6396 enable_werror_always
=no
6398 if test $enable_werror_always = yes; then
6399 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6405 # The above macros do nothing if the compiler is not GCC. However, the
6406 # Makefile has more goo to add other flags, so this variabl is used to
6407 # enables warnings only for GCC.
6409 if test "x$GCC" = "xyes"; then
6410 warn_cflags
='$(GCC_WARN_CFLAGS)'
6414 # Enable expensive internal checks
6416 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6420 # Check whether --enable-checking or --disable-checking was given.
6421 if test "${enable_checking+set}" = set; then
6422 enableval
="$enable_checking"
6423 ac_checking_flags
="${enableval}"
6426 # Determine the default checks.
6427 if test x
$is_release = x
; then
6428 ac_checking_flags
=yes
6430 ac_checking_flags
=release
6433 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6434 for check
in release
$ac_checking_flags
6437 # these set all the flags to specific states
6438 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6439 ac_fold_checking
= ; ac_gc_checking
=1 ;
6440 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6441 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6442 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6443 ac_types_checking
= ;;
6444 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6445 ac_fold_checking
= ; ac_gc_checking
= ;
6446 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6447 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6448 ac_tree_checking
= ; ac_valgrind_checking
= ;
6449 ac_types_checking
= ;;
6450 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6451 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6452 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6453 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6454 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6455 ac_types_checking
=1 ;;
6456 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6457 ac_fold_checking
= ; ac_gc_checking
= ;
6458 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6459 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6460 ac_tree_checking
= ; ac_valgrind_checking
= ;
6461 ac_types_checking
= ;;
6462 # these enable particular checks
6463 assert
) ac_assert_checking
=1 ;;
6464 df
) ac_df_checking
=1 ;;
6465 fold) ac_fold_checking
=1 ;;
6466 gc
) ac_gc_checking
=1 ;;
6467 gcac
) ac_gc_always_collect
=1 ;;
6468 misc
) ac_checking
=1 ;;
6469 rtl
) ac_rtl_checking
=1 ;;
6470 rtlflag
) ac_rtlflag_checking
=1 ;;
6471 runtime
) ac_runtime_checking
=1 ;;
6472 tree
) ac_tree_checking
=1 ;;
6473 types
) ac_types_checking
=1 ;;
6474 valgrind
) ac_valgrind_checking
=1 ;;
6475 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6476 echo "$as_me: error: unknown check category $check" >&2;}
6477 { (exit 1); exit 1; }; } ;;
6483 if test x
$ac_checking != x
; then
6485 cat >>confdefs.h
<<\_ACEOF
6486 #define ENABLE_CHECKING 1
6489 nocommon_flag
=-fno-common
6492 if test x
$ac_df_checking != x
; then
6494 cat >>confdefs.h
<<\_ACEOF
6495 #define ENABLE_DF_CHECKING 1
6499 if test x
$ac_assert_checking != x
; then
6501 cat >>confdefs.h
<<\_ACEOF
6502 #define ENABLE_ASSERT_CHECKING 1
6507 if test x
$ac_runtime_checking != x
; then
6509 cat >>confdefs.h
<<\_ACEOF
6510 #define ENABLE_RUNTIME_CHECKING 1
6514 if test x
$ac_tree_checking != x
; then
6516 cat >>confdefs.h
<<\_ACEOF
6517 #define ENABLE_TREE_CHECKING 1
6520 TREEBROWSER
=tree-browser.o
6522 if test x
$ac_types_checking != x
; then
6524 cat >>confdefs.h
<<\_ACEOF
6525 #define ENABLE_TYPES_CHECKING 1
6530 if test x
$ac_rtl_checking != x
; then
6532 cat >>confdefs.h
<<\_ACEOF
6533 #define ENABLE_RTL_CHECKING 1
6537 if test x
$ac_rtlflag_checking != x
; then
6539 cat >>confdefs.h
<<\_ACEOF
6540 #define ENABLE_RTL_FLAG_CHECKING 1
6544 if test x
$ac_gc_checking != x
; then
6546 cat >>confdefs.h
<<\_ACEOF
6547 #define ENABLE_GC_CHECKING 1
6551 if test x
$ac_gc_always_collect != x
; then
6553 cat >>confdefs.h
<<\_ACEOF
6554 #define ENABLE_GC_ALWAYS_COLLECT 1
6558 if test x
$ac_fold_checking != x
; then
6560 cat >>confdefs.h
<<\_ACEOF
6561 #define ENABLE_FOLD_CHECKING 1
6565 valgrind_path_defines
=
6568 if test "${ac_cv_header_valgrind_h+set}" = set; then
6569 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6570 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6571 if test "${ac_cv_header_valgrind_h+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6575 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6577 # Is the header compilable?
6578 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6579 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6580 cat >conftest.
$ac_ext <<_ACEOF
6583 cat confdefs.h
>>conftest.
$ac_ext
6584 cat >>conftest.
$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 $ac_includes_default
6587 #include <valgrind.h>
6589 rm -f conftest.
$ac_objext
6590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6591 (eval $ac_compile) 2>conftest.er1
6593 grep -v '^ *+' conftest.er1
>conftest.err
6595 cat conftest.err
>&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } &&
6598 { ac_try
='test -z "$ac_c_werror_flag"
6599 || test ! -s conftest.err'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; } &&
6605 { ac_try
='test -s conftest.$ac_objext'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; }; then
6611 ac_header_compiler
=yes
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.
$ac_ext >&5
6616 ac_header_compiler
=no
6618 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6620 echo "${ECHO_T}$ac_header_compiler" >&6
6622 # Is the header present?
6623 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6624 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6625 cat >conftest.
$ac_ext <<_ACEOF
6628 cat confdefs.h
>>conftest.
$ac_ext
6629 cat >>conftest.
$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 #include <valgrind.h>
6633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6634 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6636 grep -v '^ *+' conftest.er1
>conftest.err
6638 cat conftest.err
>&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } >/dev
/null
; then
6641 if test -s conftest.err
; then
6642 ac_cpp_err
=$ac_c_preproc_warn_flag
6643 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6650 if test -z "$ac_cpp_err"; then
6651 ac_header_preproc
=yes
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.
$ac_ext >&5
6656 ac_header_preproc
=no
6658 rm -f conftest.err conftest.
$ac_ext
6659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6660 echo "${ECHO_T}$ac_header_preproc" >&6
6662 # So? What about this header?
6663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6665 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6666 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6667 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6668 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6669 ac_header_preproc
=yes
6672 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6673 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6675 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6677 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6679 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6681 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6683 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6686 ## ------------------------------------------ ##
6687 ## Report this to the AC_PACKAGE_NAME lists. ##
6688 ## ------------------------------------------ ##
6691 sed "s/^/$as_me: WARNING: /" >&2
6694 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6695 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6696 if test "${ac_cv_header_valgrind_h+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 ac_cv_header_valgrind_h
=$ac_header_preproc
6701 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6702 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6705 if test $ac_cv_header_valgrind_h = yes; then
6713 if test x
$ac_valgrind_checking != x
; then
6714 # It is certainly possible that there's valgrind but no valgrind.h.
6715 # GCC relies on making annotations so we must have both.
6716 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6717 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6718 cat >conftest.
$ac_ext <<_ACEOF
6721 cat confdefs.h
>>conftest.
$ac_ext
6722 cat >>conftest.
$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 #include <valgrind/memcheck.h>
6725 #ifndef VALGRIND_DISCARD
6726 #error VALGRIND_DISCARD not defined
6729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6730 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6732 grep -v '^ *+' conftest.er1
>conftest.err
6734 cat conftest.err
>&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } >/dev
/null
; then
6737 if test -s conftest.err
; then
6738 ac_cpp_err
=$ac_c_preproc_warn_flag
6739 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6746 if test -z "$ac_cpp_err"; then
6747 gcc_cv_header_valgrind_memcheck_h
=yes
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.
$ac_ext >&5
6752 gcc_cv_header_valgrind_memcheck_h
=no
6754 rm -f conftest.err conftest.
$ac_ext
6755 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6756 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6757 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6758 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6759 cat >conftest.
$ac_ext <<_ACEOF
6762 cat confdefs.h
>>conftest.
$ac_ext
6763 cat >>conftest.
$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6765 #include <memcheck.h>
6766 #ifndef VALGRIND_DISCARD
6767 #error VALGRIND_DISCARD not defined
6770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6771 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6773 grep -v '^ *+' conftest.er1
>conftest.err
6775 cat conftest.err
>&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } >/dev
/null
; then
6778 if test -s conftest.err
; then
6779 ac_cpp_err
=$ac_c_preproc_warn_flag
6780 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6787 if test -z "$ac_cpp_err"; then
6788 gcc_cv_header_memcheck_h
=yes
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.
$ac_ext >&5
6793 gcc_cv_header_memcheck_h
=no
6795 rm -f conftest.err conftest.
$ac_ext
6796 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6797 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6799 # Prepare PATH_SEPARATOR.
6800 # The user is always right.
6801 if test "${PATH_SEPARATOR+set}" != set; then
6802 echo "#! /bin/sh" >conf$$.sh
6803 echo "exit 0" >>conf$$.sh
6805 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6813 # Find out how to test for executable files. Don't use a zero-byte file,
6814 # as systems may use methods other than mode bits to determine executability.
6815 cat >conf$$.
file <<_ASEOF
6819 chmod +x conf$$.
file
6820 if test -x conf$$.
file >/dev
/null
2>&1; then
6821 ac_executable_p
="test -x"
6823 ac_executable_p
="test -f"
6827 # Extract the first word of "valgrind", so it can be a program name with args.
6828 set dummy valgrind
; ac_word
=$2
6829 echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6831 if test "${ac_cv_path_valgrind_path+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 case "$valgrind_path" in
6836 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6839 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6840 for ac_dir
in $PATH; do
6842 test -z "$ac_dir" && ac_dir
=.
6843 for ac_exec_ext
in '' $ac_executable_extensions; do
6844 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6845 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6846 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6856 valgrind_path
="$ac_cv_path_valgrind_path"
6857 if test -n "$valgrind_path"; then
6858 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6859 echo "${ECHO_T}$valgrind_path" >&6
6861 echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6
6865 if test "x$valgrind_path" = "x" \
6866 ||
(test $have_valgrind_h = no \
6867 && test $gcc_cv_header_memcheck_h = no \
6868 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6869 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6870 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6871 { (exit 1); exit 1; }; }
6873 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6874 valgrind_command
="$valgrind_path -q"
6876 cat >>confdefs.h
<<\_ACEOF
6877 #define ENABLE_VALGRIND_CHECKING 1
6880 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6882 cat >>confdefs.h
<<\_ACEOF
6883 #define HAVE_VALGRIND_MEMCHECK_H 1
6887 if test $gcc_cv_header_memcheck_h = yes; then
6889 cat >>confdefs.h
<<\_ACEOF
6890 #define HAVE_MEMCHECK_H 1
6898 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6899 if test "${enable_mapped_location+set}" = set; then
6900 enableval
="$enable_mapped_location"
6903 enable_mapped_location
=yes
6906 if test "$enable_mapped_location" = yes ; then
6908 cat >>confdefs.h
<<\_ACEOF
6909 #define USE_MAPPED_LOCATION 1
6914 # Enable code coverage collection
6915 # Check whether --enable-coverage or --disable-coverage was given.
6916 if test "${enable_coverage+set}" = set; then
6917 enableval
="$enable_coverage"
6918 case "${enableval}" in
6920 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6923 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6926 # a.k.a. --disable-coverage
6930 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6931 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6932 { (exit 1); exit 1; }; }
6940 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6941 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6942 enableval
="$enable_gather_detailed_mem_stats"
6945 enable_gather_detailed_mem_stats
=no
6947 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6949 cat >>confdefs.h
<<\_ACEOF
6950 #define GATHER_STATISTICS 1
6955 # -------------------------------
6956 # Miscenalleous configure options
6957 # -------------------------------
6961 # Check whether --with-stabs or --without-stabs was given.
6962 if test "${with_stabs+set}" = set; then
6963 withval
="$with_stabs"
6969 # Determine whether or not multilibs are enabled.
6970 # Check whether --enable-multilib or --disable-multilib was given.
6971 if test "${enable_multilib+set}" = set; then
6972 enableval
="$enable_multilib"
6979 # Enable __cxa_atexit for C++.
6980 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6981 if test "${enable___cxa_atexit+set}" = set; then
6982 enableval
="$enable___cxa_atexit"
6986 # Enable C extension for decimal float if target supports it.
6987 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6988 if test "${enable_decimal_float+set}" = set; then
6989 enableval
="$enable_decimal_float"
6991 case $enable_decimal_float in
6992 yes | no | bid | dpd
) ;;
6993 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6994 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
6995 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6996 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
6997 { (exit 1); exit 1; }; } ;;
7003 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
7004 enable_decimal_float
=yes
7007 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7008 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7009 enable_decimal_float
=no
7015 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7017 cat >>confdefs.h
<<_ACEOF
7018 #define ENABLE_DECIMAL_FLOAT $dfp
7022 # x86's use BID format instead of DPD
7023 case x
$enable_decimal_float in
7026 i?
86*-*-linux* | x86_64
*-*-linux*)
7027 enable_decimal_float
=bid
7030 enable_decimal_float
=dpd
7035 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7036 # dependency on libdecnumber.
7037 enable_decimal_float
=dpd
7042 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7044 cat >>confdefs.h
<<_ACEOF
7045 #define ENABLE_DECIMAL_BID_FORMAT $bid
7049 # Enable C extension for fixed-point arithmetic.
7050 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7051 if test "${enable_fixed_point+set}" = set; then
7052 enableval
="$enable_fixed_point"
7061 { echo "$as_me:$LINENO: WARNING: fixed-point support is not available for IRIX" >&5
7062 echo "$as_me: WARNING: fixed-point support is not available for IRIX" >&2;}
7063 enable_fixed_point
=no
7066 enable_fixed_point
=yes
7071 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7072 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7073 enable_fixed_point
=no
7080 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7082 cat >>confdefs.h
<<_ACEOF
7083 #define ENABLE_FIXED_POINT $fixedpoint
7088 # Pass with no value to take the default
7089 # Pass with a value to specify a thread package
7090 # Check whether --enable-threads or --disable-threads was given.
7091 if test "${enable_threads+set}" = set; then
7092 enableval
="$enable_threads"
7098 # Check whether --enable-tls or --disable-tls was given.
7099 if test "${enable_tls+set}" = set; then
7100 enableval
="$enable_tls"
7104 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7105 Valid choices are 'yes' and 'no'." >&5
7106 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7107 Valid choices are 'yes' and 'no'." >&2;}
7108 { (exit 1); exit 1; }; } ;;
7115 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7116 if test "${enable_objc_gc+set}" = set; then
7117 enableval
="$enable_objc_gc"
7118 if test x
$enable_objc_gc = xno
; then
7128 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7129 if test "${with_dwarf2+set}" = set; then
7130 withval
="$with_dwarf2"
7131 dwarf2
="$with_dwarf2"
7136 # Check whether --enable-shared or --disable-shared was given.
7137 if test "${enable_shared+set}" = set; then
7138 enableval
="$enable_shared"
7140 case $enable_shared in
7144 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7145 for pkg
in $enableval; do
7146 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7160 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7161 if test "${with_build_sysroot+set}" = set; then
7162 withval
="$with_build_sysroot"
7167 # Check whether --with-sysroot or --without-sysroot was given.
7168 if test "${with_sysroot+set}" = set; then
7169 withval
="$with_sysroot"
7171 case ${with_sysroot} in
7172 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7173 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7176 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7177 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7179 if test "x$prefix" = xNONE
; then
7180 test_prefix
=/usr
/local
7184 if test "x$exec_prefix" = xNONE
; then
7185 test_exec_prefix
=$test_prefix
7187 test_exec_prefix
=$exec_prefix
7189 case ${TARGET_SYSTEM_ROOT} in
7190 "${test_prefix}"|
"${test_prefix}/"*|\
7191 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7192 '${prefix}'|
'${prefix}/'*|\
7193 '${exec_prefix}'|
'${exec_prefix}/'*)
7194 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7195 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7202 TARGET_SYSTEM_ROOT_DEFINE
=
7203 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7210 # Build with intermodule optimisations
7211 # Check whether --enable-intermodule or --disable-intermodule was given.
7212 if test "${enable_intermodule+set}" = set; then
7213 enableval
="$enable_intermodule"
7214 case ${enable_intermodule} in
7215 yes) onestep
="-onestep";;
7225 # Check whether --with-pkgversion or --without-pkgversion was given.
7226 if test "${with_pkgversion+set}" = set; then
7227 withval
="$with_pkgversion"
7229 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7230 echo "$as_me: error: package version not specified" >&2;}
7231 { (exit 1); exit 1; }; } ;;
7233 *) PKGVERSION
="($withval) " ;;
7243 # Check whether --with-bugurl or --without-bugurl was given.
7244 if test "${with_bugurl+set}" = set; then
7245 withval
="$with_bugurl"
7247 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7248 echo "$as_me: error: bug URL not specified" >&2;}
7249 { (exit 1); exit 1; }; } ;;
7252 *) BUGURL
="$withval"
7256 BUGURL
="http://gcc.gnu.org/bugs.html"
7265 REPORT_BUGS_TO
="<$BUGURL>"
7266 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7273 # Sanity check enable_languages in case someone does not run the toplevel
7274 # configure # script.
7275 # Check whether --enable-languages or --disable-languages was given.
7276 if test "${enable_languages+set}" = set; then
7277 enableval
="$enable_languages"
7278 case ,${enable_languages}, in
7280 # go safe -- we cannot be much sure without the toplevel
7282 # analysis of which target libs are present and usable
7286 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7287 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7288 { (exit 1); exit 1; }; }
7293 enable_languages
=c
,${enable_languages}
7300 # Used by documentation targets
7305 # -------------------------
7306 # Checks for other programs
7307 # -------------------------
7309 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7310 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7311 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7312 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 cat >conftest.
make <<\_ACEOF
7317 @
echo 'ac_maketemp="$(MAKE)"'
7319 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7320 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7321 if test -n "$ac_maketemp"; then
7322 eval ac_cv_prog_make_
${ac_make}_set
=yes
7324 eval ac_cv_prog_make_
${ac_make}_set
=no
7328 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7329 echo "$as_me:$LINENO: result: yes" >&5
7330 echo "${ECHO_T}yes" >&6
7333 echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6
7335 SET_MAKE
="MAKE=${MAKE-make}"
7339 # Find some useful tools
7340 for ac_prog
in gawk mawk nawk
awk
7342 # Extract the first word of "$ac_prog", so it can be a program name with args.
7343 set dummy
$ac_prog; ac_word
=$2
7344 echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7346 if test "${ac_cv_prog_AWK+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 if test -n "$AWK"; then
7350 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir
=.
7357 for ac_exec_ext
in '' $ac_executable_extensions; do
7358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_AWK
="$ac_prog"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 if test -n "$AWK"; then
7370 echo "$as_me:$LINENO: result: $AWK" >&5
7371 echo "${ECHO_T}$AWK" >&6
7373 echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7377 test -n "$AWK" && break
7380 # We need awk to create options.c and options.h.
7381 # Bail out if it's missing.
7383 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7384 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7385 { (exit 1); exit 1; }; } ;;
7388 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7389 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7390 if test "${gcc_cv_prog_LN_S+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 rm -f conftestdata_t
7394 echo >conftestdata_f
7395 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7397 gcc_cv_prog_LN_S
="ln -s"
7399 if ln conftestdata_f conftestdata_t
2>/dev
/null
7403 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7405 gcc_cv_prog_LN_S
="cp -p"
7411 rm -f conftestdata_f conftestdata_t
7414 LN_S
="$gcc_cv_prog_LN_S"
7415 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7416 echo "$as_me:$LINENO: result: yes" >&5
7417 echo "${ECHO_T}yes" >&6
7419 if test "$gcc_cv_prog_LN_S" = "ln"; then
7420 echo "$as_me:$LINENO: result: no, using ln" >&5
7421 echo "${ECHO_T}no, using ln" >&6
7423 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7424 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7428 echo "$as_me:$LINENO: checking whether ln works" >&5
7429 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7430 if test "${acx_cv_prog_LN+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 rm -f conftestdata_t
7434 echo >conftestdata_f
7435 if ln conftestdata_f conftestdata_t
2>/dev
/null
7441 rm -f conftestdata_f conftestdata_t
7444 if test $acx_cv_prog_LN = no
; then
7446 echo "$as_me:$LINENO: result: no, using $LN" >&5
7447 echo "${ECHO_T}no, using $LN" >&6
7449 LN
="$acx_cv_prog_LN"
7450 echo "$as_me:$LINENO: result: yes" >&5
7451 echo "${ECHO_T}yes" >&6
7454 if test -n "$ac_tool_prefix"; then
7455 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7456 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7457 echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7459 if test "${ac_cv_prog_RANLIB+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 if test -n "$RANLIB"; then
7463 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7469 test -z "$as_dir" && as_dir
=.
7470 for ac_exec_ext
in '' $ac_executable_extensions; do
7471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 RANLIB
=$ac_cv_prog_RANLIB
7482 if test -n "$RANLIB"; then
7483 echo "$as_me:$LINENO: result: $RANLIB" >&5
7484 echo "${ECHO_T}$RANLIB" >&6
7486 echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6
7491 if test -z "$ac_cv_prog_RANLIB"; then
7492 ac_ct_RANLIB
=$RANLIB
7493 # Extract the first word of "ranlib", so it can be a program name with args.
7494 set dummy ranlib
; ac_word
=$2
7495 echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7497 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 if test -n "$ac_ct_RANLIB"; then
7501 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir
=.
7508 for ac_exec_ext
in '' $ac_executable_extensions; do
7509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7520 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7521 if test -n "$ac_ct_RANLIB"; then
7522 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7523 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7525 echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6
7529 RANLIB
=$ac_ct_RANLIB
7531 RANLIB
="$ac_cv_prog_RANLIB"
7536 # By default, the Darwin ranlib will not treat common symbols as
7537 # definitions when building the archive table of contents. Other
7538 # ranlibs do that; pass an option to the Darwin ranlib that makes
7539 # it behave similarly.
7547 # Find a good install program. We prefer a C program (faster),
7548 # so one script is as good as another. But avoid the broken or
7549 # incompatible versions:
7550 # SysV /etc/install, /usr/sbin/install
7551 # SunOS /usr/etc/install
7552 # IRIX /sbin/install
7554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7556 # ./install, which can be erroneously created by make from ./install.sh.
7557 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7558 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7559 if test -z "$INSTALL"; then
7560 if test "${ac_cv_path_install+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7564 for ac_dir
in $PATH; do
7565 # Account for people who put trailing slashes in PATH elements.
7567 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7569 # OSF1 and SCO ODT 3.0 have their own names for install.
7570 for ac_prog
in ginstall scoinst
install; do
7571 if test -f $ac_dir/$ac_prog; then
7572 if test $ac_prog = install &&
7573 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7574 # AIX install. It has an incompatible calling convention.
7575 # OSF/1 installbsd also uses dspmsg, but is usable.
7578 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7589 if test "${ac_cv_path_install+set}" = set; then
7590 INSTALL
="$ac_cv_path_install"
7592 # As a last resort, use the slow shell script. We don't cache a
7593 # path for INSTALL within a source directory, because that will
7594 # break other packages using the cache if that directory is
7595 # removed, or if the path is relative.
7596 INSTALL
="$ac_install_sh"
7599 echo "$as_me:$LINENO: result: $INSTALL" >&5
7600 echo "${ECHO_T}$INSTALL" >&6
7602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7603 # It thinks the first close brace ends the variable substitution.
7604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7606 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7609 # See if cmp has --ignore-initial.
7610 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7611 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7612 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 gcc_cv_prog_cmp_skip
=slowcompare
7618 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7619 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7622 gcc_cv_prog_cmp_skip
=gnucompare
7625 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7626 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7627 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7630 gcc_cv_prog_cmp_skip
=fastcompare
7637 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7638 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7639 make_compare_target
=$gcc_cv_prog_cmp_skip
7643 # See if we have the mktemp command.
7644 # Extract the first word of "mktemp", so it can be a program name with args.
7645 set dummy mktemp
; ac_word
=$2
7646 echo "$as_me:$LINENO: checking for $ac_word" >&5
7647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7648 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 if test -n "$have_mktemp_command"; then
7652 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir
=.
7659 for ac_exec_ext
in '' $ac_executable_extensions; do
7660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661 ac_cv_prog_have_mktemp_command
="yes"
7662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7671 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7672 if test -n "$have_mktemp_command"; then
7673 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7674 echo "${ECHO_T}$have_mktemp_command" >&6
7676 echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6
7681 # See if makeinfo has been installed and is modern enough
7682 # that we can use it.
7684 # Extract the first word of "makeinfo", so it can be a program name with args.
7685 set dummy makeinfo
; ac_word
=$2
7686 echo "$as_me:$LINENO: checking for $ac_word" >&5
7687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7688 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 if test -n "$MAKEINFO"; then
7692 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7698 test -z "$as_dir" && as_dir
=.
7699 for ac_exec_ext
in '' $ac_executable_extensions; do
7700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701 ac_cv_prog_MAKEINFO
="makeinfo"
7702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 MAKEINFO
=$ac_cv_prog_MAKEINFO
7711 if test -n "$MAKEINFO"; then
7712 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7713 echo "${ECHO_T}$MAKEINFO" >&6
7715 echo "$as_me:$LINENO: result: no" >&5
7716 echo "${ECHO_T}no" >&6
7719 if test -n "$MAKEINFO"; then
7720 # Found it, now check the version.
7721 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7722 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7723 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7727 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7729 case $ac_prog_version in
7730 '') gcc_cv_prog_makeinfo_modern
=no
;;
7731 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7732 *) gcc_cv_prog_makeinfo_modern
=no
;;
7736 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7737 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7739 gcc_cv_prog_makeinfo_modern
=no
7741 if test $gcc_cv_prog_makeinfo_modern = no
; then
7742 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7745 if test $gcc_cv_prog_makeinfo_modern = no
; then
7746 { echo "$as_me:$LINENO: WARNING:
7747 *** Makeinfo is missing or too old.
7748 *** Info documentation will not be built." >&5
7749 echo "$as_me: WARNING:
7750 *** Makeinfo is missing or too old.
7751 *** Info documentation will not be built." >&2;}
7758 # Is pod2man recent enough to regenerate manpages?
7759 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7760 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7761 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7762 echo "$as_me:$LINENO: result: yes" >&5
7763 echo "${ECHO_T}yes" >&6
7764 GENERATED_MANPAGES
=generated-manpages
7766 echo "$as_me:$LINENO: result: no" >&5
7767 echo "${ECHO_T}no" >&6
7772 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7777 # Extract the first word of "$ac_prog", so it can be a program name with args.
7778 set dummy
$ac_prog; ac_word
=$2
7779 echo "$as_me:$LINENO: checking for $ac_word" >&5
7780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7781 if test "${ac_cv_prog_FLEX+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 if test -n "$FLEX"; then
7785 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7791 test -z "$as_dir" && as_dir
=.
7792 for ac_exec_ext
in '' $ac_executable_extensions; do
7793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794 ac_cv_prog_FLEX
="$ac_prog"
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 FLEX
=$ac_cv_prog_FLEX
7804 if test -n "$FLEX"; then
7805 echo "$as_me:$LINENO: result: $FLEX" >&5
7806 echo "${ECHO_T}$FLEX" >&6
7808 echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6
7812 test -n "$FLEX" && break
7814 test -n "$FLEX" || FLEX
="$MISSING flex"
7818 for ac_prog
in bison
7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
7821 set dummy
$ac_prog; ac_word
=$2
7822 echo "$as_me:$LINENO: checking for $ac_word" >&5
7823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7824 if test "${ac_cv_prog_BISON+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 if test -n "$BISON"; then
7828 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7834 test -z "$as_dir" && as_dir
=.
7835 for ac_exec_ext
in '' $ac_executable_extensions; do
7836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837 ac_cv_prog_BISON
="$ac_prog"
7838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 BISON
=$ac_cv_prog_BISON
7847 if test -n "$BISON"; then
7848 echo "$as_me:$LINENO: result: $BISON" >&5
7849 echo "${ECHO_T}$BISON" >&6
7851 echo "$as_me:$LINENO: result: no" >&5
7852 echo "${ECHO_T}no" >&6
7855 test -n "$BISON" && break
7857 test -n "$BISON" || BISON
="$MISSING bison"
7860 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7861 # check for build == host before using them.
7864 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7865 && test -d ..
/binutils
; then
7866 NM
='$(objdir)/../binutils/nm-new'
7868 # Extract the first word of "nm", so it can be a program name with args.
7869 set dummy nm
; ac_word
=$2
7870 echo "$as_me:$LINENO: checking for $ac_word" >&5
7871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7872 if test "${ac_cv_prog_NM+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 if test -n "$NM"; then
7876 ac_cv_prog_NM
="$NM" # Let the user override the test.
7878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7882 test -z "$as_dir" && as_dir
=.
7883 for ac_exec_ext
in '' $ac_executable_extensions; do
7884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7896 if test -n "$NM"; then
7897 echo "$as_me:$LINENO: result: $NM" >&5
7898 echo "${ECHO_T}$NM" >&6
7900 echo "$as_me:$LINENO: result: no" >&5
7901 echo "${ECHO_T}no" >&6
7907 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7908 && test -d ..
/binutils
; then
7909 AR
='$(objdir)/../binutils/ar'
7911 # Extract the first word of "ar", so it can be a program name with args.
7912 set dummy
ar; ac_word
=$2
7913 echo "$as_me:$LINENO: checking for $ac_word" >&5
7914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7915 if test "${ac_cv_prog_AR+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 if test -n "$AR"; then
7919 ac_cv_prog_AR
="$AR" # Let the user override the test.
7921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7925 test -z "$as_dir" && as_dir
=.
7926 for ac_exec_ext
in '' $ac_executable_extensions; do
7927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7935 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7939 if test -n "$AR"; then
7940 echo "$as_me:$LINENO: result: $AR" >&5
7941 echo "${ECHO_T}$AR" >&6
7943 echo "$as_me:$LINENO: result: no" >&5
7944 echo "${ECHO_T}no" >&6
7950 # --------------------
7951 # Checks for C headers
7952 # --------------------
7954 echo "$as_me:$LINENO: checking for GNU C library" >&5
7955 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7956 if test "${gcc_cv_glibc+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 cat >conftest.
$ac_ext <<_ACEOF
7962 cat confdefs.h
>>conftest.
$ac_ext
7963 cat >>conftest.
$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7965 #include <features.h>
7970 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7971 #error Not a GNU C library system
7977 rm -f conftest.
$ac_objext
7978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7979 (eval $ac_compile) 2>conftest.er1
7981 grep -v '^ *+' conftest.er1
>conftest.err
7983 cat conftest.err
>&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
7986 { ac_try
='test -z "$ac_c_werror_flag"
7987 || test ! -s conftest.err'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; } &&
7993 { ac_try
='test -s conftest.$ac_objext'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.
$ac_ext >&5
8006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8009 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
8010 echo "${ECHO_T}$gcc_cv_glibc" >&6
8011 if test $gcc_cv_glibc = yes; then
8013 cat >>confdefs.h
<<\_ACEOF
8014 #define _GNU_SOURCE 1
8019 # Need to reject headers which give warnings, so that the -Werror bootstrap
8020 # works later. *sigh* This needs to come before all header checks.
8022 ac_c_preproc_warn_flag
=yes
8024 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8025 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8026 if test "${ac_cv_header_stdc+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 cat >conftest.
$ac_ext <<_ACEOF
8032 cat confdefs.h
>>conftest.
$ac_ext
8033 cat >>conftest.
$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8048 rm -f conftest.
$ac_objext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8050 (eval $ac_compile) 2>conftest.er1
8052 grep -v '^ *+' conftest.er1
>conftest.err
8054 cat conftest.err
>&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try
='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try
='test -s conftest.$ac_objext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_cv_header_stdc
=yes
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.
$ac_ext >&5
8075 ac_cv_header_stdc
=no
8077 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8079 if test $ac_cv_header_stdc = yes; then
8080 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8081 cat >conftest.
$ac_ext <<_ACEOF
8084 cat confdefs.h
>>conftest.
$ac_ext
8085 cat >>conftest.
$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8091 $EGREP "memchr" >/dev
/null
2>&1; then
8094 ac_cv_header_stdc
=no
8100 if test $ac_cv_header_stdc = yes; then
8101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8102 cat >conftest.
$ac_ext <<_ACEOF
8105 cat confdefs.h
>>conftest.
$ac_ext
8106 cat >>conftest.
$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8112 $EGREP "free" >/dev
/null
2>&1; then
8115 ac_cv_header_stdc
=no
8121 if test $ac_cv_header_stdc = yes; then
8122 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8123 if test "$cross_compiling" = yes; then
8126 cat >conftest.
$ac_ext <<_ACEOF
8129 cat confdefs.h
>>conftest.
$ac_ext
8130 cat >>conftest.
$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8133 #if ((' ' & 0x0FF) == 0x020)
8134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8137 # define ISLOWER(c) \
8138 (('a' <= (c) && (c) <= 'i') \
8139 || ('j' <= (c) && (c) <= 'r') \
8140 || ('s' <= (c) && (c) <= 'z'))
8141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8149 for (i = 0; i < 256; i++)
8150 if (XOR (islower (i), ISLOWER (i))
8151 || toupper (i) != TOUPPER (i))
8156 rm -f conftest
$ac_exeext
8157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8158 (eval $ac_link) 2>&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8169 echo "$as_me: program exited with status $ac_status" >&5
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.
$ac_ext >&5
8174 ac_cv_header_stdc
=no
8176 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8180 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8181 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8182 if test $ac_cv_header_stdc = yes; then
8184 cat >>confdefs.h
<<\_ACEOF
8185 #define STDC_HEADERS 1
8190 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8191 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8192 if test "${ac_cv_header_time+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 cat >conftest.
$ac_ext <<_ACEOF
8198 cat confdefs.h
>>conftest.
$ac_ext
8199 cat >>conftest.
$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8201 #include <sys/types.h>
8202 #include <sys/time.h>
8208 if ((struct tm *) 0)
8214 rm -f conftest.
$ac_objext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8216 (eval $ac_compile) 2>conftest.er1
8218 grep -v '^ *+' conftest.er1
>conftest.err
8220 cat conftest.err
>&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
8223 { ac_try
='test -z "$ac_c_werror_flag"
8224 || test ! -s conftest.err'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; } &&
8230 { ac_try
='test -s conftest.$ac_objext'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8236 ac_cv_header_time
=yes
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.
$ac_ext >&5
8241 ac_cv_header_time
=no
8243 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8245 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8246 echo "${ECHO_T}$ac_cv_header_time" >&6
8247 if test $ac_cv_header_time = yes; then
8249 cat >>confdefs.h
<<\_ACEOF
8250 #define TIME_WITH_SYS_TIME 1
8255 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8256 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8257 if test "${gcc_cv_header_string+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 cat >conftest.
$ac_ext <<_ACEOF
8263 cat confdefs.h
>>conftest.
$ac_ext
8264 cat >>conftest.
$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8267 #include <strings.h>
8276 rm -f conftest.
$ac_objext
8277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8278 (eval $ac_compile) 2>conftest.er1
8280 grep -v '^ *+' conftest.er1
>conftest.err
8282 cat conftest.err
>&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } &&
8285 { ac_try
='test -z "$ac_c_werror_flag"
8286 || test ! -s conftest.err'
8287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; } &&
8292 { ac_try
='test -s conftest.$ac_objext'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 gcc_cv_header_string
=yes
8300 echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.
$ac_ext >&5
8303 gcc_cv_header_string
=no
8305 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8307 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8308 echo "${ECHO_T}$gcc_cv_header_string" >&6
8309 if test $gcc_cv_header_string = yes; then
8311 cat >>confdefs.h
<<\_ACEOF
8312 #define STRING_WITH_STRINGS 1
8317 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8318 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8319 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 cat >conftest.
$ac_ext <<_ACEOF
8325 cat confdefs.h
>>conftest.
$ac_ext
8326 cat >>conftest.
$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8328 #include <sys/types.h>
8329 #include <sys/wait.h>
8331 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8334 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8342 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8347 rm -f conftest.
$ac_objext
8348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8349 (eval $ac_compile) 2>conftest.er1
8351 grep -v '^ *+' conftest.er1
>conftest.err
8353 cat conftest.err
>&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } &&
8356 { ac_try
='test -z "$ac_c_werror_flag"
8357 || test ! -s conftest.err'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; } &&
8363 { ac_try
='test -s conftest.$ac_objext'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8369 ac_cv_header_sys_wait_h
=yes
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.
$ac_ext >&5
8374 ac_cv_header_sys_wait_h
=no
8376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8378 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8379 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8380 if test $ac_cv_header_sys_wait_h = yes; then
8382 cat >>confdefs.h
<<\_ACEOF
8383 #define HAVE_SYS_WAIT_H 1
8410 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8411 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8412 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8413 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8415 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8416 echo "$as_me:$LINENO: checking for $ac_header" >&5
8417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 cat >conftest.
$ac_ext <<_ACEOF
8424 cat confdefs.h
>>conftest.
$ac_ext
8425 cat >>conftest.
$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 #include <$ac_header>
8429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8430 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8432 grep -v '^ *+' conftest.er1
>conftest.err
8434 cat conftest.err
>&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } >/dev
/null
; then
8437 if test -s conftest.err
; then
8438 ac_cpp_err
=$ac_c_preproc_warn_flag
8439 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8446 if test -z "$ac_cpp_err"; then
8447 eval "$as_ac_Header=yes"
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.
$ac_ext >&5
8452 eval "$as_ac_Header=no"
8454 rm -f conftest.err conftest.
$ac_ext
8456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8459 cat >>confdefs.h
<<_ACEOF
8460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8467 # Check for thread headers.
8468 echo "$as_me:$LINENO: checking for thread.h" >&5
8469 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8470 if test "${ac_cv_header_thread_h+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. */
8481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8482 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8484 grep -v '^ *+' conftest.er1
>conftest.err
8486 cat conftest.err
>&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } >/dev
/null
; then
8489 if test -s conftest.err
; then
8490 ac_cpp_err
=$ac_c_preproc_warn_flag
8491 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8498 if test -z "$ac_cpp_err"; then
8499 ac_cv_header_thread_h
=yes
8501 echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.
$ac_ext >&5
8504 ac_cv_header_thread_h
=no
8506 rm -f conftest.err conftest.
$ac_ext
8508 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8509 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8510 if test $ac_cv_header_thread_h = yes; then
8516 echo "$as_me:$LINENO: checking for pthread.h" >&5
8517 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8518 if test "${ac_cv_header_pthread_h+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 cat >conftest.
$ac_ext <<_ACEOF
8524 cat confdefs.h
>>conftest.
$ac_ext
8525 cat >>conftest.
$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527 #include <pthread.h>
8529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8530 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8532 grep -v '^ *+' conftest.er1
>conftest.err
8534 cat conftest.err
>&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } >/dev
/null
; then
8537 if test -s conftest.err
; then
8538 ac_cpp_err
=$ac_c_preproc_warn_flag
8539 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8546 if test -z "$ac_cpp_err"; then
8547 ac_cv_header_pthread_h
=yes
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.
$ac_ext >&5
8552 ac_cv_header_pthread_h
=no
8554 rm -f conftest.err conftest.
$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8557 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8558 if test $ac_cv_header_pthread_h = yes; then
8565 # These tests can't be done till we know if we have limits.h.
8566 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8567 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8568 if test "${gcc_cv_decl_char_bit+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 cat >conftest.
$ac_ext <<_ACEOF
8574 cat confdefs.h
>>conftest.
$ac_ext
8575 cat >>conftest.
$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8577 #ifdef HAVE_LIMITS_H
8584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8585 $EGREP "found" >/dev
/null
2>&1; then
8586 gcc_cv_decl_char_bit
=yes
8588 gcc_cv_decl_char_bit
=no
8594 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8595 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8596 if test $gcc_cv_decl_char_bit = no
; then
8597 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8598 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8599 if test "${gcc_cv_c_nbby+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 while test $i -lt 65; do
8605 cat >conftest.
$ac_ext <<_ACEOF
8608 cat confdefs.h
>>conftest.
$ac_ext
8609 cat >>conftest.
$ac_ext <<_ACEOF
8610 /* end confdefs.h. */
8616 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8617 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8623 rm -f conftest.
$ac_objext
8624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8625 (eval $ac_compile) 2>conftest.er1
8627 grep -v '^ *+' conftest.er1
>conftest.err
8629 cat conftest.err
>&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } &&
8632 { ac_try
='test -z "$ac_c_werror_flag"
8633 || test ! -s conftest.err'
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; } &&
8639 { ac_try
='test -s conftest.$ac_objext'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 gcc_cv_c_nbby
=$i; break
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.
$ac_ext >&5
8651 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8654 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8657 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8658 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8659 if test $gcc_cv_c_nbby = failed
; then
8660 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8661 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8662 { (exit 1); exit 1; }; }
8665 cat >>confdefs.h
<<_ACEOF
8666 #define CHAR_BIT $gcc_cv_c_nbby
8671 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8672 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8673 if test "${ac_cv_c_bigendian+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 # See if sys/param.h defines the BYTE_ORDER macro.
8677 cat >conftest.
$ac_ext <<_ACEOF
8680 cat confdefs.h
>>conftest.
$ac_ext
8681 cat >>conftest.
$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8683 #include <sys/types.h>
8684 #include <sys/param.h>
8689 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8697 rm -f conftest.
$ac_objext
8698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8699 (eval $ac_compile) 2>conftest.er1
8701 grep -v '^ *+' conftest.er1
>conftest.err
8703 cat conftest.err
>&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } &&
8706 { ac_try
='test -z "$ac_c_werror_flag"
8707 || test ! -s conftest.err'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; } &&
8713 { ac_try
='test -s conftest.$ac_objext'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; }; then
8719 # It does; now see whether it defined to BIG_ENDIAN or not.
8720 cat >conftest.
$ac_ext <<_ACEOF
8723 cat confdefs.h
>>conftest.
$ac_ext
8724 cat >>conftest.
$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8726 #include <sys/types.h>
8727 #include <sys/param.h>
8732 #if BYTE_ORDER != BIG_ENDIAN
8740 rm -f conftest.
$ac_objext
8741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8742 (eval $ac_compile) 2>conftest.er1
8744 grep -v '^ *+' conftest.er1
>conftest.err
8746 cat conftest.err
>&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } &&
8749 { ac_try
='test -z "$ac_c_werror_flag"
8750 || test ! -s conftest.err'
8751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }; } &&
8756 { ac_try
='test -s conftest.$ac_objext'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; }; then
8762 ac_cv_c_bigendian
=yes
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.
$ac_ext >&5
8767 ac_cv_c_bigendian
=no
8769 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.
$ac_ext >&5
8774 # It does not; compile a test program.
8775 if test "$cross_compiling" = yes; then
8776 # try to guess the endianness by grepping values into an object file
8777 ac_cv_c_bigendian
=unknown
8778 cat >conftest.
$ac_ext <<_ACEOF
8781 cat confdefs.h
>>conftest.
$ac_ext
8782 cat >>conftest.
$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8784 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8785 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8786 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8787 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8788 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8789 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8793 _ascii (); _ebcdic ();
8798 rm -f conftest.
$ac_objext
8799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8800 (eval $ac_compile) 2>conftest.er1
8802 grep -v '^ *+' conftest.er1
>conftest.err
8804 cat conftest.err
>&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } &&
8807 { ac_try
='test -z "$ac_c_werror_flag"
8808 || test ! -s conftest.err'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; } &&
8814 { ac_try
='test -s conftest.$ac_objext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8820 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8821 ac_cv_c_bigendian
=yes
8823 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8824 if test "$ac_cv_c_bigendian" = unknown
; then
8825 ac_cv_c_bigendian
=no
8827 # finding both strings is unlikely to happen, but who knows?
8828 ac_cv_c_bigendian
=unknown
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.
$ac_ext >&5
8836 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8838 cat >conftest.
$ac_ext <<_ACEOF
8841 cat confdefs.h
>>conftest.
$ac_ext
8842 cat >>conftest.
$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8847 /* Are we little or big endian? From Harbison&Steele. */
8851 char c[sizeof (long)];
8854 exit (u.c[sizeof (long) - 1] == 1);
8857 rm -f conftest
$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; }; then
8868 ac_cv_c_bigendian
=no
8870 echo "$as_me: program exited with status $ac_status" >&5
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.
$ac_ext >&5
8875 ac_cv_c_bigendian
=yes
8877 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8880 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8882 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8883 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8884 case $ac_cv_c_bigendian in
8887 cat >>confdefs.h
<<\_ACEOF
8888 #define WORDS_BIGENDIAN 1
8894 { { echo "$as_me:$LINENO: error: unknown endianness
8895 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8896 echo "$as_me: error: unknown endianness
8897 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8898 { (exit 1); exit 1; }; } ;;
8907 # These libraries may be used by collect2.
8908 # We may need a special search path to get them linked.
8909 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8910 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8911 if test "${gcc_cv_collect2_libs+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 for libs
in '' -lld -lmld \
8916 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8917 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8920 cat >conftest.
$ac_ext <<_ACEOF
8923 cat confdefs.h
>>conftest.
$ac_ext
8924 cat >>conftest.
$ac_ext <<_ACEOF
8925 /* end confdefs.h. */
8927 /* Override any gcc2 internal prototype to avoid an error. */
8931 /* We use char because int might match the return type of a gcc2
8932 builtin and then its argument prototype would still apply. */
8942 rm -f conftest.
$ac_objext conftest
$ac_exeext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8944 (eval $ac_link) 2>conftest.er1
8946 grep -v '^ *+' conftest.er1
>conftest.err
8948 cat conftest.err
>&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try
='test -z "$ac_c_werror_flag"
8952 || test ! -s conftest.err'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; } &&
8958 { ac_try
='test -s conftest$ac_exeext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 gcc_cv_collect2_libs
="$libs"; break
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.
$ac_ext >&5
8970 rm -f conftest.err conftest.
$ac_objext \
8971 conftest
$ac_exeext conftest.
$ac_ext
8974 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8976 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8977 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8978 case $gcc_cv_collect2_libs in
8980 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8984 # When building Ada code on Alpha, we need exc_resume which is usually in
8985 # -lexc. So test for it.
8988 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8989 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8990 if test "${ac_cv_search_exc_resume+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 ac_func_search_save_LIBS
=$LIBS
8994 ac_cv_search_exc_resume
=no
8995 cat >conftest.
$ac_ext <<_ACEOF
8998 cat confdefs.h
>>conftest.
$ac_ext
8999 cat >>conftest.
$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9002 /* Override any gcc2 internal prototype to avoid an error. */
9006 /* We use char because int might match the return type of a gcc2
9007 builtin and then its argument prototype would still apply. */
9017 rm -f conftest.
$ac_objext conftest
$ac_exeext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9019 (eval $ac_link) 2>conftest.er1
9021 grep -v '^ *+' conftest.er1
>conftest.err
9023 cat conftest.err
>&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } &&
9026 { ac_try
='test -z "$ac_c_werror_flag"
9027 || test ! -s conftest.err'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; } &&
9033 { ac_try
='test -s conftest$ac_exeext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 ac_cv_search_exc_resume
="none required"
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.
$ac_ext >&5
9045 rm -f conftest.err conftest.
$ac_objext \
9046 conftest
$ac_exeext conftest.
$ac_ext
9047 if test "$ac_cv_search_exc_resume" = no
; then
9048 for ac_lib
in exc
; do
9049 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9050 cat >conftest.
$ac_ext <<_ACEOF
9053 cat confdefs.h
>>conftest.
$ac_ext
9054 cat >>conftest.
$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9057 /* Override any gcc2 internal prototype to avoid an error. */
9061 /* We use char because int might match the return type of a gcc2
9062 builtin and then its argument prototype would still apply. */
9072 rm -f conftest.
$ac_objext conftest
$ac_exeext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074 (eval $ac_link) 2>conftest.er1
9076 grep -v '^ *+' conftest.er1
>conftest.err
9078 cat conftest.err
>&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } &&
9081 { ac_try
='test -z "$ac_c_werror_flag"
9082 || test ! -s conftest.err'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try
='test -s conftest$ac_exeext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_cv_search_exc_resume
="-l$ac_lib"
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.
$ac_ext >&5
9101 rm -f conftest.err conftest.
$ac_objext \
9102 conftest
$ac_exeext conftest.
$ac_ext
9105 LIBS
=$ac_func_search_save_LIBS
9107 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9108 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9109 if test "$ac_cv_search_exc_resume" != no
; then
9110 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9118 # Some systems put ldexp and frexp in libm instead of libc; assume
9119 # they're both in the same place. jcf-dump needs them.
9122 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9123 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9124 if test "${ac_cv_search_ldexp+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9127 ac_func_search_save_LIBS
=$LIBS
9128 ac_cv_search_ldexp
=no
9129 cat >conftest.
$ac_ext <<_ACEOF
9132 cat confdefs.h
>>conftest.
$ac_ext
9133 cat >>conftest.
$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9136 /* Override any gcc2 internal prototype to avoid an error. */
9140 /* We use char because int might match the return type of a gcc2
9141 builtin and then its argument prototype would still apply. */
9151 rm -f conftest.
$ac_objext conftest
$ac_exeext
9152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9153 (eval $ac_link) 2>conftest.er1
9155 grep -v '^ *+' conftest.er1
>conftest.err
9157 cat conftest.err
>&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } &&
9160 { ac_try
='test -z "$ac_c_werror_flag"
9161 || test ! -s conftest.err'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; } &&
9167 { ac_try
='test -s conftest$ac_exeext'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173 ac_cv_search_ldexp
="none required"
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.
$ac_ext >&5
9179 rm -f conftest.err conftest.
$ac_objext \
9180 conftest
$ac_exeext conftest.
$ac_ext
9181 if test "$ac_cv_search_ldexp" = no
; then
9183 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9184 cat >conftest.
$ac_ext <<_ACEOF
9187 cat confdefs.h
>>conftest.
$ac_ext
9188 cat >>conftest.
$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9191 /* Override any gcc2 internal prototype to avoid an error. */
9195 /* We use char because int might match the return type of a gcc2
9196 builtin and then its argument prototype would still apply. */
9206 rm -f conftest.
$ac_objext conftest
$ac_exeext
9207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9208 (eval $ac_link) 2>conftest.er1
9210 grep -v '^ *+' conftest.er1
>conftest.err
9212 cat conftest.err
>&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } &&
9215 { ac_try
='test -z "$ac_c_werror_flag"
9216 || test ! -s conftest.err'
9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }; } &&
9222 { ac_try
='test -s conftest$ac_exeext'
9223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); }; }; then
9228 ac_cv_search_ldexp
="-l$ac_lib"
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.
$ac_ext >&5
9235 rm -f conftest.err conftest.
$ac_objext \
9236 conftest
$ac_exeext conftest.
$ac_ext
9239 LIBS
=$ac_func_search_save_LIBS
9241 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9242 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9243 if test "$ac_cv_search_ldexp" != no
; then
9244 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
9252 # Use <inttypes.h> only if it exists,
9253 # doesn't clash with <sys/types.h>, and declares intmax_t.
9254 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9255 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9256 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 cat >conftest.
$ac_ext <<_ACEOF
9262 cat confdefs.h
>>conftest.
$ac_ext
9263 cat >>conftest.
$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9265 #include <sys/types.h>
9266 #include <inttypes.h>
9275 rm -f conftest.
$ac_objext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9277 (eval $ac_compile) 2>conftest.er1
9279 grep -v '^ *+' conftest.er1
>conftest.err
9281 cat conftest.err
>&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try
='test -z "$ac_c_werror_flag"
9285 || test ! -s conftest.err'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; } &&
9291 { ac_try
='test -s conftest.$ac_objext'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9297 gcc_cv_header_inttypes_h
=yes
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.
$ac_ext >&5
9302 gcc_cv_header_inttypes_h
=no
9304 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9307 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9308 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9309 if test $gcc_cv_header_inttypes_h = yes; then
9311 cat >>confdefs.h
<<\_ACEOF
9312 #define HAVE_INTTYPES_H 1
9354 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9355 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9356 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9357 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
9359 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9360 echo "$as_me:$LINENO: checking for $ac_func" >&5
9361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9362 if eval "test \"\${$as_ac_var+set}\" = set"; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 cat >conftest.
$ac_ext <<_ACEOF
9368 cat confdefs.h
>>conftest.
$ac_ext
9369 cat >>conftest.
$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9373 #define $ac_func innocuous_$ac_func
9375 /* System header to define __stub macros and hopefully few prototypes,
9376 which can conflict with char $ac_func (); below.
9377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9378 <limits.h> exists even on freestanding compilers. */
9381 # include <limits.h>
9383 # include <assert.h>
9388 /* Override any gcc2 internal prototype to avoid an error. */
9393 /* We use char because int might match the return type of a gcc2
9394 builtin and then its argument prototype would still apply. */
9396 /* The GNU C library defines this for functions which it implements
9397 to always fail with ENOSYS. Some functions are actually named
9398 something starting with __ and the normal name is an alias. */
9399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9402 char (*f) () = $ac_func;
9411 return f != $ac_func;
9416 rm -f conftest.
$ac_objext conftest
$ac_exeext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418 (eval $ac_link) 2>conftest.er1
9420 grep -v '^ *+' conftest.er1
>conftest.err
9422 cat conftest.err
>&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
9425 { ac_try
='test -z "$ac_c_werror_flag"
9426 || test ! -s conftest.err'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try
='test -s conftest$ac_exeext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 eval "$as_ac_var=yes"
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.
$ac_ext >&5
9443 eval "$as_ac_var=no"
9445 rm -f conftest.err conftest.
$ac_objext \
9446 conftest
$ac_exeext conftest.
$ac_ext
9448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9450 if test `eval echo '${'$as_ac_var'}'` = yes; then
9451 cat >>confdefs.h
<<_ACEOF
9452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9459 if test x
$ac_cv_func_mbstowcs = xyes
; then
9460 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9461 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9462 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 if test "$cross_compiling" = yes; then
9466 gcc_cv_func_mbstowcs_works
=yes
9468 cat >conftest.
$ac_ext <<_ACEOF
9471 cat confdefs.h
>>conftest.
$ac_ext
9472 cat >>conftest.
$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9481 rm -f conftest
$ac_exeext
9482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9483 (eval $ac_link) 2>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; }; then
9492 gcc_cv_func_mbstowcs_works
=yes
9494 echo "$as_me: program exited with status $ac_status" >&5
9495 echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.
$ac_ext >&5
9499 gcc_cv_func_mbstowcs_works
=no
9501 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9504 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9505 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9506 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9508 cat >>confdefs.h
<<\_ACEOF
9509 #define HAVE_WORKING_MBSTOWCS 1
9515 echo "$as_me:$LINENO: checking for ssize_t" >&5
9516 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9517 if test "${ac_cv_type_ssize_t+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 cat >conftest.
$ac_ext <<_ACEOF
9523 cat confdefs.h
>>conftest.
$ac_ext
9524 cat >>conftest.
$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 $ac_includes_default
9532 if (sizeof (ssize_t))
9538 rm -f conftest.
$ac_objext
9539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9540 (eval $ac_compile) 2>conftest.er1
9542 grep -v '^ *+' conftest.er1
>conftest.err
9544 cat conftest.err
>&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
9547 { ac_try
='test -z "$ac_c_werror_flag"
9548 || test ! -s conftest.err'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; } &&
9554 { ac_try
='test -s conftest.$ac_objext'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_cv_type_ssize_t
=yes
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.
$ac_ext >&5
9565 ac_cv_type_ssize_t
=no
9567 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9569 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9570 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9571 if test $ac_cv_type_ssize_t = yes; then
9575 cat >>confdefs.h
<<_ACEOF
9582 # Try to determine the array type of the second argument of getgroups
9583 # for the target system (int or gid_t).
9584 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9585 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9586 if test "${ac_cv_type_uid_t+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9589 cat >conftest.
$ac_ext <<_ACEOF
9592 cat confdefs.h
>>conftest.
$ac_ext
9593 cat >>conftest.
$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 #include <sys/types.h>
9598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9599 $EGREP "uid_t" >/dev
/null
2>&1; then
9600 ac_cv_type_uid_t
=yes
9607 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9608 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9609 if test $ac_cv_type_uid_t = no
; then
9611 cat >>confdefs.h
<<\_ACEOF
9616 cat >>confdefs.h
<<\_ACEOF
9622 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9623 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9624 if test "${ac_cv_type_getgroups+set}" = set; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 if test "$cross_compiling" = yes; then
9628 ac_cv_type_getgroups
=cross
9630 cat >conftest.
$ac_ext <<_ACEOF
9633 cat confdefs.h
>>conftest.
$ac_ext
9634 cat >>conftest.
$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636 /* Thanks to Mike Rendell for this test. */
9637 #include <sys/types.h>
9640 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9647 union { gid_t gval; long lval; } val;
9650 for (i = 0; i < NGID; i++)
9651 gidset[i] = val.gval;
9652 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9654 /* Exit non-zero if getgroups seems to require an array of ints. This
9655 happens when gid_t is short but getgroups modifies an array of ints. */
9656 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9659 rm -f conftest
$ac_exeext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9661 (eval $ac_link) 2>&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_cv_type_getgroups
=gid_t
9672 echo "$as_me: program exited with status $ac_status" >&5
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.
$ac_ext >&5
9677 ac_cv_type_getgroups
=int
9679 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9681 if test $ac_cv_type_getgroups = cross
; then
9682 cat >conftest.
$ac_ext <<_ACEOF
9685 cat confdefs.h
>>conftest.
$ac_ext
9686 cat >>conftest.
$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9692 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9693 ac_cv_type_getgroups
=gid_t
9695 ac_cv_type_getgroups
=int
9701 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9702 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9704 cat >>confdefs.h
<<_ACEOF
9705 #define GETGROUPS_T $ac_cv_type_getgroups
9709 if test "${target}" = "${build}"; then
9710 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9713 # This condition may need some tweaking. It should include all
9714 # targets where the array type of the second argument of getgroups
9715 # is int and the type of gid_t is not equivalent to int.
9716 *-*-sunos* |
*-*-ultrix*)
9717 TARGET_GETGROUPS_T
=int
9720 TARGET_GETGROUPS_T
=gid_t
9727 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9728 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9729 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 cat >conftest.
$ac_ext <<_ACEOF
9735 cat confdefs.h
>>conftest.
$ac_ext
9736 cat >>conftest.
$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9738 #include <sys/mman.h>
9740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9741 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9743 grep -v '^ *+' conftest.er1
>conftest.err
9745 cat conftest.err
>&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } >/dev
/null
; then
9748 if test -s conftest.err
; then
9749 ac_cpp_err
=$ac_c_preproc_warn_flag
9750 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9757 if test -z "$ac_cpp_err"; then
9758 ac_cv_header_sys_mman_h
=yes
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.
$ac_ext >&5
9763 ac_cv_header_sys_mman_h
=no
9765 rm -f conftest.err conftest.
$ac_ext
9767 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9768 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9769 if test $ac_cv_header_sys_mman_h = yes; then
9770 gcc_header_sys_mman_h
=yes
9772 gcc_header_sys_mman_h
=no
9775 echo "$as_me:$LINENO: checking for mmap" >&5
9776 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9777 if test "${ac_cv_func_mmap+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 cat >conftest.
$ac_ext <<_ACEOF
9783 cat confdefs.h
>>conftest.
$ac_ext
9784 cat >>conftest.
$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9788 #define mmap innocuous_mmap
9790 /* System header to define __stub macros and hopefully few prototypes,
9791 which can conflict with char mmap (); below.
9792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9793 <limits.h> exists even on freestanding compilers. */
9796 # include <limits.h>
9798 # include <assert.h>
9803 /* Override any gcc2 internal prototype to avoid an error. */
9808 /* We use char because int might match the return type of a gcc2
9809 builtin and then its argument prototype would still apply. */
9811 /* The GNU C library defines this for functions which it implements
9812 to always fail with ENOSYS. Some functions are actually named
9813 something starting with __ and the normal name is an alias. */
9814 #if defined (__stub_mmap) || defined (__stub___mmap)
9817 char (*f) () = mmap;
9831 rm -f conftest.
$ac_objext conftest
$ac_exeext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833 (eval $ac_link) 2>conftest.er1
9835 grep -v '^ *+' conftest.er1
>conftest.err
9837 cat conftest.err
>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try
='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try
='test -s conftest$ac_exeext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.
$ac_ext >&5
9860 rm -f conftest.err conftest.
$ac_objext \
9861 conftest
$ac_exeext conftest.
$ac_ext
9863 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9864 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9865 if test $ac_cv_func_mmap = yes; then
9871 if test "$gcc_header_sys_mman_h" != yes \
9872 ||
test "$gcc_func_mmap" != yes; then
9873 gcc_cv_func_mmap_file
=no
9874 gcc_cv_func_mmap_dev_zero
=no
9875 gcc_cv_func_mmap_anon
=no
9877 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9878 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9879 if test "${gcc_cv_func_mmap_file+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 # Add a system to this blacklist if
9883 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9884 # memory area containing the same data that you'd get if you applied
9885 # read() to the same fd. The only system known to have a problem here
9886 # is VMS, where text files have record structure.
9889 gcc_cv_func_mmap_file
=no
;;
9891 gcc_cv_func_mmap_file
=yes;;
9894 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9895 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9896 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9897 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9898 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 # Add a system to this blacklist if it has mmap() but /dev/zero
9902 # does not exist, or if mmapping /dev/zero does not give anonymous
9903 # zeroed pages with both the following properties:
9904 # 1. If you map N consecutive pages in with one call, and then
9905 # unmap any subset of those pages, the pages that were not
9906 # explicitly unmapped remain accessible.
9907 # 2. If you map two adjacent blocks of memory and then unmap them
9908 # both at once, they must both go away.
9909 # Systems known to be in this category are Windows (all variants),
9912 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9913 gcc_cv_func_mmap_dev_zero
=no
;;
9915 gcc_cv_func_mmap_dev_zero
=yes;;
9918 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9919 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9921 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9922 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9923 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9924 if test "${gcc_cv_decl_map_anon+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 cat >conftest.
$ac_ext <<_ACEOF
9930 cat confdefs.h
>>conftest.
$ac_ext
9931 cat >>conftest.
$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9933 #include <sys/types.h>
9934 #include <sys/mman.h>
9937 #ifndef MAP_ANONYMOUS
9938 #define MAP_ANONYMOUS MAP_ANON
9944 int n = MAP_ANONYMOUS;
9949 rm -f conftest.
$ac_objext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9951 (eval $ac_compile) 2>conftest.er1
9953 grep -v '^ *+' conftest.er1
>conftest.err
9955 cat conftest.err
>&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try
='test -z "$ac_c_werror_flag"
9959 || test ! -s conftest.err'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try
='test -s conftest.$ac_objext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9971 gcc_cv_decl_map_anon
=yes
9973 echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.
$ac_ext >&5
9976 gcc_cv_decl_map_anon
=no
9978 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9980 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9981 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9983 if test $gcc_cv_decl_map_anon = no
; then
9984 gcc_cv_func_mmap_anon
=no
9986 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9987 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9988 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9992 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9993 # doesn't give anonymous zeroed pages with the same properties listed
9994 # above for use of /dev/zero.
9995 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9997 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9998 gcc_cv_func_mmap_anon
=no
;;
10000 gcc_cv_func_mmap_anon
=yes;;
10003 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10004 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10008 if test $gcc_cv_func_mmap_file = yes; then
10010 cat >>confdefs.h
<<\_ACEOF
10011 #define HAVE_MMAP_FILE 1
10015 if test $gcc_cv_func_mmap_dev_zero = yes; then
10017 cat >>confdefs.h
<<\_ACEOF
10018 #define HAVE_MMAP_DEV_ZERO 1
10022 if test $gcc_cv_func_mmap_anon = yes; then
10024 cat >>confdefs.h
<<\_ACEOF
10025 #define HAVE_MMAP_ANON 1
10033 # Under VMS, vfork works very differently than on Unix. The standard test
10034 # won't work, and it isn't easily adaptable. It makes more sense to
10036 ac_cv_func_vfork_works
=yes
10039 echo "$as_me:$LINENO: checking for pid_t" >&5
10040 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10041 if test "${ac_cv_type_pid_t+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 cat >conftest.
$ac_ext <<_ACEOF
10047 cat confdefs.h
>>conftest.
$ac_ext
10048 cat >>conftest.
$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10050 $ac_includes_default
10056 if (sizeof (pid_t))
10062 rm -f conftest.
$ac_objext
10063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10064 (eval $ac_compile) 2>conftest.er1
10066 grep -v '^ *+' conftest.er1
>conftest.err
10068 cat conftest.err
>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try
='test -z "$ac_c_werror_flag"
10072 || test ! -s conftest.err'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; } &&
10078 { ac_try
='test -s conftest.$ac_objext'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_cv_type_pid_t
=yes
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.
$ac_ext >&5
10089 ac_cv_type_pid_t
=no
10091 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10093 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10094 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10095 if test $ac_cv_type_pid_t = yes; then
10099 cat >>confdefs.h
<<_ACEOF
10107 for ac_header
in unistd.h vfork.h
10109 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10110 echo "$as_me:$LINENO: checking for $ac_header" >&5
10111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 cat >conftest.
$ac_ext <<_ACEOF
10118 cat confdefs.h
>>conftest.
$ac_ext
10119 cat >>conftest.
$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 #include <$ac_header>
10123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10124 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10126 grep -v '^ *+' conftest.er1
>conftest.err
10128 cat conftest.err
>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } >/dev
/null
; then
10131 if test -s conftest.err
; then
10132 ac_cpp_err
=$ac_c_preproc_warn_flag
10133 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10140 if test -z "$ac_cpp_err"; then
10141 eval "$as_ac_Header=yes"
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.
$ac_ext >&5
10146 eval "$as_ac_Header=no"
10148 rm -f conftest.err conftest.
$ac_ext
10150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10153 cat >>confdefs.h
<<_ACEOF
10154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10162 for ac_func
in fork vfork
10164 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10165 echo "$as_me:$LINENO: checking for $ac_func" >&5
10166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10167 if eval "test \"\${$as_ac_var+set}\" = set"; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 cat >conftest.
$ac_ext <<_ACEOF
10173 cat confdefs.h
>>conftest.
$ac_ext
10174 cat >>conftest.
$ac_ext <<_ACEOF
10175 /* end confdefs.h. */
10176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10178 #define $ac_func innocuous_$ac_func
10180 /* System header to define __stub macros and hopefully few prototypes,
10181 which can conflict with char $ac_func (); below.
10182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10183 <limits.h> exists even on freestanding compilers. */
10186 # include <limits.h>
10188 # include <assert.h>
10193 /* Override any gcc2 internal prototype to avoid an error. */
10198 /* We use char because int might match the return type of a gcc2
10199 builtin and then its argument prototype would still apply. */
10201 /* The GNU C library defines this for functions which it implements
10202 to always fail with ENOSYS. Some functions are actually named
10203 something starting with __ and the normal name is an alias. */
10204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10207 char (*f) () = $ac_func;
10216 return f != $ac_func;
10221 rm -f conftest.
$ac_objext conftest
$ac_exeext
10222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10223 (eval $ac_link) 2>conftest.er1
10225 grep -v '^ *+' conftest.er1
>conftest.err
10227 cat conftest.err
>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } &&
10230 { ac_try
='test -z "$ac_c_werror_flag"
10231 || test ! -s conftest.err'
10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233 (eval $ac_try) 2>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; } &&
10237 { ac_try
='test -s conftest$ac_exeext'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
10243 eval "$as_ac_var=yes"
10245 echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.
$ac_ext >&5
10248 eval "$as_ac_var=no"
10250 rm -f conftest.err conftest.
$ac_objext \
10251 conftest
$ac_exeext conftest.
$ac_ext
10253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10255 if test `eval echo '${'$as_ac_var'}'` = yes; then
10256 cat >>confdefs.h
<<_ACEOF
10257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10263 if test "x$ac_cv_func_fork" = xyes
; then
10264 echo "$as_me:$LINENO: checking for working fork" >&5
10265 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10266 if test "${ac_cv_func_fork_works+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 if test "$cross_compiling" = yes; then
10270 ac_cv_func_fork_works
=cross
10272 cat >conftest.
$ac_ext <<_ACEOF
10273 /* By Ruediger Kuhlmann. */
10274 #include <sys/types.h>
10276 # include <unistd.h>
10278 /* Some systems only have a dummy stub for fork() */
10286 rm -f conftest
$ac_exeext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10288 (eval $ac_link) 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10297 ac_cv_func_fork_works
=yes
10299 echo "$as_me: program exited with status $ac_status" >&5
10300 echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.
$ac_ext >&5
10303 ( exit $ac_status )
10304 ac_cv_func_fork_works
=no
10306 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10309 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10310 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10313 ac_cv_func_fork_works
=$ac_cv_func_fork
10315 if test "x$ac_cv_func_fork_works" = xcross
; then
10317 *-*-amigaos* |
*-*-msdosdjgpp*)
10318 # Override, as these systems have only a dummy fork() stub
10319 ac_cv_func_fork_works
=no
10322 ac_cv_func_fork_works
=yes
10325 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10326 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10328 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10329 if test "x$ac_cv_func_vfork" = xyes
; then
10330 echo "$as_me:$LINENO: checking for working vfork" >&5
10331 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10332 if test "${ac_cv_func_vfork_works+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 if test "$cross_compiling" = yes; then
10336 ac_cv_func_vfork_works
=cross
10338 cat >conftest.
$ac_ext <<_ACEOF
10341 cat confdefs.h
>>conftest.
$ac_ext
10342 cat >>conftest.
$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10344 /* Thanks to Paul Eggert for this test. */
10346 #include <stdlib.h>
10347 #include <sys/types.h>
10348 #include <sys/stat.h>
10349 #include <sys/wait.h>
10351 # include <unistd.h>
10354 # include <vfork.h>
10356 /* On some sparc systems, changes by the child to local and incoming
10357 argument registers are propagated back to the parent. The compiler
10358 is told about this with #include <vfork.h>, but some compilers
10359 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10360 static variable whose address is put into a register that is
10361 clobbered by the vfork. */
10364 sparc_address_test (int arg)
10366 sparc_address_test (arg) int arg;
10369 static pid_t child;
10387 pid_t parent = getpid ();
10390 sparc_address_test (0);
10395 /* Here is another test for sparc vfork register problems. This
10396 test uses lots of local variables, at least as many local
10397 variables as main has allocated so far including compiler
10398 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10399 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10400 reuse the register of parent for one of the local variables,
10401 since it will think that parent can't possibly be used any more
10402 in this routine. Assigning to the local variable will thus
10403 munge parent in the parent process. */
10405 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10406 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10407 /* Convince the compiler that p..p7 are live; otherwise, it might
10408 use the same hardware register for all 8 local variables. */
10409 if (p != p1 || p != p2 || p != p3 || p != p4
10410 || p != p5 || p != p6 || p != p7)
10413 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10414 from child file descriptors. If the child closes a descriptor
10415 before it execs or exits, this munges the parent's descriptor
10416 as well. Test for this by closing stdout in the child. */
10417 _exit(close(fileno(stdout)) != 0);
10422 while (wait(&status) != child)
10425 /* Was there some problem with vforking? */
10428 /* Did the child fail? (This shouldn't happen.) */
10431 /* Did the vfork/compiler bug occur? */
10432 || parent != getpid()
10434 /* Did the file descriptor bug occur? */
10435 || fstat(fileno(stdout), &st) != 0
10440 rm -f conftest
$ac_exeext
10441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10442 (eval $ac_link) 2>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
10451 ac_cv_func_vfork_works
=yes
10453 echo "$as_me: program exited with status $ac_status" >&5
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.
$ac_ext >&5
10457 ( exit $ac_status )
10458 ac_cv_func_vfork_works
=no
10460 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10463 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10464 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10467 if test "x$ac_cv_func_fork_works" = xcross
; then
10468 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10469 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10470 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10473 if test "x$ac_cv_func_vfork_works" = xyes
; then
10475 cat >>confdefs.h
<<\_ACEOF
10476 #define HAVE_WORKING_VFORK 1
10481 cat >>confdefs.h
<<\_ACEOF
10486 if test "x$ac_cv_func_fork_works" = xyes
; then
10488 cat >>confdefs.h
<<\_ACEOF
10489 #define HAVE_WORKING_FORK 1
10496 if test "X$prefix" = "XNONE"; then
10497 acl_final_prefix
="$ac_default_prefix"
10499 acl_final_prefix
="$prefix"
10501 if test "X$exec_prefix" = "XNONE"; then
10502 acl_final_exec_prefix
='${prefix}'
10504 acl_final_exec_prefix
="$exec_prefix"
10506 acl_save_prefix
="$prefix"
10507 prefix
="$acl_final_prefix"
10508 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10509 prefix
="$acl_save_prefix"
10512 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10513 if test "${with_gnu_ld+set}" = set; then
10514 withval
="$with_gnu_ld"
10515 test "$withval" = no || with_gnu_ld
=yes
10519 # Prepare PATH_SEPARATOR.
10520 # The user is always right.
10521 if test "${PATH_SEPARATOR+set}" != set; then
10522 echo "#! /bin/sh" >conf$$.sh
10523 echo "exit 0" >>conf$$.sh
10525 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10533 if test "$GCC" = yes; then
10534 # Check if gcc -print-prog-name=ld gives a path.
10535 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10536 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10539 # gcc leaves a trailing carriage return which upsets mingw
10540 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10542 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10545 # Accept absolute paths.
10546 [\\/]* |
[A-Za-z
]:[\\/]*)
10547 re_direlt
='/[^/][^/]*/\.\./'
10548 # Canonicalize the path of ld
10549 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10550 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10551 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10553 test -z "$LD" && LD
="$ac_prog"
10556 # If it fails, then pretend we aren't using GCC.
10560 # If it is relative, then search for the first ld in PATH.
10561 with_gnu_ld
=unknown
10564 elif test "$with_gnu_ld" = yes; then
10565 echo "$as_me:$LINENO: checking for GNU ld" >&5
10566 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10568 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10569 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10571 if test "${acl_cv_path_LD+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 if test -z "$LD"; then
10575 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10576 for ac_dir
in $PATH; do
10577 test -z "$ac_dir" && ac_dir
=.
10578 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10579 acl_cv_path_LD
="$ac_dir/$ac_prog"
10580 # Check to see if the program is GNU ld. I'd rather use --version,
10581 # but apparently some GNU ld's only accept -v.
10582 # Break only if it was the GNU/non-GNU ld that we prefer.
10583 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10584 test "$with_gnu_ld" != no
&& break
10586 test "$with_gnu_ld" != yes && break
10592 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10596 LD
="$acl_cv_path_LD"
10597 if test -n "$LD"; then
10598 echo "$as_me:$LINENO: result: $LD" >&5
10599 echo "${ECHO_T}$LD" >&6
10601 echo "$as_me:$LINENO: result: no" >&5
10602 echo "${ECHO_T}no" >&6
10604 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10605 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10606 { (exit 1); exit 1; }; }
10607 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10608 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10609 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10613 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10614 acl_cv_prog_gnu_ld
=yes
10616 acl_cv_prog_gnu_ld
=no
10619 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10620 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10621 with_gnu_ld
=$acl_cv_prog_gnu_ld
10625 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10626 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10627 if test "${acl_cv_rpath+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10632 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10634 rm -f .
/conftest.sh
10638 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10639 echo "${ECHO_T}$acl_cv_rpath" >&6
10641 libext
="$acl_cv_libext"
10642 shlibext
="$acl_cv_shlibext"
10643 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10644 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10645 hardcode_direct
="$acl_cv_hardcode_direct"
10646 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10647 # Check whether --enable-rpath or --disable-rpath was given.
10648 if test "${enable_rpath+set}" = set; then
10649 enableval
="$enable_rpath"
10663 acl_save_prefix
="$prefix"
10664 prefix
="$acl_final_prefix"
10665 acl_save_exec_prefix
="$exec_prefix"
10666 exec_prefix
="$acl_final_exec_prefix"
10668 eval additional_includedir
=\"$includedir\"
10669 eval additional_libdir
=\"$libdir\"
10671 exec_prefix
="$acl_save_exec_prefix"
10672 prefix
="$acl_save_prefix"
10675 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10676 if test "${with_libiconv_prefix+set}" = set; then
10677 withval
="$with_libiconv_prefix"
10679 if test "X$withval" = "Xno"; then
10682 if test "X$withval" = "X"; then
10684 acl_save_prefix
="$prefix"
10685 prefix
="$acl_final_prefix"
10686 acl_save_exec_prefix
="$exec_prefix"
10687 exec_prefix
="$acl_final_exec_prefix"
10689 eval additional_includedir
=\"$includedir\"
10690 eval additional_libdir
=\"$libdir\"
10692 exec_prefix
="$acl_save_exec_prefix"
10693 prefix
="$acl_save_prefix"
10696 additional_includedir
="$withval/include"
10697 additional_libdir
="$withval/lib"
10707 names_already_handled
=
10708 names_next_round
='iconv '
10709 while test -n "$names_next_round"; do
10710 names_this_round
="$names_next_round"
10712 for name
in $names_this_round; do
10714 for n
in $names_already_handled; do
10715 if test "$n" = "$name"; then
10716 already_handled
=yes
10720 if test -z "$already_handled"; then
10721 names_already_handled
="$names_already_handled $name"
10722 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10723 eval value
=\"\
$HAVE_LIB$uppername\"
10724 if test -n "$value"; then
10725 if test "$value" = yes; then
10726 eval value
=\"\
$LIB$uppername\"
10727 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10728 eval value
=\"\
$LTLIB$uppername\"
10729 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10738 if test $use_additional = yes; then
10739 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10740 found_dir
="$additional_libdir"
10741 found_so
="$additional_libdir/lib$name.$shlibext"
10742 if test -f "$additional_libdir/lib$name.la"; then
10743 found_la
="$additional_libdir/lib$name.la"
10746 if test -f "$additional_libdir/lib$name.$libext"; then
10747 found_dir
="$additional_libdir"
10748 found_a
="$additional_libdir/lib$name.$libext"
10749 if test -f "$additional_libdir/lib$name.la"; then
10750 found_la
="$additional_libdir/lib$name.la"
10755 if test "X$found_dir" = "X"; then
10756 for x
in $LDFLAGS $LTLIBICONV; do
10758 acl_save_prefix
="$prefix"
10759 prefix
="$acl_final_prefix"
10760 acl_save_exec_prefix
="$exec_prefix"
10761 exec_prefix
="$acl_final_exec_prefix"
10763 exec_prefix
="$acl_save_exec_prefix"
10764 prefix
="$acl_save_prefix"
10768 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10769 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10771 found_so
="$dir/lib$name.$shlibext"
10772 if test -f "$dir/lib$name.la"; then
10773 found_la
="$dir/lib$name.la"
10776 if test -f "$dir/lib$name.$libext"; then
10778 found_a
="$dir/lib$name.$libext"
10779 if test -f "$dir/lib$name.la"; then
10780 found_la
="$dir/lib$name.la"
10786 if test "X$found_dir" != "X"; then
10791 if test "X$found_dir" != "X"; then
10792 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10793 if test "X$found_so" != "X"; then
10794 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10795 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10798 for x
in $ltrpathdirs; do
10799 if test "X$x" = "X$found_dir"; then
10804 if test -z "$haveit"; then
10805 ltrpathdirs
="$ltrpathdirs $found_dir"
10807 if test "$hardcode_direct" = yes; then
10808 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10810 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10811 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10813 for x
in $rpathdirs; do
10814 if test "X$x" = "X$found_dir"; then
10819 if test -z "$haveit"; then
10820 rpathdirs
="$rpathdirs $found_dir"
10824 for x
in $LDFLAGS $LIBICONV; do
10826 acl_save_prefix
="$prefix"
10827 prefix
="$acl_final_prefix"
10828 acl_save_exec_prefix
="$exec_prefix"
10829 exec_prefix
="$acl_final_exec_prefix"
10831 exec_prefix
="$acl_save_exec_prefix"
10832 prefix
="$acl_save_prefix"
10834 if test "X$x" = "X-L$found_dir"; then
10839 if test -z "$haveit"; then
10840 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10842 if test "$hardcode_minus_L" != no
; then
10843 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10845 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10851 if test "X$found_a" != "X"; then
10852 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10854 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10857 additional_includedir
=
10858 case "$found_dir" in
10860 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10861 additional_includedir
="$basedir/include"
10864 if test "X$additional_includedir" != "X"; then
10865 if test "X$additional_includedir" != "X/usr/include"; then
10867 if test "X$additional_includedir" = "X/usr/local/include"; then
10868 if test -n "$GCC"; then
10870 linux
*) haveit
=yes;;
10874 if test -z "$haveit"; then
10875 for x
in $CPPFLAGS $INCICONV; do
10877 acl_save_prefix
="$prefix"
10878 prefix
="$acl_final_prefix"
10879 acl_save_exec_prefix
="$exec_prefix"
10880 exec_prefix
="$acl_final_exec_prefix"
10882 exec_prefix
="$acl_save_exec_prefix"
10883 prefix
="$acl_save_prefix"
10885 if test "X$x" = "X-I$additional_includedir"; then
10890 if test -z "$haveit"; then
10891 if test -d "$additional_includedir"; then
10892 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10898 if test -n "$found_la"; then
10899 save_libdir
="$libdir"
10900 case "$found_la" in
10901 */* |
*\\*) .
"$found_la" ;;
10902 *) .
"./$found_la" ;;
10904 libdir
="$save_libdir"
10905 for dep
in $dependency_libs; do
10908 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10909 if test "X$additional_libdir" != "X/usr/lib"; then
10911 if test "X$additional_libdir" = "X/usr/local/lib"; then
10912 if test -n "$GCC"; then
10914 linux
*) haveit
=yes;;
10918 if test -z "$haveit"; then
10920 for x
in $LDFLAGS $LIBICONV; do
10922 acl_save_prefix
="$prefix"
10923 prefix
="$acl_final_prefix"
10924 acl_save_exec_prefix
="$exec_prefix"
10925 exec_prefix
="$acl_final_exec_prefix"
10927 exec_prefix
="$acl_save_exec_prefix"
10928 prefix
="$acl_save_prefix"
10930 if test "X$x" = "X-L$additional_libdir"; then
10935 if test -z "$haveit"; then
10936 if test -d "$additional_libdir"; then
10937 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10941 for x
in $LDFLAGS $LTLIBICONV; do
10943 acl_save_prefix
="$prefix"
10944 prefix
="$acl_final_prefix"
10945 acl_save_exec_prefix
="$exec_prefix"
10946 exec_prefix
="$acl_final_exec_prefix"
10948 exec_prefix
="$acl_save_exec_prefix"
10949 prefix
="$acl_save_prefix"
10951 if test "X$x" = "X-L$additional_libdir"; then
10956 if test -z "$haveit"; then
10957 if test -d "$additional_libdir"; then
10958 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10965 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10966 if test "$enable_rpath" != no
; then
10968 for x
in $rpathdirs; do
10969 if test "X$x" = "X$dir"; then
10974 if test -z "$haveit"; then
10975 rpathdirs
="$rpathdirs $dir"
10978 for x
in $ltrpathdirs; do
10979 if test "X$x" = "X$dir"; then
10984 if test -z "$haveit"; then
10985 ltrpathdirs
="$ltrpathdirs $dir"
10990 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10993 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10996 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10997 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11003 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11004 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11010 if test "X$rpathdirs" != "X"; then
11011 if test -n "$hardcode_libdir_separator"; then
11013 for found_dir
in $rpathdirs; do
11014 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11016 acl_save_libdir
="$libdir"
11018 eval flag
=\"$hardcode_libdir_flag_spec\"
11019 libdir
="$acl_save_libdir"
11020 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11022 for found_dir
in $rpathdirs; do
11023 acl_save_libdir
="$libdir"
11024 libdir
="$found_dir"
11025 eval flag
=\"$hardcode_libdir_flag_spec\"
11026 libdir
="$acl_save_libdir"
11027 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11031 if test "X$ltrpathdirs" != "X"; then
11032 for found_dir
in $ltrpathdirs; do
11033 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11043 am_save_CPPFLAGS
="$CPPFLAGS"
11045 for element
in $INCICONV; do
11047 for x
in $CPPFLAGS; do
11049 acl_save_prefix
="$prefix"
11050 prefix
="$acl_final_prefix"
11051 acl_save_exec_prefix
="$exec_prefix"
11052 exec_prefix
="$acl_final_exec_prefix"
11054 exec_prefix
="$acl_save_exec_prefix"
11055 prefix
="$acl_save_prefix"
11057 if test "X$x" = "X$element"; then
11062 if test -z "$haveit"; then
11063 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11068 echo "$as_me:$LINENO: checking for iconv" >&5
11069 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11070 if test "${am_cv_func_iconv+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 am_cv_func_iconv
="no, consider installing GNU libiconv"
11076 cat >conftest.
$ac_ext <<_ACEOF
11079 cat confdefs.h
>>conftest.
$ac_ext
11080 cat >>conftest.
$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11082 #include <stdlib.h>
11087 iconv_t cd = iconv_open("","");
11088 iconv(cd,NULL,NULL,NULL,NULL);
11094 rm -f conftest.
$ac_objext conftest
$ac_exeext
11095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11096 (eval $ac_link) 2>conftest.er1
11098 grep -v '^ *+' conftest.er1
>conftest.err
11100 cat conftest.err
>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
11103 { ac_try
='test -z "$ac_c_werror_flag"
11104 || test ! -s conftest.err'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; } &&
11110 { ac_try
='test -s conftest$ac_exeext'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
11116 am_cv_func_iconv
=yes
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.
$ac_ext >&5
11122 rm -f conftest.err conftest.
$ac_objext \
11123 conftest
$ac_exeext conftest.
$ac_ext
11124 if test "$am_cv_func_iconv" != yes; then
11125 am_save_LIBS
="$LIBS"
11126 LIBS
="$LIBS $LIBICONV"
11127 cat >conftest.
$ac_ext <<_ACEOF
11130 cat confdefs.h
>>conftest.
$ac_ext
11131 cat >>conftest.
$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 #include <stdlib.h>
11138 iconv_t cd = iconv_open("","");
11139 iconv(cd,NULL,NULL,NULL,NULL);
11145 rm -f conftest.
$ac_objext conftest
$ac_exeext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11147 (eval $ac_link) 2>conftest.er1
11149 grep -v '^ *+' conftest.er1
>conftest.err
11151 cat conftest.err
>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 { ac_try
='test -z "$ac_c_werror_flag"
11155 || test ! -s conftest.err'
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try
='test -s conftest$ac_exeext'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; }; then
11167 am_cv_lib_iconv
=yes
11168 am_cv_func_iconv
=yes
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.
$ac_ext >&5
11174 rm -f conftest.err conftest.
$ac_objext \
11175 conftest
$ac_exeext conftest.
$ac_ext
11176 LIBS
="$am_save_LIBS"
11180 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11181 echo "${ECHO_T}$am_cv_func_iconv" >&6
11182 if test "$am_cv_func_iconv" = yes; then
11184 cat >>confdefs.h
<<\_ACEOF
11185 #define HAVE_ICONV 1
11189 if test "$am_cv_lib_iconv" = yes; then
11190 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11191 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11192 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11193 echo "${ECHO_T}$LIBICONV" >&6
11195 CPPFLAGS
="$am_save_CPPFLAGS"
11202 if test "$am_cv_func_iconv" = yes; then
11203 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11204 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11205 if test "${am_cv_proto_iconv+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 cat >conftest.
$ac_ext <<_ACEOF
11212 cat confdefs.h
>>conftest.
$ac_ext
11213 cat >>conftest.
$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11216 #include <stdlib.h>
11222 #if defined(__STDC__) || defined(__cplusplus)
11223 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11236 rm -f conftest.
$ac_objext
11237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11238 (eval $ac_compile) 2>conftest.er1
11240 grep -v '^ *+' conftest.er1
>conftest.err
11242 cat conftest.err
>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } &&
11245 { ac_try
='test -z "$ac_c_werror_flag"
11246 || test ! -s conftest.err'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; } &&
11252 { ac_try
='test -s conftest.$ac_objext'
11253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; }; then
11258 am_cv_proto_iconv_arg1
=""
11260 echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.
$ac_ext >&5
11263 am_cv_proto_iconv_arg1
="const"
11265 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11266 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);"
11269 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11270 echo "$as_me:$LINENO: result: ${ac_t:-
11271 }$am_cv_proto_iconv" >&5
11272 echo "${ECHO_T}${ac_t:-
11273 }$am_cv_proto_iconv" >&6
11275 cat >>confdefs.h
<<_ACEOF
11276 #define ICONV_CONST $am_cv_proto_iconv_arg1
11281 # Until we have in-tree GNU iconv:
11286 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11287 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11288 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 cat >conftest.
$ac_ext <<_ACEOF
11294 cat confdefs.h
>>conftest.
$ac_ext
11295 cat >>conftest.
$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11297 #include <locale.h>
11306 rm -f conftest.
$ac_objext conftest
$ac_exeext
11307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>conftest.er1
11310 grep -v '^ *+' conftest.er1
>conftest.err
11312 cat conftest.err
>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try
='test -z "$ac_c_werror_flag"
11316 || test ! -s conftest.err'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try
='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 am_cv_val_LC_MESSAGES
=yes
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.
$ac_ext >&5
11333 am_cv_val_LC_MESSAGES
=no
11335 rm -f conftest.err conftest.
$ac_objext \
11336 conftest
$ac_exeext conftest.
$ac_ext
11338 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11339 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11340 if test $am_cv_val_LC_MESSAGES = yes; then
11342 cat >>confdefs.h
<<\_ACEOF
11343 #define HAVE_LC_MESSAGES 1
11350 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11351 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11352 if test "${am_cv_langinfo_codeset+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 cat >conftest.
$ac_ext <<_ACEOF
11358 cat confdefs.h
>>conftest.
$ac_ext
11359 cat >>conftest.
$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 #include <langinfo.h>
11365 char* cs = nl_langinfo(CODESET);
11370 rm -f conftest.
$ac_objext conftest
$ac_exeext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11372 (eval $ac_link) 2>conftest.er1
11374 grep -v '^ *+' conftest.er1
>conftest.err
11376 cat conftest.err
>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } &&
11379 { ac_try
='test -z "$ac_c_werror_flag"
11380 || test ! -s conftest.err'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; } &&
11386 { ac_try
='test -s conftest$ac_exeext'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 am_cv_langinfo_codeset
=yes
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.
$ac_ext >&5
11397 am_cv_langinfo_codeset
=no
11399 rm -f conftest.err conftest.
$ac_objext \
11400 conftest
$ac_exeext conftest.
$ac_ext
11403 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11404 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11405 if test $am_cv_langinfo_codeset = yes; then
11407 cat >>confdefs.h
<<\_ACEOF
11408 #define HAVE_LANGINFO_CODESET 1
11414 # We will need to find libiberty.h and ansidecl.h
11415 saved_CFLAGS
="$CFLAGS"
11416 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11456 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11457 strsignal strstr strverscmp \
11458 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11459 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
11461 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11462 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11463 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11464 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11467 cat >conftest.
$ac_ext <<_ACEOF
11470 cat confdefs.h
>>conftest.
$ac_ext
11471 cat >>conftest.
$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11474 #define $ac_tr_decl 1
11476 #include "ansidecl.h"
11477 #include "system.h"
11483 char *(*pfn) = (char *(*)) $ac_func ;
11489 rm -f conftest.
$ac_objext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11491 (eval $ac_compile) 2>conftest.er1
11493 grep -v '^ *+' conftest.er1
>conftest.err
11495 cat conftest.err
>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try
='test -z "$ac_c_werror_flag"
11499 || test ! -s conftest.err'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try
='test -s conftest.$ac_objext'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 eval "gcc_cv_have_decl_$ac_func=yes"
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.
$ac_ext >&5
11516 eval "gcc_cv_have_decl_$ac_func=no"
11518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11521 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11522 echo "$as_me:$LINENO: result: yes" >&5
11523 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11524 #define $ac_tr_decl 1
11528 echo "$as_me:$LINENO: result: no" >&5
11529 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11530 #define $ac_tr_decl 0
11541 for ac_func
in getrlimit setrlimit getrusage
11543 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11544 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11545 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11546 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 cat >conftest.
$ac_ext <<_ACEOF
11552 cat confdefs.h
>>conftest.
$ac_ext
11553 cat >>conftest.
$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11556 #define $ac_tr_decl 1
11558 #include "ansidecl.h"
11559 #include "system.h"
11560 #ifdef HAVE_SYS_RESOURCE_H
11561 #include <sys/resource.h>
11569 char *(*pfn) = (char *(*)) $ac_func ;
11575 rm -f conftest.
$ac_objext
11576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11577 (eval $ac_compile) 2>conftest.er1
11579 grep -v '^ *+' conftest.er1
>conftest.err
11581 cat conftest.err
>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try
='test -z "$ac_c_werror_flag"
11585 || test ! -s conftest.err'
11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; } &&
11591 { ac_try
='test -s conftest.$ac_objext'
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; }; then
11597 eval "gcc_cv_have_decl_$ac_func=yes"
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.
$ac_ext >&5
11602 eval "gcc_cv_have_decl_$ac_func=no"
11604 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11607 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11608 echo "$as_me:$LINENO: result: yes" >&5
11609 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11610 #define $ac_tr_decl 1
11614 echo "$as_me:$LINENO: result: no" >&5
11615 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11616 #define $ac_tr_decl 0
11624 cat >conftest.
$ac_ext <<_ACEOF
11627 cat confdefs.h
>>conftest.
$ac_ext
11628 cat >>conftest.
$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11631 #include "ansidecl.h"
11632 #include "system.h"
11633 #ifdef HAVE_SYS_RESOURCE_H
11634 #include <sys/resource.h>
11645 rm -f conftest.
$ac_objext
11646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11647 (eval $ac_compile) 2>conftest.er1
11649 grep -v '^ *+' conftest.er1
>conftest.err
11651 cat conftest.err
>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } &&
11654 { ac_try
='test -z "$ac_c_werror_flag"
11655 || test ! -s conftest.err'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try
='test -s conftest.$ac_objext'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }; then
11669 echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.
$ac_ext >&5
11673 cat >>confdefs.h
<<\_ACEOF
11674 #define rlim_t long
11678 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11680 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11681 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11682 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11683 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11685 for ac_func
in ldgetname
11687 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11688 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11689 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11690 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 cat >conftest.
$ac_ext <<_ACEOF
11696 cat confdefs.h
>>conftest.
$ac_ext
11697 cat >>conftest.
$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11700 #define $ac_tr_decl 1
11702 #include "ansidecl.h"
11703 #include "system.h"
11704 #ifdef HAVE_LDFCN_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 times
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 #ifdef HAVE_SYS_TIMES_H
11791 #include <sys/times.h>
11799 char *(*pfn) = (char *(*)) $ac_func ;
11805 rm -f conftest.
$ac_objext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11807 (eval $ac_compile) 2>conftest.er1
11809 grep -v '^ *+' conftest.er1
>conftest.err
11811 cat conftest.err
>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
11814 { ac_try
='test -z "$ac_c_werror_flag"
11815 || test ! -s conftest.err'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; } &&
11821 { ac_try
='test -s conftest.$ac_objext'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 eval "gcc_cv_have_decl_$ac_func=yes"
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.
$ac_ext >&5
11832 eval "gcc_cv_have_decl_$ac_func=no"
11834 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11837 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11838 echo "$as_me:$LINENO: result: yes" >&5
11839 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11840 #define $ac_tr_decl 1
11844 echo "$as_me:$LINENO: result: no" >&5
11845 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11846 #define $ac_tr_decl 0
11855 for ac_func
in sigaltstack
11857 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11858 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11859 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11860 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 cat >conftest.
$ac_ext <<_ACEOF
11866 cat confdefs.h
>>conftest.
$ac_ext
11867 cat >>conftest.
$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11870 #define $ac_tr_decl 1
11872 #include "ansidecl.h"
11873 #include "system.h"
11874 #include <signal.h>
11881 char *(*pfn) = (char *(*)) $ac_func ;
11887 rm -f conftest.
$ac_objext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11889 (eval $ac_compile) 2>conftest.er1
11891 grep -v '^ *+' conftest.er1
>conftest.err
11893 cat conftest.err
>&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
11896 { ac_try
='test -z "$ac_c_werror_flag"
11897 || test ! -s conftest.err'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try
='test -s conftest.$ac_objext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 eval "gcc_cv_have_decl_$ac_func=yes"
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.
$ac_ext >&5
11914 eval "gcc_cv_have_decl_$ac_func=no"
11916 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11919 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11920 echo "$as_me:$LINENO: result: yes" >&5
11921 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11922 #define $ac_tr_decl 1
11926 echo "$as_me:$LINENO: result: no" >&5
11927 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11928 #define $ac_tr_decl 0
11936 # More time-related stuff.
11937 echo "$as_me:$LINENO: checking for struct tms" >&5
11938 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11939 if test "${ac_cv_struct_tms+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 cat >conftest.
$ac_ext <<_ACEOF
11946 cat confdefs.h
>>conftest.
$ac_ext
11947 cat >>conftest.
$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11950 #include "ansidecl.h"
11951 #include "system.h"
11952 #ifdef HAVE_SYS_TIMES_H
11953 #include <sys/times.h>
11964 rm -f conftest.
$ac_objext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966 (eval $ac_compile) 2>conftest.er1
11968 grep -v '^ *+' conftest.er1
>conftest.err
11970 cat conftest.err
>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try
='test -z "$ac_c_werror_flag"
11974 || test ! -s conftest.err'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try
='test -s conftest.$ac_objext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 ac_cv_struct_tms
=yes
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.
$ac_ext >&5
11991 ac_cv_struct_tms
=no
11993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11995 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11996 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11997 if test $ac_cv_struct_tms = yes; then
11999 cat >>confdefs.h
<<\_ACEOF
12000 #define HAVE_STRUCT_TMS 1
12005 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12006 # revisit after autoconf 2.50.
12007 echo "$as_me:$LINENO: checking for clock_t" >&5
12008 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12009 if test "${gcc_cv_type_clock_t+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 cat >conftest.
$ac_ext <<_ACEOF
12016 cat confdefs.h
>>conftest.
$ac_ext
12017 cat >>conftest.
$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12020 #include "ansidecl.h"
12021 #include "system.h"
12031 rm -f conftest.
$ac_objext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12033 (eval $ac_compile) 2>conftest.er1
12035 grep -v '^ *+' conftest.er1
>conftest.err
12037 cat conftest.err
>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
12040 { ac_try
='test -z "$ac_c_werror_flag"
12041 || test ! -s conftest.err'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try
='test -s conftest.$ac_objext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 gcc_cv_type_clock_t
=yes
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.
$ac_ext >&5
12058 gcc_cv_type_clock_t
=no
12060 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12062 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12063 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12064 if test $gcc_cv_type_clock_t = yes; then
12066 cat >>confdefs.h
<<\_ACEOF
12067 #define HAVE_CLOCK_T 1
12072 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12073 CFLAGS
="$saved_CFLAGS"
12075 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12076 if test "${enable_initfini_array+set}" = set; then
12077 enableval
="$enable_initfini_array"
12081 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12082 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12083 if test "${gcc_cv_initfini_array+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 if test "$cross_compiling" = yes; then
12087 gcc_cv_initfini_array
=no
12089 cat >conftest.
$ac_ext <<_ACEOF
12092 cat confdefs.h
>>conftest.
$ac_ext
12093 cat >>conftest.
$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12097 int main (void) { return x; }
12098 int foo (void) { x = 0; }
12099 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12101 rm -f conftest
$ac_exeext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12103 (eval $ac_link) 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
12112 gcc_cv_initfini_array
=yes
12114 echo "$as_me: program exited with status $ac_status" >&5
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.
$ac_ext >&5
12118 ( exit $ac_status )
12119 gcc_cv_initfini_array
=no
12121 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12124 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12125 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12126 enable_initfini_array
=$gcc_cv_initfini_array
12129 if test $enable_initfini_array = yes; then
12131 cat >>confdefs.h
<<\_ACEOF
12132 #define HAVE_INITFINI_ARRAY 1
12137 # mkdir takes a single argument on some systems.
12138 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12139 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12140 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12143 cat >conftest.
$ac_ext <<_ACEOF
12146 cat confdefs.h
>>conftest.
$ac_ext
12147 cat >>conftest.
$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12150 #include <sys/types.h>
12151 #ifdef HAVE_SYS_STAT_H
12152 # include <sys/stat.h>
12154 #ifdef HAVE_UNISTD_H
12155 # include <unistd.h>
12157 #ifdef HAVE_DIRECT_H
12158 # include <direct.h>
12168 rm -f conftest.
$ac_objext
12169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12170 (eval $ac_compile) 2>conftest.er1
12172 grep -v '^ *+' conftest.er1
>conftest.err
12174 cat conftest.err
>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try
='test -z "$ac_c_werror_flag"
12178 || test ! -s conftest.err'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; } &&
12184 { ac_try
='test -s conftest.$ac_objext'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; }; then
12190 gcc_cv_mkdir_takes_one_arg
=no
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.
$ac_ext >&5
12195 gcc_cv_mkdir_takes_one_arg
=yes
12197 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12199 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12200 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12201 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12203 cat >>confdefs.h
<<\_ACEOF
12204 #define MKDIR_TAKES_ONE_ARG 1
12216 # With Setjmp/Longjmp based exception handling.
12217 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12218 if test "${enable_sjlj_exceptions+set}" = set; then
12219 enableval
="$enable_sjlj_exceptions"
12220 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12222 cat >>confdefs.h
<<_ACEOF
12223 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12228 # For platforms with the unwind ABI which includes an unwind library,
12229 # libunwind, we can choose to use the system libunwind.
12231 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12232 if test "${with_system_libunwind+set}" = set; then
12233 withval
="$with_system_libunwind"
12237 # config.gcc also contains tests of with_system_libunwind.
12238 if test x
$with_system_libunwind = xyes
; then
12240 cat >>confdefs.h
<<\_ACEOF
12241 #define HAVE_GETIPINFO 1
12246 # --------------------------------------------------------
12247 # Build, host, and target specific configuration fragments
12248 # --------------------------------------------------------
12250 # Collect build-machine-specific information.
12251 .
${srcdir}/config.build
12253 # Collect host-machine-specific information.
12254 .
${srcdir}/config.
host
12258 # Collect target-machine-specific information.
12259 .
${srcdir}/config.gcc
12261 extra_objs
="${host_extra_objs} ${extra_objs}"
12262 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12264 # Default the target-machine variables that were not explicitly set.
12265 if test x
"$tm_file" = x
12266 then tm_file
=$cpu_type/$cpu_type.h
; fi
12268 if test x
"$extra_headers" = x
12269 then extra_headers
=; fi
12271 if test x
$md_file = x
12272 then md_file
=$cpu_type/$cpu_type.md
; fi
12274 if test x
$out_file = x
12275 then out_file
=$cpu_type/$cpu_type.c
; fi
12277 if test x
"$tmake_file" = x
12278 then tmake_file
=$cpu_type/t-
$cpu_type
12281 if test x
"$dwarf2" = xyes
12282 then tm_file
="$tm_file tm-dwarf2.h"
12285 # Say what files are being used for the output code and MD file.
12286 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12287 echo "Using \`$srcdir/config/$md_file' as machine description file."
12289 # If any of the xm_file variables contain nonexistent files, warn
12290 # about them and drop them.
12293 for x
in $build_xm_file; do
12294 if test -f $srcdir/config
/$x
12296 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12297 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12300 build_xm_file
="$bx"
12303 for x
in $host_xm_file; do
12304 if test -f $srcdir/config
/$x
12306 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12307 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12313 for x
in $xm_file; do
12314 if test -f $srcdir/config
/$x
12316 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12317 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12323 for f
in $tm_file; do
12326 if test $count = ax
; then
12327 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12329 echo "Using the following target machine macro files:"
12330 for f
in $tm_file; do
12331 echo " $srcdir/config/$f"
12335 if test x
$need_64bit_hwint = xyes
; then
12337 cat >>confdefs.h
<<\_ACEOF
12338 #define NEED_64BIT_HOST_WIDE_INT 1
12343 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12345 cat >>confdefs.h
<<\_ACEOF
12346 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12352 for f
in $host_xm_file; do
12355 if test $count = a
; then
12357 elif test $count = ax
; then
12358 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12360 echo "Using the following host machine macro files:"
12361 for f
in $host_xm_file; do
12362 echo " $srcdir/config/$f"
12365 echo "Using ${out_host_hook_obj} for host machine hooks."
12367 if test "$host_xm_file" != "$build_xm_file"; then
12369 for f
in $build_xm_file; do
12372 if test $count = a
; then
12374 elif test $count = ax
; then
12375 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12377 echo "Using the following build machine macro files:"
12378 for f
in $build_xm_file; do
12379 echo " $srcdir/config/$f"
12385 powerpc
*-*-darwin*)
12386 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12387 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12388 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 cat >conftest.
$ac_ext <<_ACEOF
12393 #include <sys/cdefs.h>
12394 #include <sys/signal.h>
12395 #include <ucontext.h>
12396 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12399 rm -f conftest.
$ac_objext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12401 (eval $ac_compile) 2>conftest.er1
12403 grep -v '^ *+' conftest.er1
>conftest.err
12405 cat conftest.err
>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try
='test -z "$ac_c_werror_flag"
12409 || test ! -s conftest.err'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try
='test -s conftest.$ac_objext'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 gcc_cv_mcontext_underscores
=no
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.
$ac_ext >&5
12426 gcc_cv_mcontext_underscores
=yes
12428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12430 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12431 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12432 if test $gcc_cv_mcontext_underscores = yes; then
12434 cat >>confdefs.h
<<\_ACEOF
12435 #define HAS_MCONTEXT_T_UNDERSCORES
12446 # Check if a valid thread package
12447 case ${enable_threads} in
12450 target_thread_file
='single'
12454 target_thread_file
='single'
12456 aix | dce | gnat | irix | posix | posix95 | rtems | \
12457 single | solaris | vxworks | win32 | mipssde
)
12458 target_thread_file
=${enable_threads}
12461 echo "${enable_threads} is an unknown thread package" 1>&2
12466 if test x
${thread_file} = x
; then
12467 # No thread file set by target-specific clauses in config.gcc,
12468 # so use file chosen by default logic above
12469 thread_file
=${target_thread_file}
12472 # Make gthr-default.h if we have a thread file.
12474 if test $thread_file != single
; then
12475 rm -f gthr-default.h
12476 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12477 gthread_flags
=-DHAVE_GTHR_DEFAULT
12486 if test x
$enable___cxa_atexit = xyes || \
12487 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12488 if test x
$host = x
$target; then
12490 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12491 # keyed to flag_use_cxa_atexit
12496 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12497 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12498 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 cat >conftest.
$ac_ext <<_ACEOF
12504 cat confdefs.h
>>conftest.
$ac_ext
12505 cat >>conftest.
$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12507 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12509 #define __cxa_atexit innocuous___cxa_atexit
12511 /* System header to define __stub macros and hopefully few prototypes,
12512 which can conflict with char __cxa_atexit (); below.
12513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12514 <limits.h> exists even on freestanding compilers. */
12517 # include <limits.h>
12519 # include <assert.h>
12522 #undef __cxa_atexit
12524 /* Override any gcc2 internal prototype to avoid an error. */
12529 /* We use char because int might match the return type of a gcc2
12530 builtin and then its argument prototype would still apply. */
12531 char __cxa_atexit ();
12532 /* The GNU C library defines this for functions which it implements
12533 to always fail with ENOSYS. Some functions are actually named
12534 something starting with __ and the normal name is an alias. */
12535 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12538 char (*f) () = __cxa_atexit;
12547 return f != __cxa_atexit;
12552 rm -f conftest.
$ac_objext conftest
$ac_exeext
12553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12554 (eval $ac_link) 2>conftest.er1
12556 grep -v '^ *+' conftest.er1
>conftest.err
12558 cat conftest.err
>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try
='test -z "$ac_c_werror_flag"
12562 || test ! -s conftest.err'
12563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564 (eval $ac_try) 2>&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; } &&
12568 { ac_try
='test -s conftest$ac_exeext'
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; }; then
12574 ac_cv_func___cxa_atexit
=yes
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.
$ac_ext >&5
12579 ac_cv_func___cxa_atexit
=no
12581 rm -f conftest.err conftest.
$ac_objext \
12582 conftest
$ac_exeext conftest.
$ac_ext
12584 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12585 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12586 if test $ac_cv_func___cxa_atexit = yes; then
12589 echo "__cxa_atexit can't be enabled on this target"
12595 # We can't check for __cxa_atexit when building a cross, so assume
12599 if test x
$use_cxa_atexit = xyes
; then
12601 cat >>confdefs.h
<<\_ACEOF
12602 #define DEFAULT_USE_CXA_ATEXIT 2
12609 if test x
$with_system_libunwind = xyes
; then
12610 if test x
$host = x
$target; then
12611 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12612 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12613 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 ac_func_search_save_LIBS
=$LIBS
12617 ac_cv_search__Unwind_GetIPInfo
=no
12618 cat >conftest.
$ac_ext <<_ACEOF
12621 cat confdefs.h
>>conftest.
$ac_ext
12622 cat >>conftest.
$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12625 /* Override any gcc2 internal prototype to avoid an error. */
12629 /* We use char because int might match the return type of a gcc2
12630 builtin and then its argument prototype would still apply. */
12631 char _Unwind_GetIPInfo ();
12635 _Unwind_GetIPInfo ();
12640 rm -f conftest.
$ac_objext conftest
$ac_exeext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12642 (eval $ac_link) 2>conftest.er1
12644 grep -v '^ *+' conftest.er1
>conftest.err
12646 cat conftest.err
>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try
='test -z "$ac_c_werror_flag"
12650 || test ! -s conftest.err'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try
='test -s conftest$ac_exeext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_cv_search__Unwind_GetIPInfo
="none required"
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.
$ac_ext >&5
12668 rm -f conftest.err conftest.
$ac_objext \
12669 conftest
$ac_exeext conftest.
$ac_ext
12670 if test "$ac_cv_search__Unwind_GetIPInfo" = no
; then
12671 for ac_lib
in unwind
; do
12672 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12673 cat >conftest.
$ac_ext <<_ACEOF
12676 cat confdefs.h
>>conftest.
$ac_ext
12677 cat >>conftest.
$ac_ext <<_ACEOF
12678 /* end confdefs.h. */
12680 /* Override any gcc2 internal prototype to avoid an error. */
12684 /* We use char because int might match the return type of a gcc2
12685 builtin and then its argument prototype would still apply. */
12686 char _Unwind_GetIPInfo ();
12690 _Unwind_GetIPInfo ();
12695 rm -f conftest.
$ac_objext conftest
$ac_exeext
12696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12697 (eval $ac_link) 2>conftest.er1
12699 grep -v '^ *+' conftest.er1
>conftest.err
12701 cat conftest.err
>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
12704 { ac_try
='test -z "$ac_c_werror_flag"
12705 || test ! -s conftest.err'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try
='test -s conftest$ac_exeext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 ac_cv_search__Unwind_GetIPInfo
="-l$ac_lib"
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.
$ac_ext >&5
12724 rm -f conftest.err conftest.
$ac_objext \
12725 conftest
$ac_exeext conftest.
$ac_ext
12728 LIBS
=$ac_func_search_save_LIBS
12730 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12731 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12732 if test "$ac_cv_search__Unwind_GetIPInfo" != no
; then
12733 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS
="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12742 if test x
$use_getipinfo = xyes
; then
12744 cat >>confdefs.h
<<\_ACEOF
12745 #define HAVE_GETIPINFO 1
12749 echo "The system unwind library does not support _Unwind_GetIPInfo."
12752 # Look for a file containing extra machine modes.
12753 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12754 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12757 cat >>confdefs.h
<<_ACEOF
12758 #define EXTRA_MODES_FILE "config/$extra_modes"
12763 # Convert extra_options into a form suitable for Makefile use.
12765 for f
in $extra_options; do
12766 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12770 # auto-host.h is the file containing items generated by autoconf and is
12771 # the first file included by config.h.
12772 # If host=build, it is correct to have bconfig include auto-host.h
12773 # as well. If host!=build, we are in error and need to do more
12774 # work to find out the build config parameters.
12775 if test x
$host = x
$build
12777 build_auto
=auto-host.h
12779 # We create a subdir, then run autoconf in the subdir.
12780 # To prevent recursion we set host and build for the new
12781 # invocation of configure to the build for this invocation
12788 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12789 *) realsrcdir
=..
/${srcdir};;
12791 saved_CFLAGS
="${CFLAGS}"
12792 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12793 ${realsrcdir}/configure \
12794 --enable-languages=${enable_languages-all} \
12795 --target=$target_alias --host=$build_alias --build=$build_alias
12796 CFLAGS
="${saved_CFLAGS}"
12798 # We just finished tests for the build machine, so rename
12799 # the file auto-build.h in the gcc directory.
12800 mv auto-host.h ..
/auto-build.h
12803 build_auto
=auto-build.h
12807 tm_file
="${tm_file} defaults.h"
12808 tm_p_file
="${tm_p_file} tm-preds.h"
12809 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12810 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12811 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12812 # put this back in temporarily.
12813 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12819 # Compile in configure arguments.
12820 if test -f configargs.h
; then
12821 # Being re-configured.
12822 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12823 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12825 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12828 # Double all backslashes and backslash all quotes to turn
12829 # gcc_config_arguments into a C string.
12830 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12831 $gcc_config_arguments
12833 gcc_config_arguments_str
=`cat conftest.out`
12836 cat > configargs.h
<<EOF
12837 /* Generated automatically. */
12838 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12839 static const char thread_model[] = "$thread_file";
12841 static const struct {
12842 const char *name, *value;
12843 } configure_default_options[] = $configure_default_options;
12846 # Internationalization
12847 # If we haven't got the data from the intl directory,
12848 # assume NLS is disabled.
12857 if test -f ..
/intl
/config.intl
; then
12858 . ..
/intl
/config.intl
12860 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12861 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12862 if test x
"$USE_NLS" != xyes
; then
12863 echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6
12866 echo "$as_me:$LINENO: result: yes" >&5
12867 echo "${ECHO_T}yes" >&6
12869 cat >>confdefs.h
<<\_ACEOF
12870 #define ENABLE_NLS 1
12874 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12875 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12876 # Look for .po and .gmo files in the source directory.
12879 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12880 # If there aren't any .gmo files the shell will give us the
12881 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12883 case "$cat" in *\
**)
12886 # The quadruple backslash is collapsed to a double backslash
12887 # by the backticks, then collapsed again by the double quotes,
12888 # leaving us with one backslash in the sed expression (right
12889 # before the dot that mustn't act as a wildcard).
12890 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12891 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12892 # The user is allowed to set LINGUAS to a list of languages to
12893 # install catalogs for. If it's empty that means "all of them."
12894 if test "x$LINGUAS" = x
; then
12895 CATALOGS
="$CATALOGS $cat"
12896 XLINGUAS
="$XLINGUAS $lang"
12898 case "$LINGUAS" in *$lang*)
12899 CATALOGS
="$CATALOGS $cat"
12900 XLINGUAS
="$XLINGUAS $lang"
12905 LINGUAS
="$XLINGUAS"
12906 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12907 echo "${ECHO_T}$LINGUAS" >&6
12920 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12921 # -liconv on the link line twice.
12922 case "$LIBINTL" in *$LIBICONV*)
12926 # Check whether --enable-secureplt or --disable-secureplt was given.
12927 if test "${enable_secureplt+set}" = set; then
12928 enableval
="$enable_secureplt"
12932 # Windows32 Registry support for specifying GCC installation paths.
12933 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12934 if test "${enable_win32_registry+set}" = set; then
12935 enableval
="$enable_win32_registry"
12940 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12941 if test "x$enable_win32_registry" != xno
; then
12942 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12943 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12944 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 ac_func_search_save_LIBS
=$LIBS
12948 ac_cv_search_RegOpenKeyExA
=no
12949 cat >conftest.
$ac_ext <<_ACEOF
12952 cat confdefs.h
>>conftest.
$ac_ext
12953 cat >>conftest.
$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12956 /* Override any gcc2 internal prototype to avoid an error. */
12960 /* We use char because int might match the return type of a gcc2
12961 builtin and then its argument prototype would still apply. */
12962 char RegOpenKeyExA ();
12971 rm -f conftest.
$ac_objext conftest
$ac_exeext
12972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12973 (eval $ac_link) 2>conftest.er1
12975 grep -v '^ *+' conftest.er1
>conftest.err
12977 cat conftest.err
>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try
='test -z "$ac_c_werror_flag"
12981 || test ! -s conftest.err'
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; } &&
12987 { ac_try
='test -s conftest$ac_exeext'
12988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; }; then
12993 ac_cv_search_RegOpenKeyExA
="none required"
12995 echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.
$ac_ext >&5
12999 rm -f conftest.err conftest.
$ac_objext \
13000 conftest
$ac_exeext conftest.
$ac_ext
13001 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
13002 for ac_lib
in advapi32
; do
13003 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13004 cat >conftest.
$ac_ext <<_ACEOF
13007 cat confdefs.h
>>conftest.
$ac_ext
13008 cat >>conftest.
$ac_ext <<_ACEOF
13009 /* end confdefs.h. */
13011 /* Override any gcc2 internal prototype to avoid an error. */
13015 /* We use char because int might match the return type of a gcc2
13016 builtin and then its argument prototype would still apply. */
13017 char RegOpenKeyExA ();
13026 rm -f conftest.
$ac_objext conftest
$ac_exeext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13028 (eval $ac_link) 2>conftest.er1
13030 grep -v '^ *+' conftest.er1
>conftest.err
13032 cat conftest.err
>&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
13035 { ac_try
='test -z "$ac_c_werror_flag"
13036 || test ! -s conftest.err'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try
='test -s conftest$ac_exeext'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.
$ac_ext >&5
13055 rm -f conftest.err conftest.
$ac_objext \
13056 conftest
$ac_exeext conftest.
$ac_ext
13059 LIBS
=$ac_func_search_save_LIBS
13061 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13062 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13063 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
13064 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
13067 enable_win32_registry
=no
13072 if test "x$enable_win32_registry" != xno
; then
13074 cat >>confdefs.h
<<\_ACEOF
13075 #define ENABLE_WIN32_REGISTRY 1
13079 if test "x$enable_win32_registry" != xyes \
13080 && test "x$enable_win32_registry" != x
; then
13082 cat >>confdefs.h
<<_ACEOF
13083 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13091 # Get an absolute path to the GCC top-level source directory
13092 holddir
=`${PWDCMD-pwd}`
13094 topdir
=`${PWDCMD-pwd}`
13097 # Conditionalize the makefile for this host machine.
13099 for f
in ${host_xmake_file}
13101 if test -f ${srcdir}/config
/$f
13103 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13107 # Conditionalize the makefile for this target machine.
13109 for f
in ${tmake_file}
13111 if test -f ${srcdir}/config
/$f
13113 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13116 tmake_file
="${tmake_file_}"
13118 # This is a terrible hack which will go away some day.
13119 host_cc_for_libada
=${CC}
13122 out_object_file
=`basename $out_file .c`.o
13124 tm_file_list
="options.h"
13125 tm_include_list
="options.h"
13126 for f
in $tm_file; do
13129 f
=`echo $f | sed 's/^..//'`
13130 tm_file_list
="${tm_file_list} $f"
13131 tm_include_list
="${tm_include_list} $f"
13134 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13135 tm_include_list
="${tm_include_list} $f"
13138 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13139 tm_include_list
="${tm_include_list} config/$f"
13146 for f
in $tm_p_file; do
13149 tm_p_file_list
="${tm_p_file_list} $f"
13150 tm_p_include_list
="${tm_p_include_list} $f"
13153 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13154 tm_p_include_list
="${tm_p_include_list} config/$f"
13160 for f
in $xm_file; do
13163 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13164 xm_include_list
="${xm_include_list} $f"
13167 xm_file_list
="${xm_file_list} $f"
13168 xm_include_list
="${xm_include_list} $f"
13171 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13172 xm_include_list
="${xm_include_list} config/$f"
13178 host_xm_include_list
=
13179 for f
in $host_xm_file; do
13182 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13183 host_xm_include_list
="${host_xm_include_list} $f"
13186 host_xm_file_list
="${host_xm_file_list} $f"
13187 host_xm_include_list
="${host_xm_include_list} $f"
13190 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13191 host_xm_include_list
="${host_xm_include_list} config/$f"
13196 build_xm_file_list
=
13197 for f
in $build_xm_file; do
13200 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13201 build_xm_include_list
="${build_xm_include_list} $f"
13203 auto-build.h | auto-host.h
)
13204 build_xm_file_list
="${build_xm_file_list} $f"
13205 build_xm_include_list
="${build_xm_include_list} $f"
13208 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13209 build_xm_include_list
="${build_xm_include_list} config/$f"
13214 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13215 # cross-compiler which does not use the native headers and libraries.
13216 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13219 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13221 if test "x$with_build_sysroot" != x
; then
13222 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13224 # This value is used, even on a native system, because
13225 # CROSS_SYSTEM_HEADER_DIR is just
13226 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13227 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13230 if test x
$host != x
$target
13232 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13234 SYSTEM_HEADER_DIR
=$build_system_header_dir
13235 case "$host","$target" in
13236 # Darwin crosses can use the host system's libraries and headers,
13237 # because of the fat library support. Of course, it must be the
13238 # same version of Darwin on both sides. Allow the user to
13239 # just say --target=foo-darwin without a version number to mean
13240 # "the version on this system".
13241 *-*-darwin*,*-*-darwin*)
13242 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13243 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13244 if test $hostos = $targetos -o $targetos = darwin
; then
13246 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13251 i?
86-*-*,x86_64-
*-* \
13252 | powerpc
*-*-*,powerpc64
*-*-*)
13253 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13255 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13256 SYSTEM_HEADER_DIR
=$build_system_header_dir
13259 # If this is a cross-compiler that does not
13260 # have its own set of headers then define
13263 # If this is using newlib, without having the headers available now,
13264 # then define inhibit_libc in LIBGCC2_CFLAGS.
13265 # This prevents libgcc2 from containing any code which requires libc
13268 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13269 test x
$with_newlib = xyes
; } &&
13270 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13275 # When building gcc with a cross-compiler, we need to adjust things so
13276 # that the generator programs are still built with the native compiler.
13277 # Also, we cannot run fixincludes or fix-header.
13279 # These are the normal (build=host) settings:
13280 CC_FOR_BUILD
='$(CC)'
13281 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13282 STMP_FIXINC
=stmp-fixinc
13284 # Possibly disable fixproto, on a per-target basis.
13285 case ${use_fixproto} in
13290 STMP_FIXPROTO
=stmp-fixproto
13295 # And these apply if build != host, or we are generating coverage data
13296 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13298 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13300 if test "x$TARGET_SYSTEM_ROOT" = x
; then
13301 if test "x$STMP_FIXPROTO" != x
; then
13302 STMP_FIXPROTO
=stmp-install-fixproto
13307 # Expand extra_headers to include complete path.
13308 # This substitutes for lots of t-* files.
13309 extra_headers_list
=
13310 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13311 for file in ${extra_headers} ; do
13312 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13315 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13316 if test x
"$use_gcc_tgmath" = xyes
13317 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13320 # Define collect2 in Makefile.
13321 case $host_can_use_collect2 in
13323 *) collect2
='collect2$(exeext)' ;;
13327 # Add a definition of USE_COLLECT2 if system wants one.
13328 case $use_collect2 in
13329 no
) use_collect2
= ;;
13332 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13333 xm_defines
="${xm_defines} USE_COLLECT2"
13334 case $host_can_use_collect2 in
13336 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13337 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13338 { (exit 1); exit 1; }; }
13344 # ---------------------------
13345 # Assembler & linker features
13346 # ---------------------------
13348 # Identify the assembler which will work hand-in-glove with the newly
13349 # built GCC, so that we can examine its features. This is the assembler
13350 # which will be driven by the driver program.
13352 # If build != host, and we aren't building gas in-tree, we identify a
13353 # build->target assembler and hope that it will have the same features
13354 # as the host->target assembler we'll be using.
13355 gcc_cv_gas_major_version
=
13356 gcc_cv_gas_minor_version
=
13357 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13359 if test "${gcc_cv_as+set}" = set; then
13363 if test -x "$DEFAULT_ASSEMBLER"; then
13364 gcc_cv_as
="$DEFAULT_ASSEMBLER"
13365 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
13366 && test -f ..
/gas
/Makefile \
13367 && test x
$build = x
$host; then
13368 gcc_cv_as
=..
/gas
/as-new
$build_exeext
13369 elif test -x as
$build_exeext; then
13370 # Build using assembler in the current directory.
13371 gcc_cv_as
=.
/as
$build_exeext
13372 elif test -x $AS_FOR_TARGET; then
13373 gcc_cv_as
="$AS_FOR_TARGET"
13375 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13376 set dummy
$AS_FOR_TARGET; ac_word
=$2
13377 echo "$as_me:$LINENO: checking for $ac_word" >&5
13378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13379 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13388 for as_dir
in $PATH
13391 test -z "$as_dir" && as_dir
=.
13392 for ac_exec_ext
in '' $ac_executable_extensions; do
13393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13394 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13404 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13406 if test -n "$gcc_cv_as"; then
13407 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13408 echo "${ECHO_T}$gcc_cv_as" >&6
13410 echo "$as_me:$LINENO: result: no" >&5
13411 echo "${ECHO_T}no" >&6
13418 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
13420 case "$ORIGINAL_AS_FOR_TARGET" in
13421 .
/as | .
/as
$build_exeext) ;;
13422 *) ac_config_files
="$ac_config_files as:exec-tool.in"
13426 echo "$as_me:$LINENO: checking what assembler to use" >&5
13427 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13428 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
13429 # Single tree build which includes gas. We want to prefer it
13430 # over whatever linker top-level may have detected, since
13431 # we'll use what we're building after installation anyway.
13432 echo "$as_me:$LINENO: result: newly built gas" >&5
13433 echo "${ECHO_T}newly built gas" >&6
13435 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13436 for f
in $gcc_cv_as_bfd_srcdir/configure \
13437 $gcc_cv_as_gas_srcdir/configure \
13438 $gcc_cv_as_gas_srcdir/configure.
in \
13439 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
13440 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13441 if test x
$gcc_cv_gas_version != x
; then
13445 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13446 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13447 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13448 case $gcc_cv_gas_patch_version in
13449 "") gcc_cv_gas_patch_version
="0" ;;
13451 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13452 + $gcc_cv_gas_minor_version \) \* 1000 \
13453 + $gcc_cv_gas_patch_version`
13455 in_tree_gas_is_elf
=no
13456 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
13457 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
13458 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
13460 in_tree_gas_is_elf
=yes
13463 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13464 echo "${ECHO_T}$gcc_cv_as" >&6
13468 # Identify the linker which will work hand-in-glove with the newly
13469 # built GCC, so that we can examine its features. This is the linker
13470 # which will be driven by the driver program.
13472 # If build != host, and we aren't building gas in-tree, we identify a
13473 # build->target linker and hope that it will have the same features
13474 # as the host->target linker we'll be using.
13475 gcc_cv_gld_major_version
=
13476 gcc_cv_gld_minor_version
=
13477 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13478 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13480 if test "${gcc_cv_ld+set}" = set; then
13484 if test -x "$DEFAULT_LINKER"; then
13485 gcc_cv_ld
="$DEFAULT_LINKER"
13486 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13487 && test -f ..
/ld
/Makefile \
13488 && test x
$build = x
$host; then
13489 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13490 elif test -x collect-ld
$build_exeext; then
13491 # Build using linker in the current directory.
13492 gcc_cv_ld
=.
/collect-ld
$build_exeext
13493 elif test -x $LD_FOR_TARGET; then
13494 gcc_cv_ld
="$LD_FOR_TARGET"
13496 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13497 set dummy
$LD_FOR_TARGET; ac_word
=$2
13498 echo "$as_me:$LINENO: checking for $ac_word" >&5
13499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13500 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13505 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13509 for as_dir
in $PATH
13512 test -z "$as_dir" && as_dir
=.
13513 for ac_exec_ext
in '' $ac_executable_extensions; do
13514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13515 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13525 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13527 if test -n "$gcc_cv_ld"; then
13528 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13529 echo "${ECHO_T}$gcc_cv_ld" >&6
13531 echo "$as_me:$LINENO: result: no" >&5
13532 echo "${ECHO_T}no" >&6
13539 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
13541 case "$ORIGINAL_LD_FOR_TARGET" in
13542 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
13543 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
13547 echo "$as_me:$LINENO: checking what linker to use" >&5
13548 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13549 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
13550 # Single tree build which includes ld. We want to prefer it
13551 # over whatever linker top-level may have detected, since
13552 # we'll use what we're building after installation anyway.
13553 echo "$as_me:$LINENO: result: newly built ld" >&5
13554 echo "${ECHO_T}newly built ld" >&6
13556 in_tree_ld_is_elf
=no
13557 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13558 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13559 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13560 in_tree_ld_is_elf
=yes
13562 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
13564 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13565 if test x
$gcc_cv_gld_version != x
; then
13569 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13570 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13572 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13573 echo "${ECHO_T}$gcc_cv_ld" >&6
13577 # Figure out what nm we will be using.
13578 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13579 if test "${gcc_cv_nm+set}" = set; then
13583 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13584 && test -f ..
/binutils
/Makefile \
13585 && test x
$build = x
$host; then
13586 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
13587 elif test -x nm
$build_exeext; then
13588 gcc_cv_nm
=.
/nm
$build_exeext
13589 elif test -x $NM_FOR_TARGET; then
13590 gcc_cv_nm
="$NM_FOR_TARGET"
13592 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13593 set dummy
$NM_FOR_TARGET; ac_word
=$2
13594 echo "$as_me:$LINENO: checking for $ac_word" >&5
13595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13596 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13605 for as_dir
in $PATH
13608 test -z "$as_dir" && as_dir
=.
13609 for ac_exec_ext
in '' $ac_executable_extensions; do
13610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13611 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13621 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13623 if test -n "$gcc_cv_nm"; then
13624 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13625 echo "${ECHO_T}$gcc_cv_nm" >&6
13627 echo "$as_me:$LINENO: result: no" >&5
13628 echo "${ECHO_T}no" >&6
13635 echo "$as_me:$LINENO: checking what nm to use" >&5
13636 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13637 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
13638 # Single tree build which includes binutils.
13639 echo "$as_me:$LINENO: result: newly built nm" >&5
13640 echo "${ECHO_T}newly built nm" >&6
13643 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13644 echo "${ECHO_T}$gcc_cv_nm" >&6
13648 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
13650 case "$ORIGINAL_NM_FOR_TARGET" in
13651 .
/nm | .
/nm
$build_exeext) ;;
13652 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
13657 # Figure out what objdump we will be using.
13658 if test "${gcc_cv_objdump+set}" = set; then
13662 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13663 && test -f ..
/binutils
/Makefile \
13664 && test x
$build = x
$host; then
13665 # Single tree build which includes binutils.
13666 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
13667 elif test -x objdump
$build_exeext; then
13668 gcc_cv_objdump
=.
/objdump
$build_exeext
13669 elif test -x $OBJDUMP_FOR_TARGET; then
13670 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
13672 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13673 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
13674 echo "$as_me:$LINENO: checking for $ac_word" >&5
13675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13676 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 case $gcc_cv_objdump in
13681 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13685 for as_dir
in $PATH
13688 test -z "$as_dir" && as_dir
=.
13689 for ac_exec_ext
in '' $ac_executable_extensions; do
13690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13691 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13701 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13703 if test -n "$gcc_cv_objdump"; then
13704 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13705 echo "${ECHO_T}$gcc_cv_objdump" >&6
13707 echo "$as_me:$LINENO: result: no" >&5
13708 echo "${ECHO_T}no" >&6
13715 echo "$as_me:$LINENO: checking what objdump to use" >&5
13716 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13717 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
13718 # Single tree build which includes binutils.
13719 echo "$as_me:$LINENO: result: newly built objdump" >&5
13720 echo "${ECHO_T}newly built objdump" >&6
13721 elif test x
$gcc_cv_objdump = x
; then
13722 echo "$as_me:$LINENO: result: not found" >&5
13723 echo "${ECHO_T}not found" >&6
13725 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13726 echo "${ECHO_T}$gcc_cv_objdump" >&6
13729 # Figure out what assembler alignment features are present.
13730 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13731 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13732 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 gcc_cv_as_balign_and_p2align
=no
13736 if test $in_tree_gas = yes; then
13737 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13738 then gcc_cv_as_balign_and_p2align
=yes
13740 elif test x
$gcc_cv_as != x
; then
13742 .p2align 2' > conftest.s
13743 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }
13750 gcc_cv_as_balign_and_p2align
=yes
13752 echo "configure: failed program was" >&5
13755 rm -f conftest.o conftest.s
13758 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13759 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13760 if test $gcc_cv_as_balign_and_p2align = yes; then
13762 cat >>confdefs.h
<<\_ACEOF
13763 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13768 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13769 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13770 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 gcc_cv_as_max_skip_p2align
=no
13774 if test $in_tree_gas = yes; then
13775 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13776 then gcc_cv_as_max_skip_p2align
=yes
13778 elif test x
$gcc_cv_as != x
; then
13779 echo '.p2align 4,,7' > conftest.s
13780 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }
13787 gcc_cv_as_max_skip_p2align
=yes
13789 echo "configure: failed program was" >&5
13792 rm -f conftest.o conftest.s
13795 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13796 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13797 if test $gcc_cv_as_max_skip_p2align = yes; then
13799 cat >>confdefs.h
<<\_ACEOF
13800 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13805 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13806 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13807 if test "${gcc_cv_as_literal16+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 gcc_cv_as_literal16
=no
13811 if test $in_tree_gas = yes; then
13812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13813 then gcc_cv_as_literal16
=yes
13815 elif test x
$gcc_cv_as != x
; then
13816 echo '.literal16' > conftest.s
13817 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }
13824 gcc_cv_as_literal16
=yes
13826 echo "configure: failed program was" >&5
13829 rm -f conftest.o conftest.s
13832 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13833 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13834 if test $gcc_cv_as_literal16 = yes; then
13836 cat >>confdefs.h
<<\_ACEOF
13837 #define HAVE_GAS_LITERAL16 1
13842 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13843 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13844 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 gcc_cv_as_subsection_m1
=no
13848 if test $in_tree_gas = yes; then
13849 if test $in_tree_gas_is_elf = yes \
13850 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13851 then gcc_cv_as_subsection_m1
=yes
13853 elif test x
$gcc_cv_as != x
; then
13854 echo 'conftest_label1: .word 0
13856 conftest_label2: .word 0
13857 .previous' > conftest.s
13858 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }
13865 if test x
$gcc_cv_nm != x
; then
13866 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13867 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13868 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13870 else gcc_cv_as_subsection_m1
=yes
13872 rm -f conftest.nm1 conftest.nm2
13875 echo "configure: failed program was" >&5
13878 rm -f conftest.o conftest.s
13881 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13882 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13883 if test $gcc_cv_as_subsection_m1 = yes; then
13885 cat >>confdefs.h
<<\_ACEOF
13886 #define HAVE_GAS_SUBSECTION_ORDERING 1
13891 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13892 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13893 if test "${gcc_cv_as_weak+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 if test $in_tree_gas = yes; then
13898 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13899 then gcc_cv_as_weak
=yes
13901 elif test x
$gcc_cv_as != x
; then
13902 echo ' .weak foobar' > conftest.s
13903 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }
13912 echo "configure: failed program was" >&5
13915 rm -f conftest.o conftest.s
13918 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13919 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13920 if test $gcc_cv_as_weak = yes; then
13922 cat >>confdefs.h
<<\_ACEOF
13923 #define HAVE_GAS_WEAK 1
13928 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13929 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13930 if test "${gcc_cv_as_weakref+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 gcc_cv_as_weakref
=no
13934 if test $in_tree_gas = yes; then
13935 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13936 then gcc_cv_as_weakref
=yes
13938 elif test x
$gcc_cv_as != x
; then
13939 echo ' .weakref foobar, barfnot' > conftest.s
13940 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }
13947 gcc_cv_as_weakref
=yes
13949 echo "configure: failed program was" >&5
13952 rm -f conftest.o conftest.s
13955 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13956 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13957 if test $gcc_cv_as_weakref = yes; then
13959 cat >>confdefs.h
<<\_ACEOF
13960 #define HAVE_GAS_WEAKREF 1
13965 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13966 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13967 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13970 gcc_cv_as_nsubspa_comdat
=no
13971 if test $in_tree_gas = yes; then
13972 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13973 then gcc_cv_as_nsubspa_comdat
=yes
13975 elif test x
$gcc_cv_as != x
; then
13976 echo ' .SPACE $TEXT$
13977 .NSUBSPA $CODE$,COMDAT' > conftest.s
13978 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }
13985 gcc_cv_as_nsubspa_comdat
=yes
13987 echo "configure: failed program was" >&5
13990 rm -f conftest.o conftest.s
13993 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13994 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13995 if test $gcc_cv_as_nsubspa_comdat = yes; then
13997 cat >>confdefs.h
<<\_ACEOF
13998 #define HAVE_GAS_NSUBSPA_COMDAT 1
14003 # .hidden needs to be supported in both the assembler and the linker,
14004 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14005 # This is irritatingly difficult to feature test for; we have to check the
14006 # date string after the version number. If we've got an in-tree
14007 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14009 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14010 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14011 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
14012 if test "${gcc_cv_as_hidden+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 gcc_cv_as_hidden
=no
14016 if test $in_tree_gas = yes; then
14017 if test $in_tree_gas_is_elf = yes \
14018 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14019 then gcc_cv_as_hidden
=yes
14021 elif test x
$gcc_cv_as != x
; then
14022 echo ' .hidden foobar
14023 foobar:' > conftest.s
14024 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026 (eval $ac_try) 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }
14031 gcc_cv_as_hidden
=yes
14033 echo "configure: failed program was" >&5
14036 rm -f conftest.o conftest.s
14039 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14040 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
14043 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14044 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
14045 if test "${gcc_cv_ld_hidden+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 if test $in_tree_ld = yes ; then
14049 gcc_cv_ld_hidden
=no
14050 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 \
14051 && test $in_tree_ld_is_elf = yes; then
14052 gcc_cv_ld_hidden
=yes
14055 gcc_cv_ld_hidden
=yes
14056 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14057 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
14058 ld_vers
=`echo $ld_ver | sed -n \
14059 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14060 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'`
14061 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
14062 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14063 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14064 if test 0"$ld_date" -lt 20020404; then
14065 if test -n "$ld_date"; then
14066 # If there was date string, but was earlier than 2002-04-04, fail
14067 gcc_cv_ld_hidden
=no
14068 elif test -z "$ld_vers"; then
14069 # If there was no date string nor ld version number, something is wrong
14070 gcc_cv_ld_hidden
=no
14072 test -z "$ld_vers_patch" && ld_vers_patch
=0
14073 if test "$ld_vers_major" -lt 2; then
14074 gcc_cv_ld_hidden
=no
14075 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14076 gcc_cv_ld_hidden
="no"
14077 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14078 gcc_cv_ld_hidden
=no
14083 case "${target}" in
14084 hppa64
*-*-hpux* | ia64
*-*-hpux*)
14085 gcc_cv_ld_hidden
=yes
14088 gcc_cv_ld_hidden
=no
14094 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14095 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14096 libgcc_visibility
=no
14099 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14100 libgcc_visibility
=yes
14102 cat >>confdefs.h
<<\_ACEOF
14103 #define HAVE_GAS_HIDDEN 1
14108 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14109 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14110 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14111 if test "${gcc_cv_as_leb128+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 gcc_cv_as_leb128
=no
14115 if test $in_tree_gas = yes; then
14116 if test $in_tree_gas_is_elf = yes \
14117 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14118 then gcc_cv_as_leb128
=yes
14120 elif test x
$gcc_cv_as != x
; then
14127 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129 (eval $ac_try) 2>&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; }
14134 # GAS versions before 2.11 do not support uleb128,
14135 # despite appearing to.
14136 # ??? There exists an elf-specific test that will crash
14137 # the assembler. Perhaps it's better to figure out whether
14138 # arbitrary sections are supported and try the test.
14139 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14140 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
14141 as_vers
=`echo $as_ver | sed -n \
14142 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14143 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
14144 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
14145 if test $as_major -eq 2 && test $as_minor -lt 11
14147 else gcc_cv_as_leb128
=yes
14151 echo "configure: failed program was" >&5
14154 rm -f conftest.o conftest.s
14157 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14158 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14159 if test $gcc_cv_as_leb128 = yes; then
14161 cat >>confdefs.h
<<\_ACEOF
14162 #define HAVE_AS_LEB128 1
14167 # GAS versions up to and including 2.11.0 may mis-optimize
14169 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14170 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14171 if test "${gcc_cv_as_eh_frame+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 gcc_cv_as_eh_frame
=no
14175 if test $in_tree_gas = yes; then
14176 if test $in_tree_gas_is_elf = yes \
14177 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14178 then gcc_cv_as_eh_frame
=yes
14180 elif test x
$gcc_cv_as != x
; then
14187 .section .eh_frame,"aw",@progbits
14189 .4byte .LECIE1-.LSCIE1
14203 .4byte .LEFDE1-.LASFDE1
14205 .4byte .LASFDE1-__FRAME_BEGIN__
14212 .LEFDE1:' > conftest.s
14213 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; }
14220 cat > conftest.lit
<<EOF
14221 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14222 0010 01000000 12000000 18000000 00000000 ................
14223 0020 08000000 04080000 0044 .........D
14225 cat > conftest.big
<<EOF
14226 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14227 0010 00000001 00000012 00000018 00000000 ................
14228 0020 00000008 04000000 0844 .........D
14230 # If the assembler didn't choke, and we can objdump,
14231 # and we got the correct data, then succeed.
14232 # The text in the here-document typically retains its unix-style line
14233 # endings, while the output of objdump will use host line endings.
14234 # Therefore, use diff -b for the comparisons.
14235 if test x
$gcc_cv_objdump != x \
14236 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
14237 |
tail -3 > conftest.got \
14238 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
14239 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
14241 gcc_cv_as_eh_frame
=yes
14242 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244 (eval $ac_try) 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; }; then
14248 gcc_cv_as_eh_frame
=buggy
14250 # Uh oh, what do we do now?
14251 gcc_cv_as_eh_frame
=no
14254 echo "configure: failed program was" >&5
14257 rm -f conftest.o conftest.s
14260 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14261 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14264 if test $gcc_cv_as_eh_frame = buggy
; then
14266 cat >>confdefs.h
<<\_ACEOF
14267 #define USE_AS_TRADITIONAL_FORMAT 1
14272 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14273 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14274 if test "${gcc_cv_as_shf_merge+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 gcc_cv_as_shf_merge
=no
14278 if test $in_tree_gas = yes; then
14279 if test $in_tree_gas_is_elf = yes \
14280 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14281 then gcc_cv_as_shf_merge
=yes
14283 elif test x
$gcc_cv_as != x
; then
14284 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14285 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }
14292 gcc_cv_as_shf_merge
=yes
14294 echo "configure: failed program was" >&5
14297 rm -f conftest.o conftest.s
14300 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14301 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14303 if test $gcc_cv_as_shf_merge = no
; then
14304 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14305 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14306 if test "${gcc_cv_as_shf_merge+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 gcc_cv_as_shf_merge
=no
14310 if test $in_tree_gas = yes; then
14311 if test $in_tree_gas_is_elf = yes \
14312 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14313 then gcc_cv_as_shf_merge
=yes
14315 elif test x
$gcc_cv_as != x
; then
14316 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14317 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }
14324 gcc_cv_as_shf_merge
=yes
14326 echo "configure: failed program was" >&5
14329 rm -f conftest.o conftest.s
14332 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14333 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14337 cat >>confdefs.h
<<_ACEOF
14338 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14342 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14343 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14344 if test "${gcc_cv_as_comdat_group+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 gcc_cv_as_comdat_group
=no
14348 if test $in_tree_gas = yes; then
14349 if test $in_tree_gas_is_elf = yes \
14350 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14351 then gcc_cv_as_comdat_group
=yes
14353 elif test x
$gcc_cv_as != x
; then
14354 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14355 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }
14362 gcc_cv_as_comdat_group
=yes
14364 echo "configure: failed program was" >&5
14367 rm -f conftest.o conftest.s
14370 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14371 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14373 if test $gcc_cv_as_comdat_group = yes; then
14374 gcc_cv_as_comdat_group_percent
=no
14376 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14377 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14378 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 gcc_cv_as_comdat_group_percent
=no
14382 if test $in_tree_gas = yes; then
14383 if test $in_tree_gas_is_elf = yes \
14384 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14385 then gcc_cv_as_comdat_group_percent
=yes
14387 elif test x
$gcc_cv_as != x
; then
14388 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14389 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; }
14396 gcc_cv_as_comdat_group_percent
=yes
14398 echo "configure: failed program was" >&5
14401 rm -f conftest.o conftest.s
14404 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14405 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14408 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
14410 if test 0"$ld_date" -lt 20050308; then
14411 if test -n "$ld_date"; then
14412 # If there was date string, but was earlier than 2005-03-08, fail
14414 elif test "$ld_vers_major" -lt 2; then
14416 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14421 # assume linkers other than GNU ld don't support COMDAT group
14424 if test $comdat_group = no
; then
14425 gcc_cv_as_comdat_group
=no
14426 gcc_cv_as_comdat_group_percent
=no
14429 cat >>confdefs.h
<<_ACEOF
14430 #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`
14434 # Thread-local storage - the check is heavily parametrized.
14442 .section ".tdata","awT",@progbits
14445 ldq $27,__tls_get_addr($29) !literal!1
14446 lda $16,foo($29) !tlsgd!1
14447 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14448 ldq $27,__tls_get_addr($29) !literal!2
14449 lda $16,foo($29) !tlsldm!2
14450 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14451 ldq $1,foo($29) !gotdtprel
14452 ldah $2,foo($29) !dtprelhi
14453 lda $3,foo($2) !dtprello
14454 lda $4,foo($29) !dtprel
14455 ldq $1,foo($29) !gottprel
14456 ldah $2,foo($29) !tprelhi
14457 lda $3,foo($2) !tprello
14458 lda $4,foo($29) !tprel'
14461 tls_as_opt
=--fatal-warnings
14465 .section ".tdata","awT",@progbits
14468 call #gettlsoff(x)'
14477 .section ".tdata","awT",@progbits
14481 addil LT%foo-$tls_gdidx$,gp
14482 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14485 addil LT%foo-$tls_ldidx$,gp
14487 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14488 addil LR%foo-$tls_dtpoff$,%ret0
14489 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14491 addil LT%foo-$tls_ieoff$,gp
14492 ldw RT%foo-$tls_ieoff$(%r1),%t2
14495 addil LR%foo-$tls_leoff$,%t1
14496 ldo RR%foo-$tls_leoff$(%r1),%t2'
14499 tls_as_opt
=--fatal-warnings
14503 .section ".tdata","awT",%progbits
14506 .word foo(gottpoff)
14516 .section ".tdata","awT",@progbits
14520 leal foo@TLSGD(,%ebx,1), %eax
14521 leal foo@TLSLDM(%ebx), %eax
14522 leal foo@DTPOFF(%eax), %edx
14523 movl foo@GOTTPOFF(%ebx), %eax
14524 subl foo@GOTTPOFF(%ebx), %eax
14525 addl foo@GOTNTPOFF(%ebx), %eax
14526 movl foo@INDNTPOFF, %eax
14527 movl $foo@TPOFF, %eax
14528 subl $foo@TPOFF, %eax
14529 leal foo@NTPOFF(%ecx), %eax'
14532 tls_as_opt
=--fatal-warnings
14536 .section ".tdata","awT",@progbits
14540 leaq foo@TLSGD(%rip), %rdi
14541 leaq foo@TLSLD(%rip), %rdi
14542 leaq foo@DTPOFF(%rax), %rdx
14543 movq foo@GOTTPOFF(%rip), %rax
14544 movq $foo@TPOFF, %rax'
14547 tls_as_opt
=--fatal-warnings
14551 .section ".tdata","awT",@progbits
14554 addl r16 = @ltoff(@dtpmod(foo#)), gp
14555 addl r17 = @ltoff(@dtprel(foo#)), gp
14556 addl r18 = @ltoff(@tprel(foo#)), gp
14557 addl r19 = @dtprel(foo#), gp
14558 adds r21 = @dtprel(foo#), r13
14559 movl r23 = @dtprel(foo#)
14560 addl r20 = @tprel(foo#), gp
14561 adds r22 = @tprel(foo#), r13
14562 movl r24 = @tprel(foo#)'
14565 tls_as_opt
=--fatal-warnings
14569 .section .tdata,"awT",@progbits
14573 addiu $4, $28, %tlsgd(x)
14574 addiu $4, $28, %tlsldm(x)
14575 lui $4, %dtprel_hi(x)
14576 addiu $4, $4, %dtprel_lo(x)
14577 lw $4, %gottprel(x)($28)
14578 lui $4, %tprel_hi(x)
14579 addiu $4, $4, %tprel_lo(x)'
14582 tls_as_opt
='-32 --fatal-warnings'
14586 .section ".tdata","awT",@progbits
14594 addi 3,31,ld0@got@tlsgd
14596 addi 3,31,x1@got@tlsld
14599 addis 9,3,x2@dtprel@ha
14600 addi 9,9,x2@dtprel@l
14601 lwz 9,x3@got@tprel(31)
14604 addis 9,2,x2@tprel@ha
14605 addi 9,9,x2@tprel@l'
14608 tls_as_opt
="-a32 --fatal-warnings"
14612 .section ".tdata","awT",@progbits
14620 addi 3,2,ld0@got@tlsgd
14626 addi 3,2,x1@got@tlsld
14632 addis 9,3,x2@dtprel@ha
14633 addi 9,9,x2@dtprel@l
14636 ld 9,x3@got@dtprel(2)
14642 tls_as_opt
="-a64 --fatal-warnings"
14646 .section ".tdata","awT",@progbits
14653 .long foo@GOTNTPOFF
14654 .long foo@INDNTPOFF
14655 l %r1,foo@GOTNTPOFF(%r12)
14656 l %r1,0(%r1):tls_load:foo
14657 bas %r14,0(%r1,%r13):tls_gdcall:foo
14658 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14661 tls_as_opt
="-m31 --fatal-warnings"
14665 .section ".tdata","awT",@progbits
14672 .quad foo@GOTNTPOFF
14673 lg %r1,foo@GOTNTPOFF(%r12)
14674 larl %r1,foo@INDNTPOFF
14675 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14676 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14679 tls_as_opt
="-m64 -Aesame --fatal-warnings"
14681 sh-
*-* | sh
[34]-*-*)
14683 .section ".tdata","awT",@progbits
14693 tls_as_opt
=--fatal-warnings
14697 sparc
*-sun-solaris2.
[56789]*)
14698 # TLS was introduced in the Solaris 9 4/04 release but
14699 # we do not enable it by default on Solaris 9 either.
14700 if test "x$enable_tls" = xyes
; then
14706 sparc
*-sun-solaris2.
*)
14713 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
14715 .section ".tdata",#alloc,#write,#tls
14718 sethi %tgd_hi22(foo), %o0
14719 add %o0, %tgd_lo10(foo), %o1
14720 add %l7, %o1, %o0, %tgd_add(foo)
14721 call __tls_get_addr, %tgd_call(foo)
14722 sethi %tldm_hi22(foo), %l1
14723 add %l1, %tldm_lo10(foo), %l2
14724 add %l7, %l2, %o0, %tldm_add(foo)
14725 call __tls_get_addr, %tldm_call(foo)
14726 sethi %tldo_hix22(foo), %l3
14727 xor %l3, %tldo_lox10(foo), %l4
14728 add %o0, %l4, %l5, %tldo_add(foo)
14729 sethi %tie_hi22(foo), %o3
14730 add %o3, %tie_lo10(foo), %o3
14731 ld [%l7 + %o3], %o2, %tie_ld(foo)
14732 add %g7, %o2, %o4, %tie_add(foo)
14733 sethi %tle_hix22(foo), %l1
14734 xor %l1, %tle_lox10(foo), %o5
14735 ld [%g7 + %o5], %o1'
14740 .section ".tdata","awT",@progbits
14743 sethi %tgd_hi22(foo), %o0
14744 add %o0, %tgd_lo10(foo), %o1
14745 add %l7, %o1, %o0, %tgd_add(foo)
14746 call __tls_get_addr, %tgd_call(foo)
14747 sethi %tldm_hi22(foo), %l1
14748 add %l1, %tldm_lo10(foo), %l2
14749 add %l7, %l2, %o0, %tldm_add(foo)
14750 call __tls_get_addr, %tldm_call(foo)
14751 sethi %tldo_hix22(foo), %l3
14752 xor %l3, %tldo_lox10(foo), %l4
14753 add %o0, %l4, %l5, %tldo_add(foo)
14754 sethi %tie_hi22(foo), %o3
14755 add %o3, %tie_lo10(foo), %o3
14756 ld [%l7 + %o3], %o2, %tie_ld(foo)
14757 add %g7, %o2, %o4, %tie_add(foo)
14758 sethi %tle_hix22(foo), %l1
14759 xor %l1, %tle_lox10(foo), %o5
14760 ld [%g7 + %o5], %o1'
14763 tls_as_opt
="-32 --fatal-warnings"
14768 if test "x$enable_tls" = xno
; then
14769 : # TLS explicitly disabled.
14770 elif test "x$enable_tls" = xyes
; then
14771 set_have_as_tls
=yes # TLS explicitly enabled.
14772 elif test -z "$tls_first_major"; then
14773 : # If we don't have a check, assume no support.
14775 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14776 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14777 if test "${gcc_cv_as_tls+set}" = set; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 if test $in_tree_gas = yes; then
14782 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14783 then gcc_cv_as_tls
=yes
14785 elif test x
$gcc_cv_as != x
; then
14786 echo "$conftest_s" > conftest.s
14787 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }
14796 echo "configure: failed program was" >&5
14799 rm -f conftest.o conftest.s
14802 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14803 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14804 if test $gcc_cv_as_tls = yes; then
14805 set_have_as_tls
=yes
14808 if test $set_have_as_tls = yes ; then
14810 cat >>confdefs.h
<<\_ACEOF
14811 #define HAVE_AS_TLS 1
14816 # Target-specific assembler checks.
14818 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14819 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14820 gcc_cv_ld_static_dynamic
=no
14821 if test $in_tree_ld = yes ; then
14822 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14823 gcc_cv_ld_static_dynamic
=yes
14825 elif test x
$gcc_cv_ld != x
; then
14826 # Check if linker supports -Bstatic/-Bdynamic option
14827 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14828 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14829 gcc_cv_ld_static_dynamic
=yes
14832 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14834 cat >>confdefs.h
<<\_ACEOF
14835 #define HAVE_LD_STATIC_DYNAMIC 1
14839 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14840 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14842 if test x
"$demangler_in_ld" = xyes
; then
14843 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14844 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14845 gcc_cv_ld_demangle
=no
14846 if test $in_tree_ld = yes; then
14847 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 \
14848 gcc_cv_ld_demangle
=yes
14850 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14851 # Check if the GNU linker supports --demangle option
14852 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14853 gcc_cv_ld_demangle
=yes
14856 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14858 cat >>confdefs.h
<<\_ACEOF
14859 #define HAVE_LD_DEMANGLE 1
14863 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14864 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14868 # All TARGET_ABI_OSF targets.
14869 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14870 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14871 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14872 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14875 gcc_cv_as_alpha_explicit_relocs
=no
14876 if test $in_tree_gas = yes; then
14877 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14878 then gcc_cv_as_alpha_explicit_relocs
=yes
14880 elif test x
$gcc_cv_as != x
; then
14881 echo ' .set nomacro
14883 extbl $3, $2, $3 !lituse_bytoff!1
14884 ldq $2, a($29) !literal!1
14885 ldq $4, b($29) !literal!2
14886 ldq_u $3, 0($2) !lituse_base!1
14887 ldq $27, f($29) !literal!5
14888 jsr $26, ($27), f !lituse_jsr!5
14889 ldah $29, 0($26) !gpdisp!3
14890 lda $0, c($29) !gprel
14891 ldah $1, d($29) !gprelhigh
14892 lda $1, d($1) !gprellow
14893 lda $29, 0($29) !gpdisp!3' > conftest.s
14894 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; }
14901 gcc_cv_as_alpha_explicit_relocs
=yes
14903 echo "configure: failed program was" >&5
14906 rm -f conftest.o conftest.s
14909 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14910 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14911 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14913 cat >>confdefs.h
<<\_ACEOF
14914 #define HAVE_AS_EXPLICIT_RELOCS 1
14918 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14919 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14920 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 gcc_cv_as_alpha_jsrdirect_relocs
=no
14924 if test $in_tree_gas = yes; then
14925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14926 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14928 elif test x
$gcc_cv_as != x
; then
14929 echo ' .set nomacro
14931 ldq $27, a($29) !literal!1
14932 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14933 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }
14940 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14942 echo "configure: failed program was" >&5
14945 rm -f conftest.o conftest.s
14948 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14949 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14950 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14952 cat >>confdefs.h
<<\_ACEOF
14953 #define HAVE_AS_JSRDIRECT_RELOCS 1
14960 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14961 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14962 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 gcc_cv_as_cris_no_mul_bug
=no
14966 if test $in_tree_gas = yes; then
14967 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14968 then gcc_cv_as_cris_no_mul_bug
=yes
14970 elif test x
$gcc_cv_as != x
; then
14971 echo '.text' > conftest.s
14972 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }
14979 gcc_cv_as_cris_no_mul_bug
=yes
14981 echo "configure: failed program was" >&5
14984 rm -f conftest.o conftest.s
14987 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14988 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14989 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14991 cat >>confdefs.h
<<\_ACEOF
14992 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14999 echo "$as_me:$LINENO: checking assembler for .register" >&5
15000 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
15001 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15002 echo $ECHO_N "(cached) $ECHO_C" >&6
15004 gcc_cv_as_sparc_register_op
=no
15005 if test x
$gcc_cv_as != x
; then
15006 echo '.register %g2, #scratch' > conftest.s
15007 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; }
15014 gcc_cv_as_sparc_register_op
=yes
15016 echo "configure: failed program was" >&5
15019 rm -f conftest.o conftest.s
15022 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15023 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
15024 if test $gcc_cv_as_sparc_register_op = yes; then
15026 cat >>confdefs.h
<<\_ACEOF
15027 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15032 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15033 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
15034 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15037 gcc_cv_as_sparc_relax
=no
15038 if test x
$gcc_cv_as != x
; then
15039 echo '.text' > conftest.s
15040 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }
15047 gcc_cv_as_sparc_relax
=yes
15049 echo "configure: failed program was" >&5
15052 rm -f conftest.o conftest.s
15055 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15056 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15057 if test $gcc_cv_as_sparc_relax = yes; then
15059 cat >>confdefs.h
<<\_ACEOF
15060 #define HAVE_AS_RELAX_OPTION 1
15065 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15066 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15067 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15070 gcc_cv_as_sparc_ua_pcrel
=no
15071 if test x
$gcc_cv_as != x
; then
15078 .uaword %r_disp32(foo)' > conftest.s
15079 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }
15086 if test x
$gcc_cv_ld != x \
15087 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
15088 gcc_cv_as_sparc_ua_pcrel
=yes
15092 echo "configure: failed program was" >&5
15095 rm -f conftest.o conftest.s
15098 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15099 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15100 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15102 cat >>confdefs.h
<<\_ACEOF
15103 #define HAVE_AS_SPARC_UA_PCREL 1
15107 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15108 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15109 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 gcc_cv_as_sparc_ua_pcrel_hidden
=no
15113 if test x
$gcc_cv_as != x
; then
15117 .uaword %r_disp32(foo)
15118 .byte 0x32, 0x33, 0x34
15122 .skip 4' > conftest.s
15123 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; }
15130 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
15131 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
15132 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
15133 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
15134 if $gcc_cv_objdump -R conftest
2> /dev
/null \
15135 |
grep 'DISP32' > /dev
/null
2>&1; then
15138 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
15143 echo "configure: failed program was" >&5
15146 rm -f conftest.o conftest.s
15149 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15150 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15151 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15153 cat >>confdefs.h
<<\_ACEOF
15154 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15159 fi # unaligned pcrel relocs
15161 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15162 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15163 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15166 gcc_cv_as_sparc_offsetable_lo10
=no
15167 if test x
$gcc_cv_as != x
; then
15169 or %g1, %lo(ab) + 12, %g1
15170 or %g1, %lo(ab + 12), %g1' > conftest.s
15171 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }
15178 if test x
$gcc_cv_objdump != x \
15179 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
15180 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
15181 gcc_cv_as_sparc_offsetable_lo10
=yes
15184 echo "configure: failed program was" >&5
15187 rm -f conftest.o conftest.s
15190 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15191 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15192 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15194 cat >>confdefs.h
<<\_ACEOF
15195 #define HAVE_AS_OFFSETABLE_LO10 1
15201 i
[34567]86-*-* | x86_64-
*-*)
15203 cygwin
* | pe | mingw32
*)
15204 # Used for DWARF 2 in PE
15205 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15206 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15207 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15208 echo $ECHO_N "(cached) $ECHO_C" >&6
15210 gcc_cv_as_ix86_pe_secrel32
=no
15211 if test $in_tree_gas = yes; then
15212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15213 then gcc_cv_as_ix86_pe_secrel32
=yes
15215 elif test x
$gcc_cv_as != x
; then
15219 .secrel32 foo' > conftest.s
15220 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }
15227 if test x
$gcc_cv_ld != x \
15228 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
15229 gcc_cv_as_ix86_pe_secrel32
=yes
15233 echo "configure: failed program was" >&5
15236 rm -f conftest.o conftest.s
15239 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15240 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15241 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15243 cat >>confdefs.h
<<\_ACEOF
15244 #define HAVE_GAS_PE_SECREL32_RELOC 1
15251 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15252 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15253 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15254 echo $ECHO_N "(cached) $ECHO_C" >&6
15256 gcc_cv_as_ix86_filds_fists
=no
15257 if test $in_tree_gas = yes; then
15258 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15259 then gcc_cv_as_ix86_filds_fists
=yes
15261 elif test x
$gcc_cv_as != x
; then
15262 echo 'filds mem; fists mem' > conftest.s
15263 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265 (eval $ac_try) 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }
15270 gcc_cv_as_ix86_filds_fists
=yes
15272 echo "configure: failed program was" >&5
15275 rm -f conftest.o conftest.s
15278 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15279 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15280 if test $gcc_cv_as_ix86_filds_fists = yes; then
15282 cat >>confdefs.h
<<\_ACEOF
15283 #define HAVE_GAS_FILDS_FISTS 1
15288 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15289 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15290 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15293 gcc_cv_as_ix86_cmov_sun_syntax
=no
15294 if test x
$gcc_cv_as != x
; then
15295 echo 'cmovl.l %edx, %eax' > conftest.s
15296 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; }
15303 gcc_cv_as_ix86_cmov_sun_syntax
=yes
15305 echo "configure: failed program was" >&5
15308 rm -f conftest.o conftest.s
15311 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15312 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15313 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15315 cat >>confdefs.h
<<\_ACEOF
15316 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15321 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15322 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15323 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 gcc_cv_as_ix86_ffreep
=no
15327 if test x
$gcc_cv_as != x
; then
15328 echo 'ffreep %st(1)' > conftest.s
15329 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }
15336 gcc_cv_as_ix86_ffreep
=yes
15338 echo "configure: failed program was" >&5
15341 rm -f conftest.o conftest.s
15344 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15345 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15346 if test $gcc_cv_as_ix86_ffreep = yes; then
15348 cat >>confdefs.h
<<\_ACEOF
15349 #define HAVE_AS_IX86_FFREEP 1
15354 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15355 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15356 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 gcc_cv_as_ix86_sahf
=no
15360 if test x
$gcc_cv_as != x
; then
15361 echo 'sahf' > conftest.s
15362 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; }
15369 gcc_cv_as_ix86_sahf
=yes
15371 echo "configure: failed program was" >&5
15374 rm -f conftest.o conftest.s
15377 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15378 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15379 if test $gcc_cv_as_ix86_sahf = yes; then
15381 cat >>confdefs.h
<<\_ACEOF
15382 #define HAVE_AS_IX86_SAHF 1
15387 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15388 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15389 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15392 gcc_cv_as_ix86_diff_sect_delta
=no
15393 if test x
$gcc_cv_as != x
; then
15394 echo '.section .rodata
15400 .L2: nop' > conftest.s
15401 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }
15408 gcc_cv_as_ix86_diff_sect_delta
=yes
15410 echo "configure: failed program was" >&5
15413 rm -f conftest.o conftest.s
15416 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15417 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15418 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15420 cat >>confdefs.h
<<\_ACEOF
15421 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15426 # This one is used unconditionally by i386.[ch]; it is to be defined
15427 # to 1 if the feature is present, 0 otherwise.
15428 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15429 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15430 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15433 gcc_cv_as_ix86_gotoff_in_data
=no
15434 if test $in_tree_gas = yes; then
15435 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15436 then gcc_cv_as_ix86_gotoff_in_data
=yes
15438 elif test x
$gcc_cv_as != x
; then
15443 .long .L0@GOTOFF' > conftest.s
15444 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }
15451 gcc_cv_as_ix86_gotoff_in_data
=yes
15453 echo "configure: failed program was" >&5
15456 rm -f conftest.o conftest.s
15459 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15460 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15463 cat >>confdefs.h
<<_ACEOF
15464 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15470 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15471 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15472 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
15476 if test $in_tree_gas = yes; then
15477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15478 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15480 elif test x
$gcc_cv_as != x
; then
15482 addl r15 = @ltoffx(x#), gp
15484 ld8.mov r16 = [r15], x#' > conftest.s
15485 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }
15492 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15494 echo "configure: failed program was" >&5
15497 rm -f conftest.o conftest.s
15500 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15501 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15502 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15504 cat >>confdefs.h
<<\_ACEOF
15505 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15514 *-*-aix*) conftest_s
=' .machine "pwr5"
15518 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15519 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15520 if test "${gcc_cv_as_machine_directive+set}" = set; then
15521 echo $ECHO_N "(cached) $ECHO_C" >&6
15523 gcc_cv_as_machine_directive
=no
15524 if test x
$gcc_cv_as != x
; then
15525 echo ' .machine ppc7400' > conftest.s
15526 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }
15533 gcc_cv_as_machine_directive
=yes
15535 echo "configure: failed program was" >&5
15538 rm -f conftest.o conftest.s
15541 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15542 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15544 if test x
$gcc_cv_as_machine_directive != xyes
; then
15545 echo "*** This target requires an assembler supporting \".machine\"" >&2
15546 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
15547 test x
$build = x
$target && exit 1
15551 *) conftest_s
=' .machine power4
15556 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15557 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15558 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15561 gcc_cv_as_powerpc_mfcrf
=no
15562 if test $in_tree_gas = yes; then
15563 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15564 then gcc_cv_as_powerpc_mfcrf
=yes
15566 elif test x
$gcc_cv_as != x
; then
15567 echo "$conftest_s" > conftest.s
15568 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }
15575 gcc_cv_as_powerpc_mfcrf
=yes
15577 echo "configure: failed program was" >&5
15580 rm -f conftest.o conftest.s
15583 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15584 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15585 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15587 cat >>confdefs.h
<<\_ACEOF
15588 #define HAVE_AS_MFCRF 1
15594 *-*-aix*) conftest_s
=' .machine "pwr5"
15597 *) conftest_s
=' .machine power5
15602 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15603 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15604 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15605 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 gcc_cv_as_powerpc_popcntb
=no
15608 if test $in_tree_gas = yes; then
15609 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15610 then gcc_cv_as_powerpc_popcntb
=yes
15612 elif test x
$gcc_cv_as != x
; then
15613 echo "$conftest_s" > conftest.s
15614 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }
15621 gcc_cv_as_powerpc_popcntb
=yes
15623 echo "configure: failed program was" >&5
15626 rm -f conftest.o conftest.s
15629 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15630 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15631 if test $gcc_cv_as_powerpc_popcntb = yes; then
15633 cat >>confdefs.h
<<\_ACEOF
15634 #define HAVE_AS_POPCNTB 1
15640 *-*-aix*) conftest_s
=' .machine "pwr5x"
15643 *) conftest_s
=' .machine power5
15648 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15649 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15650 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15651 echo $ECHO_N "(cached) $ECHO_C" >&6
15653 gcc_cv_as_powerpc_fprnd
=no
15654 if test $in_tree_gas = yes; then
15655 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15656 then gcc_cv_as_powerpc_fprnd
=yes
15658 elif test x
$gcc_cv_as != x
; then
15659 echo "$conftest_s" > conftest.s
15660 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; }
15667 gcc_cv_as_powerpc_fprnd
=yes
15669 echo "configure: failed program was" >&5
15672 rm -f conftest.o conftest.s
15675 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15676 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15677 if test $gcc_cv_as_powerpc_fprnd = yes; then
15679 cat >>confdefs.h
<<\_ACEOF
15680 #define HAVE_AS_FPRND 1
15686 *-*-aix*) conftest_s
=' .machine "pwr6"
15689 *) conftest_s
=' .machine power6
15694 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15695 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15696 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15697 echo $ECHO_N "(cached) $ECHO_C" >&6
15699 gcc_cv_as_powerpc_mfpgpr
=no
15700 if test $in_tree_gas = yes; then
15701 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15702 then gcc_cv_as_powerpc_mfpgpr
=yes
15704 elif test x
$gcc_cv_as != x
; then
15705 echo "$conftest_s" > conftest.s
15706 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708 (eval $ac_try) 2>&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; }
15713 gcc_cv_as_powerpc_mfpgpr
=yes
15715 echo "configure: failed program was" >&5
15718 rm -f conftest.o conftest.s
15721 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15722 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15723 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15725 cat >>confdefs.h
<<\_ACEOF
15726 #define HAVE_AS_MFPGPR 1
15732 *-*-aix*) conftest_s
=' .csect .text[PR]
15734 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15738 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15739 *) conftest_s
=' .text
15741 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15744 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15745 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15746 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15749 gcc_cv_as_powerpc_rel16
=no
15750 if test $in_tree_gas = yes; then
15751 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15752 then gcc_cv_as_powerpc_rel16
=yes
15754 elif test x
$gcc_cv_as != x
; then
15755 echo "$conftest_s" > conftest.s
15756 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }
15763 gcc_cv_as_powerpc_rel16
=yes
15765 echo "configure: failed program was" >&5
15768 rm -f conftest.o conftest.s
15771 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15772 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15773 if test $gcc_cv_as_powerpc_rel16 = yes; then
15775 cat >>confdefs.h
<<\_ACEOF
15776 #define HAVE_AS_REL16 1
15782 *-*-aix*) conftest_s
=' .machine "pwr6"
15785 *) conftest_s
=' .machine power6
15790 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15791 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15792 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 gcc_cv_as_powerpc_cmpb
=no
15796 if test $in_tree_gas = yes; then
15797 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15798 then gcc_cv_as_powerpc_cmpb
=yes
15800 elif test x
$gcc_cv_as != x
; then
15801 echo "$conftest_s" > conftest.s
15802 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }
15809 gcc_cv_as_powerpc_cmpb
=yes
15811 echo "configure: failed program was" >&5
15814 rm -f conftest.o conftest.s
15817 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15818 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15819 if test $gcc_cv_as_powerpc_cmpb = yes; then
15821 cat >>confdefs.h
<<\_ACEOF
15822 #define HAVE_AS_CMPB 1
15828 *-*-aix*) conftest_s
=' .machine "pwr6"
15831 *) conftest_s
=' .machine power6
15836 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15837 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15838 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 gcc_cv_as_powerpc_dfp
=no
15842 if test $in_tree_gas = yes; then
15843 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15844 then gcc_cv_as_powerpc_dfp
=yes
15846 elif test x
$gcc_cv_as != x
; then
15847 echo "$conftest_s" > conftest.s
15848 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }
15855 gcc_cv_as_powerpc_dfp
=yes
15857 echo "configure: failed program was" >&5
15860 rm -f conftest.o conftest.s
15863 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15864 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15865 if test $gcc_cv_as_powerpc_dfp = yes; then
15867 cat >>confdefs.h
<<\_ACEOF
15868 #define HAVE_AS_DFP 1
15873 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15874 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15875 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15878 gcc_cv_as_powerpc_gnu_attribute
=no
15879 if test $in_tree_gas = yes; then
15880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15881 then gcc_cv_as_powerpc_gnu_attribute
=yes
15883 elif test x
$gcc_cv_as != x
; then
15884 echo '.gnu_attribute 4,1' > conftest.s
15885 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }
15892 gcc_cv_as_powerpc_gnu_attribute
=yes
15894 echo "configure: failed program was" >&5
15897 rm -f conftest.o conftest.s
15900 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
15901 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
15902 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
15904 cat >>confdefs.h
<<\_ACEOF
15905 #define HAVE_AS_GNU_ATTRIBUTE 1
15912 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15913 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15914 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15915 echo $ECHO_N "(cached) $ECHO_C" >&6
15917 gcc_cv_as_mips_explicit_relocs
=no
15918 if test $in_tree_gas = yes; then
15919 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15920 then gcc_cv_as_mips_explicit_relocs
=yes
15922 elif test x
$gcc_cv_as != x
; then
15923 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15924 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }
15931 gcc_cv_as_mips_explicit_relocs
=yes
15933 echo "configure: failed program was" >&5
15936 rm -f conftest.o conftest.s
15939 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15940 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15941 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15942 if test x
$target_cpu_default = x
15943 then target_cpu_default
=MASK_EXPLICIT_RELOCS
15944 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15947 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15948 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15949 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 gcc_cv_as_mips_no_shared
=no
15953 if test $in_tree_gas = yes; then
15954 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15955 then gcc_cv_as_mips_no_shared
=yes
15957 elif test x
$gcc_cv_as != x
; then
15958 echo 'nop' > conftest.s
15959 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; }
15966 gcc_cv_as_mips_no_shared
=yes
15968 echo "configure: failed program was" >&5
15971 rm -f conftest.o conftest.s
15974 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15975 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15976 if test $gcc_cv_as_mips_no_shared = yes; then
15978 cat >>confdefs.h
<<\_ACEOF
15979 #define HAVE_AS_NO_SHARED 1
15984 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15985 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15986 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 gcc_cv_as_mips_gnu_attribute
=no
15990 if test $in_tree_gas = yes; then
15991 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15992 then gcc_cv_as_mips_gnu_attribute
=yes
15994 elif test x
$gcc_cv_as != x
; then
15995 echo '.gnu_attribute 4,1' > conftest.s
15996 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; }
16003 gcc_cv_as_mips_gnu_attribute
=yes
16005 echo "configure: failed program was" >&5
16008 rm -f conftest.o conftest.s
16011 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
16012 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
16013 if test $gcc_cv_as_mips_gnu_attribute = yes; then
16015 cat >>confdefs.h
<<\_ACEOF
16016 #define HAVE_AS_GNU_ATTRIBUTE 1
16021 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
16022 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
16023 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
16024 echo $ECHO_N "(cached) $ECHO_C" >&6
16026 gcc_cv_as_mips_dtprelword
=no
16027 if test $in_tree_gas = yes; then
16028 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16029 then gcc_cv_as_mips_dtprelword
=yes
16031 elif test x
$gcc_cv_as != x
; then
16032 echo '.section .tdata,"awT",@progbits
16036 .dtprelword x+0x8000' > conftest.s
16037 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }
16044 gcc_cv_as_mips_dtprelword
=yes
16046 echo "configure: failed program was" >&5
16049 rm -f conftest.o conftest.s
16052 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
16053 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
16054 if test $gcc_cv_as_mips_dtprelword = yes; then
16056 cat >>confdefs.h
<<\_ACEOF
16057 #define HAVE_AS_DTPRELWORD 1
16064 # Mips and HP-UX need the GNU assembler.
16065 # Linux on IA64 might be able to use the Intel assembler.
16068 mips
*-*-* |
*-*-hpux* )
16069 if test x
$gas_flag = xyes \
16070 ||
test x
"$host" != x
"$build" \
16071 ||
test ! -x "$gcc_cv_as" \
16072 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
16075 echo "*** This configuration requires the GNU assembler" >&2
16081 # ??? Not all targets support dwarf2 debug_line, even within a version
16082 # of gas. Moreover, we need to emit a valid instruction to trigger any
16083 # info to the output file. So, as supported targets are added to gas 2.11,
16084 # add some instruction here to (also) show we expect this might work.
16085 # ??? Once 2.11 is released, probably need to add first known working
16086 # version to the per-target configury.
16088 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
16089 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
16090 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-* | score
*-*-* | spu-
*-*)
16093 ia64
*-*-* | s390
*-*-*)
16100 if test x
"$insn" != x
; then
16102 .file 1 \"conftest.s\"
16105 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16106 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
16107 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 gcc_cv_as_dwarf2_debug_line
=no
16111 if test $in_tree_gas = yes; then
16112 if test $in_tree_gas_is_elf = yes \
16113 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16114 then gcc_cv_as_dwarf2_debug_line
=yes
16116 elif test x
$gcc_cv_as != x
; then
16117 echo "$conftest_s" > conftest.s
16118 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; }
16125 if test x
$gcc_cv_objdump != x \
16126 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
16127 |
grep debug_line
> /dev
/null
2>&1; then
16128 gcc_cv_as_dwarf2_debug_line
=yes
16131 echo "configure: failed program was" >&5
16134 rm -f conftest.o conftest.s
16137 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16138 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
16141 # The .debug_line file table must be in the exact order that
16142 # we specified the files, since these indices are also used
16143 # by DW_AT_decl_file. Approximate this test by testing if
16144 # the assembler bitches if the same index is assigned twice.
16145 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16146 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
16147 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16150 gcc_cv_as_dwarf2_file_buggy
=no
16151 if test x
$gcc_cv_as != x
; then
16152 echo ' .file 1 "foo.s"
16153 .file 1 "bar.s"' > conftest.s
16154 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }
16161 gcc_cv_as_dwarf2_file_buggy
=yes
16163 echo "configure: failed program was" >&5
16166 rm -f conftest.o conftest.s
16169 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16170 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16173 if test $gcc_cv_as_dwarf2_debug_line = yes \
16174 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
16176 cat >>confdefs.h
<<\_ACEOF
16177 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16182 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16183 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16184 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 gcc_cv_as_gdwarf2_flag
=no
16188 if test $in_tree_gas = yes; then
16189 if test $in_tree_gas_is_elf = yes \
16190 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16191 then gcc_cv_as_gdwarf2_flag
=yes
16193 elif test x
$gcc_cv_as != x
; then
16194 echo "$insn" > conftest.s
16195 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }
16202 gcc_cv_as_gdwarf2_flag
=yes
16204 echo "configure: failed program was" >&5
16207 rm -f conftest.o conftest.s
16210 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16211 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16212 if test $gcc_cv_as_gdwarf2_flag = yes; then
16214 cat >>confdefs.h
<<\_ACEOF
16215 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16220 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16221 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16222 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 gcc_cv_as_gstabs_flag
=no
16226 if test $in_tree_gas = yes; then
16227 if test $in_tree_gas_is_elf = yes \
16228 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16229 then gcc_cv_as_gstabs_flag
=yes
16231 elif test x
$gcc_cv_as != x
; then
16232 echo "$insn" > conftest.s
16233 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; }
16240 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16241 # and warns about it, but still exits successfully. So check for
16243 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }
16250 else gcc_cv_as_gstabs_flag
=yes
16253 echo "configure: failed program was" >&5
16256 rm -f conftest.o conftest.s
16259 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16260 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16261 if test $gcc_cv_as_gstabs_flag = yes; then
16263 cat >>confdefs.h
<<\_ACEOF
16264 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16269 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
16270 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
16271 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 gcc_cv_as_debug_prefix_map_flag
=no
16275 if test $in_tree_gas = yes; then
16276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16277 then gcc_cv_as_debug_prefix_map_flag
=yes
16279 elif test x
$gcc_cv_as != x
; then
16280 echo "$insn" > conftest.s
16281 if { ac_try
='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }
16288 gcc_cv_as_debug_prefix_map_flag
=yes
16290 echo "configure: failed program was" >&5
16293 rm -f conftest.o conftest.s
16296 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
16297 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
16298 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
16300 cat >>confdefs.h
<<\_ACEOF
16301 #define HAVE_AS_DEBUG_PREFIX_MAP 1
16307 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16308 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16309 if test "${gcc_cv_as_line_zero+set}" = set; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16312 gcc_cv_as_line_zero
=no
16313 if test $in_tree_gas = yes; then
16314 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16315 then gcc_cv_as_line_zero
=yes
16317 elif test "x$gcc_cv_as" != x
; then
16318 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16319 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
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 test "x`cat conftest.out`" = x
16327 gcc_cv_as_line_zero
=yes
16329 echo "configure: failed program was" >&5
16331 echo "configure: error output was" >&5
16332 cat conftest.out
>&5
16334 rm -f conftest.o conftest.s conftest.out
16337 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16338 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16339 if test "x$gcc_cv_as_line_zero" = xyes
; then
16341 cat >>confdefs.h
<<\_ACEOF
16342 #define HAVE_AS_LINE_ZERO 1
16347 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16348 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16349 gcc_cv_ld_ro_rw_mix
=unknown
16350 if test $in_tree_ld = yes ; then
16351 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 \
16352 && test $in_tree_ld_is_elf = yes; then
16353 gcc_cv_ld_ro_rw_mix
=read-write
16355 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
16356 echo '.section myfoosect, "a"' > conftest1.s
16357 echo '.section myfoosect, "aw"' > conftest2.s
16358 echo '.byte 1' >> conftest2.s
16359 echo '.section myfoosect, "a"' > conftest3.s
16360 echo '.byte 0' >> conftest3.s
16361 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
16362 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
16363 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
16364 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16365 conftest2.o conftest3.o
> /dev
/null
2>&1; then
16366 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
16367 | sed -e '/myfoosect/!d' -e N`
16368 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
16369 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
16370 gcc_cv_ld_ro_rw_mix
=read-only
16372 gcc_cv_ld_ro_rw_mix
=read-write
16376 rm -f conftest.
* conftest
[123].
*
16378 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
16380 cat >>confdefs.h
<<\_ACEOF
16381 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16385 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16386 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16388 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16389 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16390 gcc_cv_ld_eh_frame_hdr
=no
16391 if test $in_tree_ld = yes ; then
16392 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 \
16393 && test $in_tree_ld_is_elf = yes; then
16394 gcc_cv_ld_eh_frame_hdr
=yes
16396 elif test x
$gcc_cv_ld != x
; then
16397 # Check if linker supports --eh-frame-hdr option
16398 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
16399 gcc_cv_ld_eh_frame_hdr
=yes
16403 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
16405 cat >>confdefs.h
<<\_ACEOF
16406 #define HAVE_LD_EH_FRAME_HDR 1
16410 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16411 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16413 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16414 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16416 if test $in_tree_ld = yes ; then
16417 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 \
16418 && test $in_tree_ld_is_elf = yes; then
16421 elif test x
$gcc_cv_ld != x
; then
16422 # Check if linker supports -pie option
16423 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
16427 if test x
"$gcc_cv_ld_pie" = xyes
; then
16429 cat >>confdefs.h
<<\_ACEOF
16430 #define HAVE_LD_PIE 1
16434 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16435 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16437 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16438 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16439 gcc_cv_ld_eh_gc_sections
=no
16440 if test $in_tree_ld = yes ; then
16441 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 \
16442 && test $in_tree_ld_is_elf = yes; then
16443 gcc_cv_ld_eh_gc_sections
=yes
16445 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
16446 cat > conftest.s
<<EOF
16449 .type _start, @function
16452 .size _start, .-_start
16453 .section .text.foo,"ax",@progbits
16454 .type foo, @function
16458 .section .gcc_except_table.foo,"a",@progbits
16461 .section .eh_frame,"a",@progbits
16464 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
16465 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
16466 |
grep "gc-sections option ignored" > /dev
/null
; then
16467 gcc_cv_ld_eh_gc_sections
=no
16468 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
16469 gcc_cv_ld_eh_gc_sections
=yes
16470 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16471 if test x
$gcc_cv_as_comdat_group != xyes
; then
16472 gcc_cv_ld_eh_gc_sections
=no
16473 cat > conftest.s
<<EOF
16476 .type _start, @function
16479 .size _start, .-_start
16480 .section .gnu.linkonce.t.foo,"ax",@progbits
16481 .type foo, @function
16485 .section .gcc_except_table.foo,"a",@progbits
16488 .section .eh_frame,"a",@progbits
16491 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
16492 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
16493 |
grep "gc-sections option ignored" > /dev
/null
; then
16494 gcc_cv_ld_eh_gc_sections
=no
16495 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
16496 gcc_cv_ld_eh_gc_sections
=yes
16502 rm -f conftest.s conftest.o conftest
16506 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16507 gcc_cv_ld_eh_gc_sections
=no
16510 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
16512 cat >>confdefs.h
<<\_ACEOF
16513 #define HAVE_LD_EH_GC_SECTIONS 1
16517 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16518 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16524 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16525 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16526 if test "${gcc_cv_ld_as_needed+set}" = set; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 gcc_cv_ld_as_needed
=no
16530 if test $in_tree_ld = yes ; then
16531 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 \
16532 && test $in_tree_ld_is_elf = yes; then
16533 gcc_cv_ld_as_needed
=yes
16535 elif test x
$gcc_cv_ld != x
; then
16536 # Check if linker supports --as-needed and --no-as-needed options
16537 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
16538 gcc_cv_ld_as_needed
=yes
16543 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16544 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16545 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
16547 cat >>confdefs.h
<<\_ACEOF
16548 #define HAVE_LD_AS_NEEDED 1
16553 case "$target:$tm_file" in
16554 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
16555 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16556 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16557 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16558 echo $ECHO_N "(cached) $ECHO_C" >&6
16560 gcc_cv_ld_no_dot_syms
=no
16561 if test $in_tree_ld = yes ; then
16562 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
16563 gcc_cv_ld_no_dot_syms
=yes
16565 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
16566 cat > conftest1.s
<<EOF
16570 cat > conftest2.s
<<EOF
16571 .section ".opd","aw"
16574 .type foo,@function
16576 .quad .LEfoo,.TOC.@tocbase,0
16582 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
16583 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
16584 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
16585 gcc_cv_ld_no_dot_syms
=yes
16587 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16591 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16592 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16593 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
16595 cat >>confdefs.h
<<\_ACEOF
16596 #define HAVE_LD_NO_DOT_SYMS 1
16603 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16604 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16605 if test "${gcc_cv_ld_sysroot+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 gcc_cv_ld_sysroot
=no
16609 if test $in_tree_ld = yes ; then
16610 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
16611 gcc_cv_ld_sysroot
=yes
16613 elif test x
$gcc_cv_ld != x
; then
16614 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
16615 gcc_cv_ld_sysroot
=yes
16619 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16620 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16621 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
16623 cat >>confdefs.h
<<\_ACEOF
16624 #define HAVE_LD_SYSROOT 1
16629 if test x
$with_sysroot = x
&& test x
$host = x
$target \
16630 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16631 && test "$prefix" != "NONE"; then
16633 cat >>confdefs.h
<<_ACEOF
16634 #define PREFIX_INCLUDE_DIR "$prefix/include"
16639 # Test for stack protector support in target C library.
16640 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16641 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16642 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 gcc_cv_libc_provides_ssp
=no
16648 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16649 if test "x$with_sysroot" = x
; then
16650 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16651 elif test "x$with_build_sysroot" != "x"; then
16652 glibc_header_dir
="${with_build_sysroot}/usr/include"
16653 elif test "x$with_sysroot" = xyes
; then
16654 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16656 glibc_header_dir
="${with_sysroot}/usr/include"
16659 glibc_header_dir
=/usr
/include
16661 # glibc 2.4 and later provides __stack_chk_fail and
16662 # either __stack_chk_guard, or TLS access to stack guard canary.
16663 if test -f $glibc_header_dir/features.h \
16664 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16665 $glibc_header_dir/features.h
> /dev
/null
; then
16666 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16667 $glibc_header_dir/features.h
> /dev
/null
; then
16668 gcc_cv_libc_provides_ssp
=yes
16669 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16670 $glibc_header_dir/features.h
> /dev
/null \
16671 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16672 $glibc_header_dir/features.h
> /dev
/null
; then
16673 gcc_cv_libc_provides_ssp
=yes
16674 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
16675 $glibc_header_dir/features.h
> /dev
/null
&& \
16676 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
16677 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
16678 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
16679 gcc_cv_libc_provides_ssp
=yes
16684 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16685 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16686 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16689 cat >conftest.
$ac_ext <<_ACEOF
16692 cat confdefs.h
>>conftest.
$ac_ext
16693 cat >>conftest.
$ac_ext <<_ACEOF
16694 /* end confdefs.h. */
16695 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16697 #define __stack_chk_fail innocuous___stack_chk_fail
16699 /* System header to define __stub macros and hopefully few prototypes,
16700 which can conflict with char __stack_chk_fail (); below.
16701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16702 <limits.h> exists even on freestanding compilers. */
16705 # include <limits.h>
16707 # include <assert.h>
16710 #undef __stack_chk_fail
16712 /* Override any gcc2 internal prototype to avoid an error. */
16717 /* We use char because int might match the return type of a gcc2
16718 builtin and then its argument prototype would still apply. */
16719 char __stack_chk_fail ();
16720 /* The GNU C library defines this for functions which it implements
16721 to always fail with ENOSYS. Some functions are actually named
16722 something starting with __ and the normal name is an alias. */
16723 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16726 char (*f) () = __stack_chk_fail;
16735 return f != __stack_chk_fail;
16740 rm -f conftest.
$ac_objext conftest
$ac_exeext
16741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16742 (eval $ac_link) 2>conftest.er1
16744 grep -v '^ *+' conftest.er1
>conftest.err
16746 cat conftest.err
>&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
16749 { ac_try
='test -z "$ac_c_werror_flag"
16750 || test ! -s conftest.err'
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try
='test -s conftest$ac_exeext'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; }; then
16762 ac_cv_func___stack_chk_fail
=yes
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.
$ac_ext >&5
16767 ac_cv_func___stack_chk_fail
=no
16769 rm -f conftest.err conftest.
$ac_objext \
16770 conftest
$ac_exeext conftest.
$ac_ext
16772 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16773 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16774 if test $ac_cv_func___stack_chk_fail = yes; then
16775 gcc_cv_libc_provides_ssp
=yes
16777 echo "no __stack_chk_fail on this target"
16781 *) gcc_cv_libc_provides_ssp
=no
;;
16784 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16785 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16787 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
16789 cat >>confdefs.h
<<\_ACEOF
16790 #define TARGET_LIBC_PROVIDES_SSP 1
16795 # Check if TFmode long double should be used by default or not.
16796 # Some glibc targets used DFmode long double, but with glibc 2.4
16797 # and later they can use TFmode.
16799 powerpc
*-*-linux* | \
16800 powerpc
*-*-gnu* | \
16801 sparc
*-*-linux* | \
16805 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16806 if test "${with_long_double_128+set}" = set; then
16807 withval
="$with_long_double_128"
16808 gcc_cv_target_ldbl128
="$with_long_double_128"
16810 gcc_cv_target_ldbl128
=no
16811 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16812 if test "x$with_sysroot" = x
; then
16813 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16814 elif test "x$with_build_sysroot" != "x"; then
16815 glibc_header_dir
="${with_build_sysroot}/usr/include"
16816 elif test "x$with_sysroot" = xyes
; then
16817 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16819 glibc_header_dir
="${with_sysroot}/usr/include"
16822 glibc_header_dir
=/usr
/include
16824 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16825 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
16826 && gcc_cv_target_ldbl128
=yes
16831 if test x
$gcc_cv_target_ldbl128 = xyes
; then
16833 cat >>confdefs.h
<<\_ACEOF
16834 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16839 # Find out what GC implementation we want, or may, use.
16841 # Check whether --with-gc or --without-gc was given.
16842 if test "${with_gc+set}" = set; then
16851 cat >>confdefs.h
<<\_ACEOF
16857 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16858 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16859 { (exit 1); exit 1; }; }
16866 echo "Using $GGC for garbage collection."
16868 # Use the system's zlib library.
16870 zlibinc
="-I\$(srcdir)/../zlib"
16872 # Check whether --with-system-zlib or --without-system-zlib was given.
16873 if test "${with_system_zlib+set}" = set; then
16874 withval
="$with_system_zlib"
16883 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16884 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16885 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16886 if test "${enable_maintainer_mode+set}" = set; then
16887 enableval
="$enable_maintainer_mode"
16888 maintainer_mode
=$enableval
16893 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16894 echo "${ECHO_T}$maintainer_mode" >&6
16896 if test "$maintainer_mode" = "yes"; then
16906 # Make empty files to contain the specs and options for each language.
16907 # Then add #include lines to for a compiler that has specs and/or options.
16913 # These (without "all_") are set in each config-lang.in.
16914 # `language' must be a single word so is spelled singularly.
16917 all_outputs
='Makefile gccbug libada-mk'
16918 # List of language makefile fragments.
16919 all_lang_makefrags
=
16920 # List of language subdirectory makefiles. Deprecated.
16921 all_lang_makefiles
=
16922 # Additional files for gengtype
16923 all_gtfiles
="$target_gtfiles"
16925 # These are the languages that are set in --enable-languages,
16926 # and are available in the GCC tree.
16927 all_selected_languages
=
16929 # Add the language fragments.
16930 # Languages are added via two mechanisms. Some information must be
16931 # recorded in makefile variables, these are defined in config-lang.in.
16932 # We accumulate them and plug them into the main Makefile.
16933 # The other mechanism is a set of hooks for each of the main targets
16934 # like `clean', `install', etc.
16936 language_hooks
="Make-hooks"
16938 for lang
in ${srcdir}/*/config-lang.
in
16940 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16942 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16943 if test "x$lang_alias" = x
16945 echo "$lang doesn't set \$language." 1>&2
16948 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16949 subdirs
="$subdirs $subdir"
16950 case ",$enable_languages," in
16952 all_selected_languages
="$all_selected_languages $lang_alias"
16953 if test -f $srcdir/$subdir/lang-specs.h
; then
16954 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16965 .
${srcdir}/$subdir/config-lang.
in
16966 if test "x$language" = x
16968 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16973 case ",$enable_languages," in
16974 *,$lang_alias,*) ;;
16976 for i
in $subdir_requires; do
16977 test -f "${srcdir}/$i/config-lang.in" && continue
16985 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16986 if test -f $srcdir/$subdir/lang.opt
; then
16987 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
16989 if test -f $srcdir/$subdir/$subdir-tree.def
; then
16990 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16992 if test -f ${srcdir}/$subdir/Makefile.
in
16993 then all_lang_makefiles
="$subdir/Makefile"
16995 all_languages
="$all_languages $language"
16996 all_compilers
="$all_compilers $compilers"
16997 all_outputs
="$all_outputs $outputs"
16998 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
17001 # Pick up gtfiles for c
17003 .
${srcdir}/c-config-lang.
in
17004 all_gtfiles
="$all_gtfiles [c] $gtfiles"
17007 for language
in $all_selected_languages
17009 check_languages
="$check_languages check-$language"
17012 # We link each language in with a set of hooks, reached indirectly via
17013 # lang.${target}. Only do so for selected languages.
17017 target_list
="all.cross start.encap rest.encap tags \
17018 install-common install-man install-info install-pdf dvi pdf \
17019 html uninstall info man srcextra srcman srcinfo \
17020 mostlyclean clean distclean maintainer-clean"
17022 for t
in $target_list
17025 for lang
in $all_selected_languages
17029 echo "lang.$t: $x" >> Make-hooks
17038 echo "dir ." > .gdbinit
17039 echo "dir ${srcdir}" >> .gdbinit
17040 if test x
$gdb_needs_out_file_path = xyes
17042 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17044 if test "x$subdirs" != x
; then
17047 echo "dir ${srcdir}/$s" >> .gdbinit
17050 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17052 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
17056 # Find a directory in which to install a shared libgcc.
17058 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17059 if test "${enable_version_specific_runtime_libs+set}" = set; then
17060 enableval
="$enable_version_specific_runtime_libs"
17065 # Check whether --with-slibdir or --without-slibdir was given.
17066 if test "${with_slibdir+set}" = set; then
17067 withval
="$with_slibdir"
17068 slibdir
="$with_slibdir"
17070 if test "${enable_version_specific_runtime_libs+set}" = set; then
17071 slibdir
='$(libsubdir)'
17072 elif test "$host" != "$target"; then
17073 slibdir
='$(build_tooldir)/lib'
17075 slibdir
='$(libdir)'
17080 objdir
=`${PWDCMD-pwd}`
17084 # Check whether --with-datarootdir or --without-datarootdir was given.
17085 if test "${with_datarootdir+set}" = set; then
17086 withval
="$with_datarootdir"
17087 datarootdir
="\${prefix}/$with_datarootdir"
17089 datarootdir
='$(prefix)/share'
17094 # Check whether --with-docdir or --without-docdir was given.
17095 if test "${with_docdir+set}" = set; then
17096 withval
="$with_docdir"
17097 docdir
="\${prefix}/$with_docdir"
17099 docdir
='$(datarootdir)'
17104 # Check whether --with-htmldir or --without-htmldir was given.
17105 if test "${with_htmldir+set}" = set; then
17106 withval
="$with_htmldir"
17107 htmldir
="\${prefix}/$with_htmldir"
17109 htmldir
='$(docdir)'
17113 # Substitute configuration variables
17170 if test x
${build} = x
${host} ; then
17171 if test x
${host} = x
${target} ; then
17172 echo "Links are now set up to build a native compiler for ${target}." 1>&2
17174 echo "Links are now set up to build a cross-compiler" 1>&2
17175 echo " from ${host} to ${target}." 1>&2
17178 if test x
${host} = x
${target} ; then
17179 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17180 echo " for ${target}." 1>&2
17182 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17183 echo " from ${host} to ${target}." 1>&2
17190 # Configure the subdirectories
17191 # AC_CONFIG_SUBDIRS($subdirs)
17193 # Create the Makefile
17194 # and configure language subdirectories
17195 ac_config_files
="$ac_config_files $all_outputs"
17198 ac_config_commands
="$ac_config_commands default"
17200 cat >confcache
<<\_ACEOF
17201 # This file is a shell script that caches the results of configure
17202 # tests run on this system so they can be shared between configure
17203 # scripts and configure runs, see configure's option --config-cache.
17204 # It is not useful on other systems. If it contains results you don't
17205 # want to keep, you may remove or edit it.
17207 # config.status only pays attention to the cache file if you give it
17208 # the --recheck option to rerun configure.
17210 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17211 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17212 # following values.
17216 # The following way of writing the cache mishandles newlines in values,
17217 # but we know of no workaround that is simple, portable, and efficient.
17218 # So, don't put newlines in cache variables' values.
17219 # Ultrix sh set writes to stderr and can't be redirected directly,
17220 # and sets the high bit in the cache file unless we assign to the vars.
17223 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17225 # `set' does not quote correctly, so add quotes (double-quote
17226 # substitution turns \\\\ into \\, and sed turns \\ into \).
17229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17232 # `set' quotes correctly as required by POSIX, so do not add quotes.
17234 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17241 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17243 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17245 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
17246 if test -w $cache_file; then
17247 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17248 cat confcache
>$cache_file
17250 echo "not updating unwritable cache $cache_file"
17255 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17256 # Let make expand exec_prefix.
17257 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17259 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17260 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17261 # trailing colons and then remove the whole line if VPATH becomes empty
17262 # (actually we leave an empty line to preserve line numbers).
17263 if test "x$srcdir" = x.
; then
17264 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17265 s/:*\$(srcdir):*/:/;
17266 s/:*\${srcdir}:*/:/;
17268 s/^\([^=]*=[ ]*\):*/\1/;
17274 DEFS
=-DHAVE_CONFIG_H
17278 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17279 # 1. Remove the extension, and $U if already installed.
17280 ac_i
=`echo "$ac_i" |
17281 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17283 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
17284 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
17286 LIBOBJS
=$ac_libobjs
17288 LTLIBOBJS
=$ac_ltlibobjs
17292 : ${CONFIG_STATUS=./config.status}
17293 ac_clean_files_save
=$ac_clean_files
17294 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17295 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17296 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17297 cat >$CONFIG_STATUS <<_ACEOF
17299 # Generated by $as_me.
17300 # Run this file to recreate the current configuration.
17301 # Compiler output produced by configure, useful for debugging
17302 # configure, is in config.log if it exists.
17305 ac_cs_recheck=false
17307 SHELL=\${CONFIG_SHELL-$SHELL}
17310 cat >>$CONFIG_STATUS <<\_ACEOF
17311 ## --------------------- ##
17312 ## M4sh Initialization. ##
17313 ## --------------------- ##
17315 # Be Bourne compatible
17316 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17319 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17320 # is contrary to our usage. Disable this feature.
17321 alias -g '${1+"$@"}'='"$@"'
17322 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
17325 DUALCASE
=1; export DUALCASE
# for MKS sh
17327 # Support unset when possible.
17328 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
17335 # Work around bugs in pre-3.0 UWIN ksh.
17336 $as_unset ENV MAIL MAILPATH
17343 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17344 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17345 LC_TELEPHONE LC_TIME
17347 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17348 eval $as_var=C
; export $as_var
17354 # Required to use basename.
17355 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17361 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
17362 as_basename
=basename
17368 # Name of the executable.
17369 as_me
=`$as_basename "$0" ||
17370 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17371 X"$0" : 'X\(//\)$' \| \
17372 X"$0" : 'X\(/\)$' \| \
17373 . : '\(.\)' 2>/dev/null ||
17375 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17376 /^X\/\(\/\/\)$/{ s//\1/; q; }
17377 /^X\/\(\/\).*/{ s//\1/; q; }
17381 # PATH needs CR, and LINENO needs CR and PATH.
17382 # Avoid depending upon Character Ranges.
17383 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17384 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17385 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17386 as_cr_digits
='0123456789'
17387 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17389 # The user is always right.
17390 if test "${PATH_SEPARATOR+set}" != set; then
17391 echo "#! /bin/sh" >conf$$.sh
17392 echo "exit 0" >>conf$$.sh
17394 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
17403 as_lineno_1
=$LINENO
17404 as_lineno_2
=$LINENO
17405 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
17406 test "x$as_lineno_1" != "x$as_lineno_2" &&
17407 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
17408 # Find who we are. Look in the path if we contain no path at all
17411 *[\\/]* ) as_myself
=$0 ;;
17412 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17413 for as_dir
in $PATH
17416 test -z "$as_dir" && as_dir
=.
17417 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
17422 # We did not find ourselves, most probably we were run as `sh COMMAND'
17423 # in which case we are not to be found in the path.
17424 if test "x$as_myself" = x
; then
17427 if test ! -f "$as_myself"; then
17428 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17429 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17430 { (exit 1); exit 1; }; }
17432 case $CONFIG_SHELL in
17434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17435 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
17438 test -z "$as_dir" && as_dir
=.
17439 for as_base
in sh bash ksh sh5
; do
17442 if ("$as_dir/$as_base" -c '
17443 as_lineno_1=$LINENO
17444 as_lineno_2=$LINENO
17445 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17446 test "x$as_lineno_1" != "x$as_lineno_2" &&
17447 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
17448 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
17449 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
17450 CONFIG_SHELL
=$as_dir/$as_base
17451 export CONFIG_SHELL
17452 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17460 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17461 # uniformly replaced by the line number. The first 'sed' inserts a
17462 # line-number line before each line; the second 'sed' does the real
17463 # work. The second script uses 'N' to pair each line-number line
17464 # with the numbered line, and appends trailing '-' during
17465 # substitution so that $LINENO is not a special case at line end.
17466 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17467 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17468 sed '=' <$as_myself |
17473 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17476 s,^['$as_cr_digits']*\n,,
17477 ' >$as_me.lineno
&&
17478 chmod +x
$as_me.lineno ||
17479 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17480 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17481 { (exit 1); exit 1; }; }
17483 # Don't try to exec as it changes $[0], causing all sort of problems
17484 # (the dirname of $[0] is not the place where we might find the
17485 # original and so on. Autoconf is especially sensible to this).
17487 # Exit status is that of the last command.
17492 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17493 *c
*,-n*) ECHO_N
= ECHO_C
='
17495 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
17496 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
17499 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17505 rm -f conf$$ conf$$.exe conf$$.
file
17507 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17508 # We could just check for DJGPP; but this test a) works b) is more generic
17509 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17510 if test -f conf$$.exe
; then
17511 # Don't use ln at all; we don't have any links
17516 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17521 rm -f conf$$ conf$$.exe conf$$.
file
17523 if mkdir
-p .
2>/dev
/null
; then
17526 test -d .
/-p && rmdir .
/-p
17530 as_executable_p
="test -f"
17532 # Sed expression to map a string onto a valid CPP name.
17533 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17535 # Sed expression to map a string onto a valid variable name.
17536 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17540 # We need space, tab and new line, in precisely that order.
17550 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17551 # report actual input values of CONFIG_FILES etc. instead of their
17552 # values after options handling. Logging --version etc. is OK.
17556 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17557 ## Running $as_me. ##
17562 This file was extended by $as_me, which was
17563 generated by GNU Autoconf 2.59. Invocation command line was
17565 CONFIG_FILES = $CONFIG_FILES
17566 CONFIG_HEADERS = $CONFIG_HEADERS
17567 CONFIG_LINKS = $CONFIG_LINKS
17568 CONFIG_COMMANDS = $CONFIG_COMMANDS
17572 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17576 # Files that config.status was made for.
17577 if test -n "$ac_config_files"; then
17578 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17581 if test -n "$ac_config_headers"; then
17582 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17585 if test -n "$ac_config_links"; then
17586 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17589 if test -n "$ac_config_commands"; then
17590 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17593 cat >>$CONFIG_STATUS <<\_ACEOF
17596 \`$as_me' instantiates files from templates according to the
17597 current configuration.
17599 Usage: $0 [OPTIONS] [FILE]...
17601 -h, --help print this help, then exit
17602 -V, --version print version number, then exit
17603 -q, --quiet do not print progress messages
17604 -d, --debug don't remove temporary files
17605 --recheck update $as_me by reconfiguring in the same conditions
17606 --file=FILE[:TEMPLATE]
17607 instantiate the configuration file FILE
17608 --header=FILE[:TEMPLATE]
17609 instantiate the configuration header FILE
17611 Configuration files:
17614 Configuration headers:
17617 Configuration commands:
17620 Report bugs to <bug-autoconf@gnu.org>."
17623 cat >>$CONFIG_STATUS <<_ACEOF
17626 configured by $0, generated by GNU Autoconf 2.59,
17627 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17629 Copyright (C) 2003 Free Software Foundation, Inc.
17630 This config.status script is free software; the Free Software Foundation
17631 gives unlimited permission to copy, distribute and modify it."
17635 cat >>$CONFIG_STATUS <<\_ACEOF
17636 # If no file are specified by the user, then we need to provide default
17637 # value. By we need to know if files were specified by the user.
17643 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
17644 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
17652 *) # This is not an option, so the user has probably given explicit
17655 ac_need_defaults
=false
;;
17659 # Handling of the options.
17661 cat >>$CONFIG_STATUS <<\_ACEOF
17662 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17664 --version |
--vers* |
-V )
17665 echo "$ac_cs_version"; exit 0 ;;
17667 # Conflict between --help and --header
17668 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17669 Try \`$0 --help' for more information." >&5
17670 echo "$as_me: error: ambiguous option: $1
17671 Try \`$0 --help' for more information." >&2;}
17672 { (exit 1); exit 1; }; };;
17673 --help |
--hel |
-h )
17674 echo "$ac_cs_usage"; exit 0 ;;
17675 --debug |
--d* |
-d )
17677 --file |
--fil |
--fi |
--f )
17679 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
17680 ac_need_defaults
=false
;;
17681 --header |
--heade |
--head |
--hea )
17683 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
17684 ac_need_defaults
=false
;;
17685 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17686 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17689 # This is an error.
17690 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17691 Try \`$0 --help' for more information." >&5
17692 echo "$as_me: error: unrecognized option: $1
17693 Try \`$0 --help' for more information." >&2;}
17694 { (exit 1); exit 1; }; } ;;
17696 *) ac_config_targets
="$ac_config_targets $1" ;;
17702 ac_configure_extra_args
=
17704 if $ac_cs_silent; then
17706 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17710 cat >>$CONFIG_STATUS <<_ACEOF
17711 if \$ac_cs_recheck; then
17712 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17713 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17718 cat >>$CONFIG_STATUS <<_ACEOF
17720 # INIT-COMMANDS section.
17729 cat >>$CONFIG_STATUS <<\_ACEOF
17730 for ac_config_target
in $ac_config_targets
17732 case "$ac_config_target" in
17733 # Handling of arguments.
17734 "as" ) CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
17735 "collect-ld" ) CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
17736 "nm" ) CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
17737 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
17738 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17739 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
17740 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17741 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17742 { (exit 1); exit 1; }; };;
17746 # If the user did not use the arguments to specify the items to instantiate,
17747 # then the envvar interface is used. Set only those that are not.
17748 # We use the long form for the default assignment because of an extremely
17749 # bizarre bug on SunOS 4.1.3.
17750 if $ac_need_defaults; then
17751 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17752 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17753 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17756 # Have a temporary directory for convenience. Make it in the build tree
17757 # simply because there is no reason to put it here, and in addition,
17758 # creating and moving files from /tmp can sometimes cause problems.
17759 # Create a temporary directory, and hook for its removal unless debugging.
17762 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17763 trap '{ (exit 1); exit 1; }' 1 2 13 15
17766 # Create a (secure) tmp directory for tmp files.
17769 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17770 test -n "$tmp" && test -d "$tmp"
17773 tmp
=.
/confstat$$
-$RANDOM
17774 (umask 077 && mkdir
$tmp)
17777 echo "$me: cannot create a temporary directory in ." >&2
17778 { (exit 1); exit 1; }
17783 cat >>$CONFIG_STATUS <<_ACEOF
17786 # CONFIG_FILES section.
17789 # No need to generate the scripts if there are no CONFIG_FILES.
17790 # This happens for instance when ./config.status config.h
17791 if test -n "\$CONFIG_FILES"; then
17792 # Protect against being on the right side of a sed subst in config.status.
17793 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17794 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17795 s,@SHELL@,$SHELL,;t t
17796 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17797 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17798 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17799 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17800 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17801 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17802 s,@exec_prefix@,$exec_prefix,;t t
17803 s,@prefix@,$prefix,;t t
17804 s,@program_transform_name@,$program_transform_name,;t t
17805 s,@bindir@,$bindir,;t t
17806 s,@sbindir@,$sbindir,;t t
17807 s,@libexecdir@,$libexecdir,;t t
17808 s,@datadir@,$datadir,;t t
17809 s,@sysconfdir@,$sysconfdir,;t t
17810 s,@sharedstatedir@,$sharedstatedir,;t t
17811 s,@localstatedir@,$localstatedir,;t t
17812 s,@libdir@,$libdir,;t t
17813 s,@includedir@,$includedir,;t t
17814 s,@oldincludedir@,$oldincludedir,;t t
17815 s,@infodir@,$infodir,;t t
17816 s,@mandir@,$mandir,;t t
17817 s,@build_alias@,$build_alias,;t t
17818 s,@host_alias@,$host_alias,;t t
17819 s,@target_alias@,$target_alias,;t t
17820 s,@DEFS@,$DEFS,;t t
17821 s,@ECHO_C@,$ECHO_C,;t t
17822 s,@ECHO_N@,$ECHO_N,;t t
17823 s,@ECHO_T@,$ECHO_T,;t t
17824 s,@LIBS@,$LIBS,;t t
17825 s,@build@,$build,;t t
17826 s,@build_cpu@,$build_cpu,;t t
17827 s,@build_vendor@,$build_vendor,;t t
17828 s,@build_os@,$build_os,;t t
17829 s,@host@,$host,;t t
17830 s,@host_cpu@,$host_cpu,;t t
17831 s,@host_vendor@,$host_vendor,;t t
17832 s,@host_os@,$host_os,;t t
17833 s,@target@,$target,;t t
17834 s,@target_cpu@,$target_cpu,;t t
17835 s,@target_vendor@,$target_vendor,;t t
17836 s,@target_os@,$target_os,;t t
17837 s,@target_noncanonical@,$target_noncanonical,;t t
17838 s,@build_libsubdir@,$build_libsubdir,;t t
17839 s,@build_subdir@,$build_subdir,;t t
17840 s,@host_subdir@,$host_subdir,;t t
17841 s,@target_subdir@,$target_subdir,;t t
17842 s,@GENINSRC@,$GENINSRC,;t t
17844 s,@CFLAGS@,$CFLAGS,;t t
17845 s,@LDFLAGS@,$LDFLAGS,;t t
17846 s,@CPPFLAGS@,$CPPFLAGS,;t t
17847 s,@ac_ct_CC@,$ac_ct_CC,;t t
17848 s,@EXEEXT@,$EXEEXT,;t t
17849 s,@OBJEXT@,$OBJEXT,;t t
17850 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17851 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17853 s,@EGREP@,$EGREP,;t t
17854 s,@loose_warn@,$loose_warn,;t t
17855 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17856 s,@strict_warn@,$strict_warn,;t t
17857 s,@warn_cflags@,$warn_cflags,;t t
17858 s,@nocommon_flag@,$nocommon_flag,;t t
17859 s,@TREEBROWSER@,$TREEBROWSER,;t t
17860 s,@valgrind_path@,$valgrind_path,;t t
17861 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17862 s,@valgrind_command@,$valgrind_command,;t t
17863 s,@coverage_flags@,$coverage_flags,;t t
17864 s,@enable_multilib@,$enable_multilib,;t t
17865 s,@enable_decimal_float@,$enable_decimal_float,;t t
17866 s,@enable_fixed_point@,$enable_fixed_point,;t t
17867 s,@enable_shared@,$enable_shared,;t t
17868 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17869 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17870 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17871 s,@onestep@,$onestep,;t t
17872 s,@PKGVERSION@,$PKGVERSION,;t t
17873 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
17874 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
17875 s,@datarootdir@,$datarootdir,;t t
17876 s,@docdir@,$docdir,;t t
17877 s,@htmldir@,$htmldir,;t t
17878 s,@SET_MAKE@,$SET_MAKE,;t t
17880 s,@LN_S@,$LN_S,;t t
17882 s,@RANLIB@,$RANLIB,;t t
17883 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17884 s,@ranlib_flags@,$ranlib_flags,;t t
17885 s,@INSTALL@,$INSTALL,;t t
17886 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17887 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17888 s,@make_compare_target@,$make_compare_target,;t t
17889 s,@have_mktemp_command@,$have_mktemp_command,;t t
17890 s,@MAKEINFO@,$MAKEINFO,;t t
17891 s,@BUILD_INFO@,$BUILD_INFO,;t t
17892 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17893 s,@FLEX@,$FLEX,;t t
17894 s,@BISON@,$BISON,;t t
17897 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17898 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17899 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17900 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17901 s,@LIBICONV@,$LIBICONV,;t t
17902 s,@LTLIBICONV@,$LTLIBICONV,;t t
17903 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17904 s,@manext@,$manext,;t t
17905 s,@objext@,$objext,;t t
17906 s,@gthread_flags@,$gthread_flags,;t t
17907 s,@extra_modes_file@,$extra_modes_file,;t t
17908 s,@extra_opt_files@,$extra_opt_files,;t t
17909 s,@USE_NLS@,$USE_NLS,;t t
17910 s,@LIBINTL@,$LIBINTL,;t t
17911 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17912 s,@INCINTL@,$INCINTL,;t t
17913 s,@XGETTEXT@,$XGETTEXT,;t t
17914 s,@GMSGFMT@,$GMSGFMT,;t t
17915 s,@POSUB@,$POSUB,;t t
17916 s,@CATALOGS@,$CATALOGS,;t t
17917 s,@DATADIRNAME@,$DATADIRNAME,;t t
17918 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17919 s,@GENCAT@,$GENCAT,;t t
17920 s,@CATOBJEXT@,$CATOBJEXT,;t t
17921 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17922 s,@CROSS@,$CROSS,;t t
17924 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17925 s,@inhibit_libc@,$inhibit_libc,;t t
17926 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17927 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17928 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17929 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17930 s,@collect2@,$collect2,;t t
17931 s,@gcc_cv_as@,$gcc_cv_as,;t t
17932 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17933 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17934 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17935 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17936 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17937 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17938 s,@libgcc_visibility@,$libgcc_visibility,;t t
17940 s,@zlibdir@,$zlibdir,;t t
17941 s,@zlibinc@,$zlibinc,;t t
17942 s,@MAINT@,$MAINT,;t t
17943 s,@gcc_tooldir@,$gcc_tooldir,;t t
17944 s,@dollar@,$dollar,;t t
17945 s,@slibdir@,$slibdir,;t t
17946 s,@objdir@,$objdir,;t t
17947 s,@subdirs@,$subdirs,;t t
17948 s,@srcdir@,$srcdir,;t t
17949 s,@all_compilers@,$all_compilers,;t t
17950 s,@all_gtfiles@,$all_gtfiles,;t t
17951 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17952 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17953 s,@all_languages@,$all_languages,;t t
17954 s,@all_selected_languages@,$all_selected_languages,;t t
17955 s,@build_exeext@,$build_exeext,;t t
17956 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17957 s,@build_xm_file_list@,$build_xm_file_list,;t t
17958 s,@build_xm_include_list@,$build_xm_include_list,;t t
17959 s,@build_xm_defines@,$build_xm_defines,;t t
17960 s,@check_languages@,$check_languages,;t t
17961 s,@cpp_install_dir@,$cpp_install_dir,;t t
17962 s,@xmake_file@,$xmake_file,;t t
17963 s,@tmake_file@,$tmake_file,;t t
17964 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17965 s,@extra_headers_list@,$extra_headers_list,;t t
17966 s,@extra_objs@,$extra_objs,;t t
17967 s,@extra_parts@,$extra_parts,;t t
17968 s,@extra_passes@,$extra_passes,;t t
17969 s,@extra_programs@,$extra_programs,;t t
17970 s,@float_h_file@,$float_h_file,;t t
17971 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17972 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17973 s,@host_exeext@,$host_exeext,;t t
17974 s,@host_xm_file_list@,$host_xm_file_list,;t t
17975 s,@host_xm_include_list@,$host_xm_include_list,;t t
17976 s,@host_xm_defines@,$host_xm_defines,;t t
17977 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17978 s,@install@,$install,;t t
17979 s,@lang_opt_files@,$lang_opt_files,;t t
17980 s,@lang_specs_files@,$lang_specs_files,;t t
17981 s,@lang_tree_files@,$lang_tree_files,;t t
17982 s,@local_prefix@,$local_prefix,;t t
17983 s,@md_file@,$md_file,;t t
17984 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17985 s,@out_file@,$out_file,;t t
17986 s,@out_object_file@,$out_object_file,;t t
17987 s,@thread_file@,$thread_file,;t t
17988 s,@tm_file_list@,$tm_file_list,;t t
17989 s,@tm_include_list@,$tm_include_list,;t t
17990 s,@tm_defines@,$tm_defines,;t t
17991 s,@tm_p_file_list@,$tm_p_file_list,;t t
17992 s,@tm_p_include_list@,$tm_p_include_list,;t t
17993 s,@xm_file_list@,$xm_file_list,;t t
17994 s,@xm_include_list@,$xm_include_list,;t t
17995 s,@xm_defines@,$xm_defines,;t t
17996 s,@c_target_objs@,$c_target_objs,;t t
17997 s,@cxx_target_objs@,$cxx_target_objs,;t t
17998 s,@target_cpu_default@,$target_cpu_default,;t t
17999 s,@GMPLIBS@,$GMPLIBS,;t t
18000 s,@GMPINC@,$GMPINC,;t t
18001 s,@LIBOBJS@,$LIBOBJS,;t t
18002 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18003 /@language_hooks@/r $language_hooks
18004 s,@language_hooks@,,;t t
18009 cat >>$CONFIG_STATUS <<\_ACEOF
18010 # Split the substitutions into bite-sized pieces for seds with
18011 # small command number limits, like on Digital OSF/1 and HP-UX.
18012 ac_max_sed_lines
=48
18013 ac_sed_frag
=1 # Number of current file.
18014 ac_beg
=1 # First line for current file.
18015 ac_end
=$ac_max_sed_lines # Line after last line for current file.
18018 while $ac_more_lines; do
18019 if test $ac_beg -gt 1; then
18020 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18022 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18024 if test ! -s $tmp/subs.frag
; then
18025 ac_more_lines
=false
18027 # The purpose of the label and of the branching condition is to
18028 # speed up the sed processing (if there are no `@' at all, there
18029 # is no need to browse any of the substitutions).
18030 # These are the two extra sed commands mentioned above.
18032 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
18033 if test -z "$ac_sed_cmds"; then
18034 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
18036 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18038 ac_sed_frag
=`expr $ac_sed_frag + 1`
18040 ac_end
=`expr $ac_end + $ac_max_sed_lines`
18043 if test -z "$ac_sed_cmds"; then
18046 fi # test -n "$CONFIG_FILES"
18049 cat >>$CONFIG_STATUS <<\_ACEOF
18050 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
18051 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18053 - |
*:- |
*:-:* ) # input from stdin
18055 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18056 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18057 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18058 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18059 * ) ac_file_in
=$ac_file.
in ;;
18062 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18063 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18065 X"$ac_file" : 'X\(//\)[^/]' \| \
18066 X"$ac_file" : 'X\(//\)$' \| \
18067 X"$ac_file" : 'X\(/\)' \| \
18068 . : '\(.\)' 2>/dev/null ||
18070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18072 /^X\(\/\/\)$/{ s//\1/; q; }
18073 /^X\(\/\).*/{ s//\1/; q; }
18075 { if $as_mkdir_p; then
18080 while test ! -d "$as_dir"; do
18081 as_dirs
="$as_dir $as_dirs"
18082 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18084 X"$as_dir" : 'X\(//\)[^/]' \| \
18085 X"$as_dir" : 'X\(//\)$' \| \
18086 X"$as_dir" : 'X\(/\)' \| \
18087 . : '\(.\)' 2>/dev/null ||
18089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18091 /^X\(\/\/\)$/{ s//\1/; q; }
18092 /^X\(\/\).*/{ s//\1/; q; }
18095 test ! -n "$as_dirs" || mkdir
$as_dirs
18096 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18097 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18098 { (exit 1); exit 1; }; }; }
18102 if test "$ac_dir" != .
; then
18103 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18104 # A "../" for each directory in $ac_dir_suffix.
18105 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18107 ac_dir_suffix
= ac_top_builddir
=
18111 .
) # No --srcdir option. We are building in place.
18113 if test -z "$ac_top_builddir"; then
18116 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18118 [\\/]* | ?
:[\\/]* ) # Absolute path.
18119 ac_srcdir
=$srcdir$ac_dir_suffix;
18120 ac_top_srcdir
=$srcdir ;;
18121 *) # Relative path.
18122 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18123 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18126 # Do not use `cd foo && pwd` to compute absolute paths, because
18127 # the directories may not exist.
18129 .
) ac_abs_builddir
="$ac_dir";;
18132 .
) ac_abs_builddir
=`pwd`;;
18133 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
18134 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
18137 case $ac_abs_builddir in
18138 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18140 case ${ac_top_builddir}.
in
18141 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18142 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18143 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18146 case $ac_abs_builddir in
18147 .
) ac_abs_srcdir
=$ac_srcdir;;
18150 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18151 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18152 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18155 case $ac_abs_builddir in
18156 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18158 case $ac_top_srcdir in
18159 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18160 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18161 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18167 if test x
"$ac_file" != x-
; then
18168 { echo "$as_me:$LINENO: creating $ac_file" >&5
18169 echo "$as_me: creating $ac_file" >&6;}
18172 # Let's still pretend it is `configure' which instantiates (i.e., don't
18173 # use $as_me), people would be surprised to read:
18174 # /* config.h. Generated by config.status. */
18175 if test x
"$ac_file" = x-
; then
18178 configure_input
="$ac_file. "
18180 configure_input
=$configure_input"Generated from `echo $ac_file_in |
18181 sed 's,.*/,,'` by configure."
18183 # First look for the input files in the build tree, otherwise in the
18185 ac_file_inputs
=`IFS=:
18186 for f in $ac_file_in; do
18188 -) echo $tmp/stdin ;;
18190 # Absolute (can't be DOS-style, as IFS=:)
18191 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18192 echo "$as_me: error: cannot find input file: $f" >&2;}
18193 { (exit 1); exit 1; }; }
18196 if test -f "$f"; then
18199 elif test -f "$srcdir/$f"; then
18204 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18205 echo "$as_me: error: cannot find input file: $f" >&2;}
18206 { (exit 1); exit 1; }; }
18209 done` ||
{ (exit 1); exit 1; }
18211 cat >>$CONFIG_STATUS <<_ACEOF
18215 cat >>$CONFIG_STATUS <<\_ACEOF
18217 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18218 s
,@configure_input@
,$configure_input,;t t
18219 s
,@srcdir@
,$ac_srcdir,;t t
18220 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
18221 s
,@top_srcdir@
,$ac_top_srcdir,;t t
18222 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
18223 s
,@builddir@
,$ac_builddir,;t t
18224 s
,@abs_builddir@
,$ac_abs_builddir,;t t
18225 s
,@top_builddir@
,$ac_top_builddir,;t t
18226 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
18227 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18229 if test x"$ac_file" != x-; then
18230 mv $tmp/out $ac_file
18236 # Run the commands associated with the file.
18238 as ) chmod +x as ;;
18239 collect-ld ) chmod +x collect-ld ;;
18240 nm ) chmod +x nm ;;
18244 cat >>$CONFIG_STATUS <<\_ACEOF
18247 # CONFIG_HEADER section.
18250 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
18251 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18253 # ac_d sets the value in "#define NAME VALUE" lines.
18254 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18255 ac_dB
='[ ].*$,\1#\2'
18258 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18259 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18260 ac_uB
='$,\1#\2define\3'
18264 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
18265 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18267 - |
*:- |
*:-:* ) # input from stdin
18269 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18270 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18271 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18272 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18273 * ) ac_file_in
=$ac_file.
in ;;
18276 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
18277 echo "$as_me: creating $ac_file" >&6;}
18279 # First look for the input files in the build tree, otherwise in the
18281 ac_file_inputs
=`IFS=:
18282 for f in $ac_file_in; do
18284 -) echo $tmp/stdin ;;
18286 # Absolute (can't be DOS-style, as IFS=:)
18287 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18288 echo "$as_me: error: cannot find input file: $f" >&2;}
18289 { (exit 1); exit 1; }; }
18290 # Do quote $f, to prevent DOS paths from being IFS'd.
18293 if test -f "$f"; then
18296 elif test -f "$srcdir/$f"; then
18301 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18302 echo "$as_me: error: cannot find input file: $f" >&2;}
18303 { (exit 1); exit 1; }; }
18306 done` ||
{ (exit 1); exit 1; }
18307 # Remove the trailing spaces.
18308 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18312 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18313 # `conftest.undefs', that substitutes the proper values into
18314 # config.h.in to produce config.h. The first handles `#define'
18315 # templates, and the second `#undef' templates.
18316 # And first: Protect against being on the right side of a sed subst in
18317 # config.status. Protect against being in an unquoted here document
18318 # in config.status.
18319 rm -f conftest.defines conftest.undefs
18320 # Using a here document instead of a string reduces the quoting nightmare.
18321 # Putting comments in sed scripts is not portable.
18323 # `end' is used to avoid that the second main sed command (meant for
18324 # 0-ary CPP macros) applies to n-ary macro definitions.
18325 # See the Autoconf documentation for `clear'.
18326 cat >confdef2sed.
sed <<\_ACEOF
18331 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18333 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18336 # If some macros were called several times there might be several times
18337 # the same #defines, which is useless. Nevertheless, we may not want to
18338 # sort them, since we want the *last* AC-DEFINE to be honored.
18339 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18340 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18341 rm -f confdef2sed.sed
18343 # This sed command replaces #undef with comments. This is necessary, for
18344 # example, in the case of _POSIX_SOURCE, which is predefined and required
18345 # on some systems where configure will not decide to define it.
18346 cat >>conftest.undefs <<\_ACEOF
18347 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18350 # Break up conftest.defines because some shells have a limit on the size
18351 # of here documents, and old seds have small limits too (100 cmds).
18352 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18353 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18354 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18355 echo ' :' >>$CONFIG_STATUS
18356 rm -f conftest.tail
18357 while grep . conftest.defines >/dev/null
18359 # Write a limited-size here document to $tmp/defines.sed.
18360 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18361 # Speed up: don't consider the non `#define' lines.
18362 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18363 # Work around the forget-to-reset-the-flag bug.
18364 echo 't clr' >>$CONFIG_STATUS
18365 echo ': clr' >>$CONFIG_STATUS
18366 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
18368 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18370 mv $tmp/out $tmp/in
18372 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
18373 rm -f conftest.defines
18374 mv conftest.
tail conftest.defines
18376 rm -f conftest.defines
18377 echo ' fi # grep' >>$CONFIG_STATUS
18378 echo >>$CONFIG_STATUS
18380 # Break up conftest.undefs because some shells have a limit on the size
18381 # of here documents, and old seds have small limits too (100 cmds).
18382 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18383 rm -f conftest.
tail
18384 while grep . conftest.undefs
>/dev
/null
18386 # Write a limited-size here document to $tmp/undefs.sed.
18387 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18388 # Speed up: don't consider the non
`#undef'
18389 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18390 # Work around the forget-to-reset-the-flag bug.
18391 echo 't clr' >>$CONFIG_STATUS
18392 echo ': clr' >>$CONFIG_STATUS
18393 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18395 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18397 mv $tmp/out $tmp/in
18399 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18400 rm -f conftest.undefs
18401 mv conftest.tail conftest.undefs
18403 rm -f conftest.undefs
18405 cat >>$CONFIG_STATUS <<\_ACEOF
18406 # Let's still pretend it is `configure
' which instantiates (i.e., don't
18407 # use $as_me), people would be surprised to read:
18408 # /* config.h. Generated by config.status. */
18409 if test x
"$ac_file" = x-
; then
18410 echo "/* Generated by configure. */" >$tmp/config.h
18412 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18414 cat $tmp/in >>$tmp/config.h
18416 if test x
"$ac_file" != x-
; then
18417 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
18418 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18419 echo "$as_me: $ac_file is unchanged" >&6;}
18421 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18422 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18423 X"$ac_file" : 'X\(//\)[^/]' \| \
18424 X"$ac_file" : 'X\(//\)$' \| \
18425 X"$ac_file" : 'X\(/\)' \| \
18426 . : '\(.\)' 2>/dev/null ||
18428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18429 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18430 /^X\(\/\/\)$/{ s//\1/; q; }
18431 /^X\(\/\).*/{ s//\1/; q; }
18433 { if $as_mkdir_p; then
18438 while test ! -d "$as_dir"; do
18439 as_dirs
="$as_dir $as_dirs"
18440 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18441 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18442 X"$as_dir" : 'X\(//\)[^/]' \| \
18443 X"$as_dir" : 'X\(//\)$' \| \
18444 X"$as_dir" : 'X\(/\)' \| \
18445 . : '\(.\)' 2>/dev/null ||
18447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18449 /^X\(\/\/\)$/{ s//\1/; q; }
18450 /^X\(\/\).*/{ s//\1/; q; }
18453 test ! -n "$as_dirs" || mkdir
$as_dirs
18454 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18455 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18456 { (exit 1); exit 1; }; }; }
18459 mv $tmp/config.h
$ac_file
18463 rm -f $tmp/config.h
18467 cat >>$CONFIG_STATUS <<\_ACEOF
18470 # CONFIG_COMMANDS section.
18472 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
18473 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18474 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18475 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
18476 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18477 X"$ac_dest" : 'X\(//\)[^/]' \| \
18478 X"$ac_dest" : 'X\(//\)$' \| \
18479 X"$ac_dest" : 'X\(/\)' \| \
18480 . : '\(.\)' 2>/dev/null ||
18482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18484 /^X\(\/\/\)$/{ s//\1/; q; }
18485 /^X\(\/\).*/{ s//\1/; q; }
18487 { if $as_mkdir_p; then
18492 while test ! -d "$as_dir"; do
18493 as_dirs
="$as_dir $as_dirs"
18494 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18496 X"$as_dir" : 'X\(//\)[^/]' \| \
18497 X"$as_dir" : 'X\(//\)$' \| \
18498 X"$as_dir" : 'X\(/\)' \| \
18499 . : '\(.\)' 2>/dev/null ||
18501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18503 /^X\(\/\/\)$/{ s//\1/; q; }
18504 /^X\(\/\).*/{ s//\1/; q; }
18507 test ! -n "$as_dirs" || mkdir
$as_dirs
18508 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18509 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18510 { (exit 1); exit 1; }; }; }
18514 if test "$ac_dir" != .
; then
18515 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18516 # A "../" for each directory in $ac_dir_suffix.
18517 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18519 ac_dir_suffix
= ac_top_builddir
=
18523 .
) # No --srcdir option. We are building in place.
18525 if test -z "$ac_top_builddir"; then
18528 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18530 [\\/]* | ?
:[\\/]* ) # Absolute path.
18531 ac_srcdir
=$srcdir$ac_dir_suffix;
18532 ac_top_srcdir
=$srcdir ;;
18533 *) # Relative path.
18534 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18535 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18538 # Do not use `cd foo && pwd` to compute absolute paths, because
18539 # the directories may not exist.
18541 .
) ac_abs_builddir
="$ac_dir";;
18544 .
) ac_abs_builddir
=`pwd`;;
18545 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
18546 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
18549 case $ac_abs_builddir in
18550 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18552 case ${ac_top_builddir}.
in
18553 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18554 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18555 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18558 case $ac_abs_builddir in
18559 .
) ac_abs_srcdir
=$ac_srcdir;;
18562 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18563 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18564 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18567 case $ac_abs_builddir in
18568 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18570 case $ac_top_srcdir in
18571 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18572 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18573 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18578 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18579 echo "$as_me: executing $ac_dest commands" >&6;}
18582 case ${CONFIG_HEADERS} in
18583 *auto-host.h
:config.
in*)
18586 # Make sure all the subdirs exist.
18587 for d
in $subdirs doc build
18589 test -d $d || mkdir
$d
18596 cat >>$CONFIG_STATUS <<\_ACEOF
18598 { (exit 0); exit 0; }
18600 chmod +x
$CONFIG_STATUS
18601 ac_clean_files
=$ac_clean_files_save
18604 # configure is writing to config.log, and then calls config.status.
18605 # config.status does its own redirection, appending to config.log.
18606 # Unfortunately, on DOS this fails, as config.log is still kept open
18607 # by configure, so config.status won't be able to write to it; its
18608 # output is simply discarded. So we exec the FD to /dev/null,
18609 # effectively closing config.log, so it can be properly (re)opened and
18610 # appended to by config.status. When coming back to configure, we
18611 # need to make the FD available again.
18612 if test "$no_create" != yes; then
18614 ac_config_status_args
=
18615 test "$silent" = yes &&
18616 ac_config_status_args
="$ac_config_status_args --quiet"
18618 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18620 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18621 # would make configure fail if this is the last instruction.
18622 $ac_cs_success ||
{ (exit 1); exit 1; }