2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: yes,no
,all
,none
,release.
871 Flags are
: assert
,fold,gc
,gcac
,misc
,
872 rtlflag
,rtl
,runtime
,tree
,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler
's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-threads enable thread usage for target GCC
884 --enable-threads=LIB use LIB thread package for target GCC
885 --enable-objc-gc enable the use of Boehm's garbage collector with
886 the GNU Objective-C runtime
887 --disable-shared don
't provide a shared libgcc
888 --enable-intermodule build the compiler in one step
889 --enable-languages=LIST specify which front-ends to build
890 --disable-rpath do not hardcode runtime library paths
891 --enable-initfini-array use .init_array/.fini_array sections
892 --enable-sjlj-exceptions
893 arrange to use setjmp/longjmp exception handling
894 --enable-secureplt enable -msecure-plt by default for PowerPC
895 --disable-win32-registry
896 disable lookup of installation paths in the
897 Registry on Windows hosts
898 --enable-win32-registry enable registry lookup (default)
899 --enable-win32-registry=KEY
900 use KEY instead of GCC version as the last portion
902 --enable-maintainer-mode
903 enable make rules and dependencies not useful
904 (and sometimes confusing) to the casual installer
905 --enable-version-specific-runtime-libs
906 specify that runtime libraries should be
907 installed in a compiler-specific directory
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 --with-local-prefix=DIR specifies directory to put local include
913 --with-gxx-include-dir=DIR
914 specifies directory to put g++ header files
915 --with-cpp-install-dir=DIR
916 install the user visible C preprocessor in DIR
917 (relative to PREFIX) as well as PREFIX/bin
918 --with-gnu-ld arrange to work with GNU ld.
919 --with-ld arrange to use the specified ld (full pathname)
920 --with-demangler-in-ld try to use demangler in GNU ld.
921 --with-gnu-as arrange to work with GNU as
922 --with-as arrange to use the specified as (full pathname)
923 --with-stabs arrange to use stabs instead of host debug format
924 --with-dwarf2 force the default debug format to be DWARF 2
925 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
926 --with-gnu-ld assume the C compiler uses GNU ld default=no
927 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
928 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
929 --with-system-libunwind use installed libunwind
930 --with-gc={page
,zone
} choose the garbage collection mechanism to use
932 --with-system-zlib use installed libz
933 --with-slibdir=DIR shared libraries
in DIR LIBDIR
935 Some influential environment variables
:
936 CC C compiler
command
937 CFLAGS C compiler flags
938 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
939 nonstandard directory
<lib dir
>
940 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
941 headers
in a nonstandard directory
<include dir
>
943 GMPLIBS How to link GMP
944 GMPINC How to
find GMP include files
946 Use these variables to override the choices made by
`configure' or to help
947 it to find libraries and programs with nonstandard names/locations.
952 if test "$ac_init_help" = "recursive"; then
953 # If there are subdirs, report their specific --help.
955 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
956 test -d $ac_dir || continue
959 if test "$ac_dir" != .; then
960 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
961 # A "../" for each directory in $ac_dir_suffix.
962 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
964 ac_dir_suffix= ac_top_builddir=
968 .) # No --srcdir option. We are building in place.
970 if test -z "$ac_top_builddir"; then
973 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
975 [\\/]* | ?:[\\/]* ) # Absolute path.
976 ac_srcdir=$srcdir$ac_dir_suffix;
977 ac_top_srcdir=$srcdir ;;
979 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
980 ac_top_srcdir=$ac_top_builddir$srcdir ;;
983 # Do not use `cd foo
&& pwd` to compute absolute paths, because
984 # the directories may not exist.
986 .) ac_abs_builddir="$ac_dir";;
989 .) ac_abs_builddir=`pwd`;;
990 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
991 *) ac_abs_builddir=`pwd`/"$ac_dir";;
994 case $ac_abs_builddir in
995 .) ac_abs_top_builddir=${ac_top_builddir}.;;
997 case ${ac_top_builddir}. in
998 .) ac_abs_top_builddir=$ac_abs_builddir;;
999 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1000 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1003 case $ac_abs_builddir in
1004 .) ac_abs_srcdir=$ac_srcdir;;
1007 .) ac_abs_srcdir=$ac_abs_builddir;;
1008 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1009 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1012 case $ac_abs_builddir in
1013 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1015 case $ac_top_srcdir in
1016 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1017 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1018 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1023 # Check for guested configure; otherwise get Cygnus style configure.
1024 if test -f $ac_srcdir/configure.gnu; then
1026 $SHELL $ac_srcdir/configure.gnu --help=recursive
1027 elif test -f $ac_srcdir/configure; then
1029 $SHELL $ac_srcdir/configure --help=recursive
1030 elif test -f $ac_srcdir/configure.ac ||
1031 test -f $ac_srcdir/configure.in; then
1033 $ac_configure --help
1035 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1041 test -n "$ac_init_help" && exit 0
1042 if $ac_init_version; then
1045 Copyright (C) 2003 Free Software Foundation, Inc.
1046 This configure script is free software; the Free Software Foundation
1047 gives unlimited permission to copy, distribute and modify it.
1053 This file contains any messages produced by compilers while
1054 running configure, to aid debugging if configure makes a mistake.
1056 It was created by $as_me, which was
1057 generated by GNU Autoconf 2.59. Invocation command line was
1068 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1069 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1070 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1071 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1072 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1074 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1075 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1077 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1078 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1079 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1080 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1081 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1082 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1083 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1091 test -z "$as_dir" && as_dir=.
1092 echo "PATH: $as_dir"
1107 # Keep a trace of the command line.
1108 # Strip out --no-create and --no-recursion so they do not pile up.
1109 # Strip out --silent because we don't want to record it for future runs.
1110 # Also quote any args containing shell meta-characters.
1111 # Make two passes to allow for proper duplicate-argument suppression.
1116 ac_must_keep_next=false
1122 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1126 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1127 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1130 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1132 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1133 if test $ac_must_keep_next = true; then
1134 ac_must_keep_next=false # Got value, back to normal.
1137 *=* | --config-cache | -C | -disable-* | --disable-* \
1138 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1139 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1140 | -with-* | --with-* | -without-* | --without-* | --x)
1141 case "$ac_configure_args0 " in
1142 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1145 -* ) ac_must_keep_next=true ;;
1148 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1149 # Get rid of the leading space.
1155 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1156 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1158 # When interrupted or exit'd, cleanup temporary files, and complete
1159 # config.log. We remove comments because anyway the quotes in there
1160 # would cause problems or look ugly.
1161 # WARNING: Be sure not to use single quotes in there, as some shells,
1162 # such as our DU 5.0 friend, will then `close
' the trap.
1163 trap 'exit_status
=$?
1164 # Save into config.log some information that might help in debugging.
1169 ## ---------------- ##
1170 ## Cache variables. ##
1171 ## ---------------- ##
1174 # The following way of writing the cache mishandles newlines in values,
1177 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1180 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1185 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1192 ## ----------------- ##
1193 ## Output variables. ##
1194 ## ----------------- ##
1197 for ac_var
in $ac_subst_vars
1199 eval ac_val
=$
`echo $ac_var`
1200 echo "$ac_var='"'"'$ac_val'"'"'"
1204 if test -n "$ac_subst_files"; then
1211 for ac_var
in $ac_subst_files
1213 eval ac_val
=$
`echo $ac_var`
1214 echo "$ac_var='"'"'$ac_val'"'"'"
1219 if test -s confdefs.h
; then
1226 sed "/^$/d" confdefs.h |
sort
1229 test "$ac_signal" != 0 &&
1230 echo "$as_me: caught signal $ac_signal"
1231 echo "$as_me: exit $exit_status"
1233 rm -f core
*.core
&&
1234 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1237 for ac_signal in 1 2 13 15; do
1238 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1242 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1243 rm -rf conftest* confdefs.h
1244 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1247 # Predefined preprocessor variables.
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_NAME "$PACKAGE_NAME"
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_STRING "$PACKAGE_STRING"
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1274 # Let the site file select an alternate cache file if it wants to.
1275 # Prefer explicitly selected file to automatically selected ones.
1276 if test -z "$CONFIG_SITE"; then
1277 if test "x$prefix" != xNONE; then
1278 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1280 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1283 for ac_site_file in $CONFIG_SITE; do
1284 if test -r "$ac_site_file"; then
1285 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1286 echo "$as_me: loading site script $ac_site_file" >&6;}
1287 sed 's
/^
/|
/' "$ac_site_file" >&5
1292 if test -r "$cache_file"; then
1293 # Some versions of bash will fail to source /dev/null (special
1294 # files actually), so we avoid doing that.
1295 if test -f "$cache_file"; then
1296 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1297 echo "$as_me: loading cache $cache_file" >&6;}
1299 [\\/]* | ?:[\\/]* ) . $cache_file;;
1300 *) . ./$cache_file;;
1304 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1305 echo "$as_me: creating cache $cache_file" >&6;}
1309 # Check that the precious variables saved in the cache have kept the same
1311 ac_cache_corrupted=false
1312 for ac_var in `(set) 2>&1 |
1313 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1314 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1315 eval ac_new_set=\$ac_env_${ac_var}_set
1316 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1317 eval ac_new_val="\$ac_env_${ac_var}_value"
1318 case $ac_old_set,$ac_new_set in
1320 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1322 ac_cache_corrupted=: ;;
1324 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1325 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1326 ac_cache_corrupted=: ;;
1329 if test "x$ac_old_val" != "x$ac_new_val"; then
1330 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1331 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1332 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1333 echo "$as_me: former value: $ac_old_val" >&2;}
1334 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1335 echo "$as_me: current value: $ac_new_val" >&2;}
1336 ac_cache_corrupted=:
1339 # Pass precious variables to config.status.
1340 if test "$ac_new_set" = set; then
1342 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1343 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1344 *) ac_arg=$ac_var=$ac_new_val ;;
1346 case " $ac_configure_args " in
1347 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1348 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1352 if $ac_cache_corrupted; then
1353 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1354 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1355 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1356 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1357 { (exit 1); exit 1; }; }
1361 ac_cpp='$CPP $CPPFLAGS'
1362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1363 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1385 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1388 # Determine the host, build, and target systems
1390 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1391 if test -f $ac_dir/install-sh; then
1393 ac_install_sh="$ac_aux_dir/install-sh -c"
1395 elif test -f $ac_dir/install.sh; then
1397 ac_install_sh="$ac_aux_dir/install.sh -c"
1399 elif test -f $ac_dir/shtool; then
1401 ac_install_sh="$ac_aux_dir/shtool install -c"
1405 if test -z "$ac_aux_dir"; then
1406 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1407 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1408 { (exit 1); exit 1; }; }
1410 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1411 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1412 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1414 # Make sure we can run config.sub.
1415 $ac_config_sub sun4 >/dev/null 2>&1 ||
1416 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1417 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1418 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: checking build system type" >&5
1421 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1422 if test "${ac_cv_build+set}" = set; then
1423 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 ac_cv_build_alias=$build_alias
1426 test -z "$ac_cv_build_alias" &&
1427 ac_cv_build_alias=`$ac_config_guess`
1428 test -z "$ac_cv_build_alias" &&
1429 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1430 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1431 { (exit 1); exit 1; }; }
1432 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1433 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1434 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1435 { (exit 1); exit 1; }; }
1438 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1439 echo "${ECHO_T}$ac_cv_build" >&6
1441 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1442 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1443 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1446 echo "$as_me:$LINENO: checking host system type" >&5
1447 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1448 if test "${ac_cv_host+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1451 ac_cv_host_alias=$host_alias
1452 test -z "$ac_cv_host_alias" &&
1453 ac_cv_host_alias=$ac_cv_build_alias
1454 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1455 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1456 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1457 { (exit 1); exit 1; }; }
1460 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1461 echo "${ECHO_T}$ac_cv_host" >&6
1463 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1464 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1465 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1468 echo "$as_me:$LINENO: checking target system type" >&5
1469 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1470 if test "${ac_cv_target+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 ac_cv_target_alias=$target_alias
1474 test "x$ac_cv_target_alias" = "x" &&
1475 ac_cv_target_alias=$ac_cv_host_alias
1476 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1477 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1478 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1479 { (exit 1); exit 1; }; }
1482 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1483 echo "${ECHO_T}$ac_cv_target" >&6
1484 target=$ac_cv_target
1485 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1486 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1487 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1490 # The aliases save the names the user supplied, while $host etc.
1491 # will get canonicalized.
1492 test -n "$target_alias" &&
1493 test "$program_prefix$program_suffix$program_transform_name" = \
1495 program_prefix=${target_alias}-
1497 # Determine the noncanonical target name, for directory use.
1498 case ${build_alias} in
1499 "") build_noncanonical=${build} ;;
1500 *) build_noncanonical=${build_alias} ;;
1503 case ${host_alias} in
1504 "") host_noncanonical=${build_noncanonical} ;;
1505 *) host_noncanonical=${host_alias} ;;
1508 case ${target_alias} in
1509 "") target_noncanonical=${host_noncanonical} ;;
1510 *) target_noncanonical=${target_alias} ;;
1516 # Determine the target- and build-specific subdirectories
1517 # Prefix 'build-
' so this never conflicts with target_subdir.
1518 build_subdir="build-${build_noncanonical}"
1519 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1520 if ( test $srcdir = . && test -d gcc ) \
1521 || test -d $srcdir/../host-${host_noncanonical}; then
1522 host_subdir="host-${host_noncanonical}"
1527 target_subdir=${target_noncanonical}
1530 # Set program_transform_name
1531 test "$program_prefix" != NONE &&
1532 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1533 # Use a double $ so make ignores it.
1534 test "$program_suffix" != NONE &&
1535 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1536 # Double any \ or $. echo might interpret backslashes.
1537 # By default was `s,x,x', remove it
if useless.
1538 cat <<\_ACEOF
>conftest.
sed
1539 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1541 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1545 # Check for bogus environment variables.
1546 # Test if LIBRARY_PATH contains the notation for the current directory
1547 # since this would lead to problems installing/building glibc.
1548 # LIBRARY_PATH contains the current directory if one of the following
1550 # - one of the terminals (":" and ";") is the first or last sign
1551 # - two terminals occur directly after each other
1552 # - the path contains an element with a dot in it
1553 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1554 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1555 case ${LIBRARY_PATH} in
1556 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1557 library_path_setting
="contains current directory"
1560 library_path_setting
="ok"
1563 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1564 echo "${ECHO_T}$library_path_setting" >&6
1565 if test "$library_path_setting" != "ok"; then
1566 { { echo "$as_me:$LINENO: error:
1567 *** LIBRARY_PATH shouldn't contain the current directory when
1568 *** building gcc. Please change the environment variable
1569 *** and run configure again." >&5
1570 echo "$as_me: error:
1571 *** LIBRARY_PATH shouldn't contain the current directory when
1572 *** building gcc. Please change the environment variable
1573 *** and run configure again." >&2;}
1574 { (exit 1); exit 1; }; }
1577 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1578 # since this would lead to problems installing/building glibc.
1579 # GCC_EXEC_PREFIX contains the current directory if one of the following
1581 # - one of the terminals (":" and ";") is the first or last sign
1582 # - two terminals occur directly after each other
1583 # - the path contains an element with a dot in it
1584 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1585 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1586 case ${GCC_EXEC_PREFIX} in
1587 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1588 gcc_exec_prefix_setting
="contains current directory"
1591 gcc_exec_prefix_setting
="ok"
1594 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1595 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1596 if test "$gcc_exec_prefix_setting" != "ok"; then
1597 { { echo "$as_me:$LINENO: error:
1598 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1599 *** building gcc. Please change the environment variable
1600 *** and run configure again." >&5
1601 echo "$as_me: error:
1602 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1603 *** building gcc. Please change the environment variable
1604 *** and run configure again." >&2;}
1605 { (exit 1); exit 1; }; }
1612 # Specify the local prefix
1615 # Check whether --with-local-prefix or --without-local-prefix was given.
1616 if test "${with_local_prefix+set}" = set; then
1617 withval
="$with_local_prefix"
1618 case "${withval}" in
1619 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1620 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1621 { (exit 1); exit 1; }; } ;;
1623 *) local_prefix
=$with_local_prefix ;;
1627 # Default local prefix if it is empty
1628 if test x
$local_prefix = x
; then
1629 local_prefix
=/usr
/local
1632 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1633 # passed in by the toplevel make and thus we'd get different behavior
1634 # depending on where we built the sources.
1635 gcc_gxx_include_dir
=
1636 # Specify the g++ header file directory
1638 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1639 if test "${with_gxx_include_dir+set}" = set; then
1640 withval
="$with_gxx_include_dir"
1641 case "${withval}" in
1642 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1643 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1644 { (exit 1); exit 1; }; } ;;
1646 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1650 if test x
${gcc_gxx_include_dir} = x
; then
1651 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1652 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1654 libstdcxx_incdir
='c++/$(version)'
1655 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1660 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1661 if test "${with_cpp_install_dir+set}" = set; then
1662 withval
="$with_cpp_install_dir"
1663 if test x
$withval = xyes
; then
1664 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1665 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1666 { (exit 1); exit 1; }; }
1667 elif test x
$withval != xno
; then
1668 cpp_install_dir
=$withval
1672 # We would like to our source tree to be readonly. However when releases or
1673 # pre-releases are generated, the flex/bison generated files as well as the
1674 # various formats of manuals need to be included along with the rest of the
1675 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1678 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1679 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1680 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1681 if test "${enable_generated_files_in_srcdir+set}" = set; then
1682 enableval
="$enable_generated_files_in_srcdir"
1683 generated_files_in_srcdir
=$enableval
1685 generated_files_in_srcdir
=no
1688 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1689 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1691 if test "$generated_files_in_srcdir" = "yes"; then
1698 # -------------------
1699 # Find default linker
1700 # -------------------
1704 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1705 if test "${with_gnu_ld+set}" = set; then
1706 withval
="$with_gnu_ld"
1707 gnu_ld_flag
="$with_gnu_ld"
1712 # With pre-defined ld
1714 # Check whether --with-ld or --without-ld was given.
1715 if test "${with_ld+set}" = set; then
1717 DEFAULT_LINKER
="$with_ld"
1719 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1720 if test ! -x "$DEFAULT_LINKER"; then
1721 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1722 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1723 { (exit 1); exit 1; }; }
1724 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1728 cat >>confdefs.h
<<_ACEOF
1729 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1734 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1735 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1736 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1737 if test x
"$gnu_ld_flag" = x
"no"; then
1738 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1739 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1741 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1742 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1745 echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1749 # With demangler in GNU ld
1751 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1752 if test "${with_demangler_in_ld+set}" = set; then
1753 withval
="$with_demangler_in_ld"
1754 demangler_in_ld
="$with_demangler_in_ld"
1759 # ----------------------
1760 # Find default assembler
1761 # ----------------------
1765 # Check whether --with-gnu-as or --without-gnu-as was given.
1766 if test "${with_gnu_as+set}" = set; then
1767 withval
="$with_gnu_as"
1768 gas_flag
="$with_gnu_as"
1774 # Check whether --with-as or --without-as was given.
1775 if test "${with_as+set}" = set; then
1777 DEFAULT_ASSEMBLER
="$with_as"
1779 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1780 if test ! -x "$DEFAULT_ASSEMBLER"; then
1781 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1782 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1783 { (exit 1); exit 1; }; }
1784 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1788 cat >>confdefs.h
<<_ACEOF
1789 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1794 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1795 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1796 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1797 if test x
"$gas_flag" = x
"no"; then
1798 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1799 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1801 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1802 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1805 echo "$as_me:$LINENO: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1813 # If a non-executable a.out is present (e.g. created by GNU as above even if
1814 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1815 # file, even when creating an executable, so an execution test fails.
1816 # Remove possible default executable files to avoid this.
1818 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1819 # Autoconf includes it.
1820 rm -f a.out a.exe b.out
1822 # Find the native compiler
1824 ac_cpp
='$CPP $CPPFLAGS'
1825 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1828 if test -n "$ac_tool_prefix"; then
1829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1830 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC
="$CC" # Let the user override the test.
1839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1843 test -z "$as_dir" && as_dir
=.
1844 for ac_exec_ext
in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 if test -n "$CC"; then
1857 echo "$as_me:$LINENO: result: $CC" >&5
1858 echo "${ECHO_T}$CC" >&6
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1865 if test -z "$ac_cv_prog_CC"; then
1867 # Extract the first word of "gcc", so it can be a program name with args.
1868 set dummy gcc
; ac_word
=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1881 test -z "$as_dir" && as_dir
=.
1882 for ac_exec_ext
in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC
="gcc"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1907 if test -z "$CC"; then
1908 if test -n "$ac_tool_prefix"; then
1909 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1910 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 if test -n "$CC"; then
1917 ac_cv_prog_CC
="$CC" # Let the user override the test.
1919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1923 test -z "$as_dir" && as_dir
=.
1924 for ac_exec_ext
in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 if test -n "$CC"; then
1937 echo "$as_me:$LINENO: result: $CC" >&5
1938 echo "${ECHO_T}$CC" >&6
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1945 if test -z "$ac_cv_prog_CC"; then
1947 # Extract the first word of "cc", so it can be a program name with args.
1948 set dummy cc
; ac_word
=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 if test -n "$ac_ct_CC"; then
1955 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1961 test -z "$as_dir" && as_dir
=.
1962 for ac_exec_ext
in '' $ac_executable_extensions; do
1963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_ac_ct_CC
="cc"
1965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1974 if test -n "$ac_ct_CC"; then
1975 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976 echo "${ECHO_T}$ac_ct_CC" >&6
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1988 if test -z "$CC"; then
1989 # Extract the first word of "cc", so it can be a program name with args.
1990 set dummy cc
; ac_word
=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC
="$CC" # Let the user override the test.
2000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2004 test -z "$as_dir" && as_dir
=.
2005 for ac_exec_ext
in '' $ac_executable_extensions; do
2006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2008 ac_prog_rejected
=yes
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 if test $ac_prog_rejected = yes; then
2019 # We found a bogon in the path, so make sure we never use it.
2020 set dummy
$ac_cv_prog_CC
2022 if test $# != 0; then
2023 # We chose a different compiler from the bogus one.
2024 # However, it has the same basename, so the bogon will be chosen
2025 # first if we set CC to just the basename; use the full file name.
2027 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2033 if test -n "$CC"; then
2034 echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2042 if test -z "$CC"; then
2043 if test -n "$ac_tool_prefix"; then
2046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2047 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$CC"; then
2054 ac_cv_prog_CC
="$CC" # Let the user override the test.
2056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir
=.
2061 for ac_exec_ext
in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 if test -n "$CC"; then
2074 echo "$as_me:$LINENO: result: $CC" >&5
2075 echo "${ECHO_T}$CC" >&6
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2081 test -n "$CC" && break
2084 if test -z "$CC"; then
2088 # Extract the first word of "$ac_prog", so it can be a program name with args.
2089 set dummy
$ac_prog; ac_word
=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 if test -n "$ac_ct_CC"; then
2096 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2102 test -z "$as_dir" && as_dir
=.
2103 for ac_exec_ext
in '' $ac_executable_extensions; do
2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105 ac_cv_prog_ac_ct_CC
="$ac_prog"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2115 if test -n "$ac_ct_CC"; then
2116 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117 echo "${ECHO_T}$ac_ct_CC" >&6
2119 echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2123 test -n "$ac_ct_CC" && break
2132 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: no acceptable C compiler found in \$PATH
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2138 # Provide some information about the compiler.
2139 echo "$as_me:$LINENO:" \
2140 "checking for C compiler version" >&5
2141 ac_compiler
=`set X $ac_compile; echo $2`
2142 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2143 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }
2147 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2148 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }
2152 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2153 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }
2158 cat >conftest.
$ac_ext <<_ACEOF
2161 cat confdefs.h
>>conftest.
$ac_ext
2162 cat >>conftest.
$ac_ext <<_ACEOF
2163 /* end confdefs.h. */
2173 ac_clean_files_save
=$ac_clean_files
2174 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2175 # Try to create an executable without -o first, disregard a.out.
2176 # It will help us diagnose broken compilers, and finding out an intuition
2178 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2179 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2180 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2181 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2182 (eval $ac_link_default) 2>&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; then
2186 # Find the output, starting from the most likely. This scheme is
2187 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2190 # Be careful to initialize this variable, since it used to be cached.
2191 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2193 # b.out is created by i960 compilers.
2194 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2196 test -f "$ac_file" ||
continue
2198 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2201 # This is the source file.
2204 # We found the default executable, but exeext='' is most
2208 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2209 # FIXME: I believe we export ac_cv_exeext for Libtool,
2210 # but it would be cool to find out if it's true. Does anybody
2211 # maintain Libtool? --akim.
2219 echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.
$ac_ext >&5
2222 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&2;}
2226 { (exit 77); exit 77; }; }
2229 ac_exeext
=$ac_cv_exeext
2230 echo "$as_me:$LINENO: result: $ac_file" >&5
2231 echo "${ECHO_T}$ac_file" >&6
2233 # Check the compiler produces executables we can run. If not, either
2234 # the compiler is broken, or we cross compile.
2235 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2236 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2237 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2238 # If not cross compiling, check that we can run a simple program.
2239 if test "$cross_compiling" != yes; then
2240 if { ac_try
='./$ac_file'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2248 if test "$cross_compiling" = maybe
; then
2251 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2252 If you meant to cross compile, use \`--host'.
2253 See \`config.log' for more details." >&5
2254 echo "$as_me: error: cannot run C compiled programs.
2255 If you meant to cross compile, use \`--host'.
2256 See \`config.log' for more details." >&2;}
2257 { (exit 1); exit 1; }; }
2261 echo "$as_me:$LINENO: result: yes" >&5
2262 echo "${ECHO_T}yes" >&6
2264 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2265 ac_clean_files
=$ac_clean_files_save
2266 # Check the compiler produces executables we can run. If not, either
2267 # the compiler is broken, or we cross compile.
2268 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2269 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2270 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2271 echo "${ECHO_T}$cross_compiling" >&6
2273 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2274 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2276 (eval $ac_link) 2>&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; then
2280 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2281 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2282 # work properly (i.e., refer to `conftest.exe'), while it won't with
2284 for ac_file
in conftest.exe conftest conftest.
*; do
2285 test -f "$ac_file" ||
continue
2287 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2288 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2295 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&2;}
2299 { (exit 1); exit 1; }; }
2302 rm -f conftest
$ac_cv_exeext
2303 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2304 echo "${ECHO_T}$ac_cv_exeext" >&6
2306 rm -f conftest.
$ac_ext
2307 EXEEXT
=$ac_cv_exeext
2309 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2310 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2311 if test "${ac_cv_objext+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 cat >conftest.
$ac_ext <<_ACEOF
2317 cat confdefs.h
>>conftest.
$ac_ext
2318 cat >>conftest.
$ac_ext <<_ACEOF
2319 /* end confdefs.h. */
2329 rm -f conftest.o conftest.obj
2330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331 (eval $ac_compile) 2>&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; then
2335 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2337 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2338 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.
$ac_ext >&5
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2353 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2355 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356 echo "${ECHO_T}$ac_cv_objext" >&6
2357 OBJEXT
=$ac_cv_objext
2359 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat >conftest.
$ac_ext <<_ACEOF
2367 cat confdefs.h
>>conftest.
$ac_ext
2368 cat >>conftest.
$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2382 rm -f conftest.
$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>conftest.er1
2386 grep -v '^ *+' conftest.er1
>conftest.err
2388 cat conftest.err
>&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try
='test -z "$ac_c_werror_flag"
2392 || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try
='test -s conftest.$ac_objext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.
$ac_ext >&5
2411 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2412 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2415 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2416 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2417 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2418 ac_test_CFLAGS
=${CFLAGS+set}
2419 ac_save_CFLAGS
=$CFLAGS
2421 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2422 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2423 if test "${ac_cv_prog_cc_g+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 cat >conftest.
$ac_ext <<_ACEOF
2429 cat confdefs.h
>>conftest.
$ac_ext
2430 cat >>conftest.
$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2441 rm -f conftest.
$ac_objext
2442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443 (eval $ac_compile) 2>conftest.er1
2445 grep -v '^ *+' conftest.er1
>conftest.err
2447 cat conftest.err
>&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); } &&
2450 { ac_try
='test -z "$ac_c_werror_flag"
2451 || test ! -s conftest.err'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; } &&
2457 { ac_try
='test -s conftest.$ac_objext'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; }; then
2465 echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.
$ac_ext >&5
2470 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2473 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2474 if test "$ac_test_CFLAGS" = set; then
2475 CFLAGS
=$ac_save_CFLAGS
2476 elif test $ac_cv_prog_cc_g = yes; then
2477 if test "$GCC" = yes; then
2483 if test "$GCC" = yes; then
2489 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2490 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2491 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 ac_cv_prog_cc_stdc
=no
2496 cat >conftest.
$ac_ext <<_ACEOF
2499 cat confdefs.h
>>conftest.
$ac_ext
2500 cat >>conftest.
$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2504 #include <sys/types.h>
2505 #include <sys/stat.h>
2506 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2507 struct buf { int x; };
2508 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2509 static char *e (p, i)
2515 static char *f (char * (*g) (char **, int), char **p, ...)
2520 s = g (p, va_arg (v,int));
2525 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2526 function prototypes and stuff, but not '\xHH' hex character constants.
2527 These don't provoke an error unfortunately, instead are silently treated
2528 as 'x'. The following induces an error, until -std1 is added to get
2529 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2530 array size at least. It's necessary to write '\x00'==0 to get something
2531 that's true only with -std1. */
2532 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2534 int test (int i, double x);
2535 struct s1 {int (*f) (int a);};
2536 struct s2 {int (*f) (double a);};
2537 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2543 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2548 # Don't try gcc -ansi; that turns off useful extensions and
2549 # breaks some systems' header files.
2550 # AIX -qlanglvl=ansi
2551 # Ultrix and OSF/1 -std1
2552 # HP-UX 10.20 and later -Ae
2553 # HP-UX older versions -Aa -D_HPUX_SOURCE
2554 # SVR4 -Xc -D__EXTENSIONS__
2555 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2557 CC
="$ac_save_CC $ac_arg"
2558 rm -f conftest.
$ac_objext
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560 (eval $ac_compile) 2>conftest.er1
2562 grep -v '^ *+' conftest.er1
>conftest.err
2564 cat conftest.err
>&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } &&
2567 { ac_try
='test -z "$ac_c_werror_flag"
2568 || test ! -s conftest.err'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; } &&
2574 { ac_try
='test -s conftest.$ac_objext'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2580 ac_cv_prog_cc_stdc
=$ac_arg
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.
$ac_ext >&5
2587 rm -f conftest.err conftest.
$ac_objext
2589 rm -f conftest.
$ac_ext conftest.
$ac_objext
2594 case "x$ac_cv_prog_cc_stdc" in
2596 echo "$as_me:$LINENO: result: none needed" >&5
2597 echo "${ECHO_T}none needed" >&6 ;;
2599 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2600 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2601 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2604 # Some people use a C++ compiler to compile C. Since we use `exit',
2605 # in C++ we need to declare it. In case someone uses the same compiler
2606 # for both compiling C and C++ we need to have the C++ compiler decide
2607 # the declaration of exit, since it's the most demanding environment.
2608 cat >conftest.
$ac_ext <<_ACEOF
2613 rm -f conftest.
$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>conftest.er1
2617 grep -v '^ *+' conftest.er1
>conftest.err
2619 cat conftest.err
>&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try
='test -z "$ac_c_werror_flag"
2623 || test ! -s conftest.err'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try
='test -s conftest.$ac_objext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 for ac_declaration
in \
2637 'extern "C" void std::exit (int) throw (); using std::exit;' \
2638 'extern "C" void std::exit (int); using std::exit;' \
2639 'extern "C" void exit (int) throw ();' \
2640 'extern "C" void exit (int);' \
2643 cat >conftest.
$ac_ext <<_ACEOF
2646 cat confdefs.h
>>conftest.
$ac_ext
2647 cat >>conftest.
$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2659 rm -f conftest.
$ac_objext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661 (eval $ac_compile) 2>conftest.er1
2663 grep -v '^ *+' conftest.er1
>conftest.err
2665 cat conftest.err
>&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } &&
2668 { ac_try
='test -z "$ac_c_werror_flag"
2669 || test ! -s conftest.err'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; } &&
2675 { ac_try
='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.
$ac_ext >&5
2688 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2689 cat >conftest.
$ac_ext <<_ACEOF
2692 cat confdefs.h
>>conftest.
$ac_ext
2693 cat >>conftest.
$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2704 rm -f conftest.
$ac_objext
2705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706 (eval $ac_compile) 2>conftest.er1
2708 grep -v '^ *+' conftest.er1
>conftest.err
2710 cat conftest.err
>&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } &&
2713 { ac_try
='test -z "$ac_c_werror_flag"
2714 || test ! -s conftest.err'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; } &&
2720 { ac_try
='test -s conftest.$ac_objext'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2728 echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.
$ac_ext >&5
2732 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2735 if test -n "$ac_declaration"; then
2736 echo '#ifdef __cplusplus' >>confdefs.h
2737 echo $ac_declaration >>confdefs.h
2738 echo '#endif' >>confdefs.h
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.
$ac_ext >&5
2746 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2748 ac_cpp
='$CPP $CPPFLAGS'
2749 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2753 if test "x$CC" != xcc
; then
2754 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2755 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2757 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2758 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2760 set dummy
$CC; ac_cc
=`echo $2 |
2761 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2762 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 cat >conftest.
$ac_ext <<_ACEOF
2768 cat confdefs.h
>>conftest.
$ac_ext
2769 cat >>conftest.
$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2780 # Make sure it works both with $CC and with simple cc.
2781 # We do the test twice because some compilers refuse to overwrite an
2782 # existing .o file with -o, though they will create one.
2783 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2784 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); };
2795 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2796 if test "x$CC" != xcc
; then
2797 # Test first that cc exists at all.
2798 if { ac_try
='cc -c conftest.$ac_ext >&5'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2805 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } &&
2810 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); };
2819 # cc exists but doesn't like -o.
2820 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2825 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2830 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2831 echo "$as_me:$LINENO: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6
2834 echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6
2837 cat >>confdefs.h
<<\_ACEOF
2838 #define NO_MINUS_C_MINUS_O 1
2843 # expand $ac_aux_dir to an absolute path
2844 am_aux_dir
=`cd $ac_aux_dir && pwd`
2846 # FIXME: we rely on the cache variable name because
2847 # there is no other way.
2849 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2850 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2851 # Losing compiler, so override with the script.
2852 # FIXME: It is wrong to rewrite CC.
2853 # But if we don't then we get into trouble of one sort or another.
2854 # A longer-term fix would be to have automake use am__CC in this case,
2855 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2856 CC
="$am_aux_dir/compile $CC"
2859 # autoconf is lame and doesn't give us any substitution variable for this.
2860 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2861 NO_MINUS_C_MINUS_O
=yes
2863 OUTPUT_OPTION
='-o $@'
2868 # -------------------------
2869 # Check C compiler features
2870 # -------------------------
2873 ac_cpp
='$CPP $CPPFLAGS'
2874 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2877 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2878 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2879 # On Suns, sometimes $CPP names a directory.
2880 if test -n "$CPP" && test -d "$CPP"; then
2883 if test -z "$CPP"; then
2884 if test "${ac_cv_prog_CPP+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 # Double quotes because CPP needs to be expanded
2888 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2891 for ac_c_preproc_warn_flag
in '' yes
2893 # Use a header file that comes with gcc, so configuring glibc
2894 # with a fresh cross-compiler works.
2895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2896 # <limits.h> exists even on freestanding compilers.
2897 # On the NeXT, cc -E runs the code through the compiler's parser,
2898 # not just through cpp. "Syntax error" is here to catch this case.
2899 cat >conftest.
$ac_ext <<_ACEOF
2902 cat confdefs.h
>>conftest.
$ac_ext
2903 cat >>conftest.
$ac_ext <<_ACEOF
2904 /* end confdefs.h. */
2906 # include <limits.h>
2908 # include <assert.h>
2912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2915 grep -v '^ *+' conftest.er1
>conftest.err
2917 cat conftest.err
>&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } >/dev
/null
; then
2920 if test -s conftest.err
; then
2921 ac_cpp_err
=$ac_c_preproc_warn_flag
2922 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2929 if test -z "$ac_cpp_err"; then
2932 echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.
$ac_ext >&5
2935 # Broken: fails on valid input.
2938 rm -f conftest.err conftest.
$ac_ext
2940 # OK, works on sane cases. Now check whether non-existent headers
2941 # can be detected and how.
2942 cat >conftest.
$ac_ext <<_ACEOF
2945 cat confdefs.h
>>conftest.
$ac_ext
2946 cat >>conftest.
$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2948 #include <ac_nonexistent.h>
2950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2951 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2953 grep -v '^ *+' conftest.er1
>conftest.err
2955 cat conftest.err
>&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } >/dev
/null
; then
2958 if test -s conftest.err
; then
2959 ac_cpp_err
=$ac_c_preproc_warn_flag
2960 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2967 if test -z "$ac_cpp_err"; then
2968 # Broken: success on invalid input.
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.
$ac_ext >&5
2974 # Passes both tests.
2978 rm -f conftest.err conftest.
$ac_ext
2981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2982 rm -f conftest.err conftest.
$ac_ext
2983 if $ac_preproc_ok; then
2995 echo "$as_me:$LINENO: result: $CPP" >&5
2996 echo "${ECHO_T}$CPP" >&6
2998 for ac_c_preproc_warn_flag
in '' yes
3000 # Use a header file that comes with gcc, so configuring glibc
3001 # with a fresh cross-compiler works.
3002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3003 # <limits.h> exists even on freestanding compilers.
3004 # On the NeXT, cc -E runs the code through the compiler's parser,
3005 # not just through cpp. "Syntax error" is here to catch this case.
3006 cat >conftest.
$ac_ext <<_ACEOF
3009 cat confdefs.h
>>conftest.
$ac_ext
3010 cat >>conftest.
$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3013 # include <limits.h>
3015 # include <assert.h>
3019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3020 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3022 grep -v '^ *+' conftest.er1
>conftest.err
3024 cat conftest.err
>&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } >/dev
/null
; then
3027 if test -s conftest.err
; then
3028 ac_cpp_err
=$ac_c_preproc_warn_flag
3029 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3036 if test -z "$ac_cpp_err"; then
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.
$ac_ext >&5
3042 # Broken: fails on valid input.
3045 rm -f conftest.err conftest.
$ac_ext
3047 # OK, works on sane cases. Now check whether non-existent headers
3048 # can be detected and how.
3049 cat >conftest.
$ac_ext <<_ACEOF
3052 cat confdefs.h
>>conftest.
$ac_ext
3053 cat >>conftest.
$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3055 #include <ac_nonexistent.h>
3057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3058 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3060 grep -v '^ *+' conftest.er1
>conftest.err
3062 cat conftest.err
>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } >/dev
/null
; then
3065 if test -s conftest.err
; then
3066 ac_cpp_err
=$ac_c_preproc_warn_flag
3067 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3074 if test -z "$ac_cpp_err"; then
3075 # Broken: success on invalid input.
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.
$ac_ext >&5
3081 # Passes both tests.
3085 rm -f conftest.err conftest.
$ac_ext
3088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3089 rm -f conftest.err conftest.
$ac_ext
3090 if $ac_preproc_ok; then
3093 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3094 See \`config.log' for more details." >&5
3095 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3096 See \`config.log' for more details." >&2;}
3097 { (exit 1); exit 1; }; }
3101 ac_cpp
='$CPP $CPPFLAGS'
3102 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3107 echo "$as_me:$LINENO: checking for inline" >&5
3108 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3109 if test "${ac_cv_c_inline+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 for ac_kw
in inline __inline__ __inline
; do
3114 cat >conftest.
$ac_ext <<_ACEOF
3117 cat confdefs.h
>>conftest.
$ac_ext
3118 cat >>conftest.
$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3122 static $ac_kw foo_t static_foo () {return 0; }
3123 $ac_kw foo_t foo () {return 0; }
3127 rm -f conftest.
$ac_objext
3128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3129 (eval $ac_compile) 2>conftest.er1
3131 grep -v '^ *+' conftest.er1
>conftest.err
3133 cat conftest.err
>&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try
='test -z "$ac_c_werror_flag"
3137 || test ! -s conftest.err'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try
='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 ac_cv_c_inline
=$ac_kw; break
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.
$ac_ext >&5
3155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3159 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3160 echo "${ECHO_T}$ac_cv_c_inline" >&6
3163 case $ac_cv_c_inline in
3166 case $ac_cv_c_inline in
3168 *) ac_val
=$ac_cv_c_inline;;
3170 cat >>confdefs.h
<<_ACEOF
3172 #define inline $ac_val
3179 # sizeof(char) is 1 by definition.
3181 echo "$as_me:$LINENO: checking for egrep" >&5
3182 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3183 if test "${ac_cv_prog_egrep+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3187 then ac_cv_prog_egrep
='grep -E'
3188 else ac_cv_prog_egrep
='egrep'
3191 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3192 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3193 EGREP
=$ac_cv_prog_egrep
3196 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3197 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3198 if test "${ac_cv_header_stdc+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 cat >conftest.
$ac_ext <<_ACEOF
3204 cat confdefs.h
>>conftest.
$ac_ext
3205 cat >>conftest.
$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3220 rm -f conftest.
$ac_objext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>conftest.er1
3224 grep -v '^ *+' conftest.er1
>conftest.err
3226 cat conftest.err
>&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try
='test -z "$ac_c_werror_flag"
3230 || test ! -s conftest.err'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; } &&
3236 { ac_try
='test -s conftest.$ac_objext'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3242 ac_cv_header_stdc
=yes
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.
$ac_ext >&5
3247 ac_cv_header_stdc
=no
3249 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3251 if test $ac_cv_header_stdc = yes; then
3252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3253 cat >conftest.
$ac_ext <<_ACEOF
3256 cat confdefs.h
>>conftest.
$ac_ext
3257 cat >>conftest.
$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3263 $EGREP "memchr" >/dev
/null
2>&1; then
3266 ac_cv_header_stdc
=no
3272 if test $ac_cv_header_stdc = yes; then
3273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3274 cat >conftest.
$ac_ext <<_ACEOF
3277 cat confdefs.h
>>conftest.
$ac_ext
3278 cat >>conftest.
$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3284 $EGREP "free" >/dev
/null
2>&1; then
3287 ac_cv_header_stdc
=no
3293 if test $ac_cv_header_stdc = yes; then
3294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3295 if test "$cross_compiling" = yes; then
3298 cat >conftest.
$ac_ext <<_ACEOF
3301 cat confdefs.h
>>conftest.
$ac_ext
3302 cat >>conftest.
$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3305 #if ((' ' & 0x0FF) == 0x020)
3306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3309 # define ISLOWER(c) \
3310 (('a' <= (c) && (c) <= 'i') \
3311 || ('j' <= (c) && (c) <= 'r') \
3312 || ('s' <= (c) && (c) <= 'z'))
3313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3321 for (i = 0; i < 256; i++)
3322 if (XOR (islower (i), ISLOWER (i))
3323 || toupper (i) != TOUPPER (i))
3328 rm -f conftest
$ac_exeext
3329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3330 (eval $ac_link) 2>&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; }; then
3341 echo "$as_me: program exited with status $ac_status" >&5
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.
$ac_ext >&5
3346 ac_cv_header_stdc
=no
3348 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3352 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3353 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3354 if test $ac_cv_header_stdc = yes; then
3356 cat >>confdefs.h
<<\_ACEOF
3357 #define STDC_HEADERS 1
3362 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3372 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3373 inttypes.h stdint.h unistd.h
3375 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3376 echo "$as_me:$LINENO: checking for $ac_header" >&5
3377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 cat >conftest.
$ac_ext <<_ACEOF
3384 cat confdefs.h
>>conftest.
$ac_ext
3385 cat >>conftest.
$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3387 $ac_includes_default
3389 #include <$ac_header>
3391 rm -f conftest.
$ac_objext
3392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393 (eval $ac_compile) 2>conftest.er1
3395 grep -v '^ *+' conftest.er1
>conftest.err
3397 cat conftest.err
>&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try
='test -z "$ac_c_werror_flag"
3401 || test ! -s conftest.err'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; } &&
3407 { ac_try
='test -s conftest.$ac_objext'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; }; then
3413 eval "$as_ac_Header=yes"
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.
$ac_ext >&5
3418 eval "$as_ac_Header=no"
3420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3425 cat >>confdefs.h
<<_ACEOF
3426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3434 echo "$as_me:$LINENO: checking for void *" >&5
3435 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3436 if test "${ac_cv_type_void_p+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 cat >conftest.
$ac_ext <<_ACEOF
3442 cat confdefs.h
>>conftest.
$ac_ext
3443 cat >>conftest.
$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3445 $ac_includes_default
3451 if (sizeof (void *))
3457 rm -f conftest.
$ac_objext
3458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>conftest.er1
3461 grep -v '^ *+' conftest.er1
>conftest.err
3463 cat conftest.err
>&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try
='test -z "$ac_c_werror_flag"
3467 || test ! -s conftest.err'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; } &&
3473 { ac_try
='test -s conftest.$ac_objext'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3479 ac_cv_type_void_p
=yes
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.
$ac_ext >&5
3484 ac_cv_type_void_p
=no
3486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3488 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3489 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3491 echo "$as_me:$LINENO: checking size of void *" >&5
3492 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3493 if test "${ac_cv_sizeof_void_p+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 if test "$ac_cv_type_void_p" = yes; then
3497 # The cast to unsigned long works around a bug in the HP C Compiler
3498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3500 # This bug is HP SR number 8606223364.
3501 if test "$cross_compiling" = yes; then
3502 # Depending upon the size, compute the lo and hi bounds.
3503 cat >conftest.
$ac_ext <<_ACEOF
3506 cat confdefs.h
>>conftest.
$ac_ext
3507 cat >>conftest.
$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3509 $ac_includes_default
3513 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3520 rm -f conftest.
$ac_objext
3521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3522 (eval $ac_compile) 2>conftest.er1
3524 grep -v '^ *+' conftest.er1
>conftest.err
3526 cat conftest.err
>&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } &&
3529 { ac_try
='test -z "$ac_c_werror_flag"
3530 || test ! -s conftest.err'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try
='test -s conftest.$ac_objext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3544 cat >conftest.
$ac_ext <<_ACEOF
3547 cat confdefs.h
>>conftest.
$ac_ext
3548 cat >>conftest.
$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 $ac_includes_default
3554 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3561 rm -f conftest.
$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3565 grep -v '^ *+' conftest.er1
>conftest.err
3567 cat conftest.err
>&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try
='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try
='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 ac_hi
=$ac_mid; break
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.
$ac_ext >&5
3588 ac_lo
=`expr $ac_mid + 1`
3589 if test $ac_lo -le $ac_mid; then
3593 ac_mid
=`expr 2 '*' $ac_mid + 1`
3595 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.
$ac_ext >&5
3601 cat >conftest.
$ac_ext <<_ACEOF
3604 cat confdefs.h
>>conftest.
$ac_ext
3605 cat >>conftest.
$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3607 $ac_includes_default
3611 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3618 rm -f conftest.
$ac_objext
3619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3620 (eval $ac_compile) 2>conftest.er1
3622 grep -v '^ *+' conftest.er1
>conftest.err
3624 cat conftest.err
>&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } &&
3627 { ac_try
='test -z "$ac_c_werror_flag"
3628 || test ! -s conftest.err'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; } &&
3634 { ac_try
='test -s conftest.$ac_objext'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; }; then
3642 cat >conftest.
$ac_ext <<_ACEOF
3645 cat confdefs.h
>>conftest.
$ac_ext
3646 cat >>conftest.
$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 $ac_includes_default
3652 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3659 rm -f conftest.
$ac_objext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3661 (eval $ac_compile) 2>conftest.er1
3663 grep -v '^ *+' conftest.er1
>conftest.err
3665 cat conftest.err
>&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try
='test -z "$ac_c_werror_flag"
3669 || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try
='test -s conftest.$ac_objext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_lo
=$ac_mid; break
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.
$ac_ext >&5
3686 ac_hi
=`expr '(' $ac_mid ')' - 1`
3687 if test $ac_mid -le $ac_hi; then
3691 ac_mid
=`expr 2 '*' $ac_mid`
3693 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.
$ac_ext >&5
3701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3703 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3704 # Binary search between lo and hi bounds.
3705 while test "x$ac_lo" != "x$ac_hi"; do
3706 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3707 cat >conftest.
$ac_ext <<_ACEOF
3710 cat confdefs.h
>>conftest.
$ac_ext
3711 cat >>conftest.
$ac_ext <<_ACEOF
3712 /* end confdefs.h. */
3713 $ac_includes_default
3717 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3724 rm -f conftest.
$ac_objext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3726 (eval $ac_compile) 2>conftest.er1
3728 grep -v '^ *+' conftest.er1
>conftest.err
3730 cat conftest.err
>&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } &&
3733 { ac_try
='test -z "$ac_c_werror_flag"
3734 || test ! -s conftest.err'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; } &&
3740 { ac_try
='test -s conftest.$ac_objext'
3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; }; then
3748 echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.
$ac_ext >&5
3751 ac_lo
=`expr '(' $ac_mid ')' + 1`
3753 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3756 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3757 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3758 See \`config.log' for more details." >&5
3759 echo "$as_me: error: cannot compute sizeof (void *), 77
3760 See \`config.log' for more details." >&2;}
3761 { (exit 1); exit 1; }; } ;;
3764 if test "$cross_compiling" = yes; then
3765 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3766 See \`config.log' for more details." >&5
3767 echo "$as_me: error: cannot run test program while cross compiling
3768 See \`config.log' for more details." >&2;}
3769 { (exit 1); exit 1; }; }
3771 cat >conftest.
$ac_ext <<_ACEOF
3774 cat confdefs.h
>>conftest.
$ac_ext
3775 cat >>conftest.
$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3777 $ac_includes_default
3778 long longval () { return (long) (sizeof (void *)); }
3779 unsigned long ulongval () { return (long) (sizeof (void *)); }
3786 FILE *f = fopen ("conftest.val", "w");
3789 if (((long) (sizeof (void *))) < 0)
3791 long i = longval ();
3792 if (i != ((long) (sizeof (void *))))
3794 fprintf (f, "%ld\n", i);
3798 unsigned long i = ulongval ();
3799 if (i != ((long) (sizeof (void *))))
3801 fprintf (f, "%lu\n", i);
3803 exit (ferror (f) || fclose (f) != 0);
3809 rm -f conftest
$ac_exeext
3810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3811 (eval $ac_link) 2>&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3820 ac_cv_sizeof_void_p
=`cat conftest.val`
3822 echo "$as_me: program exited with status $ac_status" >&5
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.
$ac_ext >&5
3827 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3828 See \`config.log' for more details." >&5
3829 echo "$as_me: error: cannot compute sizeof (void *), 77
3830 See \`config.log' for more details." >&2;}
3831 { (exit 1); exit 1; }; }
3833 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3838 ac_cv_sizeof_void_p
=0
3841 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3842 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3843 cat >>confdefs.h
<<_ACEOF
3844 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3848 echo "$as_me:$LINENO: checking for short" >&5
3849 echo $ECHO_N "checking for short... $ECHO_C" >&6
3850 if test "${ac_cv_type_short+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 cat >conftest.
$ac_ext <<_ACEOF
3856 cat confdefs.h
>>conftest.
$ac_ext
3857 cat >>conftest.
$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3859 $ac_includes_default
3871 rm -f conftest.
$ac_objext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>conftest.er1
3875 grep -v '^ *+' conftest.er1
>conftest.err
3877 cat conftest.err
>&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try
='test -z "$ac_c_werror_flag"
3881 || test ! -s conftest.err'
3882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; } &&
3887 { ac_try
='test -s conftest.$ac_objext'
3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3893 ac_cv_type_short
=yes
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.
$ac_ext >&5
3900 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3902 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3903 echo "${ECHO_T}$ac_cv_type_short" >&6
3905 echo "$as_me:$LINENO: checking size of short" >&5
3906 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3907 if test "${ac_cv_sizeof_short+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 if test "$ac_cv_type_short" = yes; then
3911 # The cast to unsigned long works around a bug in the HP C Compiler
3912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3914 # This bug is HP SR number 8606223364.
3915 if test "$cross_compiling" = yes; then
3916 # Depending upon the size, compute the lo and hi bounds.
3917 cat >conftest.
$ac_ext <<_ACEOF
3920 cat confdefs.h
>>conftest.
$ac_ext
3921 cat >>conftest.
$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3923 $ac_includes_default
3927 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3934 rm -f conftest.
$ac_objext
3935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3936 (eval $ac_compile) 2>conftest.er1
3938 grep -v '^ *+' conftest.er1
>conftest.err
3940 cat conftest.err
>&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } &&
3943 { ac_try
='test -z "$ac_c_werror_flag"
3944 || test ! -s conftest.err'
3945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }; } &&
3950 { ac_try
='test -s conftest.$ac_objext'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3958 cat >conftest.
$ac_ext <<_ACEOF
3961 cat confdefs.h
>>conftest.
$ac_ext
3962 cat >>conftest.
$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 $ac_includes_default
3968 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3975 rm -f conftest.
$ac_objext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977 (eval $ac_compile) 2>conftest.er1
3979 grep -v '^ *+' conftest.er1
>conftest.err
3981 cat conftest.err
>&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try
='test -z "$ac_c_werror_flag"
3985 || test ! -s conftest.err'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; } &&
3991 { ac_try
='test -s conftest.$ac_objext'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3997 ac_hi
=$ac_mid; break
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.
$ac_ext >&5
4002 ac_lo
=`expr $ac_mid + 1`
4003 if test $ac_lo -le $ac_mid; then
4007 ac_mid
=`expr 2 '*' $ac_mid + 1`
4009 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.
$ac_ext >&5
4015 cat >conftest.
$ac_ext <<_ACEOF
4018 cat confdefs.h
>>conftest.
$ac_ext
4019 cat >>conftest.
$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4021 $ac_includes_default
4025 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4032 rm -f conftest.
$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>conftest.er1
4036 grep -v '^ *+' conftest.er1
>conftest.err
4038 cat conftest.err
>&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try
='test -z "$ac_c_werror_flag"
4042 || test ! -s conftest.err'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; } &&
4048 { ac_try
='test -s conftest.$ac_objext'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4056 cat >conftest.
$ac_ext <<_ACEOF
4059 cat confdefs.h
>>conftest.
$ac_ext
4060 cat >>conftest.
$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 $ac_includes_default
4066 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4073 rm -f conftest.
$ac_objext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>conftest.er1
4077 grep -v '^ *+' conftest.er1
>conftest.err
4079 cat conftest.err
>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try
='test -z "$ac_c_werror_flag"
4083 || test ! -s conftest.err'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try
='test -s conftest.$ac_objext'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 ac_lo
=$ac_mid; break
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.
$ac_ext >&5
4100 ac_hi
=`expr '(' $ac_mid ')' - 1`
4101 if test $ac_mid -le $ac_hi; then
4105 ac_mid
=`expr 2 '*' $ac_mid`
4107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.
$ac_ext >&5
4115 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4118 # Binary search between lo and hi bounds.
4119 while test "x$ac_lo" != "x$ac_hi"; do
4120 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4121 cat >conftest.
$ac_ext <<_ACEOF
4124 cat confdefs.h
>>conftest.
$ac_ext
4125 cat >>conftest.
$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 $ac_includes_default
4131 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4138 rm -f conftest.
$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140 (eval $ac_compile) 2>conftest.er1
4142 grep -v '^ *+' conftest.er1
>conftest.err
4144 cat conftest.err
>&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try
='test -z "$ac_c_werror_flag"
4148 || test ! -s conftest.err'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; } &&
4154 { ac_try
='test -s conftest.$ac_objext'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.
$ac_ext >&5
4165 ac_lo
=`expr '(' $ac_mid ')' + 1`
4167 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4170 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4171 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4172 See \`config.log' for more details." >&5
4173 echo "$as_me: error: cannot compute sizeof (short), 77
4174 See \`config.log' for more details." >&2;}
4175 { (exit 1); exit 1; }; } ;;
4178 if test "$cross_compiling" = yes; then
4179 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4180 See \`config.log' for more details." >&5
4181 echo "$as_me: error: cannot run test program while cross compiling
4182 See \`config.log' for more details." >&2;}
4183 { (exit 1); exit 1; }; }
4185 cat >conftest.
$ac_ext <<_ACEOF
4188 cat confdefs.h
>>conftest.
$ac_ext
4189 cat >>conftest.
$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4191 $ac_includes_default
4192 long longval () { return (long) (sizeof (short)); }
4193 unsigned long ulongval () { return (long) (sizeof (short)); }
4200 FILE *f = fopen ("conftest.val", "w");
4203 if (((long) (sizeof (short))) < 0)
4205 long i = longval ();
4206 if (i != ((long) (sizeof (short))))
4208 fprintf (f, "%ld\n", i);
4212 unsigned long i = ulongval ();
4213 if (i != ((long) (sizeof (short))))
4215 fprintf (f, "%lu\n", i);
4217 exit (ferror (f) || fclose (f) != 0);
4223 rm -f conftest
$ac_exeext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 ac_cv_sizeof_short
=`cat conftest.val`
4236 echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.
$ac_ext >&5
4241 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4242 See \`config.log' for more details." >&5
4243 echo "$as_me: error: cannot compute sizeof (short), 77
4244 See \`config.log' for more details." >&2;}
4245 { (exit 1); exit 1; }; }
4247 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4252 ac_cv_sizeof_short
=0
4255 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4256 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4257 cat >>confdefs.h
<<_ACEOF
4258 #define SIZEOF_SHORT $ac_cv_sizeof_short
4262 echo "$as_me:$LINENO: checking for int" >&5
4263 echo $ECHO_N "checking for int... $ECHO_C" >&6
4264 if test "${ac_cv_type_int+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 cat >conftest.
$ac_ext <<_ACEOF
4270 cat confdefs.h
>>conftest.
$ac_ext
4271 cat >>conftest.
$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 $ac_includes_default
4285 rm -f conftest.
$ac_objext
4286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4287 (eval $ac_compile) 2>conftest.er1
4289 grep -v '^ *+' conftest.er1
>conftest.err
4291 cat conftest.err
>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try
='test -z "$ac_c_werror_flag"
4295 || test ! -s conftest.err'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try
='test -s conftest.$ac_objext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.
$ac_ext >&5
4314 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4316 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4317 echo "${ECHO_T}$ac_cv_type_int" >&6
4319 echo "$as_me:$LINENO: checking size of int" >&5
4320 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4321 if test "${ac_cv_sizeof_int+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 if test "$ac_cv_type_int" = yes; then
4325 # The cast to unsigned long works around a bug in the HP C Compiler
4326 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4327 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4328 # This bug is HP SR number 8606223364.
4329 if test "$cross_compiling" = yes; then
4330 # Depending upon the size, compute the lo and hi bounds.
4331 cat >conftest.
$ac_ext <<_ACEOF
4334 cat confdefs.h
>>conftest.
$ac_ext
4335 cat >>conftest.
$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 $ac_includes_default
4341 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4348 rm -f conftest.
$ac_objext
4349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350 (eval $ac_compile) 2>conftest.er1
4352 grep -v '^ *+' conftest.er1
>conftest.err
4354 cat conftest.err
>&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try
='test -z "$ac_c_werror_flag"
4358 || test ! -s conftest.err'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try
='test -s conftest.$ac_objext'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; }; then
4372 cat >conftest.
$ac_ext <<_ACEOF
4375 cat confdefs.h
>>conftest.
$ac_ext
4376 cat >>conftest.
$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 $ac_includes_default
4382 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4389 rm -f conftest.
$ac_objext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391 (eval $ac_compile) 2>conftest.er1
4393 grep -v '^ *+' conftest.er1
>conftest.err
4395 cat conftest.err
>&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } &&
4398 { ac_try
='test -z "$ac_c_werror_flag"
4399 || test ! -s conftest.err'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; } &&
4405 { ac_try
='test -s conftest.$ac_objext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 ac_hi
=$ac_mid; break
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.
$ac_ext >&5
4416 ac_lo
=`expr $ac_mid + 1`
4417 if test $ac_lo -le $ac_mid; then
4421 ac_mid
=`expr 2 '*' $ac_mid + 1`
4423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.
$ac_ext >&5
4429 cat >conftest.
$ac_ext <<_ACEOF
4432 cat confdefs.h
>>conftest.
$ac_ext
4433 cat >>conftest.
$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4435 $ac_includes_default
4439 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4446 rm -f conftest.
$ac_objext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448 (eval $ac_compile) 2>conftest.er1
4450 grep -v '^ *+' conftest.er1
>conftest.err
4452 cat conftest.err
>&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try
='test -z "$ac_c_werror_flag"
4456 || test ! -s conftest.err'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; } &&
4462 { ac_try
='test -s conftest.$ac_objext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4470 cat >conftest.
$ac_ext <<_ACEOF
4473 cat confdefs.h
>>conftest.
$ac_ext
4474 cat >>conftest.
$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 $ac_includes_default
4480 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4487 rm -f conftest.
$ac_objext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>conftest.er1
4491 grep -v '^ *+' conftest.er1
>conftest.err
4493 cat conftest.err
>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try
='test -z "$ac_c_werror_flag"
4497 || test ! -s conftest.err'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; } &&
4503 { ac_try
='test -s conftest.$ac_objext'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 ac_lo
=$ac_mid; break
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.
$ac_ext >&5
4514 ac_hi
=`expr '(' $ac_mid ')' - 1`
4515 if test $ac_mid -le $ac_hi; then
4519 ac_mid
=`expr 2 '*' $ac_mid`
4521 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4524 echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.
$ac_ext >&5
4529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4531 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4532 # Binary search between lo and hi bounds.
4533 while test "x$ac_lo" != "x$ac_hi"; do
4534 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4535 cat >conftest.
$ac_ext <<_ACEOF
4538 cat confdefs.h
>>conftest.
$ac_ext
4539 cat >>conftest.
$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 $ac_includes_default
4545 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4552 rm -f conftest.
$ac_objext
4553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4554 (eval $ac_compile) 2>conftest.er1
4556 grep -v '^ *+' conftest.er1
>conftest.err
4558 cat conftest.err
>&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } &&
4561 { ac_try
='test -z "$ac_c_werror_flag"
4562 || test ! -s conftest.err'
4563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; } &&
4568 { ac_try
='test -s conftest.$ac_objext'
4569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.
$ac_ext >&5
4579 ac_lo
=`expr '(' $ac_mid ')' + 1`
4581 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4584 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4585 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4586 See \`config.log' for more details." >&5
4587 echo "$as_me: error: cannot compute sizeof (int), 77
4588 See \`config.log' for more details." >&2;}
4589 { (exit 1); exit 1; }; } ;;
4592 if test "$cross_compiling" = yes; then
4593 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4594 See \`config.log' for more details." >&5
4595 echo "$as_me: error: cannot run test program while cross compiling
4596 See \`config.log' for more details." >&2;}
4597 { (exit 1); exit 1; }; }
4599 cat >conftest.
$ac_ext <<_ACEOF
4602 cat confdefs.h
>>conftest.
$ac_ext
4603 cat >>conftest.
$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605 $ac_includes_default
4606 long longval () { return (long) (sizeof (int)); }
4607 unsigned long ulongval () { return (long) (sizeof (int)); }
4614 FILE *f = fopen ("conftest.val", "w");
4617 if (((long) (sizeof (int))) < 0)
4619 long i = longval ();
4620 if (i != ((long) (sizeof (int))))
4622 fprintf (f, "%ld\n", i);
4626 unsigned long i = ulongval ();
4627 if (i != ((long) (sizeof (int))))
4629 fprintf (f, "%lu\n", i);
4631 exit (ferror (f) || fclose (f) != 0);
4637 rm -f conftest
$ac_exeext
4638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4639 (eval $ac_link) 2>&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
4648 ac_cv_sizeof_int
=`cat conftest.val`
4650 echo "$as_me: program exited with status $ac_status" >&5
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.
$ac_ext >&5
4655 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4656 See \`config.log' for more details." >&5
4657 echo "$as_me: error: cannot compute sizeof (int), 77
4658 See \`config.log' for more details." >&2;}
4659 { (exit 1); exit 1; }; }
4661 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4669 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4670 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4671 cat >>confdefs.h
<<_ACEOF
4672 #define SIZEOF_INT $ac_cv_sizeof_int
4676 echo "$as_me:$LINENO: checking for long" >&5
4677 echo $ECHO_N "checking for long... $ECHO_C" >&6
4678 if test "${ac_cv_type_long+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 cat >conftest.
$ac_ext <<_ACEOF
4684 cat confdefs.h
>>conftest.
$ac_ext
4685 cat >>conftest.
$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4687 $ac_includes_default
4699 rm -f conftest.
$ac_objext
4700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4701 (eval $ac_compile) 2>conftest.er1
4703 grep -v '^ *+' conftest.er1
>conftest.err
4705 cat conftest.err
>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try
='test -z "$ac_c_werror_flag"
4709 || test ! -s conftest.err'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; } &&
4715 { ac_try
='test -s conftest.$ac_objext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.
$ac_ext >&5
4728 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4730 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4731 echo "${ECHO_T}$ac_cv_type_long" >&6
4733 echo "$as_me:$LINENO: checking size of long" >&5
4734 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4735 if test "${ac_cv_sizeof_long+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 if test "$ac_cv_type_long" = yes; then
4739 # The cast to unsigned long works around a bug in the HP C Compiler
4740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4742 # This bug is HP SR number 8606223364.
4743 if test "$cross_compiling" = yes; then
4744 # Depending upon the size, compute the lo and hi bounds.
4745 cat >conftest.
$ac_ext <<_ACEOF
4748 cat confdefs.h
>>conftest.
$ac_ext
4749 cat >>conftest.
$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4751 $ac_includes_default
4755 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4762 rm -f conftest.
$ac_objext
4763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4764 (eval $ac_compile) 2>conftest.er1
4766 grep -v '^ *+' conftest.er1
>conftest.err
4768 cat conftest.err
>&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } &&
4771 { ac_try
='test -z "$ac_c_werror_flag"
4772 || test ! -s conftest.err'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; } &&
4778 { ac_try
='test -s conftest.$ac_objext'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; }; then
4786 cat >conftest.
$ac_ext <<_ACEOF
4789 cat confdefs.h
>>conftest.
$ac_ext
4790 cat >>conftest.
$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_includes_default
4796 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4803 rm -f conftest.
$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>conftest.er1
4807 grep -v '^ *+' conftest.er1
>conftest.err
4809 cat conftest.err
>&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try
='test -z "$ac_c_werror_flag"
4813 || test ! -s conftest.err'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; } &&
4819 { ac_try
='test -s conftest.$ac_objext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 ac_hi
=$ac_mid; break
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.
$ac_ext >&5
4830 ac_lo
=`expr $ac_mid + 1`
4831 if test $ac_lo -le $ac_mid; then
4835 ac_mid
=`expr 2 '*' $ac_mid + 1`
4837 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.
$ac_ext >&5
4843 cat >conftest.
$ac_ext <<_ACEOF
4846 cat confdefs.h
>>conftest.
$ac_ext
4847 cat >>conftest.
$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849 $ac_includes_default
4853 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4860 rm -f conftest.
$ac_objext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>conftest.er1
4864 grep -v '^ *+' conftest.er1
>conftest.err
4866 cat conftest.err
>&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try
='test -z "$ac_c_werror_flag"
4870 || test ! -s conftest.err'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try
='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4884 cat >conftest.
$ac_ext <<_ACEOF
4887 cat confdefs.h
>>conftest.
$ac_ext
4888 cat >>conftest.
$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 $ac_includes_default
4894 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4901 rm -f conftest.
$ac_objext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>conftest.er1
4905 grep -v '^ *+' conftest.er1
>conftest.err
4907 cat conftest.err
>&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } &&
4910 { ac_try
='test -z "$ac_c_werror_flag"
4911 || test ! -s conftest.err'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; } &&
4917 { ac_try
='test -s conftest.$ac_objext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_lo
=$ac_mid; break
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.
$ac_ext >&5
4928 ac_hi
=`expr '(' $ac_mid ')' - 1`
4929 if test $ac_mid -le $ac_hi; then
4933 ac_mid
=`expr 2 '*' $ac_mid`
4935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4938 echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.
$ac_ext >&5
4943 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4946 # Binary search between lo and hi bounds.
4947 while test "x$ac_lo" != "x$ac_hi"; do
4948 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4949 cat >conftest.
$ac_ext <<_ACEOF
4952 cat confdefs.h
>>conftest.
$ac_ext
4953 cat >>conftest.
$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4955 $ac_includes_default
4959 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4966 rm -f conftest.
$ac_objext
4967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968 (eval $ac_compile) 2>conftest.er1
4970 grep -v '^ *+' conftest.er1
>conftest.err
4972 cat conftest.err
>&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try
='test -z "$ac_c_werror_flag"
4976 || test ! -s conftest.err'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; } &&
4982 { ac_try
='test -s conftest.$ac_objext'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.
$ac_ext >&5
4993 ac_lo
=`expr '(' $ac_mid ')' + 1`
4995 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4998 ?
*) ac_cv_sizeof_long
=$ac_lo;;
4999 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5000 See \`config.log' for more details." >&5
5001 echo "$as_me: error: cannot compute sizeof (long), 77
5002 See \`config.log' for more details." >&2;}
5003 { (exit 1); exit 1; }; } ;;
5006 if test "$cross_compiling" = yes; then
5007 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5008 See \`config.log' for more details." >&5
5009 echo "$as_me: error: cannot run test program while cross compiling
5010 See \`config.log' for more details." >&2;}
5011 { (exit 1); exit 1; }; }
5013 cat >conftest.
$ac_ext <<_ACEOF
5016 cat confdefs.h
>>conftest.
$ac_ext
5017 cat >>conftest.
$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 $ac_includes_default
5020 long longval () { return (long) (sizeof (long)); }
5021 unsigned long ulongval () { return (long) (sizeof (long)); }
5028 FILE *f = fopen ("conftest.val", "w");
5031 if (((long) (sizeof (long))) < 0)
5033 long i = longval ();
5034 if (i != ((long) (sizeof (long))))
5036 fprintf (f, "%ld\n", i);
5040 unsigned long i = ulongval ();
5041 if (i != ((long) (sizeof (long))))
5043 fprintf (f, "%lu\n", i);
5045 exit (ferror (f) || fclose (f) != 0);
5051 rm -f conftest
$ac_exeext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_cv_sizeof_long
=`cat conftest.val`
5064 echo "$as_me: program exited with status $ac_status" >&5
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.
$ac_ext >&5
5069 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5070 See \`config.log' for more details." >&5
5071 echo "$as_me: error: cannot compute sizeof (long), 77
5072 See \`config.log' for more details." >&2;}
5073 { (exit 1); exit 1; }; }
5075 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5083 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5084 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5085 cat >>confdefs.h
<<_ACEOF
5086 #define SIZEOF_LONG $ac_cv_sizeof_long
5090 echo "$as_me:$LINENO: checking for long long" >&5
5091 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5092 if test "${ac_cv_type_long_long+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 cat >conftest.
$ac_ext <<_ACEOF
5098 cat confdefs.h
>>conftest.
$ac_ext
5099 cat >>conftest.
$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 $ac_includes_default
5105 if ((long long *) 0)
5107 if (sizeof (long long))
5113 rm -f conftest.
$ac_objext
5114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5115 (eval $ac_compile) 2>conftest.er1
5117 grep -v '^ *+' conftest.er1
>conftest.err
5119 cat conftest.err
>&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } &&
5122 { ac_try
='test -z "$ac_c_werror_flag"
5123 || test ! -s conftest.err'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; } &&
5129 { ac_try
='test -s conftest.$ac_objext'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; }; then
5135 ac_cv_type_long_long
=yes
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.
$ac_ext >&5
5140 ac_cv_type_long_long
=no
5142 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5144 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5145 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5146 if test $ac_cv_type_long_long = yes; then
5148 cat >>confdefs.h
<<_ACEOF
5149 #define HAVE_LONG_LONG 1
5152 echo "$as_me:$LINENO: checking for long long" >&5
5153 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5154 if test "${ac_cv_type_long_long+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 cat >conftest.
$ac_ext <<_ACEOF
5160 cat confdefs.h
>>conftest.
$ac_ext
5161 cat >>conftest.
$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5163 $ac_includes_default
5167 if ((long long *) 0)
5169 if (sizeof (long long))
5175 rm -f conftest.
$ac_objext
5176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5177 (eval $ac_compile) 2>conftest.er1
5179 grep -v '^ *+' conftest.er1
>conftest.err
5181 cat conftest.err
>&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } &&
5184 { ac_try
='test -z "$ac_c_werror_flag"
5185 || test ! -s conftest.err'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; } &&
5191 { ac_try
='test -s conftest.$ac_objext'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; }; then
5197 ac_cv_type_long_long
=yes
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.
$ac_ext >&5
5202 ac_cv_type_long_long
=no
5204 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5206 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5207 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5209 echo "$as_me:$LINENO: checking size of long long" >&5
5210 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5211 if test "${ac_cv_sizeof_long_long+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 if test "$ac_cv_type_long_long" = yes; then
5215 # The cast to unsigned long works around a bug in the HP C Compiler
5216 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5217 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5218 # This bug is HP SR number 8606223364.
5219 if test "$cross_compiling" = yes; then
5220 # Depending upon the size, compute the lo and hi bounds.
5221 cat >conftest.
$ac_ext <<_ACEOF
5224 cat confdefs.h
>>conftest.
$ac_ext
5225 cat >>conftest.
$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5227 $ac_includes_default
5231 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5238 rm -f conftest.
$ac_objext
5239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5240 (eval $ac_compile) 2>conftest.er1
5242 grep -v '^ *+' conftest.er1
>conftest.err
5244 cat conftest.err
>&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); } &&
5247 { ac_try
='test -z "$ac_c_werror_flag"
5248 || test ! -s conftest.err'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; } &&
5254 { ac_try
='test -s conftest.$ac_objext'
5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; }; then
5262 cat >conftest.
$ac_ext <<_ACEOF
5265 cat confdefs.h
>>conftest.
$ac_ext
5266 cat >>conftest.
$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 $ac_includes_default
5272 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5279 rm -f conftest.
$ac_objext
5280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281 (eval $ac_compile) 2>conftest.er1
5283 grep -v '^ *+' conftest.er1
>conftest.err
5285 cat conftest.err
>&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } &&
5288 { ac_try
='test -z "$ac_c_werror_flag"
5289 || test ! -s conftest.err'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; } &&
5295 { ac_try
='test -s conftest.$ac_objext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 ac_hi
=$ac_mid; break
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.
$ac_ext >&5
5306 ac_lo
=`expr $ac_mid + 1`
5307 if test $ac_lo -le $ac_mid; then
5311 ac_mid
=`expr 2 '*' $ac_mid + 1`
5313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5316 echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.
$ac_ext >&5
5319 cat >conftest.
$ac_ext <<_ACEOF
5322 cat confdefs.h
>>conftest.
$ac_ext
5323 cat >>conftest.
$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 $ac_includes_default
5329 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5336 rm -f conftest.
$ac_objext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5338 (eval $ac_compile) 2>conftest.er1
5340 grep -v '^ *+' conftest.er1
>conftest.err
5342 cat conftest.err
>&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } &&
5345 { ac_try
='test -z "$ac_c_werror_flag"
5346 || test ! -s conftest.err'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; } &&
5352 { ac_try
='test -s conftest.$ac_objext'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5360 cat >conftest.
$ac_ext <<_ACEOF
5363 cat confdefs.h
>>conftest.
$ac_ext
5364 cat >>conftest.
$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 $ac_includes_default
5370 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5377 rm -f conftest.
$ac_objext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5379 (eval $ac_compile) 2>conftest.er1
5381 grep -v '^ *+' conftest.er1
>conftest.err
5383 cat conftest.err
>&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } &&
5386 { ac_try
='test -z "$ac_c_werror_flag"
5387 || test ! -s conftest.err'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; } &&
5393 { ac_try
='test -s conftest.$ac_objext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 ac_lo
=$ac_mid; break
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.
$ac_ext >&5
5404 ac_hi
=`expr '(' $ac_mid ')' - 1`
5405 if test $ac_mid -le $ac_hi; then
5409 ac_mid
=`expr 2 '*' $ac_mid`
5411 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.
$ac_ext >&5
5419 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5422 # Binary search between lo and hi bounds.
5423 while test "x$ac_lo" != "x$ac_hi"; do
5424 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5425 cat >conftest.
$ac_ext <<_ACEOF
5428 cat confdefs.h
>>conftest.
$ac_ext
5429 cat >>conftest.
$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 $ac_includes_default
5435 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5442 rm -f conftest.
$ac_objext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444 (eval $ac_compile) 2>conftest.er1
5446 grep -v '^ *+' conftest.er1
>conftest.err
5448 cat conftest.err
>&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try
='test -z "$ac_c_werror_flag"
5452 || test ! -s conftest.err'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; } &&
5458 { ac_try
='test -s conftest.$ac_objext'
5459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; }; then
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.
$ac_ext >&5
5469 ac_lo
=`expr '(' $ac_mid ')' + 1`
5471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5474 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5475 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5476 See \`config.log' for more details." >&5
5477 echo "$as_me: error: cannot compute sizeof (long long), 77
5478 See \`config.log' for more details." >&2;}
5479 { (exit 1); exit 1; }; } ;;
5482 if test "$cross_compiling" = yes; then
5483 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5484 See \`config.log' for more details." >&5
5485 echo "$as_me: error: cannot run test program while cross compiling
5486 See \`config.log' for more details." >&2;}
5487 { (exit 1); exit 1; }; }
5489 cat >conftest.
$ac_ext <<_ACEOF
5492 cat confdefs.h
>>conftest.
$ac_ext
5493 cat >>conftest.
$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 $ac_includes_default
5496 long longval () { return (long) (sizeof (long long)); }
5497 unsigned long ulongval () { return (long) (sizeof (long long)); }
5504 FILE *f = fopen ("conftest.val", "w");
5507 if (((long) (sizeof (long long))) < 0)
5509 long i = longval ();
5510 if (i != ((long) (sizeof (long long))))
5512 fprintf (f, "%ld\n", i);
5516 unsigned long i = ulongval ();
5517 if (i != ((long) (sizeof (long long))))
5519 fprintf (f, "%lu\n", i);
5521 exit (ferror (f) || fclose (f) != 0);
5527 rm -f conftest
$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_sizeof_long_long
=`cat conftest.val`
5540 echo "$as_me: program exited with status $ac_status" >&5
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.
$ac_ext >&5
5545 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5546 See \`config.log' for more details." >&5
5547 echo "$as_me: error: cannot compute sizeof (long long), 77
5548 See \`config.log' for more details." >&2;}
5549 { (exit 1); exit 1; }; }
5551 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5556 ac_cv_sizeof_long_long
=0
5559 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5560 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5561 cat >>confdefs.h
<<_ACEOF
5562 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5568 echo "$as_me:$LINENO: checking for __int64" >&5
5569 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5570 if test "${ac_cv_type___int64+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 cat >conftest.
$ac_ext <<_ACEOF
5576 cat confdefs.h
>>conftest.
$ac_ext
5577 cat >>conftest.
$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 $ac_includes_default
5585 if (sizeof (__int64))
5591 rm -f conftest.
$ac_objext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593 (eval $ac_compile) 2>conftest.er1
5595 grep -v '^ *+' conftest.er1
>conftest.err
5597 cat conftest.err
>&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try
='test -z "$ac_c_werror_flag"
5601 || test ! -s conftest.err'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; } &&
5607 { ac_try
='test -s conftest.$ac_objext'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5613 ac_cv_type___int64
=yes
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.
$ac_ext >&5
5618 ac_cv_type___int64
=no
5620 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5622 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5623 echo "${ECHO_T}$ac_cv_type___int64" >&6
5624 if test $ac_cv_type___int64 = yes; then
5626 cat >>confdefs.h
<<_ACEOF
5627 #define HAVE___INT64 1
5630 echo "$as_me:$LINENO: checking for __int64" >&5
5631 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5632 if test "${ac_cv_type___int64+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 cat >conftest.
$ac_ext <<_ACEOF
5638 cat confdefs.h
>>conftest.
$ac_ext
5639 cat >>conftest.
$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5641 $ac_includes_default
5647 if (sizeof (__int64))
5653 rm -f conftest.
$ac_objext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655 (eval $ac_compile) 2>conftest.er1
5657 grep -v '^ *+' conftest.er1
>conftest.err
5659 cat conftest.err
>&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } &&
5662 { ac_try
='test -z "$ac_c_werror_flag"
5663 || test ! -s conftest.err'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; } &&
5669 { ac_try
='test -s conftest.$ac_objext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 ac_cv_type___int64
=yes
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.
$ac_ext >&5
5680 ac_cv_type___int64
=no
5682 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5684 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5685 echo "${ECHO_T}$ac_cv_type___int64" >&6
5687 echo "$as_me:$LINENO: checking size of __int64" >&5
5688 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5689 if test "${ac_cv_sizeof___int64+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 if test "$ac_cv_type___int64" = yes; then
5693 # The cast to unsigned long works around a bug in the HP C Compiler
5694 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5695 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5696 # This bug is HP SR number 8606223364.
5697 if test "$cross_compiling" = yes; then
5698 # Depending upon the size, compute the lo and hi bounds.
5699 cat >conftest.
$ac_ext <<_ACEOF
5702 cat confdefs.h
>>conftest.
$ac_ext
5703 cat >>conftest.
$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 $ac_includes_default
5709 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5716 rm -f conftest.
$ac_objext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718 (eval $ac_compile) 2>conftest.er1
5720 grep -v '^ *+' conftest.er1
>conftest.err
5722 cat conftest.err
>&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } &&
5725 { ac_try
='test -z "$ac_c_werror_flag"
5726 || test ! -s conftest.err'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; } &&
5732 { ac_try
='test -s conftest.$ac_objext'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5740 cat >conftest.
$ac_ext <<_ACEOF
5743 cat confdefs.h
>>conftest.
$ac_ext
5744 cat >>conftest.
$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 $ac_includes_default
5750 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5757 rm -f conftest.
$ac_objext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759 (eval $ac_compile) 2>conftest.er1
5761 grep -v '^ *+' conftest.er1
>conftest.err
5763 cat conftest.err
>&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try
='test -z "$ac_c_werror_flag"
5767 || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try
='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_hi
=$ac_mid; break
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.
$ac_ext >&5
5784 ac_lo
=`expr $ac_mid + 1`
5785 if test $ac_lo -le $ac_mid; then
5789 ac_mid
=`expr 2 '*' $ac_mid + 1`
5791 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.
$ac_ext >&5
5797 cat >conftest.
$ac_ext <<_ACEOF
5800 cat confdefs.h
>>conftest.
$ac_ext
5801 cat >>conftest.
$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 $ac_includes_default
5807 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5814 rm -f conftest.
$ac_objext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816 (eval $ac_compile) 2>conftest.er1
5818 grep -v '^ *+' conftest.er1
>conftest.err
5820 cat conftest.err
>&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } &&
5823 { ac_try
='test -z "$ac_c_werror_flag"
5824 || test ! -s conftest.err'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; } &&
5830 { ac_try
='test -s conftest.$ac_objext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5838 cat >conftest.
$ac_ext <<_ACEOF
5841 cat confdefs.h
>>conftest.
$ac_ext
5842 cat >>conftest.
$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 $ac_includes_default
5848 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5855 rm -f conftest.
$ac_objext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>conftest.er1
5859 grep -v '^ *+' conftest.er1
>conftest.err
5861 cat conftest.err
>&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try
='test -z "$ac_c_werror_flag"
5865 || test ! -s conftest.err'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try
='test -s conftest.$ac_objext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 ac_lo
=$ac_mid; break
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.
$ac_ext >&5
5882 ac_hi
=`expr '(' $ac_mid ')' - 1`
5883 if test $ac_mid -le $ac_hi; then
5887 ac_mid
=`expr 2 '*' $ac_mid`
5889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5892 echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.
$ac_ext >&5
5897 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5900 # Binary search between lo and hi bounds.
5901 while test "x$ac_lo" != "x$ac_hi"; do
5902 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5903 cat >conftest.
$ac_ext <<_ACEOF
5906 cat confdefs.h
>>conftest.
$ac_ext
5907 cat >>conftest.
$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5909 $ac_includes_default
5913 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5920 rm -f conftest.
$ac_objext
5921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5922 (eval $ac_compile) 2>conftest.er1
5924 grep -v '^ *+' conftest.er1
>conftest.err
5926 cat conftest.err
>&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } &&
5929 { ac_try
='test -z "$ac_c_werror_flag"
5930 || test ! -s conftest.err'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; } &&
5936 { ac_try
='test -s conftest.$ac_objext'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.
$ac_ext >&5
5947 ac_lo
=`expr '(' $ac_mid ')' + 1`
5949 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5952 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5953 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5954 See \`config.log' for more details." >&5
5955 echo "$as_me: error: cannot compute sizeof (__int64), 77
5956 See \`config.log' for more details." >&2;}
5957 { (exit 1); exit 1; }; } ;;
5960 if test "$cross_compiling" = yes; then
5961 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5962 See \`config.log' for more details." >&5
5963 echo "$as_me: error: cannot run test program while cross compiling
5964 See \`config.log' for more details." >&2;}
5965 { (exit 1); exit 1; }; }
5967 cat >conftest.
$ac_ext <<_ACEOF
5970 cat confdefs.h
>>conftest.
$ac_ext
5971 cat >>conftest.
$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 $ac_includes_default
5974 long longval () { return (long) (sizeof (__int64)); }
5975 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5982 FILE *f = fopen ("conftest.val", "w");
5985 if (((long) (sizeof (__int64))) < 0)
5987 long i = longval ();
5988 if (i != ((long) (sizeof (__int64))))
5990 fprintf (f, "%ld\n", i);
5994 unsigned long i = ulongval ();
5995 if (i != ((long) (sizeof (__int64))))
5997 fprintf (f, "%lu\n", i);
5999 exit (ferror (f) || fclose (f) != 0);
6005 rm -f conftest
$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 (eval $ac_link) 2>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 ac_cv_sizeof___int64
=`cat conftest.val`
6018 echo "$as_me: program exited with status $ac_status" >&5
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.
$ac_ext >&5
6023 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6024 See \`config.log' for more details." >&5
6025 echo "$as_me: error: cannot compute sizeof (__int64), 77
6026 See \`config.log' for more details." >&2;}
6027 { (exit 1); exit 1; }; }
6029 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6034 ac_cv_sizeof___int64
=0
6037 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6038 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6039 cat >>confdefs.h
<<_ACEOF
6040 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6047 # ---------------------
6048 # Warnings and checking
6049 # ---------------------
6051 # Check $CC warning features (if it's GCC).
6052 # We want to use -pedantic, but we don't want warnings about
6055 # So, we only use -pedantic if we can disable those warnings.
6057 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6058 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6059 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 save_CFLAGS
="$CFLAGS"
6063 CFLAGS
="-Wno-long-long"
6064 cat >conftest.
$ac_ext <<_ACEOF
6067 cat confdefs.h
>>conftest.
$ac_ext
6068 cat >>conftest.
$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6072 rm -f conftest.
$ac_objext
6073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6074 (eval $ac_compile) 2>conftest.er1
6076 grep -v '^ *+' conftest.er1
>conftest.err
6078 cat conftest.err
>&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try
='test -z "$ac_c_werror_flag"
6082 || test ! -s conftest.err'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; } &&
6088 { ac_try
='test -s conftest.$ac_objext'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_cv_prog_cc_w_no_long_long
=yes
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.
$ac_ext >&5
6099 ac_cv_prog_cc_w_no_long_long
=no
6101 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6102 CFLAGS
="$save_CFLAGS"
6105 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6106 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6108 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6109 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6110 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 save_CFLAGS
="$CFLAGS"
6114 CFLAGS
="-Wno-variadic-macros"
6115 cat >conftest.
$ac_ext <<_ACEOF
6118 cat confdefs.h
>>conftest.
$ac_ext
6119 cat >>conftest.
$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6123 rm -f conftest.
$ac_objext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6125 (eval $ac_compile) 2>conftest.er1
6127 grep -v '^ *+' conftest.er1
>conftest.err
6129 cat conftest.err
>&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try
='test -z "$ac_c_werror_flag"
6133 || test ! -s conftest.err'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; } &&
6139 { ac_try
='test -s conftest.$ac_objext'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6145 ac_cv_prog_cc_w_no_variadic_macros
=yes
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.
$ac_ext >&5
6150 ac_cv_prog_cc_w_no_variadic_macros
=no
6152 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6153 CFLAGS
="$save_CFLAGS"
6156 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6157 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6160 if test $ac_cv_prog_cc_w_no_long_long = yes \
6161 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6162 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6166 # Add -Wold-style-definition if it's accepted
6167 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6168 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6169 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 save_CFLAGS
="$CFLAGS"
6173 CFLAGS
="-Wold-style-definition"
6174 cat >conftest.
$ac_ext <<_ACEOF
6177 cat confdefs.h
>>conftest.
$ac_ext
6178 cat >>conftest.
$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6182 rm -f conftest.
$ac_objext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6184 (eval $ac_compile) 2>conftest.er1
6186 grep -v '^ *+' conftest.er1
>conftest.err
6188 cat conftest.err
>&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try
='test -z "$ac_c_werror_flag"
6192 || test ! -s conftest.err'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; } &&
6198 { ac_try
='test -s conftest.$ac_objext'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6204 ac_cv_prog_cc_w_old_style_definition
=yes
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.
$ac_ext >&5
6209 ac_cv_prog_cc_w_old_style_definition
=no
6211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6212 CFLAGS
="$save_CFLAGS"
6215 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6216 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6217 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6218 strict1_warn
="${strict1_warn} -Wold-style-definition"
6221 # Enable -Werror, period.
6222 # Check whether --enable-werror_always or --disable-werror_always was given.
6223 if test "${enable_werror_always+set}" = set; then
6224 enableval
="$enable_werror_always"
6227 enable_werror_always
=no
6229 if test x
${enable_werror_always} = xyes
; then
6230 strict1_warn
="${strict1_warn} -Werror"
6234 # If the native compiler is GCC, we can enable warnings even in stage1.
6235 # That's useful for people building cross-compilers, or just running a
6238 if test "x$GCC" = "xyes"; then
6239 warn_cflags
='$(GCC_WARN_CFLAGS)'
6243 # Enable -Werror in bootstrap stage2 and later.
6245 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6248 # Check whether --enable-werror or --disable-werror was given.
6249 if test "${enable_werror+set}" = set; then
6250 enableval
="$enable_werror"
6253 if test x
$is_release = x
; then
6254 # Default to "yes" on development branches.
6257 # Default to "no" on release branches.
6261 if test x
$enable_werror = xyes
; then
6266 # Enable expensive internal checks
6267 # Check whether --enable-checking or --disable-checking was given.
6268 if test "${enable_checking+set}" = set; then
6269 enableval
="$enable_checking"
6270 ac_checking_flags
="${enableval}"
6273 # Determine the default checks.
6274 if test x
$is_release = x
; then
6275 ac_checking_flags
=yes
6277 ac_checking_flags
=release
6280 ac_assert_checking
=1
6284 ac_gc_always_collect
=
6286 ac_rtlflag_checking
=
6287 ac_runtime_checking
=1
6289 ac_valgrind_checking
=
6290 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6291 for check
in $ac_checking_flags
6294 # these set all the flags to specific states
6295 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6296 ac_fold_checking
= ; ac_gc_checking
=1 ;
6297 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6298 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6299 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6300 no|none
) ac_assert_checking
= ; ac_checking
= ;
6301 ac_fold_checking
= ; ac_gc_checking
= ;
6302 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6303 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6304 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6305 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6306 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6307 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6308 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6309 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6310 release
) ac_assert_checking
=1 ; ac_checking
= ;
6311 ac_fold_checking
= ; ac_gc_checking
= ;
6312 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6313 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6314 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6315 # these enable particular checks
6316 assert
) ac_assert_checking
=1 ;;
6317 fold) ac_fold_checking
=1 ;;
6318 gc
) ac_gc_checking
=1 ;;
6319 gcac
) ac_gc_always_collect
=1 ;;
6320 misc
) ac_checking
=1 ;;
6321 rtl
) ac_rtl_checking
=1 ;;
6322 rtlflag
) ac_rtlflag_checking
=1 ;;
6323 runtime
) ac_runtime_checking
=1 ;;
6324 tree
) ac_tree_checking
=1 ;;
6325 valgrind
) ac_valgrind_checking
=1 ;;
6326 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6327 echo "$as_me: error: unknown check category $check" >&2;}
6328 { (exit 1); exit 1; }; } ;;
6334 if test x
$ac_checking != x
; then
6336 cat >>confdefs.h
<<\_ACEOF
6337 #define ENABLE_CHECKING 1
6340 nocommon_flag
=-fno-common
6343 if test x
$ac_assert_checking != x
; then
6345 cat >>confdefs.h
<<\_ACEOF
6346 #define ENABLE_ASSERT_CHECKING 1
6351 if test x
$ac_runtime_checking != x
; then
6353 cat >>confdefs.h
<<\_ACEOF
6354 #define ENABLE_RUNTIME_CHECKING 1
6358 if test x
$ac_tree_checking != x
; then
6360 cat >>confdefs.h
<<\_ACEOF
6361 #define ENABLE_TREE_CHECKING 1
6364 TREEBROWSER
=tree-browser.o
6367 if test x
$ac_rtl_checking != x
; then
6369 cat >>confdefs.h
<<\_ACEOF
6370 #define ENABLE_RTL_CHECKING 1
6374 if test x
$ac_rtlflag_checking != x
; then
6376 cat >>confdefs.h
<<\_ACEOF
6377 #define ENABLE_RTL_FLAG_CHECKING 1
6381 if test x
$ac_gc_checking != x
; then
6383 cat >>confdefs.h
<<\_ACEOF
6384 #define ENABLE_GC_CHECKING 1
6388 if test x
$ac_gc_always_collect != x
; then
6390 cat >>confdefs.h
<<\_ACEOF
6391 #define ENABLE_GC_ALWAYS_COLLECT 1
6395 if test x
$ac_fold_checking != x
; then
6397 cat >>confdefs.h
<<\_ACEOF
6398 #define ENABLE_FOLD_CHECKING 1
6402 valgrind_path_defines
=
6405 if test "${ac_cv_header_valgrind_h+set}" = set; then
6406 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6407 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6408 if test "${ac_cv_header_valgrind_h+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6412 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6414 # Is the header compilable?
6415 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6416 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6417 cat >conftest.
$ac_ext <<_ACEOF
6420 cat confdefs.h
>>conftest.
$ac_ext
6421 cat >>conftest.
$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 $ac_includes_default
6424 #include <valgrind.h>
6426 rm -f conftest.
$ac_objext
6427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6428 (eval $ac_compile) 2>conftest.er1
6430 grep -v '^ *+' conftest.er1
>conftest.err
6432 cat conftest.err
>&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } &&
6435 { ac_try
='test -z "$ac_c_werror_flag"
6436 || test ! -s conftest.err'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; } &&
6442 { ac_try
='test -s conftest.$ac_objext'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; }; then
6448 ac_header_compiler
=yes
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.
$ac_ext >&5
6453 ac_header_compiler
=no
6455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6457 echo "${ECHO_T}$ac_header_compiler" >&6
6459 # Is the header present?
6460 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6461 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6462 cat >conftest.
$ac_ext <<_ACEOF
6465 cat confdefs.h
>>conftest.
$ac_ext
6466 cat >>conftest.
$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 #include <valgrind.h>
6470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6471 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6473 grep -v '^ *+' conftest.er1
>conftest.err
6475 cat conftest.err
>&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } >/dev
/null
; then
6478 if test -s conftest.err
; then
6479 ac_cpp_err
=$ac_c_preproc_warn_flag
6480 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6487 if test -z "$ac_cpp_err"; then
6488 ac_header_preproc
=yes
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.
$ac_ext >&5
6493 ac_header_preproc
=no
6495 rm -f conftest.err conftest.
$ac_ext
6496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6497 echo "${ECHO_T}$ac_header_preproc" >&6
6499 # So? What about this header?
6500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6502 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6503 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6505 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6506 ac_header_preproc
=yes
6509 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6510 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6512 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6514 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6516 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6518 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6520 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6523 ## ------------------------------------------ ##
6524 ## Report this to the AC_PACKAGE_NAME lists. ##
6525 ## ------------------------------------------ ##
6528 sed "s/^/$as_me: WARNING: /" >&2
6531 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6532 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6533 if test "${ac_cv_header_valgrind_h+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 ac_cv_header_valgrind_h
=$ac_header_preproc
6538 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6539 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6542 if test $ac_cv_header_valgrind_h = yes; then
6550 if test x
$ac_valgrind_checking != x
; then
6551 # It is certainly possible that there's valgrind but no valgrind.h.
6552 # GCC relies on making annotations so we must have both.
6553 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6554 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6555 cat >conftest.
$ac_ext <<_ACEOF
6558 cat confdefs.h
>>conftest.
$ac_ext
6559 cat >>conftest.
$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 #include <valgrind/memcheck.h>
6562 #ifndef VALGRIND_DISCARD
6563 #error VALGRIND_DISCARD not defined
6566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6567 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6569 grep -v '^ *+' conftest.er1
>conftest.err
6571 cat conftest.err
>&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } >/dev
/null
; then
6574 if test -s conftest.err
; then
6575 ac_cpp_err
=$ac_c_preproc_warn_flag
6576 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6583 if test -z "$ac_cpp_err"; then
6584 gcc_cv_header_valgrind_memcheck_h
=yes
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.
$ac_ext >&5
6589 gcc_cv_header_valgrind_memcheck_h
=no
6591 rm -f conftest.err conftest.
$ac_ext
6592 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6593 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6594 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6595 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6596 cat >conftest.
$ac_ext <<_ACEOF
6599 cat confdefs.h
>>conftest.
$ac_ext
6600 cat >>conftest.
$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 #include <memcheck.h>
6603 #ifndef VALGRIND_DISCARD
6604 #error VALGRIND_DISCARD not defined
6607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6608 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6610 grep -v '^ *+' conftest.er1
>conftest.err
6612 cat conftest.err
>&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } >/dev
/null
; then
6615 if test -s conftest.err
; then
6616 ac_cpp_err
=$ac_c_preproc_warn_flag
6617 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6624 if test -z "$ac_cpp_err"; then
6625 gcc_cv_header_memcheck_h
=yes
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.
$ac_ext >&5
6630 gcc_cv_header_memcheck_h
=no
6632 rm -f conftest.err conftest.
$ac_ext
6633 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6634 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6636 # Prepare PATH_SEPARATOR.
6637 # The user is always right.
6638 if test "${PATH_SEPARATOR+set}" != set; then
6639 echo "#! /bin/sh" >conf$$.sh
6640 echo "exit 0" >>conf$$.sh
6642 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6650 # Find out how to test for executable files. Don't use a zero-byte file,
6651 # as systems may use methods other than mode bits to determine executability.
6652 cat >conf$$.
file <<_ASEOF
6656 chmod +x conf$$.
file
6657 if test -x conf$$.
file >/dev
/null
2>&1; then
6658 ac_executable_p
="test -x"
6660 ac_executable_p
="test -f"
6664 # Extract the first word of "valgrind", so it can be a program name with args.
6665 set dummy valgrind
; ac_word
=$2
6666 echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6668 if test "${ac_cv_path_valgrind_path+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 case "$valgrind_path" in
6673 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6676 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6677 for ac_dir
in $PATH; do
6679 test -z "$ac_dir" && ac_dir
=.
6680 for ac_exec_ext
in '' $ac_executable_extensions; do
6681 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6682 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6683 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6693 valgrind_path
="$ac_cv_path_valgrind_path"
6694 if test -n "$valgrind_path"; then
6695 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6696 echo "${ECHO_T}$valgrind_path" >&6
6698 echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6
6702 if test "x$valgrind_path" = "x" \
6703 ||
(test $have_valgrind_h = no \
6704 && test $gcc_cv_header_memcheck_h = no \
6705 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6706 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6707 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6708 { (exit 1); exit 1; }; }
6710 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6711 valgrind_command
="$valgrind_path -q"
6713 cat >>confdefs.h
<<\_ACEOF
6714 #define ENABLE_VALGRIND_CHECKING 1
6717 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6719 cat >>confdefs.h
<<\_ACEOF
6720 #define HAVE_VALGRIND_MEMCHECK_H 1
6724 if test $gcc_cv_header_memcheck_h = yes; then
6726 cat >>confdefs.h
<<\_ACEOF
6727 #define HAVE_MEMCHECK_H 1
6735 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6736 if test "${enable_mapped_location+set}" = set; then
6737 enableval
="$enable_mapped_location"
6740 enable_mapped_location
=no
6743 if test "$enable_mapped_location" = yes ; then
6745 cat >>confdefs.h
<<\_ACEOF
6746 #define USE_MAPPED_LOCATION 1
6751 # Enable code coverage collection
6752 # Check whether --enable-coverage or --disable-coverage was given.
6753 if test "${enable_coverage+set}" = set; then
6754 enableval
="$enable_coverage"
6755 case "${enableval}" in
6757 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6760 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6763 # a.k.a. --disable-coverage
6767 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6768 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6769 { (exit 1); exit 1; }; }
6777 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6778 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6779 enableval
="$enable_gather_detailed_mem_stats"
6782 enable_gather_detailed_mem_stats
=no
6784 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6786 cat >>confdefs.h
<<\_ACEOF
6787 #define GATHER_STATISTICS 1
6792 # -------------------------------
6793 # Miscenalleous configure options
6794 # -------------------------------
6798 # Check whether --with-stabs or --without-stabs was given.
6799 if test "${with_stabs+set}" = set; then
6800 withval
="$with_stabs"
6806 # Determine whether or not multilibs are enabled.
6807 # Check whether --enable-multilib or --disable-multilib was given.
6808 if test "${enable_multilib+set}" = set; then
6809 enableval
="$enable_multilib"
6816 # Enable __cxa_atexit for C++.
6817 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6818 if test "${enable___cxa_atexit+set}" = set; then
6819 enableval
="$enable___cxa_atexit"
6824 # Pass with no value to take the default
6825 # Pass with a value to specify a thread package
6826 # Check whether --enable-threads or --disable-threads was given.
6827 if test "${enable_threads+set}" = set; then
6828 enableval
="$enable_threads"
6834 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6835 if test "${enable_objc_gc+set}" = set; then
6836 enableval
="$enable_objc_gc"
6837 if test x
$enable_objc_gc = xno
; then
6847 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6848 if test "${with_dwarf2+set}" = set; then
6849 withval
="$with_dwarf2"
6850 dwarf2
="$with_dwarf2"
6855 # Check whether --enable-shared or --disable-shared was given.
6856 if test "${enable_shared+set}" = set; then
6857 enableval
="$enable_shared"
6859 case $enable_shared in
6863 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6864 for pkg
in $enableval; do
6865 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6879 # Check whether --with-sysroot or --without-sysroot was given.
6880 if test "${with_sysroot+set}" = set; then
6881 withval
="$with_sysroot"
6883 case ${with_sysroot} in
6884 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6885 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6888 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6889 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6891 if test "x$exec_prefix" = xNONE
; then
6892 if test "x$prefix" = xNONE
; then
6893 test_prefix
=/usr
/local
6898 test_prefix
=$exec_prefix
6900 case ${TARGET_SYSTEM_ROOT} in
6901 "${test_prefix}"|
"${test_prefix}/"*|\
6902 '${exec_prefix}'|
'${exec_prefix}/'*)
6903 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6904 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6911 TARGET_SYSTEM_ROOT_DEFINE
=
6912 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6919 # Build with intermodule optimisations
6920 # Check whether --enable-intermodule or --disable-intermodule was given.
6921 if test "${enable_intermodule+set}" = set; then
6922 enableval
="$enable_intermodule"
6923 case ${enable_intermodule} in
6924 yes) onestep
="-onestep";;
6932 # Sanity check enable_languages in case someone does not run the toplevel
6933 # configure # script.
6934 # Check whether --enable-languages or --disable-languages was given.
6935 if test "${enable_languages+set}" = set; then
6936 enableval
="$enable_languages"
6937 case ,${enable_languages}, in
6939 # go safe -- we cannot be much sure without the toplevel
6941 # analysis of which target libs are present and usable
6945 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6946 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6947 { (exit 1); exit 1; }; }
6952 enable_languages
=c
,${enable_languages}
6960 for lang
in ${srcdir}/*/config-lang.
in
6963 # The odd quoting in the next line works around
6964 # an apparent bug in bash 1.12 on linux.
6965 ${srcdir}/[*]/config-lang.
in) ;;
6967 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6968 if test "x$lang_alias" = x
6970 echo "$lang doesn't set \$language." 1>&2
6973 case ",$enable_languages," in
6975 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6982 # -------------------------
6983 # Checks for other programs
6984 # -------------------------
6986 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6987 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6988 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
6989 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 cat >conftest.
make <<\_ACEOF
6994 @
echo 'ac_maketemp="$(MAKE)"'
6996 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6997 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6998 if test -n "$ac_maketemp"; then
6999 eval ac_cv_prog_make_
${ac_make}_set
=yes
7001 eval ac_cv_prog_make_
${ac_make}_set
=no
7005 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7006 echo "$as_me:$LINENO: result: yes" >&5
7007 echo "${ECHO_T}yes" >&6
7010 echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6
7012 SET_MAKE
="MAKE=${MAKE-make}"
7016 # Find some useful tools
7017 for ac_prog
in gawk mawk nawk
awk
7019 # Extract the first word of "$ac_prog", so it can be a program name with args.
7020 set dummy
$ac_prog; ac_word
=$2
7021 echo "$as_me:$LINENO: checking for $ac_word" >&5
7022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7023 if test "${ac_cv_prog_AWK+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 if test -n "$AWK"; then
7027 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir
=.
7034 for ac_exec_ext
in '' $ac_executable_extensions; do
7035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036 ac_cv_prog_AWK
="$ac_prog"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 if test -n "$AWK"; then
7047 echo "$as_me:$LINENO: result: $AWK" >&5
7048 echo "${ECHO_T}$AWK" >&6
7050 echo "$as_me:$LINENO: result: no" >&5
7051 echo "${ECHO_T}no" >&6
7054 test -n "$AWK" && break
7057 # We need awk to create options.c and options.h.
7058 # Bail out if it's missing.
7060 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7061 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7062 { (exit 1); exit 1; }; } ;;
7065 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7066 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7067 if test "${gcc_cv_prog_LN_S+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 rm -f conftestdata_t
7071 echo >conftestdata_f
7072 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7074 gcc_cv_prog_LN_S
="ln -s"
7076 if ln conftestdata_f conftestdata_t
2>/dev
/null
7080 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7082 gcc_cv_prog_LN_S
="cp -p"
7088 rm -f conftestdata_f conftestdata_t
7091 LN_S
="$gcc_cv_prog_LN_S"
7092 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7093 echo "$as_me:$LINENO: result: yes" >&5
7094 echo "${ECHO_T}yes" >&6
7096 if test "$gcc_cv_prog_LN_S" = "ln"; then
7097 echo "$as_me:$LINENO: result: no, using ln" >&5
7098 echo "${ECHO_T}no, using ln" >&6
7100 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7101 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7105 echo "$as_me:$LINENO: checking whether ln works" >&5
7106 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7107 if test "${acx_cv_prog_LN+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 rm -f conftestdata_t
7111 echo >conftestdata_f
7112 if ln conftestdata_f conftestdata_t
2>/dev
/null
7118 rm -f conftestdata_f conftestdata_t
7121 if test $acx_cv_prog_LN = no
; then
7123 echo "$as_me:$LINENO: result: no, using $LN" >&5
7124 echo "${ECHO_T}no, using $LN" >&6
7126 LN
="$acx_cv_prog_LN"
7127 echo "$as_me:$LINENO: result: yes" >&5
7128 echo "${ECHO_T}yes" >&6
7131 if test -n "$ac_tool_prefix"; then
7132 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7133 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7134 echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7136 if test "${ac_cv_prog_RANLIB+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 if test -n "$RANLIB"; then
7140 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir
=.
7147 for ac_exec_ext
in '' $ac_executable_extensions; do
7148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 RANLIB
=$ac_cv_prog_RANLIB
7159 if test -n "$RANLIB"; then
7160 echo "$as_me:$LINENO: result: $RANLIB" >&5
7161 echo "${ECHO_T}$RANLIB" >&6
7163 echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7168 if test -z "$ac_cv_prog_RANLIB"; then
7169 ac_ct_RANLIB
=$RANLIB
7170 # Extract the first word of "ranlib", so it can be a program name with args.
7171 set dummy ranlib
; ac_word
=$2
7172 echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 if test -n "$ac_ct_RANLIB"; then
7178 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7184 test -z "$as_dir" && as_dir
=.
7185 for ac_exec_ext
in '' $ac_executable_extensions; do
7186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7197 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7198 if test -n "$ac_ct_RANLIB"; then
7199 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7200 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7202 echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7206 RANLIB
=$ac_ct_RANLIB
7208 RANLIB
="$ac_cv_prog_RANLIB"
7213 # By default, the Darwin ranlib will not treat common symbols as
7214 # definitions when building the archive table of contents. Other
7215 # ranlibs do that; pass an option to the Darwin ranlib that makes
7216 # it behave similarly.
7224 # Find a good install program. We prefer a C program (faster),
7225 # so one script is as good as another. But avoid the broken or
7226 # incompatible versions:
7227 # SysV /etc/install, /usr/sbin/install
7228 # SunOS /usr/etc/install
7229 # IRIX /sbin/install
7231 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7232 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7233 # ./install, which can be erroneously created by make from ./install.sh.
7234 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7235 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7236 if test -z "$INSTALL"; then
7237 if test "${ac_cv_path_install+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7241 for ac_dir
in $PATH; do
7242 # Account for people who put trailing slashes in PATH elements.
7244 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7246 # OSF1 and SCO ODT 3.0 have their own names for install.
7247 for ac_prog
in ginstall scoinst
install; do
7248 if test -f $ac_dir/$ac_prog; then
7249 if test $ac_prog = install &&
7250 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7251 # AIX install. It has an incompatible calling convention.
7252 # OSF/1 installbsd also uses dspmsg, but is usable.
7255 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7266 if test "${ac_cv_path_install+set}" = set; then
7267 INSTALL
="$ac_cv_path_install"
7269 # As a last resort, use the slow shell script. We don't cache a
7270 # path for INSTALL within a source directory, because that will
7271 # break other packages using the cache if that directory is
7272 # removed, or if the path is relative.
7273 INSTALL
="$ac_install_sh"
7276 echo "$as_me:$LINENO: result: $INSTALL" >&5
7277 echo "${ECHO_T}$INSTALL" >&6
7279 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7280 # It thinks the first close brace ends the variable substitution.
7281 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7283 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7286 # See if cmp has --ignore-initial.
7287 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7288 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7289 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 gcc_cv_prog_cmp_skip
=slowcompare
7295 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7296 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7299 gcc_cv_prog_cmp_skip
=gnucompare
7302 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7303 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7304 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7307 gcc_cv_prog_cmp_skip
=fastcompare
7314 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7315 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7316 make_compare_target
=$gcc_cv_prog_cmp_skip
7320 # See if we have the mktemp command.
7321 # Extract the first word of "mktemp", so it can be a program name with args.
7322 set dummy mktemp
; ac_word
=$2
7323 echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7325 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 if test -n "$have_mktemp_command"; then
7329 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7335 test -z "$as_dir" && as_dir
=.
7336 for ac_exec_ext
in '' $ac_executable_extensions; do
7337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338 ac_cv_prog_have_mktemp_command
="yes"
7339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7348 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7349 if test -n "$have_mktemp_command"; then
7350 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7351 echo "${ECHO_T}$have_mktemp_command" >&6
7353 echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6
7358 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7360 # See if makeinfo has been installed and is modern enough
7361 # that we can use it.
7362 # Extract the first word of "makeinfo", so it can be a program name with args.
7363 set dummy makeinfo
; ac_word
=$2
7364 echo "$as_me:$LINENO: checking for $ac_word" >&5
7365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7366 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 if test -n "$MAKEINFO"; then
7370 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7376 test -z "$as_dir" && as_dir
=.
7377 for ac_exec_ext
in '' $ac_executable_extensions; do
7378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7379 ac_cv_prog_MAKEINFO
="makeinfo"
7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 MAKEINFO
=$ac_cv_prog_MAKEINFO
7389 if test -n "$MAKEINFO"; then
7390 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7391 echo "${ECHO_T}$MAKEINFO" >&6
7393 echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6
7397 if test -n "$MAKEINFO"; then
7398 # Found it, now check the version.
7399 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7400 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7401 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7405 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7406 echo "configure:7406: version of makeinfo is $ac_prog_version" >&5
7407 case $ac_prog_version in
7408 '') gcc_cv_prog_makeinfo_modern
=no
;;
7410 gcc_cv_prog_makeinfo_modern
=yes;;
7411 *) gcc_cv_prog_makeinfo_modern
=no
;;
7415 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7416 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7418 gcc_cv_prog_makeinfo_modern
=no
7421 if test $gcc_cv_prog_makeinfo_modern = no
; then
7422 MAKEINFO
="$MISSING makeinfo"
7423 { echo "$as_me:$LINENO: WARNING:
7424 *** Makeinfo is missing or too old.
7425 *** Info documentation will not be built." >&5
7426 echo "$as_me: WARNING:
7427 *** Makeinfo is missing or too old.
7428 *** Info documentation will not be built." >&2;}
7435 # Is pod2man recent enough to regenerate manpages?
7436 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7437 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7438 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7439 echo "$as_me:$LINENO: result: yes" >&5
7440 echo "${ECHO_T}yes" >&6
7441 GENERATED_MANPAGES
=generated-manpages
7443 echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6
7452 # Extract the first word of "$ac_prog", so it can be a program name with args.
7453 set dummy
$ac_prog; ac_word
=$2
7454 echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7456 if test "${ac_cv_prog_FLEX+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 if test -n "$FLEX"; then
7460 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir
=.
7467 for ac_exec_ext
in '' $ac_executable_extensions; do
7468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7469 ac_cv_prog_FLEX
="$ac_prog"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 FLEX
=$ac_cv_prog_FLEX
7479 if test -n "$FLEX"; then
7480 echo "$as_me:$LINENO: result: $FLEX" >&5
7481 echo "${ECHO_T}$FLEX" >&6
7483 echo "$as_me:$LINENO: result: no" >&5
7484 echo "${ECHO_T}no" >&6
7487 test -n "$FLEX" && break
7489 test -n "$FLEX" || FLEX
="$MISSING flex"
7493 for ac_prog
in bison
7495 # Extract the first word of "$ac_prog", so it can be a program name with args.
7496 set dummy
$ac_prog; ac_word
=$2
7497 echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7499 if test "${ac_cv_prog_BISON+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 if test -n "$BISON"; then
7503 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7509 test -z "$as_dir" && as_dir
=.
7510 for ac_exec_ext
in '' $ac_executable_extensions; do
7511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_BISON
="$ac_prog"
7513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 BISON
=$ac_cv_prog_BISON
7522 if test -n "$BISON"; then
7523 echo "$as_me:$LINENO: result: $BISON" >&5
7524 echo "${ECHO_T}$BISON" >&6
7526 echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6
7530 test -n "$BISON" && break
7532 test -n "$BISON" || BISON
="$MISSING bison"
7535 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7536 # check for build == host before using them.
7539 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7540 && test -d ..
/binutils
; then
7541 NM
='$(objdir)/../binutils/nm-new'
7543 # Extract the first word of "nm", so it can be a program name with args.
7544 set dummy nm
; ac_word
=$2
7545 echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7547 if test "${ac_cv_prog_NM+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 if test -n "$NM"; then
7551 ac_cv_prog_NM
="$NM" # Let the user override the test.
7553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir
=.
7558 for ac_exec_ext
in '' $ac_executable_extensions; do
7559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7571 if test -n "$NM"; then
7572 echo "$as_me:$LINENO: result: $NM" >&5
7573 echo "${ECHO_T}$NM" >&6
7575 echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6
7582 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7583 && test -d ..
/binutils
; then
7584 AR
='$(objdir)/../binutils/ar'
7586 # Extract the first word of "ar", so it can be a program name with args.
7587 set dummy
ar; ac_word
=$2
7588 echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7590 if test "${ac_cv_prog_AR+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 if test -n "$AR"; then
7594 ac_cv_prog_AR
="$AR" # Let the user override the test.
7596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir
=.
7601 for ac_exec_ext
in '' $ac_executable_extensions; do
7602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7614 if test -n "$AR"; then
7615 echo "$as_me:$LINENO: result: $AR" >&5
7616 echo "${ECHO_T}$AR" >&6
7618 echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6
7625 # --------------------
7626 # Checks for C headers
7627 # --------------------
7629 echo "$as_me:$LINENO: checking for GNU C library" >&5
7630 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7631 if test "${gcc_cv_glibc+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 cat >conftest.
$ac_ext <<_ACEOF
7637 cat confdefs.h
>>conftest.
$ac_ext
7638 cat >>conftest.
$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 #include <features.h>
7645 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7646 #error Not a GNU C library system
7652 rm -f conftest.
$ac_objext
7653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7654 (eval $ac_compile) 2>conftest.er1
7656 grep -v '^ *+' conftest.er1
>conftest.err
7658 cat conftest.err
>&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try
='test -z "$ac_c_werror_flag"
7662 || test ! -s conftest.err'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; } &&
7668 { ac_try
='test -s conftest.$ac_objext'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.
$ac_ext >&5
7681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7684 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7685 echo "${ECHO_T}$gcc_cv_glibc" >&6
7686 if test $gcc_cv_glibc = yes; then
7688 cat >>confdefs.h
<<\_ACEOF
7689 #define _GNU_SOURCE 1
7694 # Need to reject headers which give warnings, so that the -Werror bootstrap
7695 # works later. *sigh* This needs to come before all header checks.
7697 ac_c_preproc_warn_flag
=yes
7699 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7700 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7701 if test "${ac_cv_header_stdc+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 cat >conftest.
$ac_ext <<_ACEOF
7707 cat confdefs.h
>>conftest.
$ac_ext
7708 cat >>conftest.
$ac_ext <<_ACEOF
7709 /* end confdefs.h. */
7723 rm -f conftest.
$ac_objext
7724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725 (eval $ac_compile) 2>conftest.er1
7727 grep -v '^ *+' conftest.er1
>conftest.err
7729 cat conftest.err
>&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try
='test -z "$ac_c_werror_flag"
7733 || test ! -s conftest.err'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; } &&
7739 { ac_try
='test -s conftest.$ac_objext'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 ac_cv_header_stdc
=yes
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.
$ac_ext >&5
7750 ac_cv_header_stdc
=no
7752 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7754 if test $ac_cv_header_stdc = yes; then
7755 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7756 cat >conftest.
$ac_ext <<_ACEOF
7759 cat confdefs.h
>>conftest.
$ac_ext
7760 cat >>conftest.
$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7766 $EGREP "memchr" >/dev
/null
2>&1; then
7769 ac_cv_header_stdc
=no
7775 if test $ac_cv_header_stdc = yes; then
7776 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7777 cat >conftest.
$ac_ext <<_ACEOF
7780 cat confdefs.h
>>conftest.
$ac_ext
7781 cat >>conftest.
$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7787 $EGREP "free" >/dev
/null
2>&1; then
7790 ac_cv_header_stdc
=no
7796 if test $ac_cv_header_stdc = yes; then
7797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7798 if test "$cross_compiling" = yes; then
7801 cat >conftest.
$ac_ext <<_ACEOF
7804 cat confdefs.h
>>conftest.
$ac_ext
7805 cat >>conftest.
$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7808 #if ((' ' & 0x0FF) == 0x020)
7809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7812 # define ISLOWER(c) \
7813 (('a' <= (c) && (c) <= 'i') \
7814 || ('j' <= (c) && (c) <= 'r') \
7815 || ('s' <= (c) && (c) <= 'z'))
7816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7824 for (i = 0; i < 256; i++)
7825 if (XOR (islower (i), ISLOWER (i))
7826 || toupper (i) != TOUPPER (i))
7831 rm -f conftest
$ac_exeext
7832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7833 (eval $ac_link) 2>&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7844 echo "$as_me: program exited with status $ac_status" >&5
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.
$ac_ext >&5
7849 ac_cv_header_stdc
=no
7851 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7855 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7856 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7857 if test $ac_cv_header_stdc = yes; then
7859 cat >>confdefs.h
<<\_ACEOF
7860 #define STDC_HEADERS 1
7865 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7866 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7867 if test "${ac_cv_header_time+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 cat >conftest.
$ac_ext <<_ACEOF
7873 cat confdefs.h
>>conftest.
$ac_ext
7874 cat >>conftest.
$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7876 #include <sys/types.h>
7877 #include <sys/time.h>
7883 if ((struct tm *) 0)
7889 rm -f conftest.
$ac_objext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7891 (eval $ac_compile) 2>conftest.er1
7893 grep -v '^ *+' conftest.er1
>conftest.err
7895 cat conftest.err
>&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try
='test -z "$ac_c_werror_flag"
7899 || test ! -s conftest.err'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; } &&
7905 { ac_try
='test -s conftest.$ac_objext'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 ac_cv_header_time
=yes
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.
$ac_ext >&5
7916 ac_cv_header_time
=no
7918 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7920 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7921 echo "${ECHO_T}$ac_cv_header_time" >&6
7922 if test $ac_cv_header_time = yes; then
7924 cat >>confdefs.h
<<\_ACEOF
7925 #define TIME_WITH_SYS_TIME 1
7930 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7931 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7932 if test "${gcc_cv_header_string+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7935 cat >conftest.
$ac_ext <<_ACEOF
7938 cat confdefs.h
>>conftest.
$ac_ext
7939 cat >>conftest.
$ac_ext <<_ACEOF
7940 /* end confdefs.h. */
7942 #include <strings.h>
7951 rm -f conftest.
$ac_objext
7952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7953 (eval $ac_compile) 2>conftest.er1
7955 grep -v '^ *+' conftest.er1
>conftest.err
7957 cat conftest.err
>&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try
='test -z "$ac_c_werror_flag"
7961 || test ! -s conftest.err'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; } &&
7967 { ac_try
='test -s conftest.$ac_objext'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7973 gcc_cv_header_string
=yes
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.
$ac_ext >&5
7978 gcc_cv_header_string
=no
7980 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7982 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7983 echo "${ECHO_T}$gcc_cv_header_string" >&6
7984 if test $gcc_cv_header_string = yes; then
7986 cat >>confdefs.h
<<\_ACEOF
7987 #define STRING_WITH_STRINGS 1
7992 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7993 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7994 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 cat >conftest.
$ac_ext <<_ACEOF
8000 cat confdefs.h
>>conftest.
$ac_ext
8001 cat >>conftest.
$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 #include <sys/types.h>
8004 #include <sys/wait.h>
8006 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8009 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8017 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8022 rm -f conftest.
$ac_objext
8023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8024 (eval $ac_compile) 2>conftest.er1
8026 grep -v '^ *+' conftest.er1
>conftest.err
8028 cat conftest.err
>&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try
='test -z "$ac_c_werror_flag"
8032 || test ! -s conftest.err'
8033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; } &&
8038 { ac_try
='test -s conftest.$ac_objext'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; }; then
8044 ac_cv_header_sys_wait_h
=yes
8046 echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.
$ac_ext >&5
8049 ac_cv_header_sys_wait_h
=no
8051 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8053 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8054 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8055 if test $ac_cv_header_sys_wait_h = yes; then
8057 cat >>confdefs.h
<<\_ACEOF
8058 #define HAVE_SYS_WAIT_H 1
8085 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8086 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8087 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8088 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8090 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8091 echo "$as_me:$LINENO: checking for $ac_header" >&5
8092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 cat >conftest.
$ac_ext <<_ACEOF
8099 cat confdefs.h
>>conftest.
$ac_ext
8100 cat >>conftest.
$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8102 #include <$ac_header>
8104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8105 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8107 grep -v '^ *+' conftest.er1
>conftest.err
8109 cat conftest.err
>&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } >/dev
/null
; then
8112 if test -s conftest.err
; then
8113 ac_cpp_err
=$ac_c_preproc_warn_flag
8114 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8121 if test -z "$ac_cpp_err"; then
8122 eval "$as_ac_Header=yes"
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.
$ac_ext >&5
8127 eval "$as_ac_Header=no"
8129 rm -f conftest.err conftest.
$ac_ext
8131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8134 cat >>confdefs.h
<<_ACEOF
8135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8142 # Check for thread headers.
8143 echo "$as_me:$LINENO: checking for thread.h" >&5
8144 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8145 if test "${ac_cv_header_thread_h+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 cat >conftest.
$ac_ext <<_ACEOF
8151 cat confdefs.h
>>conftest.
$ac_ext
8152 cat >>conftest.
$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8157 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8159 grep -v '^ *+' conftest.er1
>conftest.err
8161 cat conftest.err
>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } >/dev
/null
; then
8164 if test -s conftest.err
; then
8165 ac_cpp_err
=$ac_c_preproc_warn_flag
8166 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8173 if test -z "$ac_cpp_err"; then
8174 ac_cv_header_thread_h
=yes
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.
$ac_ext >&5
8179 ac_cv_header_thread_h
=no
8181 rm -f conftest.err conftest.
$ac_ext
8183 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8184 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8185 if test $ac_cv_header_thread_h = yes; then
8191 echo "$as_me:$LINENO: checking for pthread.h" >&5
8192 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8193 if test "${ac_cv_header_pthread_h+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 cat >conftest.
$ac_ext <<_ACEOF
8199 cat confdefs.h
>>conftest.
$ac_ext
8200 cat >>conftest.
$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8202 #include <pthread.h>
8204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8205 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8207 grep -v '^ *+' conftest.er1
>conftest.err
8209 cat conftest.err
>&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } >/dev
/null
; then
8212 if test -s conftest.err
; then
8213 ac_cpp_err
=$ac_c_preproc_warn_flag
8214 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8221 if test -z "$ac_cpp_err"; then
8222 ac_cv_header_pthread_h
=yes
8224 echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.
$ac_ext >&5
8227 ac_cv_header_pthread_h
=no
8229 rm -f conftest.err conftest.
$ac_ext
8231 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8232 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8233 if test $ac_cv_header_pthread_h = yes; then
8240 # These tests can't be done till we know if we have limits.h.
8241 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8242 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8243 if test "${gcc_cv_decl_char_bit+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 cat >conftest.
$ac_ext <<_ACEOF
8249 cat confdefs.h
>>conftest.
$ac_ext
8250 cat >>conftest.
$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8252 #ifdef HAVE_LIMITS_H
8259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8260 $EGREP "found" >/dev
/null
2>&1; then
8261 gcc_cv_decl_char_bit
=yes
8263 gcc_cv_decl_char_bit
=no
8269 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8270 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8271 if test $gcc_cv_decl_char_bit = no
; then
8272 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8273 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8274 if test "${gcc_cv_c_nbby+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 while test $i -lt 65; do
8280 cat >conftest.
$ac_ext <<_ACEOF
8283 cat confdefs.h
>>conftest.
$ac_ext
8284 cat >>conftest.
$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8291 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8292 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8298 rm -f conftest.
$ac_objext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8300 (eval $ac_compile) 2>conftest.er1
8302 grep -v '^ *+' conftest.er1
>conftest.err
8304 cat conftest.err
>&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try
='test -z "$ac_c_werror_flag"
8308 || test ! -s conftest.err'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try
='test -s conftest.$ac_objext'
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 gcc_cv_c_nbby
=$i; break
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.
$ac_ext >&5
8326 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8329 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8332 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8333 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8334 if test $gcc_cv_c_nbby = failed
; then
8335 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8336 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8337 { (exit 1); exit 1; }; }
8340 cat >>confdefs.h
<<_ACEOF
8341 #define CHAR_BIT $gcc_cv_c_nbby
8346 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8347 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8348 if test "${ac_cv_c_bigendian+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 # See if sys/param.h defines the BYTE_ORDER macro.
8352 cat >conftest.
$ac_ext <<_ACEOF
8355 cat confdefs.h
>>conftest.
$ac_ext
8356 cat >>conftest.
$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 #include <sys/types.h>
8359 #include <sys/param.h>
8364 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8372 rm -f conftest.
$ac_objext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8374 (eval $ac_compile) 2>conftest.er1
8376 grep -v '^ *+' conftest.er1
>conftest.err
8378 cat conftest.err
>&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try
='test -z "$ac_c_werror_flag"
8382 || test ! -s conftest.err'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; } &&
8388 { ac_try
='test -s conftest.$ac_objext'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
8394 # It does; now see whether it defined to BIG_ENDIAN or not.
8395 cat >conftest.
$ac_ext <<_ACEOF
8398 cat confdefs.h
>>conftest.
$ac_ext
8399 cat >>conftest.
$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 #include <sys/types.h>
8402 #include <sys/param.h>
8407 #if BYTE_ORDER != BIG_ENDIAN
8415 rm -f conftest.
$ac_objext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8417 (eval $ac_compile) 2>conftest.er1
8419 grep -v '^ *+' conftest.er1
>conftest.err
8421 cat conftest.err
>&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } &&
8424 { ac_try
='test -z "$ac_c_werror_flag"
8425 || test ! -s conftest.err'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; } &&
8431 { ac_try
='test -s conftest.$ac_objext'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
8437 ac_cv_c_bigendian
=yes
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.
$ac_ext >&5
8442 ac_cv_c_bigendian
=no
8444 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.
$ac_ext >&5
8449 # It does not; compile a test program.
8450 if test "$cross_compiling" = yes; then
8451 # try to guess the endianness by grepping values into an object file
8452 ac_cv_c_bigendian
=unknown
8453 cat >conftest.
$ac_ext <<_ACEOF
8456 cat confdefs.h
>>conftest.
$ac_ext
8457 cat >>conftest.
$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8460 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8461 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8462 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8463 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8464 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8468 _ascii (); _ebcdic ();
8473 rm -f conftest.
$ac_objext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8475 (eval $ac_compile) 2>conftest.er1
8477 grep -v '^ *+' conftest.er1
>conftest.err
8479 cat conftest.err
>&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try
='test -z "$ac_c_werror_flag"
8483 || test ! -s conftest.err'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; } &&
8489 { ac_try
='test -s conftest.$ac_objext'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8495 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8496 ac_cv_c_bigendian
=yes
8498 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8499 if test "$ac_cv_c_bigendian" = unknown
; then
8500 ac_cv_c_bigendian
=no
8502 # finding both strings is unlikely to happen, but who knows?
8503 ac_cv_c_bigendian
=unknown
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.
$ac_ext >&5
8511 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8513 cat >conftest.
$ac_ext <<_ACEOF
8516 cat confdefs.h
>>conftest.
$ac_ext
8517 cat >>conftest.
$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8522 /* Are we little or big endian? From Harbison&Steele. */
8526 char c[sizeof (long)];
8529 exit (u.c[sizeof (long) - 1] == 1);
8532 rm -f conftest
$ac_exeext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534 (eval $ac_link) 2>&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8543 ac_cv_c_bigendian
=no
8545 echo "$as_me: program exited with status $ac_status" >&5
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.
$ac_ext >&5
8550 ac_cv_c_bigendian
=yes
8552 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8557 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8558 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8559 case $ac_cv_c_bigendian in
8562 cat >>confdefs.h
<<\_ACEOF
8563 #define WORDS_BIGENDIAN 1
8569 { { echo "$as_me:$LINENO: error: unknown endianness
8570 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8571 echo "$as_me: error: unknown endianness
8572 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8573 { (exit 1); exit 1; }; } ;;
8581 # Stage specific cflags for build.
8585 if test x
$GCC = xyes
8587 stage1_cflags
="-Wa,-J"
8593 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8594 # sources; use -no-cpp-precomp to get to GNU cpp.
8595 # Apple's GCC has bugs in designated initializer handling, so disable
8597 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8602 # These libraries may be used by collect2.
8603 # We may need a special search path to get them linked.
8604 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8605 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8606 if test "${gcc_cv_collect2_libs+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 for libs
in '' -lld -lmld \
8611 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8612 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8615 cat >conftest.
$ac_ext <<_ACEOF
8618 cat confdefs.h
>>conftest.
$ac_ext
8619 cat >>conftest.
$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8622 /* Override any gcc2 internal prototype to avoid an error. */
8626 /* We use char because int might match the return type of a gcc2
8627 builtin and then its argument prototype would still apply. */
8637 rm -f conftest.
$ac_objext conftest
$ac_exeext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8639 (eval $ac_link) 2>conftest.er1
8641 grep -v '^ *+' conftest.er1
>conftest.err
8643 cat conftest.err
>&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } &&
8646 { ac_try
='test -z "$ac_c_werror_flag"
8647 || test ! -s conftest.err'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; } &&
8653 { ac_try
='test -s conftest$ac_exeext'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 gcc_cv_collect2_libs
="$libs"; break
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.
$ac_ext >&5
8665 rm -f conftest.err conftest.
$ac_objext \
8666 conftest
$ac_exeext conftest.
$ac_ext
8669 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8671 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8672 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8673 case $gcc_cv_collect2_libs in
8675 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8679 # When building Ada code on Alpha, we need exc_resume which is usually in
8680 # -lexc. So test for it.
8683 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8684 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8685 if test "${ac_cv_search_exc_resume+set}" = set; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 ac_func_search_save_LIBS
=$LIBS
8689 ac_cv_search_exc_resume
=no
8690 cat >conftest.
$ac_ext <<_ACEOF
8693 cat confdefs.h
>>conftest.
$ac_ext
8694 cat >>conftest.
$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8697 /* Override any gcc2 internal prototype to avoid an error. */
8701 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8712 rm -f conftest.
$ac_objext conftest
$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>conftest.er1
8716 grep -v '^ *+' conftest.er1
>conftest.err
8718 cat conftest.err
>&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try
='test -z "$ac_c_werror_flag"
8722 || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try
='test -s conftest$ac_exeext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 ac_cv_search_exc_resume
="none required"
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.
$ac_ext >&5
8740 rm -f conftest.err conftest.
$ac_objext \
8741 conftest
$ac_exeext conftest.
$ac_ext
8742 if test "$ac_cv_search_exc_resume" = no
; then
8743 for ac_lib
in exc
; do
8744 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8745 cat >conftest.
$ac_ext <<_ACEOF
8748 cat confdefs.h
>>conftest.
$ac_ext
8749 cat >>conftest.
$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8752 /* Override any gcc2 internal prototype to avoid an error. */
8756 /* We use char because int might match the return type of a gcc2
8757 builtin and then its argument prototype would still apply. */
8767 rm -f conftest.
$ac_objext conftest
$ac_exeext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769 (eval $ac_link) 2>conftest.er1
8771 grep -v '^ *+' conftest.er1
>conftest.err
8773 cat conftest.err
>&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try
='test -z "$ac_c_werror_flag"
8777 || test ! -s conftest.err'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try
='test -s conftest$ac_exeext'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; }; then
8789 ac_cv_search_exc_resume
="-l$ac_lib"
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.
$ac_ext >&5
8796 rm -f conftest.err conftest.
$ac_objext \
8797 conftest
$ac_exeext conftest.
$ac_ext
8800 LIBS
=$ac_func_search_save_LIBS
8802 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8803 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8804 if test "$ac_cv_search_exc_resume" != no
; then
8805 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8813 # Some systems put ldexp and frexp in libm instead of libc; assume
8814 # they're both in the same place. jcf-dump needs them.
8817 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8818 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8819 if test "${ac_cv_search_ldexp+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 ac_func_search_save_LIBS
=$LIBS
8823 ac_cv_search_ldexp
=no
8824 cat >conftest.
$ac_ext <<_ACEOF
8827 cat confdefs.h
>>conftest.
$ac_ext
8828 cat >>conftest.
$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8831 /* Override any gcc2 internal prototype to avoid an error. */
8835 /* We use char because int might match the return type of a gcc2
8836 builtin and then its argument prototype would still apply. */
8846 rm -f conftest.
$ac_objext conftest
$ac_exeext
8847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8848 (eval $ac_link) 2>conftest.er1
8850 grep -v '^ *+' conftest.er1
>conftest.err
8852 cat conftest.err
>&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try
='test -z "$ac_c_werror_flag"
8856 || test ! -s conftest.err'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; } &&
8862 { ac_try
='test -s conftest$ac_exeext'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; }; then
8868 ac_cv_search_ldexp
="none required"
8870 echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.
$ac_ext >&5
8874 rm -f conftest.err conftest.
$ac_objext \
8875 conftest
$ac_exeext conftest.
$ac_ext
8876 if test "$ac_cv_search_ldexp" = no
; then
8878 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8879 cat >conftest.
$ac_ext <<_ACEOF
8882 cat confdefs.h
>>conftest.
$ac_ext
8883 cat >>conftest.
$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8886 /* Override any gcc2 internal prototype to avoid an error. */
8890 /* We use char because int might match the return type of a gcc2
8891 builtin and then its argument prototype would still apply. */
8901 rm -f conftest.
$ac_objext conftest
$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903 (eval $ac_link) 2>conftest.er1
8905 grep -v '^ *+' conftest.er1
>conftest.err
8907 cat conftest.err
>&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try
='test -z "$ac_c_werror_flag"
8911 || test ! -s conftest.err'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; } &&
8917 { ac_try
='test -s conftest$ac_exeext'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; }; then
8923 ac_cv_search_ldexp
="-l$ac_lib"
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.
$ac_ext >&5
8930 rm -f conftest.err conftest.
$ac_objext \
8931 conftest
$ac_exeext conftest.
$ac_ext
8934 LIBS
=$ac_func_search_save_LIBS
8936 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8937 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8938 if test "$ac_cv_search_ldexp" != no
; then
8939 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
8947 # Use <inttypes.h> only if it exists,
8948 # doesn't clash with <sys/types.h>, and declares intmax_t.
8949 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8950 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8951 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 cat >conftest.
$ac_ext <<_ACEOF
8957 cat confdefs.h
>>conftest.
$ac_ext
8958 cat >>conftest.
$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 #include <sys/types.h>
8961 #include <inttypes.h>
8970 rm -f conftest.
$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972 (eval $ac_compile) 2>conftest.er1
8974 grep -v '^ *+' conftest.er1
>conftest.err
8976 cat conftest.err
>&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try
='test -z "$ac_c_werror_flag"
8980 || test ! -s conftest.err'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; } &&
8986 { ac_try
='test -s conftest.$ac_objext'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 gcc_cv_header_inttypes_h
=yes
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.
$ac_ext >&5
8997 gcc_cv_header_inttypes_h
=no
8999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9002 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9003 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9004 if test $gcc_cv_header_inttypes_h = yes; then
9006 cat >>confdefs.h
<<\_ACEOF
9007 #define HAVE_INTTYPES_H 1
9050 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
9051 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9052 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9053 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
9055 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9056 echo "$as_me:$LINENO: checking for $ac_func" >&5
9057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9058 if eval "test \"\${$as_ac_var+set}\" = set"; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9061 cat >conftest.
$ac_ext <<_ACEOF
9064 cat confdefs.h
>>conftest.
$ac_ext
9065 cat >>conftest.
$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9069 #define $ac_func innocuous_$ac_func
9071 /* System header to define __stub macros and hopefully few prototypes,
9072 which can conflict with char $ac_func (); below.
9073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9074 <limits.h> exists even on freestanding compilers. */
9077 # include <limits.h>
9079 # include <assert.h>
9084 /* Override any gcc2 internal prototype to avoid an error. */
9089 /* We use char because int might match the return type of a gcc2
9090 builtin and then its argument prototype would still apply. */
9092 /* The GNU C library defines this for functions which it implements
9093 to always fail with ENOSYS. Some functions are actually named
9094 something starting with __ and the normal name is an alias. */
9095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9098 char (*f) () = $ac_func;
9107 return f != $ac_func;
9112 rm -f conftest.
$ac_objext conftest
$ac_exeext
9113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9114 (eval $ac_link) 2>conftest.er1
9116 grep -v '^ *+' conftest.er1
>conftest.err
9118 cat conftest.err
>&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try
='test -z "$ac_c_werror_flag"
9122 || test ! -s conftest.err'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; } &&
9128 { ac_try
='test -s conftest$ac_exeext'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9134 eval "$as_ac_var=yes"
9136 echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.
$ac_ext >&5
9139 eval "$as_ac_var=no"
9141 rm -f conftest.err conftest.
$ac_objext \
9142 conftest
$ac_exeext conftest.
$ac_ext
9144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9146 if test `eval echo '${'$as_ac_var'}'` = yes; then
9147 cat >>confdefs.h
<<_ACEOF
9148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9155 if test x
$ac_cv_func_mbstowcs = xyes
; then
9156 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9157 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9158 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 if test "$cross_compiling" = yes; then
9162 gcc_cv_func_mbstowcs_works
=yes
9164 cat >conftest.
$ac_ext <<_ACEOF
9167 cat confdefs.h
>>conftest.
$ac_ext
9168 cat >>conftest.
$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9177 rm -f conftest
$ac_exeext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9179 (eval $ac_link) 2>&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; }; then
9188 gcc_cv_func_mbstowcs_works
=yes
9190 echo "$as_me: program exited with status $ac_status" >&5
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.
$ac_ext >&5
9195 gcc_cv_func_mbstowcs_works
=no
9197 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9200 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9201 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9202 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9204 cat >>confdefs.h
<<\_ACEOF
9205 #define HAVE_WORKING_MBSTOWCS 1
9211 echo "$as_me:$LINENO: checking for ssize_t" >&5
9212 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9213 if test "${ac_cv_type_ssize_t+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 cat >conftest.
$ac_ext <<_ACEOF
9219 cat confdefs.h
>>conftest.
$ac_ext
9220 cat >>conftest.
$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9222 $ac_includes_default
9228 if (sizeof (ssize_t))
9234 rm -f conftest.
$ac_objext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9236 (eval $ac_compile) 2>conftest.er1
9238 grep -v '^ *+' conftest.er1
>conftest.err
9240 cat conftest.err
>&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try
='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try
='test -s conftest.$ac_objext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 ac_cv_type_ssize_t
=yes
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.
$ac_ext >&5
9261 ac_cv_type_ssize_t
=no
9263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9265 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9266 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9267 if test $ac_cv_type_ssize_t = yes; then
9271 cat >>confdefs.h
<<_ACEOF
9278 # Try to determine the array type of the second argument of getgroups
9279 # for the target system (int or gid_t).
9280 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9281 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9282 if test "${ac_cv_type_uid_t+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 cat >conftest.
$ac_ext <<_ACEOF
9288 cat confdefs.h
>>conftest.
$ac_ext
9289 cat >>conftest.
$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9291 #include <sys/types.h>
9294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9295 $EGREP "uid_t" >/dev
/null
2>&1; then
9296 ac_cv_type_uid_t
=yes
9303 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9304 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9305 if test $ac_cv_type_uid_t = no
; then
9307 cat >>confdefs.h
<<\_ACEOF
9312 cat >>confdefs.h
<<\_ACEOF
9318 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9319 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9320 if test "${ac_cv_type_getgroups+set}" = set; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 if test "$cross_compiling" = yes; then
9324 ac_cv_type_getgroups
=cross
9326 cat >conftest.
$ac_ext <<_ACEOF
9329 cat confdefs.h
>>conftest.
$ac_ext
9330 cat >>conftest.
$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9332 /* Thanks to Mike Rendell for this test. */
9333 #include <sys/types.h>
9336 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9343 union { gid_t gval; long lval; } val;
9346 for (i = 0; i < NGID; i++)
9347 gidset[i] = val.gval;
9348 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9350 /* Exit non-zero if getgroups seems to require an array of ints. This
9351 happens when gid_t is short but getgroups modifies an array of ints. */
9352 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9355 rm -f conftest
$ac_exeext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9357 (eval $ac_link) 2>&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_type_getgroups
=gid_t
9368 echo "$as_me: program exited with status $ac_status" >&5
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.
$ac_ext >&5
9373 ac_cv_type_getgroups
=int
9375 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9377 if test $ac_cv_type_getgroups = cross
; then
9378 cat >conftest.
$ac_ext <<_ACEOF
9381 cat confdefs.h
>>conftest.
$ac_ext
9382 cat >>conftest.
$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9388 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9389 ac_cv_type_getgroups
=gid_t
9391 ac_cv_type_getgroups
=int
9397 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9398 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9400 cat >>confdefs.h
<<_ACEOF
9401 #define GETGROUPS_T $ac_cv_type_getgroups
9405 if test "${target}" = "${build}"; then
9406 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9409 # This condition may need some tweaking. It should include all
9410 # targets where the array type of the second argument of getgroups
9411 # is int and the type of gid_t is not equivalent to int.
9412 *-*-sunos* |
*-*-ultrix*)
9413 TARGET_GETGROUPS_T
=int
9416 TARGET_GETGROUPS_T
=gid_t
9422 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9423 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9424 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 if test "$cross_compiling" = yes; then
9428 gcc_cv_func_printf_ptr
=no
9430 cat >conftest.
$ac_ext <<_ACEOF
9433 cat confdefs.h
>>conftest.
$ac_ext
9434 cat >>conftest.
$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9441 char *p = buf, *q = NULL;
9442 sprintf(buf, "%p", p);
9443 sscanf(buf, "%p", &q);
9447 rm -f conftest
$ac_exeext
9448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9449 (eval $ac_link) 2>&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; }; then
9458 gcc_cv_func_printf_ptr
=yes
9460 echo "$as_me: program exited with status $ac_status" >&5
9461 echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.
$ac_ext >&5
9465 gcc_cv_func_printf_ptr
=no
9467 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9469 rm -f core core.
* *.core
9471 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9472 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9473 if test $gcc_cv_func_printf_ptr = yes ; then
9475 cat >>confdefs.h
<<\_ACEOF
9476 #define HAVE_PRINTF_PTR 1
9482 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9483 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9484 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 cat >conftest.
$ac_ext <<_ACEOF
9490 cat confdefs.h
>>conftest.
$ac_ext
9491 cat >>conftest.
$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9493 #include <sys/mman.h>
9495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9496 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9498 grep -v '^ *+' conftest.er1
>conftest.err
9500 cat conftest.err
>&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } >/dev
/null
; then
9503 if test -s conftest.err
; then
9504 ac_cpp_err
=$ac_c_preproc_warn_flag
9505 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9512 if test -z "$ac_cpp_err"; then
9513 ac_cv_header_sys_mman_h
=yes
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.
$ac_ext >&5
9518 ac_cv_header_sys_mman_h
=no
9520 rm -f conftest.err conftest.
$ac_ext
9522 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9523 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9524 if test $ac_cv_header_sys_mman_h = yes; then
9525 gcc_header_sys_mman_h
=yes
9527 gcc_header_sys_mman_h
=no
9530 echo "$as_me:$LINENO: checking for mmap" >&5
9531 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9532 if test "${ac_cv_func_mmap+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 cat >conftest.
$ac_ext <<_ACEOF
9538 cat confdefs.h
>>conftest.
$ac_ext
9539 cat >>conftest.
$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9543 #define mmap innocuous_mmap
9545 /* System header to define __stub macros and hopefully few prototypes,
9546 which can conflict with char mmap (); below.
9547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9548 <limits.h> exists even on freestanding compilers. */
9551 # include <limits.h>
9553 # include <assert.h>
9558 /* Override any gcc2 internal prototype to avoid an error. */
9563 /* We use char because int might match the return type of a gcc2
9564 builtin and then its argument prototype would still apply. */
9566 /* The GNU C library defines this for functions which it implements
9567 to always fail with ENOSYS. Some functions are actually named
9568 something starting with __ and the normal name is an alias. */
9569 #if defined (__stub_mmap) || defined (__stub___mmap)
9572 char (*f) () = mmap;
9586 rm -f conftest.
$ac_objext conftest
$ac_exeext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9588 (eval $ac_link) 2>conftest.er1
9590 grep -v '^ *+' conftest.er1
>conftest.err
9592 cat conftest.err
>&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } &&
9595 { ac_try
='test -z "$ac_c_werror_flag"
9596 || test ! -s conftest.err'
9597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; } &&
9602 { ac_try
='test -s conftest$ac_exeext'
9603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; }; then
9610 echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.
$ac_ext >&5
9615 rm -f conftest.err conftest.
$ac_objext \
9616 conftest
$ac_exeext conftest.
$ac_ext
9618 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9619 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9620 if test $ac_cv_func_mmap = yes; then
9626 if test "$gcc_header_sys_mman_h" != yes \
9627 ||
test "$gcc_func_mmap" != yes; then
9628 gcc_cv_func_mmap_file
=no
9629 gcc_cv_func_mmap_dev_zero
=no
9630 gcc_cv_func_mmap_anon
=no
9632 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9633 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9634 if test "${gcc_cv_func_mmap_file+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 # Add a system to this blacklist if
9638 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9639 # memory area containing the same data that you'd get if you applied
9640 # read() to the same fd. The only system known to have a problem here
9641 # is VMS, where text files have record structure.
9644 gcc_cv_func_mmap_file
=no
;;
9646 gcc_cv_func_mmap_file
=yes;;
9649 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9650 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9651 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9652 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9653 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 # Add a system to this blacklist if it has mmap() but /dev/zero
9657 # does not exist, or if mmapping /dev/zero does not give anonymous
9658 # zeroed pages with both the following properties:
9659 # 1. If you map N consecutive pages in with one call, and then
9660 # unmap any subset of those pages, the pages that were not
9661 # explicitly unmapped remain accessible.
9662 # 2. If you map two adjacent blocks of memory and then unmap them
9663 # both at once, they must both go away.
9664 # Systems known to be in this category are Windows (all variants),
9667 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9668 gcc_cv_func_mmap_dev_zero
=no
;;
9670 gcc_cv_func_mmap_dev_zero
=yes;;
9673 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9674 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9676 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9677 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9678 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9679 if test "${gcc_cv_decl_map_anon+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9682 cat >conftest.
$ac_ext <<_ACEOF
9685 cat confdefs.h
>>conftest.
$ac_ext
9686 cat >>conftest.
$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 #include <sys/types.h>
9689 #include <sys/mman.h>
9692 #ifndef MAP_ANONYMOUS
9693 #define MAP_ANONYMOUS MAP_ANON
9699 int n = MAP_ANONYMOUS;
9704 rm -f conftest.
$ac_objext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9706 (eval $ac_compile) 2>conftest.er1
9708 grep -v '^ *+' conftest.er1
>conftest.err
9710 cat conftest.err
>&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try
='test -z "$ac_c_werror_flag"
9714 || test ! -s conftest.err'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; } &&
9720 { ac_try
='test -s conftest.$ac_objext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 gcc_cv_decl_map_anon
=yes
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.
$ac_ext >&5
9731 gcc_cv_decl_map_anon
=no
9733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9735 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9736 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9738 if test $gcc_cv_decl_map_anon = no
; then
9739 gcc_cv_func_mmap_anon
=no
9741 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9742 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9743 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9747 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9748 # doesn't give anonymous zeroed pages with the same properties listed
9749 # above for use of /dev/zero.
9750 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9752 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9753 gcc_cv_func_mmap_anon
=no
;;
9755 gcc_cv_func_mmap_anon
=yes;;
9758 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9759 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9763 if test $gcc_cv_func_mmap_file = yes; then
9765 cat >>confdefs.h
<<\_ACEOF
9766 #define HAVE_MMAP_FILE 1
9770 if test $gcc_cv_func_mmap_dev_zero = yes; then
9772 cat >>confdefs.h
<<\_ACEOF
9773 #define HAVE_MMAP_DEV_ZERO 1
9777 if test $gcc_cv_func_mmap_anon = yes; then
9779 cat >>confdefs.h
<<\_ACEOF
9780 #define HAVE_MMAP_ANON 1
9788 # Under VMS, vfork works very differently than on Unix. The standard test
9789 # won't work, and it isn't easily adaptable. It makes more sense to
9791 ac_cv_func_vfork_works
=yes
9794 echo "$as_me:$LINENO: checking for pid_t" >&5
9795 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9796 if test "${ac_cv_type_pid_t+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 cat >conftest.
$ac_ext <<_ACEOF
9802 cat confdefs.h
>>conftest.
$ac_ext
9803 cat >>conftest.
$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 $ac_includes_default
9817 rm -f conftest.
$ac_objext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9819 (eval $ac_compile) 2>conftest.er1
9821 grep -v '^ *+' conftest.er1
>conftest.err
9823 cat conftest.err
>&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try
='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try
='test -s conftest.$ac_objext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_cv_type_pid_t
=yes
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.
$ac_ext >&5
9846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9848 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9849 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9850 if test $ac_cv_type_pid_t = yes; then
9854 cat >>confdefs.h
<<_ACEOF
9862 for ac_header
in unistd.h vfork.h
9864 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9865 echo "$as_me:$LINENO: checking for $ac_header" >&5
9866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9867 if eval "test \"\${$as_ac_Header+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 <$ac_header>
9878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9879 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9881 grep -v '^ *+' conftest.er1
>conftest.err
9883 cat conftest.err
>&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } >/dev
/null
; then
9886 if test -s conftest.err
; then
9887 ac_cpp_err
=$ac_c_preproc_warn_flag
9888 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9895 if test -z "$ac_cpp_err"; then
9896 eval "$as_ac_Header=yes"
9898 echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.
$ac_ext >&5
9901 eval "$as_ac_Header=no"
9903 rm -f conftest.err conftest.
$ac_ext
9905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9908 cat >>confdefs.h
<<_ACEOF
9909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9917 for ac_func
in fork vfork
9919 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9920 echo "$as_me:$LINENO: checking for $ac_func" >&5
9921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9922 if eval "test \"\${$as_ac_var+set}\" = set"; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 cat >conftest.
$ac_ext <<_ACEOF
9928 cat confdefs.h
>>conftest.
$ac_ext
9929 cat >>conftest.
$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9933 #define $ac_func innocuous_$ac_func
9935 /* System header to define __stub macros and hopefully few prototypes,
9936 which can conflict with char $ac_func (); below.
9937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9938 <limits.h> exists even on freestanding compilers. */
9941 # include <limits.h>
9943 # include <assert.h>
9948 /* Override any gcc2 internal prototype to avoid an error. */
9953 /* We use char because int might match the return type of a gcc2
9954 builtin and then its argument prototype would still apply. */
9956 /* The GNU C library defines this for functions which it implements
9957 to always fail with ENOSYS. Some functions are actually named
9958 something starting with __ and the normal name is an alias. */
9959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9962 char (*f) () = $ac_func;
9971 return f != $ac_func;
9976 rm -f conftest.
$ac_objext conftest
$ac_exeext
9977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9978 (eval $ac_link) 2>conftest.er1
9980 grep -v '^ *+' conftest.er1
>conftest.err
9982 cat conftest.err
>&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } &&
9985 { ac_try
='test -z "$ac_c_werror_flag"
9986 || test ! -s conftest.err'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; } &&
9992 { ac_try
='test -s conftest$ac_exeext'
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9998 eval "$as_ac_var=yes"
10000 echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.
$ac_ext >&5
10003 eval "$as_ac_var=no"
10005 rm -f conftest.err conftest.
$ac_objext \
10006 conftest
$ac_exeext conftest.
$ac_ext
10008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10010 if test `eval echo '${'$as_ac_var'}'` = yes; then
10011 cat >>confdefs.h
<<_ACEOF
10012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10018 if test "x$ac_cv_func_fork" = xyes
; then
10019 echo "$as_me:$LINENO: checking for working fork" >&5
10020 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10021 if test "${ac_cv_func_fork_works+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 if test "$cross_compiling" = yes; then
10025 ac_cv_func_fork_works
=cross
10027 cat >conftest.
$ac_ext <<_ACEOF
10028 /* By Ruediger Kuhlmann. */
10029 #include <sys/types.h>
10031 # include <unistd.h>
10033 /* Some systems only have a dummy stub for fork() */
10041 rm -f conftest
$ac_exeext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10043 (eval $ac_link) 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
10052 ac_cv_func_fork_works
=yes
10054 echo "$as_me: program exited with status $ac_status" >&5
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.
$ac_ext >&5
10058 ( exit $ac_status )
10059 ac_cv_func_fork_works
=no
10061 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10064 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10065 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10068 ac_cv_func_fork_works
=$ac_cv_func_fork
10070 if test "x$ac_cv_func_fork_works" = xcross
; then
10072 *-*-amigaos* |
*-*-msdosdjgpp*)
10073 # Override, as these systems have only a dummy fork() stub
10074 ac_cv_func_fork_works
=no
10077 ac_cv_func_fork_works
=yes
10080 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10081 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10083 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10084 if test "x$ac_cv_func_vfork" = xyes
; then
10085 echo "$as_me:$LINENO: checking for working vfork" >&5
10086 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10087 if test "${ac_cv_func_vfork_works+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 if test "$cross_compiling" = yes; then
10091 ac_cv_func_vfork_works
=cross
10093 cat >conftest.
$ac_ext <<_ACEOF
10096 cat confdefs.h
>>conftest.
$ac_ext
10097 cat >>conftest.
$ac_ext <<_ACEOF
10098 /* end confdefs.h. */
10099 /* Thanks to Paul Eggert for this test. */
10101 #include <stdlib.h>
10102 #include <sys/types.h>
10103 #include <sys/stat.h>
10104 #include <sys/wait.h>
10106 # include <unistd.h>
10109 # include <vfork.h>
10111 /* On some sparc systems, changes by the child to local and incoming
10112 argument registers are propagated back to the parent. The compiler
10113 is told about this with #include <vfork.h>, but some compilers
10114 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10115 static variable whose address is put into a register that is
10116 clobbered by the vfork. */
10119 sparc_address_test (int arg)
10121 sparc_address_test (arg) int arg;
10124 static pid_t child;
10142 pid_t parent = getpid ();
10145 sparc_address_test (0);
10150 /* Here is another test for sparc vfork register problems. This
10151 test uses lots of local variables, at least as many local
10152 variables as main has allocated so far including compiler
10153 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10154 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10155 reuse the register of parent for one of the local variables,
10156 since it will think that parent can't possibly be used any more
10157 in this routine. Assigning to the local variable will thus
10158 munge parent in the parent process. */
10160 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10161 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10162 /* Convince the compiler that p..p7 are live; otherwise, it might
10163 use the same hardware register for all 8 local variables. */
10164 if (p != p1 || p != p2 || p != p3 || p != p4
10165 || p != p5 || p != p6 || p != p7)
10168 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10169 from child file descriptors. If the child closes a descriptor
10170 before it execs or exits, this munges the parent's descriptor
10171 as well. Test for this by closing stdout in the child. */
10172 _exit(close(fileno(stdout)) != 0);
10177 while (wait(&status) != child)
10180 /* Was there some problem with vforking? */
10183 /* Did the child fail? (This shouldn't happen.) */
10186 /* Did the vfork/compiler bug occur? */
10187 || parent != getpid()
10189 /* Did the file descriptor bug occur? */
10190 || fstat(fileno(stdout), &st) != 0
10195 rm -f conftest
$ac_exeext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10197 (eval $ac_link) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 ac_cv_func_vfork_works
=yes
10208 echo "$as_me: program exited with status $ac_status" >&5
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.
$ac_ext >&5
10212 ( exit $ac_status )
10213 ac_cv_func_vfork_works
=no
10215 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10218 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10219 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10222 if test "x$ac_cv_func_fork_works" = xcross
; then
10223 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10224 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10225 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10228 if test "x$ac_cv_func_vfork_works" = xyes
; then
10230 cat >>confdefs.h
<<\_ACEOF
10231 #define HAVE_WORKING_VFORK 1
10236 cat >>confdefs.h
<<\_ACEOF
10241 if test "x$ac_cv_func_fork_works" = xyes
; then
10243 cat >>confdefs.h
<<\_ACEOF
10244 #define HAVE_WORKING_FORK 1
10251 if test "X$prefix" = "XNONE"; then
10252 acl_final_prefix
="$ac_default_prefix"
10254 acl_final_prefix
="$prefix"
10256 if test "X$exec_prefix" = "XNONE"; then
10257 acl_final_exec_prefix
='${prefix}'
10259 acl_final_exec_prefix
="$exec_prefix"
10261 acl_save_prefix
="$prefix"
10262 prefix
="$acl_final_prefix"
10263 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10264 prefix
="$acl_save_prefix"
10267 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10268 if test "${with_gnu_ld+set}" = set; then
10269 withval
="$with_gnu_ld"
10270 test "$withval" = no || with_gnu_ld
=yes
10274 # Prepare PATH_SEPARATOR.
10275 # The user is always right.
10276 if test "${PATH_SEPARATOR+set}" != set; then
10277 echo "#! /bin/sh" >conf$$.sh
10278 echo "exit 0" >>conf$$.sh
10280 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10288 if test "$GCC" = yes; then
10289 # Check if gcc -print-prog-name=ld gives a path.
10290 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10291 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10294 # gcc leaves a trailing carriage return which upsets mingw
10295 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10297 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10300 # Accept absolute paths.
10301 [\\/]* |
[A-Za-z
]:[\\/]*)
10302 re_direlt
='/[^/][^/]*/\.\./'
10303 # Canonicalize the path of ld
10304 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10305 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10306 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10308 test -z "$LD" && LD
="$ac_prog"
10311 # If it fails, then pretend we aren't using GCC.
10315 # If it is relative, then search for the first ld in PATH.
10316 with_gnu_ld
=unknown
10319 elif test "$with_gnu_ld" = yes; then
10320 echo "$as_me:$LINENO: checking for GNU ld" >&5
10321 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10323 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10324 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10326 if test "${acl_cv_path_LD+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 if test -z "$LD"; then
10330 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10331 for ac_dir
in $PATH; do
10332 test -z "$ac_dir" && ac_dir
=.
10333 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10334 acl_cv_path_LD
="$ac_dir/$ac_prog"
10335 # Check to see if the program is GNU ld. I'd rather use --version,
10336 # but apparently some GNU ld's only accept -v.
10337 # Break only if it was the GNU/non-GNU ld that we prefer.
10338 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10339 test "$with_gnu_ld" != no
&& break
10341 test "$with_gnu_ld" != yes && break
10347 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10351 LD
="$acl_cv_path_LD"
10352 if test -n "$LD"; then
10353 echo "$as_me:$LINENO: result: $LD" >&5
10354 echo "${ECHO_T}$LD" >&6
10356 echo "$as_me:$LINENO: result: no" >&5
10357 echo "${ECHO_T}no" >&6
10359 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10360 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10361 { (exit 1); exit 1; }; }
10362 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10363 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10364 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10368 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10369 acl_cv_prog_gnu_ld
=yes
10371 acl_cv_prog_gnu_ld
=no
10374 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10375 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10376 with_gnu_ld
=$acl_cv_prog_gnu_ld
10380 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10381 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10382 if test "${acl_cv_rpath+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10387 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10389 rm -f .
/conftest.sh
10393 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10394 echo "${ECHO_T}$acl_cv_rpath" >&6
10396 libext
="$acl_cv_libext"
10397 shlibext
="$acl_cv_shlibext"
10398 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10399 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10400 hardcode_direct
="$acl_cv_hardcode_direct"
10401 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10402 # Check whether --enable-rpath or --disable-rpath was given.
10403 if test "${enable_rpath+set}" = set; then
10404 enableval
="$enable_rpath"
10418 acl_save_prefix
="$prefix"
10419 prefix
="$acl_final_prefix"
10420 acl_save_exec_prefix
="$exec_prefix"
10421 exec_prefix
="$acl_final_exec_prefix"
10423 eval additional_includedir
=\"$includedir\"
10424 eval additional_libdir
=\"$libdir\"
10426 exec_prefix
="$acl_save_exec_prefix"
10427 prefix
="$acl_save_prefix"
10430 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10431 if test "${with_libiconv_prefix+set}" = set; then
10432 withval
="$with_libiconv_prefix"
10434 if test "X$withval" = "Xno"; then
10437 if test "X$withval" = "X"; then
10439 acl_save_prefix
="$prefix"
10440 prefix
="$acl_final_prefix"
10441 acl_save_exec_prefix
="$exec_prefix"
10442 exec_prefix
="$acl_final_exec_prefix"
10444 eval additional_includedir
=\"$includedir\"
10445 eval additional_libdir
=\"$libdir\"
10447 exec_prefix
="$acl_save_exec_prefix"
10448 prefix
="$acl_save_prefix"
10451 additional_includedir
="$withval/include"
10452 additional_libdir
="$withval/lib"
10462 names_already_handled
=
10463 names_next_round
='iconv '
10464 while test -n "$names_next_round"; do
10465 names_this_round
="$names_next_round"
10467 for name
in $names_this_round; do
10469 for n
in $names_already_handled; do
10470 if test "$n" = "$name"; then
10471 already_handled
=yes
10475 if test -z "$already_handled"; then
10476 names_already_handled
="$names_already_handled $name"
10477 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10478 eval value
=\"\
$HAVE_LIB$uppername\"
10479 if test -n "$value"; then
10480 if test "$value" = yes; then
10481 eval value
=\"\
$LIB$uppername\"
10482 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10483 eval value
=\"\
$LTLIB$uppername\"
10484 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10493 if test $use_additional = yes; then
10494 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10495 found_dir
="$additional_libdir"
10496 found_so
="$additional_libdir/lib$name.$shlibext"
10497 if test -f "$additional_libdir/lib$name.la"; then
10498 found_la
="$additional_libdir/lib$name.la"
10501 if test -f "$additional_libdir/lib$name.$libext"; then
10502 found_dir
="$additional_libdir"
10503 found_a
="$additional_libdir/lib$name.$libext"
10504 if test -f "$additional_libdir/lib$name.la"; then
10505 found_la
="$additional_libdir/lib$name.la"
10510 if test "X$found_dir" = "X"; then
10511 for x
in $LDFLAGS $LTLIBICONV; do
10513 acl_save_prefix
="$prefix"
10514 prefix
="$acl_final_prefix"
10515 acl_save_exec_prefix
="$exec_prefix"
10516 exec_prefix
="$acl_final_exec_prefix"
10518 exec_prefix
="$acl_save_exec_prefix"
10519 prefix
="$acl_save_prefix"
10523 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10524 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10526 found_so
="$dir/lib$name.$shlibext"
10527 if test -f "$dir/lib$name.la"; then
10528 found_la
="$dir/lib$name.la"
10531 if test -f "$dir/lib$name.$libext"; then
10533 found_a
="$dir/lib$name.$libext"
10534 if test -f "$dir/lib$name.la"; then
10535 found_la
="$dir/lib$name.la"
10541 if test "X$found_dir" != "X"; then
10546 if test "X$found_dir" != "X"; then
10547 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10548 if test "X$found_so" != "X"; then
10549 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10550 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10553 for x
in $ltrpathdirs; do
10554 if test "X$x" = "X$found_dir"; then
10559 if test -z "$haveit"; then
10560 ltrpathdirs
="$ltrpathdirs $found_dir"
10562 if test "$hardcode_direct" = yes; then
10563 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10565 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10566 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10568 for x
in $rpathdirs; do
10569 if test "X$x" = "X$found_dir"; then
10574 if test -z "$haveit"; then
10575 rpathdirs
="$rpathdirs $found_dir"
10579 for x
in $LDFLAGS $LIBICONV; do
10581 acl_save_prefix
="$prefix"
10582 prefix
="$acl_final_prefix"
10583 acl_save_exec_prefix
="$exec_prefix"
10584 exec_prefix
="$acl_final_exec_prefix"
10586 exec_prefix
="$acl_save_exec_prefix"
10587 prefix
="$acl_save_prefix"
10589 if test "X$x" = "X-L$found_dir"; then
10594 if test -z "$haveit"; then
10595 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10597 if test "$hardcode_minus_L" != no
; then
10598 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10600 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10606 if test "X$found_a" != "X"; then
10607 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10609 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10612 additional_includedir
=
10613 case "$found_dir" in
10615 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10616 additional_includedir
="$basedir/include"
10619 if test "X$additional_includedir" != "X"; then
10620 if test "X$additional_includedir" != "X/usr/include"; then
10622 if test "X$additional_includedir" = "X/usr/local/include"; then
10623 if test -n "$GCC"; then
10625 linux
*) haveit
=yes;;
10629 if test -z "$haveit"; then
10630 for x
in $CPPFLAGS $INCICONV; do
10632 acl_save_prefix
="$prefix"
10633 prefix
="$acl_final_prefix"
10634 acl_save_exec_prefix
="$exec_prefix"
10635 exec_prefix
="$acl_final_exec_prefix"
10637 exec_prefix
="$acl_save_exec_prefix"
10638 prefix
="$acl_save_prefix"
10640 if test "X$x" = "X-I$additional_includedir"; then
10645 if test -z "$haveit"; then
10646 if test -d "$additional_includedir"; then
10647 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10653 if test -n "$found_la"; then
10654 save_libdir
="$libdir"
10655 case "$found_la" in
10656 */* |
*\\*) .
"$found_la" ;;
10657 *) .
"./$found_la" ;;
10659 libdir
="$save_libdir"
10660 for dep
in $dependency_libs; do
10663 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10664 if test "X$additional_libdir" != "X/usr/lib"; then
10666 if test "X$additional_libdir" = "X/usr/local/lib"; then
10667 if test -n "$GCC"; then
10669 linux
*) haveit
=yes;;
10673 if test -z "$haveit"; then
10675 for x
in $LDFLAGS $LIBICONV; do
10677 acl_save_prefix
="$prefix"
10678 prefix
="$acl_final_prefix"
10679 acl_save_exec_prefix
="$exec_prefix"
10680 exec_prefix
="$acl_final_exec_prefix"
10682 exec_prefix
="$acl_save_exec_prefix"
10683 prefix
="$acl_save_prefix"
10685 if test "X$x" = "X-L$additional_libdir"; then
10690 if test -z "$haveit"; then
10691 if test -d "$additional_libdir"; then
10692 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10696 for x
in $LDFLAGS $LTLIBICONV; do
10698 acl_save_prefix
="$prefix"
10699 prefix
="$acl_final_prefix"
10700 acl_save_exec_prefix
="$exec_prefix"
10701 exec_prefix
="$acl_final_exec_prefix"
10703 exec_prefix
="$acl_save_exec_prefix"
10704 prefix
="$acl_save_prefix"
10706 if test "X$x" = "X-L$additional_libdir"; then
10711 if test -z "$haveit"; then
10712 if test -d "$additional_libdir"; then
10713 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10720 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10721 if test "$enable_rpath" != no
; then
10723 for x
in $rpathdirs; do
10724 if test "X$x" = "X$dir"; then
10729 if test -z "$haveit"; then
10730 rpathdirs
="$rpathdirs $dir"
10733 for x
in $ltrpathdirs; do
10734 if test "X$x" = "X$dir"; then
10739 if test -z "$haveit"; then
10740 ltrpathdirs
="$ltrpathdirs $dir"
10745 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10748 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10751 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10752 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10758 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10759 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10765 if test "X$rpathdirs" != "X"; then
10766 if test -n "$hardcode_libdir_separator"; then
10768 for found_dir
in $rpathdirs; do
10769 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10771 acl_save_libdir
="$libdir"
10773 eval flag
=\"$hardcode_libdir_flag_spec\"
10774 libdir
="$acl_save_libdir"
10775 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10777 for found_dir
in $rpathdirs; do
10778 acl_save_libdir
="$libdir"
10779 libdir
="$found_dir"
10780 eval flag
=\"$hardcode_libdir_flag_spec\"
10781 libdir
="$acl_save_libdir"
10782 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10786 if test "X$ltrpathdirs" != "X"; then
10787 for found_dir
in $ltrpathdirs; do
10788 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10798 am_save_CPPFLAGS
="$CPPFLAGS"
10800 for element
in $INCICONV; do
10802 for x
in $CPPFLAGS; do
10804 acl_save_prefix
="$prefix"
10805 prefix
="$acl_final_prefix"
10806 acl_save_exec_prefix
="$exec_prefix"
10807 exec_prefix
="$acl_final_exec_prefix"
10809 exec_prefix
="$acl_save_exec_prefix"
10810 prefix
="$acl_save_prefix"
10812 if test "X$x" = "X$element"; then
10817 if test -z "$haveit"; then
10818 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10823 echo "$as_me:$LINENO: checking for iconv" >&5
10824 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10825 if test "${am_cv_func_iconv+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 am_cv_func_iconv
="no, consider installing GNU libiconv"
10831 cat >conftest.
$ac_ext <<_ACEOF
10834 cat confdefs.h
>>conftest.
$ac_ext
10835 cat >>conftest.
$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 #include <stdlib.h>
10842 iconv_t cd = iconv_open("","");
10843 iconv(cd,NULL,NULL,NULL,NULL);
10849 rm -f conftest.
$ac_objext conftest
$ac_exeext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10851 (eval $ac_link) 2>conftest.er1
10853 grep -v '^ *+' conftest.er1
>conftest.err
10855 cat conftest.err
>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try
='test -z "$ac_c_werror_flag"
10859 || test ! -s conftest.err'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try
='test -s conftest$ac_exeext'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 am_cv_func_iconv
=yes
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.
$ac_ext >&5
10877 rm -f conftest.err conftest.
$ac_objext \
10878 conftest
$ac_exeext conftest.
$ac_ext
10879 if test "$am_cv_func_iconv" != yes; then
10880 am_save_LIBS
="$LIBS"
10881 LIBS
="$LIBS $LIBICONV"
10882 cat >conftest.
$ac_ext <<_ACEOF
10885 cat confdefs.h
>>conftest.
$ac_ext
10886 cat >>conftest.
$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 #include <stdlib.h>
10893 iconv_t cd = iconv_open("","");
10894 iconv(cd,NULL,NULL,NULL,NULL);
10900 rm -f conftest.
$ac_objext conftest
$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902 (eval $ac_link) 2>conftest.er1
10904 grep -v '^ *+' conftest.er1
>conftest.err
10906 cat conftest.err
>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } &&
10909 { ac_try
='test -z "$ac_c_werror_flag"
10910 || test ! -s conftest.err'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; } &&
10916 { ac_try
='test -s conftest$ac_exeext'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 am_cv_lib_iconv
=yes
10923 am_cv_func_iconv
=yes
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.
$ac_ext >&5
10929 rm -f conftest.err conftest.
$ac_objext \
10930 conftest
$ac_exeext conftest.
$ac_ext
10931 LIBS
="$am_save_LIBS"
10935 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10936 echo "${ECHO_T}$am_cv_func_iconv" >&6
10937 if test "$am_cv_func_iconv" = yes; then
10939 cat >>confdefs.h
<<\_ACEOF
10940 #define HAVE_ICONV 1
10944 if test "$am_cv_lib_iconv" = yes; then
10945 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10946 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10947 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10948 echo "${ECHO_T}$LIBICONV" >&6
10950 CPPFLAGS
="$am_save_CPPFLAGS"
10957 if test "$am_cv_func_iconv" = yes; then
10958 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10959 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10960 if test "${am_cv_proto_iconv+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 cat >conftest.
$ac_ext <<_ACEOF
10967 cat confdefs.h
>>conftest.
$ac_ext
10968 cat >>conftest.
$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10971 #include <stdlib.h>
10977 #if defined(__STDC__) || defined(__cplusplus)
10978 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10991 rm -f conftest.
$ac_objext
10992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10993 (eval $ac_compile) 2>conftest.er1
10995 grep -v '^ *+' conftest.er1
>conftest.err
10997 cat conftest.err
>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } &&
11000 { ac_try
='test -z "$ac_c_werror_flag"
11001 || test ! -s conftest.err'
11002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003 (eval $ac_try) 2>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; } &&
11007 { ac_try
='test -s conftest.$ac_objext'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; }; then
11013 am_cv_proto_iconv_arg1
=""
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.
$ac_ext >&5
11018 am_cv_proto_iconv_arg1
="const"
11020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11021 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);"
11024 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11025 echo "$as_me:$LINENO: result: ${ac_t:-
11026 }$am_cv_proto_iconv" >&5
11027 echo "${ECHO_T}${ac_t:-
11028 }$am_cv_proto_iconv" >&6
11030 cat >>confdefs.h
<<_ACEOF
11031 #define ICONV_CONST $am_cv_proto_iconv_arg1
11036 # Until we have in-tree GNU iconv:
11041 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11042 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11043 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 cat >conftest.
$ac_ext <<_ACEOF
11049 cat confdefs.h
>>conftest.
$ac_ext
11050 cat >>conftest.
$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052 #include <locale.h>
11061 rm -f conftest.
$ac_objext conftest
$ac_exeext
11062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063 (eval $ac_link) 2>conftest.er1
11065 grep -v '^ *+' conftest.er1
>conftest.err
11067 cat conftest.err
>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
11070 { ac_try
='test -z "$ac_c_werror_flag"
11071 || test ! -s conftest.err'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; } &&
11077 { ac_try
='test -s conftest$ac_exeext'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11083 am_cv_val_LC_MESSAGES
=yes
11085 echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.
$ac_ext >&5
11088 am_cv_val_LC_MESSAGES
=no
11090 rm -f conftest.err conftest.
$ac_objext \
11091 conftest
$ac_exeext conftest.
$ac_ext
11093 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11094 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11095 if test $am_cv_val_LC_MESSAGES = yes; then
11097 cat >>confdefs.h
<<\_ACEOF
11098 #define HAVE_LC_MESSAGES 1
11105 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11106 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11107 if test "${am_cv_langinfo_codeset+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 cat >conftest.
$ac_ext <<_ACEOF
11113 cat confdefs.h
>>conftest.
$ac_ext
11114 cat >>conftest.
$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 #include <langinfo.h>
11120 char* cs = nl_langinfo(CODESET);
11125 rm -f conftest.
$ac_objext conftest
$ac_exeext
11126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11127 (eval $ac_link) 2>conftest.er1
11129 grep -v '^ *+' conftest.er1
>conftest.err
11131 cat conftest.err
>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try
='test -z "$ac_c_werror_flag"
11135 || test ! -s conftest.err'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try
='test -s conftest$ac_exeext'
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 am_cv_langinfo_codeset
=yes
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.
$ac_ext >&5
11152 am_cv_langinfo_codeset
=no
11154 rm -f conftest.err conftest.
$ac_objext \
11155 conftest
$ac_exeext conftest.
$ac_ext
11158 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11159 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11160 if test $am_cv_langinfo_codeset = yes; then
11162 cat >>confdefs.h
<<\_ACEOF
11163 #define HAVE_LANGINFO_CODESET 1
11169 # We will need to find libiberty.h and ansidecl.h
11170 saved_CFLAGS
="$CFLAGS"
11171 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11210 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd strsignal \
11211 strstr errno snprintf vsnprintf vasprintf malloc realloc calloc \
11212 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
11214 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11215 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11216 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11217 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 cat >conftest.
$ac_ext <<_ACEOF
11223 cat confdefs.h
>>conftest.
$ac_ext
11224 cat >>conftest.
$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11227 #define $ac_tr_decl 1
11229 #include "ansidecl.h"
11230 #include "system.h"
11236 char *(*pfn) = (char *(*)) $ac_func ;
11242 rm -f conftest.
$ac_objext
11243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11244 (eval $ac_compile) 2>conftest.er1
11246 grep -v '^ *+' conftest.er1
>conftest.err
11248 cat conftest.err
>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } &&
11251 { ac_try
='test -z "$ac_c_werror_flag"
11252 || test ! -s conftest.err'
11253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; } &&
11258 { ac_try
='test -s conftest.$ac_objext'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 eval "gcc_cv_have_decl_$ac_func=yes"
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.
$ac_ext >&5
11269 eval "gcc_cv_have_decl_$ac_func=no"
11271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11274 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11275 echo "$as_me:$LINENO: result: yes" >&5
11276 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11277 #define $ac_tr_decl 1
11281 echo "$as_me:$LINENO: result: no" >&5
11282 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11283 #define $ac_tr_decl 0
11294 for ac_func
in getrlimit setrlimit getrusage
11296 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11297 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11298 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11299 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 cat >conftest.
$ac_ext <<_ACEOF
11305 cat confdefs.h
>>conftest.
$ac_ext
11306 cat >>conftest.
$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11309 #define $ac_tr_decl 1
11311 #include "ansidecl.h"
11312 #include "system.h"
11313 #ifdef HAVE_SYS_RESOURCE_H
11314 #include <sys/resource.h>
11322 char *(*pfn) = (char *(*)) $ac_func ;
11328 rm -f conftest.
$ac_objext
11329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11330 (eval $ac_compile) 2>conftest.er1
11332 grep -v '^ *+' conftest.er1
>conftest.err
11334 cat conftest.err
>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try
='test -z "$ac_c_werror_flag"
11338 || test ! -s conftest.err'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; } &&
11344 { ac_try
='test -s conftest.$ac_objext'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }; then
11350 eval "gcc_cv_have_decl_$ac_func=yes"
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.
$ac_ext >&5
11355 eval "gcc_cv_have_decl_$ac_func=no"
11357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11360 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11361 echo "$as_me:$LINENO: result: yes" >&5
11362 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11363 #define $ac_tr_decl 1
11367 echo "$as_me:$LINENO: result: no" >&5
11368 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11369 #define $ac_tr_decl 0
11377 cat >conftest.
$ac_ext <<_ACEOF
11380 cat confdefs.h
>>conftest.
$ac_ext
11381 cat >>conftest.
$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11384 #include "ansidecl.h"
11385 #include "system.h"
11386 #ifdef HAVE_SYS_RESOURCE_H
11387 #include <sys/resource.h>
11398 rm -f conftest.
$ac_objext
11399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11400 (eval $ac_compile) 2>conftest.er1
11402 grep -v '^ *+' conftest.er1
>conftest.err
11404 cat conftest.err
>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } &&
11407 { ac_try
='test -z "$ac_c_werror_flag"
11408 || test ! -s conftest.err'
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; } &&
11414 { ac_try
='test -s conftest.$ac_objext'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11422 echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.
$ac_ext >&5
11426 cat >>confdefs.h
<<\_ACEOF
11427 #define rlim_t long
11431 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11433 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11434 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11435 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11436 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11438 for ac_func
in ldgetname
11440 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11441 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11442 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11443 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 cat >conftest.
$ac_ext <<_ACEOF
11449 cat confdefs.h
>>conftest.
$ac_ext
11450 cat >>conftest.
$ac_ext <<_ACEOF
11451 /* end confdefs.h. */
11453 #define $ac_tr_decl 1
11455 #include "ansidecl.h"
11456 #include "system.h"
11457 #ifdef HAVE_LDFCN_H
11468 char *(*pfn) = (char *(*)) $ac_func ;
11474 rm -f conftest.
$ac_objext
11475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11476 (eval $ac_compile) 2>conftest.er1
11478 grep -v '^ *+' conftest.er1
>conftest.err
11480 cat conftest.err
>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } &&
11483 { ac_try
='test -z "$ac_c_werror_flag"
11484 || test ! -s conftest.err'
11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; } &&
11490 { ac_try
='test -s conftest.$ac_objext'
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 eval "gcc_cv_have_decl_$ac_func=yes"
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.
$ac_ext >&5
11501 eval "gcc_cv_have_decl_$ac_func=no"
11503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11506 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11507 echo "$as_me:$LINENO: result: yes" >&5
11508 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11509 #define $ac_tr_decl 1
11513 echo "$as_me:$LINENO: result: no" >&5
11514 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11515 #define $ac_tr_decl 0
11524 for ac_func
in times
11526 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11527 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11528 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11529 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11532 cat >conftest.
$ac_ext <<_ACEOF
11535 cat confdefs.h
>>conftest.
$ac_ext
11536 cat >>conftest.
$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11539 #define $ac_tr_decl 1
11541 #include "ansidecl.h"
11542 #include "system.h"
11543 #ifdef HAVE_SYS_TIMES_H
11544 #include <sys/times.h>
11552 char *(*pfn) = (char *(*)) $ac_func ;
11558 rm -f conftest.
$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>conftest.er1
11562 grep -v '^ *+' conftest.er1
>conftest.err
11564 cat conftest.err
>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try
='test -z "$ac_c_werror_flag"
11568 || test ! -s conftest.err'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try
='test -s conftest.$ac_objext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 eval "gcc_cv_have_decl_$ac_func=yes"
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.
$ac_ext >&5
11585 eval "gcc_cv_have_decl_$ac_func=no"
11587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11590 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11591 echo "$as_me:$LINENO: result: yes" >&5
11592 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11593 #define $ac_tr_decl 1
11597 echo "$as_me:$LINENO: result: no" >&5
11598 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11599 #define $ac_tr_decl 0
11607 # More time-related stuff.
11608 echo "$as_me:$LINENO: checking for struct tms" >&5
11609 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11610 if test "${ac_cv_struct_tms+set}" = set; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 cat >conftest.
$ac_ext <<_ACEOF
11617 cat confdefs.h
>>conftest.
$ac_ext
11618 cat >>conftest.
$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11621 #include "ansidecl.h"
11622 #include "system.h"
11623 #ifdef HAVE_SYS_TIMES_H
11624 #include <sys/times.h>
11635 rm -f conftest.
$ac_objext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11637 (eval $ac_compile) 2>conftest.er1
11639 grep -v '^ *+' conftest.er1
>conftest.err
11641 cat conftest.err
>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
11644 { ac_try
='test -z "$ac_c_werror_flag"
11645 || test ! -s conftest.err'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; } &&
11651 { ac_try
='test -s conftest.$ac_objext'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 ac_cv_struct_tms
=yes
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.
$ac_ext >&5
11662 ac_cv_struct_tms
=no
11664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11666 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11667 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11668 if test $ac_cv_struct_tms = yes; then
11670 cat >>confdefs.h
<<\_ACEOF
11671 #define HAVE_STRUCT_TMS 1
11676 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11677 # revisit after autoconf 2.50.
11678 echo "$as_me:$LINENO: checking for clock_t" >&5
11679 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11680 if test "${gcc_cv_type_clock_t+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11684 cat >conftest.
$ac_ext <<_ACEOF
11687 cat confdefs.h
>>conftest.
$ac_ext
11688 cat >>conftest.
$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11691 #include "ansidecl.h"
11692 #include "system.h"
11702 rm -f conftest.
$ac_objext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11704 (eval $ac_compile) 2>conftest.er1
11706 grep -v '^ *+' conftest.er1
>conftest.err
11708 cat conftest.err
>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } &&
11711 { ac_try
='test -z "$ac_c_werror_flag"
11712 || test ! -s conftest.err'
11713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714 (eval $ac_try) 2>&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; } &&
11718 { ac_try
='test -s conftest.$ac_objext'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724 gcc_cv_type_clock_t
=yes
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.
$ac_ext >&5
11729 gcc_cv_type_clock_t
=no
11731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11733 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11734 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11735 if test $gcc_cv_type_clock_t = yes; then
11737 cat >>confdefs.h
<<\_ACEOF
11738 #define HAVE_CLOCK_T 1
11743 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11744 CFLAGS
="$saved_CFLAGS"
11746 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11747 if test "${enable_initfini_array+set}" = set; then
11748 enableval
="$enable_initfini_array"
11752 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11753 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11754 if test "${gcc_cv_initfini_array+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 if test "$cross_compiling" = yes; then
11758 gcc_cv_initfini_array
=no
11760 cat >conftest.
$ac_ext <<_ACEOF
11763 cat confdefs.h
>>conftest.
$ac_ext
11764 cat >>conftest.
$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11768 int main (void) { return x; }
11769 int foo (void) { x = 0; }
11770 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11772 rm -f conftest
$ac_exeext
11773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11774 (eval $ac_link) 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783 gcc_cv_initfini_array
=yes
11785 echo "$as_me: program exited with status $ac_status" >&5
11786 echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.
$ac_ext >&5
11789 ( exit $ac_status )
11790 gcc_cv_initfini_array
=no
11792 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11795 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11796 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11797 enable_initfini_array
=$gcc_cv_initfini_array
11800 if test $enable_initfini_array = yes; then
11802 cat >>confdefs.h
<<\_ACEOF
11803 #define HAVE_INITFINI_ARRAY 1
11808 # mkdir takes a single argument on some systems.
11809 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11810 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11811 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 cat >conftest.
$ac_ext <<_ACEOF
11817 cat confdefs.h
>>conftest.
$ac_ext
11818 cat >>conftest.
$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11821 #include <sys/types.h>
11822 #ifdef HAVE_SYS_STAT_H
11823 # include <sys/stat.h>
11825 #ifdef HAVE_UNISTD_H
11826 # include <unistd.h>
11828 #ifdef HAVE_DIRECT_H
11829 # include <direct.h>
11839 rm -f conftest.
$ac_objext
11840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11841 (eval $ac_compile) 2>conftest.er1
11843 grep -v '^ *+' conftest.er1
>conftest.err
11845 cat conftest.err
>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
11848 { ac_try
='test -z "$ac_c_werror_flag"
11849 || test ! -s conftest.err'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; } &&
11855 { ac_try
='test -s conftest.$ac_objext'
11856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857 (eval $ac_try) 2>&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; }; then
11861 gcc_cv_mkdir_takes_one_arg
=no
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.
$ac_ext >&5
11866 gcc_cv_mkdir_takes_one_arg
=yes
11868 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11870 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11871 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11872 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11874 cat >>confdefs.h
<<\_ACEOF
11875 #define MKDIR_TAKES_ONE_ARG 1
11887 # With Setjmp/Longjmp based exception handling.
11888 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11889 if test "${enable_sjlj_exceptions+set}" = set; then
11890 enableval
="$enable_sjlj_exceptions"
11891 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11893 cat >>confdefs.h
<<_ACEOF
11894 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11899 # For platforms with the unwind ABI which includes an unwind library,
11900 # libunwind, we can choose to use the system libunwind.
11902 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11903 if test "${with_system_libunwind+set}" = set; then
11904 withval
="$with_system_libunwind"
11908 # --------------------------------------------------------
11909 # Build, host, and target specific configuration fragments
11910 # --------------------------------------------------------
11912 # Collect build-machine-specific information.
11913 .
${srcdir}/config.build
11915 # Collect host-machine-specific information.
11916 .
${srcdir}/config.
host
11920 # Collect target-machine-specific information.
11921 .
${srcdir}/config.gcc
11923 extra_objs
="${host_extra_objs} ${extra_objs}"
11924 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11926 # Default the target-machine variables that were not explicitly set.
11927 if test x
"$tm_file" = x
11928 then tm_file
=$cpu_type/$cpu_type.h
; fi
11930 if test x
"$extra_headers" = x
11931 then extra_headers
=; fi
11933 if test x
$md_file = x
11934 then md_file
=$cpu_type/$cpu_type.md
; fi
11936 if test x
$out_file = x
11937 then out_file
=$cpu_type/$cpu_type.c
; fi
11939 if test x
"$tmake_file" = x
11940 then tmake_file
=$cpu_type/t-
$cpu_type
11943 if test x
"$dwarf2" = xyes
11944 then tm_file
="$tm_file tm-dwarf2.h"
11947 # Say what files are being used for the output code and MD file.
11948 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11949 echo "Using \`$srcdir/config/$md_file' as machine description file."
11951 # If any of the xm_file variables contain nonexistent files, warn
11952 # about them and drop them.
11955 for x
in $build_xm_file; do
11956 if test -f $srcdir/config
/$x
11958 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11959 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11962 build_xm_file
="$bx"
11965 for x
in $host_xm_file; do
11966 if test -f $srcdir/config
/$x
11968 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11969 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11975 for x
in $xm_file; do
11976 if test -f $srcdir/config
/$x
11978 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11979 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11985 for f
in $tm_file; do
11988 if test $count = ax
; then
11989 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11991 echo "Using the following target machine macro files:"
11992 for f
in $tm_file; do
11993 echo " $srcdir/config/$f"
11997 if test x
$need_64bit_hwint = xyes
; then
11999 cat >>confdefs.h
<<\_ACEOF
12000 #define NEED_64BIT_HOST_WIDE_INT 1
12005 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12007 cat >>confdefs.h
<<\_ACEOF
12008 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12014 for f
in $host_xm_file; do
12017 if test $count = a
; then
12019 elif test $count = ax
; then
12020 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12022 echo "Using the following host machine macro files:"
12023 for f
in $host_xm_file; do
12024 echo " $srcdir/config/$f"
12027 echo "Using ${out_host_hook_obj} for host machine hooks."
12029 if test "$host_xm_file" != "$build_xm_file"; then
12031 for f
in $build_xm_file; do
12034 if test $count = a
; then
12036 elif test $count = ax
; then
12037 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12039 echo "Using the following build machine macro files:"
12040 for f
in $build_xm_file; do
12041 echo " $srcdir/config/$f"
12050 # Check if a valid thread package
12051 case ${enable_threads} in
12054 target_thread_file
='single'
12058 target_thread_file
='single'
12060 aix | dce | gnat | irix | posix | posix95 | rtems | \
12061 single | solaris | vxworks | win32
)
12062 target_thread_file
=${enable_threads}
12065 echo "${enable_threads} is an unknown thread package" 1>&2
12070 if test x
${thread_file} = x
; then
12071 # No thread file set by target-specific clauses in config.gcc,
12072 # so use file chosen by default logic above
12073 thread_file
=${target_thread_file}
12076 # Make gthr-default.h if we have a thread file.
12078 if test $thread_file != single
; then
12079 rm -f gthr-default.h
12080 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12081 gthread_flags
=-DHAVE_GTHR_DEFAULT
12090 if test x
$enable___cxa_atexit = xyes || \
12091 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12092 if test x
$host = x
$target; then
12093 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12094 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12095 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 cat >conftest.
$ac_ext <<_ACEOF
12101 cat confdefs.h
>>conftest.
$ac_ext
12102 cat >>conftest.
$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12106 #define __cxa_atexit innocuous___cxa_atexit
12108 /* System header to define __stub macros and hopefully few prototypes,
12109 which can conflict with char __cxa_atexit (); below.
12110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12111 <limits.h> exists even on freestanding compilers. */
12114 # include <limits.h>
12116 # include <assert.h>
12119 #undef __cxa_atexit
12121 /* Override any gcc2 internal prototype to avoid an error. */
12126 /* We use char because int might match the return type of a gcc2
12127 builtin and then its argument prototype would still apply. */
12128 char __cxa_atexit ();
12129 /* The GNU C library defines this for functions which it implements
12130 to always fail with ENOSYS. Some functions are actually named
12131 something starting with __ and the normal name is an alias. */
12132 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12135 char (*f) () = __cxa_atexit;
12144 return f != __cxa_atexit;
12149 rm -f conftest.
$ac_objext conftest
$ac_exeext
12150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12151 (eval $ac_link) 2>conftest.er1
12153 grep -v '^ *+' conftest.er1
>conftest.err
12155 cat conftest.err
>&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } &&
12158 { ac_try
='test -z "$ac_c_werror_flag"
12159 || test ! -s conftest.err'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try
='test -s conftest$ac_exeext'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 ac_cv_func___cxa_atexit
=yes
12173 echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.
$ac_ext >&5
12176 ac_cv_func___cxa_atexit
=no
12178 rm -f conftest.err conftest.
$ac_objext \
12179 conftest
$ac_exeext conftest.
$ac_ext
12181 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12182 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12183 if test $ac_cv_func___cxa_atexit = yes; then
12186 echo "__cxa_atexit can't be enabled on this target"
12190 # We can't check for __cxa_atexit when building a cross, so assume
12194 if test x
$use_cxa_atexit = xyes
; then
12196 cat >>confdefs.h
<<\_ACEOF
12197 #define DEFAULT_USE_CXA_ATEXIT 1
12203 # Look for a file containing extra machine modes.
12204 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12205 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12208 cat >>confdefs.h
<<_ACEOF
12209 #define EXTRA_MODES_FILE "config/$extra_modes"
12214 # Convert extra_options into a form suitable for Makefile use.
12216 for f
in $extra_options; do
12217 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12221 # auto-host.h is the file containing items generated by autoconf and is
12222 # the first file included by config.h.
12223 # If host=build, it is correct to have bconfig include auto-host.h
12224 # as well. If host!=build, we are in error and need to do more
12225 # work to find out the build config parameters.
12226 if test x
$host = x
$build
12228 build_auto
=auto-host.h
12230 # We create a subdir, then run autoconf in the subdir.
12231 # To prevent recursion we set host and build for the new
12232 # invocation of configure to the build for this invocation
12239 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12240 *) realsrcdir
=..
/${srcdir};;
12242 saved_CFLAGS
="${CFLAGS}"
12243 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12244 ${realsrcdir}/configure \
12245 --enable-languages=${enable_languages-all} \
12246 --target=$target_alias --host=$build_alias --build=$build_alias
12247 CFLAGS
="${saved_CFLAGS}"
12249 # We just finished tests for the build machine, so rename
12250 # the file auto-build.h in the gcc directory.
12251 mv auto-host.h ..
/auto-build.h
12254 build_auto
=auto-build.h
12258 tm_file
="${tm_file} defaults.h"
12259 tm_p_file
="${tm_p_file} tm-preds.h"
12260 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12261 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12262 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12263 # put this back in temporarily.
12264 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12270 # Compile in configure arguments.
12271 if test -f configargs.h
; then
12272 # Being re-configured.
12273 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12274 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12276 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12279 # Double all backslashes and backslash all quotes to turn
12280 # gcc_config_arguments into a C string.
12281 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12282 $gcc_config_arguments
12284 gcc_config_arguments_str
=`cat conftest.out`
12287 cat > configargs.h
<<EOF
12288 /* Generated automatically. */
12289 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12290 static const char thread_model[] = "$thread_file";
12292 static const struct {
12293 const char *name, *value;
12294 } configure_default_options[] = $configure_default_options;
12297 # Internationalization
12298 # If we haven't got the data from the intl directory,
12299 # assume NLS is disabled.
12307 if test -f ..
/intl
/config.intl
; then
12308 . ..
/intl
/config.intl
12310 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12311 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12312 if test x
"$USE_NLS" != xyes
; then
12313 echo "$as_me:$LINENO: result: no" >&5
12314 echo "${ECHO_T}no" >&6
12316 echo "$as_me:$LINENO: result: yes" >&5
12317 echo "${ECHO_T}yes" >&6
12319 cat >>confdefs.h
<<\_ACEOF
12320 #define ENABLE_NLS 1
12324 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12325 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12326 # Look for .po and .gmo files in the source directory.
12329 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12330 # If there aren't any .gmo files the shell will give us the
12331 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12333 case "$cat" in *\
**)
12336 # The quadruple backslash is collapsed to a double backslash
12337 # by the backticks, then collapsed again by the double quotes,
12338 # leaving us with one backslash in the sed expression (right
12339 # before the dot that mustn't act as a wildcard).
12340 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12341 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12342 # The user is allowed to set LINGUAS to a list of languages to
12343 # install catalogs for. If it's empty that means "all of them."
12344 if test "x$LINGUAS" = x
; then
12345 CATALOGS
="$CATALOGS $cat"
12346 XLINGUAS
="$XLINGUAS $lang"
12348 case "$LINGUAS" in *$lang*)
12349 CATALOGS
="$CATALOGS $cat"
12350 XLINGUAS
="$XLINGUAS $lang"
12355 LINGUAS
="$XLINGUAS"
12356 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12357 echo "${ECHO_T}$LINGUAS" >&6
12360 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12361 # -liconv on the link line twice.
12362 case "$LIBINTL" in *$LIBICONV*)
12366 # Check whether --enable-secureplt or --disable-secureplt was given.
12367 if test "${enable_secureplt+set}" = set; then
12368 enableval
="$enable_secureplt"
12372 # Windows32 Registry support for specifying GCC installation paths.
12373 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12374 if test "${enable_win32_registry+set}" = set; then
12375 enableval
="$enable_win32_registry"
12380 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12381 if test "x$enable_win32_registry" != xno
; then
12382 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12383 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12384 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 ac_func_search_save_LIBS
=$LIBS
12388 ac_cv_search_RegOpenKeyExA
=no
12389 cat >conftest.
$ac_ext <<_ACEOF
12392 cat confdefs.h
>>conftest.
$ac_ext
12393 cat >>conftest.
$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12396 /* Override any gcc2 internal prototype to avoid an error. */
12400 /* We use char because int might match the return type of a gcc2
12401 builtin and then its argument prototype would still apply. */
12402 char RegOpenKeyExA ();
12411 rm -f conftest.
$ac_objext conftest
$ac_exeext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12413 (eval $ac_link) 2>conftest.er1
12415 grep -v '^ *+' conftest.er1
>conftest.err
12417 cat conftest.err
>&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
12420 { ac_try
='test -z "$ac_c_werror_flag"
12421 || test ! -s conftest.err'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try
='test -s conftest$ac_exeext'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12433 ac_cv_search_RegOpenKeyExA
="none required"
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.
$ac_ext >&5
12439 rm -f conftest.err conftest.
$ac_objext \
12440 conftest
$ac_exeext conftest.
$ac_ext
12441 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12442 for ac_lib
in advapi32
; do
12443 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12444 cat >conftest.
$ac_ext <<_ACEOF
12447 cat confdefs.h
>>conftest.
$ac_ext
12448 cat >>conftest.
$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12451 /* 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 RegOpenKeyExA ();
12466 rm -f conftest.
$ac_objext conftest
$ac_exeext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468 (eval $ac_link) 2>conftest.er1
12470 grep -v '^ *+' conftest.er1
>conftest.err
12472 cat conftest.err
>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try
='test -z "$ac_c_werror_flag"
12476 || test ! -s conftest.err'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try
='test -s conftest$ac_exeext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.
$ac_ext >&5
12495 rm -f conftest.err conftest.
$ac_objext \
12496 conftest
$ac_exeext conftest.
$ac_ext
12499 LIBS
=$ac_func_search_save_LIBS
12501 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12502 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12503 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12504 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12507 enable_win32_registry
=no
12512 if test "x$enable_win32_registry" != xno
; then
12514 cat >>confdefs.h
<<\_ACEOF
12515 #define ENABLE_WIN32_REGISTRY 1
12519 if test "x$enable_win32_registry" != xyes \
12520 && test "x$enable_win32_registry" != x
; then
12522 cat >>confdefs.h
<<_ACEOF
12523 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12531 # Get an absolute path to the GCC top-level source directory
12532 holddir
=`${PWDCMD-pwd}`
12534 topdir
=`${PWDCMD-pwd}`
12537 # Conditionalize the makefile for this host machine.
12539 for f
in ${host_xmake_file}
12541 if test -f ${srcdir}/config
/$f
12543 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12547 # Conditionalize the makefile for this target machine.
12549 for f
in ${tmake_file}
12551 if test -f ${srcdir}/config
/$f
12553 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12556 tmake_file
="${tmake_file_}"
12558 # If the host doesn't support symlinks, modify CC in
12559 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12560 # Otherwise, we can use "CC=$(CC)".
12564 cc_set_by_configure
="\$(CC)"
12565 quoted_cc_set_by_configure
="\$(CC)"
12566 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12567 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12570 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12571 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12572 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12573 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12577 # This is a terrible hack which will go away some day.
12578 host_cc_for_libada
=${CC}
12581 out_object_file
=`basename $out_file .c`.o
12583 tm_file_list
="options.h"
12584 tm_include_list
="options.h"
12585 for f
in $tm_file; do
12588 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12589 tm_include_list
="${tm_include_list} $f"
12592 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12593 tm_include_list
="${tm_include_list} config/$f"
12600 for f
in $tm_p_file; do
12603 tm_p_file_list
="${tm_p_file_list} $f"
12604 tm_p_include_list
="${tm_p_include_list} $f"
12607 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12608 tm_p_include_list
="${tm_p_include_list} config/$f"
12614 for f
in $xm_file; do
12617 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12618 xm_include_list
="${xm_include_list} $f"
12621 xm_file_list
="${xm_file_list} $f"
12622 xm_include_list
="${xm_include_list} $f"
12625 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12626 xm_include_list
="${xm_include_list} config/$f"
12632 host_xm_include_list
=
12633 for f
in $host_xm_file; do
12636 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12637 host_xm_include_list
="${host_xm_include_list} $f"
12640 host_xm_file_list
="${host_xm_file_list} $f"
12641 host_xm_include_list
="${host_xm_include_list} $f"
12644 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12645 host_xm_include_list
="${host_xm_include_list} config/$f"
12650 build_xm_file_list
=
12651 for f
in $build_xm_file; do
12654 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12655 build_xm_include_list
="${build_xm_include_list} $f"
12657 auto-build.h | auto-host.h
)
12658 build_xm_file_list
="${build_xm_file_list} $f"
12659 build_xm_include_list
="${build_xm_include_list} $f"
12662 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12663 build_xm_include_list
="${build_xm_include_list} config/$f"
12668 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12669 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12672 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12673 if test x
$host != x
$target
12675 CROSS
="-DCROSS_COMPILE"
12677 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12678 case "$host","$target" in
12679 # Darwin crosses can use the host system's libraries and headers,
12680 # because of the fat library support. Of course, it must be the
12681 # same version of Darwin on both sides. Allow the user to
12682 # just say --target=foo-darwin without a version number to mean
12683 # "the version on this system".
12684 *-*-darwin*,*-*-darwin*)
12685 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12686 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12687 if test $hostos = $targetos -o $targetos = darwin
; then
12689 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12694 i?
86-*-*,x86_64-
*-* \
12695 | powerpc
*-*-*,powerpc64
*-*-*)
12696 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12698 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12699 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12700 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12703 # If this is a cross-compiler that does not
12704 # have its own set of headers then define
12707 # If this is using newlib, without having the headers available now,
12708 # then define inhibit_libc in LIBGCC2_CFLAGS.
12709 # This prevents libgcc2 from containing any code which requires libc
12712 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12713 test x
$with_newlib = xyes
; } &&
12714 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12715 inhibit_libc
=-Dinhibit_libc
12719 # When building gcc with a cross-compiler, we need to adjust things so
12720 # that the generator programs are still built with the native compiler.
12721 # Also, we cannot run fixincludes or fix-header.
12723 # These are the normal (build=host) settings:
12724 CC_FOR_BUILD
='$(CC)'
12725 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12726 STMP_FIXINC
=stmp-fixinc
12728 # Possibly disable fixproto, on a per-target basis.
12729 case ${use_fixproto} in
12734 STMP_FIXPROTO
=stmp-fixproto
12739 # And these apply if build != host, or we are generating coverage data
12740 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12742 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12744 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12745 if test "x$STMP_FIXPROTO" != x
; then
12746 STMP_FIXPROTO
=stmp-install-fixproto
12751 # Expand extra_headers to include complete path.
12752 # This substitutes for lots of t-* files.
12753 extra_headers_list
=
12754 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12755 for file in ${extra_headers} ; do
12756 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12759 # Define collect2 in Makefile.
12760 case $host_can_use_collect2 in
12762 *) collect2
='collect2$(exeext)' ;;
12766 # Add a definition of USE_COLLECT2 if system wants one.
12767 case $use_collect2 in
12768 no
) use_collect2
= ;;
12771 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12772 xm_defines
="${xm_defines} USE_COLLECT2"
12773 case $host_can_use_collect2 in
12775 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12776 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12777 { (exit 1); exit 1; }; }
12783 # ---------------------------
12784 # Assembler & linker features
12785 # ---------------------------
12787 # Identify the assembler which will work hand-in-glove with the newly
12788 # built GCC, so that we can examine its features. This is the assembler
12789 # which will be driven by the driver program.
12791 # If build != host, and we aren't building gas in-tree, we identify a
12792 # build->target assembler and hope that it will have the same features
12793 # as the host->target assembler we'll be using.
12794 echo "$as_me:$LINENO: checking what assembler to use" >&5
12795 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12798 gcc_cv_gas_major_version
=
12799 gcc_cv_gas_minor_version
=
12800 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12801 if test -x "$DEFAULT_ASSEMBLER"; then
12802 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12803 elif test -x as
$build_exeext; then
12804 # Build using assembler in the current directory.
12805 gcc_cv_as
=.
/as
$build_exeext
12806 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12807 && test -f ..
/gas
/Makefile \
12808 && test x
$build = x
$host; then
12809 # Single tree build which includes gas. We want to prefer it
12810 # over whatever linker top-level may have detected, since
12811 # we'll use what we're building after installation anyway.
12813 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12814 for f
in $gcc_cv_as_bfd_srcdir/configure \
12815 $gcc_cv_as_gas_srcdir/configure \
12816 $gcc_cv_as_gas_srcdir/configure.
in \
12817 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12818 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12819 if test x
$gcc_cv_gas_version != x
; then
12823 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12824 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12825 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12826 case $gcc_cv_gas_patch_version in
12827 "") gcc_cv_gas_patch_version
="0" ;;
12829 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12830 + $gcc_cv_gas_minor_version \) \* 1000 \
12831 + $gcc_cv_gas_patch_version`
12833 rm -f as
$build_exeext
12834 $LN_S ..
/gas
/as-new
$build_exeext as
$build_exeext 2>/dev
/null
12835 in_tree_gas_is_elf
=no
12836 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12837 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12838 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12840 in_tree_gas_is_elf
=yes
12842 elif test -x "$AS_FOR_TARGET"; then
12843 gcc_cv_as
="$AS_FOR_TARGET"
12844 elif test -x "$AS" && test x
$host = x
$target; then
12848 gcc_version
=`cat $srcdir/BASE-VER`
12850 if test "x$gcc_cv_as" = x
; then
12851 # Search the same directories that the installed compiler will
12852 # search. Else we may find the wrong assembler and lose. If we
12853 # do not find a suitable assembler binary, then try the user's
12856 # Also note we have to check MD_EXEC_PREFIX before checking the
12857 # user's path. Unfortunately, there is no good way to get at the
12858 # value of MD_EXEC_PREFIX here. So we do a brute force search
12859 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12860 # to be fixed as part of the make/configure rewrite too.
12862 if test "x$exec_prefix" = xNONE
; then
12863 if test "x$prefix" = xNONE
; then
12864 test_prefix
=/usr
/local
12866 test_prefix
=$prefix
12869 test_prefix
=$exec_prefix
12872 # If the loop below does not find an assembler, then use whatever
12873 # one we can find in the users's path. We are looking for a
12874 # ${build} -> ${target} assembler.
12875 if test "x$program_prefix" != xNONE
; then
12876 gcc_cv_as
=${program_prefix}as
$build_exeext
12877 elif test x
$build != x
$host && test x
$build != x
$target; then
12878 gcc_cv_as
=${target_noncanonical}-as$build_exeext
12880 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$build_exeext
12883 if test x
$host = x
$build; then
12884 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12885 $test_prefix/libexec/gcc/$target_noncanonical \
12886 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12887 /usr/lib/gcc/$target_noncanonical \
12888 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12889 $test_prefix/$target_noncanonical/bin"
12894 if test x
$build = x
$target; then
12895 test_dirs
="$test_dirs \
12900 /bsd43/usr/lib/cmplrs/cc \
12901 /usr/cross64/usr/bin \
12902 /usr/lib/cmplrs/cc \
12903 /sysv/usr/lib/cmplrs/cc \
12904 /svr4/usr/lib/cmplrs/cc \
12908 for dir
in $test_dirs; do
12909 if test -x $dir/as
$build_exeext; then
12910 gcc_cv_as
=$dir/as
$build_exeext
12915 case $in_tree_gas in
12917 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12918 echo "${ECHO_T}\"newly built gas\"" >&6
12921 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12922 echo "${ECHO_T}$gcc_cv_as" >&6
12926 # Identify the linker which will work hand-in-glove with the newly
12927 # built GCC, so that we can examine its features. This is the linker
12928 # which will be driven by the driver program.
12930 # If build != host, and we aren't building gas in-tree, we identify a
12931 # build->target linker and hope that it will have the same features
12932 # as the host->target linker we'll be using.
12933 echo "$as_me:$LINENO: checking what linker to use" >&5
12934 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12937 gcc_cv_gld_major_version
=
12938 gcc_cv_gld_minor_version
=
12939 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12940 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12941 if test -x "$DEFAULT_LINKER"; then
12942 gcc_cv_ld
="$DEFAULT_LINKER"
12943 elif test -x collect-ld
$build_exeext; then
12944 # Build using linker in the current directory.
12945 gcc_cv_ld
=.
/collect-ld
$build_exeext
12946 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
12947 && test -f ..
/ld
/Makefile \
12948 && test x
$build = x
$host; then
12949 # Single tree build which includes ld. We want to prefer it
12950 # over whatever linker top-level may have detected, since
12951 # we'll use what we're building after installation anyway.
12953 in_tree_ld_is_elf
=no
12954 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
12955 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
12956 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
12957 in_tree_ld_is_elf
=yes
12959 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
12961 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12962 if test x
$gcc_cv_gld_version != x
; then
12966 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12967 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12968 rm -f collect-ld
$build_exeext
12969 $LN_S ..
/ld
/ld-new
$build_exeext collect-ld
$build_exeext 2>/dev
/null
12970 elif test -x "$LD_FOR_TARGET"; then
12971 gcc_cv_ld
="$LD_FOR_TARGET"
12972 elif test -x "$LD" && test x
$host = x
$target; then
12976 if test "x$gcc_cv_ld" = x
; then
12977 # Search the same directories that the installed compiler will
12978 # search. Else we may find the wrong linker and lose. If we
12979 # do not find a suitable linker binary, then try the user's
12982 # Also note we have to check MD_EXEC_PREFIX before checking the
12983 # user's path. Unfortunately, there is no good way to get at the
12984 # value of MD_EXEC_PREFIX here. So we do a brute force search
12985 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12986 # to be fixed as part of the make/configure rewrite too.
12988 if test "x$exec_prefix" = xNONE
; then
12989 if test "x$prefix" = xNONE
; then
12990 test_prefix
=/usr
/local
12992 test_prefix
=$prefix
12995 test_prefix
=$exec_prefix
12998 # If the loop below does not find a linker, then use whatever
12999 # one we can find in the users's path. We are looking for a
13000 # ${build} -> ${target} linker.
13001 if test "x$program_prefix" != xNONE
; then
13002 gcc_cv_ld
=${program_prefix}ld
$build_exeext
13003 elif test x
$build != x
$host && test x
$build != x
$target; then
13004 gcc_cv_ld
=${target_noncanonical}-ld$build_exeext
13006 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$build_exeext
13009 if test x
$host = x
$build; then
13010 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
13011 $test_prefix/libexec/gcc/$target_noncanonical \
13012 /usr/lib/gcc/$target_noncanonical/$gcc_version \
13013 /usr/lib/gcc/$target_noncanonical \
13014 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
13015 $test_prefix/$target_noncanonical/bin"
13020 if test x
$build = x
$target; then
13021 test_dirs
="$test_dirs \
13026 /bsd43/usr/lib/cmplrs/cc \
13027 /usr/cross64/usr/bin \
13028 /usr/lib/cmplrs/cc \
13029 /sysv/usr/lib/cmplrs/cc \
13030 /svr4/usr/lib/cmplrs/cc \
13034 for dir
in $test_dirs; do
13035 if test -x $dir/ld
$build_exeext; then
13036 gcc_cv_ld
=$dir/ld
$build_exeext
13041 case $in_tree_ld in
13043 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13044 echo "${ECHO_T}\"newly built ld\"" >&6
13047 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13048 echo "${ECHO_T}$gcc_cv_ld" >&6
13052 # Figure out what nm we will be using.
13053 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13054 echo "$as_me:$LINENO: checking what nm to use" >&5
13055 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13057 if test -x nm
$build_exeext; then
13058 gcc_cv_nm
=.
/nm
$build_exeext
13059 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13060 && test -f ..
/binutils
/Makefile
; then
13061 # Single tree build which includes binutils.
13063 gcc_cv_nm
=.
/nm
$build_exeext
13064 rm -f nm
$build_exeext
13065 $LN_S ..
/binutils
/nm-new
$build_exeext nm
$build_exeext 2>/dev
/null
13066 elif test "x$program_prefix" != xNONE
; then
13067 gcc_cv_nm
=${program_prefix}nm
$build_exeext
13068 elif test x
$build != x
$host && test x
$build != x
$target; then
13069 gcc_cv_nm
=${target_noncanonical}-nm$build_exeext
13071 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$build_exeext
13073 case $in_tree_nm in
13074 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13075 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13076 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13077 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13080 # Figure out what objdump we will be using.
13081 echo "$as_me:$LINENO: checking what objdump to use" >&5
13082 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13084 if test -x objdump
$build_exeext; then
13085 gcc_cv_objdump
=.
/objdump
$build_exeext
13086 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13087 && test -f ..
/binutils
/Makefile
; then
13088 # Single tree build which includes binutils.
13089 in_tree_objdump
=yes
13090 gcc_cv_objdump
=.
/objdump
$build_exeext
13091 rm -f objdump
$build_exeext
13092 $LN_S ..
/binutils
/objdump
$build_exeext objdump
$build_exeext 2>/dev
/null
13093 elif test "x$program_prefix" != xNONE
; then
13094 gcc_cv_objdump
=${program_prefix}objdump
$build_exeext
13095 elif test x
$build != x
$host && test x
$build != x
$target; then
13096 gcc_cv_objdump
=${target_noncanonical}-objdump$build_exeext
13098 gcc_cv_objdump
=`echo objdump | \
13099 sed "${program_transform_name}"`$build_exeext
13101 case $in_tree_objdump in
13102 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13103 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13104 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13105 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13108 # Figure out what assembler alignment features are present.
13109 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13110 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13111 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 gcc_cv_as_balign_and_p2align
=no
13115 if test $in_tree_gas = yes; then
13116 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13117 then gcc_cv_as_balign_and_p2align
=yes
13119 elif test x
$gcc_cv_as != x
; then
13121 .p2align 2' > conftest.s
13122 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }
13129 gcc_cv_as_balign_and_p2align
=yes
13131 echo "configure: failed program was" >&5
13134 rm -f conftest.o conftest.s
13137 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13138 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13139 if test $gcc_cv_as_balign_and_p2align = yes; then
13141 cat >>confdefs.h
<<\_ACEOF
13142 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13147 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13148 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13149 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 gcc_cv_as_max_skip_p2align
=no
13153 if test $in_tree_gas = yes; then
13154 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13155 then gcc_cv_as_max_skip_p2align
=yes
13157 elif test x
$gcc_cv_as != x
; then
13158 echo '.p2align 4,,7' > conftest.s
13159 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }
13166 gcc_cv_as_max_skip_p2align
=yes
13168 echo "configure: failed program was" >&5
13171 rm -f conftest.o conftest.s
13174 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13175 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13176 if test $gcc_cv_as_max_skip_p2align = yes; then
13178 cat >>confdefs.h
<<\_ACEOF
13179 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13184 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13185 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13186 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 gcc_cv_as_subsection_m1
=no
13190 if test $in_tree_gas = yes; then
13191 if test $in_tree_gas_is_elf = yes \
13192 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13193 then gcc_cv_as_subsection_m1
=yes
13195 elif test x
$gcc_cv_as != x
; then
13196 echo 'conftest_label1: .word 0
13198 conftest_label2: .word 0
13199 .previous' > conftest.s
13200 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; }
13207 if test x
$gcc_cv_nm != x
; then
13208 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13209 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13210 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13212 else gcc_cv_as_subsection_m1
=yes
13214 rm -f conftest.nm1 conftest.nm2
13217 echo "configure: failed program was" >&5
13220 rm -f conftest.o conftest.s
13223 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13224 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13225 if test $gcc_cv_as_subsection_m1 = yes; then
13227 cat >>confdefs.h
<<\_ACEOF
13228 #define HAVE_GAS_SUBSECTION_ORDERING 1
13233 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13234 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13235 if test "${gcc_cv_as_weak+set}" = set; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13239 if test $in_tree_gas = yes; then
13240 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13241 then gcc_cv_as_weak
=yes
13243 elif test x
$gcc_cv_as != x
; then
13244 echo ' .weak foobar' > conftest.s
13245 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }
13254 echo "configure: failed program was" >&5
13257 rm -f conftest.o conftest.s
13260 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13261 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13262 if test $gcc_cv_as_weak = yes; then
13264 cat >>confdefs.h
<<\_ACEOF
13265 #define HAVE_GAS_WEAK 1
13270 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13271 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13272 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13273 echo $ECHO_N "(cached) $ECHO_C" >&6
13275 gcc_cv_as_nsubspa_comdat
=no
13276 if test $in_tree_gas = yes; then
13277 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13278 then gcc_cv_as_nsubspa_comdat
=yes
13280 elif test x
$gcc_cv_as != x
; then
13281 echo ' .SPACE $TEXT$
13282 .NSUBSPA $CODE$,COMDAT' > conftest.s
13283 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }
13290 gcc_cv_as_nsubspa_comdat
=yes
13292 echo "configure: failed program was" >&5
13295 rm -f conftest.o conftest.s
13298 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13299 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13300 if test $gcc_cv_as_nsubspa_comdat = yes; then
13302 cat >>confdefs.h
<<\_ACEOF
13303 #define HAVE_GAS_NSUBSPA_COMDAT 1
13308 # .hidden needs to be supported in both the assembler and the linker,
13309 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13310 # This is irritatingly difficult to feature test for; we have to check the
13311 # date string after the version number. If we've got an in-tree
13312 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13314 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13315 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13316 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13317 if test "${gcc_cv_as_hidden+set}" = set; then
13318 echo $ECHO_N "(cached) $ECHO_C" >&6
13320 gcc_cv_as_hidden
=no
13321 if test $in_tree_gas = yes; then
13322 if test $in_tree_gas_is_elf = yes \
13323 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13324 then gcc_cv_as_hidden
=yes
13326 elif test x
$gcc_cv_as != x
; then
13327 echo ' .hidden foobar
13328 foobar:' > conftest.s
13329 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331 (eval $ac_try) 2>&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }
13336 gcc_cv_as_hidden
=yes
13338 echo "configure: failed program was" >&5
13341 rm -f conftest.o conftest.s
13344 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13345 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13348 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13349 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13350 if test "${gcc_cv_ld_hidden+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 if test $in_tree_ld = yes ; then
13354 gcc_cv_ld_hidden
=no
13355 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 \
13356 && test $in_tree_ld_is_elf = yes; then
13357 gcc_cv_ld_hidden
=yes
13360 gcc_cv_ld_hidden
=yes
13361 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13362 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13363 ld_vers
=`echo $ld_ver | sed -n \
13364 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13365 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13366 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13367 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13368 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13369 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13370 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13371 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'`
13372 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13373 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13374 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13375 if test 0"$ld_date" -lt 20020404; then
13376 if test -n "$ld_date"; then
13377 # If there was date string, but was earlier than 2002-04-04, fail
13378 gcc_cv_ld_hidden
=no
13379 elif test -z "$ld_vers"; then
13380 # If there was no date string nor ld version number, something is wrong
13381 gcc_cv_ld_hidden
=no
13383 test -z "$ld_vers_patch" && ld_vers_patch
=0
13384 if test "$ld_vers_major" -lt 2; then
13385 gcc_cv_ld_hidden
=no
13386 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13387 gcc_cv_ld_hidden
="no"
13388 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13389 gcc_cv_ld_hidden
=no
13394 case "${target}" in
13395 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13396 gcc_cv_ld_hidden
=yes
13399 gcc_cv_ld_hidden
=no
13405 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13406 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13407 libgcc_visibility
=no
13410 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13411 libgcc_visibility
=yes
13413 cat >>confdefs.h
<<\_ACEOF
13414 #define HAVE_GAS_HIDDEN 1
13419 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13420 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13421 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13422 if test "${gcc_cv_as_leb128+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 gcc_cv_as_leb128
=no
13426 if test $in_tree_gas = yes; then
13427 if test $in_tree_gas_is_elf = yes \
13428 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13429 then gcc_cv_as_leb128
=yes
13431 elif test x
$gcc_cv_as != x
; then
13438 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }
13445 # GAS versions before 2.11 do not support uleb128,
13446 # despite appearing to.
13447 # ??? There exists an elf-specific test that will crash
13448 # the assembler. Perhaps it's better to figure out whether
13449 # arbitrary sections are supported and try the test.
13450 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13451 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13452 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13453 as_major
=`echo $as_ver | sed 's/\..*//'`
13454 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13455 if test $as_major -eq 2 && test $as_minor -lt 11
13457 else gcc_cv_as_leb128
=yes
13461 echo "configure: failed program was" >&5
13464 rm -f conftest.o conftest.s
13467 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13468 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13469 if test $gcc_cv_as_leb128 = yes; then
13471 cat >>confdefs.h
<<\_ACEOF
13472 #define HAVE_AS_LEB128 1
13477 # GAS versions up to and including 2.11.0 may mis-optimize
13479 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13480 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13481 if test "${gcc_cv_as_eh_frame+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13484 gcc_cv_as_eh_frame
=no
13485 if test $in_tree_gas = yes; then
13486 if test $in_tree_gas_is_elf = yes \
13487 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13488 then gcc_cv_as_eh_frame
=yes
13490 elif test x
$gcc_cv_as != x
; then
13497 .section .eh_frame,"aw",@progbits
13499 .4byte .LECIE1-.LSCIE1
13513 .4byte .LEFDE1-.LASFDE1
13515 .4byte .LASFDE1-__FRAME_BEGIN__
13522 .LEFDE1:' > conftest.s
13523 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }
13530 cat > conftest.lit
<<EOF
13531 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13532 0010 01000000 12000000 18000000 00000000 ................
13533 0020 08000000 04080000 0044 .........D
13535 cat > conftest.big
<<EOF
13536 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13537 0010 00000001 00000012 00000018 00000000 ................
13538 0020 00000008 04000000 0844 .........D
13540 # If the assembler didn't choke, and we can objdump,
13541 # and we got the correct data, then succeed.
13542 if test x
$gcc_cv_objdump != x \
13543 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13544 |
tail -3 > conftest.got \
13545 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13546 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13548 gcc_cv_as_eh_frame
=yes
13549 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 gcc_cv_as_eh_frame
=buggy
13557 # Uh oh, what do we do now?
13558 gcc_cv_as_eh_frame
=no
13561 echo "configure: failed program was" >&5
13564 rm -f conftest.o conftest.s
13567 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13568 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13571 if test $gcc_cv_as_eh_frame = buggy
; then
13573 cat >>confdefs.h
<<\_ACEOF
13574 #define USE_AS_TRADITIONAL_FORMAT 1
13579 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13580 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13581 if test "${gcc_cv_as_shf_merge+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 gcc_cv_as_shf_merge
=no
13585 if test $in_tree_gas = yes; then
13586 if test $in_tree_gas_is_elf = yes \
13587 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13588 then gcc_cv_as_shf_merge
=yes
13590 elif test x
$gcc_cv_as != x
; then
13591 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13592 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }
13599 gcc_cv_as_shf_merge
=yes
13601 echo "configure: failed program was" >&5
13604 rm -f conftest.o conftest.s
13607 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13608 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13610 if test $gcc_cv_as_shf_merge = no
; then
13611 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13612 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13613 if test "${gcc_cv_as_shf_merge+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 gcc_cv_as_shf_merge
=no
13617 if test $in_tree_gas = yes; then
13618 if test $in_tree_gas_is_elf = yes \
13619 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13620 then gcc_cv_as_shf_merge
=yes
13622 elif test x
$gcc_cv_as != x
; then
13623 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13624 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }
13631 gcc_cv_as_shf_merge
=yes
13633 echo "configure: failed program was" >&5
13636 rm -f conftest.o conftest.s
13639 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13640 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13644 cat >>confdefs.h
<<_ACEOF
13645 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13649 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13650 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13651 if test "${gcc_cv_as_comdat_group+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 gcc_cv_as_comdat_group
=no
13655 if test $in_tree_gas = yes; then
13656 if test $in_tree_gas_is_elf = yes \
13657 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13658 then gcc_cv_as_comdat_group
=yes
13660 elif test x
$gcc_cv_as != x
; then
13661 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13662 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; }
13669 gcc_cv_as_comdat_group
=yes
13671 echo "configure: failed program was" >&5
13674 rm -f conftest.o conftest.s
13677 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13678 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13680 if test $gcc_cv_as_comdat_group = yes; then
13681 gcc_cv_as_comdat_group_percent
=no
13683 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13684 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13685 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 gcc_cv_as_comdat_group_percent
=no
13689 if test $in_tree_gas = yes; then
13690 if test $in_tree_gas_is_elf = yes \
13691 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13692 then gcc_cv_as_comdat_group_percent
=yes
13694 elif test x
$gcc_cv_as != x
; then
13695 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13696 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698 (eval $ac_try) 2>&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; }
13703 gcc_cv_as_comdat_group_percent
=yes
13705 echo "configure: failed program was" >&5
13708 rm -f conftest.o conftest.s
13711 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13712 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13715 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
13717 if test 0"$ld_date" -lt 20050308; then
13718 if test -n "$ld_date"; then
13719 # If there was date string, but was earlier than 2005-03-08, fail
13721 elif test "$ld_vers_major" -lt 2; then
13723 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
13727 if test $comdat_group = no
; then
13728 gcc_cv_as_comdat_group
=no
13729 gcc_cv_as_comdat_group_percent
=no
13733 cat >>confdefs.h
<<_ACEOF
13734 #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`
13738 # Thread-local storage - the check is heavily parametrized.
13746 .section ".tdata","awT",@progbits
13749 ldq $27,__tls_get_addr($29) !literal!1
13750 lda $16,foo($29) !tlsgd!1
13751 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13752 ldq $27,__tls_get_addr($29) !literal!2
13753 lda $16,foo($29) !tlsldm!2
13754 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13755 ldq $1,foo($29) !gotdtprel
13756 ldah $2,foo($29) !dtprelhi
13757 lda $3,foo($2) !dtprello
13758 lda $4,foo($29) !dtprel
13759 ldq $1,foo($29) !gottprel
13760 ldah $2,foo($29) !tprelhi
13761 lda $3,foo($2) !tprello
13762 lda $4,foo($29) !tprel'
13765 tls_as_opt
=--fatal-warnings
13769 .section ".tdata","awT",@progbits
13772 call #gettlsoff(x)'
13778 .section ".tdata","awT",@progbits
13782 leal foo@TLSGD(,%ebx,1), %eax
13783 leal foo@TLSLDM(%ebx), %eax
13784 leal foo@DTPOFF(%eax), %edx
13785 movl foo@GOTTPOFF(%ebx), %eax
13786 subl foo@GOTTPOFF(%ebx), %eax
13787 addl foo@GOTNTPOFF(%ebx), %eax
13788 movl foo@INDNTPOFF, %eax
13789 movl $foo@TPOFF, %eax
13790 subl $foo@TPOFF, %eax
13791 leal foo@NTPOFF(%ecx), %eax'
13794 tls_as_opt
=--fatal-warnings
13798 .section ".tdata","awT",@progbits
13802 leaq foo@TLSGD(%rip), %rdi
13803 leaq foo@TLSLD(%rip), %rdi
13804 leaq foo@DTPOFF(%rax), %rdx
13805 movq foo@GOTTPOFF(%rip), %rax
13806 movq $foo@TPOFF, %rax'
13809 tls_as_opt
=--fatal-warnings
13813 .section ".tdata","awT",@progbits
13816 addl r16 = @ltoff(@dtpmod(foo#)), gp
13817 addl r17 = @ltoff(@dtprel(foo#)), gp
13818 addl r18 = @ltoff(@tprel(foo#)), gp
13819 addl r19 = @dtprel(foo#), gp
13820 adds r21 = @dtprel(foo#), r13
13821 movl r23 = @dtprel(foo#)
13822 addl r20 = @tprel(foo#), gp
13823 adds r22 = @tprel(foo#), r13
13824 movl r24 = @tprel(foo#)'
13827 tls_as_opt
=--fatal-warnings
13831 .section .tdata,"awT",@progbits
13835 addiu $4, $28, %tlsgd(x)
13836 addiu $4, $28, %tlsldm(x)
13837 lui $4, %dtprel_hi(x)
13838 addiu $4, $4, %dtprel_lo(x)
13839 lw $4, %gottprel(x)($28)
13840 lui $4, %tprel_hi(x)
13841 addiu $4, $4, %tprel_lo(x)'
13844 tls_as_opt
='-32 --fatal-warnings'
13848 .section ".tdata","awT",@progbits
13856 addi 3,31,ld0@got@tlsgd
13858 addi 3,31,x1@got@tlsld
13861 addis 9,3,x2@dtprel@ha
13862 addi 9,9,x2@dtprel@l
13863 lwz 9,x3@got@tprel(31)
13866 addis 9,2,x2@tprel@ha
13867 addi 9,9,x2@tprel@l'
13870 tls_as_opt
="-a32 --fatal-warnings"
13874 .section ".tdata","awT",@progbits
13882 addi 3,2,ld0@got@tlsgd
13888 addi 3,2,x1@got@tlsld
13894 addis 9,3,x2@dtprel@ha
13895 addi 9,9,x2@dtprel@l
13898 ld 9,x3@got@dtprel(2)
13904 tls_as_opt
="-a64 --fatal-warnings"
13908 .section ".tdata","awT",@progbits
13915 .long foo@GOTNTPOFF
13916 .long foo@INDNTPOFF
13917 l %r1,foo@GOTNTPOFF(%r12)
13918 l %r1,0(%r1):tls_load:foo
13919 bas %r14,0(%r1,%r13):tls_gdcall:foo
13920 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13923 tls_as_opt
="-m31 --fatal-warnings"
13927 .section ".tdata","awT",@progbits
13934 .quad foo@GOTNTPOFF
13935 lg %r1,foo@GOTNTPOFF(%r12)
13936 larl %r1,foo@INDNTPOFF
13937 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13938 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13941 tls_as_opt
="-m64 -Aesame --fatal-warnings"
13943 sh-
*-* | sh
[34]-*-*)
13945 .section ".tdata","awT",@progbits
13955 tls_as_opt
=--fatal-warnings
13959 sparc
*-sun-solaris2.
*)
13966 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
13968 .section ".tdata",#alloc,#write,#tls
13971 sethi %tgd_hi22(foo), %o0
13972 add %o0, %tgd_lo10(foo), %o1
13973 add %l7, %o1, %o0, %tgd_add(foo)
13974 call __tls_get_addr, %tgd_call(foo)
13975 sethi %tldm_hi22(foo), %l1
13976 add %l1, %tldm_lo10(foo), %l2
13977 add %l7, %l2, %o0, %tldm_add(foo)
13978 call __tls_get_addr, %tldm_call(foo)
13979 sethi %tldo_hix22(foo), %l3
13980 xor %l3, %tldo_lox10(foo), %l4
13981 add %o0, %l4, %l5, %tldo_add(foo)
13982 sethi %tie_hi22(foo), %o3
13983 add %o3, %tie_lo10(foo), %o3
13984 ld [%l7 + %o3], %o2, %tie_ld(foo)
13985 add %g7, %o2, %o4, %tie_add(foo)
13986 sethi %tle_hix22(foo), %l1
13987 xor %l1, %tle_lox10(foo), %o5
13988 ld [%g7 + %o5], %o1'
13993 .section ".tdata","awT",@progbits
13996 sethi %tgd_hi22(foo), %o0
13997 add %o0, %tgd_lo10(foo), %o1
13998 add %l7, %o1, %o0, %tgd_add(foo)
13999 call __tls_get_addr, %tgd_call(foo)
14000 sethi %tldm_hi22(foo), %l1
14001 add %l1, %tldm_lo10(foo), %l2
14002 add %l7, %l2, %o0, %tldm_add(foo)
14003 call __tls_get_addr, %tldm_call(foo)
14004 sethi %tldo_hix22(foo), %l3
14005 xor %l3, %tldo_lox10(foo), %l4
14006 add %o0, %l4, %l5, %tldo_add(foo)
14007 sethi %tie_hi22(foo), %o3
14008 add %o3, %tie_lo10(foo), %o3
14009 ld [%l7 + %o3], %o2, %tie_ld(foo)
14010 add %g7, %o2, %o4, %tie_add(foo)
14011 sethi %tle_hix22(foo), %l1
14012 xor %l1, %tle_lox10(foo), %o5
14013 ld [%g7 + %o5], %o1'
14016 tls_as_opt
="-32 --fatal-warnings"
14020 if test -z "$tls_first_major"; then
14021 : # If we don't have a check, assume no support.
14023 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14024 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14025 if test "${gcc_cv_as_tls+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14029 if test $in_tree_gas = yes; then
14030 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14031 then gcc_cv_as_tls
=yes
14033 elif test x
$gcc_cv_as != x
; then
14034 echo "$conftest_s" > conftest.s
14035 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }
14044 echo "configure: failed program was" >&5
14047 rm -f conftest.o conftest.s
14050 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14051 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14052 if test $gcc_cv_as_tls = yes; then
14054 cat >>confdefs.h
<<\_ACEOF
14055 #define HAVE_AS_TLS 1
14061 # Target-specific assembler checks.
14063 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14064 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14065 gcc_cv_ld_static_dynamic
=no
14066 if test $in_tree_ld = yes ; then
14067 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14068 gcc_cv_ld_static_dynamic
=yes
14070 elif test x
$gcc_cv_ld != x
; then
14071 # Check if linker supports -Bstatic/-Bdynamic option
14072 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14073 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14074 gcc_cv_ld_static_dynamic
=yes
14077 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14079 cat >>confdefs.h
<<\_ACEOF
14080 #define HAVE_LD_STATIC_DYNAMIC 1
14084 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14085 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14087 if test x
"$demangler_in_ld" = xyes
; then
14088 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14089 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14090 gcc_cv_ld_demangle
=no
14091 if test $in_tree_ld = yes; then
14092 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 \
14093 gcc_cv_ld_demangle
=yes
14095 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14096 # Check if the GNU linker supports --demangle option
14097 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14098 gcc_cv_ld_demangle
=yes
14101 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14103 cat >>confdefs.h
<<\_ACEOF
14104 #define HAVE_LD_DEMANGLE 1
14108 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14109 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14113 # All TARGET_ABI_OSF targets.
14114 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14115 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14116 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14117 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14120 gcc_cv_as_alpha_explicit_relocs
=no
14121 if test $in_tree_gas = yes; then
14122 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14123 then gcc_cv_as_alpha_explicit_relocs
=yes
14125 elif test x
$gcc_cv_as != x
; then
14126 echo ' .set nomacro
14128 extbl $3, $2, $3 !lituse_bytoff!1
14129 ldq $2, a($29) !literal!1
14130 ldq $4, b($29) !literal!2
14131 ldq_u $3, 0($2) !lituse_base!1
14132 ldq $27, f($29) !literal!5
14133 jsr $26, ($27), f !lituse_jsr!5
14134 ldah $29, 0($26) !gpdisp!3
14135 lda $0, c($29) !gprel
14136 ldah $1, d($29) !gprelhigh
14137 lda $1, d($1) !gprellow
14138 lda $29, 0($29) !gpdisp!3' > conftest.s
14139 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141 (eval $ac_try) 2>&5
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }; }
14146 gcc_cv_as_alpha_explicit_relocs
=yes
14148 echo "configure: failed program was" >&5
14151 rm -f conftest.o conftest.s
14154 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14155 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14156 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14158 cat >>confdefs.h
<<\_ACEOF
14159 #define HAVE_AS_EXPLICIT_RELOCS 1
14163 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14164 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14165 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 gcc_cv_as_alpha_jsrdirect_relocs
=no
14169 if test $in_tree_gas = yes; then
14170 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14171 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14173 elif test x
$gcc_cv_as != x
; then
14174 echo ' .set nomacro
14176 ldq $27, a($29) !literal!1
14177 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14178 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; }
14185 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14187 echo "configure: failed program was" >&5
14190 rm -f conftest.o conftest.s
14193 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14194 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14195 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14197 cat >>confdefs.h
<<\_ACEOF
14198 #define HAVE_AS_JSRDIRECT_RELOCS 1
14205 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14206 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14207 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 gcc_cv_as_cris_no_mul_bug
=no
14211 if test $in_tree_gas = yes; then
14212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14213 then gcc_cv_as_cris_no_mul_bug
=yes
14215 elif test x
$gcc_cv_as != x
; then
14216 echo '.text' > conftest.s
14217 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }
14224 gcc_cv_as_cris_no_mul_bug
=yes
14226 echo "configure: failed program was" >&5
14229 rm -f conftest.o conftest.s
14232 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14233 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14234 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14236 cat >>confdefs.h
<<\_ACEOF
14237 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14244 echo "$as_me:$LINENO: checking assembler for .register" >&5
14245 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14246 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 gcc_cv_as_sparc_register_op
=no
14250 if test x
$gcc_cv_as != x
; then
14251 echo '.register %g2, #scratch' > conftest.s
14252 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }
14259 gcc_cv_as_sparc_register_op
=yes
14261 echo "configure: failed program was" >&5
14264 rm -f conftest.o conftest.s
14267 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14268 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14269 if test $gcc_cv_as_sparc_register_op = yes; then
14271 cat >>confdefs.h
<<\_ACEOF
14272 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14277 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14278 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14279 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 gcc_cv_as_sparc_relax
=no
14283 if test x
$gcc_cv_as != x
; then
14284 echo '.text' > conftest.s
14285 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }
14292 gcc_cv_as_sparc_relax
=yes
14294 echo "configure: failed program was" >&5
14297 rm -f conftest.o conftest.s
14300 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14301 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14302 if test $gcc_cv_as_sparc_relax = yes; then
14304 cat >>confdefs.h
<<\_ACEOF
14305 #define HAVE_AS_RELAX_OPTION 1
14310 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14311 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14312 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14315 gcc_cv_as_sparc_ua_pcrel
=no
14316 if test x
$gcc_cv_as != x
; then
14323 .uaword %r_disp32(foo)' > conftest.s
14324 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }
14331 if test x
$gcc_cv_ld != x \
14332 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14333 gcc_cv_as_sparc_ua_pcrel
=yes
14337 echo "configure: failed program was" >&5
14340 rm -f conftest.o conftest.s
14343 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14344 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14345 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14347 cat >>confdefs.h
<<\_ACEOF
14348 #define HAVE_AS_SPARC_UA_PCREL 1
14352 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14353 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14354 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14358 if test x
$gcc_cv_as != x
; then
14362 .uaword %r_disp32(foo)
14363 .byte 0x32, 0x33, 0x34
14367 .skip 4' > conftest.s
14368 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370 (eval $ac_try) 2>&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); }; }
14375 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14376 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14377 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14378 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14379 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14380 |
grep 'DISP32' > /dev
/null
2>&1; then
14383 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14388 echo "configure: failed program was" >&5
14391 rm -f conftest.o conftest.s
14394 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14395 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14396 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14398 cat >>confdefs.h
<<\_ACEOF
14399 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14404 fi # unaligned pcrel relocs
14406 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14407 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14408 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 gcc_cv_as_sparc_offsetable_lo10
=no
14412 if test x
$gcc_cv_as != x
; then
14414 or %g1, %lo(ab) + 12, %g1
14415 or %g1, %lo(ab + 12), %g1' > conftest.s
14416 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }
14423 if test x
$gcc_cv_objdump != x \
14424 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14425 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14426 gcc_cv_as_sparc_offsetable_lo10
=yes
14429 echo "configure: failed program was" >&5
14432 rm -f conftest.o conftest.s
14435 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14436 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14437 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14439 cat >>confdefs.h
<<\_ACEOF
14440 #define HAVE_AS_OFFSETABLE_LO10 1
14446 i
[34567]86-*-* | x86_64-
*-*)
14448 cygwin
* | pe | mingw32
*)
14449 # Used for DWARF 2 in PE
14450 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14451 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14452 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 gcc_cv_as_ix86_pe_secrel32
=no
14456 if test $in_tree_gas = yes; then
14457 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14458 then gcc_cv_as_ix86_pe_secrel32
=yes
14460 elif test x
$gcc_cv_as != x
; then
14464 .secrel32 foo' > conftest.s
14465 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }
14472 if test x
$gcc_cv_ld != x \
14473 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14474 gcc_cv_as_ix86_pe_secrel32
=yes
14478 echo "configure: failed program was" >&5
14481 rm -f conftest.o conftest.s
14484 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14485 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14486 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14488 cat >>confdefs.h
<<\_ACEOF
14489 #define HAVE_GAS_PE_SECREL32_RELOC 1
14496 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14497 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14498 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 gcc_cv_as_ix86_filds_fists
=no
14502 if test $in_tree_gas = yes; then
14503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14504 then gcc_cv_as_ix86_filds_fists
=yes
14506 elif test x
$gcc_cv_as != x
; then
14507 echo 'filds mem; fists mem' > conftest.s
14508 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510 (eval $ac_try) 2>&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; }
14515 gcc_cv_as_ix86_filds_fists
=yes
14517 echo "configure: failed program was" >&5
14520 rm -f conftest.o conftest.s
14523 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14524 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14525 if test $gcc_cv_as_ix86_filds_fists = yes; then
14527 cat >>confdefs.h
<<\_ACEOF
14528 #define HAVE_GAS_FILDS_FISTS 1
14533 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14534 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14535 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 gcc_cv_as_ix86_cmov_sun_syntax
=no
14539 if test x
$gcc_cv_as != x
; then
14540 echo 'cmovl.l %edx, %eax' > conftest.s
14541 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; }
14548 gcc_cv_as_ix86_cmov_sun_syntax
=yes
14550 echo "configure: failed program was" >&5
14553 rm -f conftest.o conftest.s
14556 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14557 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14558 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14560 cat >>confdefs.h
<<\_ACEOF
14561 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14566 # This one is used unconditionally by i386.[ch]; it is to be defined
14567 # to 1 if the feature is present, 0 otherwise.
14568 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14569 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14570 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 gcc_cv_as_ix86_gotoff_in_data
=no
14574 if test $in_tree_gas = yes; then
14575 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14576 then gcc_cv_as_ix86_gotoff_in_data
=yes
14578 elif test x
$gcc_cv_as != x
; then
14583 .long .L0@GOTOFF' > conftest.s
14584 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }
14591 gcc_cv_as_ix86_gotoff_in_data
=yes
14593 echo "configure: failed program was" >&5
14596 rm -f conftest.o conftest.s
14599 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14600 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14603 cat >>confdefs.h
<<_ACEOF
14604 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14610 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14611 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14612 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
14616 if test $in_tree_gas = yes; then
14617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14618 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14620 elif test x
$gcc_cv_as != x
; then
14622 addl r15 = @ltoffx(x#), gp
14624 ld8.mov r16 = [r15], x#' > conftest.s
14625 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }
14632 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14634 echo "configure: failed program was" >&5
14637 rm -f conftest.o conftest.s
14640 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14641 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14642 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14644 cat >>confdefs.h
<<\_ACEOF
14645 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14654 *-*-aix*) conftest_s
=' .machine "pwr5"
14658 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14659 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14660 if test "${gcc_cv_as_machine_directive+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 gcc_cv_as_machine_directive
=no
14664 if test x
$gcc_cv_as != x
; then
14665 echo ' .machine ppc7400' > conftest.s
14666 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }
14673 gcc_cv_as_machine_directive
=yes
14675 echo "configure: failed program was" >&5
14678 rm -f conftest.o conftest.s
14681 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14682 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14684 if test x
$gcc_cv_as_machine_directive != xyes
; then
14685 echo "*** This target requires an assembler supporting \".machine\"" >&2
14686 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
14687 test x
$build = x
$target && exit 1
14691 *) conftest_s
=' .machine power4
14696 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14697 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14698 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 gcc_cv_as_powerpc_mfcrf
=no
14702 if test $in_tree_gas = yes; then
14703 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14704 then gcc_cv_as_powerpc_mfcrf
=yes
14706 elif test x
$gcc_cv_as != x
; then
14707 echo "$conftest_s" > conftest.s
14708 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }
14715 gcc_cv_as_powerpc_mfcrf
=yes
14717 echo "configure: failed program was" >&5
14720 rm -f conftest.o conftest.s
14723 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14724 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14725 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14727 cat >>confdefs.h
<<\_ACEOF
14728 #define HAVE_AS_MFCRF 1
14734 *-*-aix*) conftest_s
=' .machine "pwr5"
14737 *) conftest_s
=' .machine power5
14742 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
14743 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
14744 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 gcc_cv_as_powerpc_popcntb
=no
14748 if test $in_tree_gas = yes; then
14749 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14750 then gcc_cv_as_powerpc_popcntb
=yes
14752 elif test x
$gcc_cv_as != x
; then
14753 echo "$conftest_s" > conftest.s
14754 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756 (eval $ac_try) 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; }
14761 gcc_cv_as_powerpc_popcntb
=yes
14763 echo "configure: failed program was" >&5
14766 rm -f conftest.o conftest.s
14769 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
14770 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
14771 if test $gcc_cv_as_powerpc_popcntb = yes; then
14773 cat >>confdefs.h
<<\_ACEOF
14774 #define HAVE_AS_POPCNTB 1
14780 *-*-aix*) conftest_s
=' .csect .text[PR]
14782 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
14786 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
14787 *) conftest_s
=' .text
14789 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
14792 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
14793 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
14794 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 gcc_cv_as_powerpc_rel16
=no
14798 if test $in_tree_gas = yes; then
14799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14800 then gcc_cv_as_powerpc_rel16
=yes
14802 elif test x
$gcc_cv_as != x
; then
14803 echo "$conftest_s" > conftest.s
14804 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }
14811 gcc_cv_as_powerpc_rel16
=yes
14813 echo "configure: failed program was" >&5
14816 rm -f conftest.o conftest.s
14819 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
14820 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
14821 if test $gcc_cv_as_powerpc_rel16 = yes; then
14823 cat >>confdefs.h
<<\_ACEOF
14824 #define HAVE_AS_REL16 1
14831 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14832 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14833 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 gcc_cv_as_mips_explicit_relocs
=no
14837 if test $in_tree_gas = yes; then
14838 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14839 then gcc_cv_as_mips_explicit_relocs
=yes
14841 elif test x
$gcc_cv_as != x
; then
14842 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14843 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; }
14850 gcc_cv_as_mips_explicit_relocs
=yes
14852 echo "configure: failed program was" >&5
14855 rm -f conftest.o conftest.s
14858 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14859 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14860 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14861 if test x
$target_cpu_default = x
14862 then target_cpu_default
=MASK_EXPLICIT_RELOCS
14863 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14867 if test x
$gas_flag = xyes \
14868 ||
test x
"$host" != x
"$build" \
14869 ||
test ! -x "$gcc_cv_as" \
14870 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
14873 echo "*** This configuration requires the GNU assembler" >&2
14878 # ??? Not all targets support dwarf2 debug_line, even within a version
14879 # of gas. Moreover, we need to emit a valid instruction to trigger any
14880 # info to the output file. So, as supported targets are added to gas 2.11,
14881 # add some instruction here to (also) show we expect this might work.
14882 # ??? Once 2.11 is released, probably need to add first known working
14883 # version to the per-target configury.
14885 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
14886 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
14887 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
14890 ia64
*-*-* | s390
*-*-*)
14897 if test x
"$insn" != x
; then
14899 .file 1 \"conftest.s\"
14902 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14903 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14904 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14907 gcc_cv_as_dwarf2_debug_line
=no
14908 if test $in_tree_gas = yes; then
14909 if test $in_tree_gas_is_elf = yes \
14910 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14911 then gcc_cv_as_dwarf2_debug_line
=yes
14913 elif test x
$gcc_cv_as != x
; then
14914 echo "$conftest_s" > conftest.s
14915 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }
14922 if test x
$gcc_cv_objdump != x \
14923 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
14924 |
grep debug_line
> /dev
/null
2>&1; then
14925 gcc_cv_as_dwarf2_debug_line
=yes
14928 echo "configure: failed program was" >&5
14931 rm -f conftest.o conftest.s
14934 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14935 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14938 # The .debug_line file table must be in the exact order that
14939 # we specified the files, since these indices are also used
14940 # by DW_AT_decl_file. Approximate this test by testing if
14941 # the assembler bitches if the same index is assigned twice.
14942 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14943 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14944 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 gcc_cv_as_dwarf2_file_buggy
=no
14948 if test x
$gcc_cv_as != x
; then
14949 echo ' .file 1 "foo.s"
14950 .file 1 "bar.s"' > conftest.s
14951 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; }
14958 gcc_cv_as_dwarf2_file_buggy
=yes
14960 echo "configure: failed program was" >&5
14963 rm -f conftest.o conftest.s
14966 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14967 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14970 if test $gcc_cv_as_dwarf2_debug_line = yes \
14971 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
14973 cat >>confdefs.h
<<\_ACEOF
14974 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14979 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14980 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14981 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 gcc_cv_as_gdwarf2_flag
=no
14985 if test $in_tree_gas = yes; then
14986 if test $in_tree_gas_is_elf = yes \
14987 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14988 then gcc_cv_as_gdwarf2_flag
=yes
14990 elif test x
$gcc_cv_as != x
; then
14991 echo "$insn" > conftest.s
14992 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }
14999 gcc_cv_as_gdwarf2_flag
=yes
15001 echo "configure: failed program was" >&5
15004 rm -f conftest.o conftest.s
15007 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15008 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15009 if test $gcc_cv_as_gdwarf2_flag = yes; then
15011 cat >>confdefs.h
<<\_ACEOF
15012 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15017 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15018 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15019 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15022 gcc_cv_as_gstabs_flag
=no
15023 if test $in_tree_gas = yes; then
15024 if test $in_tree_gas_is_elf = yes \
15025 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15026 then gcc_cv_as_gstabs_flag
=yes
15028 elif test x
$gcc_cv_as != x
; then
15029 echo "$insn" > conftest.s
15030 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; }
15037 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15038 # and warns about it, but still exits successfully. So check for
15040 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }
15047 else gcc_cv_as_gstabs_flag
=yes
15050 echo "configure: failed program was" >&5
15053 rm -f conftest.o conftest.s
15056 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15057 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15058 if test $gcc_cv_as_gstabs_flag = yes; then
15060 cat >>confdefs.h
<<\_ACEOF
15061 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15067 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15068 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15069 gcc_cv_ld_ro_rw_mix
=unknown
15070 if test $in_tree_ld = yes ; then
15071 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 \
15072 && test $in_tree_ld_is_elf = yes; then
15073 gcc_cv_ld_ro_rw_mix
=read-write
15075 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
15076 echo '.section myfoosect, "a"' > conftest1.s
15077 echo '.section myfoosect, "aw"' > conftest2.s
15078 echo '.byte 1' >> conftest2.s
15079 echo '.section myfoosect, "a"' > conftest3.s
15080 echo '.byte 0' >> conftest3.s
15081 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15082 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15083 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
15084 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15085 conftest2.o conftest3.o
> /dev
/null
2>&1; then
15086 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
15087 | sed -e '/myfoosect/!d' -e N`
15088 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
15089 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
15090 gcc_cv_ld_ro_rw_mix
=read-only
15092 gcc_cv_ld_ro_rw_mix
=read-write
15096 rm -f conftest.
* conftest
[123].
*
15098 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
15100 cat >>confdefs.h
<<\_ACEOF
15101 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15105 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15106 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15108 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15109 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15110 gcc_cv_ld_eh_frame_hdr
=no
15111 if test $in_tree_ld = yes ; then
15112 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 \
15113 && test $in_tree_ld_is_elf = yes; then
15114 gcc_cv_ld_eh_frame_hdr
=yes
15116 elif test x
$gcc_cv_ld != x
; then
15117 # Check if linker supports --eh-frame-hdr option
15118 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
15119 gcc_cv_ld_eh_frame_hdr
=yes
15123 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
15125 cat >>confdefs.h
<<\_ACEOF
15126 #define HAVE_LD_EH_FRAME_HDR 1
15130 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15131 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15133 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15134 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15136 if test $in_tree_ld = yes ; then
15137 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 \
15138 && test $in_tree_ld_is_elf = yes; then
15141 elif test x
$gcc_cv_ld != x
; then
15142 # Check if linker supports -pie option
15143 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
15147 if test x
"$gcc_cv_ld_pie" = xyes
; then
15149 cat >>confdefs.h
<<\_ACEOF
15150 #define HAVE_LD_PIE 1
15154 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15155 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15161 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15162 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15163 if test "${gcc_cv_ld_as_needed+set}" = set; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15166 gcc_cv_ld_as_needed
=no
15167 if test $in_tree_ld = yes ; then
15168 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 \
15169 && test $in_tree_ld_is_elf = yes; then
15170 gcc_cv_ld_as_needed
=yes
15172 elif test x
$gcc_cv_ld != x
; then
15173 # Check if linker supports --as-needed and --no-as-needed options
15174 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
15175 gcc_cv_ld_as_needed
=yes
15180 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15181 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15182 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
15184 cat >>confdefs.h
<<\_ACEOF
15185 #define HAVE_LD_AS_NEEDED 1
15191 powerpc64
*-*-linux*)
15192 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15193 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15194 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 gcc_cv_ld_no_dot_syms
=no
15198 if test $in_tree_ld = yes ; then
15199 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
15200 gcc_cv_ld_no_dot_syms
=yes
15202 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
15203 cat > conftest1.s
<<EOF
15207 cat > conftest2.s
<<EOF
15208 .section ".opd","aw"
15211 .type foo,@function
15213 .quad .LEfoo,.TOC.@tocbase,0
15219 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15220 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15221 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
15222 gcc_cv_ld_no_dot_syms
=yes
15224 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15228 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15229 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15230 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15232 cat >>confdefs.h
<<\_ACEOF
15233 #define HAVE_LD_NO_DOT_SYMS 1
15240 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15241 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15242 if test "${gcc_cv_ld_sysroot+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 gcc_cv_ld_sysroot
=no
15246 if test $in_tree_ld = yes ; then
15247 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
15248 gcc_cv_ld_sysroot
=yes
15250 elif test x
$gcc_cv_ld != x
; then
15251 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
15252 gcc_cv_ld_sysroot
=yes
15256 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15257 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15258 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
15260 cat >>confdefs.h
<<\_ACEOF
15261 #define HAVE_LD_SYSROOT 1
15266 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15267 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15269 cat >>confdefs.h
<<_ACEOF
15270 #define PREFIX_INCLUDE_DIR "$prefix/include"
15275 # Find out what GC implementation we want, or may, use.
15277 # Check whether --with-gc or --without-gc was given.
15278 if test "${with_gc+set}" = set; then
15287 cat >>confdefs.h
<<\_ACEOF
15293 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15294 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15295 { (exit 1); exit 1; }; }
15302 echo "Using $GGC for garbage collection."
15304 # Use the system's zlib library.
15306 zlibinc
="-I\$(srcdir)/../zlib"
15308 # Check whether --with-system-zlib or --without-system-zlib was given.
15309 if test "${with_system_zlib+set}" = set; then
15310 withval
="$with_system_zlib"
15319 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15320 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15321 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15322 if test "${enable_maintainer_mode+set}" = set; then
15323 enableval
="$enable_maintainer_mode"
15324 maintainer_mode
=$enableval
15329 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15330 echo "${ECHO_T}$maintainer_mode" >&6
15332 if test "$maintainer_mode" = "yes"; then
15342 # Make empty files to contain the specs and options for each language.
15343 # Then add #include lines to for a compiler that has specs and/or options.
15348 for subdir
in .
$subdirs
15350 if test -f $srcdir/$subdir/lang.opt
; then
15351 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
15353 if test -f $srcdir/$subdir/lang-specs.h
; then
15354 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15356 if test -f $srcdir/$subdir/$subdir-tree.def
; then
15357 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15361 # These (without "all_") are set in each config-lang.in.
15362 # `language' must be a single word so is spelled singularly.
15364 all_boot_languages
=
15367 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15368 # List of language makefile fragments.
15369 all_lang_makefrags
=
15370 # List of language subdirectory makefiles. Deprecated.
15371 all_lang_makefiles
=
15372 # Files for gengtype
15373 all_gtfiles
="$target_gtfiles"
15374 # Files for gengtype with language
15375 all_gtfiles_files_langs
=
15376 all_gtfiles_files_files
=
15378 # Add the language fragments.
15379 # Languages are added via two mechanisms. Some information must be
15380 # recorded in makefile variables, these are defined in config-lang.in.
15381 # We accumulate them and plug them into the main Makefile.
15382 # The other mechanism is a set of hooks for each of the main targets
15383 # like `clean', `install', etc.
15385 language_hooks
="Make-hooks"
15395 .
${srcdir}/$s/config-lang.
in
15396 if test "x$language" = x
15398 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15401 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15402 if test -f ${srcdir}/$s/Makefile.
in
15403 then all_lang_makefiles
="$s/Makefile"
15405 all_languages
="$all_languages $language"
15406 if test "x$boot_language" = xyes
15408 all_boot_languages
="$all_boot_languages $language"
15410 all_compilers
="$all_compilers $compilers"
15411 all_stagestuff
="$all_stagestuff $stagestuff"
15412 all_outputs
="$all_outputs $outputs"
15413 all_gtfiles
="$all_gtfiles $gtfiles"
15416 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15417 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15421 # Pick up gtfiles for c
15424 .
${srcdir}/c-config-lang.
in
15425 all_gtfiles
="$all_gtfiles $gtfiles"
15428 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15429 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15433 for language
in $all_languages
15435 check_languages
="$check_languages check-$language"
15438 # We link each language in with a set of hooks, reached indirectly via
15443 target_list
="all.build all.cross start.encap rest.encap tags \
15444 install-normal install-common install-man \
15445 uninstall info man srcextra srcman srcinfo \
15446 mostlyclean clean distclean maintainer-clean \
15447 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15448 for t
in $target_list
15451 for lang
in $all_languages
15455 echo "lang.$t: $x" >> Make-hooks
15464 echo "dir ." > .gdbinit
15465 echo "dir ${srcdir}" >> .gdbinit
15466 if test x
$gdb_needs_out_file_path = xyes
15468 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15470 if test "x$subdirs" != x
; then
15473 echo "dir ${srcdir}/$s" >> .gdbinit
15476 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15478 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15479 # absolute path for gcc_tooldir based on inserting the number of up-directory
15480 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15481 # $(libsubdir)/@(unlibsubdir) based path.
15482 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15483 # make and thus we'd get different behavior depending on where we built the
15485 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
15486 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15488 # An explanation of the sed strings:
15489 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15490 # -e 's|/$||' match a trailing forward slash and eliminates it
15491 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15492 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15494 # (*) Note this pattern overwrites the first character of the string
15495 # with a forward slash if one is not already present. This is not a
15496 # problem because the exact names of the sub-directories concerned is
15497 # unimportant, just the number of them matters.
15499 # The practical upshot of these patterns is like this:
15501 # prefix exec_prefix result
15502 # ------ ----------- ------
15503 # /foo /foo/bar ../
15504 # /foo/ /foo/bar ../
15505 # /foo /foo/bar/ ../
15506 # /foo/ /foo/bar/ ../
15507 # /foo /foo/bar/ugg ../../
15510 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15515 # Find a directory in which to install a shared libgcc.
15517 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15518 if test "${enable_version_specific_runtime_libs+set}" = set; then
15519 enableval
="$enable_version_specific_runtime_libs"
15524 # Check whether --with-slibdir or --without-slibdir was given.
15525 if test "${with_slibdir+set}" = set; then
15526 withval
="$with_slibdir"
15527 slibdir
="$with_slibdir"
15529 if test "${enable_version_specific_runtime_libs+set}" = set; then
15530 slibdir
='$(libsubdir)'
15531 elif test "$host" != "$target"; then
15532 slibdir
='$(build_tooldir)/lib'
15534 slibdir
='$(libdir)'
15539 objdir
=`${PWDCMD-pwd}`
15542 # Substitute configuration variables
15607 if test x
${build} = x
${host} ; then
15608 if test x
${host} = x
${target} ; then
15609 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15611 echo "Links are now set up to build a cross-compiler" 1>&2
15612 echo " from ${host} to ${target}." 1>&2
15615 if test x
${host} = x
${target} ; then
15616 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15617 echo " for ${target}." 1>&2
15619 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15620 echo " from ${host} to ${target}." 1>&2
15627 # Configure the subdirectories
15628 # AC_CONFIG_SUBDIRS($subdirs)
15630 # Create the Makefile
15631 # and configure language subdirectories
15632 ac_config_files
="$ac_config_files $all_outputs"
15635 ac_config_commands
="$ac_config_commands default"
15637 cat >confcache
<<\_ACEOF
15638 # This file is a shell script that caches the results of configure
15639 # tests run on this system so they can be shared between configure
15640 # scripts and configure runs, see configure's option --config-cache.
15641 # It is not useful on other systems. If it contains results you don't
15642 # want to keep, you may remove or edit it.
15644 # config.status only pays attention to the cache file if you give it
15645 # the --recheck option to rerun configure.
15647 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15648 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15649 # following values.
15653 # The following way of writing the cache mishandles newlines in values,
15654 # but we know of no workaround that is simple, portable, and efficient.
15655 # So, don't put newlines in cache variables' values.
15656 # Ultrix sh set writes to stderr and can't be redirected directly,
15657 # and sets the high bit in the cache file unless we assign to the vars.
15660 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15662 # `set' does not quote correctly, so add quotes (double-quote
15663 # substitution turns \\\\ into \\, and sed turns \\ into \).
15666 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15669 # `set' quotes correctly as required by POSIX, so do not add quotes.
15671 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15678 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15680 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15682 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15683 if test -w $cache_file; then
15684 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15685 cat confcache
>$cache_file
15687 echo "not updating unwritable cache $cache_file"
15692 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15693 # Let make expand exec_prefix.
15694 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15696 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15697 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15698 # trailing colons and then remove the whole line if VPATH becomes empty
15699 # (actually we leave an empty line to preserve line numbers).
15700 if test "x$srcdir" = x.
; then
15701 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15702 s/:*\$(srcdir):*/:/;
15703 s/:*\${srcdir}:*/:/;
15705 s/^\([^=]*=[ ]*\):*/\1/;
15711 DEFS
=-DHAVE_CONFIG_H
15715 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15716 # 1. Remove the extension, and $U if already installed.
15717 ac_i
=`echo "$ac_i" |
15718 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15720 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15721 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15723 LIBOBJS
=$ac_libobjs
15725 LTLIBOBJS
=$ac_ltlibobjs
15729 : ${CONFIG_STATUS=./config.status}
15730 ac_clean_files_save
=$ac_clean_files
15731 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15732 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15733 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15734 cat >$CONFIG_STATUS <<_ACEOF
15736 # Generated by $as_me.
15737 # Run this file to recreate the current configuration.
15738 # Compiler output produced by configure, useful for debugging
15739 # configure, is in config.log if it exists.
15742 ac_cs_recheck=false
15744 SHELL=\${CONFIG_SHELL-$SHELL}
15747 cat >>$CONFIG_STATUS <<\_ACEOF
15748 ## --------------------- ##
15749 ## M4sh Initialization. ##
15750 ## --------------------- ##
15752 # Be Bourne compatible
15753 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15756 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15757 # is contrary to our usage. Disable this feature.
15758 alias -g '${1+"$@"}'='"$@"'
15759 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
15762 DUALCASE
=1; export DUALCASE
# for MKS sh
15764 # Support unset when possible.
15765 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15772 # Work around bugs in pre-3.0 UWIN ksh.
15773 $as_unset ENV MAIL MAILPATH
15780 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15781 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15782 LC_TELEPHONE LC_TIME
15784 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15785 eval $as_var=C
; export $as_var
15791 # Required to use basename.
15792 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15798 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15799 as_basename
=basename
15805 # Name of the executable.
15806 as_me
=`$as_basename "$0" ||
15807 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15808 X"$0" : 'X\(//\)$' \| \
15809 X"$0" : 'X\(/\)$' \| \
15810 . : '\(.\)' 2>/dev/null ||
15812 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15813 /^X\/\(\/\/\)$/{ s//\1/; q; }
15814 /^X\/\(\/\).*/{ s//\1/; q; }
15818 # PATH needs CR, and LINENO needs CR and PATH.
15819 # Avoid depending upon Character Ranges.
15820 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15821 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15822 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15823 as_cr_digits
='0123456789'
15824 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15826 # The user is always right.
15827 if test "${PATH_SEPARATOR+set}" != set; then
15828 echo "#! /bin/sh" >conf$$.sh
15829 echo "exit 0" >>conf$$.sh
15831 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15840 as_lineno_1
=$LINENO
15841 as_lineno_2
=$LINENO
15842 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15843 test "x$as_lineno_1" != "x$as_lineno_2" &&
15844 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
15845 # Find who we are. Look in the path if we contain no path at all
15848 *[\\/]* ) as_myself
=$0 ;;
15849 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15850 for as_dir
in $PATH
15853 test -z "$as_dir" && as_dir
=.
15854 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15859 # We did not find ourselves, most probably we were run as `sh COMMAND'
15860 # in which case we are not to be found in the path.
15861 if test "x$as_myself" = x
; then
15864 if test ! -f "$as_myself"; then
15865 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15866 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15867 { (exit 1); exit 1; }; }
15869 case $CONFIG_SHELL in
15871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15872 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
15875 test -z "$as_dir" && as_dir
=.
15876 for as_base
in sh bash ksh sh5
; do
15879 if ("$as_dir/$as_base" -c '
15880 as_lineno_1=$LINENO
15881 as_lineno_2=$LINENO
15882 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15883 test "x$as_lineno_1" != "x$as_lineno_2" &&
15884 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
15885 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
15886 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
15887 CONFIG_SHELL
=$as_dir/$as_base
15888 export CONFIG_SHELL
15889 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15897 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15898 # uniformly replaced by the line number. The first 'sed' inserts a
15899 # line-number line before each line; the second 'sed' does the real
15900 # work. The second script uses 'N' to pair each line-number line
15901 # with the numbered line, and appends trailing '-' during
15902 # substitution so that $LINENO is not a special case at line end.
15903 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15904 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15905 sed '=' <$as_myself |
15910 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15913 s,^['$as_cr_digits']*\n,,
15914 ' >$as_me.lineno
&&
15915 chmod +x
$as_me.lineno ||
15916 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15917 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15918 { (exit 1); exit 1; }; }
15920 # Don't try to exec as it changes $[0], causing all sort of problems
15921 # (the dirname of $[0] is not the place where we might find the
15922 # original and so on. Autoconf is especially sensible to this).
15924 # Exit status is that of the last command.
15929 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15930 *c
*,-n*) ECHO_N
= ECHO_C
='
15932 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15933 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15936 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15942 rm -f conf$$ conf$$.exe conf$$.
file
15944 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15945 # We could just check for DJGPP; but this test a) works b) is more generic
15946 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15947 if test -f conf$$.exe
; then
15948 # Don't use ln at all; we don't have any links
15953 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15958 rm -f conf$$ conf$$.exe conf$$.
file
15960 if mkdir
-p .
2>/dev
/null
; then
15963 test -d .
/-p && rmdir .
/-p
15967 as_executable_p
="test -f"
15969 # Sed expression to map a string onto a valid CPP name.
15970 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15972 # Sed expression to map a string onto a valid variable name.
15973 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15977 # We need space, tab and new line, in precisely that order.
15987 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15988 # report actual input values of CONFIG_FILES etc. instead of their
15989 # values after options handling. Logging --version etc. is OK.
15993 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15994 ## Running $as_me. ##
15999 This file was extended by $as_me, which was
16000 generated by GNU Autoconf 2.59. Invocation command line was
16002 CONFIG_FILES = $CONFIG_FILES
16003 CONFIG_HEADERS = $CONFIG_HEADERS
16004 CONFIG_LINKS = $CONFIG_LINKS
16005 CONFIG_COMMANDS = $CONFIG_COMMANDS
16009 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16013 # Files that config.status was made for.
16014 if test -n "$ac_config_files"; then
16015 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16018 if test -n "$ac_config_headers"; then
16019 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16022 if test -n "$ac_config_links"; then
16023 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16026 if test -n "$ac_config_commands"; then
16027 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16030 cat >>$CONFIG_STATUS <<\_ACEOF
16033 \`$as_me' instantiates files from templates according to the
16034 current configuration.
16036 Usage: $0 [OPTIONS] [FILE]...
16038 -h, --help print this help, then exit
16039 -V, --version print version number, then exit
16040 -q, --quiet do not print progress messages
16041 -d, --debug don't remove temporary files
16042 --recheck update $as_me by reconfiguring in the same conditions
16043 --file=FILE[:TEMPLATE]
16044 instantiate the configuration file FILE
16045 --header=FILE[:TEMPLATE]
16046 instantiate the configuration header FILE
16048 Configuration files:
16051 Configuration headers:
16054 Configuration commands:
16057 Report bugs to <bug-autoconf@gnu.org>."
16060 cat >>$CONFIG_STATUS <<_ACEOF
16063 configured by $0, generated by GNU Autoconf 2.59,
16064 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16066 Copyright (C) 2003 Free Software Foundation, Inc.
16067 This config.status script is free software; the Free Software Foundation
16068 gives unlimited permission to copy, distribute and modify it."
16072 cat >>$CONFIG_STATUS <<\_ACEOF
16073 # If no file are specified by the user, then we need to provide default
16074 # value. By we need to know if files were specified by the user.
16080 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16081 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16089 *) # This is not an option, so the user has probably given explicit
16092 ac_need_defaults
=false
;;
16096 # Handling of the options.
16098 cat >>$CONFIG_STATUS <<\_ACEOF
16099 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16101 --version |
--vers* |
-V )
16102 echo "$ac_cs_version"; exit 0 ;;
16104 # Conflict between --help and --header
16105 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16106 Try \`$0 --help' for more information." >&5
16107 echo "$as_me: error: ambiguous option: $1
16108 Try \`$0 --help' for more information." >&2;}
16109 { (exit 1); exit 1; }; };;
16110 --help |
--hel |
-h )
16111 echo "$ac_cs_usage"; exit 0 ;;
16112 --debug |
--d* |
-d )
16114 --file |
--fil |
--fi |
--f )
16116 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16117 ac_need_defaults
=false
;;
16118 --header |
--heade |
--head |
--hea )
16120 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16121 ac_need_defaults
=false
;;
16122 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16123 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16126 # This is an error.
16127 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16128 Try \`$0 --help' for more information." >&5
16129 echo "$as_me: error: unrecognized option: $1
16130 Try \`$0 --help' for more information." >&2;}
16131 { (exit 1); exit 1; }; } ;;
16133 *) ac_config_targets
="$ac_config_targets $1" ;;
16139 ac_configure_extra_args
=
16141 if $ac_cs_silent; then
16143 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16147 cat >>$CONFIG_STATUS <<_ACEOF
16148 if \$ac_cs_recheck; then
16149 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16150 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16155 cat >>$CONFIG_STATUS <<_ACEOF
16157 # INIT-COMMANDS section.
16166 cat >>$CONFIG_STATUS <<\_ACEOF
16167 for ac_config_target
in $ac_config_targets
16169 case "$ac_config_target" in
16170 # Handling of arguments.
16171 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
16172 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16173 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
16174 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16175 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16176 { (exit 1); exit 1; }; };;
16180 # If the user did not use the arguments to specify the items to instantiate,
16181 # then the envvar interface is used. Set only those that are not.
16182 # We use the long form for the default assignment because of an extremely
16183 # bizarre bug on SunOS 4.1.3.
16184 if $ac_need_defaults; then
16185 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16186 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16187 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16190 # Have a temporary directory for convenience. Make it in the build tree
16191 # simply because there is no reason to put it here, and in addition,
16192 # creating and moving files from /tmp can sometimes cause problems.
16193 # Create a temporary directory, and hook for its removal unless debugging.
16196 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16197 trap '{ (exit 1); exit 1; }' 1 2 13 15
16200 # Create a (secure) tmp directory for tmp files.
16203 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16204 test -n "$tmp" && test -d "$tmp"
16207 tmp
=.
/confstat$$
-$RANDOM
16208 (umask 077 && mkdir
$tmp)
16211 echo "$me: cannot create a temporary directory in ." >&2
16212 { (exit 1); exit 1; }
16217 cat >>$CONFIG_STATUS <<_ACEOF
16220 # CONFIG_FILES section.
16223 # No need to generate the scripts if there are no CONFIG_FILES.
16224 # This happens for instance when ./config.status config.h
16225 if test -n "\$CONFIG_FILES"; then
16226 # Protect against being on the right side of a sed subst in config.status.
16227 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16228 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16229 s,@SHELL@,$SHELL,;t t
16230 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16231 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16232 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16233 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16234 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16235 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16236 s,@exec_prefix@,$exec_prefix,;t t
16237 s,@prefix@,$prefix,;t t
16238 s,@program_transform_name@,$program_transform_name,;t t
16239 s,@bindir@,$bindir,;t t
16240 s,@sbindir@,$sbindir,;t t
16241 s,@libexecdir@,$libexecdir,;t t
16242 s,@datadir@,$datadir,;t t
16243 s,@sysconfdir@,$sysconfdir,;t t
16244 s,@sharedstatedir@,$sharedstatedir,;t t
16245 s,@localstatedir@,$localstatedir,;t t
16246 s,@libdir@,$libdir,;t t
16247 s,@includedir@,$includedir,;t t
16248 s,@oldincludedir@,$oldincludedir,;t t
16249 s,@infodir@,$infodir,;t t
16250 s,@mandir@,$mandir,;t t
16251 s,@build_alias@,$build_alias,;t t
16252 s,@host_alias@,$host_alias,;t t
16253 s,@target_alias@,$target_alias,;t t
16254 s,@DEFS@,$DEFS,;t t
16255 s,@ECHO_C@,$ECHO_C,;t t
16256 s,@ECHO_N@,$ECHO_N,;t t
16257 s,@ECHO_T@,$ECHO_T,;t t
16258 s,@LIBS@,$LIBS,;t t
16259 s,@build@,$build,;t t
16260 s,@build_cpu@,$build_cpu,;t t
16261 s,@build_vendor@,$build_vendor,;t t
16262 s,@build_os@,$build_os,;t t
16263 s,@host@,$host,;t t
16264 s,@host_cpu@,$host_cpu,;t t
16265 s,@host_vendor@,$host_vendor,;t t
16266 s,@host_os@,$host_os,;t t
16267 s,@target@,$target,;t t
16268 s,@target_cpu@,$target_cpu,;t t
16269 s,@target_vendor@,$target_vendor,;t t
16270 s,@target_os@,$target_os,;t t
16271 s,@target_noncanonical@,$target_noncanonical,;t t
16272 s,@build_subdir@,$build_subdir,;t t
16273 s,@host_subdir@,$host_subdir,;t t
16274 s,@target_subdir@,$target_subdir,;t t
16275 s,@GENINSRC@,$GENINSRC,;t t
16277 s,@CFLAGS@,$CFLAGS,;t t
16278 s,@LDFLAGS@,$LDFLAGS,;t t
16279 s,@CPPFLAGS@,$CPPFLAGS,;t t
16280 s,@ac_ct_CC@,$ac_ct_CC,;t t
16281 s,@EXEEXT@,$EXEEXT,;t t
16282 s,@OBJEXT@,$OBJEXT,;t t
16283 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16284 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16286 s,@EGREP@,$EGREP,;t t
16287 s,@strict1_warn@,$strict1_warn,;t t
16288 s,@warn_cflags@,$warn_cflags,;t t
16289 s,@WERROR@,$WERROR,;t t
16290 s,@nocommon_flag@,$nocommon_flag,;t t
16291 s,@TREEBROWSER@,$TREEBROWSER,;t t
16292 s,@valgrind_path@,$valgrind_path,;t t
16293 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16294 s,@valgrind_command@,$valgrind_command,;t t
16295 s,@coverage_flags@,$coverage_flags,;t t
16296 s,@enable_multilib@,$enable_multilib,;t t
16297 s,@enable_shared@,$enable_shared,;t t
16298 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16299 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16300 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16301 s,@onestep@,$onestep,;t t
16302 s,@SET_MAKE@,$SET_MAKE,;t t
16304 s,@LN_S@,$LN_S,;t t
16306 s,@RANLIB@,$RANLIB,;t t
16307 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16308 s,@ranlib_flags@,$ranlib_flags,;t t
16309 s,@INSTALL@,$INSTALL,;t t
16310 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16311 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16312 s,@make_compare_target@,$make_compare_target,;t t
16313 s,@have_mktemp_command@,$have_mktemp_command,;t t
16314 s,@MAKEINFO@,$MAKEINFO,;t t
16315 s,@BUILD_INFO@,$BUILD_INFO,;t t
16316 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16317 s,@FLEX@,$FLEX,;t t
16318 s,@BISON@,$BISON,;t t
16321 s,@stage1_cflags@,$stage1_cflags,;t t
16322 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16323 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16324 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16325 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16326 s,@LIBICONV@,$LIBICONV,;t t
16327 s,@LTLIBICONV@,$LTLIBICONV,;t t
16328 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16329 s,@manext@,$manext,;t t
16330 s,@objext@,$objext,;t t
16331 s,@gthread_flags@,$gthread_flags,;t t
16332 s,@extra_modes_file@,$extra_modes_file,;t t
16333 s,@extra_opt_files@,$extra_opt_files,;t t
16334 s,@USE_NLS@,$USE_NLS,;t t
16335 s,@LIBINTL@,$LIBINTL,;t t
16336 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16337 s,@INCINTL@,$INCINTL,;t t
16338 s,@XGETTEXT@,$XGETTEXT,;t t
16339 s,@GMSGFMT@,$GMSGFMT,;t t
16340 s,@POSUB@,$POSUB,;t t
16341 s,@CATALOGS@,$CATALOGS,;t t
16342 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16343 s,@CROSS@,$CROSS,;t t
16345 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16346 s,@inhibit_libc@,$inhibit_libc,;t t
16347 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16348 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16349 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16350 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16351 s,@collect2@,$collect2,;t t
16352 s,@libgcc_visibility@,$libgcc_visibility,;t t
16354 s,@zlibdir@,$zlibdir,;t t
16355 s,@zlibinc@,$zlibinc,;t t
16356 s,@MAINT@,$MAINT,;t t
16357 s,@gcc_tooldir@,$gcc_tooldir,;t t
16358 s,@dollar@,$dollar,;t t
16359 s,@slibdir@,$slibdir,;t t
16360 s,@objdir@,$objdir,;t t
16361 s,@subdirs@,$subdirs,;t t
16362 s,@srcdir@,$srcdir,;t t
16363 s,@all_boot_languages@,$all_boot_languages,;t t
16364 s,@all_compilers@,$all_compilers,;t t
16365 s,@all_gtfiles@,$all_gtfiles,;t t
16366 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16367 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16368 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16369 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16370 s,@all_languages@,$all_languages,;t t
16371 s,@all_stagestuff@,$all_stagestuff,;t t
16372 s,@build_exeext@,$build_exeext,;t t
16373 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16374 s,@build_xm_file_list@,$build_xm_file_list,;t t
16375 s,@build_xm_include_list@,$build_xm_include_list,;t t
16376 s,@build_xm_defines@,$build_xm_defines,;t t
16377 s,@check_languages@,$check_languages,;t t
16378 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16379 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16380 s,@cpp_install_dir@,$cpp_install_dir,;t t
16381 s,@xmake_file@,$xmake_file,;t t
16382 s,@tmake_file@,$tmake_file,;t t
16383 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16384 s,@extra_headers_list@,$extra_headers_list,;t t
16385 s,@extra_objs@,$extra_objs,;t t
16386 s,@extra_parts@,$extra_parts,;t t
16387 s,@extra_passes@,$extra_passes,;t t
16388 s,@extra_programs@,$extra_programs,;t t
16389 s,@float_h_file@,$float_h_file,;t t
16390 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16391 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16392 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16393 s,@host_exeext@,$host_exeext,;t t
16394 s,@host_xm_file_list@,$host_xm_file_list,;t t
16395 s,@host_xm_include_list@,$host_xm_include_list,;t t
16396 s,@host_xm_defines@,$host_xm_defines,;t t
16397 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16398 s,@install@,$install,;t t
16399 s,@lang_opt_files@,$lang_opt_files,;t t
16400 s,@lang_specs_files@,$lang_specs_files,;t t
16401 s,@lang_tree_files@,$lang_tree_files,;t t
16402 s,@local_prefix@,$local_prefix,;t t
16403 s,@md_file@,$md_file,;t t
16404 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16405 s,@out_file@,$out_file,;t t
16406 s,@out_object_file@,$out_object_file,;t t
16407 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16408 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16409 s,@thread_file@,$thread_file,;t t
16410 s,@tm_file_list@,$tm_file_list,;t t
16411 s,@tm_include_list@,$tm_include_list,;t t
16412 s,@tm_defines@,$tm_defines,;t t
16413 s,@tm_p_file_list@,$tm_p_file_list,;t t
16414 s,@tm_p_include_list@,$tm_p_include_list,;t t
16415 s,@xm_file_list@,$xm_file_list,;t t
16416 s,@xm_include_list@,$xm_include_list,;t t
16417 s,@xm_defines@,$xm_defines,;t t
16418 s,@c_target_objs@,$c_target_objs,;t t
16419 s,@cxx_target_objs@,$cxx_target_objs,;t t
16420 s,@target_cpu_default@,$target_cpu_default,;t t
16421 s,@GMPLIBS@,$GMPLIBS,;t t
16422 s,@GMPINC@,$GMPINC,;t t
16423 s,@LIBOBJS@,$LIBOBJS,;t t
16424 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16425 /@language_hooks@/r $language_hooks
16426 s,@language_hooks@,,;t t
16431 cat >>$CONFIG_STATUS <<\_ACEOF
16432 # Split the substitutions into bite-sized pieces for seds with
16433 # small command number limits, like on Digital OSF/1 and HP-UX.
16434 ac_max_sed_lines
=48
16435 ac_sed_frag
=1 # Number of current file.
16436 ac_beg
=1 # First line for current file.
16437 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16440 while $ac_more_lines; do
16441 if test $ac_beg -gt 1; then
16442 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16444 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16446 if test ! -s $tmp/subs.frag
; then
16447 ac_more_lines
=false
16449 # The purpose of the label and of the branching condition is to
16450 # speed up the sed processing (if there are no `@' at all, there
16451 # is no need to browse any of the substitutions).
16452 # These are the two extra sed commands mentioned above.
16454 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16455 if test -z "$ac_sed_cmds"; then
16456 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16458 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16460 ac_sed_frag
=`expr $ac_sed_frag + 1`
16462 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16465 if test -z "$ac_sed_cmds"; then
16468 fi # test -n "$CONFIG_FILES"
16471 cat >>$CONFIG_STATUS <<\_ACEOF
16472 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16473 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16475 - |
*:- |
*:-:* ) # input from stdin
16477 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16478 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16479 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16480 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16481 * ) ac_file_in
=$ac_file.
in ;;
16484 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16485 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16486 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16487 X"$ac_file" : 'X\(//\)[^/]' \| \
16488 X"$ac_file" : 'X\(//\)$' \| \
16489 X"$ac_file" : 'X\(/\)' \| \
16490 . : '\(.\)' 2>/dev/null ||
16492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16493 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16494 /^X\(\/\/\)$/{ s//\1/; q; }
16495 /^X\(\/\).*/{ s//\1/; q; }
16497 { if $as_mkdir_p; then
16502 while test ! -d "$as_dir"; do
16503 as_dirs
="$as_dir $as_dirs"
16504 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16505 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16506 X"$as_dir" : 'X\(//\)[^/]' \| \
16507 X"$as_dir" : 'X\(//\)$' \| \
16508 X"$as_dir" : 'X\(/\)' \| \
16509 . : '\(.\)' 2>/dev/null ||
16511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16512 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16513 /^X\(\/\/\)$/{ s//\1/; q; }
16514 /^X\(\/\).*/{ s//\1/; q; }
16517 test ! -n "$as_dirs" || mkdir
$as_dirs
16518 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16519 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16520 { (exit 1); exit 1; }; }; }
16524 if test "$ac_dir" != .
; then
16525 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16526 # A "../" for each directory in $ac_dir_suffix.
16527 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16529 ac_dir_suffix
= ac_top_builddir
=
16533 .
) # No --srcdir option. We are building in place.
16535 if test -z "$ac_top_builddir"; then
16538 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16540 [\\/]* | ?
:[\\/]* ) # Absolute path.
16541 ac_srcdir
=$srcdir$ac_dir_suffix;
16542 ac_top_srcdir
=$srcdir ;;
16543 *) # Relative path.
16544 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16545 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16548 # Do not use `cd foo && pwd` to compute absolute paths, because
16549 # the directories may not exist.
16551 .
) ac_abs_builddir
="$ac_dir";;
16554 .
) ac_abs_builddir
=`pwd`;;
16555 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16556 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16559 case $ac_abs_builddir in
16560 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16562 case ${ac_top_builddir}.
in
16563 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16564 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16565 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16568 case $ac_abs_builddir in
16569 .
) ac_abs_srcdir
=$ac_srcdir;;
16572 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16573 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16574 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16577 case $ac_abs_builddir in
16578 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16580 case $ac_top_srcdir in
16581 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16582 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16583 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16589 if test x
"$ac_file" != x-
; then
16590 { echo "$as_me:$LINENO: creating $ac_file" >&5
16591 echo "$as_me: creating $ac_file" >&6;}
16594 # Let's still pretend it is `configure' which instantiates (i.e., don't
16595 # use $as_me), people would be surprised to read:
16596 # /* config.h. Generated by config.status. */
16597 if test x
"$ac_file" = x-
; then
16600 configure_input
="$ac_file. "
16602 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16603 sed 's,.*/,,'` by configure."
16605 # First look for the input files in the build tree, otherwise in the
16607 ac_file_inputs
=`IFS=:
16608 for f in $ac_file_in; do
16610 -) echo $tmp/stdin ;;
16612 # Absolute (can't be DOS-style, as IFS=:)
16613 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16614 echo "$as_me: error: cannot find input file: $f" >&2;}
16615 { (exit 1); exit 1; }; }
16618 if test -f "$f"; then
16621 elif test -f "$srcdir/$f"; then
16626 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16627 echo "$as_me: error: cannot find input file: $f" >&2;}
16628 { (exit 1); exit 1; }; }
16631 done` ||
{ (exit 1); exit 1; }
16633 cat >>$CONFIG_STATUS <<_ACEOF
16637 cat >>$CONFIG_STATUS <<\_ACEOF
16639 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16640 s
,@configure_input@
,$configure_input,;t t
16641 s
,@srcdir@
,$ac_srcdir,;t t
16642 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16643 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16644 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16645 s
,@builddir@
,$ac_builddir,;t t
16646 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16647 s
,@top_builddir@
,$ac_top_builddir,;t t
16648 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16649 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16651 if test x"$ac_file" != x-; then
16652 mv $tmp/out $ac_file
16660 cat >>$CONFIG_STATUS <<\_ACEOF
16663 # CONFIG_HEADER section.
16666 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16667 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16669 # ac_d sets the value in "#define NAME VALUE" lines.
16670 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16671 ac_dB
='[ ].*$,\1#\2'
16674 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16675 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16676 ac_uB
='$,\1#\2define\3'
16680 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16681 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16683 - |
*:- |
*:-:* ) # input from stdin
16685 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16686 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16687 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16688 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16689 * ) ac_file_in
=$ac_file.
in ;;
16692 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16693 echo "$as_me: creating $ac_file" >&6;}
16695 # First look for the input files in the build tree, otherwise in the
16697 ac_file_inputs
=`IFS=:
16698 for f in $ac_file_in; do
16700 -) echo $tmp/stdin ;;
16702 # Absolute (can't be DOS-style, as IFS=:)
16703 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16704 echo "$as_me: error: cannot find input file: $f" >&2;}
16705 { (exit 1); exit 1; }; }
16706 # Do quote $f, to prevent DOS paths from being IFS'd.
16709 if test -f "$f"; then
16712 elif test -f "$srcdir/$f"; then
16717 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16718 echo "$as_me: error: cannot find input file: $f" >&2;}
16719 { (exit 1); exit 1; }; }
16722 done` ||
{ (exit 1); exit 1; }
16723 # Remove the trailing spaces.
16724 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16728 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16729 # `conftest.undefs', that substitutes the proper values into
16730 # config.h.in to produce config.h. The first handles `#define'
16731 # templates, and the second `#undef' templates.
16732 # And first: Protect against being on the right side of a sed subst in
16733 # config.status. Protect against being in an unquoted here document
16734 # in config.status.
16735 rm -f conftest.defines conftest.undefs
16736 # Using a here document instead of a string reduces the quoting nightmare.
16737 # Putting comments in sed scripts is not portable.
16739 # `end' is used to avoid that the second main sed command (meant for
16740 # 0-ary CPP macros) applies to n-ary macro definitions.
16741 # See the Autoconf documentation for `clear'.
16742 cat >confdef2sed.
sed <<\_ACEOF
16747 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16749 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16752 # If some macros were called several times there might be several times
16753 # the same #defines, which is useless. Nevertheless, we may not want to
16754 # sort them, since we want the *last* AC-DEFINE to be honored.
16755 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16756 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16757 rm -f confdef2sed.sed
16759 # This sed command replaces #undef with comments. This is necessary, for
16760 # example, in the case of _POSIX_SOURCE, which is predefined and required
16761 # on some systems where configure will not decide to define it.
16762 cat >>conftest.undefs <<\_ACEOF
16763 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16766 # Break up conftest.defines because some shells have a limit on the size
16767 # of here documents, and old seds have small limits too (100 cmds).
16768 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16769 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16770 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16771 echo ' :' >>$CONFIG_STATUS
16772 rm -f conftest.tail
16773 while grep . conftest.defines >/dev/null
16775 # Write a limited-size here document to $tmp/defines.sed.
16776 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16777 # Speed up: don't consider the non `#define' lines.
16778 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16779 # Work around the forget-to-reset-the-flag bug.
16780 echo 't clr' >>$CONFIG_STATUS
16781 echo ': clr' >>$CONFIG_STATUS
16782 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16784 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16786 mv $tmp/out $tmp/in
16788 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16789 rm -f conftest.defines
16790 mv conftest.
tail conftest.defines
16792 rm -f conftest.defines
16793 echo ' fi # grep' >>$CONFIG_STATUS
16794 echo >>$CONFIG_STATUS
16796 # Break up conftest.undefs because some shells have a limit on the size
16797 # of here documents, and old seds have small limits too (100 cmds).
16798 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16799 rm -f conftest.
tail
16800 while grep . conftest.undefs
>/dev
/null
16802 # Write a limited-size here document to $tmp/undefs.sed.
16803 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16804 # Speed up: don't consider the non
`#undef'
16805 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16806 # Work around the forget-to-reset-the-flag bug.
16807 echo 't clr' >>$CONFIG_STATUS
16808 echo ': clr' >>$CONFIG_STATUS
16809 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16811 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16813 mv $tmp/out $tmp/in
16815 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16816 rm -f conftest.undefs
16817 mv conftest.tail conftest.undefs
16819 rm -f conftest.undefs
16821 cat >>$CONFIG_STATUS <<\_ACEOF
16822 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16823 # use $as_me), people would be surprised to read:
16824 # /* config.h. Generated by config.status. */
16825 if test x
"$ac_file" = x-
; then
16826 echo "/* Generated by configure. */" >$tmp/config.h
16828 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16830 cat $tmp/in >>$tmp/config.h
16832 if test x
"$ac_file" != x-
; then
16833 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
16834 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16835 echo "$as_me: $ac_file is unchanged" >&6;}
16837 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16839 X"$ac_file" : 'X\(//\)[^/]' \| \
16840 X"$ac_file" : 'X\(//\)$' \| \
16841 X"$ac_file" : 'X\(/\)' \| \
16842 . : '\(.\)' 2>/dev/null ||
16844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16846 /^X\(\/\/\)$/{ s//\1/; q; }
16847 /^X\(\/\).*/{ s//\1/; q; }
16849 { if $as_mkdir_p; then
16854 while test ! -d "$as_dir"; do
16855 as_dirs
="$as_dir $as_dirs"
16856 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16857 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16858 X"$as_dir" : 'X\(//\)[^/]' \| \
16859 X"$as_dir" : 'X\(//\)$' \| \
16860 X"$as_dir" : 'X\(/\)' \| \
16861 . : '\(.\)' 2>/dev/null ||
16863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16865 /^X\(\/\/\)$/{ s//\1/; q; }
16866 /^X\(\/\).*/{ s//\1/; q; }
16869 test ! -n "$as_dirs" || mkdir
$as_dirs
16870 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16871 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16872 { (exit 1); exit 1; }; }; }
16875 mv $tmp/config.h
$ac_file
16879 rm -f $tmp/config.h
16883 cat >>$CONFIG_STATUS <<\_ACEOF
16886 # CONFIG_COMMANDS section.
16888 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
16889 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16890 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16891 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16892 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16893 X"$ac_dest" : 'X\(//\)[^/]' \| \
16894 X"$ac_dest" : 'X\(//\)$' \| \
16895 X"$ac_dest" : 'X\(/\)' \| \
16896 . : '\(.\)' 2>/dev/null ||
16898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16900 /^X\(\/\/\)$/{ s//\1/; q; }
16901 /^X\(\/\).*/{ s//\1/; q; }
16903 { if $as_mkdir_p; then
16908 while test ! -d "$as_dir"; do
16909 as_dirs
="$as_dir $as_dirs"
16910 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16912 X"$as_dir" : 'X\(//\)[^/]' \| \
16913 X"$as_dir" : 'X\(//\)$' \| \
16914 X"$as_dir" : 'X\(/\)' \| \
16915 . : '\(.\)' 2>/dev/null ||
16917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16919 /^X\(\/\/\)$/{ s//\1/; q; }
16920 /^X\(\/\).*/{ s//\1/; q; }
16923 test ! -n "$as_dirs" || mkdir
$as_dirs
16924 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16925 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16926 { (exit 1); exit 1; }; }; }
16930 if test "$ac_dir" != .
; then
16931 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16932 # A "../" for each directory in $ac_dir_suffix.
16933 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16935 ac_dir_suffix
= ac_top_builddir
=
16939 .
) # No --srcdir option. We are building in place.
16941 if test -z "$ac_top_builddir"; then
16944 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16946 [\\/]* | ?
:[\\/]* ) # Absolute path.
16947 ac_srcdir
=$srcdir$ac_dir_suffix;
16948 ac_top_srcdir
=$srcdir ;;
16949 *) # Relative path.
16950 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16951 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16954 # Do not use `cd foo && pwd` to compute absolute paths, because
16955 # the directories may not exist.
16957 .
) ac_abs_builddir
="$ac_dir";;
16960 .
) ac_abs_builddir
=`pwd`;;
16961 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16962 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16965 case $ac_abs_builddir in
16966 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16968 case ${ac_top_builddir}.
in
16969 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16970 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16971 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16974 case $ac_abs_builddir in
16975 .
) ac_abs_srcdir
=$ac_srcdir;;
16978 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16979 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16980 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16983 case $ac_abs_builddir in
16984 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16986 case $ac_top_srcdir in
16987 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16988 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16989 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16994 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16995 echo "$as_me: executing $ac_dest commands" >&6;}
16998 case ${CONFIG_HEADERS} in
16999 *auto-host.h
:config.
in*)
17002 # Make sure all the subdirs exist.
17003 for d
in $subdirs doc build
17005 test -d $d || mkdir
$d
17007 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17008 # bootstrapping and the installation procedure can still use
17009 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17010 # FLAGS_TO_PASS has been modified to solve the problem there.
17011 # This is virtually a duplicate of what happens in configure.lang; we do
17012 # an extra check to make sure this only happens if ln -s can be used.
17015 for d
in ${subdirs} ; do
17016 STARTDIR
=`${PWDCMD-pwd}`
17018 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17021 $LN_S ..
/$t $t 2>/dev
/null
17032 cat >>$CONFIG_STATUS <<\_ACEOF
17034 { (exit 0); exit 0; }
17036 chmod +x
$CONFIG_STATUS
17037 ac_clean_files
=$ac_clean_files_save
17040 # configure is writing to config.log, and then calls config.status.
17041 # config.status does its own redirection, appending to config.log.
17042 # Unfortunately, on DOS this fails, as config.log is still kept open
17043 # by configure, so config.status won't be able to write to it; its
17044 # output is simply discarded. So we exec the FD to /dev/null,
17045 # effectively closing config.log, so it can be properly (re)opened and
17046 # appended to by config.status. When coming back to configure, we
17047 # need to make the FD available again.
17048 if test "$no_create" != yes; then
17050 ac_config_status_args
=
17051 test "$silent" = yes &&
17052 ac_config_status_args
="$ac_config_status_args --quiet"
17054 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17056 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17057 # would make configure fail if this is the last instruction.
17058 $ac_cs_success ||
{ (exit 1); exit 1; }