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 strict1_warn cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep 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 stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS 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_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_selected_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: yes,no
,all
,none
,release.
871 Flags are
: assert
,fold,gc
,gcac
,misc
,
872 rtlflag
,rtl
,runtime
,tree
,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler
's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-decimal-float enable decimal float extension to C
884 --enable-threads enable thread usage for target GCC
885 --enable-threads=LIB use LIB thread package for target GCC
886 --enable-tls enable or disable generation of tls code
887 overriding the assembler check for tls support
888 --enable-objc-gc enable the use of Boehm's garbage collector with
889 the GNU Objective-C runtime
890 --disable-shared don
't provide a shared libgcc
891 --enable-intermodule build the compiler in one step
892 --enable-languages=LIST specify which front-ends to build
893 --disable-rpath do not hardcode runtime library paths
894 --enable-initfini-array use .init_array/.fini_array sections
895 --enable-sjlj-exceptions
896 arrange to use setjmp/longjmp exception handling
897 --enable-secureplt enable -msecure-plt by default for PowerPC
898 --disable-win32-registry
899 disable lookup of installation paths in the
900 Registry on Windows hosts
901 --enable-win32-registry enable registry lookup (default)
902 --enable-win32-registry=KEY
903 use KEY instead of GCC version as the last portion
905 --enable-maintainer-mode
906 enable make rules and dependencies not useful
907 (and sometimes confusing) to the casual installer
908 --enable-version-specific-runtime-libs
909 specify that runtime libraries should be
910 installed in a compiler-specific directory
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 --with-build-libsubdir=DIR Directory where to find libraries for build system
916 --with-local-prefix=DIR specifies directory to put local include
917 --with-gxx-include-dir=DIR
918 specifies directory to put g++ header files
919 --with-cpp-install-dir=DIR
920 install the user visible C preprocessor in DIR
921 (relative to PREFIX) as well as PREFIX/bin
922 --with-gnu-ld arrange to work with GNU ld.
923 --with-ld arrange to use the specified ld (full pathname)
924 --with-demangler-in-ld try to use demangler in GNU ld.
925 --with-gnu-as arrange to work with GNU as
926 --with-as arrange to use the specified as (full pathname)
927 --with-stabs arrange to use stabs instead of host debug format
928 --with-dwarf2 force the default debug format to be DWARF 2
929 --with-build-sysroot=sysroot
930 use sysroot as the system root during the build
931 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
932 --with-gnu-ld assume the C compiler uses GNU ld default=no
933 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
934 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
935 --with-system-libunwind use installed libunwind
936 --with-long-double-128 Use
128-bit long double by default.
937 --with-gc={page
,zone
} choose the garbage collection mechanism to use
939 --with-system-zlib use installed libz
940 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
941 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
942 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
943 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
945 Some influential environment variables
:
946 CC C compiler
command
947 CFLAGS C compiler flags
948 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
949 nonstandard directory
<lib dir
>
950 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
951 headers
in a nonstandard directory
<include dir
>
953 GMPLIBS How to link GMP
954 GMPINC How to
find GMP include files
956 Use these variables to override the choices made by
`configure' or to help
957 it to find libraries and programs with nonstandard names/locations.
962 if test "$ac_init_help" = "recursive"; then
963 # If there are subdirs, report their specific --help.
965 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
966 test -d $ac_dir || continue
969 if test "$ac_dir" != .; then
970 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
971 # A "../" for each directory in $ac_dir_suffix.
972 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
974 ac_dir_suffix= ac_top_builddir=
978 .) # No --srcdir option. We are building in place.
980 if test -z "$ac_top_builddir"; then
983 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
985 [\\/]* | ?:[\\/]* ) # Absolute path.
986 ac_srcdir=$srcdir$ac_dir_suffix;
987 ac_top_srcdir=$srcdir ;;
989 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
990 ac_top_srcdir=$ac_top_builddir$srcdir ;;
993 # Do not use `cd foo
&& pwd` to compute absolute paths, because
994 # the directories may not exist.
996 .) ac_abs_builddir="$ac_dir";;
999 .) ac_abs_builddir=`pwd`;;
1000 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1001 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1004 case $ac_abs_builddir in
1005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1007 case ${ac_top_builddir}. in
1008 .) ac_abs_top_builddir=$ac_abs_builddir;;
1009 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1010 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1013 case $ac_abs_builddir in
1014 .) ac_abs_srcdir=$ac_srcdir;;
1017 .) ac_abs_srcdir=$ac_abs_builddir;;
1018 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1019 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1022 case $ac_abs_builddir in
1023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1025 case $ac_top_srcdir in
1026 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1027 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1028 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1033 # Check for guested configure; otherwise get Cygnus style configure.
1034 if test -f $ac_srcdir/configure.gnu; then
1036 $SHELL $ac_srcdir/configure.gnu --help=recursive
1037 elif test -f $ac_srcdir/configure; then
1039 $SHELL $ac_srcdir/configure --help=recursive
1040 elif test -f $ac_srcdir/configure.ac ||
1041 test -f $ac_srcdir/configure.in; then
1043 $ac_configure --help
1045 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1051 test -n "$ac_init_help" && exit 0
1052 if $ac_init_version; then
1055 Copyright (C) 2003 Free Software Foundation, Inc.
1056 This configure script is free software; the Free Software Foundation
1057 gives unlimited permission to copy, distribute and modify it.
1063 This file contains any messages produced by compilers while
1064 running configure, to aid debugging if configure makes a mistake.
1066 It was created by $as_me, which was
1067 generated by GNU Autoconf 2.59. Invocation command line was
1078 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1079 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1080 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1081 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1082 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1084 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1085 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1087 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1088 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1089 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1090 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1091 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1092 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1093 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1101 test -z "$as_dir" && as_dir=.
1102 echo "PATH: $as_dir"
1117 # Keep a trace of the command line.
1118 # Strip out --no-create and --no-recursion so they do not pile up.
1119 # Strip out --silent because we don't want to record it for future runs.
1120 # Also quote any args containing shell meta-characters.
1121 # Make two passes to allow for proper duplicate-argument suppression.
1126 ac_must_keep_next=false
1132 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1136 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1137 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1140 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1142 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1143 if test $ac_must_keep_next = true; then
1144 ac_must_keep_next=false # Got value, back to normal.
1147 *=* | --config-cache | -C | -disable-* | --disable-* \
1148 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1149 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1150 | -with-* | --with-* | -without-* | --without-* | --x)
1151 case "$ac_configure_args0 " in
1152 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1155 -* ) ac_must_keep_next=true ;;
1158 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1159 # Get rid of the leading space.
1165 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1166 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1168 # When interrupted or exit'd, cleanup temporary files, and complete
1169 # config.log. We remove comments because anyway the quotes in there
1170 # would cause problems or look ugly.
1171 # WARNING: Be sure not to use single quotes in there, as some shells,
1172 # such as our DU 5.0 friend, will then `close
' the trap.
1173 trap 'exit_status
=$?
1174 # Save into config.log some information that might help in debugging.
1179 ## ---------------- ##
1180 ## Cache variables. ##
1181 ## ---------------- ##
1184 # The following way of writing the cache mishandles newlines in values,
1187 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1190 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1195 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1202 ## ----------------- ##
1203 ## Output variables. ##
1204 ## ----------------- ##
1207 for ac_var
in $ac_subst_vars
1209 eval ac_val
=$
`echo $ac_var`
1210 echo "$ac_var='"'"'$ac_val'"'"'"
1214 if test -n "$ac_subst_files"; then
1221 for ac_var
in $ac_subst_files
1223 eval ac_val
=$
`echo $ac_var`
1224 echo "$ac_var='"'"'$ac_val'"'"'"
1229 if test -s confdefs.h
; then
1236 sed "/^$/d" confdefs.h |
sort
1239 test "$ac_signal" != 0 &&
1240 echo "$as_me: caught signal $ac_signal"
1241 echo "$as_me: exit $exit_status"
1243 rm -f core
*.core
&&
1244 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1247 for ac_signal in 1 2 13 15; do
1248 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1253 rm -rf conftest* confdefs.h
1254 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1257 # Predefined preprocessor variables.
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_NAME "$PACKAGE_NAME"
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_STRING "$PACKAGE_STRING"
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1284 # Let the site file select an alternate cache file if it wants to.
1285 # Prefer explicitly selected file to automatically selected ones.
1286 if test -z "$CONFIG_SITE"; then
1287 if test "x$prefix" != xNONE; then
1288 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1290 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1293 for ac_site_file in $CONFIG_SITE; do
1294 if test -r "$ac_site_file"; then
1295 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1296 echo "$as_me: loading site script $ac_site_file" >&6;}
1297 sed 's
/^
/|
/' "$ac_site_file" >&5
1302 if test -r "$cache_file"; then
1303 # Some versions of bash will fail to source /dev/null (special
1304 # files actually), so we avoid doing that.
1305 if test -f "$cache_file"; then
1306 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1307 echo "$as_me: loading cache $cache_file" >&6;}
1309 [\\/]* | ?:[\\/]* ) . $cache_file;;
1310 *) . ./$cache_file;;
1314 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1315 echo "$as_me: creating cache $cache_file" >&6;}
1319 # Check that the precious variables saved in the cache have kept the same
1321 ac_cache_corrupted=false
1322 for ac_var in `(set) 2>&1 |
1323 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1324 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1325 eval ac_new_set=\$ac_env_${ac_var}_set
1326 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1327 eval ac_new_val="\$ac_env_${ac_var}_value"
1328 case $ac_old_set,$ac_new_set in
1330 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1331 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1332 ac_cache_corrupted=: ;;
1334 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1335 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1336 ac_cache_corrupted=: ;;
1339 if test "x$ac_old_val" != "x$ac_new_val"; then
1340 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1341 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1342 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1343 echo "$as_me: former value: $ac_old_val" >&2;}
1344 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1345 echo "$as_me: current value: $ac_new_val" >&2;}
1346 ac_cache_corrupted=:
1349 # Pass precious variables to config.status.
1350 if test "$ac_new_set" = set; then
1352 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1353 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1354 *) ac_arg=$ac_var=$ac_new_val ;;
1356 case " $ac_configure_args " in
1357 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1358 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1362 if $ac_cache_corrupted; then
1363 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1364 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1365 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1366 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1367 { (exit 1); exit 1; }; }
1371 ac_cpp='$CPP $CPPFLAGS'
1372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1373 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1395 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1398 gcc_version=`cat $srcdir/BASE-VER`
1400 # Determine the host, build, and target systems
1402 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1403 if test -f $ac_dir/install-sh; then
1405 ac_install_sh="$ac_aux_dir/install-sh -c"
1407 elif test -f $ac_dir/install.sh; then
1409 ac_install_sh="$ac_aux_dir/install.sh -c"
1411 elif test -f $ac_dir/shtool; then
1413 ac_install_sh="$ac_aux_dir/shtool install -c"
1417 if test -z "$ac_aux_dir"; then
1418 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1419 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1420 { (exit 1); exit 1; }; }
1422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1424 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1426 # Make sure we can run config.sub.
1427 $ac_config_sub sun4 >/dev/null 2>&1 ||
1428 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1429 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1430 { (exit 1); exit 1; }; }
1432 echo "$as_me:$LINENO: checking build system type" >&5
1433 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1434 if test "${ac_cv_build+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 ac_cv_build_alias=$build_alias
1438 test -z "$ac_cv_build_alias" &&
1439 ac_cv_build_alias=`$ac_config_guess`
1440 test -z "$ac_cv_build_alias" &&
1441 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1442 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1443 { (exit 1); exit 1; }; }
1444 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1445 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1446 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1447 { (exit 1); exit 1; }; }
1450 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1451 echo "${ECHO_T}$ac_cv_build" >&6
1453 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1454 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1455 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1458 echo "$as_me:$LINENO: checking host system type" >&5
1459 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1460 if test "${ac_cv_host+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 ac_cv_host_alias=$host_alias
1464 test -z "$ac_cv_host_alias" &&
1465 ac_cv_host_alias=$ac_cv_build_alias
1466 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1467 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1468 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1469 { (exit 1); exit 1; }; }
1472 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1473 echo "${ECHO_T}$ac_cv_host" >&6
1475 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1476 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1477 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1480 echo "$as_me:$LINENO: checking target system type" >&5
1481 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1482 if test "${ac_cv_target+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 ac_cv_target_alias=$target_alias
1486 test "x$ac_cv_target_alias" = "x" &&
1487 ac_cv_target_alias=$ac_cv_host_alias
1488 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1489 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1490 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1491 { (exit 1); exit 1; }; }
1494 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1495 echo "${ECHO_T}$ac_cv_target" >&6
1496 target=$ac_cv_target
1497 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1498 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1499 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1502 # The aliases save the names the user supplied, while $host etc.
1503 # will get canonicalized.
1504 test -n "$target_alias" &&
1505 test "$program_prefix$program_suffix$program_transform_name" = \
1507 program_prefix=${target_alias}-
1509 # Determine the noncanonical target name, for directory use.
1510 case ${build_alias} in
1511 "") build_noncanonical=${build} ;;
1512 *) build_noncanonical=${build_alias} ;;
1515 case ${host_alias} in
1516 "") host_noncanonical=${build_noncanonical} ;;
1517 *) host_noncanonical=${host_alias} ;;
1520 case ${target_alias} in
1521 "") target_noncanonical=${host_noncanonical} ;;
1522 *) target_noncanonical=${target_alias} ;;
1528 # Determine the target- and build-specific subdirectories
1530 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1531 # have matching libraries, they should use host libraries: Makefile.tpl
1532 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1533 # However, they still use the build modules, because the corresponding
1534 # host modules (e.g. bison) are only built for the host when bootstrap
1536 # - build_subdir is where we find build modules, and never changes.
1537 # - build_libsubdir is where we find build libraries, and can be overridden.
1539 # Prefix 'build-
' so this never conflicts with target_subdir.
1540 build_subdir="build-${build_noncanonical}"
1542 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1543 if test "${with_build_libsubdir+set}" = set; then
1544 withval="$with_build_libsubdir"
1545 build_libsubdir="$withval"
1547 build_libsubdir="$build_subdir"
1549 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1550 if ( test $srcdir = . && test -d gcc ) \
1551 || test -d $srcdir/../host-${host_noncanonical}; then
1552 host_subdir="host-${host_noncanonical}"
1557 target_subdir=${target_noncanonical}
1560 # Set program_transform_name
1561 test "$program_prefix" != NONE &&
1562 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1563 # Use a double $ so make ignores it.
1564 test "$program_suffix" != NONE &&
1565 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1566 # Double any \ or $. echo might interpret backslashes.
1567 # By default was `s,x,x', remove it
if useless.
1568 cat <<\_ACEOF
>conftest.
sed
1569 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1571 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1575 # Check for bogus environment variables.
1576 # Test if LIBRARY_PATH contains the notation for the current directory
1577 # since this would lead to problems installing/building glibc.
1578 # LIBRARY_PATH contains the current directory if one of the following
1580 # - one of the terminals (":" and ";") is the first or last sign
1581 # - two terminals occur directly after each other
1582 # - the path contains an element with a dot in it
1583 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1584 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1585 case ${LIBRARY_PATH} in
1586 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1587 library_path_setting
="contains current directory"
1590 library_path_setting
="ok"
1593 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1594 echo "${ECHO_T}$library_path_setting" >&6
1595 if test "$library_path_setting" != "ok"; then
1596 { { echo "$as_me:$LINENO: error:
1597 *** LIBRARY_PATH shouldn't contain the current directory when
1598 *** building gcc. Please change the environment variable
1599 *** and run configure again." >&5
1600 echo "$as_me: error:
1601 *** LIBRARY_PATH shouldn't contain the current directory when
1602 *** building gcc. Please change the environment variable
1603 *** and run configure again." >&2;}
1604 { (exit 1); exit 1; }; }
1607 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1608 # since this would lead to problems installing/building glibc.
1609 # GCC_EXEC_PREFIX contains the current directory if one of the following
1611 # - one of the terminals (":" and ";") is the first or last sign
1612 # - two terminals occur directly after each other
1613 # - the path contains an element with a dot in it
1614 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1615 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1616 case ${GCC_EXEC_PREFIX} in
1617 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1618 gcc_exec_prefix_setting
="contains current directory"
1621 gcc_exec_prefix_setting
="ok"
1624 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1625 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1626 if test "$gcc_exec_prefix_setting" != "ok"; then
1627 { { echo "$as_me:$LINENO: error:
1628 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1629 *** building gcc. Please change the environment variable
1630 *** and run configure again." >&5
1631 echo "$as_me: error:
1632 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1633 *** building gcc. Please change the environment variable
1634 *** and run configure again." >&2;}
1635 { (exit 1); exit 1; }; }
1642 # Specify the local prefix
1645 # Check whether --with-local-prefix or --without-local-prefix was given.
1646 if test "${with_local_prefix+set}" = set; then
1647 withval
="$with_local_prefix"
1648 case "${withval}" in
1649 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1650 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1651 { (exit 1); exit 1; }; } ;;
1653 *) local_prefix
=$with_local_prefix ;;
1657 # Default local prefix if it is empty
1658 if test x
$local_prefix = x
; then
1659 local_prefix
=/usr
/local
1662 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1663 # passed in by the toplevel make and thus we'd get different behavior
1664 # depending on where we built the sources.
1665 gcc_gxx_include_dir
=
1666 # Specify the g++ header file directory
1668 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1669 if test "${with_gxx_include_dir+set}" = set; then
1670 withval
="$with_gxx_include_dir"
1671 case "${withval}" in
1672 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1673 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1674 { (exit 1); exit 1; }; } ;;
1676 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1680 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1681 if test x
${gcc_gxx_include_dir} = x
; then
1682 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1683 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1685 libstdcxx_incdir
='include/c++/$(version)'
1686 if test x
$host != x
$target; then
1687 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1689 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
1694 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1695 if test "${with_cpp_install_dir+set}" = set; then
1696 withval
="$with_cpp_install_dir"
1697 if test x
$withval = xyes
; then
1698 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1699 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1700 { (exit 1); exit 1; }; }
1701 elif test x
$withval != xno
; then
1702 cpp_install_dir
=$withval
1706 # We would like to our source tree to be readonly. However when releases or
1707 # pre-releases are generated, the flex/bison generated files as well as the
1708 # various formats of manuals need to be included along with the rest of the
1709 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1712 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1713 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1714 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1715 if test "${enable_generated_files_in_srcdir+set}" = set; then
1716 enableval
="$enable_generated_files_in_srcdir"
1717 generated_files_in_srcdir
=$enableval
1719 generated_files_in_srcdir
=no
1722 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1723 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1725 if test "$generated_files_in_srcdir" = "yes"; then
1732 # -------------------
1733 # Find default linker
1734 # -------------------
1738 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1739 if test "${with_gnu_ld+set}" = set; then
1740 withval
="$with_gnu_ld"
1741 gnu_ld_flag
="$with_gnu_ld"
1746 # With pre-defined ld
1748 # Check whether --with-ld or --without-ld was given.
1749 if test "${with_ld+set}" = set; then
1751 DEFAULT_LINKER
="$with_ld"
1753 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1754 if test ! -x "$DEFAULT_LINKER"; then
1755 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1756 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1757 { (exit 1); exit 1; }; }
1758 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1762 cat >>confdefs.h
<<_ACEOF
1763 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1768 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1769 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1770 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1771 if test x
"$gnu_ld_flag" = x
"no"; then
1772 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1773 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1775 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1776 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1779 echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1783 # With demangler in GNU ld
1785 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1786 if test "${with_demangler_in_ld+set}" = set; then
1787 withval
="$with_demangler_in_ld"
1788 demangler_in_ld
="$with_demangler_in_ld"
1793 # ----------------------
1794 # Find default assembler
1795 # ----------------------
1799 # Check whether --with-gnu-as or --without-gnu-as was given.
1800 if test "${with_gnu_as+set}" = set; then
1801 withval
="$with_gnu_as"
1802 gas_flag
="$with_gnu_as"
1808 # Check whether --with-as or --without-as was given.
1809 if test "${with_as+set}" = set; then
1811 DEFAULT_ASSEMBLER
="$with_as"
1813 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1814 if test ! -x "$DEFAULT_ASSEMBLER"; then
1815 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1816 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1817 { (exit 1); exit 1; }; }
1818 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1822 cat >>confdefs.h
<<_ACEOF
1823 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1828 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1829 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1830 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1831 if test x
"$gas_flag" = x
"no"; then
1832 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1833 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1835 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1836 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1839 echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6
1847 # If a non-executable a.out is present (e.g. created by GNU as above even if
1848 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1849 # file, even when creating an executable, so an execution test fails.
1850 # Remove possible default executable files to avoid this.
1852 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1853 # Autoconf includes it.
1854 rm -f a.out a.exe b.out
1856 # Find the native compiler
1858 ac_cpp
='$CPP $CPPFLAGS'
1859 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1862 if test -n "$ac_tool_prefix"; then
1863 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1864 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 if test -n "$CC"; then
1871 ac_cv_prog_CC
="$CC" # Let the user override the test.
1873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1877 test -z "$as_dir" && as_dir
=.
1878 for ac_exec_ext
in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 if test -n "$CC"; then
1891 echo "$as_me:$LINENO: result: $CC" >&5
1892 echo "${ECHO_T}$CC" >&6
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1899 if test -z "$ac_cv_prog_CC"; then
1901 # Extract the first word of "gcc", so it can be a program name with args.
1902 set dummy gcc
; ac_word
=$2
1903 echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 if test -n "$ac_ct_CC"; then
1909 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1915 test -z "$as_dir" && as_dir
=.
1916 for ac_exec_ext
in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 ac_cv_prog_ac_ct_CC
="gcc"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1928 if test -n "$ac_ct_CC"; then
1929 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1930 echo "${ECHO_T}$ac_ct_CC" >&6
1932 echo "$as_me:$LINENO: result: no" >&5
1933 echo "${ECHO_T}no" >&6
1941 if test -z "$CC"; then
1942 if test -n "$ac_tool_prefix"; then
1943 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1944 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 if test -n "$CC"; then
1951 ac_cv_prog_CC
="$CC" # Let the user override the test.
1953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1957 test -z "$as_dir" && as_dir
=.
1958 for ac_exec_ext
in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970 if test -n "$CC"; then
1971 echo "$as_me:$LINENO: result: $CC" >&5
1972 echo "${ECHO_T}$CC" >&6
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1979 if test -z "$ac_cv_prog_CC"; then
1981 # Extract the first word of "cc", so it can be a program name with args.
1982 set dummy cc
; ac_word
=$2
1983 echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 if test -n "$ac_ct_CC"; then
1989 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir
=.
1996 for ac_exec_ext
in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 ac_cv_prog_ac_ct_CC
="cc"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2008 if test -n "$ac_ct_CC"; then
2009 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2010 echo "${ECHO_T}$ac_ct_CC" >&6
2012 echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2022 if test -z "$CC"; then
2023 # Extract the first word of "cc", so it can be a program name with args.
2024 set dummy cc
; ac_word
=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test -n "$CC"; then
2031 ac_cv_prog_CC
="$CC" # Let the user override the test.
2034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2038 test -z "$as_dir" && as_dir
=.
2039 for ac_exec_ext
in '' $ac_executable_extensions; do
2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2042 ac_prog_rejected
=yes
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 if test $ac_prog_rejected = yes; then
2053 # We found a bogon in the path, so make sure we never use it.
2054 set dummy
$ac_cv_prog_CC
2056 if test $# != 0; then
2057 # We chose a different compiler from the bogus one.
2058 # However, it has the same basename, so the bogon will be chosen
2059 # first if we set CC to just the basename; use the full file name.
2061 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2067 if test -n "$CC"; then
2068 echo "$as_me:$LINENO: result: $CC" >&5
2069 echo "${ECHO_T}$CC" >&6
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2076 if test -z "$CC"; then
2077 if test -n "$ac_tool_prefix"; then
2080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2081 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2082 echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084 if test "${ac_cv_prog_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 if test -n "$CC"; then
2088 ac_cv_prog_CC
="$CC" # Let the user override the test.
2090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2094 test -z "$as_dir" && as_dir
=.
2095 for ac_exec_ext
in '' $ac_executable_extensions; do
2096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 if test -n "$CC"; then
2108 echo "$as_me:$LINENO: result: $CC" >&5
2109 echo "${ECHO_T}$CC" >&6
2111 echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6
2115 test -n "$CC" && break
2118 if test -z "$CC"; then
2122 # Extract the first word of "$ac_prog", so it can be a program name with args.
2123 set dummy
$ac_prog; ac_word
=$2
2124 echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 if test -n "$ac_ct_CC"; then
2130 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2136 test -z "$as_dir" && as_dir
=.
2137 for ac_exec_ext
in '' $ac_executable_extensions; do
2138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139 ac_cv_prog_ac_ct_CC
="$ac_prog"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2149 if test -n "$ac_ct_CC"; then
2150 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2151 echo "${ECHO_T}$ac_ct_CC" >&6
2153 echo "$as_me:$LINENO: result: no" >&5
2154 echo "${ECHO_T}no" >&6
2157 test -n "$ac_ct_CC" && break
2166 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2167 See \`config.log' for more details." >&5
2168 echo "$as_me: error: no acceptable C compiler found in \$PATH
2169 See \`config.log' for more details." >&2;}
2170 { (exit 1); exit 1; }; }
2172 # Provide some information about the compiler.
2173 echo "$as_me:$LINENO:" \
2174 "checking for C compiler version" >&5
2175 ac_compiler
=`set X $ac_compile; echo $2`
2176 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2177 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }
2181 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2182 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }
2186 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2187 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }
2192 cat >conftest.
$ac_ext <<_ACEOF
2195 cat confdefs.h
>>conftest.
$ac_ext
2196 cat >>conftest.
$ac_ext <<_ACEOF
2197 /* end confdefs.h. */
2207 ac_clean_files_save
=$ac_clean_files
2208 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2209 # Try to create an executable without -o first, disregard a.out.
2210 # It will help us diagnose broken compilers, and finding out an intuition
2212 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2213 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2214 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2215 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2216 (eval $ac_link_default) 2>&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; then
2220 # Find the output, starting from the most likely. This scheme is
2221 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2224 # Be careful to initialize this variable, since it used to be cached.
2225 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2227 # b.out is created by i960 compilers.
2228 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2230 test -f "$ac_file" ||
continue
2232 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2235 # This is the source file.
2238 # We found the default executable, but exeext='' is most
2242 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2243 # FIXME: I believe we export ac_cv_exeext for Libtool,
2244 # but it would be cool to find out if it's true. Does anybody
2245 # maintain Libtool? --akim.
2253 echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.
$ac_ext >&5
2256 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: C compiler cannot create executables
2259 See \`config.log' for more details." >&2;}
2260 { (exit 77); exit 77; }; }
2263 ac_exeext
=$ac_cv_exeext
2264 echo "$as_me:$LINENO: result: $ac_file" >&5
2265 echo "${ECHO_T}$ac_file" >&6
2267 # Check the compiler produces executables we can run. If not, either
2268 # the compiler is broken, or we cross compile.
2269 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2270 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2271 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2272 # If not cross compiling, check that we can run a simple program.
2273 if test "$cross_compiling" != yes; then
2274 if { ac_try
='./$ac_file'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2282 if test "$cross_compiling" = maybe
; then
2285 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2286 If you meant to cross compile, use \`--host'.
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot run C compiled programs.
2289 If you meant to cross compile, use \`--host'.
2290 See \`config.log' for more details." >&2;}
2291 { (exit 1); exit 1; }; }
2295 echo "$as_me:$LINENO: result: yes" >&5
2296 echo "${ECHO_T}yes" >&6
2298 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2299 ac_clean_files
=$ac_clean_files_save
2300 # Check the compiler produces executables we can run. If not, either
2301 # the compiler is broken, or we cross compile.
2302 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2303 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2304 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2305 echo "${ECHO_T}$cross_compiling" >&6
2307 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2308 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2310 (eval $ac_link) 2>&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; then
2314 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2315 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2316 # work properly (i.e., refer to `conftest.exe'), while it won't with
2318 for ac_file
in conftest.exe conftest conftest.
*; do
2319 test -f "$ac_file" ||
continue
2321 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2322 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2336 rm -f conftest
$ac_cv_exeext
2337 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2338 echo "${ECHO_T}$ac_cv_exeext" >&6
2340 rm -f conftest.
$ac_ext
2341 EXEEXT
=$ac_cv_exeext
2343 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2344 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2345 if test "${ac_cv_objext+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 cat >conftest.
$ac_ext <<_ACEOF
2351 cat confdefs.h
>>conftest.
$ac_ext
2352 cat >>conftest.
$ac_ext <<_ACEOF
2353 /* end confdefs.h. */
2363 rm -f conftest.o conftest.obj
2364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365 (eval $ac_compile) 2>&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; then
2369 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2371 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2372 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.
$ac_ext >&5
2380 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2381 See \`config.log' for more details." >&5
2382 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2383 See \`config.log' for more details." >&2;}
2384 { (exit 1); exit 1; }; }
2387 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2389 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2390 echo "${ECHO_T}$ac_cv_objext" >&6
2391 OBJEXT
=$ac_cv_objext
2393 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2394 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2395 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 cat >conftest.
$ac_ext <<_ACEOF
2401 cat confdefs.h
>>conftest.
$ac_ext
2402 cat >>conftest.
$ac_ext <<_ACEOF
2403 /* end confdefs.h. */
2416 rm -f conftest.
$ac_objext
2417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2418 (eval $ac_compile) 2>conftest.er1
2420 grep -v '^ *+' conftest.er1
>conftest.err
2422 cat conftest.err
>&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try
='test -z "$ac_c_werror_flag"
2426 || test ! -s conftest.err'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; } &&
2432 { ac_try
='test -s conftest.$ac_objext'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.
$ac_ext >&5
2445 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2446 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2449 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2451 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2452 ac_test_CFLAGS
=${CFLAGS+set}
2453 ac_save_CFLAGS
=$CFLAGS
2455 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2456 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2457 if test "${ac_cv_prog_cc_g+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 cat >conftest.
$ac_ext <<_ACEOF
2463 cat confdefs.h
>>conftest.
$ac_ext
2464 cat >>conftest.
$ac_ext <<_ACEOF
2465 /* end confdefs.h. */
2475 rm -f conftest.
$ac_objext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477 (eval $ac_compile) 2>conftest.er1
2479 grep -v '^ *+' conftest.er1
>conftest.err
2481 cat conftest.err
>&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
2484 { ac_try
='test -z "$ac_c_werror_flag"
2485 || test ! -s conftest.err'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; } &&
2491 { ac_try
='test -s conftest.$ac_objext'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2499 echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.
$ac_ext >&5
2504 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2506 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2507 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2508 if test "$ac_test_CFLAGS" = set; then
2509 CFLAGS
=$ac_save_CFLAGS
2510 elif test $ac_cv_prog_cc_g = yes; then
2511 if test "$GCC" = yes; then
2517 if test "$GCC" = yes; then
2523 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2524 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2525 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 ac_cv_prog_cc_stdc
=no
2530 cat >conftest.
$ac_ext <<_ACEOF
2533 cat confdefs.h
>>conftest.
$ac_ext
2534 cat >>conftest.
$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2538 #include <sys/types.h>
2539 #include <sys/stat.h>
2540 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2541 struct buf { int x; };
2542 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2543 static char *e (p, i)
2549 static char *f (char * (*g) (char **, int), char **p, ...)
2554 s = g (p, va_arg (v,int));
2559 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2560 function prototypes and stuff, but not '\xHH' hex character constants.
2561 These don't provoke an error unfortunately, instead are silently treated
2562 as 'x'. The following induces an error, until -std1 is added to get
2563 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2564 array size at least. It's necessary to write '\x00'==0 to get something
2565 that's true only with -std1. */
2566 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2568 int test (int i, double x);
2569 struct s1 {int (*f) (int a);};
2570 struct s2 {int (*f) (double a);};
2571 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2577 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2582 # Don't try gcc -ansi; that turns off useful extensions and
2583 # breaks some systems' header files.
2584 # AIX -qlanglvl=ansi
2585 # Ultrix and OSF/1 -std1
2586 # HP-UX 10.20 and later -Ae
2587 # HP-UX older versions -Aa -D_HPUX_SOURCE
2588 # SVR4 -Xc -D__EXTENSIONS__
2589 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2591 CC
="$ac_save_CC $ac_arg"
2592 rm -f conftest.
$ac_objext
2593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594 (eval $ac_compile) 2>conftest.er1
2596 grep -v '^ *+' conftest.er1
>conftest.err
2598 cat conftest.err
>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } &&
2601 { ac_try
='test -z "$ac_c_werror_flag"
2602 || test ! -s conftest.err'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; } &&
2608 { ac_try
='test -s conftest.$ac_objext'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2614 ac_cv_prog_cc_stdc
=$ac_arg
2617 echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.
$ac_ext >&5
2621 rm -f conftest.err conftest.
$ac_objext
2623 rm -f conftest.
$ac_ext conftest.
$ac_objext
2628 case "x$ac_cv_prog_cc_stdc" in
2630 echo "$as_me:$LINENO: result: none needed" >&5
2631 echo "${ECHO_T}none needed" >&6 ;;
2633 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2634 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2635 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2638 # Some people use a C++ compiler to compile C. Since we use `exit',
2639 # in C++ we need to declare it. In case someone uses the same compiler
2640 # for both compiling C and C++ we need to have the C++ compiler decide
2641 # the declaration of exit, since it's the most demanding environment.
2642 cat >conftest.
$ac_ext <<_ACEOF
2647 rm -f conftest.
$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>conftest.er1
2651 grep -v '^ *+' conftest.er1
>conftest.err
2653 cat conftest.err
>&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try
='test -z "$ac_c_werror_flag"
2657 || test ! -s conftest.err'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; } &&
2663 { ac_try
='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2669 for ac_declaration
in \
2671 'extern "C" void std::exit (int) throw (); using std::exit;' \
2672 'extern "C" void std::exit (int); using std::exit;' \
2673 'extern "C" void exit (int) throw ();' \
2674 'extern "C" void exit (int);' \
2677 cat >conftest.
$ac_ext <<_ACEOF
2680 cat confdefs.h
>>conftest.
$ac_ext
2681 cat >>conftest.
$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2693 rm -f conftest.
$ac_objext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>conftest.er1
2697 grep -v '^ *+' conftest.er1
>conftest.err
2699 cat conftest.err
>&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try
='test -z "$ac_c_werror_flag"
2703 || test ! -s conftest.err'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try
='test -s conftest.$ac_objext'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.
$ac_ext >&5
2722 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2723 cat >conftest.
$ac_ext <<_ACEOF
2726 cat confdefs.h
>>conftest.
$ac_ext
2727 cat >>conftest.
$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2738 rm -f conftest.
$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740 (eval $ac_compile) 2>conftest.er1
2742 grep -v '^ *+' conftest.er1
>conftest.err
2744 cat conftest.err
>&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try
='test -z "$ac_c_werror_flag"
2748 || test ! -s conftest.err'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; } &&
2754 { ac_try
='test -s conftest.$ac_objext'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.
$ac_ext >&5
2766 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2769 if test -n "$ac_declaration"; then
2770 echo '#ifdef __cplusplus' >>confdefs.h
2771 echo $ac_declaration >>confdefs.h
2772 echo '#endif' >>confdefs.h
2776 echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.
$ac_ext >&5
2780 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2782 ac_cpp
='$CPP $CPPFLAGS'
2783 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2787 if test "x$CC" != xcc
; then
2788 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2789 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2791 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2792 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2794 set dummy
$CC; ac_cc
=`echo $2 |
2795 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2796 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 cat >conftest.
$ac_ext <<_ACEOF
2802 cat confdefs.h
>>conftest.
$ac_ext
2803 cat >>conftest.
$ac_ext <<_ACEOF
2804 /* end confdefs.h. */
2814 # Make sure it works both with $CC and with simple cc.
2815 # We do the test twice because some compilers refuse to overwrite an
2816 # existing .o file with -o, though they will create one.
2817 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2818 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); };
2829 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2830 if test "x$CC" != xcc
; then
2831 # Test first that cc exists at all.
2832 if { ac_try
='cc -c conftest.$ac_ext >&5'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; }; then
2838 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2839 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); };
2853 # cc exists but doesn't like -o.
2854 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2859 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2864 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2865 echo "$as_me:$LINENO: result: yes" >&5
2866 echo "${ECHO_T}yes" >&6
2868 echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2871 cat >>confdefs.h
<<\_ACEOF
2872 #define NO_MINUS_C_MINUS_O 1
2877 # expand $ac_aux_dir to an absolute path
2878 am_aux_dir
=`cd $ac_aux_dir && pwd`
2880 # FIXME: we rely on the cache variable name because
2881 # there is no other way.
2883 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2884 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2885 # Losing compiler, so override with the script.
2886 # FIXME: It is wrong to rewrite CC.
2887 # But if we don't then we get into trouble of one sort or another.
2888 # A longer-term fix would be to have automake use am__CC in this case,
2889 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2890 CC
="$am_aux_dir/compile $CC"
2893 # autoconf is lame and doesn't give us any substitution variable for this.
2894 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2895 NO_MINUS_C_MINUS_O
=yes
2897 OUTPUT_OPTION
='-o $@'
2902 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2903 # optimizations to be activated explicitly by the toplevel.
2905 */prev-gcc
/xgcc
*) ;;
2906 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2910 # -------------------------
2911 # Check C compiler features
2912 # -------------------------
2915 ac_cpp
='$CPP $CPPFLAGS'
2916 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2919 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2920 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2921 # On Suns, sometimes $CPP names a directory.
2922 if test -n "$CPP" && test -d "$CPP"; then
2925 if test -z "$CPP"; then
2926 if test "${ac_cv_prog_CPP+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 # Double quotes because CPP needs to be expanded
2930 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2933 for ac_c_preproc_warn_flag
in '' yes
2935 # Use a header file that comes with gcc, so configuring glibc
2936 # with a fresh cross-compiler works.
2937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2938 # <limits.h> exists even on freestanding compilers.
2939 # On the NeXT, cc -E runs the code through the compiler's parser,
2940 # not just through cpp. "Syntax error" is here to catch this case.
2941 cat >conftest.
$ac_ext <<_ACEOF
2944 cat confdefs.h
>>conftest.
$ac_ext
2945 cat >>conftest.
$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2948 # include <limits.h>
2950 # include <assert.h>
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2957 grep -v '^ *+' conftest.er1
>conftest.err
2959 cat conftest.err
>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev
/null
; then
2962 if test -s conftest.err
; then
2963 ac_cpp_err
=$ac_c_preproc_warn_flag
2964 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2971 if test -z "$ac_cpp_err"; then
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.
$ac_ext >&5
2977 # Broken: fails on valid input.
2980 rm -f conftest.err conftest.
$ac_ext
2982 # OK, works on sane cases. Now check whether non-existent headers
2983 # can be detected and how.
2984 cat >conftest.
$ac_ext <<_ACEOF
2987 cat confdefs.h
>>conftest.
$ac_ext
2988 cat >>conftest.
$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2990 #include <ac_nonexistent.h>
2992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2993 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2995 grep -v '^ *+' conftest.er1
>conftest.err
2997 cat conftest.err
>&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } >/dev
/null
; then
3000 if test -s conftest.err
; then
3001 ac_cpp_err
=$ac_c_preproc_warn_flag
3002 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3009 if test -z "$ac_cpp_err"; then
3010 # Broken: success on invalid input.
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.
$ac_ext >&5
3016 # Passes both tests.
3020 rm -f conftest.err conftest.
$ac_ext
3023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3024 rm -f conftest.err conftest.
$ac_ext
3025 if $ac_preproc_ok; then
3037 echo "$as_me:$LINENO: result: $CPP" >&5
3038 echo "${ECHO_T}$CPP" >&6
3040 for ac_c_preproc_warn_flag
in '' yes
3042 # Use a header file that comes with gcc, so configuring glibc
3043 # with a fresh cross-compiler works.
3044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3045 # <limits.h> exists even on freestanding compilers.
3046 # On the NeXT, cc -E runs the code through the compiler's parser,
3047 # not just through cpp. "Syntax error" is here to catch this case.
3048 cat >conftest.
$ac_ext <<_ACEOF
3051 cat confdefs.h
>>conftest.
$ac_ext
3052 cat >>conftest.
$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3055 # include <limits.h>
3057 # include <assert.h>
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3064 grep -v '^ *+' conftest.er1
>conftest.err
3066 cat conftest.err
>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } >/dev
/null
; then
3069 if test -s conftest.err
; then
3070 ac_cpp_err
=$ac_c_preproc_warn_flag
3071 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3078 if test -z "$ac_cpp_err"; then
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.
$ac_ext >&5
3084 # Broken: fails on valid input.
3087 rm -f conftest.err conftest.
$ac_ext
3089 # OK, works on sane cases. Now check whether non-existent headers
3090 # can be detected and how.
3091 cat >conftest.
$ac_ext <<_ACEOF
3094 cat confdefs.h
>>conftest.
$ac_ext
3095 cat >>conftest.
$ac_ext <<_ACEOF
3096 /* end confdefs.h. */
3097 #include <ac_nonexistent.h>
3099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3100 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3102 grep -v '^ *+' conftest.er1
>conftest.err
3104 cat conftest.err
>&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev
/null
; then
3107 if test -s conftest.err
; then
3108 ac_cpp_err
=$ac_c_preproc_warn_flag
3109 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3116 if test -z "$ac_cpp_err"; then
3117 # Broken: success on invalid input.
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.
$ac_ext >&5
3123 # Passes both tests.
3127 rm -f conftest.err conftest.
$ac_ext
3130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3131 rm -f conftest.err conftest.
$ac_ext
3132 if $ac_preproc_ok; then
3135 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3136 See \`config.log' for more details." >&5
3137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3138 See \`config.log' for more details." >&2;}
3139 { (exit 1); exit 1; }; }
3143 ac_cpp
='$CPP $CPPFLAGS'
3144 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3149 echo "$as_me:$LINENO: checking for inline" >&5
3150 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3151 if test "${ac_cv_c_inline+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 for ac_kw
in inline __inline__ __inline
; do
3156 cat >conftest.
$ac_ext <<_ACEOF
3159 cat confdefs.h
>>conftest.
$ac_ext
3160 cat >>conftest.
$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3164 static $ac_kw foo_t static_foo () {return 0; }
3165 $ac_kw foo_t foo () {return 0; }
3169 rm -f conftest.
$ac_objext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>conftest.er1
3173 grep -v '^ *+' conftest.er1
>conftest.err
3175 cat conftest.err
>&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try
='test -z "$ac_c_werror_flag"
3179 || test ! -s conftest.err'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; } &&
3185 { ac_try
='test -s conftest.$ac_objext'
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 ac_cv_c_inline
=$ac_kw; break
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.
$ac_ext >&5
3197 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3201 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3202 echo "${ECHO_T}$ac_cv_c_inline" >&6
3205 case $ac_cv_c_inline in
3208 case $ac_cv_c_inline in
3210 *) ac_val
=$ac_cv_c_inline;;
3212 cat >>confdefs.h
<<_ACEOF
3214 #define inline $ac_val
3221 # sizeof(char) is 1 by definition.
3223 echo "$as_me:$LINENO: checking for egrep" >&5
3224 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3225 if test "${ac_cv_prog_egrep+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3229 then ac_cv_prog_egrep
='grep -E'
3230 else ac_cv_prog_egrep
='egrep'
3233 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3234 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3235 EGREP
=$ac_cv_prog_egrep
3238 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3239 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3240 if test "${ac_cv_header_stdc+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 cat >conftest.
$ac_ext <<_ACEOF
3246 cat confdefs.h
>>conftest.
$ac_ext
3247 cat >>conftest.
$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3262 rm -f conftest.
$ac_objext
3263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264 (eval $ac_compile) 2>conftest.er1
3266 grep -v '^ *+' conftest.er1
>conftest.err
3268 cat conftest.err
>&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } &&
3271 { ac_try
='test -z "$ac_c_werror_flag"
3272 || test ! -s conftest.err'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; } &&
3278 { ac_try
='test -s conftest.$ac_objext'
3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
3284 ac_cv_header_stdc
=yes
3286 echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.
$ac_ext >&5
3289 ac_cv_header_stdc
=no
3291 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3293 if test $ac_cv_header_stdc = yes; then
3294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3295 cat >conftest.
$ac_ext <<_ACEOF
3298 cat confdefs.h
>>conftest.
$ac_ext
3299 cat >>conftest.
$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3305 $EGREP "memchr" >/dev
/null
2>&1; then
3308 ac_cv_header_stdc
=no
3314 if test $ac_cv_header_stdc = yes; then
3315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3316 cat >conftest.
$ac_ext <<_ACEOF
3319 cat confdefs.h
>>conftest.
$ac_ext
3320 cat >>conftest.
$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3326 $EGREP "free" >/dev
/null
2>&1; then
3329 ac_cv_header_stdc
=no
3335 if test $ac_cv_header_stdc = yes; then
3336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3337 if test "$cross_compiling" = yes; then
3340 cat >conftest.
$ac_ext <<_ACEOF
3343 cat confdefs.h
>>conftest.
$ac_ext
3344 cat >>conftest.
$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3347 #if ((' ' & 0x0FF) == 0x020)
3348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3351 # define ISLOWER(c) \
3352 (('a' <= (c) && (c) <= 'i') \
3353 || ('j' <= (c) && (c) <= 'r') \
3354 || ('s' <= (c) && (c) <= 'z'))
3355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3363 for (i = 0; i < 256; i++)
3364 if (XOR (islower (i), ISLOWER (i))
3365 || toupper (i) != TOUPPER (i))
3370 rm -f conftest
$ac_exeext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3372 (eval $ac_link) 2>&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3383 echo "$as_me: program exited with status $ac_status" >&5
3384 echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.
$ac_ext >&5
3388 ac_cv_header_stdc
=no
3390 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3394 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3395 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3396 if test $ac_cv_header_stdc = yes; then
3398 cat >>confdefs.h
<<\_ACEOF
3399 #define STDC_HEADERS 1
3404 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3414 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3415 inttypes.h stdint.h unistd.h
3417 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3418 echo "$as_me:$LINENO: checking for $ac_header" >&5
3419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 cat >conftest.
$ac_ext <<_ACEOF
3426 cat confdefs.h
>>conftest.
$ac_ext
3427 cat >>conftest.
$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3429 $ac_includes_default
3431 #include <$ac_header>
3433 rm -f conftest.
$ac_objext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435 (eval $ac_compile) 2>conftest.er1
3437 grep -v '^ *+' conftest.er1
>conftest.err
3439 cat conftest.err
>&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try
='test -z "$ac_c_werror_flag"
3443 || test ! -s conftest.err'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try
='test -s conftest.$ac_objext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 eval "$as_ac_Header=yes"
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.
$ac_ext >&5
3460 eval "$as_ac_Header=no"
3462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3467 cat >>confdefs.h
<<_ACEOF
3468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3476 echo "$as_me:$LINENO: checking for void *" >&5
3477 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3478 if test "${ac_cv_type_void_p+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 cat >conftest.
$ac_ext <<_ACEOF
3484 cat confdefs.h
>>conftest.
$ac_ext
3485 cat >>conftest.
$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3487 $ac_includes_default
3493 if (sizeof (void *))
3499 rm -f conftest.
$ac_objext
3500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3501 (eval $ac_compile) 2>conftest.er1
3503 grep -v '^ *+' conftest.er1
>conftest.err
3505 cat conftest.err
>&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try
='test -z "$ac_c_werror_flag"
3509 || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try
='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 ac_cv_type_void_p
=yes
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.
$ac_ext >&5
3526 ac_cv_type_void_p
=no
3528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3530 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3531 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3533 echo "$as_me:$LINENO: checking size of void *" >&5
3534 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3535 if test "${ac_cv_sizeof_void_p+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 if test "$ac_cv_type_void_p" = yes; then
3539 # The cast to unsigned long works around a bug in the HP C Compiler
3540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3542 # This bug is HP SR number 8606223364.
3543 if test "$cross_compiling" = yes; then
3544 # Depending upon the size, compute the lo and hi bounds.
3545 cat >conftest.
$ac_ext <<_ACEOF
3548 cat confdefs.h
>>conftest.
$ac_ext
3549 cat >>conftest.
$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 $ac_includes_default
3555 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3562 rm -f conftest.
$ac_objext
3563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564 (eval $ac_compile) 2>conftest.er1
3566 grep -v '^ *+' conftest.er1
>conftest.err
3568 cat conftest.err
>&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } &&
3571 { ac_try
='test -z "$ac_c_werror_flag"
3572 || test ! -s conftest.err'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; } &&
3578 { ac_try
='test -s conftest.$ac_objext'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; }; then
3586 cat >conftest.
$ac_ext <<_ACEOF
3589 cat confdefs.h
>>conftest.
$ac_ext
3590 cat >>conftest.
$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3592 $ac_includes_default
3596 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3603 rm -f conftest.
$ac_objext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605 (eval $ac_compile) 2>conftest.er1
3607 grep -v '^ *+' conftest.er1
>conftest.err
3609 cat conftest.err
>&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try
='test -z "$ac_c_werror_flag"
3613 || test ! -s conftest.err'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; } &&
3619 { ac_try
='test -s conftest.$ac_objext'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3625 ac_hi
=$ac_mid; break
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.
$ac_ext >&5
3630 ac_lo
=`expr $ac_mid + 1`
3631 if test $ac_lo -le $ac_mid; then
3635 ac_mid
=`expr 2 '*' $ac_mid + 1`
3637 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.
$ac_ext >&5
3643 cat >conftest.
$ac_ext <<_ACEOF
3646 cat confdefs.h
>>conftest.
$ac_ext
3647 cat >>conftest.
$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3649 $ac_includes_default
3653 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3660 rm -f conftest.
$ac_objext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>conftest.er1
3664 grep -v '^ *+' conftest.er1
>conftest.err
3666 cat conftest.err
>&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try
='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try
='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3684 cat >conftest.
$ac_ext <<_ACEOF
3687 cat confdefs.h
>>conftest.
$ac_ext
3688 cat >>conftest.
$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 $ac_includes_default
3694 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3701 rm -f conftest.
$ac_objext
3702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>conftest.er1
3705 grep -v '^ *+' conftest.er1
>conftest.err
3707 cat conftest.err
>&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try
='test -z "$ac_c_werror_flag"
3711 || test ! -s conftest.err'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; } &&
3717 { ac_try
='test -s conftest.$ac_objext'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 ac_lo
=$ac_mid; break
3725 echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.
$ac_ext >&5
3728 ac_hi
=`expr '(' $ac_mid ')' - 1`
3729 if test $ac_mid -le $ac_hi; then
3733 ac_mid
=`expr 2 '*' $ac_mid`
3735 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.
$ac_ext >&5
3743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3746 # Binary search between lo and hi bounds.
3747 while test "x$ac_lo" != "x$ac_hi"; do
3748 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3749 cat >conftest.
$ac_ext <<_ACEOF
3752 cat confdefs.h
>>conftest.
$ac_ext
3753 cat >>conftest.
$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3755 $ac_includes_default
3759 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3766 rm -f conftest.
$ac_objext
3767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768 (eval $ac_compile) 2>conftest.er1
3770 grep -v '^ *+' conftest.er1
>conftest.err
3772 cat conftest.err
>&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
3775 { ac_try
='test -z "$ac_c_werror_flag"
3776 || test ! -s conftest.err'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; } &&
3782 { ac_try
='test -s conftest.$ac_objext'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3790 echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.
$ac_ext >&5
3793 ac_lo
=`expr '(' $ac_mid ')' + 1`
3795 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3798 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3799 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3800 See \`config.log' for more details." >&5
3801 echo "$as_me: error: cannot compute sizeof (void *), 77
3802 See \`config.log' for more details." >&2;}
3803 { (exit 1); exit 1; }; } ;;
3806 if test "$cross_compiling" = yes; then
3807 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3808 See \`config.log' for more details." >&5
3809 echo "$as_me: error: cannot run test program while cross compiling
3810 See \`config.log' for more details." >&2;}
3811 { (exit 1); exit 1; }; }
3813 cat >conftest.
$ac_ext <<_ACEOF
3816 cat confdefs.h
>>conftest.
$ac_ext
3817 cat >>conftest.
$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 $ac_includes_default
3820 long longval () { return (long) (sizeof (void *)); }
3821 unsigned long ulongval () { return (long) (sizeof (void *)); }
3828 FILE *f = fopen ("conftest.val", "w");
3831 if (((long) (sizeof (void *))) < 0)
3833 long i = longval ();
3834 if (i != ((long) (sizeof (void *))))
3836 fprintf (f, "%ld\n", i);
3840 unsigned long i = ulongval ();
3841 if (i != ((long) (sizeof (void *))))
3843 fprintf (f, "%lu\n", i);
3845 exit (ferror (f) || fclose (f) != 0);
3851 rm -f conftest
$ac_exeext
3852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853 (eval $ac_link) 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3862 ac_cv_sizeof_void_p
=`cat conftest.val`
3864 echo "$as_me: program exited with status $ac_status" >&5
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.
$ac_ext >&5
3869 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3870 See \`config.log' for more details." >&5
3871 echo "$as_me: error: cannot compute sizeof (void *), 77
3872 See \`config.log' for more details." >&2;}
3873 { (exit 1); exit 1; }; }
3875 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3880 ac_cv_sizeof_void_p
=0
3883 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3884 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3885 cat >>confdefs.h
<<_ACEOF
3886 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3890 echo "$as_me:$LINENO: checking for short" >&5
3891 echo $ECHO_N "checking for short... $ECHO_C" >&6
3892 if test "${ac_cv_type_short+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 cat >conftest.
$ac_ext <<_ACEOF
3898 cat confdefs.h
>>conftest.
$ac_ext
3899 cat >>conftest.
$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3901 $ac_includes_default
3913 rm -f conftest.
$ac_objext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3915 (eval $ac_compile) 2>conftest.er1
3917 grep -v '^ *+' conftest.er1
>conftest.err
3919 cat conftest.err
>&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } &&
3922 { ac_try
='test -z "$ac_c_werror_flag"
3923 || test ! -s conftest.err'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; } &&
3929 { ac_try
='test -s conftest.$ac_objext'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 ac_cv_type_short
=yes
3937 echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.
$ac_ext >&5
3942 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3944 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3945 echo "${ECHO_T}$ac_cv_type_short" >&6
3947 echo "$as_me:$LINENO: checking size of short" >&5
3948 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3949 if test "${ac_cv_sizeof_short+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 if test "$ac_cv_type_short" = yes; then
3953 # The cast to unsigned long works around a bug in the HP C Compiler
3954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3956 # This bug is HP SR number 8606223364.
3957 if test "$cross_compiling" = yes; then
3958 # Depending upon the size, compute the lo and hi bounds.
3959 cat >conftest.
$ac_ext <<_ACEOF
3962 cat confdefs.h
>>conftest.
$ac_ext
3963 cat >>conftest.
$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3965 $ac_includes_default
3969 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3976 rm -f conftest.
$ac_objext
3977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978 (eval $ac_compile) 2>conftest.er1
3980 grep -v '^ *+' conftest.er1
>conftest.err
3982 cat conftest.err
>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try
='test -z "$ac_c_werror_flag"
3986 || test ! -s conftest.err'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; } &&
3992 { ac_try
='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
4000 cat >conftest.
$ac_ext <<_ACEOF
4003 cat confdefs.h
>>conftest.
$ac_ext
4004 cat >>conftest.
$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 $ac_includes_default
4010 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4017 rm -f conftest.
$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4021 grep -v '^ *+' conftest.er1
>conftest.err
4023 cat conftest.err
>&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try
='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try
='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4039 ac_hi
=$ac_mid; break
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.
$ac_ext >&5
4044 ac_lo
=`expr $ac_mid + 1`
4045 if test $ac_lo -le $ac_mid; then
4049 ac_mid
=`expr 2 '*' $ac_mid + 1`
4051 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4054 echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.
$ac_ext >&5
4057 cat >conftest.
$ac_ext <<_ACEOF
4060 cat confdefs.h
>>conftest.
$ac_ext
4061 cat >>conftest.
$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 $ac_includes_default
4067 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4074 rm -f conftest.
$ac_objext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>conftest.er1
4078 grep -v '^ *+' conftest.er1
>conftest.err
4080 cat conftest.err
>&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try
='test -z "$ac_c_werror_flag"
4084 || test ! -s conftest.err'
4085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; } &&
4090 { ac_try
='test -s conftest.$ac_objext'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
4098 cat >conftest.
$ac_ext <<_ACEOF
4101 cat confdefs.h
>>conftest.
$ac_ext
4102 cat >>conftest.
$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 $ac_includes_default
4108 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4115 rm -f conftest.
$ac_objext
4116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>conftest.er1
4119 grep -v '^ *+' conftest.er1
>conftest.err
4121 cat conftest.err
>&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try
='test -z "$ac_c_werror_flag"
4125 || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try
='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_lo
=$ac_mid; break
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.
$ac_ext >&5
4142 ac_hi
=`expr '(' $ac_mid ')' - 1`
4143 if test $ac_mid -le $ac_hi; then
4147 ac_mid
=`expr 2 '*' $ac_mid`
4149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.
$ac_ext >&5
4157 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4159 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4160 # Binary search between lo and hi bounds.
4161 while test "x$ac_lo" != "x$ac_hi"; do
4162 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4163 cat >conftest.
$ac_ext <<_ACEOF
4166 cat confdefs.h
>>conftest.
$ac_ext
4167 cat >>conftest.
$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 $ac_includes_default
4173 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4180 rm -f conftest.
$ac_objext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>conftest.er1
4184 grep -v '^ *+' conftest.er1
>conftest.err
4186 cat conftest.err
>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
4189 { ac_try
='test -z "$ac_c_werror_flag"
4190 || test ! -s conftest.err'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try
='test -s conftest.$ac_objext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.
$ac_ext >&5
4207 ac_lo
=`expr '(' $ac_mid ')' + 1`
4209 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4212 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4213 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4214 See \`config.log' for more details." >&5
4215 echo "$as_me: error: cannot compute sizeof (short), 77
4216 See \`config.log' for more details." >&2;}
4217 { (exit 1); exit 1; }; } ;;
4220 if test "$cross_compiling" = yes; then
4221 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4222 See \`config.log' for more details." >&5
4223 echo "$as_me: error: cannot run test program while cross compiling
4224 See \`config.log' for more details." >&2;}
4225 { (exit 1); exit 1; }; }
4227 cat >conftest.
$ac_ext <<_ACEOF
4230 cat confdefs.h
>>conftest.
$ac_ext
4231 cat >>conftest.
$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4233 $ac_includes_default
4234 long longval () { return (long) (sizeof (short)); }
4235 unsigned long ulongval () { return (long) (sizeof (short)); }
4242 FILE *f = fopen ("conftest.val", "w");
4245 if (((long) (sizeof (short))) < 0)
4247 long i = longval ();
4248 if (i != ((long) (sizeof (short))))
4250 fprintf (f, "%ld\n", i);
4254 unsigned long i = ulongval ();
4255 if (i != ((long) (sizeof (short))))
4257 fprintf (f, "%lu\n", i);
4259 exit (ferror (f) || fclose (f) != 0);
4265 rm -f conftest
$ac_exeext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267 (eval $ac_link) 2>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 ac_cv_sizeof_short
=`cat conftest.val`
4278 echo "$as_me: program exited with status $ac_status" >&5
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.
$ac_ext >&5
4283 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4284 See \`config.log' for more details." >&5
4285 echo "$as_me: error: cannot compute sizeof (short), 77
4286 See \`config.log' for more details." >&2;}
4287 { (exit 1); exit 1; }; }
4289 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4294 ac_cv_sizeof_short
=0
4297 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4298 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4299 cat >>confdefs.h
<<_ACEOF
4300 #define SIZEOF_SHORT $ac_cv_sizeof_short
4304 echo "$as_me:$LINENO: checking for int" >&5
4305 echo $ECHO_N "checking for int... $ECHO_C" >&6
4306 if test "${ac_cv_type_int+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 cat >conftest.
$ac_ext <<_ACEOF
4312 cat confdefs.h
>>conftest.
$ac_ext
4313 cat >>conftest.
$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4315 $ac_includes_default
4327 rm -f conftest.
$ac_objext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>conftest.er1
4331 grep -v '^ *+' conftest.er1
>conftest.err
4333 cat conftest.err
>&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try
='test -z "$ac_c_werror_flag"
4337 || test ! -s conftest.err'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; } &&
4343 { ac_try
='test -s conftest.$ac_objext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4351 echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.
$ac_ext >&5
4356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4358 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4359 echo "${ECHO_T}$ac_cv_type_int" >&6
4361 echo "$as_me:$LINENO: checking size of int" >&5
4362 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4363 if test "${ac_cv_sizeof_int+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 if test "$ac_cv_type_int" = yes; then
4367 # The cast to unsigned long works around a bug in the HP C Compiler
4368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4370 # This bug is HP SR number 8606223364.
4371 if test "$cross_compiling" = yes; then
4372 # Depending upon the size, compute the lo and hi bounds.
4373 cat >conftest.
$ac_ext <<_ACEOF
4376 cat confdefs.h
>>conftest.
$ac_ext
4377 cat >>conftest.
$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4379 $ac_includes_default
4383 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4390 rm -f conftest.
$ac_objext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>conftest.er1
4394 grep -v '^ *+' conftest.er1
>conftest.err
4396 cat conftest.err
>&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try
='test -z "$ac_c_werror_flag"
4400 || test ! -s conftest.err'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; } &&
4406 { ac_try
='test -s conftest.$ac_objext'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; }; then
4414 cat >conftest.
$ac_ext <<_ACEOF
4417 cat confdefs.h
>>conftest.
$ac_ext
4418 cat >>conftest.
$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 $ac_includes_default
4424 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4431 rm -f conftest.
$ac_objext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>conftest.er1
4435 grep -v '^ *+' conftest.er1
>conftest.err
4437 cat conftest.err
>&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try
='test -z "$ac_c_werror_flag"
4441 || test ! -s conftest.err'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try
='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4453 ac_hi
=$ac_mid; break
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.
$ac_ext >&5
4458 ac_lo
=`expr $ac_mid + 1`
4459 if test $ac_lo -le $ac_mid; then
4463 ac_mid
=`expr 2 '*' $ac_mid + 1`
4465 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4468 echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.
$ac_ext >&5
4471 cat >conftest.
$ac_ext <<_ACEOF
4474 cat confdefs.h
>>conftest.
$ac_ext
4475 cat >>conftest.
$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 $ac_includes_default
4481 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4488 rm -f conftest.
$ac_objext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>conftest.er1
4492 grep -v '^ *+' conftest.er1
>conftest.err
4494 cat conftest.err
>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try
='test -z "$ac_c_werror_flag"
4498 || test ! -s conftest.err'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; } &&
4504 { ac_try
='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4512 cat >conftest.
$ac_ext <<_ACEOF
4515 cat confdefs.h
>>conftest.
$ac_ext
4516 cat >>conftest.
$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4518 $ac_includes_default
4522 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4529 rm -f conftest.
$ac_objext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531 (eval $ac_compile) 2>conftest.er1
4533 grep -v '^ *+' conftest.er1
>conftest.err
4535 cat conftest.err
>&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try
='test -z "$ac_c_werror_flag"
4539 || test ! -s conftest.err'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; } &&
4545 { ac_try
='test -s conftest.$ac_objext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 ac_lo
=$ac_mid; break
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.
$ac_ext >&5
4556 ac_hi
=`expr '(' $ac_mid ')' - 1`
4557 if test $ac_mid -le $ac_hi; then
4561 ac_mid
=`expr 2 '*' $ac_mid`
4563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.
$ac_ext >&5
4571 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4573 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4574 # Binary search between lo and hi bounds.
4575 while test "x$ac_lo" != "x$ac_hi"; do
4576 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4577 cat >conftest.
$ac_ext <<_ACEOF
4580 cat confdefs.h
>>conftest.
$ac_ext
4581 cat >>conftest.
$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 $ac_includes_default
4587 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4594 rm -f conftest.
$ac_objext
4595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4596 (eval $ac_compile) 2>conftest.er1
4598 grep -v '^ *+' conftest.er1
>conftest.err
4600 cat conftest.err
>&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } &&
4603 { ac_try
='test -z "$ac_c_werror_flag"
4604 || test ! -s conftest.err'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; } &&
4610 { ac_try
='test -s conftest.$ac_objext'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.
$ac_ext >&5
4621 ac_lo
=`expr '(' $ac_mid ')' + 1`
4623 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4626 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4627 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4628 See \`config.log' for more details." >&5
4629 echo "$as_me: error: cannot compute sizeof (int), 77
4630 See \`config.log' for more details." >&2;}
4631 { (exit 1); exit 1; }; } ;;
4634 if test "$cross_compiling" = yes; then
4635 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4636 See \`config.log' for more details." >&5
4637 echo "$as_me: error: cannot run test program while cross compiling
4638 See \`config.log' for more details." >&2;}
4639 { (exit 1); exit 1; }; }
4641 cat >conftest.
$ac_ext <<_ACEOF
4644 cat confdefs.h
>>conftest.
$ac_ext
4645 cat >>conftest.
$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4647 $ac_includes_default
4648 long longval () { return (long) (sizeof (int)); }
4649 unsigned long ulongval () { return (long) (sizeof (int)); }
4656 FILE *f = fopen ("conftest.val", "w");
4659 if (((long) (sizeof (int))) < 0)
4661 long i = longval ();
4662 if (i != ((long) (sizeof (int))))
4664 fprintf (f, "%ld\n", i);
4668 unsigned long i = ulongval ();
4669 if (i != ((long) (sizeof (int))))
4671 fprintf (f, "%lu\n", i);
4673 exit (ferror (f) || fclose (f) != 0);
4679 rm -f conftest
$ac_exeext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681 (eval $ac_link) 2>&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 ac_cv_sizeof_int
=`cat conftest.val`
4692 echo "$as_me: program exited with status $ac_status" >&5
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.
$ac_ext >&5
4697 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4698 See \`config.log' for more details." >&5
4699 echo "$as_me: error: cannot compute sizeof (int), 77
4700 See \`config.log' for more details." >&2;}
4701 { (exit 1); exit 1; }; }
4703 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4711 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4712 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4713 cat >>confdefs.h
<<_ACEOF
4714 #define SIZEOF_INT $ac_cv_sizeof_int
4718 echo "$as_me:$LINENO: checking for long" >&5
4719 echo $ECHO_N "checking for long... $ECHO_C" >&6
4720 if test "${ac_cv_type_long+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 cat >conftest.
$ac_ext <<_ACEOF
4726 cat confdefs.h
>>conftest.
$ac_ext
4727 cat >>conftest.
$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729 $ac_includes_default
4741 rm -f conftest.
$ac_objext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4743 (eval $ac_compile) 2>conftest.er1
4745 grep -v '^ *+' conftest.er1
>conftest.err
4747 cat conftest.err
>&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try
='test -z "$ac_c_werror_flag"
4751 || test ! -s conftest.err'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; } &&
4757 { ac_try
='test -s conftest.$ac_objext'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.
$ac_ext >&5
4770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4772 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4773 echo "${ECHO_T}$ac_cv_type_long" >&6
4775 echo "$as_me:$LINENO: checking size of long" >&5
4776 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4777 if test "${ac_cv_sizeof_long+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 if test "$ac_cv_type_long" = yes; then
4781 # The cast to unsigned long works around a bug in the HP C Compiler
4782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4784 # This bug is HP SR number 8606223364.
4785 if test "$cross_compiling" = yes; then
4786 # Depending upon the size, compute the lo and hi bounds.
4787 cat >conftest.
$ac_ext <<_ACEOF
4790 cat confdefs.h
>>conftest.
$ac_ext
4791 cat >>conftest.
$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 $ac_includes_default
4797 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4804 rm -f conftest.
$ac_objext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>conftest.er1
4808 grep -v '^ *+' conftest.er1
>conftest.err
4810 cat conftest.err
>&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } &&
4813 { ac_try
='test -z "$ac_c_werror_flag"
4814 || test ! -s conftest.err'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; } &&
4820 { ac_try
='test -s conftest.$ac_objext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4828 cat >conftest.
$ac_ext <<_ACEOF
4831 cat confdefs.h
>>conftest.
$ac_ext
4832 cat >>conftest.
$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 $ac_includes_default
4838 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4845 rm -f conftest.
$ac_objext
4846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847 (eval $ac_compile) 2>conftest.er1
4849 grep -v '^ *+' conftest.er1
>conftest.err
4851 cat conftest.err
>&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try
='test -z "$ac_c_werror_flag"
4855 || test ! -s conftest.err'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; } &&
4861 { ac_try
='test -s conftest.$ac_objext'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 ac_hi
=$ac_mid; break
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.
$ac_ext >&5
4872 ac_lo
=`expr $ac_mid + 1`
4873 if test $ac_lo -le $ac_mid; then
4877 ac_mid
=`expr 2 '*' $ac_mid + 1`
4879 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4882 echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.
$ac_ext >&5
4885 cat >conftest.
$ac_ext <<_ACEOF
4888 cat confdefs.h
>>conftest.
$ac_ext
4889 cat >>conftest.
$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 $ac_includes_default
4895 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4902 rm -f conftest.
$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>conftest.er1
4906 grep -v '^ *+' conftest.er1
>conftest.err
4908 cat conftest.err
>&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try
='test -z "$ac_c_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try
='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4926 cat >conftest.
$ac_ext <<_ACEOF
4929 cat confdefs.h
>>conftest.
$ac_ext
4930 cat >>conftest.
$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 $ac_includes_default
4936 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4943 rm -f conftest.
$ac_objext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945 (eval $ac_compile) 2>conftest.er1
4947 grep -v '^ *+' conftest.er1
>conftest.err
4949 cat conftest.err
>&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try
='test -z "$ac_c_werror_flag"
4953 || test ! -s conftest.err'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; } &&
4959 { ac_try
='test -s conftest.$ac_objext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 ac_lo
=$ac_mid; break
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.
$ac_ext >&5
4970 ac_hi
=`expr '(' $ac_mid ')' - 1`
4971 if test $ac_mid -le $ac_hi; then
4975 ac_mid
=`expr 2 '*' $ac_mid`
4977 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.
$ac_ext >&5
4985 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4987 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4988 # Binary search between lo and hi bounds.
4989 while test "x$ac_lo" != "x$ac_hi"; do
4990 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4991 cat >conftest.
$ac_ext <<_ACEOF
4994 cat confdefs.h
>>conftest.
$ac_ext
4995 cat >>conftest.
$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4997 $ac_includes_default
5001 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5008 rm -f conftest.
$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>conftest.er1
5012 grep -v '^ *+' conftest.er1
>conftest.err
5014 cat conftest.err
>&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try
='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try
='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.
$ac_ext >&5
5035 ac_lo
=`expr '(' $ac_mid ')' + 1`
5037 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5040 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5041 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5042 See \`config.log' for more details." >&5
5043 echo "$as_me: error: cannot compute sizeof (long), 77
5044 See \`config.log' for more details." >&2;}
5045 { (exit 1); exit 1; }; } ;;
5048 if test "$cross_compiling" = yes; then
5049 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5050 See \`config.log' for more details." >&5
5051 echo "$as_me: error: cannot run test program while cross compiling
5052 See \`config.log' for more details." >&2;}
5053 { (exit 1); exit 1; }; }
5055 cat >conftest.
$ac_ext <<_ACEOF
5058 cat confdefs.h
>>conftest.
$ac_ext
5059 cat >>conftest.
$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 $ac_includes_default
5062 long longval () { return (long) (sizeof (long)); }
5063 unsigned long ulongval () { return (long) (sizeof (long)); }
5070 FILE *f = fopen ("conftest.val", "w");
5073 if (((long) (sizeof (long))) < 0)
5075 long i = longval ();
5076 if (i != ((long) (sizeof (long))))
5078 fprintf (f, "%ld\n", i);
5082 unsigned long i = ulongval ();
5083 if (i != ((long) (sizeof (long))))
5085 fprintf (f, "%lu\n", i);
5087 exit (ferror (f) || fclose (f) != 0);
5093 rm -f conftest
$ac_exeext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5095 (eval $ac_link) 2>&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; }; then
5104 ac_cv_sizeof_long
=`cat conftest.val`
5106 echo "$as_me: program exited with status $ac_status" >&5
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.
$ac_ext >&5
5111 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5112 See \`config.log' for more details." >&5
5113 echo "$as_me: error: cannot compute sizeof (long), 77
5114 See \`config.log' for more details." >&2;}
5115 { (exit 1); exit 1; }; }
5117 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5125 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5126 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5127 cat >>confdefs.h
<<_ACEOF
5128 #define SIZEOF_LONG $ac_cv_sizeof_long
5132 echo "$as_me:$LINENO: checking for long long" >&5
5133 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5134 if test "${ac_cv_type_long_long+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 cat >conftest.
$ac_ext <<_ACEOF
5140 cat confdefs.h
>>conftest.
$ac_ext
5141 cat >>conftest.
$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 $ac_includes_default
5147 if ((long long *) 0)
5149 if (sizeof (long long))
5155 rm -f conftest.
$ac_objext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157 (eval $ac_compile) 2>conftest.er1
5159 grep -v '^ *+' conftest.er1
>conftest.err
5161 cat conftest.err
>&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } &&
5164 { ac_try
='test -z "$ac_c_werror_flag"
5165 || test ! -s conftest.err'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; } &&
5171 { ac_try
='test -s conftest.$ac_objext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 ac_cv_type_long_long
=yes
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.
$ac_ext >&5
5182 ac_cv_type_long_long
=no
5184 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5186 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5187 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5188 if test $ac_cv_type_long_long = yes; then
5190 cat >>confdefs.h
<<_ACEOF
5191 #define HAVE_LONG_LONG 1
5194 echo "$as_me:$LINENO: checking for long long" >&5
5195 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5196 if test "${ac_cv_type_long_long+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 cat >conftest.
$ac_ext <<_ACEOF
5202 cat confdefs.h
>>conftest.
$ac_ext
5203 cat >>conftest.
$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5205 $ac_includes_default
5209 if ((long long *) 0)
5211 if (sizeof (long long))
5217 rm -f conftest.
$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 (eval $ac_compile) 2>conftest.er1
5221 grep -v '^ *+' conftest.er1
>conftest.err
5223 cat conftest.err
>&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try
='test -z "$ac_c_werror_flag"
5227 || test ! -s conftest.err'
5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; } &&
5233 { ac_try
='test -s conftest.$ac_objext'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 ac_cv_type_long_long
=yes
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.
$ac_ext >&5
5244 ac_cv_type_long_long
=no
5246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5248 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5249 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5251 echo "$as_me:$LINENO: checking size of long long" >&5
5252 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5253 if test "${ac_cv_sizeof_long_long+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 if test "$ac_cv_type_long_long" = yes; then
5257 # The cast to unsigned long works around a bug in the HP C Compiler
5258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5260 # This bug is HP SR number 8606223364.
5261 if test "$cross_compiling" = yes; then
5262 # Depending upon the size, compute the lo and hi bounds.
5263 cat >conftest.
$ac_ext <<_ACEOF
5266 cat confdefs.h
>>conftest.
$ac_ext
5267 cat >>conftest.
$ac_ext <<_ACEOF
5268 /* end confdefs.h. */
5269 $ac_includes_default
5273 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5280 rm -f conftest.
$ac_objext
5281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282 (eval $ac_compile) 2>conftest.er1
5284 grep -v '^ *+' conftest.er1
>conftest.err
5286 cat conftest.err
>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try
='test -z "$ac_c_werror_flag"
5290 || test ! -s conftest.err'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; } &&
5296 { ac_try
='test -s conftest.$ac_objext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5304 cat >conftest.
$ac_ext <<_ACEOF
5307 cat confdefs.h
>>conftest.
$ac_ext
5308 cat >>conftest.
$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 $ac_includes_default
5314 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5321 rm -f conftest.
$ac_objext
5322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5323 (eval $ac_compile) 2>conftest.er1
5325 grep -v '^ *+' conftest.er1
>conftest.err
5327 cat conftest.err
>&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } &&
5330 { ac_try
='test -z "$ac_c_werror_flag"
5331 || test ! -s conftest.err'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; } &&
5337 { ac_try
='test -s conftest.$ac_objext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 ac_hi
=$ac_mid; break
5345 echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.
$ac_ext >&5
5348 ac_lo
=`expr $ac_mid + 1`
5349 if test $ac_lo -le $ac_mid; then
5353 ac_mid
=`expr 2 '*' $ac_mid + 1`
5355 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.
$ac_ext >&5
5361 cat >conftest.
$ac_ext <<_ACEOF
5364 cat confdefs.h
>>conftest.
$ac_ext
5365 cat >>conftest.
$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 $ac_includes_default
5371 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5378 rm -f conftest.
$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>conftest.er1
5382 grep -v '^ *+' conftest.er1
>conftest.err
5384 cat conftest.err
>&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try
='test -z "$ac_c_werror_flag"
5388 || test ! -s conftest.err'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; } &&
5394 { ac_try
='test -s conftest.$ac_objext'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5402 cat >conftest.
$ac_ext <<_ACEOF
5405 cat confdefs.h
>>conftest.
$ac_ext
5406 cat >>conftest.
$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 $ac_includes_default
5412 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5419 rm -f conftest.
$ac_objext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>conftest.er1
5423 grep -v '^ *+' conftest.er1
>conftest.err
5425 cat conftest.err
>&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try
='test -z "$ac_c_werror_flag"
5429 || test ! -s conftest.err'
5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try
='test -s conftest.$ac_objext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 ac_lo
=$ac_mid; break
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.
$ac_ext >&5
5446 ac_hi
=`expr '(' $ac_mid ')' - 1`
5447 if test $ac_mid -le $ac_hi; then
5451 ac_mid
=`expr 2 '*' $ac_mid`
5453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.
$ac_ext >&5
5461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5464 # Binary search between lo and hi bounds.
5465 while test "x$ac_lo" != "x$ac_hi"; do
5466 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5467 cat >conftest.
$ac_ext <<_ACEOF
5470 cat confdefs.h
>>conftest.
$ac_ext
5471 cat >>conftest.
$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 $ac_includes_default
5477 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5484 rm -f conftest.
$ac_objext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5486 (eval $ac_compile) 2>conftest.er1
5488 grep -v '^ *+' conftest.er1
>conftest.err
5490 cat conftest.err
>&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } &&
5493 { ac_try
='test -z "$ac_c_werror_flag"
5494 || test ! -s conftest.err'
5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; } &&
5500 { ac_try
='test -s conftest.$ac_objext'
5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.
$ac_ext >&5
5511 ac_lo
=`expr '(' $ac_mid ')' + 1`
5513 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5516 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5517 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5518 See \`config.log' for more details." >&5
5519 echo "$as_me: error: cannot compute sizeof (long long), 77
5520 See \`config.log' for more details." >&2;}
5521 { (exit 1); exit 1; }; } ;;
5524 if test "$cross_compiling" = yes; then
5525 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5526 See \`config.log' for more details." >&5
5527 echo "$as_me: error: cannot run test program while cross compiling
5528 See \`config.log' for more details." >&2;}
5529 { (exit 1); exit 1; }; }
5531 cat >conftest.
$ac_ext <<_ACEOF
5534 cat confdefs.h
>>conftest.
$ac_ext
5535 cat >>conftest.
$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5537 $ac_includes_default
5538 long longval () { return (long) (sizeof (long long)); }
5539 unsigned long ulongval () { return (long) (sizeof (long long)); }
5546 FILE *f = fopen ("conftest.val", "w");
5549 if (((long) (sizeof (long long))) < 0)
5551 long i = longval ();
5552 if (i != ((long) (sizeof (long long))))
5554 fprintf (f, "%ld\n", i);
5558 unsigned long i = ulongval ();
5559 if (i != ((long) (sizeof (long long))))
5561 fprintf (f, "%lu\n", i);
5563 exit (ferror (f) || fclose (f) != 0);
5569 rm -f conftest
$ac_exeext
5570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5571 (eval $ac_link) 2>&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }; }; then
5580 ac_cv_sizeof_long_long
=`cat conftest.val`
5582 echo "$as_me: program exited with status $ac_status" >&5
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.
$ac_ext >&5
5587 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5588 See \`config.log' for more details." >&5
5589 echo "$as_me: error: cannot compute sizeof (long long), 77
5590 See \`config.log' for more details." >&2;}
5591 { (exit 1); exit 1; }; }
5593 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5598 ac_cv_sizeof_long_long
=0
5601 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5602 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5603 cat >>confdefs.h
<<_ACEOF
5604 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5610 echo "$as_me:$LINENO: checking for __int64" >&5
5611 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5612 if test "${ac_cv_type___int64+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 cat >conftest.
$ac_ext <<_ACEOF
5618 cat confdefs.h
>>conftest.
$ac_ext
5619 cat >>conftest.
$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621 $ac_includes_default
5627 if (sizeof (__int64))
5633 rm -f conftest.
$ac_objext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635 (eval $ac_compile) 2>conftest.er1
5637 grep -v '^ *+' conftest.er1
>conftest.err
5639 cat conftest.err
>&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } &&
5642 { ac_try
='test -z "$ac_c_werror_flag"
5643 || test ! -s conftest.err'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; } &&
5649 { ac_try
='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 ac_cv_type___int64
=yes
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.
$ac_ext >&5
5660 ac_cv_type___int64
=no
5662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5664 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5665 echo "${ECHO_T}$ac_cv_type___int64" >&6
5666 if test $ac_cv_type___int64 = yes; then
5668 cat >>confdefs.h
<<_ACEOF
5669 #define HAVE___INT64 1
5672 echo "$as_me:$LINENO: checking for __int64" >&5
5673 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5674 if test "${ac_cv_type___int64+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 cat >conftest.
$ac_ext <<_ACEOF
5680 cat confdefs.h
>>conftest.
$ac_ext
5681 cat >>conftest.
$ac_ext <<_ACEOF
5682 /* end confdefs.h. */
5683 $ac_includes_default
5689 if (sizeof (__int64))
5695 rm -f conftest.
$ac_objext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5697 (eval $ac_compile) 2>conftest.er1
5699 grep -v '^ *+' conftest.er1
>conftest.err
5701 cat conftest.err
>&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } &&
5704 { ac_try
='test -z "$ac_c_werror_flag"
5705 || test ! -s conftest.err'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; } &&
5711 { ac_try
='test -s conftest.$ac_objext'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_type___int64
=yes
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.
$ac_ext >&5
5722 ac_cv_type___int64
=no
5724 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5726 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5727 echo "${ECHO_T}$ac_cv_type___int64" >&6
5729 echo "$as_me:$LINENO: checking size of __int64" >&5
5730 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5731 if test "${ac_cv_sizeof___int64+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 if test "$ac_cv_type___int64" = yes; then
5735 # The cast to unsigned long works around a bug in the HP C Compiler
5736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5738 # This bug is HP SR number 8606223364.
5739 if test "$cross_compiling" = yes; then
5740 # Depending upon the size, compute the lo and hi bounds.
5741 cat >conftest.
$ac_ext <<_ACEOF
5744 cat confdefs.h
>>conftest.
$ac_ext
5745 cat >>conftest.
$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5747 $ac_includes_default
5751 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5758 rm -f conftest.
$ac_objext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>conftest.er1
5762 grep -v '^ *+' conftest.er1
>conftest.err
5764 cat conftest.err
>&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try
='test -z "$ac_c_werror_flag"
5768 || test ! -s conftest.err'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; } &&
5774 { ac_try
='test -s conftest.$ac_objext'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5782 cat >conftest.
$ac_ext <<_ACEOF
5785 cat confdefs.h
>>conftest.
$ac_ext
5786 cat >>conftest.
$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 $ac_includes_default
5792 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5799 rm -f conftest.
$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>conftest.er1
5803 grep -v '^ *+' conftest.er1
>conftest.err
5805 cat conftest.err
>&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try
='test -z "$ac_c_werror_flag"
5809 || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try
='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 ac_hi
=$ac_mid; break
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.
$ac_ext >&5
5826 ac_lo
=`expr $ac_mid + 1`
5827 if test $ac_lo -le $ac_mid; then
5831 ac_mid
=`expr 2 '*' $ac_mid + 1`
5833 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.
$ac_ext >&5
5839 cat >conftest.
$ac_ext <<_ACEOF
5842 cat confdefs.h
>>conftest.
$ac_ext
5843 cat >>conftest.
$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 $ac_includes_default
5849 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5856 rm -f conftest.
$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>conftest.er1
5860 grep -v '^ *+' conftest.er1
>conftest.err
5862 cat conftest.err
>&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try
='test -z "$ac_c_werror_flag"
5866 || test ! -s conftest.err'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try
='test -s conftest.$ac_objext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5880 cat >conftest.
$ac_ext <<_ACEOF
5883 cat confdefs.h
>>conftest.
$ac_ext
5884 cat >>conftest.
$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 $ac_includes_default
5890 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5897 rm -f conftest.
$ac_objext
5898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5899 (eval $ac_compile) 2>conftest.er1
5901 grep -v '^ *+' conftest.er1
>conftest.err
5903 cat conftest.err
>&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } &&
5906 { ac_try
='test -z "$ac_c_werror_flag"
5907 || test ! -s conftest.err'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; } &&
5913 { ac_try
='test -s conftest.$ac_objext'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5919 ac_lo
=$ac_mid; break
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.
$ac_ext >&5
5924 ac_hi
=`expr '(' $ac_mid ')' - 1`
5925 if test $ac_mid -le $ac_hi; then
5929 ac_mid
=`expr 2 '*' $ac_mid`
5931 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.
$ac_ext >&5
5939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5942 # Binary search between lo and hi bounds.
5943 while test "x$ac_lo" != "x$ac_hi"; do
5944 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5945 cat >conftest.
$ac_ext <<_ACEOF
5948 cat confdefs.h
>>conftest.
$ac_ext
5949 cat >>conftest.
$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 $ac_includes_default
5955 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5962 rm -f conftest.
$ac_objext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964 (eval $ac_compile) 2>conftest.er1
5966 grep -v '^ *+' conftest.er1
>conftest.err
5968 cat conftest.err
>&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try
='test -z "$ac_c_werror_flag"
5972 || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try
='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.
$ac_ext >&5
5989 ac_lo
=`expr '(' $ac_mid ')' + 1`
5991 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5994 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5995 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5996 See \`config.log' for more details." >&5
5997 echo "$as_me: error: cannot compute sizeof (__int64), 77
5998 See \`config.log' for more details." >&2;}
5999 { (exit 1); exit 1; }; } ;;
6002 if test "$cross_compiling" = yes; then
6003 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6004 See \`config.log' for more details." >&5
6005 echo "$as_me: error: cannot run test program while cross compiling
6006 See \`config.log' for more details." >&2;}
6007 { (exit 1); exit 1; }; }
6009 cat >conftest.
$ac_ext <<_ACEOF
6012 cat confdefs.h
>>conftest.
$ac_ext
6013 cat >>conftest.
$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6015 $ac_includes_default
6016 long longval () { return (long) (sizeof (__int64)); }
6017 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6024 FILE *f = fopen ("conftest.val", "w");
6027 if (((long) (sizeof (__int64))) < 0)
6029 long i = longval ();
6030 if (i != ((long) (sizeof (__int64))))
6032 fprintf (f, "%ld\n", i);
6036 unsigned long i = ulongval ();
6037 if (i != ((long) (sizeof (__int64))))
6039 fprintf (f, "%lu\n", i);
6041 exit (ferror (f) || fclose (f) != 0);
6047 rm -f conftest
$ac_exeext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6049 (eval $ac_link) 2>&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; }; then
6058 ac_cv_sizeof___int64
=`cat conftest.val`
6060 echo "$as_me: program exited with status $ac_status" >&5
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.
$ac_ext >&5
6065 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6066 See \`config.log' for more details." >&5
6067 echo "$as_me: error: cannot compute sizeof (__int64), 77
6068 See \`config.log' for more details." >&2;}
6069 { (exit 1); exit 1; }; }
6071 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6076 ac_cv_sizeof___int64
=0
6079 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6080 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6081 cat >>confdefs.h
<<_ACEOF
6082 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6089 # ---------------------
6090 # Warnings and checking
6091 # ---------------------
6093 # Check $CC warning features (if it's GCC).
6094 # We want to use -pedantic, but we don't want warnings about
6097 # * overlong strings
6098 # So, we only use -pedantic if we can disable those warnings.
6100 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6101 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6102 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 save_CFLAGS
="$CFLAGS"
6106 CFLAGS
="-Wno-long-long"
6107 cat >conftest.
$ac_ext <<_ACEOF
6110 cat confdefs.h
>>conftest.
$ac_ext
6111 cat >>conftest.
$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6115 rm -f conftest.
$ac_objext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117 (eval $ac_compile) 2>conftest.er1
6119 grep -v '^ *+' conftest.er1
>conftest.err
6121 cat conftest.err
>&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try
='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try
='test -s conftest.$ac_objext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_prog_cc_w_no_long_long
=yes
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.
$ac_ext >&5
6142 ac_cv_prog_cc_w_no_long_long
=no
6144 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6145 CFLAGS
="$save_CFLAGS"
6148 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6149 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6151 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6152 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6153 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 save_CFLAGS
="$CFLAGS"
6157 CFLAGS
="-Wno-variadic-macros"
6158 cat >conftest.
$ac_ext <<_ACEOF
6161 cat confdefs.h
>>conftest.
$ac_ext
6162 cat >>conftest.
$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6166 rm -f conftest.
$ac_objext
6167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168 (eval $ac_compile) 2>conftest.er1
6170 grep -v '^ *+' conftest.er1
>conftest.err
6172 cat conftest.err
>&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try
='test -z "$ac_c_werror_flag"
6176 || test ! -s conftest.err'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; } &&
6182 { ac_try
='test -s conftest.$ac_objext'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6188 ac_cv_prog_cc_w_no_variadic_macros
=yes
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.
$ac_ext >&5
6193 ac_cv_prog_cc_w_no_variadic_macros
=no
6195 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6196 CFLAGS
="$save_CFLAGS"
6199 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6200 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6202 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6203 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6204 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 save_CFLAGS
="$CFLAGS"
6208 CFLAGS
="-Wno-overlength-strings"
6209 cat >conftest.
$ac_ext <<_ACEOF
6212 cat confdefs.h
>>conftest.
$ac_ext
6213 cat >>conftest.
$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6217 rm -f conftest.
$ac_objext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6219 (eval $ac_compile) 2>conftest.er1
6221 grep -v '^ *+' conftest.er1
>conftest.err
6223 cat conftest.err
>&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try
='test -z "$ac_c_werror_flag"
6227 || test ! -s conftest.err'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; } &&
6233 { ac_try
='test -s conftest.$ac_objext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6239 ac_cv_prog_cc_w_no_overlength_strings
=yes
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.
$ac_ext >&5
6244 ac_cv_prog_cc_w_no_overlength_strings
=no
6246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6247 CFLAGS
="$save_CFLAGS"
6250 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6251 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6254 if test $ac_cv_prog_cc_w_no_long_long = yes \
6255 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6256 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6257 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6260 # Add -Wold-style-definition if it's accepted
6261 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6262 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6263 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 save_CFLAGS
="$CFLAGS"
6267 CFLAGS
="-Wold-style-definition"
6268 cat >conftest.
$ac_ext <<_ACEOF
6271 cat confdefs.h
>>conftest.
$ac_ext
6272 cat >>conftest.
$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6276 rm -f conftest.
$ac_objext
6277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6278 (eval $ac_compile) 2>conftest.er1
6280 grep -v '^ *+' conftest.er1
>conftest.err
6282 cat conftest.err
>&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try
='test -z "$ac_c_werror_flag"
6286 || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try
='test -s conftest.$ac_objext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 ac_cv_prog_cc_w_old_style_definition
=yes
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.
$ac_ext >&5
6303 ac_cv_prog_cc_w_old_style_definition
=no
6305 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6306 CFLAGS
="$save_CFLAGS"
6309 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6310 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6311 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6312 strict1_warn
="${strict1_warn} -Wold-style-definition"
6315 # Add -Wmissing-format-attribute if it's accepted
6316 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6317 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6318 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 save_CFLAGS
="$CFLAGS"
6322 CFLAGS
="-Wmissing-format-attribute"
6323 cat >conftest.
$ac_ext <<_ACEOF
6326 cat confdefs.h
>>conftest.
$ac_ext
6327 cat >>conftest.
$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6331 rm -f conftest.
$ac_objext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6333 (eval $ac_compile) 2>conftest.er1
6335 grep -v '^ *+' conftest.er1
>conftest.err
6337 cat conftest.err
>&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
6340 { ac_try
='test -z "$ac_c_werror_flag"
6341 || test ! -s conftest.err'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; } &&
6347 { ac_try
='test -s conftest.$ac_objext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 ac_cv_prog_cc_w_missing_format_attribute
=yes
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.
$ac_ext >&5
6358 ac_cv_prog_cc_w_missing_format_attribute
=no
6360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6361 CFLAGS
="$save_CFLAGS"
6364 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6365 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6366 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6367 strict1_warn
="${strict1_warn} -Wmissing-format-attribute"
6370 # Enable -Werror, period.
6371 # Check whether --enable-werror_always or --disable-werror_always was given.
6372 if test "${enable_werror_always+set}" = set; then
6373 enableval
="$enable_werror_always"
6376 enable_werror_always
=no
6378 if test x
${enable_werror_always} = xyes
; then
6379 strict1_warn
="${strict1_warn} -Werror"
6385 # Get C++ compatibility warning flag, if supported.
6386 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6387 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6388 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 save_CFLAGS
="$CFLAGS"
6392 CFLAGS
="-Wc++-compat"
6393 cat >conftest.
$ac_ext <<_ACEOF
6396 cat confdefs.h
>>conftest.
$ac_ext
6397 cat >>conftest.
$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6401 rm -f conftest.
$ac_objext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403 (eval $ac_compile) 2>conftest.er1
6405 grep -v '^ *+' conftest.er1
>conftest.err
6407 cat conftest.err
>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try
='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try
='test -s conftest.$ac_objext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 ac_cv_prog_cc_w_cxx_compat
=yes
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.
$ac_ext >&5
6428 ac_cv_prog_cc_w_cxx_compat
=no
6430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6431 CFLAGS
="$save_CFLAGS"
6434 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6435 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6436 if test x
${ac_cv_prog_cc_w_cxx_compat} = xyes
; then
6437 cxx_compat_warn
="-Wc++-compat"
6442 # If the native compiler is GCC, we can enable warnings even in stage1.
6443 # That's useful for people building cross-compilers, or just running a
6446 if test "x$GCC" = "xyes"; then
6447 warn_cflags
='$(GCC_WARN_CFLAGS)'
6451 # Enable -Werror in bootstrap stage2 and later.
6453 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6456 # Check whether --enable-werror or --disable-werror was given.
6457 if test "${enable_werror+set}" = set; then
6458 enableval
="$enable_werror"
6461 if test x
$is_release = x
; then
6462 # Default to "yes" on development branches.
6465 # Default to "no" on release branches.
6469 if test x
$enable_werror = xyes
; then
6474 # Enable expensive internal checks
6475 # Check whether --enable-checking or --disable-checking was given.
6476 if test "${enable_checking+set}" = set; then
6477 enableval
="$enable_checking"
6478 ac_checking_flags
="${enableval}"
6481 # Determine the default checks.
6482 if test x
$is_release = x
; then
6483 ac_checking_flags
=yes
6485 ac_checking_flags
=release
6488 ac_assert_checking
=1
6492 ac_gc_always_collect
=
6494 ac_rtlflag_checking
=
6495 ac_runtime_checking
=1
6497 ac_valgrind_checking
=
6498 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6499 for check
in $ac_checking_flags
6502 # these set all the flags to specific states
6503 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6504 ac_fold_checking
= ; ac_gc_checking
=1 ;
6505 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6506 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6507 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6508 no|none
) ac_assert_checking
= ; ac_checking
= ;
6509 ac_fold_checking
= ; ac_gc_checking
= ;
6510 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6511 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6512 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6513 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6514 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6515 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6516 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6517 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6518 release
) ac_assert_checking
=1 ; ac_checking
= ;
6519 ac_fold_checking
= ; ac_gc_checking
= ;
6520 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6521 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6522 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6523 # these enable particular checks
6524 assert
) ac_assert_checking
=1 ;;
6525 fold) ac_fold_checking
=1 ;;
6526 gc
) ac_gc_checking
=1 ;;
6527 gcac
) ac_gc_always_collect
=1 ;;
6528 misc
) ac_checking
=1 ;;
6529 rtl
) ac_rtl_checking
=1 ;;
6530 rtlflag
) ac_rtlflag_checking
=1 ;;
6531 runtime
) ac_runtime_checking
=1 ;;
6532 tree
) ac_tree_checking
=1 ;;
6533 valgrind
) ac_valgrind_checking
=1 ;;
6534 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6535 echo "$as_me: error: unknown check category $check" >&2;}
6536 { (exit 1); exit 1; }; } ;;
6542 if test x
$ac_checking != x
; then
6544 cat >>confdefs.h
<<\_ACEOF
6545 #define ENABLE_CHECKING 1
6548 nocommon_flag
=-fno-common
6551 if test x
$ac_assert_checking != x
; then
6553 cat >>confdefs.h
<<\_ACEOF
6554 #define ENABLE_ASSERT_CHECKING 1
6559 if test x
$ac_runtime_checking != x
; then
6561 cat >>confdefs.h
<<\_ACEOF
6562 #define ENABLE_RUNTIME_CHECKING 1
6566 if test x
$ac_tree_checking != x
; then
6568 cat >>confdefs.h
<<\_ACEOF
6569 #define ENABLE_TREE_CHECKING 1
6572 TREEBROWSER
=tree-browser.o
6575 if test x
$ac_rtl_checking != x
; then
6577 cat >>confdefs.h
<<\_ACEOF
6578 #define ENABLE_RTL_CHECKING 1
6582 if test x
$ac_rtlflag_checking != x
; then
6584 cat >>confdefs.h
<<\_ACEOF
6585 #define ENABLE_RTL_FLAG_CHECKING 1
6589 if test x
$ac_gc_checking != x
; then
6591 cat >>confdefs.h
<<\_ACEOF
6592 #define ENABLE_GC_CHECKING 1
6596 if test x
$ac_gc_always_collect != x
; then
6598 cat >>confdefs.h
<<\_ACEOF
6599 #define ENABLE_GC_ALWAYS_COLLECT 1
6603 if test x
$ac_fold_checking != x
; then
6605 cat >>confdefs.h
<<\_ACEOF
6606 #define ENABLE_FOLD_CHECKING 1
6610 valgrind_path_defines
=
6613 if test "${ac_cv_header_valgrind_h+set}" = set; then
6614 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6615 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6616 if test "${ac_cv_header_valgrind_h+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6620 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6622 # Is the header compilable?
6623 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6624 echo $ECHO_N "checking valgrind.h usability... $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 $ac_includes_default
6632 #include <valgrind.h>
6634 rm -f conftest.
$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>conftest.er1
6638 grep -v '^ *+' conftest.er1
>conftest.err
6640 cat conftest.err
>&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try
='test -z "$ac_c_werror_flag"
6644 || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try
='test -s conftest.$ac_objext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 ac_header_compiler
=yes
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.
$ac_ext >&5
6661 ac_header_compiler
=no
6663 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6665 echo "${ECHO_T}$ac_header_compiler" >&6
6667 # Is the header present?
6668 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6669 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6670 cat >conftest.
$ac_ext <<_ACEOF
6673 cat confdefs.h
>>conftest.
$ac_ext
6674 cat >>conftest.
$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 #include <valgrind.h>
6678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6679 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6681 grep -v '^ *+' conftest.er1
>conftest.err
6683 cat conftest.err
>&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } >/dev
/null
; then
6686 if test -s conftest.err
; then
6687 ac_cpp_err
=$ac_c_preproc_warn_flag
6688 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6695 if test -z "$ac_cpp_err"; then
6696 ac_header_preproc
=yes
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.
$ac_ext >&5
6701 ac_header_preproc
=no
6703 rm -f conftest.err conftest.
$ac_ext
6704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6705 echo "${ECHO_T}$ac_header_preproc" >&6
6707 # So? What about this header?
6708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6710 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6711 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6713 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6714 ac_header_preproc
=yes
6717 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6718 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6719 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6720 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6721 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6722 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6723 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6724 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6725 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6726 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6727 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6728 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6731 ## ------------------------------------------ ##
6732 ## Report this to the AC_PACKAGE_NAME lists. ##
6733 ## ------------------------------------------ ##
6736 sed "s/^/$as_me: WARNING: /" >&2
6739 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6740 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6741 if test "${ac_cv_header_valgrind_h+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 ac_cv_header_valgrind_h
=$ac_header_preproc
6746 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6747 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6750 if test $ac_cv_header_valgrind_h = yes; then
6758 if test x
$ac_valgrind_checking != x
; then
6759 # It is certainly possible that there's valgrind but no valgrind.h.
6760 # GCC relies on making annotations so we must have both.
6761 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6762 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6763 cat >conftest.
$ac_ext <<_ACEOF
6766 cat confdefs.h
>>conftest.
$ac_ext
6767 cat >>conftest.
$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <valgrind/memcheck.h>
6770 #ifndef VALGRIND_DISCARD
6771 #error VALGRIND_DISCARD not defined
6774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6775 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6777 grep -v '^ *+' conftest.er1
>conftest.err
6779 cat conftest.err
>&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } >/dev
/null
; then
6782 if test -s conftest.err
; then
6783 ac_cpp_err
=$ac_c_preproc_warn_flag
6784 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6791 if test -z "$ac_cpp_err"; then
6792 gcc_cv_header_valgrind_memcheck_h
=yes
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.
$ac_ext >&5
6797 gcc_cv_header_valgrind_memcheck_h
=no
6799 rm -f conftest.err conftest.
$ac_ext
6800 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6801 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6802 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6803 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6804 cat >conftest.
$ac_ext <<_ACEOF
6807 cat confdefs.h
>>conftest.
$ac_ext
6808 cat >>conftest.
$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 #include <memcheck.h>
6811 #ifndef VALGRIND_DISCARD
6812 #error VALGRIND_DISCARD not defined
6815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6816 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6818 grep -v '^ *+' conftest.er1
>conftest.err
6820 cat conftest.err
>&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } >/dev
/null
; then
6823 if test -s conftest.err
; then
6824 ac_cpp_err
=$ac_c_preproc_warn_flag
6825 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6832 if test -z "$ac_cpp_err"; then
6833 gcc_cv_header_memcheck_h
=yes
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.
$ac_ext >&5
6838 gcc_cv_header_memcheck_h
=no
6840 rm -f conftest.err conftest.
$ac_ext
6841 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6842 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6844 # Prepare PATH_SEPARATOR.
6845 # The user is always right.
6846 if test "${PATH_SEPARATOR+set}" != set; then
6847 echo "#! /bin/sh" >conf$$.sh
6848 echo "exit 0" >>conf$$.sh
6850 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6858 # Find out how to test for executable files. Don't use a zero-byte file,
6859 # as systems may use methods other than mode bits to determine executability.
6860 cat >conf$$.
file <<_ASEOF
6864 chmod +x conf$$.
file
6865 if test -x conf$$.
file >/dev
/null
2>&1; then
6866 ac_executable_p
="test -x"
6868 ac_executable_p
="test -f"
6872 # Extract the first word of "valgrind", so it can be a program name with args.
6873 set dummy valgrind
; ac_word
=$2
6874 echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6876 if test "${ac_cv_path_valgrind_path+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 case "$valgrind_path" in
6881 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6884 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6885 for ac_dir
in $PATH; do
6887 test -z "$ac_dir" && ac_dir
=.
6888 for ac_exec_ext
in '' $ac_executable_extensions; do
6889 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6890 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6891 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6901 valgrind_path
="$ac_cv_path_valgrind_path"
6902 if test -n "$valgrind_path"; then
6903 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6904 echo "${ECHO_T}$valgrind_path" >&6
6906 echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6
6910 if test "x$valgrind_path" = "x" \
6911 ||
(test $have_valgrind_h = no \
6912 && test $gcc_cv_header_memcheck_h = no \
6913 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6914 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6915 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6916 { (exit 1); exit 1; }; }
6918 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6919 valgrind_command
="$valgrind_path -q"
6921 cat >>confdefs.h
<<\_ACEOF
6922 #define ENABLE_VALGRIND_CHECKING 1
6925 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6927 cat >>confdefs.h
<<\_ACEOF
6928 #define HAVE_VALGRIND_MEMCHECK_H 1
6932 if test $gcc_cv_header_memcheck_h = yes; then
6934 cat >>confdefs.h
<<\_ACEOF
6935 #define HAVE_MEMCHECK_H 1
6943 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6944 if test "${enable_mapped_location+set}" = set; then
6945 enableval
="$enable_mapped_location"
6948 enable_mapped_location
=no
6951 if test "$enable_mapped_location" = yes ; then
6953 cat >>confdefs.h
<<\_ACEOF
6954 #define USE_MAPPED_LOCATION 1
6959 # Enable code coverage collection
6960 # Check whether --enable-coverage or --disable-coverage was given.
6961 if test "${enable_coverage+set}" = set; then
6962 enableval
="$enable_coverage"
6963 case "${enableval}" in
6965 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6968 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6971 # a.k.a. --disable-coverage
6975 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6976 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6977 { (exit 1); exit 1; }; }
6985 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6986 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6987 enableval
="$enable_gather_detailed_mem_stats"
6990 enable_gather_detailed_mem_stats
=no
6992 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6994 cat >>confdefs.h
<<\_ACEOF
6995 #define GATHER_STATISTICS 1
7000 # -------------------------------
7001 # Miscenalleous configure options
7002 # -------------------------------
7006 # Check whether --with-stabs or --without-stabs was given.
7007 if test "${with_stabs+set}" = set; then
7008 withval
="$with_stabs"
7014 # Determine whether or not multilibs are enabled.
7015 # Check whether --enable-multilib or --disable-multilib was given.
7016 if test "${enable_multilib+set}" = set; then
7017 enableval
="$enable_multilib"
7024 # Enable __cxa_atexit for C++.
7025 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7026 if test "${enable___cxa_atexit+set}" = set; then
7027 enableval
="$enable___cxa_atexit"
7031 # Enable C extension for decimal float if target supports it.
7032 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7033 if test "${enable_decimal_float+set}" = set; then
7034 enableval
="$enable_decimal_float"
7036 if test x
$enablevar = xyes
; then
7038 powerpc
*-*-linux* | i?
86*-*-linux*)
7039 enable_decimal_float
=yes
7042 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7043 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7044 enable_decimal_float
=no
7050 enable_decimal_float
=no
7055 dfp
=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7057 cat >>confdefs.h
<<_ACEOF
7058 #define ENABLE_DECIMAL_FLOAT $dfp
7063 # Pass with no value to take the default
7064 # Pass with a value to specify a thread package
7065 # Check whether --enable-threads or --disable-threads was given.
7066 if test "${enable_threads+set}" = set; then
7067 enableval
="$enable_threads"
7073 # Check whether --enable-tls or --disable-tls was given.
7074 if test "${enable_tls+set}" = set; then
7075 enableval
="$enable_tls"
7079 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7080 Valid choices are 'yes' and 'no'." >&5
7081 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7082 Valid choices are 'yes' and 'no'." >&2;}
7083 { (exit 1); exit 1; }; } ;;
7090 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7091 if test "${enable_objc_gc+set}" = set; then
7092 enableval
="$enable_objc_gc"
7093 if test x
$enable_objc_gc = xno
; then
7103 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7104 if test "${with_dwarf2+set}" = set; then
7105 withval
="$with_dwarf2"
7106 dwarf2
="$with_dwarf2"
7111 # Check whether --enable-shared or --disable-shared was given.
7112 if test "${enable_shared+set}" = set; then
7113 enableval
="$enable_shared"
7115 case $enable_shared in
7119 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7120 for pkg
in $enableval; do
7121 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7135 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7136 if test "${with_build_sysroot+set}" = set; then
7137 withval
="$with_build_sysroot"
7142 # Check whether --with-sysroot or --without-sysroot was given.
7143 if test "${with_sysroot+set}" = set; then
7144 withval
="$with_sysroot"
7146 case ${with_sysroot} in
7147 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7148 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7151 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7152 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7154 if test "x$exec_prefix" = xNONE
; then
7155 if test "x$prefix" = xNONE
; then
7156 test_prefix
=/usr
/local
7161 test_prefix
=$exec_prefix
7163 case ${TARGET_SYSTEM_ROOT} in
7164 "${test_prefix}"|
"${test_prefix}/"*|\
7165 '${exec_prefix}'|
'${exec_prefix}/'*)
7166 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7167 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7174 TARGET_SYSTEM_ROOT_DEFINE
=
7175 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7182 # Build with intermodule optimisations
7183 # Check whether --enable-intermodule or --disable-intermodule was given.
7184 if test "${enable_intermodule+set}" = set; then
7185 enableval
="$enable_intermodule"
7186 case ${enable_intermodule} in
7187 yes) onestep
="-onestep";;
7195 # Sanity check enable_languages in case someone does not run the toplevel
7196 # configure # script.
7197 # Check whether --enable-languages or --disable-languages was given.
7198 if test "${enable_languages+set}" = set; then
7199 enableval
="$enable_languages"
7200 case ,${enable_languages}, in
7202 # go safe -- we cannot be much sure without the toplevel
7204 # analysis of which target libs are present and usable
7208 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7209 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7210 { (exit 1); exit 1; }; }
7215 enable_languages
=c
,${enable_languages}
7222 # Used by documentation targets
7227 # -------------------------
7228 # Checks for other programs
7229 # -------------------------
7231 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7232 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7233 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7234 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 cat >conftest.
make <<\_ACEOF
7239 @
echo 'ac_maketemp="$(MAKE)"'
7241 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7242 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7243 if test -n "$ac_maketemp"; then
7244 eval ac_cv_prog_make_
${ac_make}_set
=yes
7246 eval ac_cv_prog_make_
${ac_make}_set
=no
7250 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7251 echo "$as_me:$LINENO: result: yes" >&5
7252 echo "${ECHO_T}yes" >&6
7255 echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6
7257 SET_MAKE
="MAKE=${MAKE-make}"
7261 # Find some useful tools
7262 for ac_prog
in gawk mawk nawk
awk
7264 # Extract the first word of "$ac_prog", so it can be a program name with args.
7265 set dummy
$ac_prog; ac_word
=$2
7266 echo "$as_me:$LINENO: checking for $ac_word" >&5
7267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7268 if test "${ac_cv_prog_AWK+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 if test -n "$AWK"; then
7272 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7278 test -z "$as_dir" && as_dir
=.
7279 for ac_exec_ext
in '' $ac_executable_extensions; do
7280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_AWK
="$ac_prog"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 if test -n "$AWK"; then
7292 echo "$as_me:$LINENO: result: $AWK" >&5
7293 echo "${ECHO_T}$AWK" >&6
7295 echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6
7299 test -n "$AWK" && break
7302 # We need awk to create options.c and options.h.
7303 # Bail out if it's missing.
7305 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7306 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7307 { (exit 1); exit 1; }; } ;;
7310 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7311 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7312 if test "${gcc_cv_prog_LN_S+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 rm -f conftestdata_t
7316 echo >conftestdata_f
7317 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7319 gcc_cv_prog_LN_S
="ln -s"
7321 if ln conftestdata_f conftestdata_t
2>/dev
/null
7325 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7327 gcc_cv_prog_LN_S
="cp -p"
7333 rm -f conftestdata_f conftestdata_t
7336 LN_S
="$gcc_cv_prog_LN_S"
7337 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7338 echo "$as_me:$LINENO: result: yes" >&5
7339 echo "${ECHO_T}yes" >&6
7341 if test "$gcc_cv_prog_LN_S" = "ln"; then
7342 echo "$as_me:$LINENO: result: no, using ln" >&5
7343 echo "${ECHO_T}no, using ln" >&6
7345 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7346 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7350 echo "$as_me:$LINENO: checking whether ln works" >&5
7351 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7352 if test "${acx_cv_prog_LN+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 rm -f conftestdata_t
7356 echo >conftestdata_f
7357 if ln conftestdata_f conftestdata_t
2>/dev
/null
7363 rm -f conftestdata_f conftestdata_t
7366 if test $acx_cv_prog_LN = no
; then
7368 echo "$as_me:$LINENO: result: no, using $LN" >&5
7369 echo "${ECHO_T}no, using $LN" >&6
7371 LN
="$acx_cv_prog_LN"
7372 echo "$as_me:$LINENO: result: yes" >&5
7373 echo "${ECHO_T}yes" >&6
7376 if test -n "$ac_tool_prefix"; then
7377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7378 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7379 echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7381 if test "${ac_cv_prog_RANLIB+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 if test -n "$RANLIB"; then
7385 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir
=.
7392 for ac_exec_ext
in '' $ac_executable_extensions; do
7393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 RANLIB
=$ac_cv_prog_RANLIB
7404 if test -n "$RANLIB"; then
7405 echo "$as_me:$LINENO: result: $RANLIB" >&5
7406 echo "${ECHO_T}$RANLIB" >&6
7408 echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6
7413 if test -z "$ac_cv_prog_RANLIB"; then
7414 ac_ct_RANLIB
=$RANLIB
7415 # Extract the first word of "ranlib", so it can be a program name with args.
7416 set dummy ranlib
; ac_word
=$2
7417 echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7419 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 if test -n "$ac_ct_RANLIB"; then
7423 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7429 test -z "$as_dir" && as_dir
=.
7430 for ac_exec_ext
in '' $ac_executable_extensions; do
7431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7442 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7443 if test -n "$ac_ct_RANLIB"; then
7444 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7445 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7447 echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6
7451 RANLIB
=$ac_ct_RANLIB
7453 RANLIB
="$ac_cv_prog_RANLIB"
7458 # By default, the Darwin ranlib will not treat common symbols as
7459 # definitions when building the archive table of contents. Other
7460 # ranlibs do that; pass an option to the Darwin ranlib that makes
7461 # it behave similarly.
7469 # Find a good install program. We prefer a C program (faster),
7470 # so one script is as good as another. But avoid the broken or
7471 # incompatible versions:
7472 # SysV /etc/install, /usr/sbin/install
7473 # SunOS /usr/etc/install
7474 # IRIX /sbin/install
7476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7478 # ./install, which can be erroneously created by make from ./install.sh.
7479 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7480 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7481 if test -z "$INSTALL"; then
7482 if test "${ac_cv_path_install+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7486 for ac_dir
in $PATH; do
7487 # Account for people who put trailing slashes in PATH elements.
7489 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7491 # OSF1 and SCO ODT 3.0 have their own names for install.
7492 for ac_prog
in ginstall scoinst
install; do
7493 if test -f $ac_dir/$ac_prog; then
7494 if test $ac_prog = install &&
7495 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7496 # AIX install. It has an incompatible calling convention.
7497 # OSF/1 installbsd also uses dspmsg, but is usable.
7500 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7511 if test "${ac_cv_path_install+set}" = set; then
7512 INSTALL
="$ac_cv_path_install"
7514 # As a last resort, use the slow shell script. We don't cache a
7515 # path for INSTALL within a source directory, because that will
7516 # break other packages using the cache if that directory is
7517 # removed, or if the path is relative.
7518 INSTALL
="$ac_install_sh"
7521 echo "$as_me:$LINENO: result: $INSTALL" >&5
7522 echo "${ECHO_T}$INSTALL" >&6
7524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7525 # It thinks the first close brace ends the variable substitution.
7526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7528 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7531 # See if cmp has --ignore-initial.
7532 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7533 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7534 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 gcc_cv_prog_cmp_skip
=slowcompare
7540 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7541 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7544 gcc_cv_prog_cmp_skip
=gnucompare
7547 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7548 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7549 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7552 gcc_cv_prog_cmp_skip
=fastcompare
7559 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7560 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7561 make_compare_target
=$gcc_cv_prog_cmp_skip
7565 # See if we have the mktemp command.
7566 # Extract the first word of "mktemp", so it can be a program name with args.
7567 set dummy mktemp
; ac_word
=$2
7568 echo "$as_me:$LINENO: checking for $ac_word" >&5
7569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7570 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 if test -n "$have_mktemp_command"; then
7574 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7580 test -z "$as_dir" && as_dir
=.
7581 for ac_exec_ext
in '' $ac_executable_extensions; do
7582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7583 ac_cv_prog_have_mktemp_command
="yes"
7584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7593 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7594 if test -n "$have_mktemp_command"; then
7595 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7596 echo "${ECHO_T}$have_mktemp_command" >&6
7598 echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6
7603 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7605 # See if makeinfo has been installed and is modern enough
7606 # that we can use it.
7608 ac_executable_extensions
="$build_exeext"
7610 # Extract the first word of "makeinfo", so it can be a program name with args.
7611 set dummy makeinfo
; ac_word
=$2
7612 echo "$as_me:$LINENO: checking for $ac_word" >&5
7613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7614 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 if test -n "$MAKEINFO"; then
7618 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir
=.
7625 for ac_exec_ext
in '' $ac_executable_extensions; do
7626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_prog_MAKEINFO
="makeinfo"
7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 MAKEINFO
=$ac_cv_prog_MAKEINFO
7637 if test -n "$MAKEINFO"; then
7638 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7639 echo "${ECHO_T}$MAKEINFO" >&6
7641 echo "$as_me:$LINENO: result: no" >&5
7642 echo "${ECHO_T}no" >&6
7645 if test -n "$MAKEINFO"; then
7646 # Found it, now check the version.
7647 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7648 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7649 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7653 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7654 echo "configure:7654: version of makeinfo is $ac_prog_version" >&5
7655 case $ac_prog_version in
7656 '') gcc_cv_prog_makeinfo_modern
=no
;;
7658 gcc_cv_prog_makeinfo_modern
=yes;;
7659 *) gcc_cv_prog_makeinfo_modern
=no
;;
7663 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7664 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7666 gcc_cv_prog_makeinfo_modern
=no
7669 if test $gcc_cv_prog_makeinfo_modern = no
; then
7670 MAKEINFO
="$MISSING makeinfo"
7671 { echo "$as_me:$LINENO: WARNING:
7672 *** Makeinfo is missing or too old.
7673 *** Info documentation will not be built." >&5
7674 echo "$as_me: WARNING:
7675 *** Makeinfo is missing or too old.
7676 *** Info documentation will not be built." >&2;}
7683 # Is pod2man recent enough to regenerate manpages?
7684 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7685 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7686 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7687 echo "$as_me:$LINENO: result: yes" >&5
7688 echo "${ECHO_T}yes" >&6
7689 GENERATED_MANPAGES
=generated-manpages
7691 echo "$as_me:$LINENO: result: no" >&5
7692 echo "${ECHO_T}no" >&6
7700 # Extract the first word of "$ac_prog", so it can be a program name with args.
7701 set dummy
$ac_prog; ac_word
=$2
7702 echo "$as_me:$LINENO: checking for $ac_word" >&5
7703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7704 if test "${ac_cv_prog_FLEX+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 if test -n "$FLEX"; then
7708 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7714 test -z "$as_dir" && as_dir
=.
7715 for ac_exec_ext
in '' $ac_executable_extensions; do
7716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717 ac_cv_prog_FLEX
="$ac_prog"
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 FLEX
=$ac_cv_prog_FLEX
7727 if test -n "$FLEX"; then
7728 echo "$as_me:$LINENO: result: $FLEX" >&5
7729 echo "${ECHO_T}$FLEX" >&6
7731 echo "$as_me:$LINENO: result: no" >&5
7732 echo "${ECHO_T}no" >&6
7735 test -n "$FLEX" && break
7737 test -n "$FLEX" || FLEX
="$MISSING flex"
7741 for ac_prog
in bison
7743 # Extract the first word of "$ac_prog", so it can be a program name with args.
7744 set dummy
$ac_prog; ac_word
=$2
7745 echo "$as_me:$LINENO: checking for $ac_word" >&5
7746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7747 if test "${ac_cv_prog_BISON+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 if test -n "$BISON"; then
7751 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7757 test -z "$as_dir" && as_dir
=.
7758 for ac_exec_ext
in '' $ac_executable_extensions; do
7759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760 ac_cv_prog_BISON
="$ac_prog"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 BISON
=$ac_cv_prog_BISON
7770 if test -n "$BISON"; then
7771 echo "$as_me:$LINENO: result: $BISON" >&5
7772 echo "${ECHO_T}$BISON" >&6
7774 echo "$as_me:$LINENO: result: no" >&5
7775 echo "${ECHO_T}no" >&6
7778 test -n "$BISON" && break
7780 test -n "$BISON" || BISON
="$MISSING bison"
7783 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7784 # check for build == host before using them.
7787 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7788 && test -d ..
/binutils
; then
7789 NM
='$(objdir)/../binutils/nm-new'
7791 # Extract the first word of "nm", so it can be a program name with args.
7792 set dummy nm
; ac_word
=$2
7793 echo "$as_me:$LINENO: checking for $ac_word" >&5
7794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7795 if test "${ac_cv_prog_NM+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 if test -n "$NM"; then
7799 ac_cv_prog_NM
="$NM" # Let the user override the test.
7801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7805 test -z "$as_dir" && as_dir
=.
7806 for ac_exec_ext
in '' $ac_executable_extensions; do
7807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7819 if test -n "$NM"; then
7820 echo "$as_me:$LINENO: result: $NM" >&5
7821 echo "${ECHO_T}$NM" >&6
7823 echo "$as_me:$LINENO: result: no" >&5
7824 echo "${ECHO_T}no" >&6
7830 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7831 && test -d ..
/binutils
; then
7832 AR
='$(objdir)/../binutils/ar'
7834 # Extract the first word of "ar", so it can be a program name with args.
7835 set dummy
ar; ac_word
=$2
7836 echo "$as_me:$LINENO: checking for $ac_word" >&5
7837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7838 if test "${ac_cv_prog_AR+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 if test -n "$AR"; then
7842 ac_cv_prog_AR
="$AR" # Let the user override the test.
7844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7848 test -z "$as_dir" && as_dir
=.
7849 for ac_exec_ext
in '' $ac_executable_extensions; do
7850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7862 if test -n "$AR"; then
7863 echo "$as_me:$LINENO: result: $AR" >&5
7864 echo "${ECHO_T}$AR" >&6
7866 echo "$as_me:$LINENO: result: no" >&5
7867 echo "${ECHO_T}no" >&6
7873 # --------------------
7874 # Checks for C headers
7875 # --------------------
7877 echo "$as_me:$LINENO: checking for GNU C library" >&5
7878 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7879 if test "${gcc_cv_glibc+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 cat >conftest.
$ac_ext <<_ACEOF
7885 cat confdefs.h
>>conftest.
$ac_ext
7886 cat >>conftest.
$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7888 #include <features.h>
7893 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7894 #error Not a GNU C library system
7900 rm -f conftest.
$ac_objext
7901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7902 (eval $ac_compile) 2>conftest.er1
7904 grep -v '^ *+' conftest.er1
>conftest.err
7906 cat conftest.err
>&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try
='test -z "$ac_c_werror_flag"
7910 || test ! -s conftest.err'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try
='test -s conftest.$ac_objext'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7924 echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.
$ac_ext >&5
7929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7932 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7933 echo "${ECHO_T}$gcc_cv_glibc" >&6
7934 if test $gcc_cv_glibc = yes; then
7936 cat >>confdefs.h
<<\_ACEOF
7937 #define _GNU_SOURCE 1
7942 # Need to reject headers which give warnings, so that the -Werror bootstrap
7943 # works later. *sigh* This needs to come before all header checks.
7945 ac_c_preproc_warn_flag
=yes
7947 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7948 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7949 if test "${ac_cv_header_stdc+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 cat >conftest.
$ac_ext <<_ACEOF
7955 cat confdefs.h
>>conftest.
$ac_ext
7956 cat >>conftest.
$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7971 rm -f conftest.
$ac_objext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973 (eval $ac_compile) 2>conftest.er1
7975 grep -v '^ *+' conftest.er1
>conftest.err
7977 cat conftest.err
>&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } &&
7980 { ac_try
='test -z "$ac_c_werror_flag"
7981 || test ! -s conftest.err'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; } &&
7987 { ac_try
='test -s conftest.$ac_objext'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7993 ac_cv_header_stdc
=yes
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.
$ac_ext >&5
7998 ac_cv_header_stdc
=no
8000 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8002 if test $ac_cv_header_stdc = yes; then
8003 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8004 cat >conftest.
$ac_ext <<_ACEOF
8007 cat confdefs.h
>>conftest.
$ac_ext
8008 cat >>conftest.
$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8014 $EGREP "memchr" >/dev
/null
2>&1; then
8017 ac_cv_header_stdc
=no
8023 if test $ac_cv_header_stdc = yes; then
8024 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8025 cat >conftest.
$ac_ext <<_ACEOF
8028 cat confdefs.h
>>conftest.
$ac_ext
8029 cat >>conftest.
$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8035 $EGREP "free" >/dev
/null
2>&1; then
8038 ac_cv_header_stdc
=no
8044 if test $ac_cv_header_stdc = yes; then
8045 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8046 if test "$cross_compiling" = yes; then
8049 cat >conftest.
$ac_ext <<_ACEOF
8052 cat confdefs.h
>>conftest.
$ac_ext
8053 cat >>conftest.
$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8056 #if ((' ' & 0x0FF) == 0x020)
8057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8060 # define ISLOWER(c) \
8061 (('a' <= (c) && (c) <= 'i') \
8062 || ('j' <= (c) && (c) <= 'r') \
8063 || ('s' <= (c) && (c) <= 'z'))
8064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8072 for (i = 0; i < 256; i++)
8073 if (XOR (islower (i), ISLOWER (i))
8074 || toupper (i) != TOUPPER (i))
8079 rm -f conftest
$ac_exeext
8080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8081 (eval $ac_link) 2>&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8092 echo "$as_me: program exited with status $ac_status" >&5
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.
$ac_ext >&5
8097 ac_cv_header_stdc
=no
8099 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8103 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8104 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8105 if test $ac_cv_header_stdc = yes; then
8107 cat >>confdefs.h
<<\_ACEOF
8108 #define STDC_HEADERS 1
8113 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8114 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8115 if test "${ac_cv_header_time+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 cat >conftest.
$ac_ext <<_ACEOF
8121 cat confdefs.h
>>conftest.
$ac_ext
8122 cat >>conftest.
$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8124 #include <sys/types.h>
8125 #include <sys/time.h>
8131 if ((struct tm *) 0)
8137 rm -f conftest.
$ac_objext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139 (eval $ac_compile) 2>conftest.er1
8141 grep -v '^ *+' conftest.er1
>conftest.err
8143 cat conftest.err
>&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try
='test -z "$ac_c_werror_flag"
8147 || test ! -s conftest.err'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; } &&
8153 { ac_try
='test -s conftest.$ac_objext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 ac_cv_header_time
=yes
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.
$ac_ext >&5
8164 ac_cv_header_time
=no
8166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8168 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8169 echo "${ECHO_T}$ac_cv_header_time" >&6
8170 if test $ac_cv_header_time = yes; then
8172 cat >>confdefs.h
<<\_ACEOF
8173 #define TIME_WITH_SYS_TIME 1
8178 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8179 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8180 if test "${gcc_cv_header_string+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 cat >conftest.
$ac_ext <<_ACEOF
8186 cat confdefs.h
>>conftest.
$ac_ext
8187 cat >>conftest.
$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8190 #include <strings.h>
8199 rm -f conftest.
$ac_objext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8201 (eval $ac_compile) 2>conftest.er1
8203 grep -v '^ *+' conftest.er1
>conftest.err
8205 cat conftest.err
>&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try
='test -z "$ac_c_werror_flag"
8209 || test ! -s conftest.err'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; } &&
8215 { ac_try
='test -s conftest.$ac_objext'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8221 gcc_cv_header_string
=yes
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.
$ac_ext >&5
8226 gcc_cv_header_string
=no
8228 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8230 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8231 echo "${ECHO_T}$gcc_cv_header_string" >&6
8232 if test $gcc_cv_header_string = yes; then
8234 cat >>confdefs.h
<<\_ACEOF
8235 #define STRING_WITH_STRINGS 1
8240 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8241 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8242 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 cat >conftest.
$ac_ext <<_ACEOF
8248 cat confdefs.h
>>conftest.
$ac_ext
8249 cat >>conftest.
$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8251 #include <sys/types.h>
8252 #include <sys/wait.h>
8254 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8257 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8265 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8270 rm -f conftest.
$ac_objext
8271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8272 (eval $ac_compile) 2>conftest.er1
8274 grep -v '^ *+' conftest.er1
>conftest.err
8276 cat conftest.err
>&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); } &&
8279 { ac_try
='test -z "$ac_c_werror_flag"
8280 || test ! -s conftest.err'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; } &&
8286 { ac_try
='test -s conftest.$ac_objext'
8287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; }; then
8292 ac_cv_header_sys_wait_h
=yes
8294 echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.
$ac_ext >&5
8297 ac_cv_header_sys_wait_h
=no
8299 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8301 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8302 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8303 if test $ac_cv_header_sys_wait_h = yes; then
8305 cat >>confdefs.h
<<\_ACEOF
8306 #define HAVE_SYS_WAIT_H 1
8333 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8334 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8335 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8336 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8338 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8339 echo "$as_me:$LINENO: checking for $ac_header" >&5
8340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 cat >conftest.
$ac_ext <<_ACEOF
8347 cat confdefs.h
>>conftest.
$ac_ext
8348 cat >>conftest.
$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 #include <$ac_header>
8352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8353 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8355 grep -v '^ *+' conftest.er1
>conftest.err
8357 cat conftest.err
>&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } >/dev
/null
; then
8360 if test -s conftest.err
; then
8361 ac_cpp_err
=$ac_c_preproc_warn_flag
8362 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8369 if test -z "$ac_cpp_err"; then
8370 eval "$as_ac_Header=yes"
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.
$ac_ext >&5
8375 eval "$as_ac_Header=no"
8377 rm -f conftest.err conftest.
$ac_ext
8379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8382 cat >>confdefs.h
<<_ACEOF
8383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8390 # Check for thread headers.
8391 echo "$as_me:$LINENO: checking for thread.h" >&5
8392 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8393 if test "${ac_cv_header_thread_h+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 cat >conftest.
$ac_ext <<_ACEOF
8399 cat confdefs.h
>>conftest.
$ac_ext
8400 cat >>conftest.
$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8405 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8407 grep -v '^ *+' conftest.er1
>conftest.err
8409 cat conftest.err
>&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } >/dev
/null
; then
8412 if test -s conftest.err
; then
8413 ac_cpp_err
=$ac_c_preproc_warn_flag
8414 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8421 if test -z "$ac_cpp_err"; then
8422 ac_cv_header_thread_h
=yes
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.
$ac_ext >&5
8427 ac_cv_header_thread_h
=no
8429 rm -f conftest.err conftest.
$ac_ext
8431 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8432 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8433 if test $ac_cv_header_thread_h = yes; then
8439 echo "$as_me:$LINENO: checking for pthread.h" >&5
8440 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8441 if test "${ac_cv_header_pthread_h+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 cat >conftest.
$ac_ext <<_ACEOF
8447 cat confdefs.h
>>conftest.
$ac_ext
8448 cat >>conftest.
$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 #include <pthread.h>
8452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8453 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8455 grep -v '^ *+' conftest.er1
>conftest.err
8457 cat conftest.err
>&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } >/dev
/null
; then
8460 if test -s conftest.err
; then
8461 ac_cpp_err
=$ac_c_preproc_warn_flag
8462 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8469 if test -z "$ac_cpp_err"; then
8470 ac_cv_header_pthread_h
=yes
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.
$ac_ext >&5
8475 ac_cv_header_pthread_h
=no
8477 rm -f conftest.err conftest.
$ac_ext
8479 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8480 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8481 if test $ac_cv_header_pthread_h = yes; then
8488 # These tests can't be done till we know if we have limits.h.
8489 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8490 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8491 if test "${gcc_cv_decl_char_bit+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 cat >conftest.
$ac_ext <<_ACEOF
8497 cat confdefs.h
>>conftest.
$ac_ext
8498 cat >>conftest.
$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8500 #ifdef HAVE_LIMITS_H
8507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8508 $EGREP "found" >/dev
/null
2>&1; then
8509 gcc_cv_decl_char_bit
=yes
8511 gcc_cv_decl_char_bit
=no
8517 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8518 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8519 if test $gcc_cv_decl_char_bit = no
; then
8520 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8521 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8522 if test "${gcc_cv_c_nbby+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 while test $i -lt 65; do
8528 cat >conftest.
$ac_ext <<_ACEOF
8531 cat confdefs.h
>>conftest.
$ac_ext
8532 cat >>conftest.
$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8539 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8540 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8546 rm -f conftest.
$ac_objext
8547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8548 (eval $ac_compile) 2>conftest.er1
8550 grep -v '^ *+' conftest.er1
>conftest.err
8552 cat conftest.err
>&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } &&
8555 { ac_try
='test -z "$ac_c_werror_flag"
8556 || test ! -s conftest.err'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; } &&
8562 { ac_try
='test -s conftest.$ac_objext'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; }; then
8568 gcc_cv_c_nbby
=$i; break
8570 echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.
$ac_ext >&5
8574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8577 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8580 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8581 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8582 if test $gcc_cv_c_nbby = failed
; then
8583 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8584 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8585 { (exit 1); exit 1; }; }
8588 cat >>confdefs.h
<<_ACEOF
8589 #define CHAR_BIT $gcc_cv_c_nbby
8594 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8595 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8596 if test "${ac_cv_c_bigendian+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 # See if sys/param.h defines the BYTE_ORDER macro.
8600 cat >conftest.
$ac_ext <<_ACEOF
8603 cat confdefs.h
>>conftest.
$ac_ext
8604 cat >>conftest.
$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8606 #include <sys/types.h>
8607 #include <sys/param.h>
8612 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8620 rm -f conftest.
$ac_objext
8621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8622 (eval $ac_compile) 2>conftest.er1
8624 grep -v '^ *+' conftest.er1
>conftest.err
8626 cat conftest.err
>&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
8629 { ac_try
='test -z "$ac_c_werror_flag"
8630 || test ! -s conftest.err'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; } &&
8636 { ac_try
='test -s conftest.$ac_objext'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
8642 # It does; now see whether it defined to BIG_ENDIAN or not.
8643 cat >conftest.
$ac_ext <<_ACEOF
8646 cat confdefs.h
>>conftest.
$ac_ext
8647 cat >>conftest.
$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 #include <sys/types.h>
8650 #include <sys/param.h>
8655 #if BYTE_ORDER != BIG_ENDIAN
8663 rm -f conftest.
$ac_objext
8664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8665 (eval $ac_compile) 2>conftest.er1
8667 grep -v '^ *+' conftest.er1
>conftest.err
8669 cat conftest.err
>&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } &&
8672 { ac_try
='test -z "$ac_c_werror_flag"
8673 || test ! -s conftest.err'
8674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; } &&
8679 { ac_try
='test -s conftest.$ac_objext'
8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; }; then
8685 ac_cv_c_bigendian
=yes
8687 echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.
$ac_ext >&5
8690 ac_cv_c_bigendian
=no
8692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.
$ac_ext >&5
8697 # It does not; compile a test program.
8698 if test "$cross_compiling" = yes; then
8699 # try to guess the endianness by grepping values into an object file
8700 ac_cv_c_bigendian
=unknown
8701 cat >conftest.
$ac_ext <<_ACEOF
8704 cat confdefs.h
>>conftest.
$ac_ext
8705 cat >>conftest.
$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8707 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8708 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8709 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8710 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8711 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8712 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8716 _ascii (); _ebcdic ();
8721 rm -f conftest.
$ac_objext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723 (eval $ac_compile) 2>conftest.er1
8725 grep -v '^ *+' conftest.er1
>conftest.err
8727 cat conftest.err
>&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } &&
8730 { ac_try
='test -z "$ac_c_werror_flag"
8731 || test ! -s conftest.err'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; } &&
8737 { ac_try
='test -s conftest.$ac_objext'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; }; then
8743 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8744 ac_cv_c_bigendian
=yes
8746 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8747 if test "$ac_cv_c_bigendian" = unknown
; then
8748 ac_cv_c_bigendian
=no
8750 # finding both strings is unlikely to happen, but who knows?
8751 ac_cv_c_bigendian
=unknown
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.
$ac_ext >&5
8759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8761 cat >conftest.
$ac_ext <<_ACEOF
8764 cat confdefs.h
>>conftest.
$ac_ext
8765 cat >>conftest.
$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8770 /* Are we little or big endian? From Harbison&Steele. */
8774 char c[sizeof (long)];
8777 exit (u.c[sizeof (long) - 1] == 1);
8780 rm -f conftest
$ac_exeext
8781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8782 (eval $ac_link) 2>&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
8791 ac_cv_c_bigendian
=no
8793 echo "$as_me: program exited with status $ac_status" >&5
8794 echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.
$ac_ext >&5
8798 ac_cv_c_bigendian
=yes
8800 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8805 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8806 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8807 case $ac_cv_c_bigendian in
8810 cat >>confdefs.h
<<\_ACEOF
8811 #define WORDS_BIGENDIAN 1
8817 { { echo "$as_me:$LINENO: error: unknown endianness
8818 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8819 echo "$as_me: error: unknown endianness
8820 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8821 { (exit 1); exit 1; }; } ;;
8829 # Stage specific cflags for build.
8833 if test x
$GCC = xyes
8835 stage1_cflags
="-Wa,-J"
8841 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8842 # sources; use -no-cpp-precomp to get to GNU cpp.
8843 # Apple's GCC has bugs in designated initializer handling, so disable
8845 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8850 # These libraries may be used by collect2.
8851 # We may need a special search path to get them linked.
8852 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8853 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8854 if test "${gcc_cv_collect2_libs+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 for libs
in '' -lld -lmld \
8859 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8860 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8863 cat >conftest.
$ac_ext <<_ACEOF
8866 cat confdefs.h
>>conftest.
$ac_ext
8867 cat >>conftest.
$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8870 /* Override any gcc2 internal prototype to avoid an error. */
8874 /* We use char because int might match the return type of a gcc2
8875 builtin and then its argument prototype would still apply. */
8885 rm -f conftest.
$ac_objext conftest
$ac_exeext
8886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8887 (eval $ac_link) 2>conftest.er1
8889 grep -v '^ *+' conftest.er1
>conftest.err
8891 cat conftest.err
>&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); } &&
8894 { ac_try
='test -z "$ac_c_werror_flag"
8895 || test ! -s conftest.err'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; } &&
8901 { ac_try
='test -s conftest$ac_exeext'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; }; then
8907 gcc_cv_collect2_libs
="$libs"; break
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.
$ac_ext >&5
8913 rm -f conftest.err conftest.
$ac_objext \
8914 conftest
$ac_exeext conftest.
$ac_ext
8917 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8919 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8920 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8921 case $gcc_cv_collect2_libs in
8923 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8927 # When building Ada code on Alpha, we need exc_resume which is usually in
8928 # -lexc. So test for it.
8931 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8932 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8933 if test "${ac_cv_search_exc_resume+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 ac_func_search_save_LIBS
=$LIBS
8937 ac_cv_search_exc_resume
=no
8938 cat >conftest.
$ac_ext <<_ACEOF
8941 cat confdefs.h
>>conftest.
$ac_ext
8942 cat >>conftest.
$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8945 /* Override any gcc2 internal prototype to avoid an error. */
8949 /* We use char because int might match the return type of a gcc2
8950 builtin and then its argument prototype would still apply. */
8960 rm -f conftest.
$ac_objext conftest
$ac_exeext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8962 (eval $ac_link) 2>conftest.er1
8964 grep -v '^ *+' conftest.er1
>conftest.err
8966 cat conftest.err
>&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try
='test -z "$ac_c_werror_flag"
8970 || test ! -s conftest.err'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; } &&
8976 { ac_try
='test -s conftest$ac_exeext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 ac_cv_search_exc_resume
="none required"
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.
$ac_ext >&5
8988 rm -f conftest.err conftest.
$ac_objext \
8989 conftest
$ac_exeext conftest.
$ac_ext
8990 if test "$ac_cv_search_exc_resume" = no
; then
8991 for ac_lib
in exc
; do
8992 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8993 cat >conftest.
$ac_ext <<_ACEOF
8996 cat confdefs.h
>>conftest.
$ac_ext
8997 cat >>conftest.
$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
9000 /* Override any gcc2 internal prototype to avoid an error. */
9004 /* We use char because int might match the return type of a gcc2
9005 builtin and then its argument prototype would still apply. */
9015 rm -f conftest.
$ac_objext conftest
$ac_exeext
9016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9017 (eval $ac_link) 2>conftest.er1
9019 grep -v '^ *+' conftest.er1
>conftest.err
9021 cat conftest.err
>&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } &&
9024 { ac_try
='test -z "$ac_c_werror_flag"
9025 || test ! -s conftest.err'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; } &&
9031 { ac_try
='test -s conftest$ac_exeext'
9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; }; then
9037 ac_cv_search_exc_resume
="-l$ac_lib"
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.
$ac_ext >&5
9044 rm -f conftest.err conftest.
$ac_objext \
9045 conftest
$ac_exeext conftest.
$ac_ext
9048 LIBS
=$ac_func_search_save_LIBS
9050 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9051 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9052 if test "$ac_cv_search_exc_resume" != no
; then
9053 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9061 # Some systems put ldexp and frexp in libm instead of libc; assume
9062 # they're both in the same place. jcf-dump needs them.
9065 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9066 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9067 if test "${ac_cv_search_ldexp+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 ac_func_search_save_LIBS
=$LIBS
9071 ac_cv_search_ldexp
=no
9072 cat >conftest.
$ac_ext <<_ACEOF
9075 cat confdefs.h
>>conftest.
$ac_ext
9076 cat >>conftest.
$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9079 /* Override any gcc2 internal prototype to avoid an error. */
9083 /* We use char because int might match the return type of a gcc2
9084 builtin and then its argument prototype would still apply. */
9094 rm -f conftest.
$ac_objext conftest
$ac_exeext
9095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9096 (eval $ac_link) 2>conftest.er1
9098 grep -v '^ *+' conftest.er1
>conftest.err
9100 cat conftest.err
>&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try
='test -z "$ac_c_werror_flag"
9104 || test ! -s conftest.err'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; } &&
9110 { ac_try
='test -s conftest$ac_exeext'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; }; then
9116 ac_cv_search_ldexp
="none required"
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.
$ac_ext >&5
9122 rm -f conftest.err conftest.
$ac_objext \
9123 conftest
$ac_exeext conftest.
$ac_ext
9124 if test "$ac_cv_search_ldexp" = no
; then
9126 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9127 cat >conftest.
$ac_ext <<_ACEOF
9130 cat confdefs.h
>>conftest.
$ac_ext
9131 cat >>conftest.
$ac_ext <<_ACEOF
9132 /* end confdefs.h. */
9134 /* Override any gcc2 internal prototype to avoid an error. */
9138 /* We use char because int might match the return type of a gcc2
9139 builtin and then its argument prototype would still apply. */
9149 rm -f conftest.
$ac_objext conftest
$ac_exeext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9151 (eval $ac_link) 2>conftest.er1
9153 grep -v '^ *+' conftest.er1
>conftest.err
9155 cat conftest.err
>&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } &&
9158 { ac_try
='test -z "$ac_c_werror_flag"
9159 || test ! -s conftest.err'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; } &&
9165 { ac_try
='test -s conftest$ac_exeext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_cv_search_ldexp
="-l$ac_lib"
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.
$ac_ext >&5
9178 rm -f conftest.err conftest.
$ac_objext \
9179 conftest
$ac_exeext conftest.
$ac_ext
9182 LIBS
=$ac_func_search_save_LIBS
9184 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9185 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9186 if test "$ac_cv_search_ldexp" != no
; then
9187 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
9195 # Use <inttypes.h> only if it exists,
9196 # doesn't clash with <sys/types.h>, and declares intmax_t.
9197 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9198 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9199 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 cat >conftest.
$ac_ext <<_ACEOF
9205 cat confdefs.h
>>conftest.
$ac_ext
9206 cat >>conftest.
$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 #include <sys/types.h>
9209 #include <inttypes.h>
9218 rm -f conftest.
$ac_objext
9219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9220 (eval $ac_compile) 2>conftest.er1
9222 grep -v '^ *+' conftest.er1
>conftest.err
9224 cat conftest.err
>&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
9227 { ac_try
='test -z "$ac_c_werror_flag"
9228 || test ! -s conftest.err'
9229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; } &&
9234 { ac_try
='test -s conftest.$ac_objext'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 gcc_cv_header_inttypes_h
=yes
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.
$ac_ext >&5
9245 gcc_cv_header_inttypes_h
=no
9247 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9250 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9251 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9252 if test $gcc_cv_header_inttypes_h = yes; then
9254 cat >>confdefs.h
<<\_ACEOF
9255 #define HAVE_INTTYPES_H 1
9297 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9298 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9299 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9300 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
9302 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9303 echo "$as_me:$LINENO: checking for $ac_func" >&5
9304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9305 if eval "test \"\${$as_ac_var+set}\" = set"; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 cat >conftest.
$ac_ext <<_ACEOF
9311 cat confdefs.h
>>conftest.
$ac_ext
9312 cat >>conftest.
$ac_ext <<_ACEOF
9313 /* end confdefs.h. */
9314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9316 #define $ac_func innocuous_$ac_func
9318 /* System header to define __stub macros and hopefully few prototypes,
9319 which can conflict with char $ac_func (); below.
9320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9321 <limits.h> exists even on freestanding compilers. */
9324 # include <limits.h>
9326 # include <assert.h>
9331 /* Override any gcc2 internal prototype to avoid an error. */
9336 /* We use char because int might match the return type of a gcc2
9337 builtin and then its argument prototype would still apply. */
9339 /* The GNU C library defines this for functions which it implements
9340 to always fail with ENOSYS. Some functions are actually named
9341 something starting with __ and the normal name is an alias. */
9342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9345 char (*f) () = $ac_func;
9354 return f != $ac_func;
9359 rm -f conftest.
$ac_objext conftest
$ac_exeext
9360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9361 (eval $ac_link) 2>conftest.er1
9363 grep -v '^ *+' conftest.er1
>conftest.err
9365 cat conftest.err
>&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } &&
9368 { ac_try
='test -z "$ac_c_werror_flag"
9369 || test ! -s conftest.err'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; } &&
9375 { ac_try
='test -s conftest$ac_exeext'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 eval "$as_ac_var=yes"
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.
$ac_ext >&5
9386 eval "$as_ac_var=no"
9388 rm -f conftest.err conftest.
$ac_objext \
9389 conftest
$ac_exeext conftest.
$ac_ext
9391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9392 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9393 if test `eval echo '${'$as_ac_var'}'` = yes; then
9394 cat >>confdefs.h
<<_ACEOF
9395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9402 if test x
$ac_cv_func_mbstowcs = xyes
; then
9403 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9404 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9405 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 if test "$cross_compiling" = yes; then
9409 gcc_cv_func_mbstowcs_works
=yes
9411 cat >conftest.
$ac_ext <<_ACEOF
9414 cat confdefs.h
>>conftest.
$ac_ext
9415 cat >>conftest.
$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9424 rm -f conftest
$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426 (eval $ac_link) 2>&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; }; then
9435 gcc_cv_func_mbstowcs_works
=yes
9437 echo "$as_me: program exited with status $ac_status" >&5
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.
$ac_ext >&5
9442 gcc_cv_func_mbstowcs_works
=no
9444 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9447 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9448 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9449 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9451 cat >>confdefs.h
<<\_ACEOF
9452 #define HAVE_WORKING_MBSTOWCS 1
9458 echo "$as_me:$LINENO: checking for ssize_t" >&5
9459 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9460 if test "${ac_cv_type_ssize_t+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 cat >conftest.
$ac_ext <<_ACEOF
9466 cat confdefs.h
>>conftest.
$ac_ext
9467 cat >>conftest.
$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 $ac_includes_default
9475 if (sizeof (ssize_t))
9481 rm -f conftest.
$ac_objext
9482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9483 (eval $ac_compile) 2>conftest.er1
9485 grep -v '^ *+' conftest.er1
>conftest.err
9487 cat conftest.err
>&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); } &&
9490 { ac_try
='test -z "$ac_c_werror_flag"
9491 || test ! -s conftest.err'
9492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; } &&
9497 { ac_try
='test -s conftest.$ac_objext'
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 ac_cv_type_ssize_t
=yes
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.
$ac_ext >&5
9508 ac_cv_type_ssize_t
=no
9510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9512 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9513 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9514 if test $ac_cv_type_ssize_t = yes; then
9518 cat >>confdefs.h
<<_ACEOF
9525 # Try to determine the array type of the second argument of getgroups
9526 # for the target system (int or gid_t).
9527 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9528 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9529 if test "${ac_cv_type_uid_t+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 cat >conftest.
$ac_ext <<_ACEOF
9535 cat confdefs.h
>>conftest.
$ac_ext
9536 cat >>conftest.
$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 #include <sys/types.h>
9541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9542 $EGREP "uid_t" >/dev
/null
2>&1; then
9543 ac_cv_type_uid_t
=yes
9550 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9551 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9552 if test $ac_cv_type_uid_t = no
; then
9554 cat >>confdefs.h
<<\_ACEOF
9559 cat >>confdefs.h
<<\_ACEOF
9565 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9566 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9567 if test "${ac_cv_type_getgroups+set}" = set; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 if test "$cross_compiling" = yes; then
9571 ac_cv_type_getgroups
=cross
9573 cat >conftest.
$ac_ext <<_ACEOF
9576 cat confdefs.h
>>conftest.
$ac_ext
9577 cat >>conftest.
$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9579 /* Thanks to Mike Rendell for this test. */
9580 #include <sys/types.h>
9583 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9590 union { gid_t gval; long lval; } val;
9593 for (i = 0; i < NGID; i++)
9594 gidset[i] = val.gval;
9595 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9597 /* Exit non-zero if getgroups seems to require an array of ints. This
9598 happens when gid_t is short but getgroups modifies an array of ints. */
9599 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9602 rm -f conftest
$ac_exeext
9603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9604 (eval $ac_link) 2>&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; }; then
9613 ac_cv_type_getgroups
=gid_t
9615 echo "$as_me: program exited with status $ac_status" >&5
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.
$ac_ext >&5
9620 ac_cv_type_getgroups
=int
9622 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9624 if test $ac_cv_type_getgroups = cross
; then
9625 cat >conftest.
$ac_ext <<_ACEOF
9628 cat confdefs.h
>>conftest.
$ac_ext
9629 cat >>conftest.
$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9635 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9636 ac_cv_type_getgroups
=gid_t
9638 ac_cv_type_getgroups
=int
9644 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9645 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9647 cat >>confdefs.h
<<_ACEOF
9648 #define GETGROUPS_T $ac_cv_type_getgroups
9652 if test "${target}" = "${build}"; then
9653 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9656 # This condition may need some tweaking. It should include all
9657 # targets where the array type of the second argument of getgroups
9658 # is int and the type of gid_t is not equivalent to int.
9659 *-*-sunos* |
*-*-ultrix*)
9660 TARGET_GETGROUPS_T
=int
9663 TARGET_GETGROUPS_T
=gid_t
9670 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9671 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9672 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 cat >conftest.
$ac_ext <<_ACEOF
9678 cat confdefs.h
>>conftest.
$ac_ext
9679 cat >>conftest.
$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9681 #include <sys/mman.h>
9683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9684 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9686 grep -v '^ *+' conftest.er1
>conftest.err
9688 cat conftest.err
>&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } >/dev
/null
; then
9691 if test -s conftest.err
; then
9692 ac_cpp_err
=$ac_c_preproc_warn_flag
9693 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9700 if test -z "$ac_cpp_err"; then
9701 ac_cv_header_sys_mman_h
=yes
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.
$ac_ext >&5
9706 ac_cv_header_sys_mman_h
=no
9708 rm -f conftest.err conftest.
$ac_ext
9710 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9711 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9712 if test $ac_cv_header_sys_mman_h = yes; then
9713 gcc_header_sys_mman_h
=yes
9715 gcc_header_sys_mman_h
=no
9718 echo "$as_me:$LINENO: checking for mmap" >&5
9719 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9720 if test "${ac_cv_func_mmap+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 cat >conftest.
$ac_ext <<_ACEOF
9726 cat confdefs.h
>>conftest.
$ac_ext
9727 cat >>conftest.
$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9731 #define mmap innocuous_mmap
9733 /* System header to define __stub macros and hopefully few prototypes,
9734 which can conflict with char mmap (); below.
9735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9736 <limits.h> exists even on freestanding compilers. */
9739 # include <limits.h>
9741 # include <assert.h>
9746 /* Override any gcc2 internal prototype to avoid an error. */
9751 /* We use char because int might match the return type of a gcc2
9752 builtin and then its argument prototype would still apply. */
9754 /* The GNU C library defines this for functions which it implements
9755 to always fail with ENOSYS. Some functions are actually named
9756 something starting with __ and the normal name is an alias. */
9757 #if defined (__stub_mmap) || defined (__stub___mmap)
9760 char (*f) () = mmap;
9774 rm -f conftest.
$ac_objext conftest
$ac_exeext
9775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9776 (eval $ac_link) 2>conftest.er1
9778 grep -v '^ *+' conftest.er1
>conftest.err
9780 cat conftest.err
>&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try
='test -z "$ac_c_werror_flag"
9784 || test ! -s conftest.err'
9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; } &&
9790 { ac_try
='test -s conftest$ac_exeext'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; }; then
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.
$ac_ext >&5
9803 rm -f conftest.err conftest.
$ac_objext \
9804 conftest
$ac_exeext conftest.
$ac_ext
9806 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9807 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9808 if test $ac_cv_func_mmap = yes; then
9814 if test "$gcc_header_sys_mman_h" != yes \
9815 ||
test "$gcc_func_mmap" != yes; then
9816 gcc_cv_func_mmap_file
=no
9817 gcc_cv_func_mmap_dev_zero
=no
9818 gcc_cv_func_mmap_anon
=no
9820 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9821 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9822 if test "${gcc_cv_func_mmap_file+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 # Add a system to this blacklist if
9826 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9827 # memory area containing the same data that you'd get if you applied
9828 # read() to the same fd. The only system known to have a problem here
9829 # is VMS, where text files have record structure.
9832 gcc_cv_func_mmap_file
=no
;;
9834 gcc_cv_func_mmap_file
=yes;;
9837 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9838 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9839 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9840 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9841 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 # Add a system to this blacklist if it has mmap() but /dev/zero
9845 # does not exist, or if mmapping /dev/zero does not give anonymous
9846 # zeroed pages with both the following properties:
9847 # 1. If you map N consecutive pages in with one call, and then
9848 # unmap any subset of those pages, the pages that were not
9849 # explicitly unmapped remain accessible.
9850 # 2. If you map two adjacent blocks of memory and then unmap them
9851 # both at once, they must both go away.
9852 # Systems known to be in this category are Windows (all variants),
9855 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9856 gcc_cv_func_mmap_dev_zero
=no
;;
9858 gcc_cv_func_mmap_dev_zero
=yes;;
9861 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9862 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9864 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9865 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9866 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9867 if test "${gcc_cv_decl_map_anon+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 cat >conftest.
$ac_ext <<_ACEOF
9873 cat confdefs.h
>>conftest.
$ac_ext
9874 cat >>conftest.
$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9876 #include <sys/types.h>
9877 #include <sys/mman.h>
9880 #ifndef MAP_ANONYMOUS
9881 #define MAP_ANONYMOUS MAP_ANON
9887 int n = MAP_ANONYMOUS;
9892 rm -f conftest.
$ac_objext
9893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9894 (eval $ac_compile) 2>conftest.er1
9896 grep -v '^ *+' conftest.er1
>conftest.err
9898 cat conftest.err
>&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 { ac_try
='test -z "$ac_c_werror_flag"
9902 || test ! -s conftest.err'
9903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; } &&
9908 { ac_try
='test -s conftest.$ac_objext'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
9914 gcc_cv_decl_map_anon
=yes
9916 echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.
$ac_ext >&5
9919 gcc_cv_decl_map_anon
=no
9921 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9923 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9924 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9926 if test $gcc_cv_decl_map_anon = no
; then
9927 gcc_cv_func_mmap_anon
=no
9929 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9930 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9931 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9934 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9935 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9936 # doesn't give anonymous zeroed pages with the same properties listed
9937 # above for use of /dev/zero.
9938 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9940 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9941 gcc_cv_func_mmap_anon
=no
;;
9943 gcc_cv_func_mmap_anon
=yes;;
9946 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9947 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9951 if test $gcc_cv_func_mmap_file = yes; then
9953 cat >>confdefs.h
<<\_ACEOF
9954 #define HAVE_MMAP_FILE 1
9958 if test $gcc_cv_func_mmap_dev_zero = yes; then
9960 cat >>confdefs.h
<<\_ACEOF
9961 #define HAVE_MMAP_DEV_ZERO 1
9965 if test $gcc_cv_func_mmap_anon = yes; then
9967 cat >>confdefs.h
<<\_ACEOF
9968 #define HAVE_MMAP_ANON 1
9976 # Under VMS, vfork works very differently than on Unix. The standard test
9977 # won't work, and it isn't easily adaptable. It makes more sense to
9979 ac_cv_func_vfork_works
=yes
9982 echo "$as_me:$LINENO: checking for pid_t" >&5
9983 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9984 if test "${ac_cv_type_pid_t+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 cat >conftest.
$ac_ext <<_ACEOF
9990 cat confdefs.h
>>conftest.
$ac_ext
9991 cat >>conftest.
$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 $ac_includes_default
10005 rm -f conftest.
$ac_objext
10006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10007 (eval $ac_compile) 2>conftest.er1
10009 grep -v '^ *+' conftest.er1
>conftest.err
10011 cat conftest.err
>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
10014 { ac_try
='test -z "$ac_c_werror_flag"
10015 || test ! -s conftest.err'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; } &&
10021 { ac_try
='test -s conftest.$ac_objext'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; }; then
10027 ac_cv_type_pid_t
=yes
10029 echo "$as_me: failed program was:" >&5
10030 sed 's/^/| /' conftest.
$ac_ext >&5
10032 ac_cv_type_pid_t
=no
10034 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10036 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10037 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10038 if test $ac_cv_type_pid_t = yes; then
10042 cat >>confdefs.h
<<_ACEOF
10050 for ac_header
in unistd.h vfork.h
10052 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10053 echo "$as_me:$LINENO: checking for $ac_header" >&5
10054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 cat >conftest.
$ac_ext <<_ACEOF
10061 cat confdefs.h
>>conftest.
$ac_ext
10062 cat >>conftest.
$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 #include <$ac_header>
10066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10067 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10069 grep -v '^ *+' conftest.er1
>conftest.err
10071 cat conftest.err
>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } >/dev
/null
; then
10074 if test -s conftest.err
; then
10075 ac_cpp_err
=$ac_c_preproc_warn_flag
10076 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10083 if test -z "$ac_cpp_err"; then
10084 eval "$as_ac_Header=yes"
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.
$ac_ext >&5
10089 eval "$as_ac_Header=no"
10091 rm -f conftest.err conftest.
$ac_ext
10093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10096 cat >>confdefs.h
<<_ACEOF
10097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10105 for ac_func
in fork vfork
10107 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10108 echo "$as_me:$LINENO: checking for $ac_func" >&5
10109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10110 if eval "test \"\${$as_ac_var+set}\" = set"; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 cat >conftest.
$ac_ext <<_ACEOF
10116 cat confdefs.h
>>conftest.
$ac_ext
10117 cat >>conftest.
$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10121 #define $ac_func innocuous_$ac_func
10123 /* System header to define __stub macros and hopefully few prototypes,
10124 which can conflict with char $ac_func (); below.
10125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10126 <limits.h> exists even on freestanding compilers. */
10129 # include <limits.h>
10131 # include <assert.h>
10136 /* Override any gcc2 internal prototype to avoid an error. */
10141 /* We use char because int might match the return type of a gcc2
10142 builtin and then its argument prototype would still apply. */
10144 /* The GNU C library defines this for functions which it implements
10145 to always fail with ENOSYS. Some functions are actually named
10146 something starting with __ and the normal name is an alias. */
10147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10150 char (*f) () = $ac_func;
10159 return f != $ac_func;
10164 rm -f conftest.
$ac_objext conftest
$ac_exeext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166 (eval $ac_link) 2>conftest.er1
10168 grep -v '^ *+' conftest.er1
>conftest.err
10170 cat conftest.err
>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } &&
10173 { ac_try
='test -z "$ac_c_werror_flag"
10174 || test ! -s conftest.err'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; } &&
10180 { ac_try
='test -s conftest$ac_exeext'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10186 eval "$as_ac_var=yes"
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.
$ac_ext >&5
10191 eval "$as_ac_var=no"
10193 rm -f conftest.err conftest.
$ac_objext \
10194 conftest
$ac_exeext conftest.
$ac_ext
10196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10198 if test `eval echo '${'$as_ac_var'}'` = yes; then
10199 cat >>confdefs.h
<<_ACEOF
10200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10206 if test "x$ac_cv_func_fork" = xyes
; then
10207 echo "$as_me:$LINENO: checking for working fork" >&5
10208 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10209 if test "${ac_cv_func_fork_works+set}" = set; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 if test "$cross_compiling" = yes; then
10213 ac_cv_func_fork_works
=cross
10215 cat >conftest.
$ac_ext <<_ACEOF
10216 /* By Ruediger Kuhlmann. */
10217 #include <sys/types.h>
10219 # include <unistd.h>
10221 /* Some systems only have a dummy stub for fork() */
10229 rm -f conftest
$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 ac_cv_func_fork_works
=yes
10242 echo "$as_me: program exited with status $ac_status" >&5
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.
$ac_ext >&5
10246 ( exit $ac_status )
10247 ac_cv_func_fork_works
=no
10249 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10252 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10253 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10256 ac_cv_func_fork_works
=$ac_cv_func_fork
10258 if test "x$ac_cv_func_fork_works" = xcross
; then
10260 *-*-amigaos* |
*-*-msdosdjgpp*)
10261 # Override, as these systems have only a dummy fork() stub
10262 ac_cv_func_fork_works
=no
10265 ac_cv_func_fork_works
=yes
10268 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10269 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10271 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10272 if test "x$ac_cv_func_vfork" = xyes
; then
10273 echo "$as_me:$LINENO: checking for working vfork" >&5
10274 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10275 if test "${ac_cv_func_vfork_works+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 if test "$cross_compiling" = yes; then
10279 ac_cv_func_vfork_works
=cross
10281 cat >conftest.
$ac_ext <<_ACEOF
10284 cat confdefs.h
>>conftest.
$ac_ext
10285 cat >>conftest.
$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 /* Thanks to Paul Eggert for this test. */
10289 #include <stdlib.h>
10290 #include <sys/types.h>
10291 #include <sys/stat.h>
10292 #include <sys/wait.h>
10294 # include <unistd.h>
10297 # include <vfork.h>
10299 /* On some sparc systems, changes by the child to local and incoming
10300 argument registers are propagated back to the parent. The compiler
10301 is told about this with #include <vfork.h>, but some compilers
10302 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10303 static variable whose address is put into a register that is
10304 clobbered by the vfork. */
10307 sparc_address_test (int arg)
10309 sparc_address_test (arg) int arg;
10312 static pid_t child;
10330 pid_t parent = getpid ();
10333 sparc_address_test (0);
10338 /* Here is another test for sparc vfork register problems. This
10339 test uses lots of local variables, at least as many local
10340 variables as main has allocated so far including compiler
10341 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10342 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10343 reuse the register of parent for one of the local variables,
10344 since it will think that parent can't possibly be used any more
10345 in this routine. Assigning to the local variable will thus
10346 munge parent in the parent process. */
10348 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10349 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10350 /* Convince the compiler that p..p7 are live; otherwise, it might
10351 use the same hardware register for all 8 local variables. */
10352 if (p != p1 || p != p2 || p != p3 || p != p4
10353 || p != p5 || p != p6 || p != p7)
10356 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10357 from child file descriptors. If the child closes a descriptor
10358 before it execs or exits, this munges the parent's descriptor
10359 as well. Test for this by closing stdout in the child. */
10360 _exit(close(fileno(stdout)) != 0);
10365 while (wait(&status) != child)
10368 /* Was there some problem with vforking? */
10371 /* Did the child fail? (This shouldn't happen.) */
10374 /* Did the vfork/compiler bug occur? */
10375 || parent != getpid()
10377 /* Did the file descriptor bug occur? */
10378 || fstat(fileno(stdout), &st) != 0
10383 rm -f conftest
$ac_exeext
10384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10385 (eval $ac_link) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_cv_func_vfork_works
=yes
10396 echo "$as_me: program exited with status $ac_status" >&5
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.
$ac_ext >&5
10400 ( exit $ac_status )
10401 ac_cv_func_vfork_works
=no
10403 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10406 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10407 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10410 if test "x$ac_cv_func_fork_works" = xcross
; then
10411 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10412 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10413 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10416 if test "x$ac_cv_func_vfork_works" = xyes
; then
10418 cat >>confdefs.h
<<\_ACEOF
10419 #define HAVE_WORKING_VFORK 1
10424 cat >>confdefs.h
<<\_ACEOF
10429 if test "x$ac_cv_func_fork_works" = xyes
; then
10431 cat >>confdefs.h
<<\_ACEOF
10432 #define HAVE_WORKING_FORK 1
10439 if test "X$prefix" = "XNONE"; then
10440 acl_final_prefix
="$ac_default_prefix"
10442 acl_final_prefix
="$prefix"
10444 if test "X$exec_prefix" = "XNONE"; then
10445 acl_final_exec_prefix
='${prefix}'
10447 acl_final_exec_prefix
="$exec_prefix"
10449 acl_save_prefix
="$prefix"
10450 prefix
="$acl_final_prefix"
10451 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10452 prefix
="$acl_save_prefix"
10455 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10456 if test "${with_gnu_ld+set}" = set; then
10457 withval
="$with_gnu_ld"
10458 test "$withval" = no || with_gnu_ld
=yes
10462 # Prepare PATH_SEPARATOR.
10463 # The user is always right.
10464 if test "${PATH_SEPARATOR+set}" != set; then
10465 echo "#! /bin/sh" >conf$$.sh
10466 echo "exit 0" >>conf$$.sh
10468 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10476 if test "$GCC" = yes; then
10477 # Check if gcc -print-prog-name=ld gives a path.
10478 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10479 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10482 # gcc leaves a trailing carriage return which upsets mingw
10483 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10485 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10488 # Accept absolute paths.
10489 [\\/]* |
[A-Za-z
]:[\\/]*)
10490 re_direlt
='/[^/][^/]*/\.\./'
10491 # Canonicalize the path of ld
10492 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10493 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10494 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10496 test -z "$LD" && LD
="$ac_prog"
10499 # If it fails, then pretend we aren't using GCC.
10503 # If it is relative, then search for the first ld in PATH.
10504 with_gnu_ld
=unknown
10507 elif test "$with_gnu_ld" = yes; then
10508 echo "$as_me:$LINENO: checking for GNU ld" >&5
10509 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10511 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10512 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10514 if test "${acl_cv_path_LD+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 if test -z "$LD"; then
10518 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10519 for ac_dir
in $PATH; do
10520 test -z "$ac_dir" && ac_dir
=.
10521 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10522 acl_cv_path_LD
="$ac_dir/$ac_prog"
10523 # Check to see if the program is GNU ld. I'd rather use --version,
10524 # but apparently some GNU ld's only accept -v.
10525 # Break only if it was the GNU/non-GNU ld that we prefer.
10526 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10527 test "$with_gnu_ld" != no
&& break
10529 test "$with_gnu_ld" != yes && break
10535 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10539 LD
="$acl_cv_path_LD"
10540 if test -n "$LD"; then
10541 echo "$as_me:$LINENO: result: $LD" >&5
10542 echo "${ECHO_T}$LD" >&6
10544 echo "$as_me:$LINENO: result: no" >&5
10545 echo "${ECHO_T}no" >&6
10547 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10548 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10549 { (exit 1); exit 1; }; }
10550 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10551 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10552 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10556 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10557 acl_cv_prog_gnu_ld
=yes
10559 acl_cv_prog_gnu_ld
=no
10562 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10563 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10564 with_gnu_ld
=$acl_cv_prog_gnu_ld
10568 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10569 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10570 if test "${acl_cv_rpath+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10575 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10577 rm -f .
/conftest.sh
10581 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10582 echo "${ECHO_T}$acl_cv_rpath" >&6
10584 libext
="$acl_cv_libext"
10585 shlibext
="$acl_cv_shlibext"
10586 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10587 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10588 hardcode_direct
="$acl_cv_hardcode_direct"
10589 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10590 # Check whether --enable-rpath or --disable-rpath was given.
10591 if test "${enable_rpath+set}" = set; then
10592 enableval
="$enable_rpath"
10606 acl_save_prefix
="$prefix"
10607 prefix
="$acl_final_prefix"
10608 acl_save_exec_prefix
="$exec_prefix"
10609 exec_prefix
="$acl_final_exec_prefix"
10611 eval additional_includedir
=\"$includedir\"
10612 eval additional_libdir
=\"$libdir\"
10614 exec_prefix
="$acl_save_exec_prefix"
10615 prefix
="$acl_save_prefix"
10618 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10619 if test "${with_libiconv_prefix+set}" = set; then
10620 withval
="$with_libiconv_prefix"
10622 if test "X$withval" = "Xno"; then
10625 if test "X$withval" = "X"; then
10627 acl_save_prefix
="$prefix"
10628 prefix
="$acl_final_prefix"
10629 acl_save_exec_prefix
="$exec_prefix"
10630 exec_prefix
="$acl_final_exec_prefix"
10632 eval additional_includedir
=\"$includedir\"
10633 eval additional_libdir
=\"$libdir\"
10635 exec_prefix
="$acl_save_exec_prefix"
10636 prefix
="$acl_save_prefix"
10639 additional_includedir
="$withval/include"
10640 additional_libdir
="$withval/lib"
10650 names_already_handled
=
10651 names_next_round
='iconv '
10652 while test -n "$names_next_round"; do
10653 names_this_round
="$names_next_round"
10655 for name
in $names_this_round; do
10657 for n
in $names_already_handled; do
10658 if test "$n" = "$name"; then
10659 already_handled
=yes
10663 if test -z "$already_handled"; then
10664 names_already_handled
="$names_already_handled $name"
10665 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10666 eval value
=\"\
$HAVE_LIB$uppername\"
10667 if test -n "$value"; then
10668 if test "$value" = yes; then
10669 eval value
=\"\
$LIB$uppername\"
10670 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10671 eval value
=\"\
$LTLIB$uppername\"
10672 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10681 if test $use_additional = yes; then
10682 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10683 found_dir
="$additional_libdir"
10684 found_so
="$additional_libdir/lib$name.$shlibext"
10685 if test -f "$additional_libdir/lib$name.la"; then
10686 found_la
="$additional_libdir/lib$name.la"
10689 if test -f "$additional_libdir/lib$name.$libext"; then
10690 found_dir
="$additional_libdir"
10691 found_a
="$additional_libdir/lib$name.$libext"
10692 if test -f "$additional_libdir/lib$name.la"; then
10693 found_la
="$additional_libdir/lib$name.la"
10698 if test "X$found_dir" = "X"; then
10699 for x
in $LDFLAGS $LTLIBICONV; do
10701 acl_save_prefix
="$prefix"
10702 prefix
="$acl_final_prefix"
10703 acl_save_exec_prefix
="$exec_prefix"
10704 exec_prefix
="$acl_final_exec_prefix"
10706 exec_prefix
="$acl_save_exec_prefix"
10707 prefix
="$acl_save_prefix"
10711 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10712 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10714 found_so
="$dir/lib$name.$shlibext"
10715 if test -f "$dir/lib$name.la"; then
10716 found_la
="$dir/lib$name.la"
10719 if test -f "$dir/lib$name.$libext"; then
10721 found_a
="$dir/lib$name.$libext"
10722 if test -f "$dir/lib$name.la"; then
10723 found_la
="$dir/lib$name.la"
10729 if test "X$found_dir" != "X"; then
10734 if test "X$found_dir" != "X"; then
10735 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10736 if test "X$found_so" != "X"; then
10737 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10738 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10741 for x
in $ltrpathdirs; do
10742 if test "X$x" = "X$found_dir"; then
10747 if test -z "$haveit"; then
10748 ltrpathdirs
="$ltrpathdirs $found_dir"
10750 if test "$hardcode_direct" = yes; then
10751 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10753 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10754 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10756 for x
in $rpathdirs; do
10757 if test "X$x" = "X$found_dir"; then
10762 if test -z "$haveit"; then
10763 rpathdirs
="$rpathdirs $found_dir"
10767 for x
in $LDFLAGS $LIBICONV; do
10769 acl_save_prefix
="$prefix"
10770 prefix
="$acl_final_prefix"
10771 acl_save_exec_prefix
="$exec_prefix"
10772 exec_prefix
="$acl_final_exec_prefix"
10774 exec_prefix
="$acl_save_exec_prefix"
10775 prefix
="$acl_save_prefix"
10777 if test "X$x" = "X-L$found_dir"; then
10782 if test -z "$haveit"; then
10783 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10785 if test "$hardcode_minus_L" != no
; then
10786 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10788 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10794 if test "X$found_a" != "X"; then
10795 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10797 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10800 additional_includedir
=
10801 case "$found_dir" in
10803 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10804 additional_includedir
="$basedir/include"
10807 if test "X$additional_includedir" != "X"; then
10808 if test "X$additional_includedir" != "X/usr/include"; then
10810 if test "X$additional_includedir" = "X/usr/local/include"; then
10811 if test -n "$GCC"; then
10813 linux
*) haveit
=yes;;
10817 if test -z "$haveit"; then
10818 for x
in $CPPFLAGS $INCICONV; do
10820 acl_save_prefix
="$prefix"
10821 prefix
="$acl_final_prefix"
10822 acl_save_exec_prefix
="$exec_prefix"
10823 exec_prefix
="$acl_final_exec_prefix"
10825 exec_prefix
="$acl_save_exec_prefix"
10826 prefix
="$acl_save_prefix"
10828 if test "X$x" = "X-I$additional_includedir"; then
10833 if test -z "$haveit"; then
10834 if test -d "$additional_includedir"; then
10835 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10841 if test -n "$found_la"; then
10842 save_libdir
="$libdir"
10843 case "$found_la" in
10844 */* |
*\\*) .
"$found_la" ;;
10845 *) .
"./$found_la" ;;
10847 libdir
="$save_libdir"
10848 for dep
in $dependency_libs; do
10851 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10852 if test "X$additional_libdir" != "X/usr/lib"; then
10854 if test "X$additional_libdir" = "X/usr/local/lib"; then
10855 if test -n "$GCC"; then
10857 linux
*) haveit
=yes;;
10861 if test -z "$haveit"; then
10863 for x
in $LDFLAGS $LIBICONV; do
10865 acl_save_prefix
="$prefix"
10866 prefix
="$acl_final_prefix"
10867 acl_save_exec_prefix
="$exec_prefix"
10868 exec_prefix
="$acl_final_exec_prefix"
10870 exec_prefix
="$acl_save_exec_prefix"
10871 prefix
="$acl_save_prefix"
10873 if test "X$x" = "X-L$additional_libdir"; then
10878 if test -z "$haveit"; then
10879 if test -d "$additional_libdir"; then
10880 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10884 for x
in $LDFLAGS $LTLIBICONV; do
10886 acl_save_prefix
="$prefix"
10887 prefix
="$acl_final_prefix"
10888 acl_save_exec_prefix
="$exec_prefix"
10889 exec_prefix
="$acl_final_exec_prefix"
10891 exec_prefix
="$acl_save_exec_prefix"
10892 prefix
="$acl_save_prefix"
10894 if test "X$x" = "X-L$additional_libdir"; then
10899 if test -z "$haveit"; then
10900 if test -d "$additional_libdir"; then
10901 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10908 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10909 if test "$enable_rpath" != no
; then
10911 for x
in $rpathdirs; do
10912 if test "X$x" = "X$dir"; then
10917 if test -z "$haveit"; then
10918 rpathdirs
="$rpathdirs $dir"
10921 for x
in $ltrpathdirs; do
10922 if test "X$x" = "X$dir"; then
10927 if test -z "$haveit"; then
10928 ltrpathdirs
="$ltrpathdirs $dir"
10933 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10936 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10939 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10940 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10946 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10947 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10953 if test "X$rpathdirs" != "X"; then
10954 if test -n "$hardcode_libdir_separator"; then
10956 for found_dir
in $rpathdirs; do
10957 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10959 acl_save_libdir
="$libdir"
10961 eval flag
=\"$hardcode_libdir_flag_spec\"
10962 libdir
="$acl_save_libdir"
10963 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10965 for found_dir
in $rpathdirs; do
10966 acl_save_libdir
="$libdir"
10967 libdir
="$found_dir"
10968 eval flag
=\"$hardcode_libdir_flag_spec\"
10969 libdir
="$acl_save_libdir"
10970 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10974 if test "X$ltrpathdirs" != "X"; then
10975 for found_dir
in $ltrpathdirs; do
10976 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10986 am_save_CPPFLAGS
="$CPPFLAGS"
10988 for element
in $INCICONV; do
10990 for x
in $CPPFLAGS; do
10992 acl_save_prefix
="$prefix"
10993 prefix
="$acl_final_prefix"
10994 acl_save_exec_prefix
="$exec_prefix"
10995 exec_prefix
="$acl_final_exec_prefix"
10997 exec_prefix
="$acl_save_exec_prefix"
10998 prefix
="$acl_save_prefix"
11000 if test "X$x" = "X$element"; then
11005 if test -z "$haveit"; then
11006 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11011 echo "$as_me:$LINENO: checking for iconv" >&5
11012 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11013 if test "${am_cv_func_iconv+set}" = set; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11017 am_cv_func_iconv
="no, consider installing GNU libiconv"
11019 cat >conftest.
$ac_ext <<_ACEOF
11022 cat confdefs.h
>>conftest.
$ac_ext
11023 cat >>conftest.
$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <stdlib.h>
11030 iconv_t cd = iconv_open("","");
11031 iconv(cd,NULL,NULL,NULL,NULL);
11037 rm -f conftest.
$ac_objext conftest
$ac_exeext
11038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11039 (eval $ac_link) 2>conftest.er1
11041 grep -v '^ *+' conftest.er1
>conftest.err
11043 cat conftest.err
>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } &&
11046 { ac_try
='test -z "$ac_c_werror_flag"
11047 || test ! -s conftest.err'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; } &&
11053 { ac_try
='test -s conftest$ac_exeext'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 am_cv_func_iconv
=yes
11061 echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.
$ac_ext >&5
11065 rm -f conftest.err conftest.
$ac_objext \
11066 conftest
$ac_exeext conftest.
$ac_ext
11067 if test "$am_cv_func_iconv" != yes; then
11068 am_save_LIBS
="$LIBS"
11069 LIBS
="$LIBS $LIBICONV"
11070 cat >conftest.
$ac_ext <<_ACEOF
11073 cat confdefs.h
>>conftest.
$ac_ext
11074 cat >>conftest.
$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 #include <stdlib.h>
11081 iconv_t cd = iconv_open("","");
11082 iconv(cd,NULL,NULL,NULL,NULL);
11088 rm -f conftest.
$ac_objext conftest
$ac_exeext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11090 (eval $ac_link) 2>conftest.er1
11092 grep -v '^ *+' conftest.er1
>conftest.err
11094 cat conftest.err
>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try
='test -z "$ac_c_werror_flag"
11098 || test ! -s conftest.err'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
11110 am_cv_lib_iconv
=yes
11111 am_cv_func_iconv
=yes
11113 echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.
$ac_ext >&5
11117 rm -f conftest.err conftest.
$ac_objext \
11118 conftest
$ac_exeext conftest.
$ac_ext
11119 LIBS
="$am_save_LIBS"
11123 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11124 echo "${ECHO_T}$am_cv_func_iconv" >&6
11125 if test "$am_cv_func_iconv" = yes; then
11127 cat >>confdefs.h
<<\_ACEOF
11128 #define HAVE_ICONV 1
11132 if test "$am_cv_lib_iconv" = yes; then
11133 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11134 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11135 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11136 echo "${ECHO_T}$LIBICONV" >&6
11138 CPPFLAGS
="$am_save_CPPFLAGS"
11145 if test "$am_cv_func_iconv" = yes; then
11146 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11147 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11148 if test "${am_cv_proto_iconv+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 cat >conftest.
$ac_ext <<_ACEOF
11155 cat confdefs.h
>>conftest.
$ac_ext
11156 cat >>conftest.
$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11159 #include <stdlib.h>
11165 #if defined(__STDC__) || defined(__cplusplus)
11166 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11179 rm -f conftest.
$ac_objext
11180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11181 (eval $ac_compile) 2>conftest.er1
11183 grep -v '^ *+' conftest.er1
>conftest.err
11185 cat conftest.err
>&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); } &&
11188 { ac_try
='test -z "$ac_c_werror_flag"
11189 || test ! -s conftest.err'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; } &&
11195 { ac_try
='test -s conftest.$ac_objext'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 am_cv_proto_iconv_arg1
=""
11203 echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.
$ac_ext >&5
11206 am_cv_proto_iconv_arg1
="const"
11208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11209 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);"
11212 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11213 echo "$as_me:$LINENO: result: ${ac_t:-
11214 }$am_cv_proto_iconv" >&5
11215 echo "${ECHO_T}${ac_t:-
11216 }$am_cv_proto_iconv" >&6
11218 cat >>confdefs.h
<<_ACEOF
11219 #define ICONV_CONST $am_cv_proto_iconv_arg1
11224 # Until we have in-tree GNU iconv:
11229 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11230 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11231 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 cat >conftest.
$ac_ext <<_ACEOF
11237 cat confdefs.h
>>conftest.
$ac_ext
11238 cat >>conftest.
$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240 #include <locale.h>
11249 rm -f conftest.
$ac_objext conftest
$ac_exeext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251 (eval $ac_link) 2>conftest.er1
11253 grep -v '^ *+' conftest.er1
>conftest.err
11255 cat conftest.err
>&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try
='test -z "$ac_c_werror_flag"
11259 || test ! -s conftest.err'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try
='test -s conftest$ac_exeext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 am_cv_val_LC_MESSAGES
=yes
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.
$ac_ext >&5
11276 am_cv_val_LC_MESSAGES
=no
11278 rm -f conftest.err conftest.
$ac_objext \
11279 conftest
$ac_exeext conftest.
$ac_ext
11281 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11282 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11283 if test $am_cv_val_LC_MESSAGES = yes; then
11285 cat >>confdefs.h
<<\_ACEOF
11286 #define HAVE_LC_MESSAGES 1
11293 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11294 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11295 if test "${am_cv_langinfo_codeset+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 cat >conftest.
$ac_ext <<_ACEOF
11301 cat confdefs.h
>>conftest.
$ac_ext
11302 cat >>conftest.
$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 #include <langinfo.h>
11308 char* cs = nl_langinfo(CODESET);
11313 rm -f conftest.
$ac_objext conftest
$ac_exeext
11314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11315 (eval $ac_link) 2>conftest.er1
11317 grep -v '^ *+' conftest.er1
>conftest.err
11319 cat conftest.err
>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
11322 { ac_try
='test -z "$ac_c_werror_flag"
11323 || test ! -s conftest.err'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; } &&
11329 { ac_try
='test -s conftest$ac_exeext'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 am_cv_langinfo_codeset
=yes
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.
$ac_ext >&5
11340 am_cv_langinfo_codeset
=no
11342 rm -f conftest.err conftest.
$ac_objext \
11343 conftest
$ac_exeext conftest.
$ac_ext
11346 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11347 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11348 if test $am_cv_langinfo_codeset = yes; then
11350 cat >>confdefs.h
<<\_ACEOF
11351 #define HAVE_LANGINFO_CODESET 1
11357 # We will need to find libiberty.h and ansidecl.h
11358 saved_CFLAGS
="$CFLAGS"
11359 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11399 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11400 strsignal strstr strverscmp \
11401 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11402 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
11404 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11405 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11406 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11407 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 cat >conftest.
$ac_ext <<_ACEOF
11413 cat confdefs.h
>>conftest.
$ac_ext
11414 cat >>conftest.
$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11417 #define $ac_tr_decl 1
11419 #include "ansidecl.h"
11420 #include "system.h"
11426 char *(*pfn) = (char *(*)) $ac_func ;
11432 rm -f conftest.
$ac_objext
11433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11434 (eval $ac_compile) 2>conftest.er1
11436 grep -v '^ *+' conftest.er1
>conftest.err
11438 cat conftest.err
>&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } &&
11441 { ac_try
='test -z "$ac_c_werror_flag"
11442 || test ! -s conftest.err'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; } &&
11448 { ac_try
='test -s conftest.$ac_objext'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; }; then
11454 eval "gcc_cv_have_decl_$ac_func=yes"
11456 echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.
$ac_ext >&5
11459 eval "gcc_cv_have_decl_$ac_func=no"
11461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11464 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11465 echo "$as_me:$LINENO: result: yes" >&5
11466 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11467 #define $ac_tr_decl 1
11471 echo "$as_me:$LINENO: result: no" >&5
11472 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11473 #define $ac_tr_decl 0
11484 for ac_func
in getrlimit setrlimit getrusage
11486 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11487 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11488 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11489 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 cat >conftest.
$ac_ext <<_ACEOF
11495 cat confdefs.h
>>conftest.
$ac_ext
11496 cat >>conftest.
$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11499 #define $ac_tr_decl 1
11501 #include "ansidecl.h"
11502 #include "system.h"
11503 #ifdef HAVE_SYS_RESOURCE_H
11504 #include <sys/resource.h>
11512 char *(*pfn) = (char *(*)) $ac_func ;
11518 rm -f conftest.
$ac_objext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11520 (eval $ac_compile) 2>conftest.er1
11522 grep -v '^ *+' conftest.er1
>conftest.err
11524 cat conftest.err
>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
11527 { ac_try
='test -z "$ac_c_werror_flag"
11528 || test ! -s conftest.err'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try
='test -s conftest.$ac_objext'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 eval "gcc_cv_have_decl_$ac_func=yes"
11542 echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.
$ac_ext >&5
11545 eval "gcc_cv_have_decl_$ac_func=no"
11547 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11550 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11551 echo "$as_me:$LINENO: result: yes" >&5
11552 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11553 #define $ac_tr_decl 1
11557 echo "$as_me:$LINENO: result: no" >&5
11558 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11559 #define $ac_tr_decl 0
11567 cat >conftest.
$ac_ext <<_ACEOF
11570 cat confdefs.h
>>conftest.
$ac_ext
11571 cat >>conftest.
$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11574 #include "ansidecl.h"
11575 #include "system.h"
11576 #ifdef HAVE_SYS_RESOURCE_H
11577 #include <sys/resource.h>
11588 rm -f conftest.
$ac_objext
11589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11590 (eval $ac_compile) 2>conftest.er1
11592 grep -v '^ *+' conftest.er1
>conftest.err
11594 cat conftest.err
>&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } &&
11597 { ac_try
='test -z "$ac_c_werror_flag"
11598 || test ! -s conftest.err'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; } &&
11604 { ac_try
='test -s conftest.$ac_objext'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11612 echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.
$ac_ext >&5
11616 cat >>confdefs.h
<<\_ACEOF
11617 #define rlim_t long
11621 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11623 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11624 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11625 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11626 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11628 for ac_func
in ldgetname
11630 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11631 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11632 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11633 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 cat >conftest.
$ac_ext <<_ACEOF
11639 cat confdefs.h
>>conftest.
$ac_ext
11640 cat >>conftest.
$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11643 #define $ac_tr_decl 1
11645 #include "ansidecl.h"
11646 #include "system.h"
11647 #ifdef HAVE_LDFCN_H
11658 char *(*pfn) = (char *(*)) $ac_func ;
11664 rm -f conftest.
$ac_objext
11665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11666 (eval $ac_compile) 2>conftest.er1
11668 grep -v '^ *+' conftest.er1
>conftest.err
11670 cat conftest.err
>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try
='test -z "$ac_c_werror_flag"
11674 || test ! -s conftest.err'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; } &&
11680 { ac_try
='test -s conftest.$ac_objext'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11686 eval "gcc_cv_have_decl_$ac_func=yes"
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.
$ac_ext >&5
11691 eval "gcc_cv_have_decl_$ac_func=no"
11693 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11696 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11697 echo "$as_me:$LINENO: result: yes" >&5
11698 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11699 #define $ac_tr_decl 1
11703 echo "$as_me:$LINENO: result: no" >&5
11704 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11705 #define $ac_tr_decl 0
11714 for ac_func
in times
11716 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11717 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11718 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11719 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 cat >conftest.
$ac_ext <<_ACEOF
11725 cat confdefs.h
>>conftest.
$ac_ext
11726 cat >>conftest.
$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11729 #define $ac_tr_decl 1
11731 #include "ansidecl.h"
11732 #include "system.h"
11733 #ifdef HAVE_SYS_TIMES_H
11734 #include <sys/times.h>
11742 char *(*pfn) = (char *(*)) $ac_func ;
11748 rm -f conftest.
$ac_objext
11749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11750 (eval $ac_compile) 2>conftest.er1
11752 grep -v '^ *+' conftest.er1
>conftest.err
11754 cat conftest.err
>&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); } &&
11757 { ac_try
='test -z "$ac_c_werror_flag"
11758 || test ! -s conftest.err'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; } &&
11764 { ac_try
='test -s conftest.$ac_objext'
11765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766 (eval $ac_try) 2>&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; }; then
11770 eval "gcc_cv_have_decl_$ac_func=yes"
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.
$ac_ext >&5
11775 eval "gcc_cv_have_decl_$ac_func=no"
11777 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11780 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11781 echo "$as_me:$LINENO: result: yes" >&5
11782 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11783 #define $ac_tr_decl 1
11787 echo "$as_me:$LINENO: result: no" >&5
11788 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11789 #define $ac_tr_decl 0
11798 for ac_func
in sigaltstack
11800 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11801 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11802 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11803 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 cat >conftest.
$ac_ext <<_ACEOF
11809 cat confdefs.h
>>conftest.
$ac_ext
11810 cat >>conftest.
$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11813 #define $ac_tr_decl 1
11815 #include "ansidecl.h"
11816 #include "system.h"
11817 #include <signal.h>
11824 char *(*pfn) = (char *(*)) $ac_func ;
11830 rm -f conftest.
$ac_objext
11831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11832 (eval $ac_compile) 2>conftest.er1
11834 grep -v '^ *+' conftest.er1
>conftest.err
11836 cat conftest.err
>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } &&
11839 { ac_try
='test -z "$ac_c_werror_flag"
11840 || test ! -s conftest.err'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; } &&
11846 { ac_try
='test -s conftest.$ac_objext'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11852 eval "gcc_cv_have_decl_$ac_func=yes"
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.
$ac_ext >&5
11857 eval "gcc_cv_have_decl_$ac_func=no"
11859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11862 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11863 echo "$as_me:$LINENO: result: yes" >&5
11864 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11865 #define $ac_tr_decl 1
11869 echo "$as_me:$LINENO: result: no" >&5
11870 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11871 #define $ac_tr_decl 0
11879 # More time-related stuff.
11880 echo "$as_me:$LINENO: checking for struct tms" >&5
11881 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11882 if test "${ac_cv_struct_tms+set}" = set; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 cat >conftest.
$ac_ext <<_ACEOF
11889 cat confdefs.h
>>conftest.
$ac_ext
11890 cat >>conftest.
$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11893 #include "ansidecl.h"
11894 #include "system.h"
11895 #ifdef HAVE_SYS_TIMES_H
11896 #include <sys/times.h>
11907 rm -f conftest.
$ac_objext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11909 (eval $ac_compile) 2>conftest.er1
11911 grep -v '^ *+' conftest.er1
>conftest.err
11913 cat conftest.err
>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } &&
11916 { ac_try
='test -z "$ac_c_werror_flag"
11917 || test ! -s conftest.err'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; } &&
11923 { ac_try
='test -s conftest.$ac_objext'
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; }; then
11929 ac_cv_struct_tms
=yes
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.
$ac_ext >&5
11934 ac_cv_struct_tms
=no
11936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11938 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11939 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11940 if test $ac_cv_struct_tms = yes; then
11942 cat >>confdefs.h
<<\_ACEOF
11943 #define HAVE_STRUCT_TMS 1
11948 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11949 # revisit after autoconf 2.50.
11950 echo "$as_me:$LINENO: checking for clock_t" >&5
11951 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11952 if test "${gcc_cv_type_clock_t+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 cat >conftest.
$ac_ext <<_ACEOF
11959 cat confdefs.h
>>conftest.
$ac_ext
11960 cat >>conftest.
$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11963 #include "ansidecl.h"
11964 #include "system.h"
11974 rm -f conftest.
$ac_objext
11975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11976 (eval $ac_compile) 2>conftest.er1
11978 grep -v '^ *+' conftest.er1
>conftest.err
11980 cat conftest.err
>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try
='test -z "$ac_c_werror_flag"
11984 || test ! -s conftest.err'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; } &&
11990 { ac_try
='test -s conftest.$ac_objext'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; }; then
11996 gcc_cv_type_clock_t
=yes
11998 echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.
$ac_ext >&5
12001 gcc_cv_type_clock_t
=no
12003 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12005 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12006 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12007 if test $gcc_cv_type_clock_t = yes; then
12009 cat >>confdefs.h
<<\_ACEOF
12010 #define HAVE_CLOCK_T 1
12015 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12016 CFLAGS
="$saved_CFLAGS"
12018 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12019 if test "${enable_initfini_array+set}" = set; then
12020 enableval
="$enable_initfini_array"
12024 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12025 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12026 if test "${gcc_cv_initfini_array+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 if test "$cross_compiling" = yes; then
12030 gcc_cv_initfini_array
=no
12032 cat >conftest.
$ac_ext <<_ACEOF
12035 cat confdefs.h
>>conftest.
$ac_ext
12036 cat >>conftest.
$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12040 int main (void) { return x; }
12041 int foo (void) { x = 0; }
12042 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12044 rm -f conftest
$ac_exeext
12045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12046 (eval $ac_link) 2>&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; }; then
12055 gcc_cv_initfini_array
=yes
12057 echo "$as_me: program exited with status $ac_status" >&5
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.
$ac_ext >&5
12061 ( exit $ac_status )
12062 gcc_cv_initfini_array
=no
12064 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12067 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12068 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12069 enable_initfini_array
=$gcc_cv_initfini_array
12072 if test $enable_initfini_array = yes; then
12074 cat >>confdefs.h
<<\_ACEOF
12075 #define HAVE_INITFINI_ARRAY 1
12080 # mkdir takes a single argument on some systems.
12081 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12082 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12083 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 cat >conftest.
$ac_ext <<_ACEOF
12089 cat confdefs.h
>>conftest.
$ac_ext
12090 cat >>conftest.
$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12093 #include <sys/types.h>
12094 #ifdef HAVE_SYS_STAT_H
12095 # include <sys/stat.h>
12097 #ifdef HAVE_UNISTD_H
12098 # include <unistd.h>
12100 #ifdef HAVE_DIRECT_H
12101 # include <direct.h>
12111 rm -f conftest.
$ac_objext
12112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12113 (eval $ac_compile) 2>conftest.er1
12115 grep -v '^ *+' conftest.er1
>conftest.err
12117 cat conftest.err
>&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
12120 { ac_try
='test -z "$ac_c_werror_flag"
12121 || test ! -s conftest.err'
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; } &&
12127 { ac_try
='test -s conftest.$ac_objext'
12128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129 (eval $ac_try) 2>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; }; then
12133 gcc_cv_mkdir_takes_one_arg
=no
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.
$ac_ext >&5
12138 gcc_cv_mkdir_takes_one_arg
=yes
12140 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12142 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12143 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12144 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12146 cat >>confdefs.h
<<\_ACEOF
12147 #define MKDIR_TAKES_ONE_ARG 1
12159 # With Setjmp/Longjmp based exception handling.
12160 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12161 if test "${enable_sjlj_exceptions+set}" = set; then
12162 enableval
="$enable_sjlj_exceptions"
12163 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12165 cat >>confdefs.h
<<_ACEOF
12166 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12171 # For platforms with the unwind ABI which includes an unwind library,
12172 # libunwind, we can choose to use the system libunwind.
12174 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12175 if test "${with_system_libunwind+set}" = set; then
12176 withval
="$with_system_libunwind"
12180 # --------------------------------------------------------
12181 # Build, host, and target specific configuration fragments
12182 # --------------------------------------------------------
12184 # Collect build-machine-specific information.
12185 .
${srcdir}/config.build
12187 # Collect host-machine-specific information.
12188 .
${srcdir}/config.
host
12192 # Collect target-machine-specific information.
12193 .
${srcdir}/config.gcc
12195 extra_objs
="${host_extra_objs} ${extra_objs}"
12196 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12198 # Default the target-machine variables that were not explicitly set.
12199 if test x
"$tm_file" = x
12200 then tm_file
=$cpu_type/$cpu_type.h
; fi
12202 if test x
"$extra_headers" = x
12203 then extra_headers
=; fi
12205 if test x
$md_file = x
12206 then md_file
=$cpu_type/$cpu_type.md
; fi
12208 if test x
$out_file = x
12209 then out_file
=$cpu_type/$cpu_type.c
; fi
12211 if test x
"$tmake_file" = x
12212 then tmake_file
=$cpu_type/t-
$cpu_type
12215 if test x
"$dwarf2" = xyes
12216 then tm_file
="$tm_file tm-dwarf2.h"
12219 # Say what files are being used for the output code and MD file.
12220 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12221 echo "Using \`$srcdir/config/$md_file' as machine description file."
12223 # If any of the xm_file variables contain nonexistent files, warn
12224 # about them and drop them.
12227 for x
in $build_xm_file; do
12228 if test -f $srcdir/config
/$x
12230 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12231 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12234 build_xm_file
="$bx"
12237 for x
in $host_xm_file; do
12238 if test -f $srcdir/config
/$x
12240 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12241 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12247 for x
in $xm_file; do
12248 if test -f $srcdir/config
/$x
12250 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12251 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12257 for f
in $tm_file; do
12260 if test $count = ax
; then
12261 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12263 echo "Using the following target machine macro files:"
12264 for f
in $tm_file; do
12265 echo " $srcdir/config/$f"
12269 if test x
$need_64bit_hwint = xyes
; then
12271 cat >>confdefs.h
<<\_ACEOF
12272 #define NEED_64BIT_HOST_WIDE_INT 1
12277 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12279 cat >>confdefs.h
<<\_ACEOF
12280 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12286 for f
in $host_xm_file; do
12289 if test $count = a
; then
12291 elif test $count = ax
; then
12292 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12294 echo "Using the following host machine macro files:"
12295 for f
in $host_xm_file; do
12296 echo " $srcdir/config/$f"
12299 echo "Using ${out_host_hook_obj} for host machine hooks."
12301 if test "$host_xm_file" != "$build_xm_file"; then
12303 for f
in $build_xm_file; do
12306 if test $count = a
; then
12308 elif test $count = ax
; then
12309 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12311 echo "Using the following build machine macro files:"
12312 for f
in $build_xm_file; do
12313 echo " $srcdir/config/$f"
12320 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12321 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12322 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 cat >conftest.
$ac_ext <<_ACEOF
12327 #include <sys/signal.h>
12328 #include <ucontext.h>
12329 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12332 rm -f conftest.
$ac_objext
12333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12334 (eval $ac_compile) 2>conftest.er1
12336 grep -v '^ *+' conftest.er1
>conftest.err
12338 cat conftest.err
>&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } &&
12341 { ac_try
='test -z "$ac_c_werror_flag"
12342 || test ! -s conftest.err'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; } &&
12348 { ac_try
='test -s conftest.$ac_objext'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 gcc_cv_mcontext_underscores
=no
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.
$ac_ext >&5
12359 gcc_cv_mcontext_underscores
=yes
12361 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12363 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12364 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12365 if test $gcc_cv_mcontext_underscores = yes; then
12367 cat >>confdefs.h
<<\_ACEOF
12368 #define HAS_MCONTEXT_T_UNDERSCORES
12379 # Check if a valid thread package
12380 case ${enable_threads} in
12383 target_thread_file
='single'
12387 target_thread_file
='single'
12389 aix | dce | gnat | irix | posix | posix95 | rtems | \
12390 single | solaris | vxworks | win32
)
12391 target_thread_file
=${enable_threads}
12394 echo "${enable_threads} is an unknown thread package" 1>&2
12399 if test x
${thread_file} = x
; then
12400 # No thread file set by target-specific clauses in config.gcc,
12401 # so use file chosen by default logic above
12402 thread_file
=${target_thread_file}
12405 # Make gthr-default.h if we have a thread file.
12407 if test $thread_file != single
; then
12408 rm -f gthr-default.h
12409 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12410 gthread_flags
=-DHAVE_GTHR_DEFAULT
12419 if test x
$enable___cxa_atexit = xyes || \
12420 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12421 if test x
$host = x
$target; then
12422 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12423 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12424 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 cat >conftest.
$ac_ext <<_ACEOF
12430 cat confdefs.h
>>conftest.
$ac_ext
12431 cat >>conftest.
$ac_ext <<_ACEOF
12432 /* end confdefs.h. */
12433 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12435 #define __cxa_atexit innocuous___cxa_atexit
12437 /* System header to define __stub macros and hopefully few prototypes,
12438 which can conflict with char __cxa_atexit (); below.
12439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12440 <limits.h> exists even on freestanding compilers. */
12443 # include <limits.h>
12445 # include <assert.h>
12448 #undef __cxa_atexit
12450 /* Override any gcc2 internal prototype to avoid an error. */
12455 /* We use char because int might match the return type of a gcc2
12456 builtin and then its argument prototype would still apply. */
12457 char __cxa_atexit ();
12458 /* The GNU C library defines this for functions which it implements
12459 to always fail with ENOSYS. Some functions are actually named
12460 something starting with __ and the normal name is an alias. */
12461 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12464 char (*f) () = __cxa_atexit;
12473 return f != __cxa_atexit;
12478 rm -f conftest.
$ac_objext conftest
$ac_exeext
12479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12480 (eval $ac_link) 2>conftest.er1
12482 grep -v '^ *+' conftest.er1
>conftest.err
12484 cat conftest.err
>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } &&
12487 { ac_try
='test -z "$ac_c_werror_flag"
12488 || test ! -s conftest.err'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; } &&
12494 { ac_try
='test -s conftest$ac_exeext'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; }; then
12500 ac_cv_func___cxa_atexit
=yes
12502 echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.
$ac_ext >&5
12505 ac_cv_func___cxa_atexit
=no
12507 rm -f conftest.err conftest.
$ac_objext \
12508 conftest
$ac_exeext conftest.
$ac_ext
12510 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12511 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12512 if test $ac_cv_func___cxa_atexit = yes; then
12515 echo "__cxa_atexit can't be enabled on this target"
12519 # We can't check for __cxa_atexit when building a cross, so assume
12523 if test x
$use_cxa_atexit = xyes
; then
12525 cat >>confdefs.h
<<\_ACEOF
12526 #define DEFAULT_USE_CXA_ATEXIT 2
12532 # Look for a file containing extra machine modes.
12533 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12534 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12537 cat >>confdefs.h
<<_ACEOF
12538 #define EXTRA_MODES_FILE "config/$extra_modes"
12543 # Convert extra_options into a form suitable for Makefile use.
12545 for f
in $extra_options; do
12546 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12550 # auto-host.h is the file containing items generated by autoconf and is
12551 # the first file included by config.h.
12552 # If host=build, it is correct to have bconfig include auto-host.h
12553 # as well. If host!=build, we are in error and need to do more
12554 # work to find out the build config parameters.
12555 if test x
$host = x
$build
12557 build_auto
=auto-host.h
12559 # We create a subdir, then run autoconf in the subdir.
12560 # To prevent recursion we set host and build for the new
12561 # invocation of configure to the build for this invocation
12568 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12569 *) realsrcdir
=..
/${srcdir};;
12571 saved_CFLAGS
="${CFLAGS}"
12572 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12573 ${realsrcdir}/configure \
12574 --enable-languages=${enable_languages-all} \
12575 --target=$target_alias --host=$build_alias --build=$build_alias
12576 CFLAGS
="${saved_CFLAGS}"
12578 # We just finished tests for the build machine, so rename
12579 # the file auto-build.h in the gcc directory.
12580 mv auto-host.h ..
/auto-build.h
12583 build_auto
=auto-build.h
12587 tm_file
="${tm_file} defaults.h"
12588 tm_p_file
="${tm_p_file} tm-preds.h"
12589 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12590 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12591 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12592 # put this back in temporarily.
12593 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12599 # Compile in configure arguments.
12600 if test -f configargs.h
; then
12601 # Being re-configured.
12602 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12603 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12605 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12608 # Double all backslashes and backslash all quotes to turn
12609 # gcc_config_arguments into a C string.
12610 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12611 $gcc_config_arguments
12613 gcc_config_arguments_str
=`cat conftest.out`
12616 cat > configargs.h
<<EOF
12617 /* Generated automatically. */
12618 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12619 static const char thread_model[] = "$thread_file";
12621 static const struct {
12622 const char *name, *value;
12623 } configure_default_options[] = $configure_default_options;
12626 # Internationalization
12627 # If we haven't got the data from the intl directory,
12628 # assume NLS is disabled.
12637 if test -f ..
/intl
/config.intl
; then
12638 . ..
/intl
/config.intl
12640 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12641 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12642 if test x
"$USE_NLS" != xyes
; then
12643 echo "$as_me:$LINENO: result: no" >&5
12644 echo "${ECHO_T}no" >&6
12646 echo "$as_me:$LINENO: result: yes" >&5
12647 echo "${ECHO_T}yes" >&6
12649 cat >>confdefs.h
<<\_ACEOF
12650 #define ENABLE_NLS 1
12654 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12655 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12656 # Look for .po and .gmo files in the source directory.
12659 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12660 # If there aren't any .gmo files the shell will give us the
12661 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12663 case "$cat" in *\
**)
12666 # The quadruple backslash is collapsed to a double backslash
12667 # by the backticks, then collapsed again by the double quotes,
12668 # leaving us with one backslash in the sed expression (right
12669 # before the dot that mustn't act as a wildcard).
12670 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12671 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12672 # The user is allowed to set LINGUAS to a list of languages to
12673 # install catalogs for. If it's empty that means "all of them."
12674 if test "x$LINGUAS" = x
; then
12675 CATALOGS
="$CATALOGS $cat"
12676 XLINGUAS
="$XLINGUAS $lang"
12678 case "$LINGUAS" in *$lang*)
12679 CATALOGS
="$CATALOGS $cat"
12680 XLINGUAS
="$XLINGUAS $lang"
12685 LINGUAS
="$XLINGUAS"
12686 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12687 echo "${ECHO_T}$LINGUAS" >&6
12700 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12701 # -liconv on the link line twice.
12702 case "$LIBINTL" in *$LIBICONV*)
12706 # Check whether --enable-secureplt or --disable-secureplt was given.
12707 if test "${enable_secureplt+set}" = set; then
12708 enableval
="$enable_secureplt"
12712 # Windows32 Registry support for specifying GCC installation paths.
12713 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12714 if test "${enable_win32_registry+set}" = set; then
12715 enableval
="$enable_win32_registry"
12720 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12721 if test "x$enable_win32_registry" != xno
; then
12722 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12723 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12724 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 ac_func_search_save_LIBS
=$LIBS
12728 ac_cv_search_RegOpenKeyExA
=no
12729 cat >conftest.
$ac_ext <<_ACEOF
12732 cat confdefs.h
>>conftest.
$ac_ext
12733 cat >>conftest.
$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12736 /* Override any gcc2 internal prototype to avoid an error. */
12740 /* We use char because int might match the return type of a gcc2
12741 builtin and then its argument prototype would still apply. */
12742 char RegOpenKeyExA ();
12751 rm -f conftest.
$ac_objext conftest
$ac_exeext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12753 (eval $ac_link) 2>conftest.er1
12755 grep -v '^ *+' conftest.er1
>conftest.err
12757 cat conftest.err
>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
12760 { ac_try
='test -z "$ac_c_werror_flag"
12761 || test ! -s conftest.err'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; } &&
12767 { ac_try
='test -s conftest$ac_exeext'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; }; then
12773 ac_cv_search_RegOpenKeyExA
="none required"
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.
$ac_ext >&5
12779 rm -f conftest.err conftest.
$ac_objext \
12780 conftest
$ac_exeext conftest.
$ac_ext
12781 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12782 for ac_lib
in advapi32
; do
12783 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12784 cat >conftest.
$ac_ext <<_ACEOF
12787 cat confdefs.h
>>conftest.
$ac_ext
12788 cat >>conftest.
$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12791 /* Override any gcc2 internal prototype to avoid an error. */
12795 /* We use char because int might match the return type of a gcc2
12796 builtin and then its argument prototype would still apply. */
12797 char RegOpenKeyExA ();
12806 rm -f conftest.
$ac_objext conftest
$ac_exeext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12808 (eval $ac_link) 2>conftest.er1
12810 grep -v '^ *+' conftest.er1
>conftest.err
12812 cat conftest.err
>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } &&
12815 { ac_try
='test -z "$ac_c_werror_flag"
12816 || test ! -s conftest.err'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; } &&
12822 { ac_try
='test -s conftest$ac_exeext'
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12831 echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.
$ac_ext >&5
12835 rm -f conftest.err conftest.
$ac_objext \
12836 conftest
$ac_exeext conftest.
$ac_ext
12839 LIBS
=$ac_func_search_save_LIBS
12841 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12842 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12843 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12844 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12847 enable_win32_registry
=no
12852 if test "x$enable_win32_registry" != xno
; then
12854 cat >>confdefs.h
<<\_ACEOF
12855 #define ENABLE_WIN32_REGISTRY 1
12859 if test "x$enable_win32_registry" != xyes \
12860 && test "x$enable_win32_registry" != x
; then
12862 cat >>confdefs.h
<<_ACEOF
12863 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12871 # Get an absolute path to the GCC top-level source directory
12872 holddir
=`${PWDCMD-pwd}`
12874 topdir
=`${PWDCMD-pwd}`
12877 # Conditionalize the makefile for this host machine.
12879 for f
in ${host_xmake_file}
12881 if test -f ${srcdir}/config
/$f
12883 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12887 # Conditionalize the makefile for this target machine.
12889 for f
in ${tmake_file}
12891 if test -f ${srcdir}/config
/$f
12893 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12896 tmake_file
="${tmake_file_}"
12898 # If the host doesn't support symlinks, modify CC in
12899 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12900 # Otherwise, we can use "CC=$(CC)".
12904 cc_set_by_configure
="\$(CC)"
12905 quoted_cc_set_by_configure
="\$(CC)"
12906 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12907 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12910 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12911 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12912 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12913 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12917 # This is a terrible hack which will go away some day.
12918 host_cc_for_libada
=${CC}
12921 out_object_file
=`basename $out_file .c`.o
12923 tm_file_list
="options.h"
12924 tm_include_list
="options.h"
12925 for f
in $tm_file; do
12928 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12929 tm_include_list
="${tm_include_list} $f"
12932 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12933 tm_include_list
="${tm_include_list} config/$f"
12940 for f
in $tm_p_file; do
12943 tm_p_file_list
="${tm_p_file_list} $f"
12944 tm_p_include_list
="${tm_p_include_list} $f"
12947 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12948 tm_p_include_list
="${tm_p_include_list} config/$f"
12954 for f
in $xm_file; do
12957 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12958 xm_include_list
="${xm_include_list} $f"
12961 xm_file_list
="${xm_file_list} $f"
12962 xm_include_list
="${xm_include_list} $f"
12965 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12966 xm_include_list
="${xm_include_list} config/$f"
12972 host_xm_include_list
=
12973 for f
in $host_xm_file; do
12976 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12977 host_xm_include_list
="${host_xm_include_list} $f"
12980 host_xm_file_list
="${host_xm_file_list} $f"
12981 host_xm_include_list
="${host_xm_include_list} $f"
12984 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12985 host_xm_include_list
="${host_xm_include_list} config/$f"
12990 build_xm_file_list
=
12991 for f
in $build_xm_file; do
12994 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12995 build_xm_include_list
="${build_xm_include_list} $f"
12997 auto-build.h | auto-host.h
)
12998 build_xm_file_list
="${build_xm_file_list} $f"
12999 build_xm_include_list
="${build_xm_include_list} $f"
13002 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13003 build_xm_include_list
="${build_xm_include_list} config/$f"
13008 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
13009 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13012 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13014 if test "x$with_build_sysroot" != x
; then
13015 build_system_header_dir
=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
13017 # This value is used, even on a native system, because
13018 # CROSS_SYSTEM_HEADER_DIR is just
13019 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13020 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13023 if test x
$host != x
$target
13025 CROSS
="-DCROSS_COMPILE"
13027 SYSTEM_HEADER_DIR
=$build_system_header_dir
13028 case "$host","$target" in
13029 # Darwin crosses can use the host system's libraries and headers,
13030 # because of the fat library support. Of course, it must be the
13031 # same version of Darwin on both sides. Allow the user to
13032 # just say --target=foo-darwin without a version number to mean
13033 # "the version on this system".
13034 *-*-darwin*,*-*-darwin*)
13035 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13036 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13037 if test $hostos = $targetos -o $targetos = darwin
; then
13039 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13044 i?
86-*-*,x86_64-
*-* \
13045 | powerpc
*-*-*,powerpc64
*-*-*)
13046 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13048 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13049 SYSTEM_HEADER_DIR
=$build_system_header_dir
13052 # If this is a cross-compiler that does not
13053 # have its own set of headers then define
13056 # If this is using newlib, without having the headers available now,
13057 # then define inhibit_libc in LIBGCC2_CFLAGS.
13058 # This prevents libgcc2 from containing any code which requires libc
13061 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13062 test x
$with_newlib = xyes
; } &&
13063 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13068 # When building gcc with a cross-compiler, we need to adjust things so
13069 # that the generator programs are still built with the native compiler.
13070 # Also, we cannot run fixincludes or fix-header.
13072 # These are the normal (build=host) settings:
13073 CC_FOR_BUILD
='$(CC)'
13074 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13075 STMP_FIXINC
=stmp-fixinc
13077 # Possibly disable fixproto, on a per-target basis.
13078 case ${use_fixproto} in
13083 STMP_FIXPROTO
=stmp-fixproto
13088 # And these apply if build != host, or we are generating coverage data
13089 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13091 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13093 if test "x$TARGET_SYSTEM_ROOT" = x
; then
13094 if test "x$STMP_FIXPROTO" != x
; then
13095 STMP_FIXPROTO
=stmp-install-fixproto
13100 # Expand extra_headers to include complete path.
13101 # This substitutes for lots of t-* files.
13102 extra_headers_list
=
13103 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13104 for file in ${extra_headers} ; do
13105 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13108 # Define collect2 in Makefile.
13109 case $host_can_use_collect2 in
13111 *) collect2
='collect2$(exeext)' ;;
13115 # Add a definition of USE_COLLECT2 if system wants one.
13116 case $use_collect2 in
13117 no
) use_collect2
= ;;
13120 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13121 xm_defines
="${xm_defines} USE_COLLECT2"
13122 case $host_can_use_collect2 in
13124 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13125 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13126 { (exit 1); exit 1; }; }
13132 # ---------------------------
13133 # Assembler & linker features
13134 # ---------------------------
13136 # Identify the assembler which will work hand-in-glove with the newly
13137 # built GCC, so that we can examine its features. This is the assembler
13138 # which will be driven by the driver program.
13140 # If build != host, and we aren't building gas in-tree, we identify a
13141 # build->target assembler and hope that it will have the same features
13142 # as the host->target assembler we'll be using.
13143 gcc_cv_gas_major_version
=
13144 gcc_cv_gas_minor_version
=
13145 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13147 if test "${gcc_cv_as+set}" = set; then
13151 if test -x "$DEFAULT_ASSEMBLER"; then
13152 gcc_cv_as
="$DEFAULT_ASSEMBLER"
13153 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
13154 && test -f ..
/gas
/Makefile \
13155 && test x
$build = x
$host; then
13156 gcc_cv_as
=..
/gas
/as-new
$build_exeext
13157 elif test -x as
$build_exeext; then
13158 # Build using assembler in the current directory.
13159 gcc_cv_as
=.
/as
$build_exeext
13160 elif test -x $AS_FOR_TARGET; then
13161 gcc_cv_as
="$AS_FOR_TARGET"
13163 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13164 set dummy
$AS_FOR_TARGET; ac_word
=$2
13165 echo "$as_me:$LINENO: checking for $ac_word" >&5
13166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13167 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13176 for as_dir
in $PATH
13179 test -z "$as_dir" && as_dir
=.
13180 for ac_exec_ext
in '' $ac_executable_extensions; do
13181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13182 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13192 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13194 if test -n "$gcc_cv_as"; then
13195 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13196 echo "${ECHO_T}$gcc_cv_as" >&6
13198 echo "$as_me:$LINENO: result: no" >&5
13199 echo "${ECHO_T}no" >&6
13206 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
13209 echo "$as_me:$LINENO: checking what assembler to use" >&5
13210 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13211 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
13212 # Single tree build which includes gas. We want to prefer it
13213 # over whatever linker top-level may have detected, since
13214 # we'll use what we're building after installation anyway.
13215 echo "$as_me:$LINENO: result: newly built gas" >&5
13216 echo "${ECHO_T}newly built gas" >&6
13218 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13219 for f
in $gcc_cv_as_bfd_srcdir/configure \
13220 $gcc_cv_as_gas_srcdir/configure \
13221 $gcc_cv_as_gas_srcdir/configure.
in \
13222 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
13223 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13224 if test x
$gcc_cv_gas_version != x
; then
13228 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13229 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13230 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13231 case $gcc_cv_gas_patch_version in
13232 "") gcc_cv_gas_patch_version
="0" ;;
13234 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13235 + $gcc_cv_gas_minor_version \) \* 1000 \
13236 + $gcc_cv_gas_patch_version`
13238 in_tree_gas_is_elf
=no
13239 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
13240 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
13241 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
13243 in_tree_gas_is_elf
=yes
13246 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13247 echo "${ECHO_T}$gcc_cv_as" >&6
13251 # Identify the linker which will work hand-in-glove with the newly
13252 # built GCC, so that we can examine its features. This is the linker
13253 # which will be driven by the driver program.
13255 # If build != host, and we aren't building gas in-tree, we identify a
13256 # build->target linker and hope that it will have the same features
13257 # as the host->target linker we'll be using.
13258 gcc_cv_gld_major_version
=
13259 gcc_cv_gld_minor_version
=
13260 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13261 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13263 if test "${gcc_cv_ld+set}" = set; then
13267 if test -x "$DEFAULT_LINKER"; then
13268 gcc_cv_ld
="$DEFAULT_LINKER"
13269 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13270 && test -f ..
/ld
/Makefile \
13271 && test x
$build = x
$host; then
13272 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13273 elif test -x collect-ld
$build_exeext; then
13274 # Build using linker in the current directory.
13275 gcc_cv_ld
=.
/collect-ld
$build_exeext
13276 elif test -x $LD_FOR_TARGET; then
13277 gcc_cv_ld
="$LD_FOR_TARGET"
13279 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13280 set dummy
$LD_FOR_TARGET; ac_word
=$2
13281 echo "$as_me:$LINENO: checking for $ac_word" >&5
13282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13283 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13292 for as_dir
in $PATH
13295 test -z "$as_dir" && as_dir
=.
13296 for ac_exec_ext
in '' $ac_executable_extensions; do
13297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13298 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13308 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13310 if test -n "$gcc_cv_ld"; then
13311 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13312 echo "${ECHO_T}$gcc_cv_ld" >&6
13314 echo "$as_me:$LINENO: result: no" >&5
13315 echo "${ECHO_T}no" >&6
13322 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
13325 echo "$as_me:$LINENO: checking what linker to use" >&5
13326 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13327 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
13328 # Single tree build which includes ld. We want to prefer it
13329 # over whatever linker top-level may have detected, since
13330 # we'll use what we're building after installation anyway.
13331 echo "$as_me:$LINENO: result: newly built ld" >&5
13332 echo "${ECHO_T}newly built ld" >&6
13334 in_tree_ld_is_elf
=no
13335 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13336 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13337 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13338 in_tree_ld_is_elf
=yes
13340 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
13342 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13343 if test x
$gcc_cv_gld_version != x
; then
13347 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13348 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13350 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13351 echo "${ECHO_T}$gcc_cv_ld" >&6
13355 # Figure out what nm we will be using.
13356 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13357 if test "${gcc_cv_nm+set}" = set; then
13361 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13362 && test -f ..
/binutils
/Makefile \
13363 && test x
$build = x
$host; then
13364 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
13365 elif test -x nm
$build_exeext; then
13366 gcc_cv_nm
=.
/nm
$build_exeext
13367 elif test -x $NM_FOR_TARGET; then
13368 gcc_cv_nm
="$NM_FOR_TARGET"
13370 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13371 set dummy
$NM_FOR_TARGET; ac_word
=$2
13372 echo "$as_me:$LINENO: checking for $ac_word" >&5
13373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13374 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13379 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13383 for as_dir
in $PATH
13386 test -z "$as_dir" && as_dir
=.
13387 for ac_exec_ext
in '' $ac_executable_extensions; do
13388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13389 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13399 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13401 if test -n "$gcc_cv_nm"; then
13402 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13403 echo "${ECHO_T}$gcc_cv_nm" >&6
13405 echo "$as_me:$LINENO: result: no" >&5
13406 echo "${ECHO_T}no" >&6
13413 echo "$as_me:$LINENO: checking what nm to use" >&5
13414 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13415 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
13416 # Single tree build which includes binutils.
13417 echo "$as_me:$LINENO: result: newly built nm" >&5
13418 echo "${ECHO_T}newly built nm" >&6
13421 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13422 echo "${ECHO_T}$gcc_cv_nm" >&6
13426 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
13429 # Figure out what objdump we will be using.
13430 if test "${gcc_cv_objdump+set}" = set; then
13434 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13435 && test -f ..
/binutils
/Makefile \
13436 && test x
$build = x
$host; then
13437 # Single tree build which includes binutils.
13438 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
13439 elif test -x objdump
$build_exeext; then
13440 gcc_cv_objdump
=.
/objdump
$build_exeext
13441 elif test -x $OBJDUMP_FOR_TARGET; then
13442 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
13444 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13445 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
13446 echo "$as_me:$LINENO: checking for $ac_word" >&5
13447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13448 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 case $gcc_cv_objdump in
13453 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13457 for as_dir
in $PATH
13460 test -z "$as_dir" && as_dir
=.
13461 for ac_exec_ext
in '' $ac_executable_extensions; do
13462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13463 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13473 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13475 if test -n "$gcc_cv_objdump"; then
13476 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13477 echo "${ECHO_T}$gcc_cv_objdump" >&6
13479 echo "$as_me:$LINENO: result: no" >&5
13480 echo "${ECHO_T}no" >&6
13487 echo "$as_me:$LINENO: checking what objdump to use" >&5
13488 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13489 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
13490 # Single tree build which includes binutils.
13491 echo "$as_me:$LINENO: result: newly built objdump" >&5
13492 echo "${ECHO_T}newly built objdump" >&6
13493 elif test x
$gcc_cv_objdump = x
; then
13494 echo "$as_me:$LINENO: result: not found" >&5
13495 echo "${ECHO_T}not found" >&6
13497 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13498 echo "${ECHO_T}$gcc_cv_objdump" >&6
13501 # Figure out what assembler alignment features are present.
13502 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13503 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13504 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13507 gcc_cv_as_balign_and_p2align
=no
13508 if test $in_tree_gas = yes; then
13509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13510 then gcc_cv_as_balign_and_p2align
=yes
13512 elif test x
$gcc_cv_as != x
; then
13514 .p2align 2' > conftest.s
13515 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; }
13522 gcc_cv_as_balign_and_p2align
=yes
13524 echo "configure: failed program was" >&5
13527 rm -f conftest.o conftest.s
13530 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13531 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13532 if test $gcc_cv_as_balign_and_p2align = yes; then
13534 cat >>confdefs.h
<<\_ACEOF
13535 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13540 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13541 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13542 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13545 gcc_cv_as_max_skip_p2align
=no
13546 if test $in_tree_gas = yes; then
13547 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13548 then gcc_cv_as_max_skip_p2align
=yes
13550 elif test x
$gcc_cv_as != x
; then
13551 echo '.p2align 4,,7' > conftest.s
13552 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }
13559 gcc_cv_as_max_skip_p2align
=yes
13561 echo "configure: failed program was" >&5
13564 rm -f conftest.o conftest.s
13567 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13568 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13569 if test $gcc_cv_as_max_skip_p2align = yes; then
13571 cat >>confdefs.h
<<\_ACEOF
13572 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13577 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13578 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13579 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 gcc_cv_as_subsection_m1
=no
13583 if test $in_tree_gas = yes; then
13584 if test $in_tree_gas_is_elf = yes \
13585 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13586 then gcc_cv_as_subsection_m1
=yes
13588 elif test x
$gcc_cv_as != x
; then
13589 echo 'conftest_label1: .word 0
13591 conftest_label2: .word 0
13592 .previous' > conftest.s
13593 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; }
13600 if test x
$gcc_cv_nm != x
; then
13601 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13602 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13603 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13605 else gcc_cv_as_subsection_m1
=yes
13607 rm -f conftest.nm1 conftest.nm2
13610 echo "configure: failed program was" >&5
13613 rm -f conftest.o conftest.s
13616 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13617 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13618 if test $gcc_cv_as_subsection_m1 = yes; then
13620 cat >>confdefs.h
<<\_ACEOF
13621 #define HAVE_GAS_SUBSECTION_ORDERING 1
13626 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13627 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13628 if test "${gcc_cv_as_weak+set}" = set; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13632 if test $in_tree_gas = yes; then
13633 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13634 then gcc_cv_as_weak
=yes
13636 elif test x
$gcc_cv_as != x
; then
13637 echo ' .weak foobar' > conftest.s
13638 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; }
13647 echo "configure: failed program was" >&5
13650 rm -f conftest.o conftest.s
13653 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13654 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13655 if test $gcc_cv_as_weak = yes; then
13657 cat >>confdefs.h
<<\_ACEOF
13658 #define HAVE_GAS_WEAK 1
13663 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13664 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13665 if test "${gcc_cv_as_weakref+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 gcc_cv_as_weakref
=no
13669 if test $in_tree_gas = yes; then
13670 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13671 then gcc_cv_as_weakref
=yes
13673 elif test x
$gcc_cv_as != x
; then
13674 echo ' .weakref foobar, barfnot' > conftest.s
13675 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }
13682 gcc_cv_as_weakref
=yes
13684 echo "configure: failed program was" >&5
13687 rm -f conftest.o conftest.s
13690 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13691 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13692 if test $gcc_cv_as_weakref = yes; then
13694 cat >>confdefs.h
<<\_ACEOF
13695 #define HAVE_GAS_WEAKREF 1
13700 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13701 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13702 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13705 gcc_cv_as_nsubspa_comdat
=no
13706 if test $in_tree_gas = yes; then
13707 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13708 then gcc_cv_as_nsubspa_comdat
=yes
13710 elif test x
$gcc_cv_as != x
; then
13711 echo ' .SPACE $TEXT$
13712 .NSUBSPA $CODE$,COMDAT' > conftest.s
13713 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }
13720 gcc_cv_as_nsubspa_comdat
=yes
13722 echo "configure: failed program was" >&5
13725 rm -f conftest.o conftest.s
13728 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13729 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13730 if test $gcc_cv_as_nsubspa_comdat = yes; then
13732 cat >>confdefs.h
<<\_ACEOF
13733 #define HAVE_GAS_NSUBSPA_COMDAT 1
13738 # .hidden needs to be supported in both the assembler and the linker,
13739 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13740 # This is irritatingly difficult to feature test for; we have to check the
13741 # date string after the version number. If we've got an in-tree
13742 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13744 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13745 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13746 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13747 if test "${gcc_cv_as_hidden+set}" = set; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13750 gcc_cv_as_hidden
=no
13751 if test $in_tree_gas = yes; then
13752 if test $in_tree_gas_is_elf = yes \
13753 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13754 then gcc_cv_as_hidden
=yes
13756 elif test x
$gcc_cv_as != x
; then
13757 echo ' .hidden foobar
13758 foobar:' > conftest.s
13759 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761 (eval $ac_try) 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; }
13766 gcc_cv_as_hidden
=yes
13768 echo "configure: failed program was" >&5
13771 rm -f conftest.o conftest.s
13774 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13775 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13778 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13779 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13780 if test "${gcc_cv_ld_hidden+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 if test $in_tree_ld = yes ; then
13784 gcc_cv_ld_hidden
=no
13785 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 \
13786 && test $in_tree_ld_is_elf = yes; then
13787 gcc_cv_ld_hidden
=yes
13790 gcc_cv_ld_hidden
=yes
13791 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13792 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13793 ld_vers
=`echo $ld_ver | sed -n \
13794 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13795 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13796 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13797 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13798 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13799 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13800 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13801 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'`
13802 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13803 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13804 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13805 if test 0"$ld_date" -lt 20020404; then
13806 if test -n "$ld_date"; then
13807 # If there was date string, but was earlier than 2002-04-04, fail
13808 gcc_cv_ld_hidden
=no
13809 elif test -z "$ld_vers"; then
13810 # If there was no date string nor ld version number, something is wrong
13811 gcc_cv_ld_hidden
=no
13813 test -z "$ld_vers_patch" && ld_vers_patch
=0
13814 if test "$ld_vers_major" -lt 2; then
13815 gcc_cv_ld_hidden
=no
13816 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13817 gcc_cv_ld_hidden
="no"
13818 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13819 gcc_cv_ld_hidden
=no
13824 case "${target}" in
13825 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13826 gcc_cv_ld_hidden
=yes
13829 gcc_cv_ld_hidden
=no
13835 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13836 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13837 libgcc_visibility
=no
13840 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13841 libgcc_visibility
=yes
13843 cat >>confdefs.h
<<\_ACEOF
13844 #define HAVE_GAS_HIDDEN 1
13849 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13850 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13851 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13852 if test "${gcc_cv_as_leb128+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13855 gcc_cv_as_leb128
=no
13856 if test $in_tree_gas = yes; then
13857 if test $in_tree_gas_is_elf = yes \
13858 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13859 then gcc_cv_as_leb128
=yes
13861 elif test x
$gcc_cv_as != x
; then
13868 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }
13875 # GAS versions before 2.11 do not support uleb128,
13876 # despite appearing to.
13877 # ??? There exists an elf-specific test that will crash
13878 # the assembler. Perhaps it's better to figure out whether
13879 # arbitrary sections are supported and try the test.
13880 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13881 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13882 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13883 as_major
=`echo $as_ver | sed 's/\..*//'`
13884 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13885 if test $as_major -eq 2 && test $as_minor -lt 11
13887 else gcc_cv_as_leb128
=yes
13891 echo "configure: failed program was" >&5
13894 rm -f conftest.o conftest.s
13897 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13898 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13899 if test $gcc_cv_as_leb128 = yes; then
13901 cat >>confdefs.h
<<\_ACEOF
13902 #define HAVE_AS_LEB128 1
13907 # GAS versions up to and including 2.11.0 may mis-optimize
13909 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13910 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13911 if test "${gcc_cv_as_eh_frame+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 gcc_cv_as_eh_frame
=no
13915 if test $in_tree_gas = yes; then
13916 if test $in_tree_gas_is_elf = yes \
13917 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13918 then gcc_cv_as_eh_frame
=yes
13920 elif test x
$gcc_cv_as != x
; then
13927 .section .eh_frame,"aw",@progbits
13929 .4byte .LECIE1-.LSCIE1
13943 .4byte .LEFDE1-.LASFDE1
13945 .4byte .LASFDE1-__FRAME_BEGIN__
13952 .LEFDE1:' > conftest.s
13953 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }
13960 cat > conftest.lit
<<EOF
13961 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13962 0010 01000000 12000000 18000000 00000000 ................
13963 0020 08000000 04080000 0044 .........D
13965 cat > conftest.big
<<EOF
13966 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13967 0010 00000001 00000012 00000018 00000000 ................
13968 0020 00000008 04000000 0844 .........D
13970 # If the assembler didn't choke, and we can objdump,
13971 # and we got the correct data, then succeed.
13972 # The text in the here-document typically retains its unix-style line
13973 # endings, while the output of objdump will use host line endings.
13974 # Therefore, use diff -b for the comparisons.
13975 if test x
$gcc_cv_objdump != x \
13976 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13977 |
tail -3 > conftest.got \
13978 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
13979 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
13981 gcc_cv_as_eh_frame
=yes
13982 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; }; then
13988 gcc_cv_as_eh_frame
=buggy
13990 # Uh oh, what do we do now?
13991 gcc_cv_as_eh_frame
=no
13994 echo "configure: failed program was" >&5
13997 rm -f conftest.o conftest.s
14000 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14001 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14004 if test $gcc_cv_as_eh_frame = buggy
; then
14006 cat >>confdefs.h
<<\_ACEOF
14007 #define USE_AS_TRADITIONAL_FORMAT 1
14012 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14013 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14014 if test "${gcc_cv_as_shf_merge+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 gcc_cv_as_shf_merge
=no
14018 if test $in_tree_gas = yes; then
14019 if test $in_tree_gas_is_elf = yes \
14020 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14021 then gcc_cv_as_shf_merge
=yes
14023 elif test x
$gcc_cv_as != x
; then
14024 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14025 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }
14032 gcc_cv_as_shf_merge
=yes
14034 echo "configure: failed program was" >&5
14037 rm -f conftest.o conftest.s
14040 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14041 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14043 if test $gcc_cv_as_shf_merge = no
; then
14044 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14045 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14046 if test "${gcc_cv_as_shf_merge+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 gcc_cv_as_shf_merge
=no
14050 if test $in_tree_gas = yes; then
14051 if test $in_tree_gas_is_elf = yes \
14052 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14053 then gcc_cv_as_shf_merge
=yes
14055 elif test x
$gcc_cv_as != x
; then
14056 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14057 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }
14064 gcc_cv_as_shf_merge
=yes
14066 echo "configure: failed program was" >&5
14069 rm -f conftest.o conftest.s
14072 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14073 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14077 cat >>confdefs.h
<<_ACEOF
14078 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14082 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14083 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14084 if test "${gcc_cv_as_comdat_group+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 gcc_cv_as_comdat_group
=no
14088 if test $in_tree_gas = yes; then
14089 if test $in_tree_gas_is_elf = yes \
14090 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14091 then gcc_cv_as_comdat_group
=yes
14093 elif test x
$gcc_cv_as != x
; then
14094 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14095 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14097 (eval $ac_try) 2>&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; }
14102 gcc_cv_as_comdat_group
=yes
14104 echo "configure: failed program was" >&5
14107 rm -f conftest.o conftest.s
14110 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14111 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14113 if test $gcc_cv_as_comdat_group = yes; then
14114 gcc_cv_as_comdat_group_percent
=no
14116 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14117 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14118 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14121 gcc_cv_as_comdat_group_percent
=no
14122 if test $in_tree_gas = yes; then
14123 if test $in_tree_gas_is_elf = yes \
14124 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14125 then gcc_cv_as_comdat_group_percent
=yes
14127 elif test x
$gcc_cv_as != x
; then
14128 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14129 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; }
14136 gcc_cv_as_comdat_group_percent
=yes
14138 echo "configure: failed program was" >&5
14141 rm -f conftest.o conftest.s
14144 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14145 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14148 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
14150 if test 0"$ld_date" -lt 20050308; then
14151 if test -n "$ld_date"; then
14152 # If there was date string, but was earlier than 2005-03-08, fail
14154 elif test "$ld_vers_major" -lt 2; then
14156 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14161 # assume linkers other than GNU ld don't support COMDAT group
14164 if test $comdat_group = no
; then
14165 gcc_cv_as_comdat_group
=no
14166 gcc_cv_as_comdat_group_percent
=no
14169 cat >>confdefs.h
<<_ACEOF
14170 #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`
14174 # Thread-local storage - the check is heavily parametrized.
14182 .section ".tdata","awT",@progbits
14185 ldq $27,__tls_get_addr($29) !literal!1
14186 lda $16,foo($29) !tlsgd!1
14187 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14188 ldq $27,__tls_get_addr($29) !literal!2
14189 lda $16,foo($29) !tlsldm!2
14190 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14191 ldq $1,foo($29) !gotdtprel
14192 ldah $2,foo($29) !dtprelhi
14193 lda $3,foo($2) !dtprello
14194 lda $4,foo($29) !dtprel
14195 ldq $1,foo($29) !gottprel
14196 ldah $2,foo($29) !tprelhi
14197 lda $3,foo($2) !tprello
14198 lda $4,foo($29) !tprel'
14201 tls_as_opt
=--fatal-warnings
14205 .section ".tdata","awT",@progbits
14208 call #gettlsoff(x)'
14217 .section ".tdata","awT",@progbits
14221 addil LT%foo-$tls_gdidx$,gp
14222 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14225 addil LT%foo-$tls_ldidx$,gp
14227 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14228 addil LR%foo-$tls_dtpoff$,%ret0
14229 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14231 addil LT%foo-$tls_ieoff$,gp
14232 ldw RT%foo-$tls_ieoff$(%r1),%t2
14235 addil LR%foo-$tls_leoff$,%t1
14236 ldo RR%foo-$tls_leoff$(%r1),%t2'
14239 tls_as_opt
=--fatal-warnings
14243 .section ".tdata","awT",%progbits
14246 .word foo(gottpoff)
14256 .section ".tdata","awT",@progbits
14260 leal foo@TLSGD(,%ebx,1), %eax
14261 leal foo@TLSLDM(%ebx), %eax
14262 leal foo@DTPOFF(%eax), %edx
14263 movl foo@GOTTPOFF(%ebx), %eax
14264 subl foo@GOTTPOFF(%ebx), %eax
14265 addl foo@GOTNTPOFF(%ebx), %eax
14266 movl foo@INDNTPOFF, %eax
14267 movl $foo@TPOFF, %eax
14268 subl $foo@TPOFF, %eax
14269 leal foo@NTPOFF(%ecx), %eax'
14272 tls_as_opt
=--fatal-warnings
14276 .section ".tdata","awT",@progbits
14280 leaq foo@TLSGD(%rip), %rdi
14281 leaq foo@TLSLD(%rip), %rdi
14282 leaq foo@DTPOFF(%rax), %rdx
14283 movq foo@GOTTPOFF(%rip), %rax
14284 movq $foo@TPOFF, %rax'
14287 tls_as_opt
=--fatal-warnings
14291 .section ".tdata","awT",@progbits
14294 addl r16 = @ltoff(@dtpmod(foo#)), gp
14295 addl r17 = @ltoff(@dtprel(foo#)), gp
14296 addl r18 = @ltoff(@tprel(foo#)), gp
14297 addl r19 = @dtprel(foo#), gp
14298 adds r21 = @dtprel(foo#), r13
14299 movl r23 = @dtprel(foo#)
14300 addl r20 = @tprel(foo#), gp
14301 adds r22 = @tprel(foo#), r13
14302 movl r24 = @tprel(foo#)'
14305 tls_as_opt
=--fatal-warnings
14309 .section .tdata,"awT",@progbits
14313 addiu $4, $28, %tlsgd(x)
14314 addiu $4, $28, %tlsldm(x)
14315 lui $4, %dtprel_hi(x)
14316 addiu $4, $4, %dtprel_lo(x)
14317 lw $4, %gottprel(x)($28)
14318 lui $4, %tprel_hi(x)
14319 addiu $4, $4, %tprel_lo(x)'
14322 tls_as_opt
='-32 --fatal-warnings'
14326 .section ".tdata","awT",@progbits
14334 addi 3,31,ld0@got@tlsgd
14336 addi 3,31,x1@got@tlsld
14339 addis 9,3,x2@dtprel@ha
14340 addi 9,9,x2@dtprel@l
14341 lwz 9,x3@got@tprel(31)
14344 addis 9,2,x2@tprel@ha
14345 addi 9,9,x2@tprel@l'
14348 tls_as_opt
="-a32 --fatal-warnings"
14352 .section ".tdata","awT",@progbits
14360 addi 3,2,ld0@got@tlsgd
14366 addi 3,2,x1@got@tlsld
14372 addis 9,3,x2@dtprel@ha
14373 addi 9,9,x2@dtprel@l
14376 ld 9,x3@got@dtprel(2)
14382 tls_as_opt
="-a64 --fatal-warnings"
14386 .section ".tdata","awT",@progbits
14393 .long foo@GOTNTPOFF
14394 .long foo@INDNTPOFF
14395 l %r1,foo@GOTNTPOFF(%r12)
14396 l %r1,0(%r1):tls_load:foo
14397 bas %r14,0(%r1,%r13):tls_gdcall:foo
14398 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14401 tls_as_opt
="-m31 --fatal-warnings"
14405 .section ".tdata","awT",@progbits
14412 .quad foo@GOTNTPOFF
14413 lg %r1,foo@GOTNTPOFF(%r12)
14414 larl %r1,foo@INDNTPOFF
14415 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14416 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14419 tls_as_opt
="-m64 -Aesame --fatal-warnings"
14421 sh-
*-* | sh
[34]-*-*)
14423 .section ".tdata","awT",@progbits
14433 tls_as_opt
=--fatal-warnings
14437 sparc
*-sun-solaris2.
[56789]*)
14438 # TLS was introduced in the Solaris 9 4/04 release but
14439 # we do not enable it by default on Solaris 9 either.
14440 if test "x$enable_tls" = xyes
; then
14446 sparc
*-sun-solaris2.
*)
14453 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
14455 .section ".tdata",#alloc,#write,#tls
14458 sethi %tgd_hi22(foo), %o0
14459 add %o0, %tgd_lo10(foo), %o1
14460 add %l7, %o1, %o0, %tgd_add(foo)
14461 call __tls_get_addr, %tgd_call(foo)
14462 sethi %tldm_hi22(foo), %l1
14463 add %l1, %tldm_lo10(foo), %l2
14464 add %l7, %l2, %o0, %tldm_add(foo)
14465 call __tls_get_addr, %tldm_call(foo)
14466 sethi %tldo_hix22(foo), %l3
14467 xor %l3, %tldo_lox10(foo), %l4
14468 add %o0, %l4, %l5, %tldo_add(foo)
14469 sethi %tie_hi22(foo), %o3
14470 add %o3, %tie_lo10(foo), %o3
14471 ld [%l7 + %o3], %o2, %tie_ld(foo)
14472 add %g7, %o2, %o4, %tie_add(foo)
14473 sethi %tle_hix22(foo), %l1
14474 xor %l1, %tle_lox10(foo), %o5
14475 ld [%g7 + %o5], %o1'
14480 .section ".tdata","awT",@progbits
14483 sethi %tgd_hi22(foo), %o0
14484 add %o0, %tgd_lo10(foo), %o1
14485 add %l7, %o1, %o0, %tgd_add(foo)
14486 call __tls_get_addr, %tgd_call(foo)
14487 sethi %tldm_hi22(foo), %l1
14488 add %l1, %tldm_lo10(foo), %l2
14489 add %l7, %l2, %o0, %tldm_add(foo)
14490 call __tls_get_addr, %tldm_call(foo)
14491 sethi %tldo_hix22(foo), %l3
14492 xor %l3, %tldo_lox10(foo), %l4
14493 add %o0, %l4, %l5, %tldo_add(foo)
14494 sethi %tie_hi22(foo), %o3
14495 add %o3, %tie_lo10(foo), %o3
14496 ld [%l7 + %o3], %o2, %tie_ld(foo)
14497 add %g7, %o2, %o4, %tie_add(foo)
14498 sethi %tle_hix22(foo), %l1
14499 xor %l1, %tle_lox10(foo), %o5
14500 ld [%g7 + %o5], %o1'
14503 tls_as_opt
="-32 --fatal-warnings"
14508 if test "x$enable_tls" = xno
; then
14509 : # TLS explicitly disabled.
14510 elif test "x$enable_tls" = xyes
; then
14511 set_have_as_tls
=yes # TLS explicitly enabled.
14512 elif test -z "$tls_first_major"; then
14513 : # If we don't have a check, assume no support.
14515 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14516 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14517 if test "${gcc_cv_as_tls+set}" = set; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14521 if test $in_tree_gas = yes; then
14522 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14523 then gcc_cv_as_tls
=yes
14525 elif test x
$gcc_cv_as != x
; then
14526 echo "$conftest_s" > conftest.s
14527 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; }
14536 echo "configure: failed program was" >&5
14539 rm -f conftest.o conftest.s
14542 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14543 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14544 if test $gcc_cv_as_tls = yes; then
14545 set_have_as_tls
=yes
14548 if test $set_have_as_tls = yes ; then
14550 cat >>confdefs.h
<<\_ACEOF
14551 #define HAVE_AS_TLS 1
14556 # Target-specific assembler checks.
14558 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14559 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14560 gcc_cv_ld_static_dynamic
=no
14561 if test $in_tree_ld = yes ; then
14562 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14563 gcc_cv_ld_static_dynamic
=yes
14565 elif test x
$gcc_cv_ld != x
; then
14566 # Check if linker supports -Bstatic/-Bdynamic option
14567 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14568 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14569 gcc_cv_ld_static_dynamic
=yes
14572 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14574 cat >>confdefs.h
<<\_ACEOF
14575 #define HAVE_LD_STATIC_DYNAMIC 1
14579 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14580 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14582 if test x
"$demangler_in_ld" = xyes
; then
14583 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14584 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14585 gcc_cv_ld_demangle
=no
14586 if test $in_tree_ld = yes; then
14587 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 \
14588 gcc_cv_ld_demangle
=yes
14590 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14591 # Check if the GNU linker supports --demangle option
14592 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14593 gcc_cv_ld_demangle
=yes
14596 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14598 cat >>confdefs.h
<<\_ACEOF
14599 #define HAVE_LD_DEMANGLE 1
14603 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14604 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14608 # All TARGET_ABI_OSF targets.
14609 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14610 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14611 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14612 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 gcc_cv_as_alpha_explicit_relocs
=no
14616 if test $in_tree_gas = yes; then
14617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14618 then gcc_cv_as_alpha_explicit_relocs
=yes
14620 elif test x
$gcc_cv_as != x
; then
14621 echo ' .set nomacro
14623 extbl $3, $2, $3 !lituse_bytoff!1
14624 ldq $2, a($29) !literal!1
14625 ldq $4, b($29) !literal!2
14626 ldq_u $3, 0($2) !lituse_base!1
14627 ldq $27, f($29) !literal!5
14628 jsr $26, ($27), f !lituse_jsr!5
14629 ldah $29, 0($26) !gpdisp!3
14630 lda $0, c($29) !gprel
14631 ldah $1, d($29) !gprelhigh
14632 lda $1, d($1) !gprellow
14633 lda $29, 0($29) !gpdisp!3' > conftest.s
14634 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }
14641 gcc_cv_as_alpha_explicit_relocs
=yes
14643 echo "configure: failed program was" >&5
14646 rm -f conftest.o conftest.s
14649 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14650 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14651 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14653 cat >>confdefs.h
<<\_ACEOF
14654 #define HAVE_AS_EXPLICIT_RELOCS 1
14658 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14659 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14660 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 gcc_cv_as_alpha_jsrdirect_relocs
=no
14664 if test $in_tree_gas = yes; then
14665 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14666 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14668 elif test x
$gcc_cv_as != x
; then
14669 echo ' .set nomacro
14671 ldq $27, a($29) !literal!1
14672 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14673 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }
14680 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14682 echo "configure: failed program was" >&5
14685 rm -f conftest.o conftest.s
14688 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14689 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14690 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14692 cat >>confdefs.h
<<\_ACEOF
14693 #define HAVE_AS_JSRDIRECT_RELOCS 1
14700 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14701 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14702 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 gcc_cv_as_cris_no_mul_bug
=no
14706 if test $in_tree_gas = yes; then
14707 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14708 then gcc_cv_as_cris_no_mul_bug
=yes
14710 elif test x
$gcc_cv_as != x
; then
14711 echo '.text' > conftest.s
14712 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }
14719 gcc_cv_as_cris_no_mul_bug
=yes
14721 echo "configure: failed program was" >&5
14724 rm -f conftest.o conftest.s
14727 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14728 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14729 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14731 cat >>confdefs.h
<<\_ACEOF
14732 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14739 echo "$as_me:$LINENO: checking assembler for .register" >&5
14740 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14741 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 gcc_cv_as_sparc_register_op
=no
14745 if test x
$gcc_cv_as != x
; then
14746 echo '.register %g2, #scratch' > conftest.s
14747 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; }
14754 gcc_cv_as_sparc_register_op
=yes
14756 echo "configure: failed program was" >&5
14759 rm -f conftest.o conftest.s
14762 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14763 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14764 if test $gcc_cv_as_sparc_register_op = yes; then
14766 cat >>confdefs.h
<<\_ACEOF
14767 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14772 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14773 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14774 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14775 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 gcc_cv_as_sparc_relax
=no
14778 if test x
$gcc_cv_as != x
; then
14779 echo '.text' > conftest.s
14780 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }
14787 gcc_cv_as_sparc_relax
=yes
14789 echo "configure: failed program was" >&5
14792 rm -f conftest.o conftest.s
14795 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14796 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14797 if test $gcc_cv_as_sparc_relax = yes; then
14799 cat >>confdefs.h
<<\_ACEOF
14800 #define HAVE_AS_RELAX_OPTION 1
14805 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14806 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14807 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14808 echo $ECHO_N "(cached) $ECHO_C" >&6
14810 gcc_cv_as_sparc_ua_pcrel
=no
14811 if test x
$gcc_cv_as != x
; then
14818 .uaword %r_disp32(foo)' > conftest.s
14819 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }
14826 if test x
$gcc_cv_ld != x \
14827 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14828 gcc_cv_as_sparc_ua_pcrel
=yes
14832 echo "configure: failed program was" >&5
14835 rm -f conftest.o conftest.s
14838 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14839 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14840 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14842 cat >>confdefs.h
<<\_ACEOF
14843 #define HAVE_AS_SPARC_UA_PCREL 1
14847 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14848 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14849 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14853 if test x
$gcc_cv_as != x
; then
14857 .uaword %r_disp32(foo)
14858 .byte 0x32, 0x33, 0x34
14862 .skip 4' > conftest.s
14863 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14865 (eval $ac_try) 2>&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; }
14870 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14871 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14872 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14873 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14874 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14875 |
grep 'DISP32' > /dev
/null
2>&1; then
14878 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14883 echo "configure: failed program was" >&5
14886 rm -f conftest.o conftest.s
14889 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14890 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14891 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14893 cat >>confdefs.h
<<\_ACEOF
14894 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14899 fi # unaligned pcrel relocs
14901 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14902 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14903 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14904 echo $ECHO_N "(cached) $ECHO_C" >&6
14906 gcc_cv_as_sparc_offsetable_lo10
=no
14907 if test x
$gcc_cv_as != x
; then
14909 or %g1, %lo(ab) + 12, %g1
14910 or %g1, %lo(ab + 12), %g1' > conftest.s
14911 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }
14918 if test x
$gcc_cv_objdump != x \
14919 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14920 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14921 gcc_cv_as_sparc_offsetable_lo10
=yes
14924 echo "configure: failed program was" >&5
14927 rm -f conftest.o conftest.s
14930 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14931 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14932 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14934 cat >>confdefs.h
<<\_ACEOF
14935 #define HAVE_AS_OFFSETABLE_LO10 1
14941 i
[34567]86-*-* | x86_64-
*-*)
14943 cygwin
* | pe | mingw32
*)
14944 # Used for DWARF 2 in PE
14945 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14946 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14947 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14950 gcc_cv_as_ix86_pe_secrel32
=no
14951 if test $in_tree_gas = yes; then
14952 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14953 then gcc_cv_as_ix86_pe_secrel32
=yes
14955 elif test x
$gcc_cv_as != x
; then
14959 .secrel32 foo' > conftest.s
14960 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; }
14967 if test x
$gcc_cv_ld != x \
14968 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14969 gcc_cv_as_ix86_pe_secrel32
=yes
14973 echo "configure: failed program was" >&5
14976 rm -f conftest.o conftest.s
14979 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14980 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14981 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14983 cat >>confdefs.h
<<\_ACEOF
14984 #define HAVE_GAS_PE_SECREL32_RELOC 1
14991 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14992 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14993 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 gcc_cv_as_ix86_filds_fists
=no
14997 if test $in_tree_gas = yes; then
14998 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14999 then gcc_cv_as_ix86_filds_fists
=yes
15001 elif test x
$gcc_cv_as != x
; then
15002 echo 'filds mem; fists mem' > conftest.s
15003 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; }
15010 gcc_cv_as_ix86_filds_fists
=yes
15012 echo "configure: failed program was" >&5
15015 rm -f conftest.o conftest.s
15018 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15019 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15020 if test $gcc_cv_as_ix86_filds_fists = yes; then
15022 cat >>confdefs.h
<<\_ACEOF
15023 #define HAVE_GAS_FILDS_FISTS 1
15028 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15029 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15030 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 gcc_cv_as_ix86_cmov_sun_syntax
=no
15034 if test x
$gcc_cv_as != x
; then
15035 echo 'cmovl.l %edx, %eax' > conftest.s
15036 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }
15043 gcc_cv_as_ix86_cmov_sun_syntax
=yes
15045 echo "configure: failed program was" >&5
15048 rm -f conftest.o conftest.s
15051 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15052 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15053 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15055 cat >>confdefs.h
<<\_ACEOF
15056 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15061 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15062 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15063 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15066 gcc_cv_as_ix86_ffreep
=no
15067 if test x
$gcc_cv_as != x
; then
15068 echo 'ffreep %st(1)' > conftest.s
15069 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; }
15076 gcc_cv_as_ix86_ffreep
=yes
15078 echo "configure: failed program was" >&5
15081 rm -f conftest.o conftest.s
15084 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15085 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15086 if test $gcc_cv_as_ix86_ffreep = yes; then
15088 cat >>confdefs.h
<<\_ACEOF
15089 #define HAVE_AS_IX86_FFREEP 1
15094 # This one is used unconditionally by i386.[ch]; it is to be defined
15095 # to 1 if the feature is present, 0 otherwise.
15096 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15097 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15098 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 gcc_cv_as_ix86_gotoff_in_data
=no
15102 if test $in_tree_gas = yes; then
15103 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15104 then gcc_cv_as_ix86_gotoff_in_data
=yes
15106 elif test x
$gcc_cv_as != x
; then
15111 .long .L0@GOTOFF' > conftest.s
15112 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114 (eval $ac_try) 2>&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; }
15119 gcc_cv_as_ix86_gotoff_in_data
=yes
15121 echo "configure: failed program was" >&5
15124 rm -f conftest.o conftest.s
15127 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15128 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15131 cat >>confdefs.h
<<_ACEOF
15132 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15138 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15139 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15140 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15143 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
15144 if test $in_tree_gas = yes; then
15145 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15146 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15148 elif test x
$gcc_cv_as != x
; then
15150 addl r15 = @ltoffx(x#), gp
15152 ld8.mov r16 = [r15], x#' > conftest.s
15153 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }
15160 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15162 echo "configure: failed program was" >&5
15165 rm -f conftest.o conftest.s
15168 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15169 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15170 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15172 cat >>confdefs.h
<<\_ACEOF
15173 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15182 *-*-aix*) conftest_s
=' .machine "pwr5"
15186 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15187 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15188 if test "${gcc_cv_as_machine_directive+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15191 gcc_cv_as_machine_directive
=no
15192 if test x
$gcc_cv_as != x
; then
15193 echo ' .machine ppc7400' > conftest.s
15194 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196 (eval $ac_try) 2>&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; }
15201 gcc_cv_as_machine_directive
=yes
15203 echo "configure: failed program was" >&5
15206 rm -f conftest.o conftest.s
15209 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15210 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15212 if test x
$gcc_cv_as_machine_directive != xyes
; then
15213 echo "*** This target requires an assembler supporting \".machine\"" >&2
15214 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
15215 test x
$build = x
$target && exit 1
15219 *) conftest_s
=' .machine power4
15224 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15225 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15226 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15229 gcc_cv_as_powerpc_mfcrf
=no
15230 if test $in_tree_gas = yes; then
15231 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15232 then gcc_cv_as_powerpc_mfcrf
=yes
15234 elif test x
$gcc_cv_as != x
; then
15235 echo "$conftest_s" > conftest.s
15236 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }
15243 gcc_cv_as_powerpc_mfcrf
=yes
15245 echo "configure: failed program was" >&5
15248 rm -f conftest.o conftest.s
15251 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15252 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15253 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15255 cat >>confdefs.h
<<\_ACEOF
15256 #define HAVE_AS_MFCRF 1
15262 *-*-aix*) conftest_s
=' .machine "pwr5"
15265 *) conftest_s
=' .machine power5
15270 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15271 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15272 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15273 echo $ECHO_N "(cached) $ECHO_C" >&6
15275 gcc_cv_as_powerpc_popcntb
=no
15276 if test $in_tree_gas = yes; then
15277 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15278 then gcc_cv_as_powerpc_popcntb
=yes
15280 elif test x
$gcc_cv_as != x
; then
15281 echo "$conftest_s" > conftest.s
15282 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }
15289 gcc_cv_as_powerpc_popcntb
=yes
15291 echo "configure: failed program was" >&5
15294 rm -f conftest.o conftest.s
15297 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15298 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15299 if test $gcc_cv_as_powerpc_popcntb = yes; then
15301 cat >>confdefs.h
<<\_ACEOF
15302 #define HAVE_AS_POPCNTB 1
15308 *-*-aix*) conftest_s
=' .machine "pwr5x"
15311 *) conftest_s
=' .machine power5
15316 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15317 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15318 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15319 echo $ECHO_N "(cached) $ECHO_C" >&6
15321 gcc_cv_as_powerpc_fprnd
=no
15322 if test $in_tree_gas = yes; then
15323 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15324 then gcc_cv_as_powerpc_fprnd
=yes
15326 elif test x
$gcc_cv_as != x
; then
15327 echo "$conftest_s" > conftest.s
15328 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }
15335 gcc_cv_as_powerpc_fprnd
=yes
15337 echo "configure: failed program was" >&5
15340 rm -f conftest.o conftest.s
15343 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15344 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15345 if test $gcc_cv_as_powerpc_fprnd = yes; then
15347 cat >>confdefs.h
<<\_ACEOF
15348 #define HAVE_AS_FPRND 1
15354 *-*-aix*) conftest_s
=' .csect .text[PR]
15356 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15360 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15361 *) conftest_s
=' .text
15363 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15366 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15367 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15368 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 gcc_cv_as_powerpc_rel16
=no
15372 if test $in_tree_gas = yes; then
15373 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15374 then gcc_cv_as_powerpc_rel16
=yes
15376 elif test x
$gcc_cv_as != x
; then
15377 echo "$conftest_s" > conftest.s
15378 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }
15385 gcc_cv_as_powerpc_rel16
=yes
15387 echo "configure: failed program was" >&5
15390 rm -f conftest.o conftest.s
15393 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15394 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15395 if test $gcc_cv_as_powerpc_rel16 = yes; then
15397 cat >>confdefs.h
<<\_ACEOF
15398 #define HAVE_AS_REL16 1
15405 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15406 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15407 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15410 gcc_cv_as_mips_explicit_relocs
=no
15411 if test $in_tree_gas = yes; then
15412 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15413 then gcc_cv_as_mips_explicit_relocs
=yes
15415 elif test x
$gcc_cv_as != x
; then
15416 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15417 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; }
15424 gcc_cv_as_mips_explicit_relocs
=yes
15426 echo "configure: failed program was" >&5
15429 rm -f conftest.o conftest.s
15432 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15433 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15434 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15435 if test x
$target_cpu_default = x
15436 then target_cpu_default
=MASK_EXPLICIT_RELOCS
15437 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15443 # Mips and HP-UX need the GNU assembler.
15444 # Linux on IA64 might be able to use the Intel assembler.
15447 mips
*-*-* |
*-*-hpux* )
15448 if test x
$gas_flag = xyes \
15449 ||
test x
"$host" != x
"$build" \
15450 ||
test ! -x "$gcc_cv_as" \
15451 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
15454 echo "*** This configuration requires the GNU assembler" >&2
15460 # ??? Not all targets support dwarf2 debug_line, even within a version
15461 # of gas. Moreover, we need to emit a valid instruction to trigger any
15462 # info to the output file. So, as supported targets are added to gas 2.11,
15463 # add some instruction here to (also) show we expect this might work.
15464 # ??? Once 2.11 is released, probably need to add first known working
15465 # version to the per-target configury.
15467 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
15468 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
15469 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-*)
15472 ia64
*-*-* | s390
*-*-*)
15479 if test x
"$insn" != x
; then
15481 .file 1 \"conftest.s\"
15484 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15485 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15486 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15489 gcc_cv_as_dwarf2_debug_line
=no
15490 if test $in_tree_gas = yes; then
15491 if test $in_tree_gas_is_elf = yes \
15492 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15493 then gcc_cv_as_dwarf2_debug_line
=yes
15495 elif test x
$gcc_cv_as != x
; then
15496 echo "$conftest_s" > conftest.s
15497 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }
15504 if test x
$gcc_cv_objdump != x \
15505 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
15506 |
grep debug_line
> /dev
/null
2>&1; then
15507 gcc_cv_as_dwarf2_debug_line
=yes
15510 echo "configure: failed program was" >&5
15513 rm -f conftest.o conftest.s
15516 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15517 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15520 # The .debug_line file table must be in the exact order that
15521 # we specified the files, since these indices are also used
15522 # by DW_AT_decl_file. Approximate this test by testing if
15523 # the assembler bitches if the same index is assigned twice.
15524 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15525 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15526 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 gcc_cv_as_dwarf2_file_buggy
=no
15530 if test x
$gcc_cv_as != x
; then
15531 echo ' .file 1 "foo.s"
15532 .file 1 "bar.s"' > conftest.s
15533 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535 (eval $ac_try) 2>&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; }
15540 gcc_cv_as_dwarf2_file_buggy
=yes
15542 echo "configure: failed program was" >&5
15545 rm -f conftest.o conftest.s
15548 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15549 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15552 if test $gcc_cv_as_dwarf2_debug_line = yes \
15553 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
15555 cat >>confdefs.h
<<\_ACEOF
15556 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15561 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15562 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15563 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15564 echo $ECHO_N "(cached) $ECHO_C" >&6
15566 gcc_cv_as_gdwarf2_flag
=no
15567 if test $in_tree_gas = yes; then
15568 if test $in_tree_gas_is_elf = yes \
15569 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15570 then gcc_cv_as_gdwarf2_flag
=yes
15572 elif test x
$gcc_cv_as != x
; then
15573 echo "$insn" > conftest.s
15574 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576 (eval $ac_try) 2>&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; }
15581 gcc_cv_as_gdwarf2_flag
=yes
15583 echo "configure: failed program was" >&5
15586 rm -f conftest.o conftest.s
15589 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15590 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15591 if test $gcc_cv_as_gdwarf2_flag = yes; then
15593 cat >>confdefs.h
<<\_ACEOF
15594 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15599 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15600 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15601 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15602 echo $ECHO_N "(cached) $ECHO_C" >&6
15604 gcc_cv_as_gstabs_flag
=no
15605 if test $in_tree_gas = yes; then
15606 if test $in_tree_gas_is_elf = yes \
15607 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15608 then gcc_cv_as_gstabs_flag
=yes
15610 elif test x
$gcc_cv_as != x
; then
15611 echo "$insn" > conftest.s
15612 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }
15619 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15620 # and warns about it, but still exits successfully. So check for
15622 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }
15629 else gcc_cv_as_gstabs_flag
=yes
15632 echo "configure: failed program was" >&5
15635 rm -f conftest.o conftest.s
15638 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15639 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15640 if test $gcc_cv_as_gstabs_flag = yes; then
15642 cat >>confdefs.h
<<\_ACEOF
15643 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15649 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15650 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15651 gcc_cv_ld_ro_rw_mix
=unknown
15652 if test $in_tree_ld = yes ; then
15653 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 \
15654 && test $in_tree_ld_is_elf = yes; then
15655 gcc_cv_ld_ro_rw_mix
=read-write
15657 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
15658 echo '.section myfoosect, "a"' > conftest1.s
15659 echo '.section myfoosect, "aw"' > conftest2.s
15660 echo '.byte 1' >> conftest2.s
15661 echo '.section myfoosect, "a"' > conftest3.s
15662 echo '.byte 0' >> conftest3.s
15663 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15664 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15665 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
15666 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15667 conftest2.o conftest3.o
> /dev
/null
2>&1; then
15668 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
15669 | sed -e '/myfoosect/!d' -e N`
15670 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
15671 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
15672 gcc_cv_ld_ro_rw_mix
=read-only
15674 gcc_cv_ld_ro_rw_mix
=read-write
15678 rm -f conftest.
* conftest
[123].
*
15680 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
15682 cat >>confdefs.h
<<\_ACEOF
15683 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15687 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15688 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15690 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15691 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15692 gcc_cv_ld_eh_frame_hdr
=no
15693 if test $in_tree_ld = yes ; then
15694 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 \
15695 && test $in_tree_ld_is_elf = yes; then
15696 gcc_cv_ld_eh_frame_hdr
=yes
15698 elif test x
$gcc_cv_ld != x
; then
15699 # Check if linker supports --eh-frame-hdr option
15700 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
15701 gcc_cv_ld_eh_frame_hdr
=yes
15705 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
15707 cat >>confdefs.h
<<\_ACEOF
15708 #define HAVE_LD_EH_FRAME_HDR 1
15712 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15713 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15715 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15716 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15718 if test $in_tree_ld = yes ; then
15719 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 \
15720 && test $in_tree_ld_is_elf = yes; then
15723 elif test x
$gcc_cv_ld != x
; then
15724 # Check if linker supports -pie option
15725 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
15729 if test x
"$gcc_cv_ld_pie" = xyes
; then
15731 cat >>confdefs.h
<<\_ACEOF
15732 #define HAVE_LD_PIE 1
15736 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15737 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15743 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15744 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15745 if test "${gcc_cv_ld_as_needed+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 gcc_cv_ld_as_needed
=no
15749 if test $in_tree_ld = yes ; then
15750 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 \
15751 && test $in_tree_ld_is_elf = yes; then
15752 gcc_cv_ld_as_needed
=yes
15754 elif test x
$gcc_cv_ld != x
; then
15755 # Check if linker supports --as-needed and --no-as-needed options
15756 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
15757 gcc_cv_ld_as_needed
=yes
15762 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15763 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15764 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
15766 cat >>confdefs.h
<<\_ACEOF
15767 #define HAVE_LD_AS_NEEDED 1
15772 case "$target:$tm_file" in
15773 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
15774 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15775 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15776 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15779 gcc_cv_ld_no_dot_syms
=no
15780 if test $in_tree_ld = yes ; then
15781 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
15782 gcc_cv_ld_no_dot_syms
=yes
15784 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
15785 cat > conftest1.s
<<EOF
15789 cat > conftest2.s
<<EOF
15790 .section ".opd","aw"
15793 .type foo,@function
15795 .quad .LEfoo,.TOC.@tocbase,0
15801 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15802 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15803 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
15804 gcc_cv_ld_no_dot_syms
=yes
15806 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15810 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15811 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15812 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15814 cat >>confdefs.h
<<\_ACEOF
15815 #define HAVE_LD_NO_DOT_SYMS 1
15822 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15823 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15824 if test "${gcc_cv_ld_sysroot+set}" = set; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 gcc_cv_ld_sysroot
=no
15828 if test $in_tree_ld = yes ; then
15829 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
15830 gcc_cv_ld_sysroot
=yes
15832 elif test x
$gcc_cv_ld != x
; then
15833 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
15834 gcc_cv_ld_sysroot
=yes
15838 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15839 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15840 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
15842 cat >>confdefs.h
<<\_ACEOF
15843 #define HAVE_LD_SYSROOT 1
15848 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15849 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15851 cat >>confdefs.h
<<_ACEOF
15852 #define PREFIX_INCLUDE_DIR "$prefix/include"
15857 # Test for stack protector support in target C library.
15860 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15861 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15862 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15865 gcc_cv_libc_provides_ssp
=no
15866 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
15867 if test "x$with_sysroot" = x
; then
15868 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
15869 elif test "x$with_sysroot" = xyes
; then
15870 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15872 glibc_header_dir
="${with_sysroot}/usr/include"
15875 glibc_header_dir
=/usr
/include
15877 # glibc 2.4 and later provides __stack_chk_fail and
15878 # either __stack_chk_guard, or TLS access to stack guard canary.
15879 if test -f $glibc_header_dir/features.h \
15880 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
15881 $glibc_header_dir/features.h
> /dev
/null
; then
15882 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
15883 $glibc_header_dir/features.h
> /dev
/null
; then
15884 gcc_cv_libc_provides_ssp
=yes
15885 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
15886 $glibc_header_dir/features.h
> /dev
/null \
15887 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
15888 $glibc_header_dir/features.h
> /dev
/null
; then
15889 gcc_cv_libc_provides_ssp
=yes
15893 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15894 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15895 *) gcc_cv_libc_provides_ssp
=no
;;
15897 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
15899 cat >>confdefs.h
<<\_ACEOF
15900 #define TARGET_LIBC_PROVIDES_SSP 1
15905 # Check if TFmode long double should be used by default or not.
15906 # Some glibc targets used DFmode long double, but with glibc 2.4
15907 # and later they can use TFmode.
15909 powerpc
*-*-*gnu
* | \
15910 sparc
*-*-linux* | \
15914 # Check whether --with-long-double-128 or --without-long-double-128 was given.
15915 if test "${with_long_double_128+set}" = set; then
15916 withval
="$with_long_double_128"
15917 gcc_cv_target_ldbl128
="$with_long_double_128"
15919 gcc_cv_target_ldbl128
=no
15920 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
15921 if test "x$with_sysroot" = x
; then
15922 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
15923 elif test "x$with_sysroot" = xyes
; then
15924 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15926 glibc_header_dir
="${with_sysroot}/usr/include"
15929 glibc_header_dir
=/usr
/include
15931 grep '^ *#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
15932 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
15933 && gcc_cv_target_ldbl128
=yes
15937 if test x
$gcc_cv_target_ldbl128 = xyes
; then
15939 cat >>confdefs.h
<<\_ACEOF
15940 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
15945 # Find out what GC implementation we want, or may, use.
15947 # Check whether --with-gc or --without-gc was given.
15948 if test "${with_gc+set}" = set; then
15957 cat >>confdefs.h
<<\_ACEOF
15963 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15964 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15965 { (exit 1); exit 1; }; }
15972 echo "Using $GGC for garbage collection."
15974 # Use the system's zlib library.
15976 zlibinc
="-I\$(srcdir)/../zlib"
15978 # Check whether --with-system-zlib or --without-system-zlib was given.
15979 if test "${with_system_zlib+set}" = set; then
15980 withval
="$with_system_zlib"
15989 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15990 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15991 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15992 if test "${enable_maintainer_mode+set}" = set; then
15993 enableval
="$enable_maintainer_mode"
15994 maintainer_mode
=$enableval
15999 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16000 echo "${ECHO_T}$maintainer_mode" >&6
16002 if test "$maintainer_mode" = "yes"; then
16012 # Make empty files to contain the specs and options for each language.
16013 # Then add #include lines to for a compiler that has specs and/or options.
16019 # These (without "all_") are set in each config-lang.in.
16020 # `language' must be a single word so is spelled singularly.
16022 all_boot_languages
=
16025 all_outputs
='Makefile gccbug mklibgcc libada-mk'
16026 # List of language makefile fragments.
16027 all_lang_makefrags
=
16028 # List of language subdirectory makefiles. Deprecated.
16029 all_lang_makefiles
=
16030 # Files for gengtype
16031 all_gtfiles
="$target_gtfiles"
16032 # Files for gengtype with language
16033 all_gtfiles_files_langs
=
16034 all_gtfiles_files_files
=
16036 # These are the languages that are set in --enable-languages,
16037 # and are available in the GCC tree.
16038 all_selected_languages
=
16040 # Add the language fragments.
16041 # Languages are added via two mechanisms. Some information must be
16042 # recorded in makefile variables, these are defined in config-lang.in.
16043 # We accumulate them and plug them into the main Makefile.
16044 # The other mechanism is a set of hooks for each of the main targets
16045 # like `clean', `install', etc.
16047 language_hooks
="Make-hooks"
16049 for lang
in ${srcdir}/*/config-lang.
in
16051 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16053 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16054 if test "x$lang_alias" = x
16056 echo "$lang doesn't set \$language." 1>&2
16059 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16060 subdirs
="$subdirs $subdir"
16061 case ",$enable_languages," in
16063 all_selected_languages
="$all_selected_languages $lang_alias"
16064 if test -f $srcdir/$subdir/lang-specs.h
; then
16065 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16077 .
${srcdir}/$subdir/config-lang.
in
16078 if test "x$language" = x
16080 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16085 case ",$enable_languages," in
16086 *,$lang_alias,*) ;;
16088 for i
in $subdir_requires; do
16089 test -f "${srcdir}/$i/config-lang.in" && continue
16097 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16098 if test -f $srcdir/$subdir/lang.opt
; then
16099 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
16101 if test -f $srcdir/$subdir/$subdir-tree.def
; then
16102 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16104 if test -f ${srcdir}/$subdir/Makefile.
in
16105 then all_lang_makefiles
="$subdir/Makefile"
16107 all_languages
="$all_languages $language"
16108 if test "x$boot_language" = xyes
16110 all_boot_languages
="$all_boot_languages $language"
16112 all_compilers
="$all_compilers $compilers"
16113 all_stagestuff
="$all_stagestuff $stagestuff"
16114 all_outputs
="$all_outputs $outputs"
16115 all_gtfiles
="$all_gtfiles $gtfiles"
16118 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
16119 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16123 # Pick up gtfiles for c
16126 .
${srcdir}/c-config-lang.
in
16127 all_gtfiles
="$all_gtfiles $gtfiles"
16130 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
16131 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16135 for language
in $all_selected_languages
16137 check_languages
="$check_languages check-$language"
16140 # We link each language in with a set of hooks, reached indirectly via
16141 # lang.${target}. Only do so for selected languages.
16145 target_list
="all.cross start.encap rest.encap tags \
16146 install-common install-man install-info dvi html \
16147 uninstall info man srcextra srcman srcinfo \
16148 mostlyclean clean distclean maintainer-clean \
16149 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16151 for t
in $target_list
16154 for lang
in $all_selected_languages
16158 echo "lang.$t: $x" >> Make-hooks
16167 echo "dir ." > .gdbinit
16168 echo "dir ${srcdir}" >> .gdbinit
16169 if test x
$gdb_needs_out_file_path = xyes
16171 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16173 if test "x$subdirs" != x
; then
16176 echo "dir ${srcdir}/$s" >> .gdbinit
16179 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16181 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16182 # absolute path for gcc_tooldir based on inserting the number of up-directory
16183 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16184 # $(libsubdir)/@(unlibsubdir) based path.
16185 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16186 # make and thus we'd get different behavior depending on where we built the
16188 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
16189 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16191 # An explanation of the sed strings:
16192 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16193 # -e 's|/$||' match a trailing forward slash and eliminates it
16194 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16195 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16197 # (*) Note this pattern overwrites the first character of the string
16198 # with a forward slash if one is not already present. This is not a
16199 # problem because the exact names of the sub-directories concerned is
16200 # unimportant, just the number of them matters.
16202 # The practical upshot of these patterns is like this:
16204 # prefix exec_prefix result
16205 # ------ ----------- ------
16206 # /foo /foo/bar ../
16207 # /foo/ /foo/bar ../
16208 # /foo /foo/bar/ ../
16209 # /foo/ /foo/bar/ ../
16210 # /foo /foo/bar/ugg ../../
16213 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16218 # Find a directory in which to install a shared libgcc.
16220 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16221 if test "${enable_version_specific_runtime_libs+set}" = set; then
16222 enableval
="$enable_version_specific_runtime_libs"
16227 # Check whether --with-slibdir or --without-slibdir was given.
16228 if test "${with_slibdir+set}" = set; then
16229 withval
="$with_slibdir"
16230 slibdir
="$with_slibdir"
16232 if test "${enable_version_specific_runtime_libs+set}" = set; then
16233 slibdir
='$(libsubdir)'
16234 elif test "$host" != "$target"; then
16235 slibdir
='$(build_tooldir)/lib'
16237 slibdir
='$(libdir)'
16242 objdir
=`${PWDCMD-pwd}`
16246 # Check whether --with-datarootdir or --without-datarootdir was given.
16247 if test "${with_datarootdir+set}" = set; then
16248 withval
="$with_datarootdir"
16249 datarootdir
="\${prefix}/$with_datarootdir"
16251 datarootdir
='$(prefix)/share'
16256 # Check whether --with-docdir or --without-docdir was given.
16257 if test "${with_docdir+set}" = set; then
16258 withval
="$with_docdir"
16259 docdir
="\${prefix}/$with_docdir"
16261 docdir
='$(datarootdir)'
16266 # Check whether --with-htmldir or --without-htmldir was given.
16267 if test "${with_htmldir+set}" = set; then
16268 withval
="$with_htmldir"
16269 htmldir
="\${prefix}/$with_htmldir"
16271 htmldir
='$(docdir)'
16275 # Substitute configuration variables
16340 if test x
${build} = x
${host} ; then
16341 if test x
${host} = x
${target} ; then
16342 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16344 echo "Links are now set up to build a cross-compiler" 1>&2
16345 echo " from ${host} to ${target}." 1>&2
16348 if test x
${host} = x
${target} ; then
16349 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16350 echo " for ${target}." 1>&2
16352 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16353 echo " from ${host} to ${target}." 1>&2
16360 # Configure the subdirectories
16361 # AC_CONFIG_SUBDIRS($subdirs)
16363 # Create the Makefile
16364 # and configure language subdirectories
16365 ac_config_files
="$ac_config_files $all_outputs"
16368 ac_config_commands
="$ac_config_commands default"
16370 cat >confcache
<<\_ACEOF
16371 # This file is a shell script that caches the results of configure
16372 # tests run on this system so they can be shared between configure
16373 # scripts and configure runs, see configure's option --config-cache.
16374 # It is not useful on other systems. If it contains results you don't
16375 # want to keep, you may remove or edit it.
16377 # config.status only pays attention to the cache file if you give it
16378 # the --recheck option to rerun configure.
16380 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16381 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16382 # following values.
16386 # The following way of writing the cache mishandles newlines in values,
16387 # but we know of no workaround that is simple, portable, and efficient.
16388 # So, don't put newlines in cache variables' values.
16389 # Ultrix sh set writes to stderr and can't be redirected directly,
16390 # and sets the high bit in the cache file unless we assign to the vars.
16393 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16395 # `set' does not quote correctly, so add quotes (double-quote
16396 # substitution turns \\\\ into \\, and sed turns \\ into \).
16399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16402 # `set' quotes correctly as required by POSIX, so do not add quotes.
16404 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16411 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16413 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16415 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
16416 if test -w $cache_file; then
16417 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16418 cat confcache
>$cache_file
16420 echo "not updating unwritable cache $cache_file"
16425 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16426 # Let make expand exec_prefix.
16427 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16429 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16430 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16431 # trailing colons and then remove the whole line if VPATH becomes empty
16432 # (actually we leave an empty line to preserve line numbers).
16433 if test "x$srcdir" = x.
; then
16434 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16435 s/:*\$(srcdir):*/:/;
16436 s/:*\${srcdir}:*/:/;
16438 s/^\([^=]*=[ ]*\):*/\1/;
16444 DEFS
=-DHAVE_CONFIG_H
16448 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16449 # 1. Remove the extension, and $U if already installed.
16450 ac_i
=`echo "$ac_i" |
16451 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16453 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
16454 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
16456 LIBOBJS
=$ac_libobjs
16458 LTLIBOBJS
=$ac_ltlibobjs
16462 : ${CONFIG_STATUS=./config.status}
16463 ac_clean_files_save
=$ac_clean_files
16464 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16465 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16466 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16467 cat >$CONFIG_STATUS <<_ACEOF
16469 # Generated by $as_me.
16470 # Run this file to recreate the current configuration.
16471 # Compiler output produced by configure, useful for debugging
16472 # configure, is in config.log if it exists.
16475 ac_cs_recheck=false
16477 SHELL=\${CONFIG_SHELL-$SHELL}
16480 cat >>$CONFIG_STATUS <<\_ACEOF
16481 ## --------------------- ##
16482 ## M4sh Initialization. ##
16483 ## --------------------- ##
16485 # Be Bourne compatible
16486 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16489 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16490 # is contrary to our usage. Disable this feature.
16491 alias -g '${1+"$@"}'='"$@"'
16492 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16495 DUALCASE
=1; export DUALCASE
# for MKS sh
16497 # Support unset when possible.
16498 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16505 # Work around bugs in pre-3.0 UWIN ksh.
16506 $as_unset ENV MAIL MAILPATH
16513 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16514 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16515 LC_TELEPHONE LC_TIME
16517 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16518 eval $as_var=C
; export $as_var
16524 # Required to use basename.
16525 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16531 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16532 as_basename
=basename
16538 # Name of the executable.
16539 as_me
=`$as_basename "$0" ||
16540 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16541 X"$0" : 'X\(//\)$' \| \
16542 X"$0" : 'X\(/\)$' \| \
16543 . : '\(.\)' 2>/dev/null ||
16545 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16546 /^X\/\(\/\/\)$/{ s//\1/; q; }
16547 /^X\/\(\/\).*/{ s//\1/; q; }
16551 # PATH needs CR, and LINENO needs CR and PATH.
16552 # Avoid depending upon Character Ranges.
16553 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16554 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16555 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16556 as_cr_digits
='0123456789'
16557 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16559 # The user is always right.
16560 if test "${PATH_SEPARATOR+set}" != set; then
16561 echo "#! /bin/sh" >conf$$.sh
16562 echo "exit 0" >>conf$$.sh
16564 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16573 as_lineno_1
=$LINENO
16574 as_lineno_2
=$LINENO
16575 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16576 test "x$as_lineno_1" != "x$as_lineno_2" &&
16577 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16578 # Find who we are. Look in the path if we contain no path at all
16581 *[\\/]* ) as_myself
=$0 ;;
16582 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16583 for as_dir
in $PATH
16586 test -z "$as_dir" && as_dir
=.
16587 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16592 # We did not find ourselves, most probably we were run as `sh COMMAND'
16593 # in which case we are not to be found in the path.
16594 if test "x$as_myself" = x
; then
16597 if test ! -f "$as_myself"; then
16598 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16599 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16600 { (exit 1); exit 1; }; }
16602 case $CONFIG_SHELL in
16604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16605 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16608 test -z "$as_dir" && as_dir
=.
16609 for as_base
in sh bash ksh sh5
; do
16612 if ("$as_dir/$as_base" -c '
16613 as_lineno_1=$LINENO
16614 as_lineno_2=$LINENO
16615 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16616 test "x$as_lineno_1" != "x$as_lineno_2" &&
16617 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16618 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
16619 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
16620 CONFIG_SHELL
=$as_dir/$as_base
16621 export CONFIG_SHELL
16622 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16630 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16631 # uniformly replaced by the line number. The first 'sed' inserts a
16632 # line-number line before each line; the second 'sed' does the real
16633 # work. The second script uses 'N' to pair each line-number line
16634 # with the numbered line, and appends trailing '-' during
16635 # substitution so that $LINENO is not a special case at line end.
16636 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16637 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16638 sed '=' <$as_myself |
16643 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16646 s,^['$as_cr_digits']*\n,,
16647 ' >$as_me.lineno
&&
16648 chmod +x
$as_me.lineno ||
16649 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16650 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16651 { (exit 1); exit 1; }; }
16653 # Don't try to exec as it changes $[0], causing all sort of problems
16654 # (the dirname of $[0] is not the place where we might find the
16655 # original and so on. Autoconf is especially sensible to this).
16657 # Exit status is that of the last command.
16662 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16663 *c
*,-n*) ECHO_N
= ECHO_C
='
16665 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16666 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16669 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16675 rm -f conf$$ conf$$.exe conf$$.
file
16677 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16678 # We could just check for DJGPP; but this test a) works b) is more generic
16679 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16680 if test -f conf$$.exe
; then
16681 # Don't use ln at all; we don't have any links
16686 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16691 rm -f conf$$ conf$$.exe conf$$.
file
16693 if mkdir
-p .
2>/dev
/null
; then
16696 test -d .
/-p && rmdir .
/-p
16700 as_executable_p
="test -f"
16702 # Sed expression to map a string onto a valid CPP name.
16703 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16705 # Sed expression to map a string onto a valid variable name.
16706 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16710 # We need space, tab and new line, in precisely that order.
16720 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16721 # report actual input values of CONFIG_FILES etc. instead of their
16722 # values after options handling. Logging --version etc. is OK.
16726 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16727 ## Running $as_me. ##
16732 This file was extended by $as_me, which was
16733 generated by GNU Autoconf 2.59. Invocation command line was
16735 CONFIG_FILES = $CONFIG_FILES
16736 CONFIG_HEADERS = $CONFIG_HEADERS
16737 CONFIG_LINKS = $CONFIG_LINKS
16738 CONFIG_COMMANDS = $CONFIG_COMMANDS
16742 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16746 # Files that config.status was made for.
16747 if test -n "$ac_config_files"; then
16748 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16751 if test -n "$ac_config_headers"; then
16752 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16755 if test -n "$ac_config_links"; then
16756 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16759 if test -n "$ac_config_commands"; then
16760 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16763 cat >>$CONFIG_STATUS <<\_ACEOF
16766 \`$as_me' instantiates files from templates according to the
16767 current configuration.
16769 Usage: $0 [OPTIONS] [FILE]...
16771 -h, --help print this help, then exit
16772 -V, --version print version number, then exit
16773 -q, --quiet do not print progress messages
16774 -d, --debug don't remove temporary files
16775 --recheck update $as_me by reconfiguring in the same conditions
16776 --file=FILE[:TEMPLATE]
16777 instantiate the configuration file FILE
16778 --header=FILE[:TEMPLATE]
16779 instantiate the configuration header FILE
16781 Configuration files:
16784 Configuration headers:
16787 Configuration commands:
16790 Report bugs to <bug-autoconf@gnu.org>."
16793 cat >>$CONFIG_STATUS <<_ACEOF
16796 configured by $0, generated by GNU Autoconf 2.59,
16797 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16799 Copyright (C) 2003 Free Software Foundation, Inc.
16800 This config.status script is free software; the Free Software Foundation
16801 gives unlimited permission to copy, distribute and modify it."
16805 cat >>$CONFIG_STATUS <<\_ACEOF
16806 # If no file are specified by the user, then we need to provide default
16807 # value. By we need to know if files were specified by the user.
16813 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16814 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16822 *) # This is not an option, so the user has probably given explicit
16825 ac_need_defaults
=false
;;
16829 # Handling of the options.
16831 cat >>$CONFIG_STATUS <<\_ACEOF
16832 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16834 --version |
--vers* |
-V )
16835 echo "$ac_cs_version"; exit 0 ;;
16837 # Conflict between --help and --header
16838 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16839 Try \`$0 --help' for more information." >&5
16840 echo "$as_me: error: ambiguous option: $1
16841 Try \`$0 --help' for more information." >&2;}
16842 { (exit 1); exit 1; }; };;
16843 --help |
--hel |
-h )
16844 echo "$ac_cs_usage"; exit 0 ;;
16845 --debug |
--d* |
-d )
16847 --file |
--fil |
--fi |
--f )
16849 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16850 ac_need_defaults
=false
;;
16851 --header |
--heade |
--head |
--hea )
16853 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16854 ac_need_defaults
=false
;;
16855 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16856 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16859 # This is an error.
16860 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16861 Try \`$0 --help' for more information." >&5
16862 echo "$as_me: error: unrecognized option: $1
16863 Try \`$0 --help' for more information." >&2;}
16864 { (exit 1); exit 1; }; } ;;
16866 *) ac_config_targets
="$ac_config_targets $1" ;;
16872 ac_configure_extra_args
=
16874 if $ac_cs_silent; then
16876 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16880 cat >>$CONFIG_STATUS <<_ACEOF
16881 if \$ac_cs_recheck; then
16882 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16883 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16888 cat >>$CONFIG_STATUS <<_ACEOF
16890 # INIT-COMMANDS section.
16899 cat >>$CONFIG_STATUS <<\_ACEOF
16900 for ac_config_target
in $ac_config_targets
16902 case "$ac_config_target" in
16903 # Handling of arguments.
16904 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
16905 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16906 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
16907 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16908 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16909 { (exit 1); exit 1; }; };;
16913 # If the user did not use the arguments to specify the items to instantiate,
16914 # then the envvar interface is used. Set only those that are not.
16915 # We use the long form for the default assignment because of an extremely
16916 # bizarre bug on SunOS 4.1.3.
16917 if $ac_need_defaults; then
16918 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16919 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16920 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16923 # Have a temporary directory for convenience. Make it in the build tree
16924 # simply because there is no reason to put it here, and in addition,
16925 # creating and moving files from /tmp can sometimes cause problems.
16926 # Create a temporary directory, and hook for its removal unless debugging.
16929 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16930 trap '{ (exit 1); exit 1; }' 1 2 13 15
16933 # Create a (secure) tmp directory for tmp files.
16936 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16937 test -n "$tmp" && test -d "$tmp"
16940 tmp
=.
/confstat$$
-$RANDOM
16941 (umask 077 && mkdir
$tmp)
16944 echo "$me: cannot create a temporary directory in ." >&2
16945 { (exit 1); exit 1; }
16950 cat >>$CONFIG_STATUS <<_ACEOF
16953 # CONFIG_FILES section.
16956 # No need to generate the scripts if there are no CONFIG_FILES.
16957 # This happens for instance when ./config.status config.h
16958 if test -n "\$CONFIG_FILES"; then
16959 # Protect against being on the right side of a sed subst in config.status.
16960 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16961 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16962 s,@SHELL@,$SHELL,;t t
16963 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16964 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16965 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16966 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16967 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16968 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16969 s,@exec_prefix@,$exec_prefix,;t t
16970 s,@prefix@,$prefix,;t t
16971 s,@program_transform_name@,$program_transform_name,;t t
16972 s,@bindir@,$bindir,;t t
16973 s,@sbindir@,$sbindir,;t t
16974 s,@libexecdir@,$libexecdir,;t t
16975 s,@datadir@,$datadir,;t t
16976 s,@sysconfdir@,$sysconfdir,;t t
16977 s,@sharedstatedir@,$sharedstatedir,;t t
16978 s,@localstatedir@,$localstatedir,;t t
16979 s,@libdir@,$libdir,;t t
16980 s,@includedir@,$includedir,;t t
16981 s,@oldincludedir@,$oldincludedir,;t t
16982 s,@infodir@,$infodir,;t t
16983 s,@mandir@,$mandir,;t t
16984 s,@build_alias@,$build_alias,;t t
16985 s,@host_alias@,$host_alias,;t t
16986 s,@target_alias@,$target_alias,;t t
16987 s,@DEFS@,$DEFS,;t t
16988 s,@ECHO_C@,$ECHO_C,;t t
16989 s,@ECHO_N@,$ECHO_N,;t t
16990 s,@ECHO_T@,$ECHO_T,;t t
16991 s,@LIBS@,$LIBS,;t t
16992 s,@build@,$build,;t t
16993 s,@build_cpu@,$build_cpu,;t t
16994 s,@build_vendor@,$build_vendor,;t t
16995 s,@build_os@,$build_os,;t t
16996 s,@host@,$host,;t t
16997 s,@host_cpu@,$host_cpu,;t t
16998 s,@host_vendor@,$host_vendor,;t t
16999 s,@host_os@,$host_os,;t t
17000 s,@target@,$target,;t t
17001 s,@target_cpu@,$target_cpu,;t t
17002 s,@target_vendor@,$target_vendor,;t t
17003 s,@target_os@,$target_os,;t t
17004 s,@target_noncanonical@,$target_noncanonical,;t t
17005 s,@build_libsubdir@,$build_libsubdir,;t t
17006 s,@build_subdir@,$build_subdir,;t t
17007 s,@host_subdir@,$host_subdir,;t t
17008 s,@target_subdir@,$target_subdir,;t t
17009 s,@GENINSRC@,$GENINSRC,;t t
17011 s,@CFLAGS@,$CFLAGS,;t t
17012 s,@LDFLAGS@,$LDFLAGS,;t t
17013 s,@CPPFLAGS@,$CPPFLAGS,;t t
17014 s,@ac_ct_CC@,$ac_ct_CC,;t t
17015 s,@EXEEXT@,$EXEEXT,;t t
17016 s,@OBJEXT@,$OBJEXT,;t t
17017 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17018 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17020 s,@EGREP@,$EGREP,;t t
17021 s,@strict1_warn@,$strict1_warn,;t t
17022 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17023 s,@warn_cflags@,$warn_cflags,;t t
17024 s,@WERROR@,$WERROR,;t t
17025 s,@nocommon_flag@,$nocommon_flag,;t t
17026 s,@TREEBROWSER@,$TREEBROWSER,;t t
17027 s,@valgrind_path@,$valgrind_path,;t t
17028 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17029 s,@valgrind_command@,$valgrind_command,;t t
17030 s,@coverage_flags@,$coverage_flags,;t t
17031 s,@enable_multilib@,$enable_multilib,;t t
17032 s,@enable_decimal_float@,$enable_decimal_float,;t t
17033 s,@enable_shared@,$enable_shared,;t t
17034 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17035 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17036 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17037 s,@onestep@,$onestep,;t t
17038 s,@datarootdir@,$datarootdir,;t t
17039 s,@docdir@,$docdir,;t t
17040 s,@htmldir@,$htmldir,;t t
17041 s,@SET_MAKE@,$SET_MAKE,;t t
17043 s,@LN_S@,$LN_S,;t t
17045 s,@RANLIB@,$RANLIB,;t t
17046 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17047 s,@ranlib_flags@,$ranlib_flags,;t t
17048 s,@INSTALL@,$INSTALL,;t t
17049 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17050 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17051 s,@make_compare_target@,$make_compare_target,;t t
17052 s,@have_mktemp_command@,$have_mktemp_command,;t t
17053 s,@MAKEINFO@,$MAKEINFO,;t t
17054 s,@BUILD_INFO@,$BUILD_INFO,;t t
17055 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17056 s,@FLEX@,$FLEX,;t t
17057 s,@BISON@,$BISON,;t t
17060 s,@stage1_cflags@,$stage1_cflags,;t t
17061 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17062 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17063 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17064 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17065 s,@LIBICONV@,$LIBICONV,;t t
17066 s,@LTLIBICONV@,$LTLIBICONV,;t t
17067 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17068 s,@manext@,$manext,;t t
17069 s,@objext@,$objext,;t t
17070 s,@gthread_flags@,$gthread_flags,;t t
17071 s,@extra_modes_file@,$extra_modes_file,;t t
17072 s,@extra_opt_files@,$extra_opt_files,;t t
17073 s,@USE_NLS@,$USE_NLS,;t t
17074 s,@LIBINTL@,$LIBINTL,;t t
17075 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17076 s,@INCINTL@,$INCINTL,;t t
17077 s,@XGETTEXT@,$XGETTEXT,;t t
17078 s,@GMSGFMT@,$GMSGFMT,;t t
17079 s,@POSUB@,$POSUB,;t t
17080 s,@CATALOGS@,$CATALOGS,;t t
17081 s,@DATADIRNAME@,$DATADIRNAME,;t t
17082 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17083 s,@GENCAT@,$GENCAT,;t t
17084 s,@CATOBJEXT@,$CATOBJEXT,;t t
17085 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17086 s,@CROSS@,$CROSS,;t t
17088 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17089 s,@inhibit_libc@,$inhibit_libc,;t t
17090 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17091 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17092 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17093 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17094 s,@collect2@,$collect2,;t t
17095 s,@gcc_cv_as@,$gcc_cv_as,;t t
17096 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17097 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17098 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17099 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17100 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17101 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17102 s,@libgcc_visibility@,$libgcc_visibility,;t t
17104 s,@zlibdir@,$zlibdir,;t t
17105 s,@zlibinc@,$zlibinc,;t t
17106 s,@MAINT@,$MAINT,;t t
17107 s,@gcc_tooldir@,$gcc_tooldir,;t t
17108 s,@dollar@,$dollar,;t t
17109 s,@slibdir@,$slibdir,;t t
17110 s,@objdir@,$objdir,;t t
17111 s,@subdirs@,$subdirs,;t t
17112 s,@srcdir@,$srcdir,;t t
17113 s,@all_boot_languages@,$all_boot_languages,;t t
17114 s,@all_compilers@,$all_compilers,;t t
17115 s,@all_gtfiles@,$all_gtfiles,;t t
17116 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17117 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17118 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17119 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17120 s,@all_languages@,$all_languages,;t t
17121 s,@all_selected_languages@,$all_selected_languages,;t t
17122 s,@all_stagestuff@,$all_stagestuff,;t t
17123 s,@build_exeext@,$build_exeext,;t t
17124 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17125 s,@build_xm_file_list@,$build_xm_file_list,;t t
17126 s,@build_xm_include_list@,$build_xm_include_list,;t t
17127 s,@build_xm_defines@,$build_xm_defines,;t t
17128 s,@check_languages@,$check_languages,;t t
17129 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17130 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17131 s,@cpp_install_dir@,$cpp_install_dir,;t t
17132 s,@xmake_file@,$xmake_file,;t t
17133 s,@tmake_file@,$tmake_file,;t t
17134 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17135 s,@extra_headers_list@,$extra_headers_list,;t t
17136 s,@extra_objs@,$extra_objs,;t t
17137 s,@extra_parts@,$extra_parts,;t t
17138 s,@extra_passes@,$extra_passes,;t t
17139 s,@extra_programs@,$extra_programs,;t t
17140 s,@float_h_file@,$float_h_file,;t t
17141 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17142 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17143 s,@host_exeext@,$host_exeext,;t t
17144 s,@host_xm_file_list@,$host_xm_file_list,;t t
17145 s,@host_xm_include_list@,$host_xm_include_list,;t t
17146 s,@host_xm_defines@,$host_xm_defines,;t t
17147 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17148 s,@install@,$install,;t t
17149 s,@lang_opt_files@,$lang_opt_files,;t t
17150 s,@lang_specs_files@,$lang_specs_files,;t t
17151 s,@lang_tree_files@,$lang_tree_files,;t t
17152 s,@local_prefix@,$local_prefix,;t t
17153 s,@md_file@,$md_file,;t t
17154 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17155 s,@out_file@,$out_file,;t t
17156 s,@out_object_file@,$out_object_file,;t t
17157 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17158 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17159 s,@thread_file@,$thread_file,;t t
17160 s,@tm_file_list@,$tm_file_list,;t t
17161 s,@tm_include_list@,$tm_include_list,;t t
17162 s,@tm_defines@,$tm_defines,;t t
17163 s,@tm_p_file_list@,$tm_p_file_list,;t t
17164 s,@tm_p_include_list@,$tm_p_include_list,;t t
17165 s,@xm_file_list@,$xm_file_list,;t t
17166 s,@xm_include_list@,$xm_include_list,;t t
17167 s,@xm_defines@,$xm_defines,;t t
17168 s,@c_target_objs@,$c_target_objs,;t t
17169 s,@cxx_target_objs@,$cxx_target_objs,;t t
17170 s,@target_cpu_default@,$target_cpu_default,;t t
17171 s,@GMPLIBS@,$GMPLIBS,;t t
17172 s,@GMPINC@,$GMPINC,;t t
17173 s,@LIBOBJS@,$LIBOBJS,;t t
17174 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17175 /@language_hooks@/r $language_hooks
17176 s,@language_hooks@,,;t t
17181 cat >>$CONFIG_STATUS <<\_ACEOF
17182 # Split the substitutions into bite-sized pieces for seds with
17183 # small command number limits, like on Digital OSF/1 and HP-UX.
17184 ac_max_sed_lines
=48
17185 ac_sed_frag
=1 # Number of current file.
17186 ac_beg
=1 # First line for current file.
17187 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17190 while $ac_more_lines; do
17191 if test $ac_beg -gt 1; then
17192 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17194 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17196 if test ! -s $tmp/subs.frag
; then
17197 ac_more_lines
=false
17199 # The purpose of the label and of the branching condition is to
17200 # speed up the sed processing (if there are no `@' at all, there
17201 # is no need to browse any of the substitutions).
17202 # These are the two extra sed commands mentioned above.
17204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
17205 if test -z "$ac_sed_cmds"; then
17206 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
17208 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17210 ac_sed_frag
=`expr $ac_sed_frag + 1`
17212 ac_end
=`expr $ac_end + $ac_max_sed_lines`
17215 if test -z "$ac_sed_cmds"; then
17218 fi # test -n "$CONFIG_FILES"
17221 cat >>$CONFIG_STATUS <<\_ACEOF
17222 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
17223 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17225 - |
*:- |
*:-:* ) # input from stdin
17227 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17228 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17229 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17230 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17231 * ) ac_file_in
=$ac_file.
in ;;
17234 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17235 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17236 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17237 X"$ac_file" : 'X\(//\)[^/]' \| \
17238 X"$ac_file" : 'X\(//\)$' \| \
17239 X"$ac_file" : 'X\(/\)' \| \
17240 . : '\(.\)' 2>/dev/null ||
17242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17243 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17244 /^X\(\/\/\)$/{ s//\1/; q; }
17245 /^X\(\/\).*/{ s//\1/; q; }
17247 { if $as_mkdir_p; then
17252 while test ! -d "$as_dir"; do
17253 as_dirs
="$as_dir $as_dirs"
17254 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17255 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17256 X"$as_dir" : 'X\(//\)[^/]' \| \
17257 X"$as_dir" : 'X\(//\)$' \| \
17258 X"$as_dir" : 'X\(/\)' \| \
17259 . : '\(.\)' 2>/dev/null ||
17261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17262 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17263 /^X\(\/\/\)$/{ s//\1/; q; }
17264 /^X\(\/\).*/{ s//\1/; q; }
17267 test ! -n "$as_dirs" || mkdir
$as_dirs
17268 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17269 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17270 { (exit 1); exit 1; }; }; }
17274 if test "$ac_dir" != .
; then
17275 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17276 # A "../" for each directory in $ac_dir_suffix.
17277 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17279 ac_dir_suffix
= ac_top_builddir
=
17283 .
) # No --srcdir option. We are building in place.
17285 if test -z "$ac_top_builddir"; then
17288 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17290 [\\/]* | ?
:[\\/]* ) # Absolute path.
17291 ac_srcdir
=$srcdir$ac_dir_suffix;
17292 ac_top_srcdir
=$srcdir ;;
17293 *) # Relative path.
17294 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17295 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17298 # Do not use `cd foo && pwd` to compute absolute paths, because
17299 # the directories may not exist.
17301 .
) ac_abs_builddir
="$ac_dir";;
17304 .
) ac_abs_builddir
=`pwd`;;
17305 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17306 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17309 case $ac_abs_builddir in
17310 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17312 case ${ac_top_builddir}.
in
17313 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17314 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17315 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17318 case $ac_abs_builddir in
17319 .
) ac_abs_srcdir
=$ac_srcdir;;
17322 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17323 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17324 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17327 case $ac_abs_builddir in
17328 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17330 case $ac_top_srcdir in
17331 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17332 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17333 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17339 if test x
"$ac_file" != x-
; then
17340 { echo "$as_me:$LINENO: creating $ac_file" >&5
17341 echo "$as_me: creating $ac_file" >&6;}
17344 # Let's still pretend it is `configure' which instantiates (i.e., don't
17345 # use $as_me), people would be surprised to read:
17346 # /* config.h. Generated by config.status. */
17347 if test x
"$ac_file" = x-
; then
17350 configure_input
="$ac_file. "
17352 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17353 sed 's,.*/,,'` by configure."
17355 # First look for the input files in the build tree, otherwise in the
17357 ac_file_inputs
=`IFS=:
17358 for f in $ac_file_in; do
17360 -) echo $tmp/stdin ;;
17362 # Absolute (can't be DOS-style, as IFS=:)
17363 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17364 echo "$as_me: error: cannot find input file: $f" >&2;}
17365 { (exit 1); exit 1; }; }
17368 if test -f "$f"; then
17371 elif test -f "$srcdir/$f"; then
17376 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17377 echo "$as_me: error: cannot find input file: $f" >&2;}
17378 { (exit 1); exit 1; }; }
17381 done` ||
{ (exit 1); exit 1; }
17383 cat >>$CONFIG_STATUS <<_ACEOF
17387 cat >>$CONFIG_STATUS <<\_ACEOF
17389 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17390 s
,@configure_input@
,$configure_input,;t t
17391 s
,@srcdir@
,$ac_srcdir,;t t
17392 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17393 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17394 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17395 s
,@builddir@
,$ac_builddir,;t t
17396 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17397 s
,@top_builddir@
,$ac_top_builddir,;t t
17398 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17399 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17401 if test x"$ac_file" != x-; then
17402 mv $tmp/out $ac_file
17410 cat >>$CONFIG_STATUS <<\_ACEOF
17413 # CONFIG_HEADER section.
17416 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17417 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17419 # ac_d sets the value in "#define NAME VALUE" lines.
17420 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17421 ac_dB
='[ ].*$,\1#\2'
17424 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17425 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17426 ac_uB
='$,\1#\2define\3'
17430 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17433 - |
*:- |
*:-:* ) # input from stdin
17435 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17436 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17437 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17438 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17439 * ) ac_file_in
=$ac_file.
in ;;
17442 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17443 echo "$as_me: creating $ac_file" >&6;}
17445 # First look for the input files in the build tree, otherwise in the
17447 ac_file_inputs
=`IFS=:
17448 for f in $ac_file_in; do
17450 -) echo $tmp/stdin ;;
17452 # Absolute (can't be DOS-style, as IFS=:)
17453 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17454 echo "$as_me: error: cannot find input file: $f" >&2;}
17455 { (exit 1); exit 1; }; }
17456 # Do quote $f, to prevent DOS paths from being IFS'd.
17459 if test -f "$f"; then
17462 elif test -f "$srcdir/$f"; then
17467 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17468 echo "$as_me: error: cannot find input file: $f" >&2;}
17469 { (exit 1); exit 1; }; }
17472 done` ||
{ (exit 1); exit 1; }
17473 # Remove the trailing spaces.
17474 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17478 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17479 # `conftest.undefs', that substitutes the proper values into
17480 # config.h.in to produce config.h. The first handles `#define'
17481 # templates, and the second `#undef' templates.
17482 # And first: Protect against being on the right side of a sed subst in
17483 # config.status. Protect against being in an unquoted here document
17484 # in config.status.
17485 rm -f conftest.defines conftest.undefs
17486 # Using a here document instead of a string reduces the quoting nightmare.
17487 # Putting comments in sed scripts is not portable.
17489 # `end' is used to avoid that the second main sed command (meant for
17490 # 0-ary CPP macros) applies to n-ary macro definitions.
17491 # See the Autoconf documentation for `clear'.
17492 cat >confdef2sed.
sed <<\_ACEOF
17497 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17499 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17502 # If some macros were called several times there might be several times
17503 # the same #defines, which is useless. Nevertheless, we may not want to
17504 # sort them, since we want the *last* AC-DEFINE to be honored.
17505 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17506 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17507 rm -f confdef2sed.sed
17509 # This sed command replaces #undef with comments. This is necessary, for
17510 # example, in the case of _POSIX_SOURCE, which is predefined and required
17511 # on some systems where configure will not decide to define it.
17512 cat >>conftest.undefs <<\_ACEOF
17513 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17516 # Break up conftest.defines because some shells have a limit on the size
17517 # of here documents, and old seds have small limits too (100 cmds).
17518 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17519 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17520 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17521 echo ' :' >>$CONFIG_STATUS
17522 rm -f conftest.tail
17523 while grep . conftest.defines >/dev/null
17525 # Write a limited-size here document to $tmp/defines.sed.
17526 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17527 # Speed up: don't consider the non `#define' lines.
17528 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17529 # Work around the forget-to-reset-the-flag bug.
17530 echo 't clr' >>$CONFIG_STATUS
17531 echo ': clr' >>$CONFIG_STATUS
17532 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17534 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17536 mv $tmp/out $tmp/in
17538 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17539 rm -f conftest.defines
17540 mv conftest.
tail conftest.defines
17542 rm -f conftest.defines
17543 echo ' fi # grep' >>$CONFIG_STATUS
17544 echo >>$CONFIG_STATUS
17546 # Break up conftest.undefs because some shells have a limit on the size
17547 # of here documents, and old seds have small limits too (100 cmds).
17548 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17549 rm -f conftest.
tail
17550 while grep . conftest.undefs
>/dev
/null
17552 # Write a limited-size here document to $tmp/undefs.sed.
17553 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17554 # Speed up: don't consider the non
`#undef'
17555 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17556 # Work around the forget-to-reset-the-flag bug.
17557 echo 't clr' >>$CONFIG_STATUS
17558 echo ': clr' >>$CONFIG_STATUS
17559 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17561 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17563 mv $tmp/out $tmp/in
17565 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17566 rm -f conftest.undefs
17567 mv conftest.tail conftest.undefs
17569 rm -f conftest.undefs
17571 cat >>$CONFIG_STATUS <<\_ACEOF
17572 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17573 # use $as_me), people would be surprised to read:
17574 # /* config.h. Generated by config.status. */
17575 if test x
"$ac_file" = x-
; then
17576 echo "/* Generated by configure. */" >$tmp/config.h
17578 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17580 cat $tmp/in >>$tmp/config.h
17582 if test x
"$ac_file" != x-
; then
17583 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
17584 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17585 echo "$as_me: $ac_file is unchanged" >&6;}
17587 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17588 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17589 X"$ac_file" : 'X\(//\)[^/]' \| \
17590 X"$ac_file" : 'X\(//\)$' \| \
17591 X"$ac_file" : 'X\(/\)' \| \
17592 . : '\(.\)' 2>/dev/null ||
17594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17595 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17596 /^X\(\/\/\)$/{ s//\1/; q; }
17597 /^X\(\/\).*/{ s//\1/; q; }
17599 { if $as_mkdir_p; then
17604 while test ! -d "$as_dir"; do
17605 as_dirs
="$as_dir $as_dirs"
17606 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17608 X"$as_dir" : 'X\(//\)[^/]' \| \
17609 X"$as_dir" : 'X\(//\)$' \| \
17610 X"$as_dir" : 'X\(/\)' \| \
17611 . : '\(.\)' 2>/dev/null ||
17613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17615 /^X\(\/\/\)$/{ s//\1/; q; }
17616 /^X\(\/\).*/{ s//\1/; q; }
17619 test ! -n "$as_dirs" || mkdir
$as_dirs
17620 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17621 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17622 { (exit 1); exit 1; }; }; }
17625 mv $tmp/config.h
$ac_file
17629 rm -f $tmp/config.h
17633 cat >>$CONFIG_STATUS <<\_ACEOF
17636 # CONFIG_COMMANDS section.
17638 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17639 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17640 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17641 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17642 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17643 X"$ac_dest" : 'X\(//\)[^/]' \| \
17644 X"$ac_dest" : 'X\(//\)$' \| \
17645 X"$ac_dest" : 'X\(/\)' \| \
17646 . : '\(.\)' 2>/dev/null ||
17648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17650 /^X\(\/\/\)$/{ s//\1/; q; }
17651 /^X\(\/\).*/{ s//\1/; q; }
17653 { if $as_mkdir_p; then
17658 while test ! -d "$as_dir"; do
17659 as_dirs
="$as_dir $as_dirs"
17660 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17662 X"$as_dir" : 'X\(//\)[^/]' \| \
17663 X"$as_dir" : 'X\(//\)$' \| \
17664 X"$as_dir" : 'X\(/\)' \| \
17665 . : '\(.\)' 2>/dev/null ||
17667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17669 /^X\(\/\/\)$/{ s//\1/; q; }
17670 /^X\(\/\).*/{ s//\1/; q; }
17673 test ! -n "$as_dirs" || mkdir
$as_dirs
17674 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17675 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17676 { (exit 1); exit 1; }; }; }
17680 if test "$ac_dir" != .
; then
17681 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17682 # A "../" for each directory in $ac_dir_suffix.
17683 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17685 ac_dir_suffix
= ac_top_builddir
=
17689 .
) # No --srcdir option. We are building in place.
17691 if test -z "$ac_top_builddir"; then
17694 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17696 [\\/]* | ?
:[\\/]* ) # Absolute path.
17697 ac_srcdir
=$srcdir$ac_dir_suffix;
17698 ac_top_srcdir
=$srcdir ;;
17699 *) # Relative path.
17700 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17701 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17704 # Do not use `cd foo && pwd` to compute absolute paths, because
17705 # the directories may not exist.
17707 .
) ac_abs_builddir
="$ac_dir";;
17710 .
) ac_abs_builddir
=`pwd`;;
17711 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17712 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17715 case $ac_abs_builddir in
17716 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17718 case ${ac_top_builddir}.
in
17719 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17720 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17721 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17724 case $ac_abs_builddir in
17725 .
) ac_abs_srcdir
=$ac_srcdir;;
17728 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17729 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17730 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17733 case $ac_abs_builddir in
17734 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17736 case $ac_top_srcdir in
17737 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17738 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17739 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17744 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17745 echo "$as_me: executing $ac_dest commands" >&6;}
17748 case ${CONFIG_HEADERS} in
17749 *auto-host.h
:config.
in*)
17752 # Make sure all the subdirs exist.
17753 for d
in $subdirs doc build
17755 test -d $d || mkdir
$d
17757 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17758 # bootstrapping and the installation procedure can still use
17759 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17760 # FLAGS_TO_PASS has been modified to solve the problem there.
17761 # This is virtually a duplicate of what happens in configure.lang; we do
17762 # an extra check to make sure this only happens if ln -s can be used.
17765 for d
in ${subdirs} ; do
17766 STARTDIR
=`${PWDCMD-pwd}`
17768 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17771 $LN_S ..
/$t $t 2>/dev
/null
17782 cat >>$CONFIG_STATUS <<\_ACEOF
17784 { (exit 0); exit 0; }
17786 chmod +x
$CONFIG_STATUS
17787 ac_clean_files
=$ac_clean_files_save
17790 # configure is writing to config.log, and then calls config.status.
17791 # config.status does its own redirection, appending to config.log.
17792 # Unfortunately, on DOS this fails, as config.log is still kept open
17793 # by configure, so config.status won't be able to write to it; its
17794 # output is simply discarded. So we exec the FD to /dev/null,
17795 # effectively closing config.log, so it can be properly (re)opened and
17796 # appended to by config.status. When coming back to configure, we
17797 # need to make the FD available again.
17798 if test "$no_create" != yes; then
17800 ac_config_status_args
=
17801 test "$silent" = yes &&
17802 ac_config_status_args
="$ac_config_status_args --quiet"
17804 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17806 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17807 # would make configure fail if this is the last instruction.
17808 $ac_cs_success ||
{ (exit 1); exit 1; }