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 gcc_version_trigger gcc_version_full gcc_version 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 PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS cc_for_cross_gnattools 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 set_gcc_lib_path 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
: assert
,fold,gc
,gcac
,misc
,
871 rtlflag
,rtl
,tree
,valgrind
,release
,yes,all
;
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler
's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don
't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --disable-rpath do not hardcode runtime library paths
890 --enable-initfini-array use .init_array/.fini_array sections
891 --enable-sjlj-exceptions
892 arrange to use setjmp/longjmp exception handling
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-gnu-ld assume the C compiler uses GNU ld default=no
925 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
926 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
927 --with-system-libunwind use installed libunwind
928 --with-gc={page
,zone
} choose the garbage collection mechanism to use
930 --with-system-zlib use installed libz
931 --with-slibdir=DIR shared libraries
in DIR LIBDIR
933 Some influential environment variables
:
934 CC C compiler
command
935 CFLAGS C compiler flags
936 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
937 nonstandard directory
<lib dir
>
938 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
939 headers
in a nonstandard directory
<include dir
>
941 GMPLIBS How to link GMP
942 GMPINC How to
find GMP include files
944 Use these variables to override the choices made by
`configure' or to help
945 it to find libraries and programs with nonstandard names/locations.
950 if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
957 if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
962 ac_dir_suffix= ac_top_builddir=
966 .) # No --srcdir option. We are building in place.
968 if test -z "$ac_top_builddir"; then
971 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
981 # Do not use `cd foo
&& pwd` to compute absolute paths, because
982 # the directories may not exist.
984 .) ac_abs_builddir="$ac_dir";;
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1021 # Check for guested configure; otherwise get Cygnus style configure.
1022 if test -f $ac_srcdir/configure.gnu; then
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
1029 test -f $ac_srcdir/configure.in; then
1031 $ac_configure --help
1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1054 It was created by $as_me, which was
1055 generated by GNU Autoconf 2.59. Invocation command line was
1066 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1067 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1068 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1069 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1070 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1072 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1073 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1075 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1076 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1077 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1078 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1079 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1080 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1081 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1089 test -z "$as_dir" && as_dir=.
1090 echo "PATH: $as_dir"
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1114 ac_must_keep_next=false
1120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1124 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1128 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1130 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131 if test $ac_must_keep_next = true; then
1132 ac_must_keep_next=false # Got value, back to normal.
1135 *=* | --config-cache | -C | -disable-* | --disable-* \
1136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138 | -with-* | --with-* | -without-* | --without-* | --x)
1139 case "$ac_configure_args0 " in
1140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1143 -* ) ac_must_keep_next=true ;;
1146 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147 # Get rid of the leading space.
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log. We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close
' the trap.
1161 trap 'exit_status
=$?
1162 # Save into config.log some information that might help in debugging.
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1172 # The following way of writing the cache mishandles newlines in values,
1175 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1178 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1195 for ac_var
in $ac_subst_vars
1197 eval ac_val
=$
`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1202 if test -n "$ac_subst_files"; then
1209 for ac_var
in $ac_subst_files
1211 eval ac_val
=$
`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1217 if test -s confdefs.h
; then
1224 sed "/^$/d" confdefs.h |
sort
1227 test "$ac_signal" != 0 &&
1228 echo "$as_me: caught signal $ac_signal"
1229 echo "$as_me: exit $exit_status"
1231 rm -f core
*.core
&&
1232 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1235 for ac_signal in 1 2 13 15; do
1236 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1245 # Predefined preprocessor variables.
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275 if test "x$prefix" != xNONE; then
1276 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281 for ac_site_file in $CONFIG_SITE; do
1282 if test -r "$ac_site_file"; then
1283 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285 sed 's
/^
/|
/' "$ac_site_file" >&5
1290 if test -r "$cache_file"; then
1291 # Some versions of bash will fail to source /dev/null (special
1292 # files actually), so we avoid doing that.
1293 if test -f "$cache_file"; then
1294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1297 [\\/]* | ?:[\\/]* ) . $cache_file;;
1298 *) . ./$cache_file;;
1302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1307 # Check that the precious variables saved in the cache have kept the same
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313 eval ac_new_set=\$ac_env_${ac_var}_set
1314 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315 eval ac_new_val="\$ac_env_${ac_var}_value"
1316 case $ac_old_set,$ac_new_set in
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1320 ac_cache_corrupted=: ;;
1322 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1327 if test "x$ac_old_val" != "x$ac_new_val"; then
1328 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1329 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1330 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1331 echo "$as_me: former value: $ac_old_val" >&2;}
1332 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1333 echo "$as_me: current value: $ac_new_val" >&2;}
1334 ac_cache_corrupted=:
1337 # Pass precious variables to config.status.
1338 if test "$ac_new_set" = set; then
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1342 *) ac_arg=$ac_var=$ac_new_val ;;
1344 case " $ac_configure_args " in
1345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1346 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1350 if $ac_cache_corrupted; then
1351 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1354 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355 { (exit 1); exit 1; }; }
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1361 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1386 #Set to 1 on a release branch
1389 # Determine the host, build, and target systems
1391 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1392 if test -f $ac_dir/install-sh; then
1394 ac_install_sh="$ac_aux_dir/install-sh -c"
1396 elif test -f $ac_dir/install.sh; then
1398 ac_install_sh="$ac_aux_dir/install.sh -c"
1400 elif test -f $ac_dir/shtool; then
1402 ac_install_sh="$ac_aux_dir/shtool install -c"
1406 if test -z "$ac_aux_dir"; then
1407 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1409 { (exit 1); exit 1; }; }
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1415 # Make sure we can run config.sub.
1416 $ac_config_sub sun4 >/dev/null 2>&1 ||
1417 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1418 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1419 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: checking build system type" >&5
1422 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1423 if test "${ac_cv_build+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 ac_cv_build_alias=$build_alias
1427 test -z "$ac_cv_build_alias" &&
1428 ac_cv_build_alias=`$ac_config_guess`
1429 test -z "$ac_cv_build_alias" &&
1430 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1431 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1432 { (exit 1); exit 1; }; }
1433 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1434 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1436 { (exit 1); exit 1; }; }
1439 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1440 echo "${ECHO_T}$ac_cv_build" >&6
1442 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1443 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1444 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1447 echo "$as_me:$LINENO: checking host system type" >&5
1448 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1449 if test "${ac_cv_host+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 ac_cv_host_alias=$host_alias
1453 test -z "$ac_cv_host_alias" &&
1454 ac_cv_host_alias=$ac_cv_build_alias
1455 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1458 { (exit 1); exit 1; }; }
1461 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1462 echo "${ECHO_T}$ac_cv_host" >&6
1464 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1465 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1466 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1469 echo "$as_me:$LINENO: checking target system type" >&5
1470 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1471 if test "${ac_cv_target+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 ac_cv_target_alias=$target_alias
1475 test "x$ac_cv_target_alias" = "x" &&
1476 ac_cv_target_alias=$ac_cv_host_alias
1477 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1478 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1479 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1480 { (exit 1); exit 1; }; }
1483 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1484 echo "${ECHO_T}$ac_cv_target" >&6
1485 target=$ac_cv_target
1486 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1487 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1488 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1491 # The aliases save the names the user supplied, while $host etc.
1492 # will get canonicalized.
1493 test -n "$target_alias" &&
1494 test "$program_prefix$program_suffix$program_transform_name" = \
1496 program_prefix=${target_alias}-
1498 # Determine the noncanonical target name, for directory use.
1499 case ${build_alias} in
1500 "") build_noncanonical=${build} ;;
1501 *) build_noncanonical=${build_alias} ;;
1504 case ${host_alias} in
1505 "") host_noncanonical=${build_noncanonical} ;;
1506 *) host_noncanonical=${host_alias} ;;
1509 case ${target_alias} in
1510 "") target_noncanonical=${host_noncanonical} ;;
1511 *) target_noncanonical=${target_alias} ;;
1517 # Determine the target- and build-specific subdirectories
1518 # Prefix 'build-
' so this never conflicts with target_subdir.
1519 build_subdir="build-${build_noncanonical}"
1520 # Not really a subdirectory, but here for completeness.
1523 target_subdir=${target_noncanonical}
1526 # Set program_transform_name
1527 test "$program_prefix" != NONE &&
1528 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1529 # Use a double $ so make ignores it.
1530 test "$program_suffix" != NONE &&
1531 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1532 # Double any \ or $. echo might interpret backslashes.
1533 # By default was `s,x,x', remove it
if useless.
1534 cat <<\_ACEOF
>conftest.
sed
1535 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1537 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1541 # Check for bogus environment variables.
1542 # Test if LIBRARY_PATH contains the notation for the current directory
1543 # since this would lead to problems installing/building glibc.
1544 # LIBRARY_PATH contains the current directory if one of the following
1546 # - one of the terminals (":" and ";") is the first or last sign
1547 # - two terminals occur directly after each other
1548 # - the path contains an element with a dot in it
1549 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1550 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1551 case ${LIBRARY_PATH} in
1552 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1553 library_path_setting
="contains current directory"
1556 library_path_setting
="ok"
1559 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1560 echo "${ECHO_T}$library_path_setting" >&6
1561 if test "$library_path_setting" != "ok"; then
1562 { { echo "$as_me:$LINENO: error:
1563 *** LIBRARY_PATH shouldn't contain the current directory when
1564 *** building gcc. Please change the environment variable
1565 *** and run configure again." >&5
1566 echo "$as_me: error:
1567 *** LIBRARY_PATH shouldn't contain the current directory when
1568 *** building gcc. Please change the environment variable
1569 *** and run configure again." >&2;}
1570 { (exit 1); exit 1; }; }
1573 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1574 # since this would lead to problems installing/building glibc.
1575 # GCC_EXEC_PREFIX contains the current directory if one of the following
1577 # - one of the terminals (":" and ";") is the first or last sign
1578 # - two terminals occur directly after each other
1579 # - the path contains an element with a dot in it
1580 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1581 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1582 case ${GCC_EXEC_PREFIX} in
1583 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1584 gcc_exec_prefix_setting
="contains current directory"
1587 gcc_exec_prefix_setting
="ok"
1590 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1591 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1592 if test "$gcc_exec_prefix_setting" != "ok"; then
1593 { { echo "$as_me:$LINENO: error:
1594 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1595 *** building gcc. Please change the environment variable
1596 *** and run configure again." >&5
1597 echo "$as_me: 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." >&2;}
1601 { (exit 1); exit 1; }; }
1605 if test "${with_gcc_version_trigger+set}" = set; then
1606 gcc_version_trigger
=$with_gcc_version_trigger
1608 gcc_version_trigger
=$srcdir/..
/gcc
/version.c
1610 if test -f "${gcc_version_trigger}"; then
1611 gcc_version_full
=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
1613 gcc_version_full
=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
1615 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
1625 # Specify the local prefix
1628 # Check whether --with-local-prefix or --without-local-prefix was given.
1629 if test "${with_local_prefix+set}" = set; then
1630 withval
="$with_local_prefix"
1631 case "${withval}" in
1632 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1633 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1634 { (exit 1); exit 1; }; } ;;
1636 *) local_prefix
=$with_local_prefix ;;
1640 # Default local prefix if it is empty
1641 if test x
$local_prefix = x
; then
1642 local_prefix
=/usr
/local
1645 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1646 # passed in by the toplevel make and thus we'd get different behavior
1647 # depending on where we built the sources.
1648 gcc_gxx_include_dir
=
1649 # Specify the g++ header file directory
1651 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1652 if test "${with_gxx_include_dir+set}" = set; then
1653 withval
="$with_gxx_include_dir"
1654 case "${withval}" in
1655 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1656 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1657 { (exit 1); exit 1; }; } ;;
1659 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1663 if test x
${gcc_gxx_include_dir} = x
; then
1664 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1665 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1667 libstdcxx_incdir
=c
++/${gcc_version}
1668 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1673 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1674 if test "${with_cpp_install_dir+set}" = set; then
1675 withval
="$with_cpp_install_dir"
1676 if test x
$withval = xyes
; then
1677 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1678 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1679 { (exit 1); exit 1; }; }
1680 elif test x
$withval != xno
; then
1681 cpp_install_dir
=$withval
1685 # We would like to our source tree to be readonly. However when releases or
1686 # pre-releases are generated, the flex/bison generated files as well as the
1687 # various formats of manuals need to be included along with the rest of the
1688 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1691 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1692 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1693 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1694 if test "${enable_generated_files_in_srcdir+set}" = set; then
1695 enableval
="$enable_generated_files_in_srcdir"
1696 generated_files_in_srcdir
=$enableval
1698 generated_files_in_srcdir
=no
1701 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1702 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1704 if test "$generated_files_in_srcdir" = "yes"; then
1711 # -------------------
1712 # Find default linker
1713 # -------------------
1717 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1718 if test "${with_gnu_ld+set}" = set; then
1719 withval
="$with_gnu_ld"
1720 gnu_ld_flag
="$with_gnu_ld"
1725 # With pre-defined ld
1727 # Check whether --with-ld or --without-ld was given.
1728 if test "${with_ld+set}" = set; then
1730 DEFAULT_LINKER
="$with_ld"
1732 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1733 if test ! -x "$DEFAULT_LINKER"; then
1734 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1735 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1736 { (exit 1); exit 1; }; }
1737 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1741 cat >>confdefs.h
<<_ACEOF
1742 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1747 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1748 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1749 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1750 if test x
"$gnu_ld_flag" = x
"no"; then
1751 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1752 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1754 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1755 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1762 # With demangler in GNU ld
1764 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1765 if test "${with_demangler_in_ld+set}" = set; then
1766 withval
="$with_demangler_in_ld"
1767 demangler_in_ld
="$with_demangler_in_ld"
1772 # ----------------------
1773 # Find default assembler
1774 # ----------------------
1778 # Check whether --with-gnu-as or --without-gnu-as was given.
1779 if test "${with_gnu_as+set}" = set; then
1780 withval
="$with_gnu_as"
1781 gas_flag
="$with_gnu_as"
1787 # Check whether --with-as or --without-as was given.
1788 if test "${with_as+set}" = set; then
1790 DEFAULT_ASSEMBLER
="$with_as"
1792 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1793 if test ! -x "$DEFAULT_ASSEMBLER"; then
1794 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1795 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1796 { (exit 1); exit 1; }; }
1797 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1801 cat >>confdefs.h
<<_ACEOF
1802 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1807 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1808 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1809 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1810 if test x
"$gas_flag" = x
"no"; then
1811 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1812 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1814 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1815 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1826 # If a non-executable a.out is present (e.g. created by GNU as above even if
1827 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1828 # file, even when creating an executable, so an execution test fails.
1829 # Remove possible default executable files to avoid this.
1831 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1832 # Autoconf includes it.
1833 rm -f a.out a.exe b.out
1835 # Find the native compiler
1837 ac_cpp
='$CPP $CPPFLAGS'
1838 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1843 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_CC+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC
="$CC" # Let the user override the test.
1852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1856 test -z "$as_dir" && as_dir
=.
1857 for ac_exec_ext
in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 if test -n "$CC"; then
1870 echo "$as_me:$LINENO: result: $CC" >&5
1871 echo "${ECHO_T}$CC" >&6
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1878 if test -z "$ac_cv_prog_CC"; then
1880 # Extract the first word of "gcc", so it can be a program name with args.
1881 set dummy gcc
; ac_word
=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$ac_ct_CC"; then
1888 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir
=.
1895 for ac_exec_ext
in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_ac_ct_CC
="gcc"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1907 if test -n "$ac_ct_CC"; then
1908 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1909 echo "${ECHO_T}$ac_ct_CC" >&6
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1920 if test -z "$CC"; then
1921 if test -n "$ac_tool_prefix"; then
1922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1923 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_CC+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 if test -n "$CC"; then
1930 ac_cv_prog_CC
="$CC" # Let the user override the test.
1932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1936 test -z "$as_dir" && as_dir
=.
1937 for ac_exec_ext
in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 if test -n "$CC"; then
1950 echo "$as_me:$LINENO: result: $CC" >&5
1951 echo "${ECHO_T}$CC" >&6
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1958 if test -z "$ac_cv_prog_CC"; then
1960 # Extract the first word of "cc", so it can be a program name with args.
1961 set dummy cc
; ac_word
=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 if test -n "$ac_ct_CC"; then
1968 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1974 test -z "$as_dir" && as_dir
=.
1975 for ac_exec_ext
in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_ac_ct_CC
="cc"
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1987 if test -n "$ac_ct_CC"; then
1988 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1989 echo "${ECHO_T}$ac_ct_CC" >&6
1991 echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
2001 if test -z "$CC"; then
2002 # Extract the first word of "cc", so it can be a program name with args.
2003 set dummy cc
; ac_word
=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC
="$CC" # Let the user override the test.
2013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir
=.
2018 for ac_exec_ext
in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2021 ac_prog_rejected
=yes
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 if test $ac_prog_rejected = yes; then
2032 # We found a bogon in the path, so make sure we never use it.
2033 set dummy
$ac_cv_prog_CC
2035 if test $# != 0; then
2036 # We chose a different compiler from the bogus one.
2037 # However, it has the same basename, so the bogon will be chosen
2038 # first if we set CC to just the basename; use the full file name.
2040 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2046 if test -n "$CC"; then
2047 echo "$as_me:$LINENO: result: $CC" >&5
2048 echo "${ECHO_T}$CC" >&6
2050 echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6
2055 if test -z "$CC"; then
2056 if test -n "$ac_tool_prefix"; then
2059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2060 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2061 echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_CC+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test -n "$CC"; then
2067 ac_cv_prog_CC
="$CC" # Let the user override the test.
2069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2073 test -z "$as_dir" && as_dir
=.
2074 for ac_exec_ext
in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 if test -n "$CC"; then
2087 echo "$as_me:$LINENO: result: $CC" >&5
2088 echo "${ECHO_T}$CC" >&6
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2094 test -n "$CC" && break
2097 if test -z "$CC"; then
2101 # Extract the first word of "$ac_prog", so it can be a program name with args.
2102 set dummy
$ac_prog; ac_word
=$2
2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 if test -n "$ac_ct_CC"; then
2109 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2115 test -z "$as_dir" && as_dir
=.
2116 for ac_exec_ext
in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 ac_cv_prog_ac_ct_CC
="$ac_prog"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2128 if test -n "$ac_ct_CC"; then
2129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2130 echo "${ECHO_T}$ac_ct_CC" >&6
2132 echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6
2136 test -n "$ac_ct_CC" && break
2145 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2146 See \`config.log' for more details." >&5
2147 echo "$as_me: error: no acceptable C compiler found in \$PATH
2148 See \`config.log' for more details." >&2;}
2149 { (exit 1); exit 1; }; }
2151 # Provide some information about the compiler.
2152 echo "$as_me:$LINENO:" \
2153 "checking for C compiler version" >&5
2154 ac_compiler
=`set X $ac_compile; echo $2`
2155 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2156 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }
2160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2161 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2165 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2166 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }
2171 cat >conftest.
$ac_ext <<_ACEOF
2174 cat confdefs.h
>>conftest.
$ac_ext
2175 cat >>conftest.
$ac_ext <<_ACEOF
2176 /* end confdefs.h. */
2186 ac_clean_files_save
=$ac_clean_files
2187 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2188 # Try to create an executable without -o first, disregard a.out.
2189 # It will help us diagnose broken compilers, and finding out an intuition
2191 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2192 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2193 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2194 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2195 (eval $ac_link_default) 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 # Find the output, starting from the most likely. This scheme is
2200 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2203 # Be careful to initialize this variable, since it used to be cached.
2204 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2206 # b.out is created by i960 compilers.
2207 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2209 test -f "$ac_file" ||
continue
2211 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2214 # This is the source file.
2217 # We found the default executable, but exeext='' is most
2221 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2222 # FIXME: I believe we export ac_cv_exeext for Libtool,
2223 # but it would be cool to find out if it's true. Does anybody
2224 # maintain Libtool? --akim.
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.
$ac_ext >&5
2235 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&2;}
2239 { (exit 77); exit 77; }; }
2242 ac_exeext
=$ac_cv_exeext
2243 echo "$as_me:$LINENO: result: $ac_file" >&5
2244 echo "${ECHO_T}$ac_file" >&6
2246 # Check the compiler produces executables we can run. If not, either
2247 # the compiler is broken, or we cross compile.
2248 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2249 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2250 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2251 # If not cross compiling, check that we can run a simple program.
2252 if test "$cross_compiling" != yes; then
2253 if { ac_try
='./$ac_file'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2261 if test "$cross_compiling" = maybe
; then
2264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2274 echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6
2277 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2278 ac_clean_files
=$ac_clean_files_save
2279 # Check the compiler produces executables we can run. If not, either
2280 # the compiler is broken, or we cross compile.
2281 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2283 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6
2286 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2289 (eval $ac_link) 2>&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; then
2293 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2294 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2295 # work properly (i.e., refer to `conftest.exe'), while it won't with
2297 for ac_file
in conftest.exe conftest conftest.
*; do
2298 test -f "$ac_file" ||
continue
2300 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2301 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2308 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2309 See \`config.log' for more details." >&5
2310 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2311 See \`config.log' for more details." >&2;}
2312 { (exit 1); exit 1; }; }
2315 rm -f conftest
$ac_cv_exeext
2316 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2317 echo "${ECHO_T}$ac_cv_exeext" >&6
2319 rm -f conftest.
$ac_ext
2320 EXEEXT
=$ac_cv_exeext
2322 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2323 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2324 if test "${ac_cv_objext+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 cat >conftest.
$ac_ext <<_ACEOF
2330 cat confdefs.h
>>conftest.
$ac_ext
2331 cat >>conftest.
$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2342 rm -f conftest.o conftest.obj
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; then
2348 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2350 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2351 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.
$ac_ext >&5
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details." >&2;}
2363 { (exit 1); exit 1; }; }
2366 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2368 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369 echo "${ECHO_T}$ac_cv_objext" >&6
2370 OBJEXT
=$ac_cv_objext
2372 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 cat >conftest.
$ac_ext <<_ACEOF
2380 cat confdefs.h
>>conftest.
$ac_ext
2381 cat >>conftest.
$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2395 rm -f conftest.
$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397 (eval $ac_compile) 2>conftest.er1
2399 grep -v '^ *+' conftest.er1
>conftest.err
2401 cat conftest.err
>&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try
='test -z "$ac_c_werror_flag"
2405 || test ! -s conftest.err'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try
='test -s conftest.$ac_objext'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.
$ac_ext >&5
2424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2425 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2428 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2430 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS
=${CFLAGS+set}
2432 ac_save_CFLAGS
=$CFLAGS
2434 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2435 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2436 if test "${ac_cv_prog_cc_g+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 cat >conftest.
$ac_ext <<_ACEOF
2442 cat confdefs.h
>>conftest.
$ac_ext
2443 cat >>conftest.
$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2454 rm -f conftest.
$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2458 grep -v '^ *+' conftest.er1
>conftest.err
2460 cat conftest.err
>&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try
='test -z "$ac_c_werror_flag"
2464 || test ! -s conftest.err'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try
='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2478 echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.
$ac_ext >&5
2483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2485 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2486 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2487 if test "$ac_test_CFLAGS" = set; then
2488 CFLAGS
=$ac_save_CFLAGS
2489 elif test $ac_cv_prog_cc_g = yes; then
2490 if test "$GCC" = yes; then
2496 if test "$GCC" = yes; then
2502 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2503 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 ac_cv_prog_cc_stdc
=no
2509 cat >conftest.
$ac_ext <<_ACEOF
2512 cat confdefs.h
>>conftest.
$ac_ext
2513 cat >>conftest.
$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2517 #include <sys/types.h>
2518 #include <sys/stat.h>
2519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2520 struct buf { int x; };
2521 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2522 static char *e (p, i)
2528 static char *f (char * (*g) (char **, int), char **p, ...)
2533 s = g (p, va_arg (v,int));
2538 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2539 function prototypes and stuff, but not '\xHH' hex character constants.
2540 These don't provoke an error unfortunately, instead are silently treated
2541 as 'x'. The following induces an error, until -std1 is added to get
2542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2543 array size at least. It's necessary to write '\x00'==0 to get something
2544 that's true only with -std1. */
2545 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2547 int test (int i, double x);
2548 struct s1 {int (*f) (int a);};
2549 struct s2 {int (*f) (double a);};
2550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2556 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2561 # Don't try gcc -ansi; that turns off useful extensions and
2562 # breaks some systems' header files.
2563 # AIX -qlanglvl=ansi
2564 # Ultrix and OSF/1 -std1
2565 # HP-UX 10.20 and later -Ae
2566 # HP-UX older versions -Aa -D_HPUX_SOURCE
2567 # SVR4 -Xc -D__EXTENSIONS__
2568 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2570 CC
="$ac_save_CC $ac_arg"
2571 rm -f conftest.
$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 (eval $ac_compile) 2>conftest.er1
2575 grep -v '^ *+' conftest.er1
>conftest.err
2577 cat conftest.err
>&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try
='test -z "$ac_c_werror_flag"
2581 || test ! -s conftest.err'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try
='test -s conftest.$ac_objext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 ac_cv_prog_cc_stdc
=$ac_arg
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.
$ac_ext >&5
2600 rm -f conftest.err conftest.
$ac_objext
2602 rm -f conftest.
$ac_ext conftest.
$ac_objext
2607 case "x$ac_cv_prog_cc_stdc" in
2609 echo "$as_me:$LINENO: result: none needed" >&5
2610 echo "${ECHO_T}none needed" >&6 ;;
2612 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2613 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2614 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2617 # Some people use a C++ compiler to compile C. Since we use `exit',
2618 # in C++ we need to declare it. In case someone uses the same compiler
2619 # for both compiling C and C++ we need to have the C++ compiler decide
2620 # the declaration of exit, since it's the most demanding environment.
2621 cat >conftest.
$ac_ext <<_ACEOF
2626 rm -f conftest.
$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>conftest.er1
2630 grep -v '^ *+' conftest.er1
>conftest.err
2632 cat conftest.err
>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try
='test -z "$ac_c_werror_flag"
2636 || test ! -s conftest.err'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; } &&
2642 { ac_try
='test -s conftest.$ac_objext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 for ac_declaration
in \
2650 'extern "C" void std::exit (int) throw (); using std::exit;' \
2651 'extern "C" void std::exit (int); using std::exit;' \
2652 'extern "C" void exit (int) throw ();' \
2653 'extern "C" void exit (int);' \
2656 cat >conftest.
$ac_ext <<_ACEOF
2659 cat confdefs.h
>>conftest.
$ac_ext
2660 cat >>conftest.
$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2672 rm -f conftest.
$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>conftest.er1
2676 grep -v '^ *+' conftest.er1
>conftest.err
2678 cat conftest.err
>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try
='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try
='test -s conftest.$ac_objext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.
$ac_ext >&5
2701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2702 cat >conftest.
$ac_ext <<_ACEOF
2705 cat confdefs.h
>>conftest.
$ac_ext
2706 cat >>conftest.
$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2717 rm -f conftest.
$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2721 grep -v '^ *+' conftest.er1
>conftest.err
2723 cat conftest.err
>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try
='test -z "$ac_c_werror_flag"
2727 || test ! -s conftest.err'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try
='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.
$ac_ext >&5
2745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2748 if test -n "$ac_declaration"; then
2749 echo '#ifdef __cplusplus' >>confdefs.h
2750 echo $ac_declaration >>confdefs.h
2751 echo '#endif' >>confdefs.h
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.
$ac_ext >&5
2759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2761 ac_cpp
='$CPP $CPPFLAGS'
2762 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2766 if test "x$CC" != xcc
; then
2767 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2768 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2770 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2771 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2773 set dummy
$CC; ac_cc
=`echo $2 |
2774 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2775 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 cat >conftest.
$ac_ext <<_ACEOF
2781 cat confdefs.h
>>conftest.
$ac_ext
2782 cat >>conftest.
$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2793 # Make sure it works both with $CC and with simple cc.
2794 # We do the test twice because some compilers refuse to overwrite an
2795 # existing .o file with -o, though they will create one.
2796 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2797 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); };
2808 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2809 if test "x$CC" != xcc
; then
2810 # Test first that cc exists at all.
2811 if { ac_try
='cc -c conftest.$ac_ext >&5'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2817 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2818 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); };
2832 # cc exists but doesn't like -o.
2833 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2838 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2843 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2844 echo "$as_me:$LINENO: result: yes" >&5
2845 echo "${ECHO_T}yes" >&6
2847 echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2850 cat >>confdefs.h
<<\_ACEOF
2851 #define NO_MINUS_C_MINUS_O 1
2856 # expand $ac_aux_dir to an absolute path
2857 am_aux_dir
=`cd $ac_aux_dir && pwd`
2859 # FIXME: we rely on the cache variable name because
2860 # there is no other way.
2862 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2863 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2864 # Losing compiler, so override with the script.
2865 # FIXME: It is wrong to rewrite CC.
2866 # But if we don't then we get into trouble of one sort or another.
2867 # A longer-term fix would be to have automake use am__CC in this case,
2868 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2869 CC
="$am_aux_dir/compile $CC"
2872 # autoconf is lame and doesn't give us any substitution variable for this.
2873 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2874 NO_MINUS_C_MINUS_O
=yes
2876 OUTPUT_OPTION
='-o $@'
2881 # -------------------------
2882 # Check C compiler features
2883 # -------------------------
2886 ac_cpp
='$CPP $CPPFLAGS'
2887 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2890 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2891 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2892 # On Suns, sometimes $CPP names a directory.
2893 if test -n "$CPP" && test -d "$CPP"; then
2896 if test -z "$CPP"; then
2897 if test "${ac_cv_prog_CPP+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 # Double quotes because CPP needs to be expanded
2901 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2904 for ac_c_preproc_warn_flag
in '' yes
2906 # Use a header file that comes with gcc, so configuring glibc
2907 # with a fresh cross-compiler works.
2908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2909 # <limits.h> exists even on freestanding compilers.
2910 # On the NeXT, cc -E runs the code through the compiler's parser,
2911 # not just through cpp. "Syntax error" is here to catch this case.
2912 cat >conftest.
$ac_ext <<_ACEOF
2915 cat confdefs.h
>>conftest.
$ac_ext
2916 cat >>conftest.
$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2919 # include <limits.h>
2921 # include <assert.h>
2925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2926 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2928 grep -v '^ *+' conftest.er1
>conftest.err
2930 cat conftest.err
>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } >/dev
/null
; then
2933 if test -s conftest.err
; then
2934 ac_cpp_err
=$ac_c_preproc_warn_flag
2935 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2942 if test -z "$ac_cpp_err"; then
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.
$ac_ext >&5
2948 # Broken: fails on valid input.
2951 rm -f conftest.err conftest.
$ac_ext
2953 # OK, works on sane cases. Now check whether non-existent headers
2954 # can be detected and how.
2955 cat >conftest.
$ac_ext <<_ACEOF
2958 cat confdefs.h
>>conftest.
$ac_ext
2959 cat >>conftest.
$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2961 #include <ac_nonexistent.h>
2963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2966 grep -v '^ *+' conftest.er1
>conftest.err
2968 cat conftest.err
>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } >/dev
/null
; then
2971 if test -s conftest.err
; then
2972 ac_cpp_err
=$ac_c_preproc_warn_flag
2973 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2980 if test -z "$ac_cpp_err"; then
2981 # Broken: success on invalid input.
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.
$ac_ext >&5
2987 # Passes both tests.
2991 rm -f conftest.err conftest.
$ac_ext
2994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2995 rm -f conftest.err conftest.
$ac_ext
2996 if $ac_preproc_ok; then
3008 echo "$as_me:$LINENO: result: $CPP" >&5
3009 echo "${ECHO_T}$CPP" >&6
3011 for ac_c_preproc_warn_flag
in '' yes
3013 # Use a header file that comes with gcc, so configuring glibc
3014 # with a fresh cross-compiler works.
3015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3016 # <limits.h> exists even on freestanding compilers.
3017 # On the NeXT, cc -E runs the code through the compiler's parser,
3018 # not just through cpp. "Syntax error" is here to catch this case.
3019 cat >conftest.
$ac_ext <<_ACEOF
3022 cat confdefs.h
>>conftest.
$ac_ext
3023 cat >>conftest.
$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3026 # include <limits.h>
3028 # include <assert.h>
3032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3033 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3035 grep -v '^ *+' conftest.er1
>conftest.err
3037 cat conftest.err
>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } >/dev
/null
; then
3040 if test -s conftest.err
; then
3041 ac_cpp_err
=$ac_c_preproc_warn_flag
3042 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3049 if test -z "$ac_cpp_err"; then
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.
$ac_ext >&5
3055 # Broken: fails on valid input.
3058 rm -f conftest.err conftest.
$ac_ext
3060 # OK, works on sane cases. Now check whether non-existent headers
3061 # can be detected and how.
3062 cat >conftest.
$ac_ext <<_ACEOF
3065 cat confdefs.h
>>conftest.
$ac_ext
3066 cat >>conftest.
$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3068 #include <ac_nonexistent.h>
3070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3071 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3073 grep -v '^ *+' conftest.er1
>conftest.err
3075 cat conftest.err
>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } >/dev
/null
; then
3078 if test -s conftest.err
; then
3079 ac_cpp_err
=$ac_c_preproc_warn_flag
3080 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3087 if test -z "$ac_cpp_err"; then
3088 # Broken: success on invalid input.
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.
$ac_ext >&5
3094 # Passes both tests.
3098 rm -f conftest.err conftest.
$ac_ext
3101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3102 rm -f conftest.err conftest.
$ac_ext
3103 if $ac_preproc_ok; then
3106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3107 See \`config.log' for more details." >&5
3108 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3109 See \`config.log' for more details." >&2;}
3110 { (exit 1); exit 1; }; }
3114 ac_cpp
='$CPP $CPPFLAGS'
3115 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3120 echo "$as_me:$LINENO: checking for inline" >&5
3121 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3122 if test "${ac_cv_c_inline+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 for ac_kw
in inline __inline__ __inline
; do
3127 cat >conftest.
$ac_ext <<_ACEOF
3130 cat confdefs.h
>>conftest.
$ac_ext
3131 cat >>conftest.
$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3135 static $ac_kw foo_t static_foo () {return 0; }
3136 $ac_kw foo_t foo () {return 0; }
3140 rm -f conftest.
$ac_objext
3141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142 (eval $ac_compile) 2>conftest.er1
3144 grep -v '^ *+' conftest.er1
>conftest.err
3146 cat conftest.err
>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try
='test -z "$ac_c_werror_flag"
3150 || test ! -s conftest.err'
3151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try
='test -s conftest.$ac_objext'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 ac_cv_c_inline
=$ac_kw; break
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.
$ac_ext >&5
3168 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3172 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3173 echo "${ECHO_T}$ac_cv_c_inline" >&6
3176 case $ac_cv_c_inline in
3179 case $ac_cv_c_inline in
3181 *) ac_val
=$ac_cv_c_inline;;
3183 cat >>confdefs.h
<<_ACEOF
3185 #define inline $ac_val
3192 echo "$as_me:$LINENO: checking for long long int" >&5
3193 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3194 if test "${ac_cv_c_long_long+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 cat >conftest.
$ac_ext <<_ACEOF
3200 cat confdefs.h
>>conftest.
$ac_ext
3201 cat >>conftest.
$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3212 rm -f conftest.
$ac_objext
3213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3214 (eval $ac_compile) 2>conftest.er1
3216 grep -v '^ *+' conftest.er1
>conftest.err
3218 cat conftest.err
>&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } &&
3221 { ac_try
='test -z "$ac_c_werror_flag"
3222 || test ! -s conftest.err'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; } &&
3228 { ac_try
='test -s conftest.$ac_objext'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3234 ac_cv_c_long_long
=yes
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.
$ac_ext >&5
3239 ac_cv_c_long_long
=no
3241 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3243 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3244 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3245 if test $ac_cv_c_long_long = yes; then
3247 cat >>confdefs.h
<<\_ACEOF
3248 #define HAVE_LONG_LONG 1
3252 echo "$as_me:$LINENO: checking for __int64" >&5
3253 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3254 if test "${ac_cv_c___int64+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 cat >conftest.
$ac_ext <<_ACEOF
3260 cat confdefs.h
>>conftest.
$ac_ext
3261 cat >>conftest.
$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3272 rm -f conftest.
$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>conftest.er1
3276 grep -v '^ *+' conftest.er1
>conftest.err
3278 cat conftest.err
>&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try
='test -z "$ac_c_werror_flag"
3282 || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try
='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.
$ac_ext >&5
3301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3303 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3304 echo "${ECHO_T}$ac_cv_c___int64" >&6
3305 if test $ac_cv_c___int64 = yes; then
3307 cat >>confdefs.h
<<\_ACEOF
3308 #define HAVE___INT64 1
3314 # sizeof(char) is 1 by definition.
3316 echo "$as_me:$LINENO: checking for egrep" >&5
3317 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3318 if test "${ac_cv_prog_egrep+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3322 then ac_cv_prog_egrep
='grep -E'
3323 else ac_cv_prog_egrep
='egrep'
3326 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3327 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3328 EGREP
=$ac_cv_prog_egrep
3331 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3332 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3333 if test "${ac_cv_header_stdc+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 cat >conftest.
$ac_ext <<_ACEOF
3339 cat confdefs.h
>>conftest.
$ac_ext
3340 cat >>conftest.
$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3355 rm -f conftest.
$ac_objext
3356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357 (eval $ac_compile) 2>conftest.er1
3359 grep -v '^ *+' conftest.er1
>conftest.err
3361 cat conftest.err
>&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try
='test -z "$ac_c_werror_flag"
3365 || test ! -s conftest.err'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; } &&
3371 { ac_try
='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_header_stdc
=yes
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.
$ac_ext >&5
3382 ac_cv_header_stdc
=no
3384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3386 if test $ac_cv_header_stdc = yes; then
3387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3388 cat >conftest.
$ac_ext <<_ACEOF
3391 cat confdefs.h
>>conftest.
$ac_ext
3392 cat >>conftest.
$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398 $EGREP "memchr" >/dev
/null
2>&1; then
3401 ac_cv_header_stdc
=no
3407 if test $ac_cv_header_stdc = yes; then
3408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3409 cat >conftest.
$ac_ext <<_ACEOF
3412 cat confdefs.h
>>conftest.
$ac_ext
3413 cat >>conftest.
$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419 $EGREP "free" >/dev
/null
2>&1; then
3422 ac_cv_header_stdc
=no
3428 if test $ac_cv_header_stdc = yes; then
3429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3430 if test "$cross_compiling" = yes; then
3433 cat >conftest.
$ac_ext <<_ACEOF
3436 cat confdefs.h
>>conftest.
$ac_ext
3437 cat >>conftest.
$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3440 #if ((' ' & 0x0FF) == 0x020)
3441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3444 # define ISLOWER(c) \
3445 (('a' <= (c) && (c) <= 'i') \
3446 || ('j' <= (c) && (c) <= 'r') \
3447 || ('s' <= (c) && (c) <= 'z'))
3448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3456 for (i = 0; i < 256; i++)
3457 if (XOR (islower (i), ISLOWER (i))
3458 || toupper (i) != TOUPPER (i))
3463 rm -f conftest
$ac_exeext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3465 (eval $ac_link) 2>&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3476 echo "$as_me: program exited with status $ac_status" >&5
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.
$ac_ext >&5
3481 ac_cv_header_stdc
=no
3483 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3488 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3489 if test $ac_cv_header_stdc = yes; then
3491 cat >>confdefs.h
<<\_ACEOF
3492 #define STDC_HEADERS 1
3497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3507 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3508 inttypes.h stdint.h unistd.h
3510 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3511 echo "$as_me:$LINENO: checking for $ac_header" >&5
3512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 cat >conftest.
$ac_ext <<_ACEOF
3519 cat confdefs.h
>>conftest.
$ac_ext
3520 cat >>conftest.
$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3522 $ac_includes_default
3524 #include <$ac_header>
3526 rm -f conftest.
$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>conftest.er1
3530 grep -v '^ *+' conftest.er1
>conftest.err
3532 cat conftest.err
>&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try
='test -z "$ac_c_werror_flag"
3536 || test ! -s conftest.err'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } &&
3542 { ac_try
='test -s conftest.$ac_objext'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 eval "$as_ac_Header=yes"
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.
$ac_ext >&5
3553 eval "$as_ac_Header=no"
3555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3560 cat >>confdefs.h
<<_ACEOF
3561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3569 echo "$as_me:$LINENO: checking for void *" >&5
3570 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3571 if test "${ac_cv_type_void_p+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 cat >conftest.
$ac_ext <<_ACEOF
3577 cat confdefs.h
>>conftest.
$ac_ext
3578 cat >>conftest.
$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3580 $ac_includes_default
3586 if (sizeof (void *))
3592 rm -f conftest.
$ac_objext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
3596 grep -v '^ *+' conftest.er1
>conftest.err
3598 cat conftest.err
>&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try
='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try
='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3614 ac_cv_type_void_p
=yes
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.
$ac_ext >&5
3619 ac_cv_type_void_p
=no
3621 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3623 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3624 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3626 echo "$as_me:$LINENO: checking size of void *" >&5
3627 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3628 if test "${ac_cv_sizeof_void_p+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 if test "$ac_cv_type_void_p" = yes; then
3632 # The cast to unsigned long works around a bug in the HP C Compiler
3633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3635 # This bug is HP SR number 8606223364.
3636 if test "$cross_compiling" = yes; then
3637 # Depending upon the size, compute the lo and hi bounds.
3638 cat >conftest.
$ac_ext <<_ACEOF
3641 cat confdefs.h
>>conftest.
$ac_ext
3642 cat >>conftest.
$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644 $ac_includes_default
3648 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3655 rm -f conftest.
$ac_objext
3656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>conftest.er1
3659 grep -v '^ *+' conftest.er1
>conftest.err
3661 cat conftest.err
>&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try
='test -z "$ac_c_werror_flag"
3665 || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try
='test -s conftest.$ac_objext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3679 cat >conftest.
$ac_ext <<_ACEOF
3682 cat confdefs.h
>>conftest.
$ac_ext
3683 cat >>conftest.
$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3685 $ac_includes_default
3689 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3696 rm -f conftest.
$ac_objext
3697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3698 (eval $ac_compile) 2>conftest.er1
3700 grep -v '^ *+' conftest.er1
>conftest.err
3702 cat conftest.err
>&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } &&
3705 { ac_try
='test -z "$ac_c_werror_flag"
3706 || test ! -s conftest.err'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; } &&
3712 { ac_try
='test -s conftest.$ac_objext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 ac_hi
=$ac_mid; break
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.
$ac_ext >&5
3723 ac_lo
=`expr $ac_mid + 1`
3724 if test $ac_lo -le $ac_mid; then
3728 ac_mid
=`expr 2 '*' $ac_mid + 1`
3730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.
$ac_ext >&5
3736 cat >conftest.
$ac_ext <<_ACEOF
3739 cat confdefs.h
>>conftest.
$ac_ext
3740 cat >>conftest.
$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 $ac_includes_default
3746 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3753 rm -f conftest.
$ac_objext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3755 (eval $ac_compile) 2>conftest.er1
3757 grep -v '^ *+' conftest.er1
>conftest.err
3759 cat conftest.err
>&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } &&
3762 { ac_try
='test -z "$ac_c_werror_flag"
3763 || test ! -s conftest.err'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; } &&
3769 { ac_try
='test -s conftest.$ac_objext'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; }; then
3777 cat >conftest.
$ac_ext <<_ACEOF
3780 cat confdefs.h
>>conftest.
$ac_ext
3781 cat >>conftest.
$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 $ac_includes_default
3787 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3794 rm -f conftest.
$ac_objext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796 (eval $ac_compile) 2>conftest.er1
3798 grep -v '^ *+' conftest.er1
>conftest.err
3800 cat conftest.err
>&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try
='test -z "$ac_c_werror_flag"
3804 || test ! -s conftest.err'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; } &&
3810 { ac_try
='test -s conftest.$ac_objext'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 ac_lo
=$ac_mid; break
3818 echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.
$ac_ext >&5
3821 ac_hi
=`expr '(' $ac_mid ')' - 1`
3822 if test $ac_mid -le $ac_hi; then
3826 ac_mid
=`expr 2 '*' $ac_mid`
3828 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.
$ac_ext >&5
3836 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3838 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3839 # Binary search between lo and hi bounds.
3840 while test "x$ac_lo" != "x$ac_hi"; do
3841 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3842 cat >conftest.
$ac_ext <<_ACEOF
3845 cat confdefs.h
>>conftest.
$ac_ext
3846 cat >>conftest.
$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 $ac_includes_default
3852 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3859 rm -f conftest.
$ac_objext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>conftest.er1
3863 grep -v '^ *+' conftest.er1
>conftest.err
3865 cat conftest.err
>&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try
='test -z "$ac_c_werror_flag"
3869 || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try
='test -s conftest.$ac_objext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.
$ac_ext >&5
3886 ac_lo
=`expr '(' $ac_mid ')' + 1`
3888 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3891 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3892 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3893 See \`config.log' for more details." >&5
3894 echo "$as_me: error: cannot compute sizeof (void *), 77
3895 See \`config.log' for more details." >&2;}
3896 { (exit 1); exit 1; }; } ;;
3899 if test "$cross_compiling" = yes; then
3900 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3901 See \`config.log' for more details." >&5
3902 echo "$as_me: error: cannot run test program while cross compiling
3903 See \`config.log' for more details." >&2;}
3904 { (exit 1); exit 1; }; }
3906 cat >conftest.
$ac_ext <<_ACEOF
3909 cat confdefs.h
>>conftest.
$ac_ext
3910 cat >>conftest.
$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3912 $ac_includes_default
3913 long longval () { return (long) (sizeof (void *)); }
3914 unsigned long ulongval () { return (long) (sizeof (void *)); }
3921 FILE *f = fopen ("conftest.val", "w");
3924 if (((long) (sizeof (void *))) < 0)
3926 long i = longval ();
3927 if (i != ((long) (sizeof (void *))))
3929 fprintf (f, "%ld\n", i);
3933 unsigned long i = ulongval ();
3934 if (i != ((long) (sizeof (void *))))
3936 fprintf (f, "%lu\n", i);
3938 exit (ferror (f) || fclose (f) != 0);
3944 rm -f conftest
$ac_exeext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946 (eval $ac_link) 2>&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_cv_sizeof_void_p
=`cat conftest.val`
3957 echo "$as_me: program exited with status $ac_status" >&5
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.
$ac_ext >&5
3962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3963 See \`config.log' for more details." >&5
3964 echo "$as_me: error: cannot compute sizeof (void *), 77
3965 See \`config.log' for more details." >&2;}
3966 { (exit 1); exit 1; }; }
3968 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3973 ac_cv_sizeof_void_p
=0
3976 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3977 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3978 cat >>confdefs.h
<<_ACEOF
3979 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3983 echo "$as_me:$LINENO: checking for short" >&5
3984 echo $ECHO_N "checking for short... $ECHO_C" >&6
3985 if test "${ac_cv_type_short+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 cat >conftest.
$ac_ext <<_ACEOF
3991 cat confdefs.h
>>conftest.
$ac_ext
3992 cat >>conftest.
$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 $ac_includes_default
4006 rm -f conftest.
$ac_objext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008 (eval $ac_compile) 2>conftest.er1
4010 grep -v '^ *+' conftest.er1
>conftest.err
4012 cat conftest.err
>&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try
='test -z "$ac_c_werror_flag"
4016 || test ! -s conftest.err'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try
='test -s conftest.$ac_objext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 ac_cv_type_short
=yes
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.
$ac_ext >&5
4035 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4037 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4038 echo "${ECHO_T}$ac_cv_type_short" >&6
4040 echo "$as_me:$LINENO: checking size of short" >&5
4041 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4042 if test "${ac_cv_sizeof_short+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 if test "$ac_cv_type_short" = yes; then
4046 # The cast to unsigned long works around a bug in the HP C Compiler
4047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4049 # This bug is HP SR number 8606223364.
4050 if test "$cross_compiling" = yes; then
4051 # Depending upon the size, compute the lo and hi bounds.
4052 cat >conftest.
$ac_ext <<_ACEOF
4055 cat confdefs.h
>>conftest.
$ac_ext
4056 cat >>conftest.
$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 $ac_includes_default
4062 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4069 rm -f conftest.
$ac_objext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071 (eval $ac_compile) 2>conftest.er1
4073 grep -v '^ *+' conftest.er1
>conftest.err
4075 cat conftest.err
>&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try
='test -z "$ac_c_werror_flag"
4079 || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try
='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4093 cat >conftest.
$ac_ext <<_ACEOF
4096 cat confdefs.h
>>conftest.
$ac_ext
4097 cat >>conftest.
$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 $ac_includes_default
4103 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4110 rm -f conftest.
$ac_objext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112 (eval $ac_compile) 2>conftest.er1
4114 grep -v '^ *+' conftest.er1
>conftest.err
4116 cat conftest.err
>&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try
='test -z "$ac_c_werror_flag"
4120 || test ! -s conftest.err'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; } &&
4126 { ac_try
='test -s conftest.$ac_objext'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 ac_hi
=$ac_mid; break
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.
$ac_ext >&5
4137 ac_lo
=`expr $ac_mid + 1`
4138 if test $ac_lo -le $ac_mid; then
4142 ac_mid
=`expr 2 '*' $ac_mid + 1`
4144 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.
$ac_ext >&5
4150 cat >conftest.
$ac_ext <<_ACEOF
4153 cat confdefs.h
>>conftest.
$ac_ext
4154 cat >>conftest.
$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4156 $ac_includes_default
4160 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4167 rm -f conftest.
$ac_objext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169 (eval $ac_compile) 2>conftest.er1
4171 grep -v '^ *+' conftest.er1
>conftest.err
4173 cat conftest.err
>&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
4176 { ac_try
='test -z "$ac_c_werror_flag"
4177 || test ! -s conftest.err'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try
='test -s conftest.$ac_objext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4191 cat >conftest.
$ac_ext <<_ACEOF
4194 cat confdefs.h
>>conftest.
$ac_ext
4195 cat >>conftest.
$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4197 $ac_includes_default
4201 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4208 rm -f conftest.
$ac_objext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>conftest.er1
4212 grep -v '^ *+' conftest.er1
>conftest.err
4214 cat conftest.err
>&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try
='test -z "$ac_c_werror_flag"
4218 || test ! -s conftest.err'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; } &&
4224 { ac_try
='test -s conftest.$ac_objext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_lo
=$ac_mid; break
4232 echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.
$ac_ext >&5
4235 ac_hi
=`expr '(' $ac_mid ')' - 1`
4236 if test $ac_mid -le $ac_hi; then
4240 ac_mid
=`expr 2 '*' $ac_mid`
4242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.
$ac_ext >&5
4250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4253 # Binary search between lo and hi bounds.
4254 while test "x$ac_lo" != "x$ac_hi"; do
4255 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4256 cat >conftest.
$ac_ext <<_ACEOF
4259 cat confdefs.h
>>conftest.
$ac_ext
4260 cat >>conftest.
$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 $ac_includes_default
4266 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4273 rm -f conftest.
$ac_objext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4275 (eval $ac_compile) 2>conftest.er1
4277 grep -v '^ *+' conftest.er1
>conftest.err
4279 cat conftest.err
>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } &&
4282 { ac_try
='test -z "$ac_c_werror_flag"
4283 || test ! -s conftest.err'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; } &&
4289 { ac_try
='test -s conftest.$ac_objext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.
$ac_ext >&5
4300 ac_lo
=`expr '(' $ac_mid ')' + 1`
4302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4305 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4306 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4307 See \`config.log' for more details." >&5
4308 echo "$as_me: error: cannot compute sizeof (short), 77
4309 See \`config.log' for more details." >&2;}
4310 { (exit 1); exit 1; }; } ;;
4313 if test "$cross_compiling" = yes; then
4314 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4315 See \`config.log' for more details." >&5
4316 echo "$as_me: error: cannot run test program while cross compiling
4317 See \`config.log' for more details." >&2;}
4318 { (exit 1); exit 1; }; }
4320 cat >conftest.
$ac_ext <<_ACEOF
4323 cat confdefs.h
>>conftest.
$ac_ext
4324 cat >>conftest.
$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 $ac_includes_default
4327 long longval () { return (long) (sizeof (short)); }
4328 unsigned long ulongval () { return (long) (sizeof (short)); }
4335 FILE *f = fopen ("conftest.val", "w");
4338 if (((long) (sizeof (short))) < 0)
4340 long i = longval ();
4341 if (i != ((long) (sizeof (short))))
4343 fprintf (f, "%ld\n", i);
4347 unsigned long i = ulongval ();
4348 if (i != ((long) (sizeof (short))))
4350 fprintf (f, "%lu\n", i);
4352 exit (ferror (f) || fclose (f) != 0);
4358 rm -f conftest
$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360 (eval $ac_link) 2>&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 ac_cv_sizeof_short
=`cat conftest.val`
4371 echo "$as_me: program exited with status $ac_status" >&5
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.
$ac_ext >&5
4376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4377 See \`config.log' for more details." >&5
4378 echo "$as_me: error: cannot compute sizeof (short), 77
4379 See \`config.log' for more details." >&2;}
4380 { (exit 1); exit 1; }; }
4382 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4387 ac_cv_sizeof_short
=0
4390 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4391 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4392 cat >>confdefs.h
<<_ACEOF
4393 #define SIZEOF_SHORT $ac_cv_sizeof_short
4397 echo "$as_me:$LINENO: checking for int" >&5
4398 echo $ECHO_N "checking for int... $ECHO_C" >&6
4399 if test "${ac_cv_type_int+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 cat >conftest.
$ac_ext <<_ACEOF
4405 cat confdefs.h
>>conftest.
$ac_ext
4406 cat >>conftest.
$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 $ac_includes_default
4420 rm -f conftest.
$ac_objext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422 (eval $ac_compile) 2>conftest.er1
4424 grep -v '^ *+' conftest.er1
>conftest.err
4426 cat conftest.err
>&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try
='test -z "$ac_c_werror_flag"
4430 || test ! -s conftest.err'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; } &&
4436 { ac_try
='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.
$ac_ext >&5
4449 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4451 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4452 echo "${ECHO_T}$ac_cv_type_int" >&6
4454 echo "$as_me:$LINENO: checking size of int" >&5
4455 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4456 if test "${ac_cv_sizeof_int+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 if test "$ac_cv_type_int" = yes; then
4460 # The cast to unsigned long works around a bug in the HP C Compiler
4461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4463 # This bug is HP SR number 8606223364.
4464 if test "$cross_compiling" = yes; then
4465 # Depending upon the size, compute the lo and hi bounds.
4466 cat >conftest.
$ac_ext <<_ACEOF
4469 cat confdefs.h
>>conftest.
$ac_ext
4470 cat >>conftest.
$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 $ac_includes_default
4476 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4483 rm -f conftest.
$ac_objext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4485 (eval $ac_compile) 2>conftest.er1
4487 grep -v '^ *+' conftest.er1
>conftest.err
4489 cat conftest.err
>&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } &&
4492 { ac_try
='test -z "$ac_c_werror_flag"
4493 || test ! -s conftest.err'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; } &&
4499 { ac_try
='test -s conftest.$ac_objext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4507 cat >conftest.
$ac_ext <<_ACEOF
4510 cat confdefs.h
>>conftest.
$ac_ext
4511 cat >>conftest.
$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513 $ac_includes_default
4517 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4524 rm -f conftest.
$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>conftest.er1
4528 grep -v '^ *+' conftest.er1
>conftest.err
4530 cat conftest.err
>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try
='test -z "$ac_c_werror_flag"
4534 || test ! -s conftest.err'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try
='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 ac_hi
=$ac_mid; break
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.
$ac_ext >&5
4551 ac_lo
=`expr $ac_mid + 1`
4552 if test $ac_lo -le $ac_mid; then
4556 ac_mid
=`expr 2 '*' $ac_mid + 1`
4558 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4561 echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.
$ac_ext >&5
4564 cat >conftest.
$ac_ext <<_ACEOF
4567 cat confdefs.h
>>conftest.
$ac_ext
4568 cat >>conftest.
$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 $ac_includes_default
4574 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4581 rm -f conftest.
$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>conftest.er1
4585 grep -v '^ *+' conftest.er1
>conftest.err
4587 cat conftest.err
>&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try
='test -z "$ac_c_werror_flag"
4591 || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try
='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4605 cat >conftest.
$ac_ext <<_ACEOF
4608 cat confdefs.h
>>conftest.
$ac_ext
4609 cat >>conftest.
$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4611 $ac_includes_default
4615 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4622 rm -f conftest.
$ac_objext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>conftest.er1
4626 grep -v '^ *+' conftest.er1
>conftest.err
4628 cat conftest.err
>&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try
='test -z "$ac_c_werror_flag"
4632 || test ! -s conftest.err'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; } &&
4638 { ac_try
='test -s conftest.$ac_objext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 ac_lo
=$ac_mid; break
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.
$ac_ext >&5
4649 ac_hi
=`expr '(' $ac_mid ')' - 1`
4650 if test $ac_mid -le $ac_hi; then
4654 ac_mid
=`expr 2 '*' $ac_mid`
4656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.
$ac_ext >&5
4664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4667 # Binary search between lo and hi bounds.
4668 while test "x$ac_lo" != "x$ac_hi"; do
4669 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4670 cat >conftest.
$ac_ext <<_ACEOF
4673 cat confdefs.h
>>conftest.
$ac_ext
4674 cat >>conftest.
$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 $ac_includes_default
4680 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4687 rm -f conftest.
$ac_objext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689 (eval $ac_compile) 2>conftest.er1
4691 grep -v '^ *+' conftest.er1
>conftest.err
4693 cat conftest.err
>&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try
='test -z "$ac_c_werror_flag"
4697 || test ! -s conftest.err'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; } &&
4703 { ac_try
='test -s conftest.$ac_objext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.
$ac_ext >&5
4714 ac_lo
=`expr '(' $ac_mid ')' + 1`
4716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4719 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4720 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4721 See \`config.log' for more details." >&5
4722 echo "$as_me: error: cannot compute sizeof (int), 77
4723 See \`config.log' for more details." >&2;}
4724 { (exit 1); exit 1; }; } ;;
4727 if test "$cross_compiling" = yes; then
4728 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4729 See \`config.log' for more details." >&5
4730 echo "$as_me: error: cannot run test program while cross compiling
4731 See \`config.log' for more details." >&2;}
4732 { (exit 1); exit 1; }; }
4734 cat >conftest.
$ac_ext <<_ACEOF
4737 cat confdefs.h
>>conftest.
$ac_ext
4738 cat >>conftest.
$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4740 $ac_includes_default
4741 long longval () { return (long) (sizeof (int)); }
4742 unsigned long ulongval () { return (long) (sizeof (int)); }
4749 FILE *f = fopen ("conftest.val", "w");
4752 if (((long) (sizeof (int))) < 0)
4754 long i = longval ();
4755 if (i != ((long) (sizeof (int))))
4757 fprintf (f, "%ld\n", i);
4761 unsigned long i = ulongval ();
4762 if (i != ((long) (sizeof (int))))
4764 fprintf (f, "%lu\n", i);
4766 exit (ferror (f) || fclose (f) != 0);
4772 rm -f conftest
$ac_exeext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4774 (eval $ac_link) 2>&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 ac_cv_sizeof_int
=`cat conftest.val`
4785 echo "$as_me: program exited with status $ac_status" >&5
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.
$ac_ext >&5
4790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4791 See \`config.log' for more details." >&5
4792 echo "$as_me: error: cannot compute sizeof (int), 77
4793 See \`config.log' for more details." >&2;}
4794 { (exit 1); exit 1; }; }
4796 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4804 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4805 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4806 cat >>confdefs.h
<<_ACEOF
4807 #define SIZEOF_INT $ac_cv_sizeof_int
4811 echo "$as_me:$LINENO: checking for long" >&5
4812 echo $ECHO_N "checking for long... $ECHO_C" >&6
4813 if test "${ac_cv_type_long+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 cat >conftest.
$ac_ext <<_ACEOF
4819 cat confdefs.h
>>conftest.
$ac_ext
4820 cat >>conftest.
$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 $ac_includes_default
4834 rm -f conftest.
$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>conftest.er1
4838 grep -v '^ *+' conftest.er1
>conftest.err
4840 cat conftest.err
>&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try
='test -z "$ac_c_werror_flag"
4844 || test ! -s conftest.err'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; } &&
4850 { ac_try
='test -s conftest.$ac_objext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.
$ac_ext >&5
4863 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4865 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4866 echo "${ECHO_T}$ac_cv_type_long" >&6
4868 echo "$as_me:$LINENO: checking size of long" >&5
4869 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4870 if test "${ac_cv_sizeof_long+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 if test "$ac_cv_type_long" = yes; then
4874 # The cast to unsigned long works around a bug in the HP C Compiler
4875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4877 # This bug is HP SR number 8606223364.
4878 if test "$cross_compiling" = yes; then
4879 # Depending upon the size, compute the lo and hi bounds.
4880 cat >conftest.
$ac_ext <<_ACEOF
4883 cat confdefs.h
>>conftest.
$ac_ext
4884 cat >>conftest.
$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4886 $ac_includes_default
4890 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4897 rm -f conftest.
$ac_objext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899 (eval $ac_compile) 2>conftest.er1
4901 grep -v '^ *+' conftest.er1
>conftest.err
4903 cat conftest.err
>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try
='test -z "$ac_c_werror_flag"
4907 || test ! -s conftest.err'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; } &&
4913 { ac_try
='test -s conftest.$ac_objext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4921 cat >conftest.
$ac_ext <<_ACEOF
4924 cat confdefs.h
>>conftest.
$ac_ext
4925 cat >>conftest.
$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 $ac_includes_default
4931 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4938 rm -f conftest.
$ac_objext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940 (eval $ac_compile) 2>conftest.er1
4942 grep -v '^ *+' conftest.er1
>conftest.err
4944 cat conftest.err
>&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } &&
4947 { ac_try
='test -z "$ac_c_werror_flag"
4948 || test ! -s conftest.err'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; } &&
4954 { ac_try
='test -s conftest.$ac_objext'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4960 ac_hi
=$ac_mid; break
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.
$ac_ext >&5
4965 ac_lo
=`expr $ac_mid + 1`
4966 if test $ac_lo -le $ac_mid; then
4970 ac_mid
=`expr 2 '*' $ac_mid + 1`
4972 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.
$ac_ext >&5
4978 cat >conftest.
$ac_ext <<_ACEOF
4981 cat confdefs.h
>>conftest.
$ac_ext
4982 cat >>conftest.
$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 $ac_includes_default
4988 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4995 rm -f conftest.
$ac_objext
4996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4997 (eval $ac_compile) 2>conftest.er1
4999 grep -v '^ *+' conftest.er1
>conftest.err
5001 cat conftest.err
>&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } &&
5004 { ac_try
='test -z "$ac_c_werror_flag"
5005 || test ! -s conftest.err'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; } &&
5011 { ac_try
='test -s conftest.$ac_objext'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5019 cat >conftest.
$ac_ext <<_ACEOF
5022 cat confdefs.h
>>conftest.
$ac_ext
5023 cat >>conftest.
$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5029 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5036 rm -f conftest.
$ac_objext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038 (eval $ac_compile) 2>conftest.er1
5040 grep -v '^ *+' conftest.er1
>conftest.err
5042 cat conftest.err
>&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try
='test -z "$ac_c_werror_flag"
5046 || test ! -s conftest.err'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; } &&
5052 { ac_try
='test -s conftest.$ac_objext'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
5058 ac_lo
=$ac_mid; break
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.
$ac_ext >&5
5063 ac_hi
=`expr '(' $ac_mid ')' - 1`
5064 if test $ac_mid -le $ac_hi; then
5068 ac_mid
=`expr 2 '*' $ac_mid`
5070 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.
$ac_ext >&5
5078 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5080 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5081 # Binary search between lo and hi bounds.
5082 while test "x$ac_lo" != "x$ac_hi"; do
5083 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5084 cat >conftest.
$ac_ext <<_ACEOF
5087 cat confdefs.h
>>conftest.
$ac_ext
5088 cat >>conftest.
$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 $ac_includes_default
5094 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5101 rm -f conftest.
$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103 (eval $ac_compile) 2>conftest.er1
5105 grep -v '^ *+' conftest.er1
>conftest.err
5107 cat conftest.err
>&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try
='test -z "$ac_c_werror_flag"
5111 || test ! -s conftest.err'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; } &&
5117 { ac_try
='test -s conftest.$ac_objext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.
$ac_ext >&5
5128 ac_lo
=`expr '(' $ac_mid ')' + 1`
5130 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5133 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5134 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5135 See \`config.log' for more details." >&5
5136 echo "$as_me: error: cannot compute sizeof (long), 77
5137 See \`config.log' for more details." >&2;}
5138 { (exit 1); exit 1; }; } ;;
5141 if test "$cross_compiling" = yes; then
5142 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5143 See \`config.log' for more details." >&5
5144 echo "$as_me: error: cannot run test program while cross compiling
5145 See \`config.log' for more details." >&2;}
5146 { (exit 1); exit 1; }; }
5148 cat >conftest.
$ac_ext <<_ACEOF
5151 cat confdefs.h
>>conftest.
$ac_ext
5152 cat >>conftest.
$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 $ac_includes_default
5155 long longval () { return (long) (sizeof (long)); }
5156 unsigned long ulongval () { return (long) (sizeof (long)); }
5163 FILE *f = fopen ("conftest.val", "w");
5166 if (((long) (sizeof (long))) < 0)
5168 long i = longval ();
5169 if (i != ((long) (sizeof (long))))
5171 fprintf (f, "%ld\n", i);
5175 unsigned long i = ulongval ();
5176 if (i != ((long) (sizeof (long))))
5178 fprintf (f, "%lu\n", i);
5180 exit (ferror (f) || fclose (f) != 0);
5186 rm -f conftest
$ac_exeext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5188 (eval $ac_link) 2>&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_sizeof_long
=`cat conftest.val`
5199 echo "$as_me: program exited with status $ac_status" >&5
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.
$ac_ext >&5
5204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5205 See \`config.log' for more details." >&5
5206 echo "$as_me: error: cannot compute sizeof (long), 77
5207 See \`config.log' for more details." >&2;}
5208 { (exit 1); exit 1; }; }
5210 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5218 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5219 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5220 cat >>confdefs.h
<<_ACEOF
5221 #define SIZEOF_LONG $ac_cv_sizeof_long
5225 if test $ac_cv_c_long_long = yes; then
5226 echo "$as_me:$LINENO: checking for long long" >&5
5227 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5228 if test "${ac_cv_type_long_long+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 cat >conftest.
$ac_ext <<_ACEOF
5234 cat confdefs.h
>>conftest.
$ac_ext
5235 cat >>conftest.
$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 $ac_includes_default
5241 if ((long long *) 0)
5243 if (sizeof (long long))
5249 rm -f conftest.
$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>conftest.er1
5253 grep -v '^ *+' conftest.er1
>conftest.err
5255 cat conftest.err
>&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try
='test -z "$ac_c_werror_flag"
5259 || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try
='test -s conftest.$ac_objext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_cv_type_long_long
=yes
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.
$ac_ext >&5
5276 ac_cv_type_long_long
=no
5278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5280 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5281 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5283 echo "$as_me:$LINENO: checking size of long long" >&5
5284 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5285 if test "${ac_cv_sizeof_long_long+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 if test "$ac_cv_type_long_long" = yes; then
5289 # The cast to unsigned long works around a bug in the HP C Compiler
5290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5292 # This bug is HP SR number 8606223364.
5293 if test "$cross_compiling" = yes; then
5294 # Depending upon the size, compute the lo and hi bounds.
5295 cat >conftest.
$ac_ext <<_ACEOF
5298 cat confdefs.h
>>conftest.
$ac_ext
5299 cat >>conftest.
$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 $ac_includes_default
5305 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5312 rm -f conftest.
$ac_objext
5313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5314 (eval $ac_compile) 2>conftest.er1
5316 grep -v '^ *+' conftest.er1
>conftest.err
5318 cat conftest.err
>&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } &&
5321 { ac_try
='test -z "$ac_c_werror_flag"
5322 || test ! -s conftest.err'
5323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; } &&
5328 { ac_try
='test -s conftest.$ac_objext'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5336 cat >conftest.
$ac_ext <<_ACEOF
5339 cat confdefs.h
>>conftest.
$ac_ext
5340 cat >>conftest.
$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342 $ac_includes_default
5346 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5353 rm -f conftest.
$ac_objext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355 (eval $ac_compile) 2>conftest.er1
5357 grep -v '^ *+' conftest.er1
>conftest.err
5359 cat conftest.err
>&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } &&
5362 { ac_try
='test -z "$ac_c_werror_flag"
5363 || test ! -s conftest.err'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; } &&
5369 { ac_try
='test -s conftest.$ac_objext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 ac_hi
=$ac_mid; break
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.
$ac_ext >&5
5380 ac_lo
=`expr $ac_mid + 1`
5381 if test $ac_lo -le $ac_mid; then
5385 ac_mid
=`expr 2 '*' $ac_mid + 1`
5387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.
$ac_ext >&5
5393 cat >conftest.
$ac_ext <<_ACEOF
5396 cat confdefs.h
>>conftest.
$ac_ext
5397 cat >>conftest.
$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 $ac_includes_default
5403 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5410 rm -f conftest.
$ac_objext
5411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5412 (eval $ac_compile) 2>conftest.er1
5414 grep -v '^ *+' conftest.er1
>conftest.err
5416 cat conftest.err
>&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } &&
5419 { ac_try
='test -z "$ac_c_werror_flag"
5420 || test ! -s conftest.err'
5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; } &&
5426 { ac_try
='test -s conftest.$ac_objext'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5434 cat >conftest.
$ac_ext <<_ACEOF
5437 cat confdefs.h
>>conftest.
$ac_ext
5438 cat >>conftest.
$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5440 $ac_includes_default
5444 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5451 rm -f conftest.
$ac_objext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453 (eval $ac_compile) 2>conftest.er1
5455 grep -v '^ *+' conftest.er1
>conftest.err
5457 cat conftest.err
>&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try
='test -z "$ac_c_werror_flag"
5461 || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try
='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_lo
=$ac_mid; break
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.
$ac_ext >&5
5478 ac_hi
=`expr '(' $ac_mid ')' - 1`
5479 if test $ac_mid -le $ac_hi; then
5483 ac_mid
=`expr 2 '*' $ac_mid`
5485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.
$ac_ext >&5
5493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5495 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5496 # Binary search between lo and hi bounds.
5497 while test "x$ac_lo" != "x$ac_hi"; do
5498 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5499 cat >conftest.
$ac_ext <<_ACEOF
5502 cat confdefs.h
>>conftest.
$ac_ext
5503 cat >>conftest.
$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 $ac_includes_default
5509 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5516 rm -f conftest.
$ac_objext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5518 (eval $ac_compile) 2>conftest.er1
5520 grep -v '^ *+' conftest.er1
>conftest.err
5522 cat conftest.err
>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 { ac_try
='test -z "$ac_c_werror_flag"
5526 || test ! -s conftest.err'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; } &&
5532 { ac_try
='test -s conftest.$ac_objext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.
$ac_ext >&5
5543 ac_lo
=`expr '(' $ac_mid ')' + 1`
5545 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5548 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5549 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5550 See \`config.log' for more details." >&5
5551 echo "$as_me: error: cannot compute sizeof (long long), 77
5552 See \`config.log' for more details." >&2;}
5553 { (exit 1); exit 1; }; } ;;
5556 if test "$cross_compiling" = yes; then
5557 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5558 See \`config.log' for more details." >&5
5559 echo "$as_me: error: cannot run test program while cross compiling
5560 See \`config.log' for more details." >&2;}
5561 { (exit 1); exit 1; }; }
5563 cat >conftest.
$ac_ext <<_ACEOF
5566 cat confdefs.h
>>conftest.
$ac_ext
5567 cat >>conftest.
$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569 $ac_includes_default
5570 long longval () { return (long) (sizeof (long long)); }
5571 unsigned long ulongval () { return (long) (sizeof (long long)); }
5578 FILE *f = fopen ("conftest.val", "w");
5581 if (((long) (sizeof (long long))) < 0)
5583 long i = longval ();
5584 if (i != ((long) (sizeof (long long))))
5586 fprintf (f, "%ld\n", i);
5590 unsigned long i = ulongval ();
5591 if (i != ((long) (sizeof (long long))))
5593 fprintf (f, "%lu\n", i);
5595 exit (ferror (f) || fclose (f) != 0);
5601 rm -f conftest
$ac_exeext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5603 (eval $ac_link) 2>&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_sizeof_long_long
=`cat conftest.val`
5614 echo "$as_me: program exited with status $ac_status" >&5
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.
$ac_ext >&5
5619 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5620 See \`config.log' for more details." >&5
5621 echo "$as_me: error: cannot compute sizeof (long long), 77
5622 See \`config.log' for more details." >&2;}
5623 { (exit 1); exit 1; }; }
5625 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5630 ac_cv_sizeof_long_long
=0
5633 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5634 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5635 cat >>confdefs.h
<<_ACEOF
5636 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5641 if test $ac_cv_c___int64 = yes; then
5642 echo "$as_me:$LINENO: checking for __int64" >&5
5643 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5644 if test "${ac_cv_type___int64+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 cat >conftest.
$ac_ext <<_ACEOF
5650 cat confdefs.h
>>conftest.
$ac_ext
5651 cat >>conftest.
$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 $ac_includes_default
5659 if (sizeof (__int64))
5665 rm -f conftest.
$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>conftest.er1
5669 grep -v '^ *+' conftest.er1
>conftest.err
5671 cat conftest.err
>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try
='test -z "$ac_c_werror_flag"
5675 || test ! -s conftest.err'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; } &&
5681 { ac_try
='test -s conftest.$ac_objext'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5687 ac_cv_type___int64
=yes
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.
$ac_ext >&5
5692 ac_cv_type___int64
=no
5694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5696 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5697 echo "${ECHO_T}$ac_cv_type___int64" >&6
5699 echo "$as_me:$LINENO: checking size of __int64" >&5
5700 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5701 if test "${ac_cv_sizeof___int64+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 if test "$ac_cv_type___int64" = yes; then
5705 # The cast to unsigned long works around a bug in the HP C Compiler
5706 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5707 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5708 # This bug is HP SR number 8606223364.
5709 if test "$cross_compiling" = yes; then
5710 # Depending upon the size, compute the lo and hi bounds.
5711 cat >conftest.
$ac_ext <<_ACEOF
5714 cat confdefs.h
>>conftest.
$ac_ext
5715 cat >>conftest.
$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 $ac_includes_default
5721 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5728 rm -f conftest.
$ac_objext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>conftest.er1
5732 grep -v '^ *+' conftest.er1
>conftest.err
5734 cat conftest.err
>&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try
='test -z "$ac_c_werror_flag"
5738 || test ! -s conftest.err'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; } &&
5744 { ac_try
='test -s conftest.$ac_objext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5752 cat >conftest.
$ac_ext <<_ACEOF
5755 cat confdefs.h
>>conftest.
$ac_ext
5756 cat >>conftest.
$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 $ac_includes_default
5762 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5769 rm -f conftest.
$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>conftest.er1
5773 grep -v '^ *+' conftest.er1
>conftest.err
5775 cat conftest.err
>&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try
='test -z "$ac_c_werror_flag"
5779 || test ! -s conftest.err'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; } &&
5785 { ac_try
='test -s conftest.$ac_objext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_hi
=$ac_mid; break
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.
$ac_ext >&5
5796 ac_lo
=`expr $ac_mid + 1`
5797 if test $ac_lo -le $ac_mid; then
5801 ac_mid
=`expr 2 '*' $ac_mid + 1`
5803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.
$ac_ext >&5
5809 cat >conftest.
$ac_ext <<_ACEOF
5812 cat confdefs.h
>>conftest.
$ac_ext
5813 cat >>conftest.
$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 $ac_includes_default
5819 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5826 rm -f conftest.
$ac_objext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828 (eval $ac_compile) 2>conftest.er1
5830 grep -v '^ *+' conftest.er1
>conftest.err
5832 cat conftest.err
>&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try
='test -z "$ac_c_werror_flag"
5836 || test ! -s conftest.err'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try
='test -s conftest.$ac_objext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5850 cat >conftest.
$ac_ext <<_ACEOF
5853 cat confdefs.h
>>conftest.
$ac_ext
5854 cat >>conftest.
$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 $ac_includes_default
5860 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5867 rm -f conftest.
$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869 (eval $ac_compile) 2>conftest.er1
5871 grep -v '^ *+' conftest.er1
>conftest.err
5873 cat conftest.err
>&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } &&
5876 { ac_try
='test -z "$ac_c_werror_flag"
5877 || test ! -s conftest.err'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; } &&
5883 { ac_try
='test -s conftest.$ac_objext'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5889 ac_lo
=$ac_mid; break
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.
$ac_ext >&5
5894 ac_hi
=`expr '(' $ac_mid ')' - 1`
5895 if test $ac_mid -le $ac_hi; then
5899 ac_mid
=`expr 2 '*' $ac_mid`
5901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.
$ac_ext >&5
5909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5912 # Binary search between lo and hi bounds.
5913 while test "x$ac_lo" != "x$ac_hi"; do
5914 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5915 cat >conftest.
$ac_ext <<_ACEOF
5918 cat confdefs.h
>>conftest.
$ac_ext
5919 cat >>conftest.
$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 $ac_includes_default
5925 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5932 rm -f conftest.
$ac_objext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934 (eval $ac_compile) 2>conftest.er1
5936 grep -v '^ *+' conftest.er1
>conftest.err
5938 cat conftest.err
>&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try
='test -z "$ac_c_werror_flag"
5942 || test ! -s conftest.err'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try
='test -s conftest.$ac_objext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.
$ac_ext >&5
5959 ac_lo
=`expr '(' $ac_mid ')' + 1`
5961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5964 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5965 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5966 See \`config.log' for more details." >&5
5967 echo "$as_me: error: cannot compute sizeof (__int64), 77
5968 See \`config.log' for more details." >&2;}
5969 { (exit 1); exit 1; }; } ;;
5972 if test "$cross_compiling" = yes; then
5973 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5974 See \`config.log' for more details." >&5
5975 echo "$as_me: error: cannot run test program while cross compiling
5976 See \`config.log' for more details." >&2;}
5977 { (exit 1); exit 1; }; }
5979 cat >conftest.
$ac_ext <<_ACEOF
5982 cat confdefs.h
>>conftest.
$ac_ext
5983 cat >>conftest.
$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 $ac_includes_default
5986 long longval () { return (long) (sizeof (__int64)); }
5987 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5994 FILE *f = fopen ("conftest.val", "w");
5997 if (((long) (sizeof (__int64))) < 0)
5999 long i = longval ();
6000 if (i != ((long) (sizeof (__int64))))
6002 fprintf (f, "%ld\n", i);
6006 unsigned long i = ulongval ();
6007 if (i != ((long) (sizeof (__int64))))
6009 fprintf (f, "%lu\n", i);
6011 exit (ferror (f) || fclose (f) != 0);
6017 rm -f conftest
$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019 (eval $ac_link) 2>&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 ac_cv_sizeof___int64
=`cat conftest.val`
6030 echo "$as_me: program exited with status $ac_status" >&5
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.
$ac_ext >&5
6035 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6036 See \`config.log' for more details." >&5
6037 echo "$as_me: error: cannot compute sizeof (__int64), 77
6038 See \`config.log' for more details." >&2;}
6039 { (exit 1); exit 1; }; }
6041 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6046 ac_cv_sizeof___int64
=0
6049 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6050 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6051 cat >>confdefs.h
<<_ACEOF
6052 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6058 # ---------------------
6059 # Warnings and checking
6060 # ---------------------
6062 # Check $CC warning features (if it's GCC).
6063 # We want to use -pedantic, but we don't want warnings about
6066 # So, we only use -pedantic if we can disable those warnings.
6068 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6069 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6070 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 save_CFLAGS
="$CFLAGS"
6074 CFLAGS
="-Wno-long-long"
6075 cat >conftest.
$ac_ext <<_ACEOF
6078 cat confdefs.h
>>conftest.
$ac_ext
6079 cat >>conftest.
$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6083 rm -f conftest.
$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6087 grep -v '^ *+' conftest.er1
>conftest.err
6089 cat conftest.err
>&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try
='test -z "$ac_c_werror_flag"
6093 || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try
='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_prog_cc_w_no_long_long
=yes
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.
$ac_ext >&5
6110 ac_cv_prog_cc_w_no_long_long
=no
6112 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6113 CFLAGS
="$save_CFLAGS"
6116 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6117 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6119 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6120 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6121 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 save_CFLAGS
="$CFLAGS"
6125 CFLAGS
="-Wno-variadic-macros"
6126 cat >conftest.
$ac_ext <<_ACEOF
6129 cat confdefs.h
>>conftest.
$ac_ext
6130 cat >>conftest.
$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6134 rm -f conftest.
$ac_objext
6135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6136 (eval $ac_compile) 2>conftest.er1
6138 grep -v '^ *+' conftest.er1
>conftest.err
6140 cat conftest.err
>&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try
='test -z "$ac_c_werror_flag"
6144 || test ! -s conftest.err'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; } &&
6150 { ac_try
='test -s conftest.$ac_objext'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }; then
6156 ac_cv_prog_cc_w_no_variadic_macros
=yes
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.
$ac_ext >&5
6161 ac_cv_prog_cc_w_no_variadic_macros
=no
6163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6164 CFLAGS
="$save_CFLAGS"
6167 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6168 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6171 if test $ac_cv_prog_cc_w_no_long_long = yes \
6172 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6173 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6177 # Add -Wold-style-definition if it's accepted
6178 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6179 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6180 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 save_CFLAGS
="$CFLAGS"
6184 CFLAGS
="-Wold-style-definition"
6185 cat >conftest.
$ac_ext <<_ACEOF
6188 cat confdefs.h
>>conftest.
$ac_ext
6189 cat >>conftest.
$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6193 rm -f conftest.
$ac_objext
6194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195 (eval $ac_compile) 2>conftest.er1
6197 grep -v '^ *+' conftest.er1
>conftest.err
6199 cat conftest.err
>&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try
='test -z "$ac_c_werror_flag"
6203 || test ! -s conftest.err'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; } &&
6209 { ac_try
='test -s conftest.$ac_objext'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; }; then
6215 ac_cv_prog_cc_w_old_style_definition
=yes
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.
$ac_ext >&5
6220 ac_cv_prog_cc_w_old_style_definition
=no
6222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6223 CFLAGS
="$save_CFLAGS"
6226 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6227 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6228 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6229 strict1_warn
="${strict1_warn} -Wold-style-definition"
6232 # Enable -Werror, period.
6233 # Check whether --enable-werror_always or --disable-werror_always was given.
6234 if test "${enable_werror_always+set}" = set; then
6235 enableval
="$enable_werror_always"
6238 enable_werror_always
=no
6240 if test x
${enable_werror_always} = xyes
; then
6241 strict1_warn
="${strict1_warn} -Werror"
6245 # If the native compiler is GCC, we can enable warnings even in stage1.
6246 # That's useful for people building cross-compilers, or just running a
6249 if test "x$GCC" = "xyes"; then
6250 warn_cflags
='$(GCC_WARN_CFLAGS)'
6254 # Enable -Werror in bootstrap stage2 and later.
6255 # Check whether --enable-werror or --disable-werror was given.
6256 if test "${enable_werror+set}" = set; then
6257 enableval
="$enable_werror"
6260 if test x
$is_release = x
; then
6261 # Default to "yes" on development branches.
6264 # Default to "no" on release branches.
6268 if test x
$enable_werror = xyes
; then
6273 # Enable expensive internal checks
6274 # Check whether --enable-checking or --disable-checking was given.
6275 if test "${enable_checking+set}" = set; then
6276 enableval
="$enable_checking"
6277 ac_checking_flags
="${enableval}"
6280 # Determine the default checks.
6281 if test x
$is_release = x
; then
6282 ac_checking_flags
=yes
6284 ac_checking_flags
=release
6287 ac_assert_checking
=1
6291 ac_rtlflag_checking
=
6293 ac_gc_always_collect
=
6295 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6296 for check
in $ac_checking_flags
6299 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6300 ac_tree_checking
=1 ; ac_gc_checking
=1 ;
6301 ac_rtlflag_checking
=1 ;;
6302 no
) ac_assert_checking
= ; ac_checking
= ;
6303 ac_tree_checking
= ; ac_rtl_checking
= ;
6304 ac_rtlflag_checking
= ; ac_gc_checking
= ;
6305 ac_gc_always_collect
= ; ac_fold_checking
= ;;
6306 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6307 ac_tree_checking
=1 ; ac_rtl_checking
=1 ;
6308 ac_rtlflag_checking
=1 ; ac_gc_checking
=1 ;
6309 ac_gc_always_collect
=1 ; ac_fold_checking
=1 ;;
6310 release
) ac_assert_checking
=1 ;;
6311 assert
) ac_assert_checking
=1 ;;
6312 fold) ac_fold_checking
=1 ;;
6313 gc
) ac_gc_checking
=1 ;;
6314 gcac
) ac_gc_always_collect
=1 ;;
6315 misc
) ac_checking
=1 ;;
6316 rtlflag
) ac_rtlflag_checking
=1 ;;
6317 rtl
) ac_rtl_checking
=1 ;;
6318 tree
) ac_tree_checking
=1 ;;
6319 valgrind
) ac_checking_valgrind
=1 ;;
6320 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6321 echo "$as_me: error: unknown check category $check" >&2;}
6322 { (exit 1); exit 1; }; } ;;
6328 if test x
$ac_checking != x
; then
6330 cat >>confdefs.h
<<\_ACEOF
6331 #define ENABLE_CHECKING 1
6334 nocommon_flag
=-fno-common
6337 if test x
$ac_assert_checking != x
; then
6339 cat >>confdefs.h
<<\_ACEOF
6340 #define ENABLE_ASSERT_CHECKING 1
6344 if test x
$ac_tree_checking != x
; then
6346 cat >>confdefs.h
<<\_ACEOF
6347 #define ENABLE_TREE_CHECKING 1
6350 TREEBROWSER
=tree-browser.o
6353 if test x
$ac_rtl_checking != x
; then
6355 cat >>confdefs.h
<<\_ACEOF
6356 #define ENABLE_RTL_CHECKING 1
6360 if test x
$ac_rtlflag_checking != x
; then
6362 cat >>confdefs.h
<<\_ACEOF
6363 #define ENABLE_RTL_FLAG_CHECKING 1
6367 if test x
$ac_gc_checking != x
; then
6369 cat >>confdefs.h
<<\_ACEOF
6370 #define ENABLE_GC_CHECKING 1
6374 if test x
$ac_gc_always_collect != x
; then
6376 cat >>confdefs.h
<<\_ACEOF
6377 #define ENABLE_GC_ALWAYS_COLLECT 1
6381 if test x
$ac_fold_checking != x
; then
6383 cat >>confdefs.h
<<\_ACEOF
6384 #define ENABLE_FOLD_CHECKING 1
6388 valgrind_path_defines
=
6391 if test "${ac_cv_header_valgrind_h+set}" = set; then
6392 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6393 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6394 if test "${ac_cv_header_valgrind_h+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6398 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6400 # Is the header compilable?
6401 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6402 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6403 cat >conftest.
$ac_ext <<_ACEOF
6406 cat confdefs.h
>>conftest.
$ac_ext
6407 cat >>conftest.
$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6409 $ac_includes_default
6410 #include <valgrind.h>
6412 rm -f conftest.
$ac_objext
6413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6414 (eval $ac_compile) 2>conftest.er1
6416 grep -v '^ *+' conftest.er1
>conftest.err
6418 cat conftest.err
>&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } &&
6421 { ac_try
='test -z "$ac_c_werror_flag"
6422 || test ! -s conftest.err'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; } &&
6428 { ac_try
='test -s conftest.$ac_objext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 ac_header_compiler
=yes
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.
$ac_ext >&5
6439 ac_header_compiler
=no
6441 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6443 echo "${ECHO_T}$ac_header_compiler" >&6
6445 # Is the header present?
6446 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6447 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6448 cat >conftest.
$ac_ext <<_ACEOF
6451 cat confdefs.h
>>conftest.
$ac_ext
6452 cat >>conftest.
$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454 #include <valgrind.h>
6456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6457 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6459 grep -v '^ *+' conftest.er1
>conftest.err
6461 cat conftest.err
>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } >/dev
/null
; then
6464 if test -s conftest.err
; then
6465 ac_cpp_err
=$ac_c_preproc_warn_flag
6466 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6473 if test -z "$ac_cpp_err"; then
6474 ac_header_preproc
=yes
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.
$ac_ext >&5
6479 ac_header_preproc
=no
6481 rm -f conftest.err conftest.
$ac_ext
6482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6483 echo "${ECHO_T}$ac_header_preproc" >&6
6485 # So? What about this header?
6486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6488 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6489 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6491 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6492 ac_header_preproc
=yes
6495 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6496 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6497 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6498 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6499 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6500 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6501 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6502 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6504 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6505 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6506 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6509 ## ------------------------------------------ ##
6510 ## Report this to the AC_PACKAGE_NAME lists. ##
6511 ## ------------------------------------------ ##
6514 sed "s/^/$as_me: WARNING: /" >&2
6517 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6518 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6519 if test "${ac_cv_header_valgrind_h+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 ac_cv_header_valgrind_h
=$ac_header_preproc
6524 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6525 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6528 if test $ac_cv_header_valgrind_h = yes; then
6536 if test x
$ac_checking_valgrind != x
; then
6537 # It is certainly possible that there's valgrind but no valgrind.h.
6538 # GCC relies on making annotations so we must have both.
6539 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6540 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6541 cat >conftest.
$ac_ext <<_ACEOF
6544 cat confdefs.h
>>conftest.
$ac_ext
6545 cat >>conftest.
$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6547 #include <valgrind/memcheck.h>
6548 #ifndef VALGRIND_DISCARD
6549 #error VALGRIND_DISCARD not defined
6552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6553 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6555 grep -v '^ *+' conftest.er1
>conftest.err
6557 cat conftest.err
>&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } >/dev
/null
; then
6560 if test -s conftest.err
; then
6561 ac_cpp_err
=$ac_c_preproc_warn_flag
6562 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6569 if test -z "$ac_cpp_err"; then
6570 gcc_cv_header_valgrind_memcheck_h
=yes
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.
$ac_ext >&5
6575 gcc_cv_header_valgrind_memcheck_h
=no
6577 rm -f conftest.err conftest.
$ac_ext
6578 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6579 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6580 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6581 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6582 cat >conftest.
$ac_ext <<_ACEOF
6585 cat confdefs.h
>>conftest.
$ac_ext
6586 cat >>conftest.
$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 #include <memcheck.h>
6589 #ifndef VALGRIND_DISCARD
6590 #error VALGRIND_DISCARD not defined
6593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6594 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6596 grep -v '^ *+' conftest.er1
>conftest.err
6598 cat conftest.err
>&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } >/dev
/null
; then
6601 if test -s conftest.err
; then
6602 ac_cpp_err
=$ac_c_preproc_warn_flag
6603 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6610 if test -z "$ac_cpp_err"; then
6611 gcc_cv_header_memcheck_h
=yes
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.
$ac_ext >&5
6616 gcc_cv_header_memcheck_h
=no
6618 rm -f conftest.err conftest.
$ac_ext
6619 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6620 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6622 # Prepare PATH_SEPARATOR.
6623 # The user is always right.
6624 if test "${PATH_SEPARATOR+set}" != set; then
6625 echo "#! /bin/sh" >conf$$.sh
6626 echo "exit 0" >>conf$$.sh
6628 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6636 # Find out how to test for executable files. Don't use a zero-byte file,
6637 # as systems may use methods other than mode bits to determine executability.
6638 cat >conf$$.
file <<_ASEOF
6642 chmod +x conf$$.
file
6643 if test -x conf$$.
file >/dev
/null
2>&1; then
6644 ac_executable_p
="test -x"
6646 ac_executable_p
="test -f"
6650 # Extract the first word of "valgrind", so it can be a program name with args.
6651 set dummy valgrind
; ac_word
=$2
6652 echo "$as_me:$LINENO: checking for $ac_word" >&5
6653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6654 if test "${ac_cv_path_valgrind_path+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 case "$valgrind_path" in
6659 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6662 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6663 for ac_dir
in $PATH; do
6665 test -z "$ac_dir" && ac_dir
=.
6666 for ac_exec_ext
in '' $ac_executable_extensions; do
6667 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6668 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6669 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6679 valgrind_path
="$ac_cv_path_valgrind_path"
6680 if test -n "$valgrind_path"; then
6681 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6682 echo "${ECHO_T}$valgrind_path" >&6
6684 echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6
6688 if test "x$valgrind_path" = "x" \
6689 ||
(test $have_valgrind_h = no \
6690 && test $gcc_cv_header_memcheck_h = no \
6691 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6692 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6693 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6694 { (exit 1); exit 1; }; }
6696 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6697 valgrind_command
="$valgrind_path -q"
6699 cat >>confdefs.h
<<\_ACEOF
6700 #define ENABLE_VALGRIND_CHECKING 1
6703 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6705 cat >>confdefs.h
<<\_ACEOF
6706 #define HAVE_VALGRIND_MEMCHECK_H 1
6710 if test $gcc_cv_header_memcheck_h = yes; then
6712 cat >>confdefs.h
<<\_ACEOF
6713 #define HAVE_MEMCHECK_H 1
6721 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6722 if test "${enable_mapped_location+set}" = set; then
6723 enableval
="$enable_mapped_location"
6726 enable_mapped_location
=no
6729 if test "$enable_mapped_location" = yes ; then
6731 cat >>confdefs.h
<<\_ACEOF
6732 #define USE_MAPPED_LOCATION 1
6737 # Enable code coverage collection
6738 # Check whether --enable-coverage or --disable-coverage was given.
6739 if test "${enable_coverage+set}" = set; then
6740 enableval
="$enable_coverage"
6741 case "${enableval}" in
6743 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6746 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6749 # a.k.a. --disable-coverage
6753 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6754 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6755 { (exit 1); exit 1; }; }
6763 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6764 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6765 enableval
="$enable_gather_detailed_mem_stats"
6768 enable_gather_detailed_mem_stats
=no
6770 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6772 cat >>confdefs.h
<<\_ACEOF
6773 #define GATHER_STATISTICS 1
6778 # -------------------------------
6779 # Miscenalleous configure options
6780 # -------------------------------
6784 # Check whether --with-stabs or --without-stabs was given.
6785 if test "${with_stabs+set}" = set; then
6786 withval
="$with_stabs"
6792 # Determine whether or not multilibs are enabled.
6793 # Check whether --enable-multilib or --disable-multilib was given.
6794 if test "${enable_multilib+set}" = set; then
6795 enableval
="$enable_multilib"
6802 # Enable __cxa_atexit for C++.
6803 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6804 if test "${enable___cxa_atexit+set}" = set; then
6805 enableval
="$enable___cxa_atexit"
6810 # Pass with no value to take the default
6811 # Pass with a value to specify a thread package
6812 # Check whether --enable-threads or --disable-threads was given.
6813 if test "${enable_threads+set}" = set; then
6814 enableval
="$enable_threads"
6820 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6821 if test "${enable_objc_gc+set}" = set; then
6822 enableval
="$enable_objc_gc"
6823 if test x
$enable_objc_gc = xno
; then
6833 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6834 if test "${with_dwarf2+set}" = set; then
6835 withval
="$with_dwarf2"
6836 dwarf2
="$with_dwarf2"
6841 # Check whether --enable-shared or --disable-shared was given.
6842 if test "${enable_shared+set}" = set; then
6843 enableval
="$enable_shared"
6845 case $enable_shared in
6849 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6850 for pkg
in $enableval; do
6851 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6865 # Check whether --with-sysroot or --without-sysroot was given.
6866 if test "${with_sysroot+set}" = set; then
6867 withval
="$with_sysroot"
6869 case ${with_sysroot} in
6870 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6871 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6874 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6875 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6877 if test "x$exec_prefix" = xNONE
; then
6878 if test "x$prefix" = xNONE
; then
6879 test_prefix
=/usr
/local
6884 test_prefix
=$exec_prefix
6886 case ${TARGET_SYSTEM_ROOT} in
6887 "${test_prefix}"|
"${test_prefix}/"*|\
6888 '${exec_prefix}'|
'${exec_prefix}/'*)
6889 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6890 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6897 TARGET_SYSTEM_ROOT_DEFINE
=
6898 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6905 # Build with intermodule optimisations
6906 # Check whether --enable-intermodule or --disable-intermodule was given.
6907 if test "${enable_intermodule+set}" = set; then
6908 enableval
="$enable_intermodule"
6909 case ${enable_intermodule} in
6910 yes) onestep
="-onestep";;
6918 # Sanity check enable_languages in case someone does not run the toplevel
6919 # configure # script.
6920 # Check whether --enable-languages or --disable-languages was given.
6921 if test "${enable_languages+set}" = set; then
6922 enableval
="$enable_languages"
6923 case ,${enable_languages}, in
6925 # go safe -- we cannot be much sure without the toplevel
6927 # analysis of which target libs are present and usable
6931 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6932 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6933 { (exit 1); exit 1; }; }
6938 enable_languages
=c
,${enable_languages}
6946 for lang
in ${srcdir}/*/config-lang.
in
6949 # The odd quoting in the next line works around
6950 # an apparent bug in bash 1.12 on linux.
6951 ${srcdir}/[*]/config-lang.
in) ;;
6953 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6954 if test "x$lang_alias" = x
6956 echo "$lang doesn't set \$language." 1>&2
6959 case ",$enable_languages," in
6961 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6968 # -------------------------
6969 # Checks for other programs
6970 # -------------------------
6972 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6973 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6974 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
6975 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 cat >conftest.
make <<\_ACEOF
6980 @
echo 'ac_maketemp="$(MAKE)"'
6982 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6983 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6984 if test -n "$ac_maketemp"; then
6985 eval ac_cv_prog_make_
${ac_make}_set
=yes
6987 eval ac_cv_prog_make_
${ac_make}_set
=no
6991 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6992 echo "$as_me:$LINENO: result: yes" >&5
6993 echo "${ECHO_T}yes" >&6
6996 echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6
6998 SET_MAKE
="MAKE=${MAKE-make}"
7002 # Find some useful tools
7003 for ac_prog
in gawk mawk nawk
awk
7005 # Extract the first word of "$ac_prog", so it can be a program name with args.
7006 set dummy
$ac_prog; ac_word
=$2
7007 echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7009 if test "${ac_cv_prog_AWK+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 if test -n "$AWK"; then
7013 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7019 test -z "$as_dir" && as_dir
=.
7020 for ac_exec_ext
in '' $ac_executable_extensions; do
7021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_AWK
="$ac_prog"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 if test -n "$AWK"; then
7033 echo "$as_me:$LINENO: result: $AWK" >&5
7034 echo "${ECHO_T}$AWK" >&6
7036 echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6
7040 test -n "$AWK" && break
7043 # We need awk to create options.c and options.h.
7044 # Bail out if it's missing.
7046 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7047 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7048 { (exit 1); exit 1; }; } ;;
7051 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7052 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7053 if test "${gcc_cv_prog_LN_S+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 rm -f conftestdata_t
7057 echo >conftestdata_f
7058 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7060 gcc_cv_prog_LN_S
="ln -s"
7062 if ln conftestdata_f conftestdata_t
2>/dev
/null
7066 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7068 gcc_cv_prog_LN_S
="cp -p"
7074 rm -f conftestdata_f conftestdata_t
7077 LN_S
="$gcc_cv_prog_LN_S"
7078 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7079 echo "$as_me:$LINENO: result: yes" >&5
7080 echo "${ECHO_T}yes" >&6
7082 if test "$gcc_cv_prog_LN_S" = "ln"; then
7083 echo "$as_me:$LINENO: result: no, using ln" >&5
7084 echo "${ECHO_T}no, using ln" >&6
7086 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7087 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7091 echo "$as_me:$LINENO: checking whether ln works" >&5
7092 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7093 if test "${acx_cv_prog_LN+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 rm -f conftestdata_t
7097 echo >conftestdata_f
7098 if ln conftestdata_f conftestdata_t
2>/dev
/null
7104 rm -f conftestdata_f conftestdata_t
7107 if test $acx_cv_prog_LN = no
; then
7109 echo "$as_me:$LINENO: result: no, using $LN" >&5
7110 echo "${ECHO_T}no, using $LN" >&6
7112 LN
="$acx_cv_prog_LN"
7113 echo "$as_me:$LINENO: result: yes" >&5
7114 echo "${ECHO_T}yes" >&6
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7119 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7120 echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7122 if test "${ac_cv_prog_RANLIB+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 if test -n "$RANLIB"; then
7126 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7132 test -z "$as_dir" && as_dir
=.
7133 for ac_exec_ext
in '' $ac_executable_extensions; do
7134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 RANLIB
=$ac_cv_prog_RANLIB
7145 if test -n "$RANLIB"; then
7146 echo "$as_me:$LINENO: result: $RANLIB" >&5
7147 echo "${ECHO_T}$RANLIB" >&6
7149 echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6
7154 if test -z "$ac_cv_prog_RANLIB"; then
7155 ac_ct_RANLIB
=$RANLIB
7156 # Extract the first word of "ranlib", so it can be a program name with args.
7157 set dummy ranlib
; ac_word
=$2
7158 echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7160 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 if test -n "$ac_ct_RANLIB"; then
7164 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7170 test -z "$as_dir" && as_dir
=.
7171 for ac_exec_ext
in '' $ac_executable_extensions; do
7172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7183 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7184 if test -n "$ac_ct_RANLIB"; then
7185 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7186 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7188 echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6
7192 RANLIB
=$ac_ct_RANLIB
7194 RANLIB
="$ac_cv_prog_RANLIB"
7199 # By default, the Darwin ranlib will not treat common symbols as
7200 # definitions when building the archive table of contents. Other
7201 # ranlibs do that; pass an option to the Darwin ranlib that makes
7202 # it behave similarly.
7210 # Find a good install program. We prefer a C program (faster),
7211 # so one script is as good as another. But avoid the broken or
7212 # incompatible versions:
7213 # SysV /etc/install, /usr/sbin/install
7214 # SunOS /usr/etc/install
7215 # IRIX /sbin/install
7217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7219 # ./install, which can be erroneously created by make from ./install.sh.
7220 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7221 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7222 if test -z "$INSTALL"; then
7223 if test "${ac_cv_path_install+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7227 for ac_dir
in $PATH; do
7228 # Account for people who put trailing slashes in PATH elements.
7230 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7232 # OSF1 and SCO ODT 3.0 have their own names for install.
7233 for ac_prog
in ginstall scoinst
install; do
7234 if test -f $ac_dir/$ac_prog; then
7235 if test $ac_prog = install &&
7236 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7237 # AIX install. It has an incompatible calling convention.
7238 # OSF/1 installbsd also uses dspmsg, but is usable.
7241 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7252 if test "${ac_cv_path_install+set}" = set; then
7253 INSTALL
="$ac_cv_path_install"
7255 # As a last resort, use the slow shell script. We don't cache a
7256 # path for INSTALL within a source directory, because that will
7257 # break other packages using the cache if that directory is
7258 # removed, or if the path is relative.
7259 INSTALL
="$ac_install_sh"
7262 echo "$as_me:$LINENO: result: $INSTALL" >&5
7263 echo "${ECHO_T}$INSTALL" >&6
7265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7266 # It thinks the first close brace ends the variable substitution.
7267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7269 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7272 # See if cmp has --ignore-initial.
7273 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7274 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7275 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 gcc_cv_prog_cmp_skip
=slowcompare
7281 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7282 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7285 gcc_cv_prog_cmp_skip
=gnucompare
7288 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7289 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7290 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7293 gcc_cv_prog_cmp_skip
=fastcompare
7300 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7301 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7302 make_compare_target
=$gcc_cv_prog_cmp_skip
7306 # See if we have the mktemp command.
7307 # Extract the first word of "mktemp", so it can be a program name with args.
7308 set dummy mktemp
; ac_word
=$2
7309 echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 if test -n "$have_mktemp_command"; then
7315 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir
=.
7322 for ac_exec_ext
in '' $ac_executable_extensions; do
7323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_have_mktemp_command
="yes"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7334 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7335 if test -n "$have_mktemp_command"; then
7336 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7337 echo "${ECHO_T}$have_mktemp_command" >&6
7339 echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7344 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7346 # See if makeinfo has been installed and is modern enough
7347 # that we can use it.
7348 # Extract the first word of "makeinfo", so it can be a program name with args.
7349 set dummy makeinfo
; ac_word
=$2
7350 echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7352 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 if test -n "$MAKEINFO"; then
7356 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7362 test -z "$as_dir" && as_dir
=.
7363 for ac_exec_ext
in '' $ac_executable_extensions; do
7364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365 ac_cv_prog_MAKEINFO
="makeinfo"
7366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 MAKEINFO
=$ac_cv_prog_MAKEINFO
7375 if test -n "$MAKEINFO"; then
7376 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7377 echo "${ECHO_T}$MAKEINFO" >&6
7379 echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6
7383 if test -n "$MAKEINFO"; then
7384 # Found it, now check the version.
7385 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7386 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7387 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7391 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7392 echo "configure:7392: version of makeinfo is $ac_prog_version" >&5
7393 case $ac_prog_version in
7394 '') gcc_cv_prog_makeinfo_modern
=no
;;
7396 gcc_cv_prog_makeinfo_modern
=yes;;
7397 *) gcc_cv_prog_makeinfo_modern
=no
;;
7401 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7402 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7404 gcc_cv_prog_makeinfo_modern
=no
7407 if test $gcc_cv_prog_makeinfo_modern = no
; then
7408 MAKEINFO
="$MISSING makeinfo"
7409 { echo "$as_me:$LINENO: WARNING:
7410 *** Makeinfo is missing or too old.
7411 *** Info documentation will not be built." >&5
7412 echo "$as_me: WARNING:
7413 *** Makeinfo is missing or too old.
7414 *** Info documentation will not be built." >&2;}
7421 # Is pod2man recent enough to regenerate manpages?
7422 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7423 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7424 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7425 echo "$as_me:$LINENO: result: yes" >&5
7426 echo "${ECHO_T}yes" >&6
7427 GENERATED_MANPAGES
=generated-manpages
7429 echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7438 # Extract the first word of "$ac_prog", so it can be a program name with args.
7439 set dummy
$ac_prog; ac_word
=$2
7440 echo "$as_me:$LINENO: checking for $ac_word" >&5
7441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7442 if test "${ac_cv_prog_FLEX+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 if test -n "$FLEX"; then
7446 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7452 test -z "$as_dir" && as_dir
=.
7453 for ac_exec_ext
in '' $ac_executable_extensions; do
7454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_FLEX
="$ac_prog"
7456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 FLEX
=$ac_cv_prog_FLEX
7465 if test -n "$FLEX"; then
7466 echo "$as_me:$LINENO: result: $FLEX" >&5
7467 echo "${ECHO_T}$FLEX" >&6
7469 echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7473 test -n "$FLEX" && break
7475 test -n "$FLEX" || FLEX
="$MISSING flex"
7479 for ac_prog
in bison
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482 set dummy
$ac_prog; ac_word
=$2
7483 echo "$as_me:$LINENO: checking for $ac_word" >&5
7484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7485 if test "${ac_cv_prog_BISON+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 if test -n "$BISON"; then
7489 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir
=.
7496 for ac_exec_ext
in '' $ac_executable_extensions; do
7497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_BISON
="$ac_prog"
7499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 BISON
=$ac_cv_prog_BISON
7508 if test -n "$BISON"; then
7509 echo "$as_me:$LINENO: result: $BISON" >&5
7510 echo "${ECHO_T}$BISON" >&6
7512 echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6
7516 test -n "$BISON" && break
7518 test -n "$BISON" || BISON
="$MISSING bison"
7521 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7522 # check for build == host before using them.
7525 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7526 && test -d ..
/binutils
; then
7527 NM
='$(objdir)/../binutils/nm-new'
7529 # Extract the first word of "nm", so it can be a program name with args.
7530 set dummy nm
; ac_word
=$2
7531 echo "$as_me:$LINENO: checking for $ac_word" >&5
7532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7533 if test "${ac_cv_prog_NM+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 if test -n "$NM"; then
7537 ac_cv_prog_NM
="$NM" # Let the user override the test.
7539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7543 test -z "$as_dir" && as_dir
=.
7544 for ac_exec_ext
in '' $ac_executable_extensions; do
7545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7557 if test -n "$NM"; then
7558 echo "$as_me:$LINENO: result: $NM" >&5
7559 echo "${ECHO_T}$NM" >&6
7561 echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6
7568 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7569 && test -d ..
/binutils
; then
7570 AR
='$(objdir)/../binutils/ar'
7572 # Extract the first word of "ar", so it can be a program name with args.
7573 set dummy
ar; ac_word
=$2
7574 echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7576 if test "${ac_cv_prog_AR+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 if test -n "$AR"; then
7580 ac_cv_prog_AR
="$AR" # Let the user override the test.
7582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7586 test -z "$as_dir" && as_dir
=.
7587 for ac_exec_ext
in '' $ac_executable_extensions; do
7588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7600 if test -n "$AR"; then
7601 echo "$as_me:$LINENO: result: $AR" >&5
7602 echo "${ECHO_T}$AR" >&6
7604 echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6
7611 # --------------------
7612 # Checks for C headers
7613 # --------------------
7615 echo "$as_me:$LINENO: checking for GNU C library" >&5
7616 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7617 if test "${gcc_cv_glibc+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 cat >conftest.
$ac_ext <<_ACEOF
7623 cat confdefs.h
>>conftest.
$ac_ext
7624 cat >>conftest.
$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7626 #include <features.h>
7631 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7632 #error Not a GNU C library system
7638 rm -f conftest.
$ac_objext
7639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7640 (eval $ac_compile) 2>conftest.er1
7642 grep -v '^ *+' conftest.er1
>conftest.err
7644 cat conftest.err
>&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } &&
7647 { ac_try
='test -z "$ac_c_werror_flag"
7648 || test ! -s conftest.err'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; } &&
7654 { ac_try
='test -s conftest.$ac_objext'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; }; then
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.
$ac_ext >&5
7667 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7670 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7671 echo "${ECHO_T}$gcc_cv_glibc" >&6
7672 if test $gcc_cv_glibc = yes; then
7674 cat >>confdefs.h
<<\_ACEOF
7675 #define _GNU_SOURCE 1
7680 # Need to reject headers which give warnings, so that the -Werror bootstrap
7681 # works later. *sigh* This needs to come before all header checks.
7683 ac_c_preproc_warn_flag
=yes
7685 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7686 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7687 if test "${ac_cv_header_stdc+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 cat >conftest.
$ac_ext <<_ACEOF
7693 cat confdefs.h
>>conftest.
$ac_ext
7694 cat >>conftest.
$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7709 rm -f conftest.
$ac_objext
7710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7711 (eval $ac_compile) 2>conftest.er1
7713 grep -v '^ *+' conftest.er1
>conftest.err
7715 cat conftest.err
>&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } &&
7718 { ac_try
='test -z "$ac_c_werror_flag"
7719 || test ! -s conftest.err'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; } &&
7725 { ac_try
='test -s conftest.$ac_objext'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; }; then
7731 ac_cv_header_stdc
=yes
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.
$ac_ext >&5
7736 ac_cv_header_stdc
=no
7738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7740 if test $ac_cv_header_stdc = yes; then
7741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7742 cat >conftest.
$ac_ext <<_ACEOF
7745 cat confdefs.h
>>conftest.
$ac_ext
7746 cat >>conftest.
$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7752 $EGREP "memchr" >/dev
/null
2>&1; then
7755 ac_cv_header_stdc
=no
7761 if test $ac_cv_header_stdc = yes; then
7762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7763 cat >conftest.
$ac_ext <<_ACEOF
7766 cat confdefs.h
>>conftest.
$ac_ext
7767 cat >>conftest.
$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7773 $EGREP "free" >/dev
/null
2>&1; then
7776 ac_cv_header_stdc
=no
7782 if test $ac_cv_header_stdc = yes; then
7783 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7784 if test "$cross_compiling" = yes; then
7787 cat >conftest.
$ac_ext <<_ACEOF
7790 cat confdefs.h
>>conftest.
$ac_ext
7791 cat >>conftest.
$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7794 #if ((' ' & 0x0FF) == 0x020)
7795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7798 # define ISLOWER(c) \
7799 (('a' <= (c) && (c) <= 'i') \
7800 || ('j' <= (c) && (c) <= 'r') \
7801 || ('s' <= (c) && (c) <= 'z'))
7802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7810 for (i = 0; i < 256; i++)
7811 if (XOR (islower (i), ISLOWER (i))
7812 || toupper (i) != TOUPPER (i))
7817 rm -f conftest
$ac_exeext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7819 (eval $ac_link) 2>&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; }; then
7830 echo "$as_me: program exited with status $ac_status" >&5
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.
$ac_ext >&5
7835 ac_cv_header_stdc
=no
7837 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7841 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7842 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7843 if test $ac_cv_header_stdc = yes; then
7845 cat >>confdefs.h
<<\_ACEOF
7846 #define STDC_HEADERS 1
7851 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7852 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7853 if test "${ac_cv_header_time+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 cat >conftest.
$ac_ext <<_ACEOF
7859 cat confdefs.h
>>conftest.
$ac_ext
7860 cat >>conftest.
$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 #include <sys/types.h>
7863 #include <sys/time.h>
7869 if ((struct tm *) 0)
7875 rm -f conftest.
$ac_objext
7876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7877 (eval $ac_compile) 2>conftest.er1
7879 grep -v '^ *+' conftest.er1
>conftest.err
7881 cat conftest.err
>&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } &&
7884 { ac_try
='test -z "$ac_c_werror_flag"
7885 || test ! -s conftest.err'
7886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; } &&
7891 { ac_try
='test -s conftest.$ac_objext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 ac_cv_header_time
=yes
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.
$ac_ext >&5
7902 ac_cv_header_time
=no
7904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7906 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7907 echo "${ECHO_T}$ac_cv_header_time" >&6
7908 if test $ac_cv_header_time = yes; then
7910 cat >>confdefs.h
<<\_ACEOF
7911 #define TIME_WITH_SYS_TIME 1
7916 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7917 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7918 if test "${gcc_cv_header_string+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 cat >conftest.
$ac_ext <<_ACEOF
7924 cat confdefs.h
>>conftest.
$ac_ext
7925 cat >>conftest.
$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7928 #include <strings.h>
7937 rm -f conftest.
$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939 (eval $ac_compile) 2>conftest.er1
7941 grep -v '^ *+' conftest.er1
>conftest.err
7943 cat conftest.err
>&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try
='test -z "$ac_c_werror_flag"
7947 || test ! -s conftest.err'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try
='test -s conftest.$ac_objext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 gcc_cv_header_string
=yes
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.
$ac_ext >&5
7964 gcc_cv_header_string
=no
7966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7968 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7969 echo "${ECHO_T}$gcc_cv_header_string" >&6
7970 if test $gcc_cv_header_string = yes; then
7972 cat >>confdefs.h
<<\_ACEOF
7973 #define STRING_WITH_STRINGS 1
7978 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7979 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7980 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 cat >conftest.
$ac_ext <<_ACEOF
7986 cat confdefs.h
>>conftest.
$ac_ext
7987 cat >>conftest.
$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <sys/types.h>
7990 #include <sys/wait.h>
7992 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7995 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8003 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8008 rm -f conftest.
$ac_objext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8010 (eval $ac_compile) 2>conftest.er1
8012 grep -v '^ *+' conftest.er1
>conftest.err
8014 cat conftest.err
>&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try
='test -z "$ac_c_werror_flag"
8018 || test ! -s conftest.err'
8019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; } &&
8024 { ac_try
='test -s conftest.$ac_objext'
8025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; }; then
8030 ac_cv_header_sys_wait_h
=yes
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.
$ac_ext >&5
8035 ac_cv_header_sys_wait_h
=no
8037 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8039 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8040 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8041 if test $ac_cv_header_sys_wait_h = yes; then
8043 cat >>confdefs.h
<<\_ACEOF
8044 #define HAVE_SYS_WAIT_H 1
8071 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8072 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8073 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8074 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8076 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8077 echo "$as_me:$LINENO: checking for $ac_header" >&5
8078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 cat >conftest.
$ac_ext <<_ACEOF
8085 cat confdefs.h
>>conftest.
$ac_ext
8086 cat >>conftest.
$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088 #include <$ac_header>
8090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8091 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8093 grep -v '^ *+' conftest.er1
>conftest.err
8095 cat conftest.err
>&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } >/dev
/null
; then
8098 if test -s conftest.err
; then
8099 ac_cpp_err
=$ac_c_preproc_warn_flag
8100 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8107 if test -z "$ac_cpp_err"; then
8108 eval "$as_ac_Header=yes"
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.
$ac_ext >&5
8113 eval "$as_ac_Header=no"
8115 rm -f conftest.err conftest.
$ac_ext
8117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8120 cat >>confdefs.h
<<_ACEOF
8121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8128 # Check for thread headers.
8129 echo "$as_me:$LINENO: checking for thread.h" >&5
8130 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8131 if test "${ac_cv_header_thread_h+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 cat >conftest.
$ac_ext <<_ACEOF
8137 cat confdefs.h
>>conftest.
$ac_ext
8138 cat >>conftest.
$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8143 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8145 grep -v '^ *+' conftest.er1
>conftest.err
8147 cat conftest.err
>&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } >/dev
/null
; then
8150 if test -s conftest.err
; then
8151 ac_cpp_err
=$ac_c_preproc_warn_flag
8152 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8159 if test -z "$ac_cpp_err"; then
8160 ac_cv_header_thread_h
=yes
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.
$ac_ext >&5
8165 ac_cv_header_thread_h
=no
8167 rm -f conftest.err conftest.
$ac_ext
8169 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8170 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8171 if test $ac_cv_header_thread_h = yes; then
8177 echo "$as_me:$LINENO: checking for pthread.h" >&5
8178 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8179 if test "${ac_cv_header_pthread_h+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 cat >conftest.
$ac_ext <<_ACEOF
8185 cat confdefs.h
>>conftest.
$ac_ext
8186 cat >>conftest.
$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8188 #include <pthread.h>
8190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8191 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8193 grep -v '^ *+' conftest.er1
>conftest.err
8195 cat conftest.err
>&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } >/dev
/null
; then
8198 if test -s conftest.err
; then
8199 ac_cpp_err
=$ac_c_preproc_warn_flag
8200 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8207 if test -z "$ac_cpp_err"; then
8208 ac_cv_header_pthread_h
=yes
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.
$ac_ext >&5
8213 ac_cv_header_pthread_h
=no
8215 rm -f conftest.err conftest.
$ac_ext
8217 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8218 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8219 if test $ac_cv_header_pthread_h = yes; then
8226 # These tests can't be done till we know if we have limits.h.
8227 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8228 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8229 if test "${gcc_cv_decl_char_bit+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 cat >conftest.
$ac_ext <<_ACEOF
8235 cat confdefs.h
>>conftest.
$ac_ext
8236 cat >>conftest.
$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 #ifdef HAVE_LIMITS_H
8245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8246 $EGREP "found" >/dev
/null
2>&1; then
8247 gcc_cv_decl_char_bit
=yes
8249 gcc_cv_decl_char_bit
=no
8255 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8256 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8257 if test $gcc_cv_decl_char_bit = no
; then
8258 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8259 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8260 if test "${gcc_cv_c_nbby+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 while test $i -lt 65; do
8266 cat >conftest.
$ac_ext <<_ACEOF
8269 cat confdefs.h
>>conftest.
$ac_ext
8270 cat >>conftest.
$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8277 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8278 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8284 rm -f conftest.
$ac_objext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8286 (eval $ac_compile) 2>conftest.er1
8288 grep -v '^ *+' conftest.er1
>conftest.err
8290 cat conftest.err
>&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try
='test -z "$ac_c_werror_flag"
8294 || test ! -s conftest.err'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try
='test -s conftest.$ac_objext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 gcc_cv_c_nbby
=$i; break
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.
$ac_ext >&5
8312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8315 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8318 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8319 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8320 if test $gcc_cv_c_nbby = failed
; then
8321 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8322 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8323 { (exit 1); exit 1; }; }
8326 cat >>confdefs.h
<<_ACEOF
8327 #define CHAR_BIT $gcc_cv_c_nbby
8332 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8333 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8334 if test "${ac_cv_c_bigendian+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 ac_cv_c_bigendian
=unknown
8338 # See if sys/param.h defines the BYTE_ORDER macro.
8339 cat >conftest.
$ac_ext <<_ACEOF
8342 cat confdefs.h
>>conftest.
$ac_ext
8343 cat >>conftest.
$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 #include <sys/types.h>
8346 #include <sys/param.h>
8351 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8358 rm -f conftest.
$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360 (eval $ac_compile) 2>conftest.er1
8362 grep -v '^ *+' conftest.er1
>conftest.err
8364 cat conftest.err
>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try
='test -z "$ac_c_werror_flag"
8368 || test ! -s conftest.err'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; } &&
8374 { ac_try
='test -s conftest.$ac_objext'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8380 # It does; now see whether it defined to BIG_ENDIAN or not.
8381 cat >conftest.
$ac_ext <<_ACEOF
8384 cat confdefs.h
>>conftest.
$ac_ext
8385 cat >>conftest.
$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 #include <sys/types.h>
8388 #include <sys/param.h>
8393 #if BYTE_ORDER != BIG_ENDIAN
8400 rm -f conftest.
$ac_objext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8402 (eval $ac_compile) 2>conftest.er1
8404 grep -v '^ *+' conftest.er1
>conftest.err
8406 cat conftest.err
>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try
='test -z "$ac_c_werror_flag"
8410 || test ! -s conftest.err'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try
='test -s conftest.$ac_objext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_cv_c_bigendian
=yes
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.
$ac_ext >&5
8427 ac_cv_c_bigendian
=no
8429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.
$ac_ext >&5
8435 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8436 if test $ac_cv_c_bigendian = unknown
; then
8437 if test "$cross_compiling" = yes; then
8438 echo $ac_n "cross-compiling... " 2>&6
8440 cat >conftest.
$ac_ext <<_ACEOF
8443 cat confdefs.h
>>conftest.
$ac_ext
8444 cat >>conftest.
$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8447 /* Are we little or big endian? From Harbison&Steele. */
8451 char c[sizeof (long)];
8454 exit (u.c[sizeof (long) - 1] == 1);
8457 rm -f conftest
$ac_exeext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8459 (eval $ac_link) 2>&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_c_bigendian
=no
8470 echo "$as_me: program exited with status $ac_status" >&5
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.
$ac_ext >&5
8475 ac_cv_c_bigendian
=yes
8477 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8481 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8482 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8483 if test $ac_cv_c_bigendian = unknown
; then
8484 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8485 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8487 cat >conftest.c
<<EOF
8488 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8489 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8490 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8491 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8492 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8493 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8494 int main() { _ascii (); _ebcdic (); return 0; }
8496 if test -f conftest.c
; then
8497 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
8498 if test `grep -l BIGenDianSyS conftest.o` ; then
8499 echo $ac_n ' big endian probe OK, ' 1>&6
8500 ac_cv_c_bigendian
=yes
8502 if test `grep -l LiTTleEnDian conftest.o` ; then
8503 echo $ac_n ' little endian probe OK, ' 1>&6
8504 if test $ac_cv_c_bigendian = yes ; then
8505 ac_cv_c_bigendian
=unknown
;
8507 ac_cv_c_bigendian
=no
8510 echo $ac_n 'guessing bigendian ... ' >&6
8513 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8514 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8516 if test $ac_cv_c_bigendian = yes; then
8518 cat >>confdefs.h
<<\_ACEOF
8519 #define WORDS_BIGENDIAN 1
8523 cat >>confdefs.h
<<\_ACEOF
8524 #define HOST_WORDS_BIG_ENDIAN 1
8532 cat >>confdefs.h
<<_ACEOF
8533 #define BYTEORDER $BYTEORDER
8536 if test $ac_cv_c_bigendian = unknown
; then
8537 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8538 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8539 { (exit 1); exit 1; }; }
8547 # Stage specific cflags for build.
8551 if test x
$GCC = xyes
8553 stage1_cflags
="-Wa,-J"
8559 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8560 # sources; use -no-cpp-precomp to get to GNU cpp.
8561 # Apple's GCC has bugs in designated initializer handling, so disable
8563 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8568 # These libraries may be used by collect2.
8569 # We may need a special search path to get them linked.
8570 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8571 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8572 if test "${gcc_cv_collect2_libs+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 for libs
in '' -lld -lmld \
8577 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8578 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8581 cat >conftest.
$ac_ext <<_ACEOF
8584 cat confdefs.h
>>conftest.
$ac_ext
8585 cat >>conftest.
$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8588 /* Override any gcc2 internal prototype to avoid an error. */
8592 /* We use char because int might match the return type of a gcc2
8593 builtin and then its argument prototype would still apply. */
8603 rm -f conftest.
$ac_objext conftest
$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605 (eval $ac_link) 2>conftest.er1
8607 grep -v '^ *+' conftest.er1
>conftest.err
8609 cat conftest.err
>&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try
='test -z "$ac_c_werror_flag"
8613 || test ! -s conftest.err'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try
='test -s conftest$ac_exeext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 gcc_cv_collect2_libs
="$libs"; break
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.
$ac_ext >&5
8631 rm -f conftest.err conftest.
$ac_objext \
8632 conftest
$ac_exeext conftest.
$ac_ext
8635 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8637 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8638 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8639 case $gcc_cv_collect2_libs in
8641 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8645 # When building Ada code on Alpha, we need exc_resume which is usually in
8646 # -lexc. So test for it.
8649 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8650 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8651 if test "${ac_cv_search_exc_resume+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 ac_func_search_save_LIBS
=$LIBS
8655 ac_cv_search_exc_resume
=no
8656 cat >conftest.
$ac_ext <<_ACEOF
8659 cat confdefs.h
>>conftest.
$ac_ext
8660 cat >>conftest.
$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8663 /* Override any gcc2 internal prototype to avoid an error. */
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8678 rm -f conftest.
$ac_objext conftest
$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>conftest.er1
8682 grep -v '^ *+' conftest.er1
>conftest.err
8684 cat conftest.err
>&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try
='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try
='test -s conftest$ac_exeext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_cv_search_exc_resume
="none required"
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.
$ac_ext >&5
8706 rm -f conftest.err conftest.
$ac_objext \
8707 conftest
$ac_exeext conftest.
$ac_ext
8708 if test "$ac_cv_search_exc_resume" = no
; then
8709 for ac_lib
in exc
; do
8710 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8711 cat >conftest.
$ac_ext <<_ACEOF
8714 cat confdefs.h
>>conftest.
$ac_ext
8715 cat >>conftest.
$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8718 /* Override any gcc2 internal prototype to avoid an error. */
8722 /* We use char because int might match the return type of a gcc2
8723 builtin and then its argument prototype would still apply. */
8733 rm -f conftest.
$ac_objext conftest
$ac_exeext
8734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8735 (eval $ac_link) 2>conftest.er1
8737 grep -v '^ *+' conftest.er1
>conftest.err
8739 cat conftest.err
>&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } &&
8742 { ac_try
='test -z "$ac_c_werror_flag"
8743 || test ! -s conftest.err'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; } &&
8749 { ac_try
='test -s conftest$ac_exeext'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
8755 ac_cv_search_exc_resume
="-l$ac_lib"
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.
$ac_ext >&5
8762 rm -f conftest.err conftest.
$ac_objext \
8763 conftest
$ac_exeext conftest.
$ac_ext
8766 LIBS
=$ac_func_search_save_LIBS
8768 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8769 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8770 if test "$ac_cv_search_exc_resume" != no
; then
8771 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8779 # Some systems put ldexp and frexp in libm instead of libc; assume
8780 # they're both in the same place. jcf-dump needs them.
8783 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8784 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8785 if test "${ac_cv_search_ldexp+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 ac_func_search_save_LIBS
=$LIBS
8789 ac_cv_search_ldexp
=no
8790 cat >conftest.
$ac_ext <<_ACEOF
8793 cat confdefs.h
>>conftest.
$ac_ext
8794 cat >>conftest.
$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8797 /* Override any gcc2 internal prototype to avoid an error. */
8801 /* We use char because int might match the return type of a gcc2
8802 builtin and then its argument prototype would still apply. */
8812 rm -f conftest.
$ac_objext conftest
$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>conftest.er1
8816 grep -v '^ *+' conftest.er1
>conftest.err
8818 cat conftest.err
>&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try
='test -z "$ac_c_werror_flag"
8822 || test ! -s conftest.err'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; } &&
8828 { ac_try
='test -s conftest$ac_exeext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 ac_cv_search_ldexp
="none required"
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.
$ac_ext >&5
8840 rm -f conftest.err conftest.
$ac_objext \
8841 conftest
$ac_exeext conftest.
$ac_ext
8842 if test "$ac_cv_search_ldexp" = no
; then
8844 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8845 cat >conftest.
$ac_ext <<_ACEOF
8848 cat confdefs.h
>>conftest.
$ac_ext
8849 cat >>conftest.
$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8852 /* Override any gcc2 internal prototype to avoid an error. */
8856 /* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8867 rm -f conftest.
$ac_objext conftest
$ac_exeext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869 (eval $ac_link) 2>conftest.er1
8871 grep -v '^ *+' conftest.er1
>conftest.err
8873 cat conftest.err
>&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try
='test -z "$ac_c_werror_flag"
8877 || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try
='test -s conftest$ac_exeext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_cv_search_ldexp
="-l$ac_lib"
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.
$ac_ext >&5
8896 rm -f conftest.err conftest.
$ac_objext \
8897 conftest
$ac_exeext conftest.
$ac_ext
8900 LIBS
=$ac_func_search_save_LIBS
8902 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8903 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8904 if test "$ac_cv_search_ldexp" != no
; then
8905 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
8913 # Use <inttypes.h> only if it exists,
8914 # doesn't clash with <sys/types.h>, and declares intmax_t.
8915 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8916 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8917 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 cat >conftest.
$ac_ext <<_ACEOF
8923 cat confdefs.h
>>conftest.
$ac_ext
8924 cat >>conftest.
$ac_ext <<_ACEOF
8925 /* end confdefs.h. */
8926 #include <sys/types.h>
8927 #include <inttypes.h>
8936 rm -f conftest.
$ac_objext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8938 (eval $ac_compile) 2>conftest.er1
8940 grep -v '^ *+' conftest.er1
>conftest.err
8942 cat conftest.err
>&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try
='test -z "$ac_c_werror_flag"
8946 || test ! -s conftest.err'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try
='test -s conftest.$ac_objext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 gcc_cv_header_inttypes_h
=yes
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.
$ac_ext >&5
8963 gcc_cv_header_inttypes_h
=no
8965 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8968 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8969 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8970 if test $gcc_cv_header_inttypes_h = yes; then
8972 cat >>confdefs.h
<<\_ACEOF
8973 #define HAVE_INTTYPES_H 1
9016 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
9017 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9018 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9019 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
9021 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9022 echo "$as_me:$LINENO: checking for $ac_func" >&5
9023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9024 if eval "test \"\${$as_ac_var+set}\" = set"; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 cat >conftest.
$ac_ext <<_ACEOF
9030 cat confdefs.h
>>conftest.
$ac_ext
9031 cat >>conftest.
$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9035 #define $ac_func innocuous_$ac_func
9037 /* System header to define __stub macros and hopefully few prototypes,
9038 which can conflict with char $ac_func (); below.
9039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9040 <limits.h> exists even on freestanding compilers. */
9043 # include <limits.h>
9045 # include <assert.h>
9050 /* Override any gcc2 internal prototype to avoid an error. */
9055 /* We use char because int might match the return type of a gcc2
9056 builtin and then its argument prototype would still apply. */
9058 /* The GNU C library defines this for functions which it implements
9059 to always fail with ENOSYS. Some functions are actually named
9060 something starting with __ and the normal name is an alias. */
9061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9064 char (*f) () = $ac_func;
9073 return f != $ac_func;
9078 rm -f conftest.
$ac_objext conftest
$ac_exeext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9080 (eval $ac_link) 2>conftest.er1
9082 grep -v '^ *+' conftest.er1
>conftest.err
9084 cat conftest.err
>&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try
='test -z "$ac_c_werror_flag"
9088 || test ! -s conftest.err'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try
='test -s conftest$ac_exeext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 eval "$as_ac_var=yes"
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.
$ac_ext >&5
9105 eval "$as_ac_var=no"
9107 rm -f conftest.err conftest.
$ac_objext \
9108 conftest
$ac_exeext conftest.
$ac_ext
9110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9112 if test `eval echo '${'$as_ac_var'}'` = yes; then
9113 cat >>confdefs.h
<<_ACEOF
9114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9121 if test x
$ac_cv_func_mbstowcs = xyes
; then
9122 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9123 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9124 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9127 if test "$cross_compiling" = yes; then
9128 gcc_cv_func_mbstowcs_works
=yes
9130 cat >conftest.
$ac_ext <<_ACEOF
9133 cat confdefs.h
>>conftest.
$ac_ext
9134 cat >>conftest.
$ac_ext <<_ACEOF
9135 /* end confdefs.h. */
9143 rm -f conftest
$ac_exeext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145 (eval $ac_link) 2>&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 gcc_cv_func_mbstowcs_works
=yes
9156 echo "$as_me: program exited with status $ac_status" >&5
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.
$ac_ext >&5
9161 gcc_cv_func_mbstowcs_works
=no
9163 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9166 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9167 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9168 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9170 cat >>confdefs.h
<<\_ACEOF
9171 #define HAVE_WORKING_MBSTOWCS 1
9177 echo "$as_me:$LINENO: checking for ssize_t" >&5
9178 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9179 if test "${ac_cv_type_ssize_t+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 cat >conftest.
$ac_ext <<_ACEOF
9185 cat confdefs.h
>>conftest.
$ac_ext
9186 cat >>conftest.
$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 $ac_includes_default
9194 if (sizeof (ssize_t))
9200 rm -f conftest.
$ac_objext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202 (eval $ac_compile) 2>conftest.er1
9204 grep -v '^ *+' conftest.er1
>conftest.err
9206 cat conftest.err
>&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } &&
9209 { ac_try
='test -z "$ac_c_werror_flag"
9210 || test ! -s conftest.err'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; } &&
9216 { ac_try
='test -s conftest.$ac_objext'
9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }; }; then
9222 ac_cv_type_ssize_t
=yes
9224 echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.
$ac_ext >&5
9227 ac_cv_type_ssize_t
=no
9229 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9231 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9232 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9233 if test $ac_cv_type_ssize_t = yes; then
9237 cat >>confdefs.h
<<_ACEOF
9244 # Try to determine the array type of the second argument of getgroups
9245 # for the target system (int or gid_t).
9246 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9247 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9248 if test "${ac_cv_type_uid_t+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 cat >conftest.
$ac_ext <<_ACEOF
9254 cat confdefs.h
>>conftest.
$ac_ext
9255 cat >>conftest.
$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 #include <sys/types.h>
9260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9261 $EGREP "uid_t" >/dev
/null
2>&1; then
9262 ac_cv_type_uid_t
=yes
9269 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9270 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9271 if test $ac_cv_type_uid_t = no
; then
9273 cat >>confdefs.h
<<\_ACEOF
9278 cat >>confdefs.h
<<\_ACEOF
9284 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9285 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9286 if test "${ac_cv_type_getgroups+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 if test "$cross_compiling" = yes; then
9290 ac_cv_type_getgroups
=cross
9292 cat >conftest.
$ac_ext <<_ACEOF
9295 cat confdefs.h
>>conftest.
$ac_ext
9296 cat >>conftest.
$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9298 /* Thanks to Mike Rendell for this test. */
9299 #include <sys/types.h>
9302 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9309 union { gid_t gval; long lval; } val;
9312 for (i = 0; i < NGID; i++)
9313 gidset[i] = val.gval;
9314 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9316 /* Exit non-zero if getgroups seems to require an array of ints. This
9317 happens when gid_t is short but getgroups modifies an array of ints. */
9318 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9321 rm -f conftest
$ac_exeext
9322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9323 (eval $ac_link) 2>&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 ac_cv_type_getgroups
=gid_t
9334 echo "$as_me: program exited with status $ac_status" >&5
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.
$ac_ext >&5
9339 ac_cv_type_getgroups
=int
9341 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9343 if test $ac_cv_type_getgroups = cross
; then
9344 cat >conftest.
$ac_ext <<_ACEOF
9347 cat confdefs.h
>>conftest.
$ac_ext
9348 cat >>conftest.
$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9354 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9355 ac_cv_type_getgroups
=gid_t
9357 ac_cv_type_getgroups
=int
9363 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9364 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9366 cat >>confdefs.h
<<_ACEOF
9367 #define GETGROUPS_T $ac_cv_type_getgroups
9371 if test "${target}" = "${build}"; then
9372 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9375 # This condition may need some tweaking. It should include all
9376 # targets where the array type of the second argument of getgroups
9377 # is int and the type of gid_t is not equivalent to int.
9378 *-*-sunos* |
*-*-ultrix*)
9379 TARGET_GETGROUPS_T
=int
9382 TARGET_GETGROUPS_T
=gid_t
9388 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9389 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9390 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 if test "$cross_compiling" = yes; then
9394 gcc_cv_func_printf_ptr
=no
9396 cat >conftest.
$ac_ext <<_ACEOF
9399 cat confdefs.h
>>conftest.
$ac_ext
9400 cat >>conftest.
$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9407 char *p = buf, *q = NULL;
9408 sprintf(buf, "%p", p);
9409 sscanf(buf, "%p", &q);
9413 rm -f conftest
$ac_exeext
9414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9415 (eval $ac_link) 2>&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9424 gcc_cv_func_printf_ptr
=yes
9426 echo "$as_me: program exited with status $ac_status" >&5
9427 echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.
$ac_ext >&5
9431 gcc_cv_func_printf_ptr
=no
9433 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9435 rm -f core core.
* *.core
9437 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9438 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9439 if test $gcc_cv_func_printf_ptr = yes ; then
9441 cat >>confdefs.h
<<\_ACEOF
9442 #define HAVE_PRINTF_PTR 1
9448 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9449 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9450 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 cat >conftest.
$ac_ext <<_ACEOF
9456 cat confdefs.h
>>conftest.
$ac_ext
9457 cat >>conftest.
$ac_ext <<_ACEOF
9458 /* end confdefs.h. */
9459 #include <sys/mman.h>
9461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9462 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9464 grep -v '^ *+' conftest.er1
>conftest.err
9466 cat conftest.err
>&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } >/dev
/null
; then
9469 if test -s conftest.err
; then
9470 ac_cpp_err
=$ac_c_preproc_warn_flag
9471 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9478 if test -z "$ac_cpp_err"; then
9479 ac_cv_header_sys_mman_h
=yes
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.
$ac_ext >&5
9484 ac_cv_header_sys_mman_h
=no
9486 rm -f conftest.err conftest.
$ac_ext
9488 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9489 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9490 if test $ac_cv_header_sys_mman_h = yes; then
9491 gcc_header_sys_mman_h
=yes
9493 gcc_header_sys_mman_h
=no
9496 echo "$as_me:$LINENO: checking for mmap" >&5
9497 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9498 if test "${ac_cv_func_mmap+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 cat >conftest.
$ac_ext <<_ACEOF
9504 cat confdefs.h
>>conftest.
$ac_ext
9505 cat >>conftest.
$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9509 #define mmap innocuous_mmap
9511 /* System header to define __stub macros and hopefully few prototypes,
9512 which can conflict with char mmap (); below.
9513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9514 <limits.h> exists even on freestanding compilers. */
9517 # include <limits.h>
9519 # include <assert.h>
9524 /* Override any gcc2 internal prototype to avoid an error. */
9529 /* We use char because int might match the return type of a gcc2
9530 builtin and then its argument prototype would still apply. */
9532 /* The GNU C library defines this for functions which it implements
9533 to always fail with ENOSYS. Some functions are actually named
9534 something starting with __ and the normal name is an alias. */
9535 #if defined (__stub_mmap) || defined (__stub___mmap)
9538 char (*f) () = mmap;
9552 rm -f conftest.
$ac_objext conftest
$ac_exeext
9553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9554 (eval $ac_link) 2>conftest.er1
9556 grep -v '^ *+' conftest.er1
>conftest.err
9558 cat conftest.err
>&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } &&
9561 { ac_try
='test -z "$ac_c_werror_flag"
9562 || test ! -s conftest.err'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; } &&
9568 { ac_try
='test -s conftest$ac_exeext'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; }; then
9576 echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.
$ac_ext >&5
9581 rm -f conftest.err conftest.
$ac_objext \
9582 conftest
$ac_exeext conftest.
$ac_ext
9584 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9585 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9586 if test $ac_cv_func_mmap = yes; then
9592 if test "$gcc_header_sys_mman_h" != yes \
9593 ||
test "$gcc_func_mmap" != yes; then
9594 gcc_cv_func_mmap_file
=no
9595 gcc_cv_func_mmap_dev_zero
=no
9596 gcc_cv_func_mmap_anon
=no
9598 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9599 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9600 if test "${gcc_cv_func_mmap_file+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 # Add a system to this blacklist if
9604 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9605 # memory area containing the same data that you'd get if you applied
9606 # read() to the same fd. The only system known to have a problem here
9607 # is VMS, where text files have record structure.
9610 gcc_cv_func_mmap_file
=no
;;
9612 gcc_cv_func_mmap_file
=yes;;
9615 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9616 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9617 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9618 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9619 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 # Add a system to this blacklist if it has mmap() but /dev/zero
9623 # does not exist, or if mmapping /dev/zero does not give anonymous
9624 # zeroed pages with both the following properties:
9625 # 1. If you map N consecutive pages in with one call, and then
9626 # unmap any subset of those pages, the pages that were not
9627 # explicitly unmapped remain accessible.
9628 # 2. If you map two adjacent blocks of memory and then unmap them
9629 # both at once, they must both go away.
9630 # Systems known to be in this category are Windows (all variants),
9633 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9634 gcc_cv_func_mmap_dev_zero
=no
;;
9636 gcc_cv_func_mmap_dev_zero
=yes;;
9639 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9640 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9642 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9643 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9644 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9645 if test "${gcc_cv_decl_map_anon+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 cat >conftest.
$ac_ext <<_ACEOF
9651 cat confdefs.h
>>conftest.
$ac_ext
9652 cat >>conftest.
$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 #include <sys/types.h>
9655 #include <sys/mman.h>
9658 #ifndef MAP_ANONYMOUS
9659 #define MAP_ANONYMOUS MAP_ANON
9665 int n = MAP_ANONYMOUS;
9670 rm -f conftest.
$ac_objext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9672 (eval $ac_compile) 2>conftest.er1
9674 grep -v '^ *+' conftest.er1
>conftest.err
9676 cat conftest.err
>&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
9679 { ac_try
='test -z "$ac_c_werror_flag"
9680 || test ! -s conftest.err'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try
='test -s conftest.$ac_objext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 gcc_cv_decl_map_anon
=yes
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.
$ac_ext >&5
9697 gcc_cv_decl_map_anon
=no
9699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9701 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9702 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9704 if test $gcc_cv_decl_map_anon = no
; then
9705 gcc_cv_func_mmap_anon
=no
9707 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9708 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9709 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9713 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9714 # doesn't give anonymous zeroed pages with the same properties listed
9715 # above for use of /dev/zero.
9716 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9718 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9719 gcc_cv_func_mmap_anon
=no
;;
9721 gcc_cv_func_mmap_anon
=yes;;
9724 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9725 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9729 if test $gcc_cv_func_mmap_file = yes; then
9731 cat >>confdefs.h
<<\_ACEOF
9732 #define HAVE_MMAP_FILE 1
9736 if test $gcc_cv_func_mmap_dev_zero = yes; then
9738 cat >>confdefs.h
<<\_ACEOF
9739 #define HAVE_MMAP_DEV_ZERO 1
9743 if test $gcc_cv_func_mmap_anon = yes; then
9745 cat >>confdefs.h
<<\_ACEOF
9746 #define HAVE_MMAP_ANON 1
9754 # Under VMS, vfork works very differently than on Unix. The standard test
9755 # won't work, and it isn't easily adaptable. It makes more sense to
9757 ac_cv_func_vfork_works
=yes
9760 echo "$as_me:$LINENO: checking for pid_t" >&5
9761 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9762 if test "${ac_cv_type_pid_t+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 cat >conftest.
$ac_ext <<_ACEOF
9768 cat confdefs.h
>>conftest.
$ac_ext
9769 cat >>conftest.
$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9771 $ac_includes_default
9783 rm -f conftest.
$ac_objext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9785 (eval $ac_compile) 2>conftest.er1
9787 grep -v '^ *+' conftest.er1
>conftest.err
9789 cat conftest.err
>&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } &&
9792 { ac_try
='test -z "$ac_c_werror_flag"
9793 || test ! -s conftest.err'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; } &&
9799 { ac_try
='test -s conftest.$ac_objext'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
9805 ac_cv_type_pid_t
=yes
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.
$ac_ext >&5
9812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9814 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9815 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9816 if test $ac_cv_type_pid_t = yes; then
9820 cat >>confdefs.h
<<_ACEOF
9828 for ac_header
in unistd.h vfork.h
9830 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9831 echo "$as_me:$LINENO: checking for $ac_header" >&5
9832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 cat >conftest.
$ac_ext <<_ACEOF
9839 cat confdefs.h
>>conftest.
$ac_ext
9840 cat >>conftest.
$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9842 #include <$ac_header>
9844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9845 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9847 grep -v '^ *+' conftest.er1
>conftest.err
9849 cat conftest.err
>&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } >/dev
/null
; then
9852 if test -s conftest.err
; then
9853 ac_cpp_err
=$ac_c_preproc_warn_flag
9854 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9861 if test -z "$ac_cpp_err"; then
9862 eval "$as_ac_Header=yes"
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.
$ac_ext >&5
9867 eval "$as_ac_Header=no"
9869 rm -f conftest.err conftest.
$ac_ext
9871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9874 cat >>confdefs.h
<<_ACEOF
9875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9883 for ac_func
in fork vfork
9885 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9886 echo "$as_me:$LINENO: checking for $ac_func" >&5
9887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9888 if eval "test \"\${$as_ac_var+set}\" = set"; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 cat >conftest.
$ac_ext <<_ACEOF
9894 cat confdefs.h
>>conftest.
$ac_ext
9895 cat >>conftest.
$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9899 #define $ac_func innocuous_$ac_func
9901 /* System header to define __stub macros and hopefully few prototypes,
9902 which can conflict with char $ac_func (); below.
9903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9904 <limits.h> exists even on freestanding compilers. */
9907 # include <limits.h>
9909 # include <assert.h>
9914 /* Override any gcc2 internal prototype to avoid an error. */
9919 /* We use char because int might match the return type of a gcc2
9920 builtin and then its argument prototype would still apply. */
9922 /* The GNU C library defines this for functions which it implements
9923 to always fail with ENOSYS. Some functions are actually named
9924 something starting with __ and the normal name is an alias. */
9925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9928 char (*f) () = $ac_func;
9937 return f != $ac_func;
9942 rm -f conftest.
$ac_objext conftest
$ac_exeext
9943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9944 (eval $ac_link) 2>conftest.er1
9946 grep -v '^ *+' conftest.er1
>conftest.err
9948 cat conftest.err
>&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
9951 { ac_try
='test -z "$ac_c_werror_flag"
9952 || test ! -s conftest.err'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; } &&
9958 { ac_try
='test -s conftest$ac_exeext'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
9964 eval "$as_ac_var=yes"
9966 echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.
$ac_ext >&5
9969 eval "$as_ac_var=no"
9971 rm -f conftest.err conftest.
$ac_objext \
9972 conftest
$ac_exeext conftest.
$ac_ext
9974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9976 if test `eval echo '${'$as_ac_var'}'` = yes; then
9977 cat >>confdefs.h
<<_ACEOF
9978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9984 if test "x$ac_cv_func_fork" = xyes
; then
9985 echo "$as_me:$LINENO: checking for working fork" >&5
9986 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9987 if test "${ac_cv_func_fork_works+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 if test "$cross_compiling" = yes; then
9991 ac_cv_func_fork_works
=cross
9993 cat >conftest.
$ac_ext <<_ACEOF
9994 /* By Ruediger Kuhlmann. */
9995 #include <sys/types.h>
9997 # include <unistd.h>
9999 /* Some systems only have a dummy stub for fork() */
10007 rm -f conftest
$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10018 ac_cv_func_fork_works
=yes
10020 echo "$as_me: program exited with status $ac_status" >&5
10021 echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.
$ac_ext >&5
10024 ( exit $ac_status )
10025 ac_cv_func_fork_works
=no
10027 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10030 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10031 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10034 ac_cv_func_fork_works
=$ac_cv_func_fork
10036 if test "x$ac_cv_func_fork_works" = xcross
; then
10038 *-*-amigaos* |
*-*-msdosdjgpp*)
10039 # Override, as these systems have only a dummy fork() stub
10040 ac_cv_func_fork_works
=no
10043 ac_cv_func_fork_works
=yes
10046 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10047 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10049 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10050 if test "x$ac_cv_func_vfork" = xyes
; then
10051 echo "$as_me:$LINENO: checking for working vfork" >&5
10052 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10053 if test "${ac_cv_func_vfork_works+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 if test "$cross_compiling" = yes; then
10057 ac_cv_func_vfork_works
=cross
10059 cat >conftest.
$ac_ext <<_ACEOF
10062 cat confdefs.h
>>conftest.
$ac_ext
10063 cat >>conftest.
$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10065 /* Thanks to Paul Eggert for this test. */
10067 #include <stdlib.h>
10068 #include <sys/types.h>
10069 #include <sys/stat.h>
10070 #include <sys/wait.h>
10072 # include <unistd.h>
10075 # include <vfork.h>
10077 /* On some sparc systems, changes by the child to local and incoming
10078 argument registers are propagated back to the parent. The compiler
10079 is told about this with #include <vfork.h>, but some compilers
10080 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10081 static variable whose address is put into a register that is
10082 clobbered by the vfork. */
10085 sparc_address_test (int arg)
10087 sparc_address_test (arg) int arg;
10090 static pid_t child;
10108 pid_t parent = getpid ();
10111 sparc_address_test (0);
10116 /* Here is another test for sparc vfork register problems. This
10117 test uses lots of local variables, at least as many local
10118 variables as main has allocated so far including compiler
10119 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10120 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10121 reuse the register of parent for one of the local variables,
10122 since it will think that parent can't possibly be used any more
10123 in this routine. Assigning to the local variable will thus
10124 munge parent in the parent process. */
10126 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10127 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10128 /* Convince the compiler that p..p7 are live; otherwise, it might
10129 use the same hardware register for all 8 local variables. */
10130 if (p != p1 || p != p2 || p != p3 || p != p4
10131 || p != p5 || p != p6 || p != p7)
10134 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10135 from child file descriptors. If the child closes a descriptor
10136 before it execs or exits, this munges the parent's descriptor
10137 as well. Test for this by closing stdout in the child. */
10138 _exit(close(fileno(stdout)) != 0);
10143 while (wait(&status) != child)
10146 /* Was there some problem with vforking? */
10149 /* Did the child fail? (This shouldn't happen.) */
10152 /* Did the vfork/compiler bug occur? */
10153 || parent != getpid()
10155 /* Did the file descriptor bug occur? */
10156 || fstat(fileno(stdout), &st) != 0
10161 rm -f conftest
$ac_exeext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10163 (eval $ac_link) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 ac_cv_func_vfork_works
=yes
10174 echo "$as_me: program exited with status $ac_status" >&5
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.
$ac_ext >&5
10178 ( exit $ac_status )
10179 ac_cv_func_vfork_works
=no
10181 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10184 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10185 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10188 if test "x$ac_cv_func_fork_works" = xcross
; then
10189 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10190 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10191 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10194 if test "x$ac_cv_func_vfork_works" = xyes
; then
10196 cat >>confdefs.h
<<\_ACEOF
10197 #define HAVE_WORKING_VFORK 1
10202 cat >>confdefs.h
<<\_ACEOF
10207 if test "x$ac_cv_func_fork_works" = xyes
; then
10209 cat >>confdefs.h
<<\_ACEOF
10210 #define HAVE_WORKING_FORK 1
10217 if test "X$prefix" = "XNONE"; then
10218 acl_final_prefix
="$ac_default_prefix"
10220 acl_final_prefix
="$prefix"
10222 if test "X$exec_prefix" = "XNONE"; then
10223 acl_final_exec_prefix
='${prefix}'
10225 acl_final_exec_prefix
="$exec_prefix"
10227 acl_save_prefix
="$prefix"
10228 prefix
="$acl_final_prefix"
10229 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10230 prefix
="$acl_save_prefix"
10233 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10234 if test "${with_gnu_ld+set}" = set; then
10235 withval
="$with_gnu_ld"
10236 test "$withval" = no || with_gnu_ld
=yes
10240 # Prepare PATH_SEPARATOR.
10241 # The user is always right.
10242 if test "${PATH_SEPARATOR+set}" != set; then
10243 echo "#! /bin/sh" >conf$$.sh
10244 echo "exit 0" >>conf$$.sh
10246 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10254 if test "$GCC" = yes; then
10255 # Check if gcc -print-prog-name=ld gives a path.
10256 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10257 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10260 # gcc leaves a trailing carriage return which upsets mingw
10261 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10263 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10266 # Accept absolute paths.
10267 [\\/]* |
[A-Za-z
]:[\\/]*)
10268 re_direlt
='/[^/][^/]*/\.\./'
10269 # Canonicalize the path of ld
10270 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10271 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10272 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10274 test -z "$LD" && LD
="$ac_prog"
10277 # If it fails, then pretend we aren't using GCC.
10281 # If it is relative, then search for the first ld in PATH.
10282 with_gnu_ld
=unknown
10285 elif test "$with_gnu_ld" = yes; then
10286 echo "$as_me:$LINENO: checking for GNU ld" >&5
10287 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10289 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10290 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10292 if test "${acl_cv_path_LD+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 if test -z "$LD"; then
10296 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10297 for ac_dir
in $PATH; do
10298 test -z "$ac_dir" && ac_dir
=.
10299 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10300 acl_cv_path_LD
="$ac_dir/$ac_prog"
10301 # Check to see if the program is GNU ld. I'd rather use --version,
10302 # but apparently some GNU ld's only accept -v.
10303 # Break only if it was the GNU/non-GNU ld that we prefer.
10304 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10305 test "$with_gnu_ld" != no
&& break
10307 test "$with_gnu_ld" != yes && break
10313 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10317 LD
="$acl_cv_path_LD"
10318 if test -n "$LD"; then
10319 echo "$as_me:$LINENO: result: $LD" >&5
10320 echo "${ECHO_T}$LD" >&6
10322 echo "$as_me:$LINENO: result: no" >&5
10323 echo "${ECHO_T}no" >&6
10325 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10326 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10327 { (exit 1); exit 1; }; }
10328 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10329 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10330 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10334 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10335 acl_cv_prog_gnu_ld
=yes
10337 acl_cv_prog_gnu_ld
=no
10340 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10341 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10342 with_gnu_ld
=$acl_cv_prog_gnu_ld
10346 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10347 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10348 if test "${acl_cv_rpath+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10352 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10353 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10355 rm -f .
/conftest.sh
10359 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10360 echo "${ECHO_T}$acl_cv_rpath" >&6
10362 libext
="$acl_cv_libext"
10363 shlibext
="$acl_cv_shlibext"
10364 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10365 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10366 hardcode_direct
="$acl_cv_hardcode_direct"
10367 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10368 # Check whether --enable-rpath or --disable-rpath was given.
10369 if test "${enable_rpath+set}" = set; then
10370 enableval
="$enable_rpath"
10384 acl_save_prefix
="$prefix"
10385 prefix
="$acl_final_prefix"
10386 acl_save_exec_prefix
="$exec_prefix"
10387 exec_prefix
="$acl_final_exec_prefix"
10389 eval additional_includedir
=\"$includedir\"
10390 eval additional_libdir
=\"$libdir\"
10392 exec_prefix
="$acl_save_exec_prefix"
10393 prefix
="$acl_save_prefix"
10396 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10397 if test "${with_libiconv_prefix+set}" = set; then
10398 withval
="$with_libiconv_prefix"
10400 if test "X$withval" = "Xno"; then
10403 if test "X$withval" = "X"; then
10405 acl_save_prefix
="$prefix"
10406 prefix
="$acl_final_prefix"
10407 acl_save_exec_prefix
="$exec_prefix"
10408 exec_prefix
="$acl_final_exec_prefix"
10410 eval additional_includedir
=\"$includedir\"
10411 eval additional_libdir
=\"$libdir\"
10413 exec_prefix
="$acl_save_exec_prefix"
10414 prefix
="$acl_save_prefix"
10417 additional_includedir
="$withval/include"
10418 additional_libdir
="$withval/lib"
10428 names_already_handled
=
10429 names_next_round
='iconv '
10430 while test -n "$names_next_round"; do
10431 names_this_round
="$names_next_round"
10433 for name
in $names_this_round; do
10435 for n
in $names_already_handled; do
10436 if test "$n" = "$name"; then
10437 already_handled
=yes
10441 if test -z "$already_handled"; then
10442 names_already_handled
="$names_already_handled $name"
10443 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10444 eval value
=\"\
$HAVE_LIB$uppername\"
10445 if test -n "$value"; then
10446 if test "$value" = yes; then
10447 eval value
=\"\
$LIB$uppername\"
10448 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10449 eval value
=\"\
$LTLIB$uppername\"
10450 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10459 if test $use_additional = yes; then
10460 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10461 found_dir
="$additional_libdir"
10462 found_so
="$additional_libdir/lib$name.$shlibext"
10463 if test -f "$additional_libdir/lib$name.la"; then
10464 found_la
="$additional_libdir/lib$name.la"
10467 if test -f "$additional_libdir/lib$name.$libext"; then
10468 found_dir
="$additional_libdir"
10469 found_a
="$additional_libdir/lib$name.$libext"
10470 if test -f "$additional_libdir/lib$name.la"; then
10471 found_la
="$additional_libdir/lib$name.la"
10476 if test "X$found_dir" = "X"; then
10477 for x
in $LDFLAGS $LTLIBICONV; do
10479 acl_save_prefix
="$prefix"
10480 prefix
="$acl_final_prefix"
10481 acl_save_exec_prefix
="$exec_prefix"
10482 exec_prefix
="$acl_final_exec_prefix"
10484 exec_prefix
="$acl_save_exec_prefix"
10485 prefix
="$acl_save_prefix"
10489 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10490 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10492 found_so
="$dir/lib$name.$shlibext"
10493 if test -f "$dir/lib$name.la"; then
10494 found_la
="$dir/lib$name.la"
10497 if test -f "$dir/lib$name.$libext"; then
10499 found_a
="$dir/lib$name.$libext"
10500 if test -f "$dir/lib$name.la"; then
10501 found_la
="$dir/lib$name.la"
10507 if test "X$found_dir" != "X"; then
10512 if test "X$found_dir" != "X"; then
10513 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10514 if test "X$found_so" != "X"; then
10515 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10516 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10519 for x
in $ltrpathdirs; do
10520 if test "X$x" = "X$found_dir"; then
10525 if test -z "$haveit"; then
10526 ltrpathdirs
="$ltrpathdirs $found_dir"
10528 if test "$hardcode_direct" = yes; then
10529 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10531 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10532 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10534 for x
in $rpathdirs; do
10535 if test "X$x" = "X$found_dir"; then
10540 if test -z "$haveit"; then
10541 rpathdirs
="$rpathdirs $found_dir"
10545 for x
in $LDFLAGS $LIBICONV; do
10547 acl_save_prefix
="$prefix"
10548 prefix
="$acl_final_prefix"
10549 acl_save_exec_prefix
="$exec_prefix"
10550 exec_prefix
="$acl_final_exec_prefix"
10552 exec_prefix
="$acl_save_exec_prefix"
10553 prefix
="$acl_save_prefix"
10555 if test "X$x" = "X-L$found_dir"; then
10560 if test -z "$haveit"; then
10561 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10563 if test "$hardcode_minus_L" != no
; then
10564 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10566 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10572 if test "X$found_a" != "X"; then
10573 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10575 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10578 additional_includedir
=
10579 case "$found_dir" in
10581 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10582 additional_includedir
="$basedir/include"
10585 if test "X$additional_includedir" != "X"; then
10586 if test "X$additional_includedir" != "X/usr/include"; then
10588 if test "X$additional_includedir" = "X/usr/local/include"; then
10589 if test -n "$GCC"; then
10591 linux
*) haveit
=yes;;
10595 if test -z "$haveit"; then
10596 for x
in $CPPFLAGS $INCICONV; do
10598 acl_save_prefix
="$prefix"
10599 prefix
="$acl_final_prefix"
10600 acl_save_exec_prefix
="$exec_prefix"
10601 exec_prefix
="$acl_final_exec_prefix"
10603 exec_prefix
="$acl_save_exec_prefix"
10604 prefix
="$acl_save_prefix"
10606 if test "X$x" = "X-I$additional_includedir"; then
10611 if test -z "$haveit"; then
10612 if test -d "$additional_includedir"; then
10613 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10619 if test -n "$found_la"; then
10620 save_libdir
="$libdir"
10621 case "$found_la" in
10622 */* |
*\\*) .
"$found_la" ;;
10623 *) .
"./$found_la" ;;
10625 libdir
="$save_libdir"
10626 for dep
in $dependency_libs; do
10629 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10630 if test "X$additional_libdir" != "X/usr/lib"; then
10632 if test "X$additional_libdir" = "X/usr/local/lib"; then
10633 if test -n "$GCC"; then
10635 linux
*) haveit
=yes;;
10639 if test -z "$haveit"; then
10641 for x
in $LDFLAGS $LIBICONV; do
10643 acl_save_prefix
="$prefix"
10644 prefix
="$acl_final_prefix"
10645 acl_save_exec_prefix
="$exec_prefix"
10646 exec_prefix
="$acl_final_exec_prefix"
10648 exec_prefix
="$acl_save_exec_prefix"
10649 prefix
="$acl_save_prefix"
10651 if test "X$x" = "X-L$additional_libdir"; then
10656 if test -z "$haveit"; then
10657 if test -d "$additional_libdir"; then
10658 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10662 for x
in $LDFLAGS $LTLIBICONV; do
10664 acl_save_prefix
="$prefix"
10665 prefix
="$acl_final_prefix"
10666 acl_save_exec_prefix
="$exec_prefix"
10667 exec_prefix
="$acl_final_exec_prefix"
10669 exec_prefix
="$acl_save_exec_prefix"
10670 prefix
="$acl_save_prefix"
10672 if test "X$x" = "X-L$additional_libdir"; then
10677 if test -z "$haveit"; then
10678 if test -d "$additional_libdir"; then
10679 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10686 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10687 if test "$enable_rpath" != no
; then
10689 for x
in $rpathdirs; do
10690 if test "X$x" = "X$dir"; then
10695 if test -z "$haveit"; then
10696 rpathdirs
="$rpathdirs $dir"
10699 for x
in $ltrpathdirs; do
10700 if test "X$x" = "X$dir"; then
10705 if test -z "$haveit"; then
10706 ltrpathdirs
="$ltrpathdirs $dir"
10711 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10714 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10717 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10718 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10724 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10725 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10731 if test "X$rpathdirs" != "X"; then
10732 if test -n "$hardcode_libdir_separator"; then
10734 for found_dir
in $rpathdirs; do
10735 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10737 acl_save_libdir
="$libdir"
10739 eval flag
=\"$hardcode_libdir_flag_spec\"
10740 libdir
="$acl_save_libdir"
10741 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10743 for found_dir
in $rpathdirs; do
10744 acl_save_libdir
="$libdir"
10745 libdir
="$found_dir"
10746 eval flag
=\"$hardcode_libdir_flag_spec\"
10747 libdir
="$acl_save_libdir"
10748 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10752 if test "X$ltrpathdirs" != "X"; then
10753 for found_dir
in $ltrpathdirs; do
10754 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10764 am_save_CPPFLAGS
="$CPPFLAGS"
10766 for element
in $INCICONV; do
10768 for x
in $CPPFLAGS; do
10770 acl_save_prefix
="$prefix"
10771 prefix
="$acl_final_prefix"
10772 acl_save_exec_prefix
="$exec_prefix"
10773 exec_prefix
="$acl_final_exec_prefix"
10775 exec_prefix
="$acl_save_exec_prefix"
10776 prefix
="$acl_save_prefix"
10778 if test "X$x" = "X$element"; then
10783 if test -z "$haveit"; then
10784 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10789 echo "$as_me:$LINENO: checking for iconv" >&5
10790 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10791 if test "${am_cv_func_iconv+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10795 am_cv_func_iconv
="no, consider installing GNU libiconv"
10797 cat >conftest.
$ac_ext <<_ACEOF
10800 cat confdefs.h
>>conftest.
$ac_ext
10801 cat >>conftest.
$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 #include <stdlib.h>
10808 iconv_t cd = iconv_open("","");
10809 iconv(cd,NULL,NULL,NULL,NULL);
10815 rm -f conftest.
$ac_objext conftest
$ac_exeext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10817 (eval $ac_link) 2>conftest.er1
10819 grep -v '^ *+' conftest.er1
>conftest.err
10821 cat conftest.err
>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } &&
10824 { ac_try
='test -z "$ac_c_werror_flag"
10825 || test ! -s conftest.err'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; } &&
10831 { ac_try
='test -s conftest$ac_exeext'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 am_cv_func_iconv
=yes
10839 echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.
$ac_ext >&5
10843 rm -f conftest.err conftest.
$ac_objext \
10844 conftest
$ac_exeext conftest.
$ac_ext
10845 if test "$am_cv_func_iconv" != yes; then
10846 am_save_LIBS
="$LIBS"
10847 LIBS
="$LIBS $LIBICONV"
10848 cat >conftest.
$ac_ext <<_ACEOF
10851 cat confdefs.h
>>conftest.
$ac_ext
10852 cat >>conftest.
$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10854 #include <stdlib.h>
10859 iconv_t cd = iconv_open("","");
10860 iconv(cd,NULL,NULL,NULL,NULL);
10866 rm -f conftest.
$ac_objext conftest
$ac_exeext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10868 (eval $ac_link) 2>conftest.er1
10870 grep -v '^ *+' conftest.er1
>conftest.err
10872 cat conftest.err
>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try
='test -z "$ac_c_werror_flag"
10876 || test ! -s conftest.err'
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; } &&
10882 { ac_try
='test -s conftest$ac_exeext'
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10888 am_cv_lib_iconv
=yes
10889 am_cv_func_iconv
=yes
10891 echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.
$ac_ext >&5
10895 rm -f conftest.err conftest.
$ac_objext \
10896 conftest
$ac_exeext conftest.
$ac_ext
10897 LIBS
="$am_save_LIBS"
10901 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10902 echo "${ECHO_T}$am_cv_func_iconv" >&6
10903 if test "$am_cv_func_iconv" = yes; then
10905 cat >>confdefs.h
<<\_ACEOF
10906 #define HAVE_ICONV 1
10910 if test "$am_cv_lib_iconv" = yes; then
10911 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10912 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10913 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10914 echo "${ECHO_T}$LIBICONV" >&6
10916 CPPFLAGS
="$am_save_CPPFLAGS"
10923 if test "$am_cv_func_iconv" = yes; then
10924 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10925 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10926 if test "${am_cv_proto_iconv+set}" = set; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10930 cat >conftest.
$ac_ext <<_ACEOF
10933 cat confdefs.h
>>conftest.
$ac_ext
10934 cat >>conftest.
$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10937 #include <stdlib.h>
10943 #if defined(__STDC__) || defined(__cplusplus)
10944 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10957 rm -f conftest.
$ac_objext
10958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10959 (eval $ac_compile) 2>conftest.er1
10961 grep -v '^ *+' conftest.er1
>conftest.err
10963 cat conftest.err
>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } &&
10966 { ac_try
='test -z "$ac_c_werror_flag"
10967 || test ! -s conftest.err'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; } &&
10973 { ac_try
='test -s conftest.$ac_objext'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 am_cv_proto_iconv_arg1
=""
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.
$ac_ext >&5
10984 am_cv_proto_iconv_arg1
="const"
10986 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10987 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);"
10990 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10991 echo "$as_me:$LINENO: result: ${ac_t:-
10992 }$am_cv_proto_iconv" >&5
10993 echo "${ECHO_T}${ac_t:-
10994 }$am_cv_proto_iconv" >&6
10996 cat >>confdefs.h
<<_ACEOF
10997 #define ICONV_CONST $am_cv_proto_iconv_arg1
11002 # Until we have in-tree GNU iconv:
11007 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11008 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11009 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11012 cat >conftest.
$ac_ext <<_ACEOF
11015 cat confdefs.h
>>conftest.
$ac_ext
11016 cat >>conftest.
$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11018 #include <locale.h>
11027 rm -f conftest.
$ac_objext conftest
$ac_exeext
11028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029 (eval $ac_link) 2>conftest.er1
11031 grep -v '^ *+' conftest.er1
>conftest.err
11033 cat conftest.err
>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try
='test -z "$ac_c_werror_flag"
11037 || test ! -s conftest.err'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try
='test -s conftest$ac_exeext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 am_cv_val_LC_MESSAGES
=yes
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.
$ac_ext >&5
11054 am_cv_val_LC_MESSAGES
=no
11056 rm -f conftest.err conftest.
$ac_objext \
11057 conftest
$ac_exeext conftest.
$ac_ext
11059 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11060 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11061 if test $am_cv_val_LC_MESSAGES = yes; then
11063 cat >>confdefs.h
<<\_ACEOF
11064 #define HAVE_LC_MESSAGES 1
11071 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11072 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11073 if test "${am_cv_langinfo_codeset+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11076 cat >conftest.
$ac_ext <<_ACEOF
11079 cat confdefs.h
>>conftest.
$ac_ext
11080 cat >>conftest.
$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11082 #include <langinfo.h>
11086 char* cs = nl_langinfo(CODESET);
11091 rm -f conftest.
$ac_objext conftest
$ac_exeext
11092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11093 (eval $ac_link) 2>conftest.er1
11095 grep -v '^ *+' conftest.er1
>conftest.err
11097 cat conftest.err
>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } &&
11100 { ac_try
='test -z "$ac_c_werror_flag"
11101 || test ! -s conftest.err'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; } &&
11107 { ac_try
='test -s conftest$ac_exeext'
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
11113 am_cv_langinfo_codeset
=yes
11115 echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.
$ac_ext >&5
11118 am_cv_langinfo_codeset
=no
11120 rm -f conftest.err conftest.
$ac_objext \
11121 conftest
$ac_exeext conftest.
$ac_ext
11124 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11125 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11126 if test $am_cv_langinfo_codeset = yes; then
11128 cat >>confdefs.h
<<\_ACEOF
11129 #define HAVE_LANGINFO_CODESET 1
11135 # We will need to find libiberty.h and ansidecl.h
11136 saved_CFLAGS
="$CFLAGS"
11137 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11174 for ac_func
in getenv atol sbrk abort atof getcwd getwd strsignal \
11175 strstr errno snprintf vasprintf malloc realloc calloc free \
11176 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
11178 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11179 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11180 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11181 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 cat >conftest.
$ac_ext <<_ACEOF
11187 cat confdefs.h
>>conftest.
$ac_ext
11188 cat >>conftest.
$ac_ext <<_ACEOF
11189 /* end confdefs.h. */
11191 #define $ac_tr_decl 1
11193 #include "ansidecl.h"
11194 #include "system.h"
11200 char *(*pfn) = (char *(*)) $ac_func ;
11206 rm -f conftest.
$ac_objext
11207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11208 (eval $ac_compile) 2>conftest.er1
11210 grep -v '^ *+' conftest.er1
>conftest.err
11212 cat conftest.err
>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
11215 { ac_try
='test -z "$ac_c_werror_flag"
11216 || test ! -s conftest.err'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; } &&
11222 { ac_try
='test -s conftest.$ac_objext'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; }; then
11228 eval "gcc_cv_have_decl_$ac_func=yes"
11230 echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.
$ac_ext >&5
11233 eval "gcc_cv_have_decl_$ac_func=no"
11235 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11238 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11239 echo "$as_me:$LINENO: result: yes" >&5
11240 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11241 #define $ac_tr_decl 1
11245 echo "$as_me:$LINENO: result: no" >&5
11246 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11247 #define $ac_tr_decl 0
11258 for ac_func
in getrlimit setrlimit getrusage
11260 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11261 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11262 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11263 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 cat >conftest.
$ac_ext <<_ACEOF
11269 cat confdefs.h
>>conftest.
$ac_ext
11270 cat >>conftest.
$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11273 #define $ac_tr_decl 1
11275 #include "ansidecl.h"
11276 #include "system.h"
11277 #ifdef HAVE_SYS_RESOURCE_H
11278 #include <sys/resource.h>
11286 char *(*pfn) = (char *(*)) $ac_func ;
11292 rm -f conftest.
$ac_objext
11293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11294 (eval $ac_compile) 2>conftest.er1
11296 grep -v '^ *+' conftest.er1
>conftest.err
11298 cat conftest.err
>&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } &&
11301 { ac_try
='test -z "$ac_c_werror_flag"
11302 || test ! -s conftest.err'
11303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304 (eval $ac_try) 2>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; } &&
11308 { ac_try
='test -s conftest.$ac_objext'
11309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; }; then
11314 eval "gcc_cv_have_decl_$ac_func=yes"
11316 echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.
$ac_ext >&5
11319 eval "gcc_cv_have_decl_$ac_func=no"
11321 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11324 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11325 echo "$as_me:$LINENO: result: yes" >&5
11326 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11327 #define $ac_tr_decl 1
11331 echo "$as_me:$LINENO: result: no" >&5
11332 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11333 #define $ac_tr_decl 0
11341 cat >conftest.
$ac_ext <<_ACEOF
11344 cat confdefs.h
>>conftest.
$ac_ext
11345 cat >>conftest.
$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11348 #include "ansidecl.h"
11349 #include "system.h"
11350 #ifdef HAVE_SYS_RESOURCE_H
11351 #include <sys/resource.h>
11362 rm -f conftest.
$ac_objext
11363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11364 (eval $ac_compile) 2>conftest.er1
11366 grep -v '^ *+' conftest.er1
>conftest.err
11368 cat conftest.err
>&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } &&
11371 { ac_try
='test -z "$ac_c_werror_flag"
11372 || test ! -s conftest.err'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; } &&
11378 { ac_try
='test -s conftest.$ac_objext'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; }; then
11386 echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.
$ac_ext >&5
11390 cat >>confdefs.h
<<\_ACEOF
11391 #define rlim_t long
11395 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11397 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11398 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11399 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11400 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11402 for ac_func
in ldgetname
11404 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11405 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11406 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11407 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 cat >conftest.
$ac_ext <<_ACEOF
11413 cat confdefs.h
>>conftest.
$ac_ext
11414 cat >>conftest.
$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11417 #define $ac_tr_decl 1
11419 #include "ansidecl.h"
11420 #include "system.h"
11421 #ifdef HAVE_LDFCN_H
11432 char *(*pfn) = (char *(*)) $ac_func ;
11438 rm -f conftest.
$ac_objext
11439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11440 (eval $ac_compile) 2>conftest.er1
11442 grep -v '^ *+' conftest.er1
>conftest.err
11444 cat conftest.err
>&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } &&
11447 { ac_try
='test -z "$ac_c_werror_flag"
11448 || test ! -s conftest.err'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; } &&
11454 { ac_try
='test -s conftest.$ac_objext'
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 eval "gcc_cv_have_decl_$ac_func=yes"
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.
$ac_ext >&5
11465 eval "gcc_cv_have_decl_$ac_func=no"
11467 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11470 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11471 echo "$as_me:$LINENO: result: yes" >&5
11472 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11473 #define $ac_tr_decl 1
11477 echo "$as_me:$LINENO: result: no" >&5
11478 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11479 #define $ac_tr_decl 0
11488 for ac_func
in times
11490 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11491 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11492 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11493 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 cat >conftest.
$ac_ext <<_ACEOF
11499 cat confdefs.h
>>conftest.
$ac_ext
11500 cat >>conftest.
$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11503 #define $ac_tr_decl 1
11505 #include "ansidecl.h"
11506 #include "system.h"
11507 #ifdef HAVE_SYS_TIMES_H
11508 #include <sys/times.h>
11516 char *(*pfn) = (char *(*)) $ac_func ;
11522 rm -f conftest.
$ac_objext
11523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11524 (eval $ac_compile) 2>conftest.er1
11526 grep -v '^ *+' conftest.er1
>conftest.err
11528 cat conftest.err
>&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } &&
11531 { ac_try
='test -z "$ac_c_werror_flag"
11532 || test ! -s conftest.err'
11533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534 (eval $ac_try) 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; } &&
11538 { ac_try
='test -s conftest.$ac_objext'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11544 eval "gcc_cv_have_decl_$ac_func=yes"
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.
$ac_ext >&5
11549 eval "gcc_cv_have_decl_$ac_func=no"
11551 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11554 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11555 echo "$as_me:$LINENO: result: yes" >&5
11556 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11557 #define $ac_tr_decl 1
11561 echo "$as_me:$LINENO: result: no" >&5
11562 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11563 #define $ac_tr_decl 0
11571 # More time-related stuff.
11572 echo "$as_me:$LINENO: checking for struct tms" >&5
11573 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11574 if test "${ac_cv_struct_tms+set}" = set; then
11575 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 cat >conftest.
$ac_ext <<_ACEOF
11581 cat confdefs.h
>>conftest.
$ac_ext
11582 cat >>conftest.
$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11585 #include "ansidecl.h"
11586 #include "system.h"
11587 #ifdef HAVE_SYS_TIMES_H
11588 #include <sys/times.h>
11599 rm -f conftest.
$ac_objext
11600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11601 (eval $ac_compile) 2>conftest.er1
11603 grep -v '^ *+' conftest.er1
>conftest.err
11605 cat conftest.err
>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } &&
11608 { ac_try
='test -z "$ac_c_werror_flag"
11609 || test ! -s conftest.err'
11610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; } &&
11615 { ac_try
='test -s conftest.$ac_objext'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; }; then
11621 ac_cv_struct_tms
=yes
11623 echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.
$ac_ext >&5
11626 ac_cv_struct_tms
=no
11628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11630 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11631 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11632 if test $ac_cv_struct_tms = yes; then
11634 cat >>confdefs.h
<<\_ACEOF
11635 #define HAVE_STRUCT_TMS 1
11640 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11641 # revisit after autoconf 2.50.
11642 echo "$as_me:$LINENO: checking for clock_t" >&5
11643 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11644 if test "${gcc_cv_type_clock_t+set}" = set; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 cat >conftest.
$ac_ext <<_ACEOF
11651 cat confdefs.h
>>conftest.
$ac_ext
11652 cat >>conftest.
$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11655 #include "ansidecl.h"
11656 #include "system.h"
11666 rm -f conftest.
$ac_objext
11667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11668 (eval $ac_compile) 2>conftest.er1
11670 grep -v '^ *+' conftest.er1
>conftest.err
11672 cat conftest.err
>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try
='test -z "$ac_c_werror_flag"
11676 || test ! -s conftest.err'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } &&
11682 { ac_try
='test -s conftest.$ac_objext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 gcc_cv_type_clock_t
=yes
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.
$ac_ext >&5
11693 gcc_cv_type_clock_t
=no
11695 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11697 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11698 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11699 if test $gcc_cv_type_clock_t = yes; then
11701 cat >>confdefs.h
<<\_ACEOF
11702 #define HAVE_CLOCK_T 1
11707 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11708 CFLAGS
="$saved_CFLAGS"
11710 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11711 if test "${enable_initfini_array+set}" = set; then
11712 enableval
="$enable_initfini_array"
11716 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11717 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11718 if test "${gcc_cv_initfini_array+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 if test "$cross_compiling" = yes; then
11722 gcc_cv_initfini_array
=no
11724 cat >conftest.
$ac_ext <<_ACEOF
11727 cat confdefs.h
>>conftest.
$ac_ext
11728 cat >>conftest.
$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11732 int main (void) { return x; }
11733 int foo (void) { x = 0; }
11734 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11736 rm -f conftest
$ac_exeext
11737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11738 (eval $ac_link) 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 gcc_cv_initfini_array
=yes
11749 echo "$as_me: program exited with status $ac_status" >&5
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.
$ac_ext >&5
11753 ( exit $ac_status )
11754 gcc_cv_initfini_array
=no
11756 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11759 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11760 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11761 enable_initfini_array
=$gcc_cv_initfini_array
11764 if test $enable_initfini_array = yes; then
11766 cat >>confdefs.h
<<\_ACEOF
11767 #define HAVE_INITFINI_ARRAY 1
11772 # mkdir takes a single argument on some systems.
11773 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11774 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11775 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
11778 cat >conftest.
$ac_ext <<_ACEOF
11781 cat confdefs.h
>>conftest.
$ac_ext
11782 cat >>conftest.
$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11785 #include <sys/types.h>
11786 #ifdef HAVE_SYS_STAT_H
11787 # include <sys/stat.h>
11789 #ifdef HAVE_UNISTD_H
11790 # include <unistd.h>
11792 #ifdef HAVE_DIRECT_H
11793 # include <direct.h>
11803 rm -f conftest.
$ac_objext
11804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11805 (eval $ac_compile) 2>conftest.er1
11807 grep -v '^ *+' conftest.er1
>conftest.err
11809 cat conftest.err
>&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } &&
11812 { ac_try
='test -z "$ac_c_werror_flag"
11813 || test ! -s conftest.err'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; } &&
11819 { ac_try
='test -s conftest.$ac_objext'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 gcc_cv_mkdir_takes_one_arg
=no
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.
$ac_ext >&5
11830 gcc_cv_mkdir_takes_one_arg
=yes
11832 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11834 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11835 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11836 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11838 cat >>confdefs.h
<<\_ACEOF
11839 #define MKDIR_TAKES_ONE_ARG 1
11851 # With Setjmp/Longjmp based exception handling.
11852 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11853 if test "${enable_sjlj_exceptions+set}" = set; then
11854 enableval
="$enable_sjlj_exceptions"
11855 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11857 cat >>confdefs.h
<<_ACEOF
11858 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11863 # For platforms with the unwind ABI which includes an unwind library,
11864 # libunwind, we can choose to use the system libunwind.
11866 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11867 if test "${with_system_libunwind+set}" = set; then
11868 withval
="$with_system_libunwind"
11872 # --------------------------------------------------------
11873 # Build, host, and target specific configuration fragments
11874 # --------------------------------------------------------
11876 # Collect build-machine-specific information.
11877 .
${srcdir}/config.build
11879 # Collect host-machine-specific information.
11880 .
${srcdir}/config.
host
11884 # Collect target-machine-specific information.
11885 .
${srcdir}/config.gcc
11887 extra_objs
="${host_extra_objs} ${extra_objs}"
11888 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11890 # Default the target-machine variables that were not explicitly set.
11891 if test x
"$tm_file" = x
11892 then tm_file
=$cpu_type/$cpu_type.h
; fi
11894 if test x
"$extra_headers" = x
11895 then extra_headers
=; fi
11897 if test x
$md_file = x
11898 then md_file
=$cpu_type/$cpu_type.md
; fi
11900 if test x
$out_file = x
11901 then out_file
=$cpu_type/$cpu_type.c
; fi
11903 if test x
"$tmake_file" = x
11904 then tmake_file
=$cpu_type/t-
$cpu_type
11907 if test x
"$dwarf2" = xyes
11908 then tm_file
="$tm_file tm-dwarf2.h"
11911 # Say what files are being used for the output code and MD file.
11912 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11913 echo "Using \`$srcdir/config/$md_file' as machine description file."
11915 # If any of the xm_file variables contain nonexistent files, warn
11916 # about them and drop them.
11919 for x
in $build_xm_file; do
11920 if test -f $srcdir/config
/$x
11922 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11923 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11926 build_xm_file
="$bx"
11929 for x
in $host_xm_file; do
11930 if test -f $srcdir/config
/$x
11932 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11933 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11939 for x
in $xm_file; do
11940 if test -f $srcdir/config
/$x
11942 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11943 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11949 for f
in $tm_file; do
11952 if test $count = ax
; then
11953 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11955 echo "Using the following target machine macro files:"
11956 for f
in $tm_file; do
11957 echo " $srcdir/config/$f"
11961 if test x
$need_64bit_hwint = xyes
; then
11963 cat >>confdefs.h
<<\_ACEOF
11964 #define NEED_64BIT_HOST_WIDE_INT 1
11969 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11971 cat >>confdefs.h
<<\_ACEOF
11972 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11978 for f
in $host_xm_file; do
11981 if test $count = a
; then
11983 elif test $count = ax
; then
11984 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11986 echo "Using the following host machine macro files:"
11987 for f
in $host_xm_file; do
11988 echo " $srcdir/config/$f"
11991 echo "Using ${out_host_hook_obj} for host machine hooks."
11993 if test "$host_xm_file" != "$build_xm_file"; then
11995 for f
in $build_xm_file; do
11998 if test $count = a
; then
12000 elif test $count = ax
; then
12001 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12003 echo "Using the following build machine macro files:"
12004 for f
in $build_xm_file; do
12005 echo " $srcdir/config/$f"
12014 # Check if a valid thread package
12015 case ${enable_threads} in
12018 target_thread_file
='single'
12022 target_thread_file
='single'
12024 aix | dce | gnat | irix | posix | posix95 | rtems | \
12025 single | solaris | vxworks | win32
)
12026 target_thread_file
=${enable_threads}
12029 echo "${enable_threads} is an unknown thread package" 1>&2
12034 if test x
${thread_file} = x
; then
12035 # No thread file set by target-specific clauses in config.gcc,
12036 # so use file chosen by default logic above
12037 thread_file
=${target_thread_file}
12040 # Make gthr-default.h if we have a thread file.
12042 if test $thread_file != single
; then
12043 rm -f gthr-default.h
12044 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12045 gthread_flags
=-DHAVE_GTHR_DEFAULT
12054 if test x
$enable___cxa_atexit = xyes || \
12055 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12056 if test x
$host = x
$target; then
12057 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12058 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12059 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12062 cat >conftest.
$ac_ext <<_ACEOF
12065 cat confdefs.h
>>conftest.
$ac_ext
12066 cat >>conftest.
$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12070 #define __cxa_atexit innocuous___cxa_atexit
12072 /* System header to define __stub macros and hopefully few prototypes,
12073 which can conflict with char __cxa_atexit (); below.
12074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12075 <limits.h> exists even on freestanding compilers. */
12078 # include <limits.h>
12080 # include <assert.h>
12083 #undef __cxa_atexit
12085 /* Override any gcc2 internal prototype to avoid an error. */
12090 /* We use char because int might match the return type of a gcc2
12091 builtin and then its argument prototype would still apply. */
12092 char __cxa_atexit ();
12093 /* The GNU C library defines this for functions which it implements
12094 to always fail with ENOSYS. Some functions are actually named
12095 something starting with __ and the normal name is an alias. */
12096 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12099 char (*f) () = __cxa_atexit;
12108 return f != __cxa_atexit;
12113 rm -f conftest.
$ac_objext conftest
$ac_exeext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115 (eval $ac_link) 2>conftest.er1
12117 grep -v '^ *+' conftest.er1
>conftest.err
12119 cat conftest.err
>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try
='test -z "$ac_c_werror_flag"
12123 || test ! -s conftest.err'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try
='test -s conftest$ac_exeext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 ac_cv_func___cxa_atexit
=yes
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.
$ac_ext >&5
12140 ac_cv_func___cxa_atexit
=no
12142 rm -f conftest.err conftest.
$ac_objext \
12143 conftest
$ac_exeext conftest.
$ac_ext
12145 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12146 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12147 if test $ac_cv_func___cxa_atexit = yes; then
12150 echo "__cxa_atexit can't be enabled on this target"
12154 # We can't check for __cxa_atexit when building a cross, so assume
12158 if test x
$use_cxa_atexit = xyes
; then
12160 cat >>confdefs.h
<<\_ACEOF
12161 #define DEFAULT_USE_CXA_ATEXIT 1
12167 # Look for a file containing extra machine modes.
12168 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12169 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12172 cat >>confdefs.h
<<_ACEOF
12173 #define EXTRA_MODES_FILE "config/$extra_modes"
12178 # auto-host.h is the file containing items generated by autoconf and is
12179 # the first file included by config.h.
12180 # If host=build, it is correct to have bconfig include auto-host.h
12181 # as well. If host!=build, we are in error and need to do more
12182 # work to find out the build config parameters.
12183 if test x
$host = x
$build
12185 build_auto
=auto-host.h
12187 # We create a subdir, then run autoconf in the subdir.
12188 # To prevent recursion we set host and build for the new
12189 # invocation of configure to the build for this invocation
12196 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12197 *) realsrcdir
=..
/${srcdir};;
12199 saved_CFLAGS
="${CFLAGS}"
12200 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12201 ${realsrcdir}/configure \
12202 --enable-languages=${enable_languages-all} \
12203 --target=$target_alias --host=$build_alias --build=$build_alias
12204 CFLAGS
="${saved_CFLAGS}"
12206 # We just finished tests for the build machine, so rename
12207 # the file auto-build.h in the gcc directory.
12208 mv auto-host.h ..
/auto-build.h
12211 build_auto
=auto-build.h
12215 tm_file
="${tm_file} defaults.h"
12216 tm_p_file
="${tm_p_file} tm-preds.h"
12217 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12218 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12219 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12220 # put this back in temporarily.
12221 xm_file
="ansidecl.h ${xm_file}"
12227 # Compile in configure arguments.
12228 if test -f configargs.h
; then
12229 # Being re-configured.
12230 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12231 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12233 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12236 # Double all backslashes and backslash all quotes to turn
12237 # gcc_config_arguments into a C string.
12238 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12239 $gcc_config_arguments
12241 gcc_config_arguments_str
=`cat conftest.out`
12244 cat > configargs.h
<<EOF
12245 /* Generated automatically. */
12246 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12247 static const char thread_model[] = "$thread_file";
12249 static const struct {
12250 const char *name, *value;
12251 } configure_default_options[] = $configure_default_options;
12254 # Internationalization
12256 VERSION
="$gcc_version"
12258 cat >>confdefs.h
<<_ACEOF
12259 #define PACKAGE "$PACKAGE"
12265 # If we haven't got the data from the intl directory,
12266 # assume NLS is disabled.
12274 if test -f ..
/intl
/config.intl
; then
12275 . ..
/intl
/config.intl
12277 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12278 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12279 if test x
"$USE_NLS" != xyes
; then
12280 echo "$as_me:$LINENO: result: no" >&5
12281 echo "${ECHO_T}no" >&6
12283 echo "$as_me:$LINENO: result: yes" >&5
12284 echo "${ECHO_T}yes" >&6
12286 cat >>confdefs.h
<<\_ACEOF
12287 #define ENABLE_NLS 1
12291 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12292 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12293 # Look for .po and .gmo files in the source directory.
12296 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12297 # If there aren't any .gmo files the shell will give us the
12298 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12300 case "$cat" in *\
**)
12303 # The quadruple backslash is collapsed to a double backslash
12304 # by the backticks, then collapsed again by the double quotes,
12305 # leaving us with one backslash in the sed expression (right
12306 # before the dot that mustn't act as a wildcard).
12307 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12308 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12309 # The user is allowed to set LINGUAS to a list of languages to
12310 # install catalogs for. If it's empty that means "all of them."
12311 if test "x$LINGUAS" = x
; then
12312 CATALOGS
="$CATALOGS $cat"
12313 XLINGUAS
="$XLINGUAS $lang"
12315 case "$LINGUAS" in *$lang*)
12316 CATALOGS
="$CATALOGS $cat"
12317 XLINGUAS
="$XLINGUAS $lang"
12322 LINGUAS
="$XLINGUAS"
12323 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12324 echo "${ECHO_T}$LINGUAS" >&6
12327 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12328 # -liconv on the link line twice.
12329 case "$LIBINTL" in *$LIBICONV*)
12333 # Windows32 Registry support for specifying GCC installation paths.
12334 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12335 if test "${enable_win32_registry+set}" = set; then
12336 enableval
="$enable_win32_registry"
12340 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12341 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12342 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12343 if test "x$enable_win32_registry" != xno
; then
12345 cat >>confdefs.h
<<\_ACEOF
12346 #define ENABLE_WIN32_REGISTRY 1
12349 echo "$as_me:$LINENO: result: yes" >&5
12350 echo "${ECHO_T}yes" >&6
12351 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12352 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12353 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 ac_func_search_save_LIBS
=$LIBS
12357 ac_cv_search_RegOpenKeyExA
=no
12358 cat >conftest.
$ac_ext <<_ACEOF
12361 cat confdefs.h
>>conftest.
$ac_ext
12362 cat >>conftest.
$ac_ext <<_ACEOF
12363 /* end confdefs.h. */
12365 /* Override any gcc2 internal prototype to avoid an error. */
12369 /* We use char because int might match the return type of a gcc2
12370 builtin and then its argument prototype would still apply. */
12371 char RegOpenKeyExA ();
12380 rm -f conftest.
$ac_objext conftest
$ac_exeext
12381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12382 (eval $ac_link) 2>conftest.er1
12384 grep -v '^ *+' conftest.er1
>conftest.err
12386 cat conftest.err
>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } &&
12389 { ac_try
='test -z "$ac_c_werror_flag"
12390 || test ! -s conftest.err'
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; } &&
12396 { ac_try
='test -s conftest$ac_exeext'
12397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398 (eval $ac_try) 2>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 ac_cv_search_RegOpenKeyExA
="none required"
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.
$ac_ext >&5
12408 rm -f conftest.err conftest.
$ac_objext \
12409 conftest
$ac_exeext conftest.
$ac_ext
12410 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12411 for ac_lib
in advapi32
; do
12412 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12413 cat >conftest.
$ac_ext <<_ACEOF
12416 cat confdefs.h
>>conftest.
$ac_ext
12417 cat >>conftest.
$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12420 /* Override any gcc2 internal prototype to avoid an error. */
12424 /* We use char because int might match the return type of a gcc2
12425 builtin and then its argument prototype would still apply. */
12426 char RegOpenKeyExA ();
12435 rm -f conftest.
$ac_objext conftest
$ac_exeext
12436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12437 (eval $ac_link) 2>conftest.er1
12439 grep -v '^ *+' conftest.er1
>conftest.err
12441 cat conftest.err
>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try
='test -z "$ac_c_werror_flag"
12445 || test ! -s conftest.err'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; } &&
12451 { ac_try
='test -s conftest$ac_exeext'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
12457 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12460 echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.
$ac_ext >&5
12464 rm -f conftest.err conftest.
$ac_objext \
12465 conftest
$ac_exeext conftest.
$ac_ext
12468 LIBS
=$ac_func_search_save_LIBS
12470 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12471 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12472 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12473 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12478 echo "$as_me:$LINENO: result: no" >&5
12479 echo "${ECHO_T}no" >&6
12482 # Check if user specified a different registry key.
12483 case "x${enable_win32_registry}" in
12486 gcc_cv_win32_registry_key
="$VERSION"
12489 # no registry lookup.
12490 gcc_cv_win32_registry_key
=''
12493 # user-specified key.
12494 gcc_cv_win32_registry_key
="$enable_win32_registry"
12498 if test "x$enable_win32_registry" != xno
; then
12499 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12500 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12502 cat >>confdefs.h
<<_ACEOF
12503 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12506 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12507 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12512 # Get an absolute path to the GCC top-level source directory
12513 holddir
=`${PWDCMD-pwd}`
12515 topdir
=`${PWDCMD-pwd}`
12518 # Conditionalize the makefile for this host machine.
12520 for f
in ${host_xmake_file}
12522 if test -f ${srcdir}/config
/$f
12524 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12528 # Conditionalize the makefile for this target machine.
12530 for f
in ${tmake_file}
12532 if test -f ${srcdir}/config
/$f
12534 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12537 tmake_file
="${tmake_file_}"
12539 # If the host doesn't support symlinks, modify CC in
12540 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12541 # Otherwise, we can use "CC=$(CC)".
12545 cc_set_by_configure
="\$(CC)"
12546 quoted_cc_set_by_configure
="\$(CC)"
12547 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12548 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12551 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12552 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12553 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12554 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12558 # This is a terrible hack which will go away when a gnattools directory
12560 cc_for_cross_gnattools
=${CC}
12563 out_object_file
=`basename $out_file .c`.o
12567 for f
in $tm_file; do
12570 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12571 tm_include_list
="${tm_include_list} $f"
12574 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12575 tm_include_list
="${tm_include_list} config/$f"
12582 for f
in $tm_p_file; do
12585 tm_p_file_list
="${tm_p_file_list} $f"
12586 tm_p_include_list
="${tm_p_include_list} $f"
12589 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12590 tm_p_include_list
="${tm_p_include_list} config/$f"
12596 for f
in $xm_file; do
12599 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12600 xm_include_list
="${xm_include_list} $f"
12603 xm_file_list
="${xm_file_list} $f"
12604 xm_include_list
="${xm_include_list} $f"
12607 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12608 xm_include_list
="${xm_include_list} config/$f"
12614 host_xm_include_list
=
12615 for f
in $host_xm_file; do
12618 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12619 host_xm_include_list
="${host_xm_include_list} $f"
12622 host_xm_file_list
="${host_xm_file_list} $f"
12623 host_xm_include_list
="${host_xm_include_list} $f"
12626 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12627 host_xm_include_list
="${host_xm_include_list} config/$f"
12632 build_xm_file_list
=
12633 for f
in $build_xm_file; do
12636 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12637 build_xm_include_list
="${build_xm_include_list} $f"
12639 auto-build.h | auto-host.h
)
12640 build_xm_file_list
="${build_xm_file_list} $f"
12641 build_xm_include_list
="${build_xm_include_list} $f"
12644 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12645 build_xm_include_list
="${build_xm_include_list} config/$f"
12650 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12651 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12654 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12655 if test x
$host != x
$target
12657 CROSS
="-DCROSS_COMPILE"
12659 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12660 case "$host","$target" in
12661 # Darwin crosses can use the host system's libraries and headers,
12662 # because of the fat library support. Of course, it must be the
12663 # same version of Darwin on both sides. Allow the user to
12664 # just say --target=foo-darwin without a version number to mean
12665 # "the version on this system".
12666 *-*-darwin*,*-*-darwin*)
12667 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12668 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12669 if test $hostos = $targetos -o $targetos = darwin
; then
12671 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12676 i?
86-*-*,x86_64-
*-* \
12677 | powerpc
*-*-*,powerpc64
*-*-*)
12678 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12680 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12681 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12682 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12685 # If this is a cross-compiler that does not
12686 # have its own set of headers then define
12689 # If this is using newlib, without having the headers available now,
12690 # then define inhibit_libc in LIBGCC2_CFLAGS.
12691 # This prevents libgcc2 from containing any code which requires libc
12694 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12695 test x
$with_newlib = xyes
; } &&
12696 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12697 inhibit_libc
=-Dinhibit_libc
12701 # When building gcc with a cross-compiler, we need to adjust things so
12702 # that the generator programs are still built with the native compiler.
12703 # Also, we cannot run fixincludes or fix-header.
12705 # These are the normal (build=host) settings:
12706 CC_FOR_BUILD
='$(CC)'
12707 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12708 STMP_FIXINC
=stmp-fixinc
12710 # Possibly disable fixproto, on a per-target basis.
12711 case ${use_fixproto} in
12716 STMP_FIXPROTO
=stmp-fixproto
12721 # And these apply if build != host, or we are generating coverage data
12722 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12724 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12726 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12727 if test "x$STMP_FIXPROTO" != x
; then
12728 STMP_FIXPROTO
=stmp-install-fixproto
12733 # Expand extra_headers to include complete path.
12734 # This substitutes for lots of t-* files.
12735 extra_headers_list
=
12736 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12737 for file in ${extra_headers} ; do
12738 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12741 # Define collect2 in Makefile.
12742 case $host_can_use_collect2 in
12744 *) collect2
='collect2$(exeext)' ;;
12748 # Add a definition of USE_COLLECT2 if system wants one.
12749 case $use_collect2 in
12750 no
) use_collect2
= ;;
12753 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12754 xm_defines
="${xm_defines} USE_COLLECT2"
12755 case $host_can_use_collect2 in
12757 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12758 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12759 { (exit 1); exit 1; }; }
12765 # ---------------------------
12766 # Assembler & linker features
12767 # ---------------------------
12769 # Identify the assembler which will work hand-in-glove with the newly
12770 # built GCC, so that we can examine its features. This is the assembler
12771 # which will be driven by the driver program.
12773 # If build != host, and we aren't building gas in-tree, we identify a
12774 # build->target assembler and hope that it will have the same features
12775 # as the host->target assembler we'll be using.
12776 echo "$as_me:$LINENO: checking what assembler to use" >&5
12777 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12780 gcc_cv_gas_major_version
=
12781 gcc_cv_gas_minor_version
=
12782 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12783 if test -x "$DEFAULT_ASSEMBLER"; then
12784 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12785 elif test -x as
$build_exeext; then
12786 # Build using assembler in the current directory.
12787 gcc_cv_as
=.
/as
$build_exeext
12788 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12789 && test -f ..
/gas
/Makefile \
12790 && test x
$build = x
$host; then
12791 # Single tree build which includes gas. We want to prefer it
12792 # over whatever linker top-level may have detected, since
12793 # we'll use what we're building after installation anyway.
12795 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12796 for f
in $gcc_cv_as_bfd_srcdir/configure \
12797 $gcc_cv_as_gas_srcdir/configure \
12798 $gcc_cv_as_gas_srcdir/configure.
in \
12799 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12800 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12801 if test x
$gcc_cv_gas_version != x
; then
12805 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12806 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12807 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12808 case $gcc_cv_gas_patch_version in
12809 "") gcc_cv_gas_patch_version
="0" ;;
12811 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12812 + $gcc_cv_gas_minor_version \) \* 1000 \
12813 + $gcc_cv_gas_patch_version`
12815 rm -f as
$build_exeext
12816 $LN_S ..
/gas
/as-new
$build_exeext as
$build_exeext 2>/dev
/null
12817 in_tree_gas_is_elf
=no
12818 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12819 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12820 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12822 in_tree_gas_is_elf
=yes
12824 elif test -x "$AS_FOR_TARGET"; then
12825 gcc_cv_as
="$AS_FOR_TARGET"
12826 elif test -x "$AS" && test x
$host = x
$target; then
12830 if test "x$gcc_cv_as" = x
; then
12831 # Search the same directories that the installed compiler will
12832 # search. Else we may find the wrong assembler and lose. If we
12833 # do not find a suitable assembler binary, then try the user's
12836 # Also note we have to check MD_EXEC_PREFIX before checking the
12837 # user's path. Unfortunately, there is no good way to get at the
12838 # value of MD_EXEC_PREFIX here. So we do a brute force search
12839 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12840 # to be fixed as part of the make/configure rewrite too.
12842 if test "x$exec_prefix" = xNONE
; then
12843 if test "x$prefix" = xNONE
; then
12844 test_prefix
=/usr
/local
12846 test_prefix
=$prefix
12849 test_prefix
=$exec_prefix
12852 # If the loop below does not find an assembler, then use whatever
12853 # one we can find in the users's path.
12855 if test "x$program_prefix" != xNONE
; then
12856 gcc_cv_as
=${program_prefix}as
$build_exeext
12858 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$build_exeext
12861 if test x
$host = x
$build; then
12862 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12863 $test_prefix/libexec/gcc/$target_noncanonical \
12864 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12865 /usr/lib/gcc/$target_noncanonical \
12866 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12867 $test_prefix/$target_noncanonical/bin"
12872 if test x
$host = x
$target; then
12873 test_dirs
="$test_dirs \
12878 /bsd43/usr/lib/cmplrs/cc \
12879 /usr/cross64/usr/bin \
12880 /usr/lib/cmplrs/cc \
12881 /sysv/usr/lib/cmplrs/cc \
12882 /svr4/usr/lib/cmplrs/cc \
12886 for dir
in $test_dirs; do
12887 if test -x $dir/as
$build_exeext; then
12888 gcc_cv_as
=$dir/as
$build_exeext
12893 case $in_tree_gas in
12895 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12896 echo "${ECHO_T}\"newly built gas\"" >&6
12899 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12900 echo "${ECHO_T}$gcc_cv_as" >&6
12904 # Identify the linker which will work hand-in-glove with the newly
12905 # built GCC, so that we can examine its features. This is the linker
12906 # which will be driven by the driver program.
12908 # If build != host, and we aren't building gas in-tree, we identify a
12909 # build->target linker and hope that it will have the same features
12910 # as the host->target linker we'll be using.
12911 echo "$as_me:$LINENO: checking what linker to use" >&5
12912 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12915 gcc_cv_gld_major_version
=
12916 gcc_cv_gld_minor_version
=
12917 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12918 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12919 if test -x "$DEFAULT_LINKER"; then
12920 gcc_cv_ld
="$DEFAULT_LINKER"
12921 elif test -x collect-ld
$build_exeext; then
12922 # Build using linker in the current directory.
12923 gcc_cv_ld
=.
/collect-ld
$build_exeext
12924 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
12925 && test -f ..
/ld
/Makefile \
12926 && test x
$build = x
$host; then
12927 # Single tree build which includes ld. We want to prefer it
12928 # over whatever linker top-level may have detected, since
12929 # we'll use what we're building after installation anyway.
12931 in_tree_ld_is_elf
=no
12932 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
12933 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
12934 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
12935 in_tree_ld_is_elf
=yes
12937 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
12939 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12940 if test x
$gcc_cv_gld_version != x
; then
12944 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12945 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12946 rm -f collect-ld
$build_exeext
12947 $LN_S ..
/ld
/ld-new
$build_exeext collect-ld
$build_exeext 2>/dev
/null
12948 elif test -x "$LD_FOR_TARGET"; then
12949 gcc_cv_ld
="$LD_FOR_TARGET"
12950 elif test -x "$LD" && test x
$host = x
$target; then
12954 if test "x$gcc_cv_ld" = x
; then
12955 # Search the same directories that the installed compiler will
12956 # search. Else we may find the wrong linker and lose. If we
12957 # do not find a suitable linker binary, then try the user's
12960 # Also note we have to check MD_EXEC_PREFIX before checking the
12961 # user's path. Unfortunately, there is no good way to get at the
12962 # value of MD_EXEC_PREFIX here. So we do a brute force search
12963 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12964 # to be fixed as part of the make/configure rewrite too.
12966 if test "x$exec_prefix" = xNONE
; then
12967 if test "x$prefix" = xNONE
; then
12968 test_prefix
=/usr
/local
12970 test_prefix
=$prefix
12973 test_prefix
=$exec_prefix
12976 # If the loop below does not find an linker, then use whatever
12977 # one we can find in the users's path.
12979 if test "x$program_prefix" != xNONE
; then
12980 gcc_cv_ld
=${program_prefix}ld
$build_exeext
12982 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$build_exeext
12985 if test x
$host = x
$build; then
12986 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12987 $test_prefix/libexec/gcc/$target_noncanonical \
12988 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12989 /usr/lib/gcc/$target_noncanonical \
12990 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12991 $test_prefix/$target_noncanonical/bin"
12996 if test x
$host = x
$target; then
12997 test_dirs
="$test_dirs \
13002 /bsd43/usr/lib/cmplrs/cc \
13003 /usr/cross64/usr/bin \
13004 /usr/lib/cmplrs/cc \
13005 /sysv/usr/lib/cmplrs/cc \
13006 /svr4/usr/lib/cmplrs/cc \
13010 for dir
in $test_dirs; do
13011 if test -x $dir/ld
$build_exeext; then
13012 gcc_cv_ld
=$dir/ld
$build_exeext
13017 case $in_tree_ld in
13019 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13020 echo "${ECHO_T}\"newly built ld\"" >&6
13023 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13024 echo "${ECHO_T}$gcc_cv_ld" >&6
13028 # Figure out what nm we will be using.
13029 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13030 echo "$as_me:$LINENO: checking what nm to use" >&5
13031 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13033 if test -x nm
$build_exeext; then
13034 gcc_cv_nm
=.
/nm
$build_exeext
13035 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13036 && test -f ..
/binutils
/Makefile
; then
13037 # Single tree build which includes binutils.
13039 gcc_cv_nm
=.
/nm
$build_exeext
13040 rm -f nm
$build_exeext
13041 $LN_S ..
/binutils
/nm-new
$build_exeext nm
$build_exeext 2>/dev
/null
13042 elif test "x$program_prefix" != xNONE
; then
13043 gcc_cv_nm
=${program_prefix}nm
$build_exeext
13045 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$build_exeext
13047 case $in_tree_nm in
13048 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13049 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13050 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13051 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13054 # Figure out what objdump we will be using.
13055 echo "$as_me:$LINENO: checking what objdump to use" >&5
13056 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13058 if test -x objdump
$build_exeext; then
13059 gcc_cv_objdump
=.
/objdump
$build_exeext
13060 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13061 && test -f ..
/binutils
/Makefile
; then
13062 # Single tree build which includes binutils.
13063 in_tree_objdump
=yes
13064 gcc_cv_objdump
=.
/objdump
$build_exeext
13065 rm -f objdump
$build_exeext
13066 $LN_S ..
/binutils
/objdump
$build_exeext objdump
$build_exeext 2>/dev
/null
13067 elif test "x$program_prefix" != xNONE
; then
13068 gcc_cv_objdump
=${program_prefix}objdump
$build_exeext
13070 gcc_cv_objdump
=`echo objdump | \
13071 sed "${program_transform_name}"`$build_exeext
13073 case $in_tree_objdump in
13074 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13075 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13076 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13077 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13080 # Figure out what assembler alignment features are present.
13081 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13082 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13083 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 gcc_cv_as_balign_and_p2align
=no
13087 if test $in_tree_gas = yes; then
13088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13089 then gcc_cv_as_balign_and_p2align
=yes
13091 elif test x
$gcc_cv_as != x
; then
13093 .p2align 2' > conftest.s
13094 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; }
13101 gcc_cv_as_balign_and_p2align
=yes
13103 echo "configure: failed program was" >&5
13106 rm -f conftest.o conftest.s
13109 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13110 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13111 if test $gcc_cv_as_balign_and_p2align = yes; then
13113 cat >>confdefs.h
<<\_ACEOF
13114 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13119 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13120 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13121 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13124 gcc_cv_as_max_skip_p2align
=no
13125 if test $in_tree_gas = yes; then
13126 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13127 then gcc_cv_as_max_skip_p2align
=yes
13129 elif test x
$gcc_cv_as != x
; then
13130 echo '.p2align 4,,7' > conftest.s
13131 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; }
13138 gcc_cv_as_max_skip_p2align
=yes
13140 echo "configure: failed program was" >&5
13143 rm -f conftest.o conftest.s
13146 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13147 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13148 if test $gcc_cv_as_max_skip_p2align = yes; then
13150 cat >>confdefs.h
<<\_ACEOF
13151 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13156 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13157 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13158 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 gcc_cv_as_subsection_m1
=no
13162 if test $in_tree_gas = yes; then
13163 if test $in_tree_gas_is_elf = yes \
13164 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13165 then gcc_cv_as_subsection_m1
=yes
13167 elif test x
$gcc_cv_as != x
; then
13168 echo 'conftest_label1: .word 0
13170 conftest_label2: .word 0
13171 .previous' > conftest.s
13172 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }
13179 if test x
$gcc_cv_nm != x
; then
13180 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13181 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13182 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13184 else gcc_cv_as_subsection_m1
=yes
13186 rm -f conftest.nm1 conftest.nm2
13189 echo "configure: failed program was" >&5
13192 rm -f conftest.o conftest.s
13195 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13196 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13197 if test $gcc_cv_as_subsection_m1 = yes; then
13199 cat >>confdefs.h
<<\_ACEOF
13200 #define HAVE_GAS_SUBSECTION_ORDERING 1
13205 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13206 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13207 if test "${gcc_cv_as_weak+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 if test $in_tree_gas = yes; then
13212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13213 then gcc_cv_as_weak
=yes
13215 elif test x
$gcc_cv_as != x
; then
13216 echo ' .weak foobar' > conftest.s
13217 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }
13226 echo "configure: failed program was" >&5
13229 rm -f conftest.o conftest.s
13232 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13233 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13234 if test $gcc_cv_as_weak = yes; then
13236 cat >>confdefs.h
<<\_ACEOF
13237 #define HAVE_GAS_WEAK 1
13242 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13243 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13244 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 gcc_cv_as_nsubspa_comdat
=no
13248 if test $in_tree_gas = yes; then
13249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13250 then gcc_cv_as_nsubspa_comdat
=yes
13252 elif test x
$gcc_cv_as != x
; then
13253 echo ' .SPACE $TEXT$
13254 .NSUBSPA $CODE$,COMDAT' > conftest.s
13255 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }
13262 gcc_cv_as_nsubspa_comdat
=yes
13264 echo "configure: failed program was" >&5
13267 rm -f conftest.o conftest.s
13270 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13271 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13272 if test $gcc_cv_as_nsubspa_comdat = yes; then
13274 cat >>confdefs.h
<<\_ACEOF
13275 #define HAVE_GAS_NSUBSPA_COMDAT 1
13280 # .hidden needs to be supported in both the assembler and the linker,
13281 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13282 # This is irritatingly difficult to feature test for; we have to check the
13283 # date string after the version number. If we've got an in-tree
13284 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13286 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13287 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13288 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13289 if test "${gcc_cv_as_hidden+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 gcc_cv_as_hidden
=no
13293 if test $in_tree_gas = yes; then
13294 if test $in_tree_gas_is_elf = yes \
13295 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13296 then gcc_cv_as_hidden
=yes
13298 elif test x
$gcc_cv_as != x
; then
13299 echo ' .hidden foobar
13300 foobar:' > conftest.s
13301 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }
13308 gcc_cv_as_hidden
=yes
13310 echo "configure: failed program was" >&5
13313 rm -f conftest.o conftest.s
13316 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13317 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13320 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13321 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13322 if test "${gcc_cv_ld_hidden+set}" = set; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 if test $in_tree_ld = yes ; then
13326 gcc_cv_ld_hidden
=no
13327 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 \
13328 && test $in_tree_ld_is_elf = yes; then
13329 gcc_cv_ld_hidden
=yes
13332 gcc_cv_ld_hidden
=yes
13333 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13334 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13335 ld_vers
=`echo $ld_ver | sed -n \
13336 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13337 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13338 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13339 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13340 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13341 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13342 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'`
13343 if test 0"$ld_date" -lt 20020404; then
13344 if test -n "$ld_date"; then
13345 # If there was date string, but was earlier than 2002-04-04, fail
13346 gcc_cv_ld_hidden
=no
13347 elif test -z "$ld_vers"; then
13348 # If there was no date string nor ld version number, something is wrong
13349 gcc_cv_ld_hidden
=no
13351 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13352 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13353 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13354 test -z "$ld_vers_patch" && ld_vers_patch
=0
13355 if test "$ld_vers_major" -lt 2; then
13356 gcc_cv_ld_hidden
=no
13357 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13358 gcc_cv_ld_hidden
="no"
13359 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13360 gcc_cv_ld_hidden
=no
13365 case "${target}" in
13366 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13367 gcc_cv_ld_hidden
=yes
13370 gcc_cv_ld_hidden
=no
13376 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13377 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13378 libgcc_visibility
=no
13380 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13381 libgcc_visibility
=yes
13383 cat >>confdefs.h
<<\_ACEOF
13384 #define HAVE_GAS_HIDDEN 1
13389 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13390 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13391 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13392 if test "${gcc_cv_as_leb128+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 gcc_cv_as_leb128
=no
13396 if test $in_tree_gas = yes; then
13397 if test $in_tree_gas_is_elf = yes \
13398 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13399 then gcc_cv_as_leb128
=yes
13401 elif test x
$gcc_cv_as != x
; then
13408 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; }
13415 # GAS versions before 2.11 do not support uleb128,
13416 # despite appearing to.
13417 # ??? There exists an elf-specific test that will crash
13418 # the assembler. Perhaps it's better to figure out whether
13419 # arbitrary sections are supported and try the test.
13420 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13421 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13422 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13423 as_major
=`echo $as_ver | sed 's/\..*//'`
13424 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13425 if test $as_major -eq 2 && test $as_minor -lt 11
13427 else gcc_cv_as_leb128
=yes
13431 echo "configure: failed program was" >&5
13434 rm -f conftest.o conftest.s
13437 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13438 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13439 if test $gcc_cv_as_leb128 = yes; then
13441 cat >>confdefs.h
<<\_ACEOF
13442 #define HAVE_AS_LEB128 1
13447 # GAS versions up to and including 2.11.0 may mis-optimize
13449 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13450 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13451 if test "${gcc_cv_as_eh_frame+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 gcc_cv_as_eh_frame
=no
13455 if test $in_tree_gas = yes; then
13456 if test $in_tree_gas_is_elf = yes \
13457 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13458 then gcc_cv_as_eh_frame
=yes
13460 elif test x
$gcc_cv_as != x
; then
13467 .section .eh_frame,"aw",@progbits
13469 .4byte .LECIE1-.LSCIE1
13483 .4byte .LEFDE1-.LASFDE1
13485 .4byte .LASFDE1-__FRAME_BEGIN__
13492 .LEFDE1:' > conftest.s
13493 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }
13500 cat > conftest.lit
<<EOF
13501 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13502 0010 01000000 12000000 18000000 00000000 ................
13503 0020 08000000 04080000 0044 .........D
13505 cat > conftest.big
<<EOF
13506 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13507 0010 00000001 00000012 00000018 00000000 ................
13508 0020 00000008 04000000 0844 .........D
13510 # If the assembler didn't choke, and we can objdump,
13511 # and we got the correct data, then succeed.
13512 if test x
$gcc_cv_objdump != x \
13513 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13514 |
tail -3 > conftest.got \
13515 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13516 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13518 gcc_cv_as_eh_frame
=yes
13519 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13525 gcc_cv_as_eh_frame
=buggy
13527 # Uh oh, what do we do now?
13528 gcc_cv_as_eh_frame
=no
13531 echo "configure: failed program was" >&5
13534 rm -f conftest.o conftest.s
13537 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13538 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13541 if test $gcc_cv_as_eh_frame = buggy
; then
13543 cat >>confdefs.h
<<\_ACEOF
13544 #define USE_AS_TRADITIONAL_FORMAT 1
13549 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13550 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13551 if test "${gcc_cv_as_shf_merge+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 gcc_cv_as_shf_merge
=no
13555 if test $in_tree_gas = yes; then
13556 if test $in_tree_gas_is_elf = yes \
13557 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13558 then gcc_cv_as_shf_merge
=yes
13560 elif test x
$gcc_cv_as != x
; then
13561 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13562 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; }
13569 gcc_cv_as_shf_merge
=yes
13571 echo "configure: failed program was" >&5
13574 rm -f conftest.o conftest.s
13577 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13578 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13580 if test $gcc_cv_as_shf_merge = no
; then
13581 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13582 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13583 if test "${gcc_cv_as_shf_merge+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 gcc_cv_as_shf_merge
=no
13587 if test $in_tree_gas = yes; then
13588 if test $in_tree_gas_is_elf = yes \
13589 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13590 then gcc_cv_as_shf_merge
=yes
13592 elif test x
$gcc_cv_as != x
; then
13593 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13594 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }
13601 gcc_cv_as_shf_merge
=yes
13603 echo "configure: failed program was" >&5
13606 rm -f conftest.o conftest.s
13609 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13610 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13614 cat >>confdefs.h
<<_ACEOF
13615 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13619 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13620 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13621 if test "${gcc_cv_as_comdat_group+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 gcc_cv_as_comdat_group
=no
13625 if test $in_tree_gas = yes; then
13626 if test $in_tree_gas_is_elf = yes \
13627 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13628 then gcc_cv_as_comdat_group
=yes
13630 elif test x
$gcc_cv_as != x
; then
13631 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13632 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }
13639 gcc_cv_as_comdat_group
=yes
13641 echo "configure: failed program was" >&5
13644 rm -f conftest.o conftest.s
13647 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13648 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13650 if test $gcc_cv_as_comdat_group = yes; then
13651 gcc_cv_as_comdat_group_percent
=no
13653 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13654 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13655 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 gcc_cv_as_comdat_group_percent
=no
13659 if test $in_tree_gas = yes; then
13660 if test $in_tree_gas_is_elf = yes \
13661 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13662 then gcc_cv_as_comdat_group_percent
=yes
13664 elif test x
$gcc_cv_as != x
; then
13665 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13666 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }
13673 gcc_cv_as_comdat_group_percent
=yes
13675 echo "configure: failed program was" >&5
13678 rm -f conftest.o conftest.s
13681 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13682 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13686 cat >>confdefs.h
<<_ACEOF
13687 #define HAVE_GAS_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`
13691 # Thread-local storage - the check is heavily parametrized.
13699 .section ".tdata","awT",@progbits
13702 ldq $27,__tls_get_addr($29) !literal!1
13703 lda $16,foo($29) !tlsgd!1
13704 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13705 ldq $27,__tls_get_addr($29) !literal!2
13706 lda $16,foo($29) !tlsldm!2
13707 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13708 ldq $1,foo($29) !gotdtprel
13709 ldah $2,foo($29) !dtprelhi
13710 lda $3,foo($2) !dtprello
13711 lda $4,foo($29) !dtprel
13712 ldq $1,foo($29) !gottprel
13713 ldah $2,foo($29) !tprelhi
13714 lda $3,foo($2) !tprello
13715 lda $4,foo($29) !tprel'
13718 tls_as_opt
=--fatal-warnings
13722 .section ".tdata","awT",@progbits
13725 call #gettlsoff(x)'
13731 .section ".tdata","awT",@progbits
13735 leal foo@TLSGD(,%ebx,1), %eax
13736 leal foo@TLSLDM(%ebx), %eax
13737 leal foo@DTPOFF(%eax), %edx
13738 movl foo@GOTTPOFF(%ebx), %eax
13739 subl foo@GOTTPOFF(%ebx), %eax
13740 addl foo@GOTNTPOFF(%ebx), %eax
13741 movl foo@INDNTPOFF, %eax
13742 movl $foo@TPOFF, %eax
13743 subl $foo@TPOFF, %eax
13744 leal foo@NTPOFF(%ecx), %eax'
13747 tls_as_opt
=--fatal-warnings
13751 .section ".tdata","awT",@progbits
13755 leaq foo@TLSGD(%rip), %rdi
13756 leaq foo@TLSLD(%rip), %rdi
13757 leaq foo@DTPOFF(%rax), %rdx
13758 movq foo@GOTTPOFF(%rip), %rax
13759 movq $foo@TPOFF, %rax'
13762 tls_as_opt
=--fatal-warnings
13766 .section ".tdata","awT",@progbits
13769 addl r16 = @ltoff(@dtpmod(foo#)), gp
13770 addl r17 = @ltoff(@dtprel(foo#)), gp
13771 addl r18 = @ltoff(@tprel(foo#)), gp
13772 addl r19 = @dtprel(foo#), gp
13773 adds r21 = @dtprel(foo#), r13
13774 movl r23 = @dtprel(foo#)
13775 addl r20 = @tprel(foo#), gp
13776 adds r22 = @tprel(foo#), r13
13777 movl r24 = @tprel(foo#)'
13780 tls_as_opt
=--fatal-warnings
13784 .section ".tdata","awT",@progbits
13792 addi 3,31,ld0@got@tlsgd
13794 addi 3,31,x1@got@tlsld
13797 addis 9,3,x2@dtprel@ha
13798 addi 9,9,x2@dtprel@l
13799 lwz 9,x3@got@tprel(31)
13802 addis 9,2,x2@tprel@ha
13803 addi 9,9,x2@tprel@l'
13806 tls_as_opt
="-a32 --fatal-warnings"
13810 .section ".tdata","awT",@progbits
13818 addi 3,2,ld0@got@tlsgd
13824 addi 3,2,x1@got@tlsld
13830 addis 9,3,x2@dtprel@ha
13831 addi 9,9,x2@dtprel@l
13834 ld 9,x3@got@dtprel(2)
13840 tls_as_opt
="-a64 --fatal-warnings"
13844 .section ".tdata","awT",@progbits
13851 .long foo@GOTNTPOFF
13852 .long foo@INDNTPOFF
13853 l %r1,foo@GOTNTPOFF(%r12)
13854 l %r1,0(%r1):tls_load:foo
13855 bas %r14,0(%r1,%r13):tls_gdcall:foo
13856 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13859 tls_as_opt
="-m31 --fatal-warnings"
13863 .section ".tdata","awT",@progbits
13870 .quad foo@GOTNTPOFF
13871 lg %r1,foo@GOTNTPOFF(%r12)
13872 larl %r1,foo@INDNTPOFF
13873 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13874 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13877 tls_as_opt
="-m64 -Aesame --fatal-warnings"
13879 sh-
*-* | sh
[34]-*-*)
13881 .section ".tdata","awT",@progbits
13891 tls_as_opt
=--fatal-warnings
13895 sparc
*-sun-solaris2.
*)
13902 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
13904 .section ".tdata",#alloc,#write,#tls
13907 sethi %tgd_hi22(foo), %o0
13908 add %o0, %tgd_lo10(foo), %o1
13909 add %l7, %o1, %o0, %tgd_add(foo)
13910 call __tls_get_addr, %tgd_call(foo)
13911 sethi %tldm_hi22(foo), %l1
13912 add %l1, %tldm_lo10(foo), %l2
13913 add %l7, %l2, %o0, %tldm_add(foo)
13914 call __tls_get_addr, %tldm_call(foo)
13915 sethi %tldo_hix22(foo), %l3
13916 xor %l3, %tldo_lox10(foo), %l4
13917 add %o0, %l4, %l5, %tldo_add(foo)
13918 sethi %tie_hi22(foo), %o3
13919 add %o3, %tie_lo10(foo), %o3
13920 ld [%l7 + %o3], %o2, %tie_ld(foo)
13921 add %g7, %o2, %o4, %tie_add(foo)
13922 sethi %tle_hix22(foo), %l1
13923 xor %l1, %tle_lox10(foo), %o5
13924 ld [%g7 + %o5], %o1'
13929 .section ".tdata","awT",@progbits
13932 sethi %tgd_hi22(foo), %o0
13933 add %o0, %tgd_lo10(foo), %o1
13934 add %l7, %o1, %o0, %tgd_add(foo)
13935 call __tls_get_addr, %tgd_call(foo)
13936 sethi %tldm_hi22(foo), %l1
13937 add %l1, %tldm_lo10(foo), %l2
13938 add %l7, %l2, %o0, %tldm_add(foo)
13939 call __tls_get_addr, %tldm_call(foo)
13940 sethi %tldo_hix22(foo), %l3
13941 xor %l3, %tldo_lox10(foo), %l4
13942 add %o0, %l4, %l5, %tldo_add(foo)
13943 sethi %tie_hi22(foo), %o3
13944 add %o3, %tie_lo10(foo), %o3
13945 ld [%l7 + %o3], %o2, %tie_ld(foo)
13946 add %g7, %o2, %o4, %tie_add(foo)
13947 sethi %tle_hix22(foo), %l1
13948 xor %l1, %tle_lox10(foo), %o5
13949 ld [%g7 + %o5], %o1'
13952 tls_as_opt
="-32 --fatal-warnings"
13956 if test -z "$tls_first_major"; then
13957 : # If we don't have a check, assume no support.
13959 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13960 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13961 if test "${gcc_cv_as_tls+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13965 if test $in_tree_gas = yes; then
13966 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13967 then gcc_cv_as_tls
=yes
13969 elif test x
$gcc_cv_as != x
; then
13970 echo "$conftest_s" > conftest.s
13971 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }
13980 echo "configure: failed program was" >&5
13983 rm -f conftest.o conftest.s
13986 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13987 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13988 if test $gcc_cv_as_tls = yes; then
13990 cat >>confdefs.h
<<\_ACEOF
13991 #define HAVE_AS_TLS 1
13997 # Target-specific assembler checks.
13999 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14000 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14001 gcc_cv_ld_static_dynamic
=no
14002 if test $in_tree_ld = yes ; then
14003 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14004 gcc_cv_ld_static_dynamic
=yes
14006 elif test x
$gcc_cv_ld != x
; then
14007 # Check if linker supports -Bstatic/-Bdynamic option
14008 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14009 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14010 gcc_cv_ld_static_dynamic
=yes
14013 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14015 cat >>confdefs.h
<<\_ACEOF
14016 #define HAVE_LD_STATIC_DYNAMIC 1
14020 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14021 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14023 if test x
"$demangler_in_ld" = xyes
; then
14024 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14025 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14026 gcc_cv_ld_demangle
=no
14027 if test $in_tree_ld = yes; then
14028 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 \
14029 gcc_cv_ld_demangle
=yes
14031 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14032 # Check if the GNU linker supports --demangle option
14033 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14034 gcc_cv_ld_demangle
=yes
14037 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14039 cat >>confdefs.h
<<\_ACEOF
14040 #define HAVE_LD_DEMANGLE 1
14044 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14045 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14049 # All TARGET_ABI_OSF targets.
14050 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14051 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14052 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14053 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 gcc_cv_as_alpha_explicit_relocs
=no
14057 if test $in_tree_gas = yes; then
14058 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14059 then gcc_cv_as_alpha_explicit_relocs
=yes
14061 elif test x
$gcc_cv_as != x
; then
14062 echo ' .set nomacro
14064 extbl $3, $2, $3 !lituse_bytoff!1
14065 ldq $2, a($29) !literal!1
14066 ldq $4, b($29) !literal!2
14067 ldq_u $3, 0($2) !lituse_base!1
14068 ldq $27, f($29) !literal!5
14069 jsr $26, ($27), f !lituse_jsr!5
14070 ldah $29, 0($26) !gpdisp!3
14071 lda $0, c($29) !gprel
14072 ldah $1, d($29) !gprelhigh
14073 lda $1, d($1) !gprellow
14074 lda $29, 0($29) !gpdisp!3' > conftest.s
14075 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }
14082 gcc_cv_as_alpha_explicit_relocs
=yes
14084 echo "configure: failed program was" >&5
14087 rm -f conftest.o conftest.s
14090 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14091 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14092 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14094 cat >>confdefs.h
<<\_ACEOF
14095 #define HAVE_AS_EXPLICIT_RELOCS 1
14099 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14100 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14101 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 gcc_cv_as_alpha_jsrdirect_relocs
=no
14105 if test $in_tree_gas = yes; then
14106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14107 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14109 elif test x
$gcc_cv_as != x
; then
14110 echo ' .set nomacro
14112 ldq $27, a($29) !literal!1
14113 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14114 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }
14121 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14123 echo "configure: failed program was" >&5
14126 rm -f conftest.o conftest.s
14129 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14130 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14131 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14133 cat >>confdefs.h
<<\_ACEOF
14134 #define HAVE_AS_JSRDIRECT_RELOCS 1
14141 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14142 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14143 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 gcc_cv_as_cris_no_mul_bug
=no
14147 if test $in_tree_gas = yes; then
14148 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14149 then gcc_cv_as_cris_no_mul_bug
=yes
14151 elif test x
$gcc_cv_as != x
; then
14152 echo '.text' > conftest.s
14153 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }
14160 gcc_cv_as_cris_no_mul_bug
=yes
14162 echo "configure: failed program was" >&5
14165 rm -f conftest.o conftest.s
14168 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14169 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14170 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14172 cat >>confdefs.h
<<\_ACEOF
14173 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14180 echo "$as_me:$LINENO: checking assembler for .register" >&5
14181 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14182 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14185 gcc_cv_as_sparc_register_op
=no
14186 if test x
$gcc_cv_as != x
; then
14187 echo '.register %g2, #scratch' > conftest.s
14188 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; }
14195 gcc_cv_as_sparc_register_op
=yes
14197 echo "configure: failed program was" >&5
14200 rm -f conftest.o conftest.s
14203 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14204 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14205 if test $gcc_cv_as_sparc_register_op = yes; then
14207 cat >>confdefs.h
<<\_ACEOF
14208 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14213 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14214 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14215 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 gcc_cv_as_sparc_relax
=no
14219 if test x
$gcc_cv_as != x
; then
14220 echo '.text' > conftest.s
14221 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }
14228 gcc_cv_as_sparc_relax
=yes
14230 echo "configure: failed program was" >&5
14233 rm -f conftest.o conftest.s
14236 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14237 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14238 if test $gcc_cv_as_sparc_relax = yes; then
14240 cat >>confdefs.h
<<\_ACEOF
14241 #define HAVE_AS_RELAX_OPTION 1
14246 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14247 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14248 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 gcc_cv_as_sparc_ua_pcrel
=no
14252 if test x
$gcc_cv_as != x
; then
14259 .uaword %r_disp32(foo)' > conftest.s
14260 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }
14267 if test x
$gcc_cv_ld != x \
14268 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14269 gcc_cv_as_sparc_ua_pcrel
=yes
14273 echo "configure: failed program was" >&5
14276 rm -f conftest.o conftest.s
14279 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14280 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14281 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14283 cat >>confdefs.h
<<\_ACEOF
14284 #define HAVE_AS_SPARC_UA_PCREL 1
14288 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14289 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14290 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14293 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14294 if test x
$gcc_cv_as != x
; then
14298 .uaword %r_disp32(foo)
14299 .byte 0x32, 0x33, 0x34
14303 .skip 4' > conftest.s
14304 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }
14311 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14312 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14313 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14314 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14315 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14316 |
grep 'DISP32' > /dev
/null
2>&1; then
14319 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14324 echo "configure: failed program was" >&5
14327 rm -f conftest.o conftest.s
14330 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14331 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14332 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14334 cat >>confdefs.h
<<\_ACEOF
14335 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14340 fi # unaligned pcrel relocs
14342 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14343 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14344 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 gcc_cv_as_sparc_offsetable_lo10
=no
14348 if test x
$gcc_cv_as != x
; then
14350 or %g1, %lo(ab) + 12, %g1
14351 or %g1, %lo(ab + 12), %g1' > conftest.s
14352 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; }
14359 if test x
$gcc_cv_objdump != x \
14360 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14361 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14362 gcc_cv_as_sparc_offsetable_lo10
=yes
14365 echo "configure: failed program was" >&5
14368 rm -f conftest.o conftest.s
14371 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14372 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14373 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14375 cat >>confdefs.h
<<\_ACEOF
14376 #define HAVE_AS_OFFSETABLE_LO10 1
14382 i
[34567]86-*-* | x86_64-
*-*)
14384 cygwin
* | pe | mingw32
*)
14385 # Used for DWARF 2 in PE
14386 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14387 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14388 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14391 gcc_cv_as_ix86_pe_secrel32
=no
14392 if test $in_tree_gas = yes; then
14393 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14394 then gcc_cv_as_ix86_pe_secrel32
=yes
14396 elif test x
$gcc_cv_as != x
; then
14400 .secrel32 foo' > conftest.s
14401 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; }
14408 if test x
$gcc_cv_ld != x \
14409 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14410 gcc_cv_as_ix86_pe_secrel32
=yes
14414 echo "configure: failed program was" >&5
14417 rm -f conftest.o conftest.s
14420 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14421 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14422 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14424 cat >>confdefs.h
<<\_ACEOF
14425 #define HAVE_GAS_PE_SECREL32_RELOC 1
14432 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14433 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14434 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 gcc_cv_as_ix86_filds_fists
=no
14438 if test $in_tree_gas = yes; then
14439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14440 then gcc_cv_as_ix86_filds_fists
=yes
14442 elif test x
$gcc_cv_as != x
; then
14443 echo 'filds mem; fists mem' > conftest.s
14444 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }
14451 gcc_cv_as_ix86_filds_fists
=yes
14453 echo "configure: failed program was" >&5
14456 rm -f conftest.o conftest.s
14459 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14460 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14461 if test $gcc_cv_as_ix86_filds_fists = yes; then
14463 cat >>confdefs.h
<<\_ACEOF
14464 #define HAVE_GAS_FILDS_FISTS 1
14469 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14470 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14471 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14474 gcc_cv_as_ix86_cmov_sun_syntax
=no
14475 if test x
$gcc_cv_as != x
; then
14476 echo 'cmovl.l %edx, %eax' > conftest.s
14477 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }
14484 gcc_cv_as_ix86_cmov_sun_syntax
=yes
14486 echo "configure: failed program was" >&5
14489 rm -f conftest.o conftest.s
14492 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14493 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14494 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14496 cat >>confdefs.h
<<\_ACEOF
14497 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14502 # This one is used unconditionally by i386.[ch]; it is to be defined
14503 # to 1 if the feature is present, 0 otherwise.
14504 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14505 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14506 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 gcc_cv_as_ix86_gotoff_in_data
=no
14510 if test $in_tree_gas = yes; then
14511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14512 then gcc_cv_as_ix86_gotoff_in_data
=yes
14514 elif test x
$gcc_cv_as != x
; then
14519 .long .L0@GOTOFF' > conftest.s
14520 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; }
14527 gcc_cv_as_ix86_gotoff_in_data
=yes
14529 echo "configure: failed program was" >&5
14532 rm -f conftest.o conftest.s
14535 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14536 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14539 cat >>confdefs.h
<<_ACEOF
14540 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14546 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14547 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14548 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
14552 if test $in_tree_gas = yes; then
14553 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14554 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14556 elif test x
$gcc_cv_as != x
; then
14558 addl r15 = @ltoffx(x#), gp
14560 ld8.mov r16 = [r15], x#' > conftest.s
14561 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }
14568 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14570 echo "configure: failed program was" >&5
14573 rm -f conftest.o conftest.s
14576 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14577 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14578 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14580 cat >>confdefs.h
<<\_ACEOF
14581 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14590 *-*-aix*) conftest_s
=' .csect .text[PR]
14593 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14594 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14595 if test "${gcc_cv_as_machine_directive+set}" = set; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14598 gcc_cv_as_machine_directive
=no
14599 if test x
$gcc_cv_as != x
; then
14600 echo ' .machine ppc7400' > conftest.s
14601 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }
14608 gcc_cv_as_machine_directive
=yes
14610 echo "configure: failed program was" >&5
14613 rm -f conftest.o conftest.s
14616 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14617 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14619 if test x
$gcc_cv_as_machine_directive != xyes
; then
14620 echo "*** This target requires an assembler supporting \".machine\"" >&2
14621 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
14622 test x
$build = x
$target && exit 1
14626 *) conftest_s
=' .machine power4
14631 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14632 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14633 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14634 echo $ECHO_N "(cached) $ECHO_C" >&6
14636 gcc_cv_as_powerpc_mfcrf
=no
14637 if test $in_tree_gas = yes; then
14638 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14639 then gcc_cv_as_powerpc_mfcrf
=yes
14641 elif test x
$gcc_cv_as != x
; then
14642 echo "$conftest_s" > conftest.s
14643 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }
14650 gcc_cv_as_powerpc_mfcrf
=yes
14652 echo "configure: failed program was" >&5
14655 rm -f conftest.o conftest.s
14658 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14659 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14660 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14662 cat >>confdefs.h
<<\_ACEOF
14663 #define HAVE_AS_MFCRF 1
14670 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14671 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14672 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 gcc_cv_as_mips_explicit_relocs
=no
14676 if test $in_tree_gas = yes; then
14677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14678 then gcc_cv_as_mips_explicit_relocs
=yes
14680 elif test x
$gcc_cv_as != x
; then
14681 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14682 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; }
14689 gcc_cv_as_mips_explicit_relocs
=yes
14691 echo "configure: failed program was" >&5
14694 rm -f conftest.o conftest.s
14697 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14698 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14699 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14700 if test x
$target_cpu_default = x
14701 then target_cpu_default
=MASK_EXPLICIT_RELOCS
14702 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14706 if test x
$gas_flag = xyes \
14707 ||
test x
"$host" != x
"$build" \
14708 ||
test ! -x "$gcc_cv_as" \
14709 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
14712 echo "*** This configuration requires the GNU assembler" >&2
14717 # ??? Not all targets support dwarf2 debug_line, even within a version
14718 # of gas. Moreover, we need to emit a valid instruction to trigger any
14719 # info to the output file. So, as supported targets are added to gas 2.11,
14720 # add some instruction here to (also) show we expect this might work.
14721 # ??? Once 2.11 is released, probably need to add first known working
14722 # version to the per-target configury.
14724 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
14725 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
14726 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-*)
14729 ia64
*-*-* | s390
*-*-*)
14736 if test x
"$insn" != x
; then
14738 .file 1 \"conftest.s\"
14741 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14742 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14743 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 gcc_cv_as_dwarf2_debug_line
=no
14747 if test $in_tree_gas = yes; then
14748 if test $in_tree_gas_is_elf = yes \
14749 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14750 then gcc_cv_as_dwarf2_debug_line
=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 if test x
$gcc_cv_objdump != x \
14762 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
14763 |
grep debug_line
> /dev
/null
2>&1; then
14764 gcc_cv_as_dwarf2_debug_line
=yes
14767 echo "configure: failed program was" >&5
14770 rm -f conftest.o conftest.s
14773 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14774 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14777 # The .debug_line file table must be in the exact order that
14778 # we specified the files, since these indices are also used
14779 # by DW_AT_decl_file. Approximate this test by testing if
14780 # the assembler bitches if the same index is assigned twice.
14781 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14782 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14783 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 gcc_cv_as_dwarf2_file_buggy
=no
14787 if test x
$gcc_cv_as != x
; then
14788 echo ' .file 1 "foo.s"
14789 .file 1 "bar.s"' > conftest.s
14790 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; }
14797 gcc_cv_as_dwarf2_file_buggy
=yes
14799 echo "configure: failed program was" >&5
14802 rm -f conftest.o conftest.s
14805 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14806 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14809 if test $gcc_cv_as_dwarf2_debug_line = yes \
14810 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
14812 cat >>confdefs.h
<<\_ACEOF
14813 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14818 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14819 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14820 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14823 gcc_cv_as_gdwarf2_flag
=no
14824 if test $in_tree_gas = yes; then
14825 if test $in_tree_gas_is_elf = yes \
14826 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14827 then gcc_cv_as_gdwarf2_flag
=yes
14829 elif test x
$gcc_cv_as != x
; then
14830 echo "$insn" > conftest.s
14831 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; }
14838 gcc_cv_as_gdwarf2_flag
=yes
14840 echo "configure: failed program was" >&5
14843 rm -f conftest.o conftest.s
14846 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14847 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14848 if test $gcc_cv_as_gdwarf2_flag = yes; then
14850 cat >>confdefs.h
<<\_ACEOF
14851 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14856 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14857 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14858 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14859 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 gcc_cv_as_gstabs_flag
=no
14862 if test $in_tree_gas = yes; then
14863 if test $in_tree_gas_is_elf = yes \
14864 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14865 then gcc_cv_as_gstabs_flag
=yes
14867 elif test x
$gcc_cv_as != x
; then
14868 echo "$insn" > conftest.s
14869 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; }
14876 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14877 # and warns about it, but still exits successfully. So check for
14879 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }
14886 else gcc_cv_as_gstabs_flag
=yes
14889 echo "configure: failed program was" >&5
14892 rm -f conftest.o conftest.s
14895 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14896 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14897 if test $gcc_cv_as_gstabs_flag = yes; then
14899 cat >>confdefs.h
<<\_ACEOF
14900 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14906 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14907 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14908 gcc_cv_ld_ro_rw_mix
=unknown
14909 if test $in_tree_ld = yes ; then
14910 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 \
14911 && test $in_tree_ld_is_elf = yes; then
14912 gcc_cv_ld_ro_rw_mix
=read-write
14914 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
14915 echo '.section myfoosect, "a"' > conftest1.s
14916 echo '.section myfoosect, "aw"' > conftest2.s
14917 echo '.byte 1' >> conftest2.s
14918 echo '.section myfoosect, "a"' > conftest3.s
14919 echo '.byte 0' >> conftest3.s
14920 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14921 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14922 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
14923 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14924 conftest2.o conftest3.o
> /dev
/null
2>&1; then
14925 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
14926 | sed -e '/myfoosect/!d' -e N`
14927 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
14928 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
14929 gcc_cv_ld_ro_rw_mix
=read-only
14931 gcc_cv_ld_ro_rw_mix
=read-write
14935 rm -f conftest.
* conftest
[123].
*
14937 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
14939 cat >>confdefs.h
<<\_ACEOF
14940 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14944 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14945 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14947 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14948 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14949 gcc_cv_ld_eh_frame_hdr
=no
14950 if test $in_tree_ld = yes ; then
14951 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 \
14952 && test $in_tree_ld_is_elf = yes; then
14953 gcc_cv_ld_eh_frame_hdr
=yes
14955 elif test x
$gcc_cv_ld != x
; then
14956 # Check if linker supports --eh-frame-hdr option
14957 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
14958 gcc_cv_ld_eh_frame_hdr
=yes
14961 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
14963 cat >>confdefs.h
<<\_ACEOF
14964 #define HAVE_LD_EH_FRAME_HDR 1
14968 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14969 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14971 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14972 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14974 if test $in_tree_ld = yes ; then
14975 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 \
14976 && test $in_tree_ld_is_elf = yes; then
14979 elif test x
$gcc_cv_ld != x
; then
14980 # Check if linker supports -pie option
14981 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
14985 if test x
"$gcc_cv_ld_pie" = xyes
; then
14987 cat >>confdefs.h
<<\_ACEOF
14988 #define HAVE_LD_PIE 1
14992 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14993 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14999 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15000 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15001 if test "${gcc_cv_ld_as_needed+set}" = set; then
15002 echo $ECHO_N "(cached) $ECHO_C" >&6
15004 gcc_cv_ld_as_needed
=no
15005 if test $in_tree_ld = yes ; then
15006 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 \
15007 && test $in_tree_ld_is_elf = yes; then
15008 gcc_cv_ld_as_needed
=yes
15010 elif test x
$gcc_cv_ld != x
; then
15011 # Check if linker supports --as-needed and --no-as-needed options
15012 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
15013 gcc_cv_ld_as_needed
=yes
15018 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15019 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15020 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
15022 cat >>confdefs.h
<<\_ACEOF
15023 #define HAVE_LD_AS_NEEDED 1
15028 case "$target:$tm_file" in
15029 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
15030 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15031 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15032 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15035 gcc_cv_ld_no_dot_syms
=no
15036 if test $in_tree_ld = yes ; then
15037 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
15038 gcc_cv_ld_no_dot_syms
=yes
15040 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
15041 cat > conftest1.s
<<EOF
15045 cat > conftest2.s
<<EOF
15046 .section ".opd","aw"
15049 .type foo,@function
15051 .quad .LEfoo,.TOC.@tocbase,0
15057 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15058 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15059 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
15060 gcc_cv_ld_no_dot_syms
=yes
15062 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15066 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15067 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15068 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15070 cat >>confdefs.h
<<\_ACEOF
15071 #define HAVE_LD_NO_DOT_SYMS 1
15078 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15079 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15081 cat >>confdefs.h
<<_ACEOF
15082 #define PREFIX_INCLUDE_DIR "$prefix/include"
15087 # Find out what GC implementation we want, or may, use.
15089 # Check whether --with-gc or --without-gc was given.
15090 if test "${with_gc+set}" = set; then
15097 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15098 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15099 { (exit 1); exit 1; }; }
15106 echo "Using $GGC for garbage collection."
15108 # Use the system's zlib library.
15110 zlibinc
="-I\$(srcdir)/../zlib"
15112 # Check whether --with-system-zlib or --without-system-zlib was given.
15113 if test "${with_system_zlib+set}" = set; then
15114 withval
="$with_system_zlib"
15123 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15124 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15125 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15126 if test "${enable_maintainer_mode+set}" = set; then
15127 enableval
="$enable_maintainer_mode"
15128 maintainer_mode
=$enableval
15133 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15134 echo "${ECHO_T}$maintainer_mode" >&6
15136 if test "$maintainer_mode" = "yes"; then
15146 # Make empty files to contain the specs and options for each language.
15147 # Then add #include lines to for a compiler that has specs and/or options.
15152 for subdir
in .
$subdirs
15154 if test -f $srcdir/$subdir/lang.opt
; then
15155 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
15157 if test -f $srcdir/$subdir/lang-specs.h
; then
15158 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15160 if test -f $srcdir/$subdir/$subdir-tree.def
; then
15161 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15165 # These (without "all_") are set in each config-lang.in.
15166 # `language' must be a single word so is spelled singularly.
15168 all_boot_languages
=
15171 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15172 # List of language makefile fragments.
15173 all_lang_makefrags
=
15174 # List of language subdirectory makefiles. Deprecated.
15175 all_lang_makefiles
=
15176 # Files for gengtype
15177 all_gtfiles
="$target_gtfiles"
15178 # Files for gengtype with language
15179 all_gtfiles_files_langs
=
15180 all_gtfiles_files_files
=
15182 # Add the language fragments.
15183 # Languages are added via two mechanisms. Some information must be
15184 # recorded in makefile variables, these are defined in config-lang.in.
15185 # We accumulate them and plug them into the main Makefile.
15186 # The other mechanism is a set of hooks for each of the main targets
15187 # like `clean', `install', etc.
15189 language_hooks
="Make-hooks"
15199 .
${srcdir}/$s/config-lang.
in
15200 if test "x$language" = x
15202 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15205 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15206 if test -f ${srcdir}/$s/Makefile.
in
15207 then all_lang_makefiles
="$s/Makefile"
15209 all_languages
="$all_languages $language"
15210 if test "x$boot_language" = xyes
15212 all_boot_languages
="$all_boot_languages $language"
15214 all_compilers
="$all_compilers $compilers"
15215 all_stagestuff
="$all_stagestuff $stagestuff"
15216 all_outputs
="$all_outputs $outputs"
15217 all_gtfiles
="$all_gtfiles $gtfiles"
15220 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15221 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15225 # Pick up gtfiles for c
15228 .
${srcdir}/c-config-lang.
in
15229 all_gtfiles
="$all_gtfiles $gtfiles"
15232 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15233 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15237 for language
in $all_languages
15239 check_languages
="$check_languages check-$language"
15242 # We link each language in with a set of hooks, reached indirectly via
15247 target_list
="all.build all.cross start.encap rest.encap tags \
15248 install-normal install-common install-man \
15249 uninstall info man srcextra srcman srcinfo \
15250 mostlyclean clean distclean maintainer-clean \
15251 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15252 for t
in $target_list
15255 for lang
in $all_languages
15259 echo "lang.$t: $x" >> Make-hooks
15268 echo "dir ." > .gdbinit
15269 echo "dir ${srcdir}" >> .gdbinit
15270 if test x
$gdb_needs_out_file_path = xyes
15272 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15274 if test "x$subdirs" != x
; then
15277 echo "dir ${srcdir}/$s" >> .gdbinit
15280 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15282 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15283 # absolute path for gcc_tooldir based on inserting the number of up-directory
15284 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15285 # $(libsubdir)/@(unlibsubdir) based path.
15286 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15287 # make and thus we'd get different behavior depending on where we built the
15289 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
15290 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15292 # An explanation of the sed strings:
15293 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15294 # -e 's|/$||' match a trailing forward slash and eliminates it
15295 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15296 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15298 # (*) Note this pattern overwrites the first character of the string
15299 # with a forward slash if one is not already present. This is not a
15300 # problem because the exact names of the sub-directories concerned is
15301 # unimportant, just the number of them matters.
15303 # The practical upshot of these patterns is like this:
15305 # prefix exec_prefix result
15306 # ------ ----------- ------
15307 # /foo /foo/bar ../
15308 # /foo/ /foo/bar ../
15309 # /foo /foo/bar/ ../
15310 # /foo/ /foo/bar/ ../
15311 # /foo /foo/bar/ugg ../../
15314 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15319 # Find a directory in which to install a shared libgcc.
15321 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15322 if test "${enable_version_specific_runtime_libs+set}" = set; then
15323 enableval
="$enable_version_specific_runtime_libs"
15328 # Check whether --with-slibdir or --without-slibdir was given.
15329 if test "${with_slibdir+set}" = set; then
15330 withval
="$with_slibdir"
15331 slibdir
="$with_slibdir"
15333 if test "${enable_version_specific_runtime_libs+set}" = set; then
15334 slibdir
='$(libsubdir)'
15335 elif test "$host" != "$target"; then
15336 slibdir
='$(build_tooldir)/lib'
15338 slibdir
='$(libdir)'
15343 objdir
=`${PWDCMD-pwd}`
15346 # Substitute configuration variables
15411 if test x
"$SET_GCC_LIB_PATH_CMD" != x
; then
15412 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15414 # eval "set_gcc_lib_path=XXX=path; export XXX;"
15416 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15417 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15418 set_gcc_lib_path
="export $set_gcc_lib_path"
15426 if test x
${build} = x
${host} ; then
15427 if test x
${host} = x
${target} ; then
15428 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15430 echo "Links are now set up to build a cross-compiler" 1>&2
15431 echo " from ${host} to ${target}." 1>&2
15434 if test x
${host} = x
${target} ; then
15435 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15436 echo " for ${target}." 1>&2
15438 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15439 echo " from ${host} to ${target}." 1>&2
15446 # Configure the subdirectories
15447 # AC_CONFIG_SUBDIRS($subdirs)
15449 # Create the Makefile
15450 # and configure language subdirectories
15451 ac_config_files
="$ac_config_files $all_outputs"
15454 ac_config_commands
="$ac_config_commands default"
15456 cat >confcache
<<\_ACEOF
15457 # This file is a shell script that caches the results of configure
15458 # tests run on this system so they can be shared between configure
15459 # scripts and configure runs, see configure's option --config-cache.
15460 # It is not useful on other systems. If it contains results you don't
15461 # want to keep, you may remove or edit it.
15463 # config.status only pays attention to the cache file if you give it
15464 # the --recheck option to rerun configure.
15466 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15467 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15468 # following values.
15472 # The following way of writing the cache mishandles newlines in values,
15473 # but we know of no workaround that is simple, portable, and efficient.
15474 # So, don't put newlines in cache variables' values.
15475 # Ultrix sh set writes to stderr and can't be redirected directly,
15476 # and sets the high bit in the cache file unless we assign to the vars.
15479 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15481 # `set' does not quote correctly, so add quotes (double-quote
15482 # substitution turns \\\\ into \\, and sed turns \\ into \).
15485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15488 # `set' quotes correctly as required by POSIX, so do not add quotes.
15490 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15497 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15499 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15501 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15502 if test -w $cache_file; then
15503 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15504 cat confcache
>$cache_file
15506 echo "not updating unwritable cache $cache_file"
15511 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15512 # Let make expand exec_prefix.
15513 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15515 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15516 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15517 # trailing colons and then remove the whole line if VPATH becomes empty
15518 # (actually we leave an empty line to preserve line numbers).
15519 if test "x$srcdir" = x.
; then
15520 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15521 s/:*\$(srcdir):*/:/;
15522 s/:*\${srcdir}:*/:/;
15524 s/^\([^=]*=[ ]*\):*/\1/;
15530 DEFS
=-DHAVE_CONFIG_H
15534 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15535 # 1. Remove the extension, and $U if already installed.
15536 ac_i
=`echo "$ac_i" |
15537 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15539 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15540 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15542 LIBOBJS
=$ac_libobjs
15544 LTLIBOBJS
=$ac_ltlibobjs
15548 : ${CONFIG_STATUS=./config.status}
15549 ac_clean_files_save
=$ac_clean_files
15550 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15551 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15552 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15553 cat >$CONFIG_STATUS <<_ACEOF
15555 # Generated by $as_me.
15556 # Run this file to recreate the current configuration.
15557 # Compiler output produced by configure, useful for debugging
15558 # configure, is in config.log if it exists.
15561 ac_cs_recheck=false
15563 SHELL=\${CONFIG_SHELL-$SHELL}
15566 cat >>$CONFIG_STATUS <<\_ACEOF
15567 ## --------------------- ##
15568 ## M4sh Initialization. ##
15569 ## --------------------- ##
15571 # Be Bourne compatible
15572 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15575 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15576 # is contrary to our usage. Disable this feature.
15577 alias -g '${1+"$@"}'='"$@"'
15578 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
15581 DUALCASE
=1; export DUALCASE
# for MKS sh
15583 # Support unset when possible.
15584 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15591 # Work around bugs in pre-3.0 UWIN ksh.
15592 $as_unset ENV MAIL MAILPATH
15599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15601 LC_TELEPHONE LC_TIME
15603 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15604 eval $as_var=C
; export $as_var
15610 # Required to use basename.
15611 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15617 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15618 as_basename
=basename
15624 # Name of the executable.
15625 as_me
=`$as_basename "$0" ||
15626 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15627 X"$0" : 'X\(//\)$' \| \
15628 X"$0" : 'X\(/\)$' \| \
15629 . : '\(.\)' 2>/dev/null ||
15631 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15632 /^X\/\(\/\/\)$/{ s//\1/; q; }
15633 /^X\/\(\/\).*/{ s//\1/; q; }
15637 # PATH needs CR, and LINENO needs CR and PATH.
15638 # Avoid depending upon Character Ranges.
15639 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15640 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15641 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15642 as_cr_digits
='0123456789'
15643 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15645 # The user is always right.
15646 if test "${PATH_SEPARATOR+set}" != set; then
15647 echo "#! /bin/sh" >conf$$.sh
15648 echo "exit 0" >>conf$$.sh
15650 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15659 as_lineno_1
=$LINENO
15660 as_lineno_2
=$LINENO
15661 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15662 test "x$as_lineno_1" != "x$as_lineno_2" &&
15663 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
15664 # Find who we are. Look in the path if we contain no path at all
15667 *[\\/]* ) as_myself
=$0 ;;
15668 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15669 for as_dir
in $PATH
15672 test -z "$as_dir" && as_dir
=.
15673 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15678 # We did not find ourselves, most probably we were run as `sh COMMAND'
15679 # in which case we are not to be found in the path.
15680 if test "x$as_myself" = x
; then
15683 if test ! -f "$as_myself"; then
15684 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15685 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15686 { (exit 1); exit 1; }; }
15688 case $CONFIG_SHELL in
15690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15691 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
15694 test -z "$as_dir" && as_dir
=.
15695 for as_base
in sh bash ksh sh5
; do
15698 if ("$as_dir/$as_base" -c '
15699 as_lineno_1=$LINENO
15700 as_lineno_2=$LINENO
15701 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15702 test "x$as_lineno_1" != "x$as_lineno_2" &&
15703 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
15704 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
15705 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
15706 CONFIG_SHELL
=$as_dir/$as_base
15707 export CONFIG_SHELL
15708 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15716 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15717 # uniformly replaced by the line number. The first 'sed' inserts a
15718 # line-number line before each line; the second 'sed' does the real
15719 # work. The second script uses 'N' to pair each line-number line
15720 # with the numbered line, and appends trailing '-' during
15721 # substitution so that $LINENO is not a special case at line end.
15722 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15723 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15724 sed '=' <$as_myself |
15729 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15732 s,^['$as_cr_digits']*\n,,
15733 ' >$as_me.lineno
&&
15734 chmod +x
$as_me.lineno ||
15735 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15736 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15737 { (exit 1); exit 1; }; }
15739 # Don't try to exec as it changes $[0], causing all sort of problems
15740 # (the dirname of $[0] is not the place where we might find the
15741 # original and so on. Autoconf is especially sensible to this).
15743 # Exit status is that of the last command.
15748 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15749 *c
*,-n*) ECHO_N
= ECHO_C
='
15751 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15752 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15755 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15761 rm -f conf$$ conf$$.exe conf$$.
file
15763 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15764 # We could just check for DJGPP; but this test a) works b) is more generic
15765 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15766 if test -f conf$$.exe
; then
15767 # Don't use ln at all; we don't have any links
15772 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15777 rm -f conf$$ conf$$.exe conf$$.
file
15779 if mkdir
-p .
2>/dev
/null
; then
15782 test -d .
/-p && rmdir .
/-p
15786 as_executable_p
="test -f"
15788 # Sed expression to map a string onto a valid CPP name.
15789 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15791 # Sed expression to map a string onto a valid variable name.
15792 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15796 # We need space, tab and new line, in precisely that order.
15806 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15807 # report actual input values of CONFIG_FILES etc. instead of their
15808 # values after options handling. Logging --version etc. is OK.
15812 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15813 ## Running $as_me. ##
15818 This file was extended by $as_me, which was
15819 generated by GNU Autoconf 2.59. Invocation command line was
15821 CONFIG_FILES = $CONFIG_FILES
15822 CONFIG_HEADERS = $CONFIG_HEADERS
15823 CONFIG_LINKS = $CONFIG_LINKS
15824 CONFIG_COMMANDS = $CONFIG_COMMANDS
15828 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15832 # Files that config.status was made for.
15833 if test -n "$ac_config_files"; then
15834 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15837 if test -n "$ac_config_headers"; then
15838 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15841 if test -n "$ac_config_links"; then
15842 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15845 if test -n "$ac_config_commands"; then
15846 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15849 cat >>$CONFIG_STATUS <<\_ACEOF
15852 \`$as_me' instantiates files from templates according to the
15853 current configuration.
15855 Usage: $0 [OPTIONS] [FILE]...
15857 -h, --help print this help, then exit
15858 -V, --version print version number, then exit
15859 -q, --quiet do not print progress messages
15860 -d, --debug don't remove temporary files
15861 --recheck update $as_me by reconfiguring in the same conditions
15862 --file=FILE[:TEMPLATE]
15863 instantiate the configuration file FILE
15864 --header=FILE[:TEMPLATE]
15865 instantiate the configuration header FILE
15867 Configuration files:
15870 Configuration headers:
15873 Configuration commands:
15876 Report bugs to <bug-autoconf@gnu.org>."
15879 cat >>$CONFIG_STATUS <<_ACEOF
15882 configured by $0, generated by GNU Autoconf 2.59,
15883 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15885 Copyright (C) 2003 Free Software Foundation, Inc.
15886 This config.status script is free software; the Free Software Foundation
15887 gives unlimited permission to copy, distribute and modify it."
15891 cat >>$CONFIG_STATUS <<\_ACEOF
15892 # If no file are specified by the user, then we need to provide default
15893 # value. By we need to know if files were specified by the user.
15899 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
15900 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
15908 *) # This is not an option, so the user has probably given explicit
15911 ac_need_defaults
=false
;;
15915 # Handling of the options.
15917 cat >>$CONFIG_STATUS <<\_ACEOF
15918 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15920 --version |
--vers* |
-V )
15921 echo "$ac_cs_version"; exit 0 ;;
15923 # Conflict between --help and --header
15924 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15925 Try \`$0 --help' for more information." >&5
15926 echo "$as_me: error: ambiguous option: $1
15927 Try \`$0 --help' for more information." >&2;}
15928 { (exit 1); exit 1; }; };;
15929 --help |
--hel |
-h )
15930 echo "$ac_cs_usage"; exit 0 ;;
15931 --debug |
--d* |
-d )
15933 --file |
--fil |
--fi |
--f )
15935 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
15936 ac_need_defaults
=false
;;
15937 --header |
--heade |
--head |
--hea )
15939 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
15940 ac_need_defaults
=false
;;
15941 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15942 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15945 # This is an error.
15946 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15947 Try \`$0 --help' for more information." >&5
15948 echo "$as_me: error: unrecognized option: $1
15949 Try \`$0 --help' for more information." >&2;}
15950 { (exit 1); exit 1; }; } ;;
15952 *) ac_config_targets
="$ac_config_targets $1" ;;
15958 ac_configure_extra_args
=
15960 if $ac_cs_silent; then
15962 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15966 cat >>$CONFIG_STATUS <<_ACEOF
15967 if \$ac_cs_recheck; then
15968 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15969 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15974 cat >>$CONFIG_STATUS <<_ACEOF
15976 # INIT-COMMANDS section.
15985 cat >>$CONFIG_STATUS <<\_ACEOF
15986 for ac_config_target
in $ac_config_targets
15988 case "$ac_config_target" in
15989 # Handling of arguments.
15990 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
15991 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15992 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
15993 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15994 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15995 { (exit 1); exit 1; }; };;
15999 # If the user did not use the arguments to specify the items to instantiate,
16000 # then the envvar interface is used. Set only those that are not.
16001 # We use the long form for the default assignment because of an extremely
16002 # bizarre bug on SunOS 4.1.3.
16003 if $ac_need_defaults; then
16004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16009 # Have a temporary directory for convenience. Make it in the build tree
16010 # simply because there is no reason to put it here, and in addition,
16011 # creating and moving files from /tmp can sometimes cause problems.
16012 # Create a temporary directory, and hook for its removal unless debugging.
16015 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16016 trap '{ (exit 1); exit 1; }' 1 2 13 15
16019 # Create a (secure) tmp directory for tmp files.
16022 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16023 test -n "$tmp" && test -d "$tmp"
16026 tmp
=.
/confstat$$
-$RANDOM
16027 (umask 077 && mkdir
$tmp)
16030 echo "$me: cannot create a temporary directory in ." >&2
16031 { (exit 1); exit 1; }
16036 cat >>$CONFIG_STATUS <<_ACEOF
16039 # CONFIG_FILES section.
16042 # No need to generate the scripts if there are no CONFIG_FILES.
16043 # This happens for instance when ./config.status config.h
16044 if test -n "\$CONFIG_FILES"; then
16045 # Protect against being on the right side of a sed subst in config.status.
16046 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16047 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16048 s,@SHELL@,$SHELL,;t t
16049 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16050 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16051 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16052 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16053 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16054 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16055 s,@exec_prefix@,$exec_prefix,;t t
16056 s,@prefix@,$prefix,;t t
16057 s,@program_transform_name@,$program_transform_name,;t t
16058 s,@bindir@,$bindir,;t t
16059 s,@sbindir@,$sbindir,;t t
16060 s,@libexecdir@,$libexecdir,;t t
16061 s,@datadir@,$datadir,;t t
16062 s,@sysconfdir@,$sysconfdir,;t t
16063 s,@sharedstatedir@,$sharedstatedir,;t t
16064 s,@localstatedir@,$localstatedir,;t t
16065 s,@libdir@,$libdir,;t t
16066 s,@includedir@,$includedir,;t t
16067 s,@oldincludedir@,$oldincludedir,;t t
16068 s,@infodir@,$infodir,;t t
16069 s,@mandir@,$mandir,;t t
16070 s,@build_alias@,$build_alias,;t t
16071 s,@host_alias@,$host_alias,;t t
16072 s,@target_alias@,$target_alias,;t t
16073 s,@DEFS@,$DEFS,;t t
16074 s,@ECHO_C@,$ECHO_C,;t t
16075 s,@ECHO_N@,$ECHO_N,;t t
16076 s,@ECHO_T@,$ECHO_T,;t t
16077 s,@LIBS@,$LIBS,;t t
16078 s,@build@,$build,;t t
16079 s,@build_cpu@,$build_cpu,;t t
16080 s,@build_vendor@,$build_vendor,;t t
16081 s,@build_os@,$build_os,;t t
16082 s,@host@,$host,;t t
16083 s,@host_cpu@,$host_cpu,;t t
16084 s,@host_vendor@,$host_vendor,;t t
16085 s,@host_os@,$host_os,;t t
16086 s,@target@,$target,;t t
16087 s,@target_cpu@,$target_cpu,;t t
16088 s,@target_vendor@,$target_vendor,;t t
16089 s,@target_os@,$target_os,;t t
16090 s,@target_noncanonical@,$target_noncanonical,;t t
16091 s,@build_subdir@,$build_subdir,;t t
16092 s,@host_subdir@,$host_subdir,;t t
16093 s,@target_subdir@,$target_subdir,;t t
16094 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
16095 s,@gcc_version_full@,$gcc_version_full,;t t
16096 s,@gcc_version@,$gcc_version,;t t
16097 s,@GENINSRC@,$GENINSRC,;t t
16099 s,@CFLAGS@,$CFLAGS,;t t
16100 s,@LDFLAGS@,$LDFLAGS,;t t
16101 s,@CPPFLAGS@,$CPPFLAGS,;t t
16102 s,@ac_ct_CC@,$ac_ct_CC,;t t
16103 s,@EXEEXT@,$EXEEXT,;t t
16104 s,@OBJEXT@,$OBJEXT,;t t
16105 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16106 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16108 s,@EGREP@,$EGREP,;t t
16109 s,@strict1_warn@,$strict1_warn,;t t
16110 s,@warn_cflags@,$warn_cflags,;t t
16111 s,@WERROR@,$WERROR,;t t
16112 s,@nocommon_flag@,$nocommon_flag,;t t
16113 s,@TREEBROWSER@,$TREEBROWSER,;t t
16114 s,@valgrind_path@,$valgrind_path,;t t
16115 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16116 s,@valgrind_command@,$valgrind_command,;t t
16117 s,@coverage_flags@,$coverage_flags,;t t
16118 s,@enable_multilib@,$enable_multilib,;t t
16119 s,@enable_shared@,$enable_shared,;t t
16120 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16121 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16122 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16123 s,@onestep@,$onestep,;t t
16124 s,@SET_MAKE@,$SET_MAKE,;t t
16126 s,@LN_S@,$LN_S,;t t
16128 s,@RANLIB@,$RANLIB,;t t
16129 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16130 s,@ranlib_flags@,$ranlib_flags,;t t
16131 s,@INSTALL@,$INSTALL,;t t
16132 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16133 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16134 s,@make_compare_target@,$make_compare_target,;t t
16135 s,@have_mktemp_command@,$have_mktemp_command,;t t
16136 s,@MAKEINFO@,$MAKEINFO,;t t
16137 s,@BUILD_INFO@,$BUILD_INFO,;t t
16138 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16139 s,@FLEX@,$FLEX,;t t
16140 s,@BISON@,$BISON,;t t
16143 s,@stage1_cflags@,$stage1_cflags,;t t
16144 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16145 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16146 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16147 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16148 s,@LIBICONV@,$LIBICONV,;t t
16149 s,@LTLIBICONV@,$LTLIBICONV,;t t
16150 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16151 s,@manext@,$manext,;t t
16152 s,@objext@,$objext,;t t
16153 s,@gthread_flags@,$gthread_flags,;t t
16154 s,@extra_modes_file@,$extra_modes_file,;t t
16155 s,@PACKAGE@,$PACKAGE,;t t
16156 s,@VERSION@,$VERSION,;t t
16157 s,@USE_NLS@,$USE_NLS,;t t
16158 s,@LIBINTL@,$LIBINTL,;t t
16159 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16160 s,@INCINTL@,$INCINTL,;t t
16161 s,@XGETTEXT@,$XGETTEXT,;t t
16162 s,@GMSGFMT@,$GMSGFMT,;t t
16163 s,@POSUB@,$POSUB,;t t
16164 s,@CATALOGS@,$CATALOGS,;t t
16165 s,@cc_for_cross_gnattools@,$cc_for_cross_gnattools,;t t
16166 s,@CROSS@,$CROSS,;t t
16168 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16169 s,@inhibit_libc@,$inhibit_libc,;t t
16170 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16171 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16172 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16173 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16174 s,@collect2@,$collect2,;t t
16175 s,@libgcc_visibility@,$libgcc_visibility,;t t
16177 s,@zlibdir@,$zlibdir,;t t
16178 s,@zlibinc@,$zlibinc,;t t
16179 s,@MAINT@,$MAINT,;t t
16180 s,@gcc_tooldir@,$gcc_tooldir,;t t
16181 s,@dollar@,$dollar,;t t
16182 s,@slibdir@,$slibdir,;t t
16183 s,@objdir@,$objdir,;t t
16184 s,@subdirs@,$subdirs,;t t
16185 s,@srcdir@,$srcdir,;t t
16186 s,@all_boot_languages@,$all_boot_languages,;t t
16187 s,@all_compilers@,$all_compilers,;t t
16188 s,@all_gtfiles@,$all_gtfiles,;t t
16189 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16190 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16191 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16192 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16193 s,@all_languages@,$all_languages,;t t
16194 s,@all_stagestuff@,$all_stagestuff,;t t
16195 s,@build_exeext@,$build_exeext,;t t
16196 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16197 s,@build_xm_file_list@,$build_xm_file_list,;t t
16198 s,@build_xm_include_list@,$build_xm_include_list,;t t
16199 s,@build_xm_defines@,$build_xm_defines,;t t
16200 s,@check_languages@,$check_languages,;t t
16201 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16202 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16203 s,@cpp_install_dir@,$cpp_install_dir,;t t
16204 s,@xmake_file@,$xmake_file,;t t
16205 s,@tmake_file@,$tmake_file,;t t
16206 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16207 s,@extra_headers_list@,$extra_headers_list,;t t
16208 s,@extra_objs@,$extra_objs,;t t
16209 s,@extra_parts@,$extra_parts,;t t
16210 s,@extra_passes@,$extra_passes,;t t
16211 s,@extra_programs@,$extra_programs,;t t
16212 s,@float_h_file@,$float_h_file,;t t
16213 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16214 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16215 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16216 s,@host_exeext@,$host_exeext,;t t
16217 s,@host_xm_file_list@,$host_xm_file_list,;t t
16218 s,@host_xm_include_list@,$host_xm_include_list,;t t
16219 s,@host_xm_defines@,$host_xm_defines,;t t
16220 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16221 s,@install@,$install,;t t
16222 s,@lang_opt_files@,$lang_opt_files,;t t
16223 s,@lang_specs_files@,$lang_specs_files,;t t
16224 s,@lang_tree_files@,$lang_tree_files,;t t
16225 s,@local_prefix@,$local_prefix,;t t
16226 s,@md_file@,$md_file,;t t
16227 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16228 s,@out_file@,$out_file,;t t
16229 s,@out_object_file@,$out_object_file,;t t
16230 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16231 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16232 s,@thread_file@,$thread_file,;t t
16233 s,@tm_file_list@,$tm_file_list,;t t
16234 s,@tm_include_list@,$tm_include_list,;t t
16235 s,@tm_defines@,$tm_defines,;t t
16236 s,@tm_p_file_list@,$tm_p_file_list,;t t
16237 s,@tm_p_include_list@,$tm_p_include_list,;t t
16238 s,@xm_file_list@,$xm_file_list,;t t
16239 s,@xm_include_list@,$xm_include_list,;t t
16240 s,@xm_defines@,$xm_defines,;t t
16241 s,@c_target_objs@,$c_target_objs,;t t
16242 s,@cxx_target_objs@,$cxx_target_objs,;t t
16243 s,@target_cpu_default@,$target_cpu_default,;t t
16244 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
16245 s,@GMPLIBS@,$GMPLIBS,;t t
16246 s,@GMPINC@,$GMPINC,;t t
16247 s,@LIBOBJS@,$LIBOBJS,;t t
16248 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16249 /@language_hooks@/r $language_hooks
16250 s,@language_hooks@,,;t t
16255 cat >>$CONFIG_STATUS <<\_ACEOF
16256 # Split the substitutions into bite-sized pieces for seds with
16257 # small command number limits, like on Digital OSF/1 and HP-UX.
16258 ac_max_sed_lines
=48
16259 ac_sed_frag
=1 # Number of current file.
16260 ac_beg
=1 # First line for current file.
16261 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16264 while $ac_more_lines; do
16265 if test $ac_beg -gt 1; then
16266 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16268 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16270 if test ! -s $tmp/subs.frag
; then
16271 ac_more_lines
=false
16273 # The purpose of the label and of the branching condition is to
16274 # speed up the sed processing (if there are no `@' at all, there
16275 # is no need to browse any of the substitutions).
16276 # These are the two extra sed commands mentioned above.
16278 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16279 if test -z "$ac_sed_cmds"; then
16280 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16282 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16284 ac_sed_frag
=`expr $ac_sed_frag + 1`
16286 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16289 if test -z "$ac_sed_cmds"; then
16292 fi # test -n "$CONFIG_FILES"
16295 cat >>$CONFIG_STATUS <<\_ACEOF
16296 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16297 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16299 - |
*:- |
*:-:* ) # input from stdin
16301 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16302 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16303 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16304 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16305 * ) ac_file_in
=$ac_file.
in ;;
16308 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16309 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16311 X"$ac_file" : 'X\(//\)[^/]' \| \
16312 X"$ac_file" : 'X\(//\)$' \| \
16313 X"$ac_file" : 'X\(/\)' \| \
16314 . : '\(.\)' 2>/dev/null ||
16316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16318 /^X\(\/\/\)$/{ s//\1/; q; }
16319 /^X\(\/\).*/{ s//\1/; q; }
16321 { if $as_mkdir_p; then
16326 while test ! -d "$as_dir"; do
16327 as_dirs
="$as_dir $as_dirs"
16328 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16330 X"$as_dir" : 'X\(//\)[^/]' \| \
16331 X"$as_dir" : 'X\(//\)$' \| \
16332 X"$as_dir" : 'X\(/\)' \| \
16333 . : '\(.\)' 2>/dev/null ||
16335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16337 /^X\(\/\/\)$/{ s//\1/; q; }
16338 /^X\(\/\).*/{ s//\1/; q; }
16341 test ! -n "$as_dirs" || mkdir
$as_dirs
16342 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16343 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16344 { (exit 1); exit 1; }; }; }
16348 if test "$ac_dir" != .
; then
16349 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16350 # A "../" for each directory in $ac_dir_suffix.
16351 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16353 ac_dir_suffix
= ac_top_builddir
=
16357 .
) # No --srcdir option. We are building in place.
16359 if test -z "$ac_top_builddir"; then
16362 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16364 [\\/]* | ?
:[\\/]* ) # Absolute path.
16365 ac_srcdir
=$srcdir$ac_dir_suffix;
16366 ac_top_srcdir
=$srcdir ;;
16367 *) # Relative path.
16368 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16369 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16372 # Do not use `cd foo && pwd` to compute absolute paths, because
16373 # the directories may not exist.
16375 .
) ac_abs_builddir
="$ac_dir";;
16378 .
) ac_abs_builddir
=`pwd`;;
16379 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16380 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16383 case $ac_abs_builddir in
16384 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16386 case ${ac_top_builddir}.
in
16387 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16388 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16389 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16392 case $ac_abs_builddir in
16393 .
) ac_abs_srcdir
=$ac_srcdir;;
16396 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16397 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16398 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16401 case $ac_abs_builddir in
16402 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16404 case $ac_top_srcdir in
16405 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16406 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16407 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16413 if test x
"$ac_file" != x-
; then
16414 { echo "$as_me:$LINENO: creating $ac_file" >&5
16415 echo "$as_me: creating $ac_file" >&6;}
16418 # Let's still pretend it is `configure' which instantiates (i.e., don't
16419 # use $as_me), people would be surprised to read:
16420 # /* config.h. Generated by config.status. */
16421 if test x
"$ac_file" = x-
; then
16424 configure_input
="$ac_file. "
16426 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16427 sed 's,.*/,,'` by configure."
16429 # First look for the input files in the build tree, otherwise in the
16431 ac_file_inputs
=`IFS=:
16432 for f in $ac_file_in; do
16434 -) echo $tmp/stdin ;;
16436 # Absolute (can't be DOS-style, as IFS=:)
16437 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16438 echo "$as_me: error: cannot find input file: $f" >&2;}
16439 { (exit 1); exit 1; }; }
16442 if test -f "$f"; then
16445 elif test -f "$srcdir/$f"; then
16450 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16451 echo "$as_me: error: cannot find input file: $f" >&2;}
16452 { (exit 1); exit 1; }; }
16455 done` ||
{ (exit 1); exit 1; }
16457 cat >>$CONFIG_STATUS <<_ACEOF
16461 cat >>$CONFIG_STATUS <<\_ACEOF
16463 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16464 s
,@configure_input@
,$configure_input,;t t
16465 s
,@srcdir@
,$ac_srcdir,;t t
16466 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16467 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16468 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16469 s
,@builddir@
,$ac_builddir,;t t
16470 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16471 s
,@top_builddir@
,$ac_top_builddir,;t t
16472 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16473 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16475 if test x"$ac_file" != x-; then
16476 mv $tmp/out $ac_file
16484 cat >>$CONFIG_STATUS <<\_ACEOF
16487 # CONFIG_HEADER section.
16490 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16491 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16493 # ac_d sets the value in "#define NAME VALUE" lines.
16494 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16495 ac_dB
='[ ].*$,\1#\2'
16498 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16499 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16500 ac_uB
='$,\1#\2define\3'
16504 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16505 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16507 - |
*:- |
*:-:* ) # input from stdin
16509 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16510 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16511 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16512 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16513 * ) ac_file_in
=$ac_file.
in ;;
16516 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16517 echo "$as_me: creating $ac_file" >&6;}
16519 # First look for the input files in the build tree, otherwise in the
16521 ac_file_inputs
=`IFS=:
16522 for f in $ac_file_in; do
16524 -) echo $tmp/stdin ;;
16526 # Absolute (can't be DOS-style, as IFS=:)
16527 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16528 echo "$as_me: error: cannot find input file: $f" >&2;}
16529 { (exit 1); exit 1; }; }
16530 # Do quote $f, to prevent DOS paths from being IFS'd.
16533 if test -f "$f"; then
16536 elif test -f "$srcdir/$f"; then
16541 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16542 echo "$as_me: error: cannot find input file: $f" >&2;}
16543 { (exit 1); exit 1; }; }
16546 done` ||
{ (exit 1); exit 1; }
16547 # Remove the trailing spaces.
16548 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16552 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16553 # `conftest.undefs', that substitutes the proper values into
16554 # config.h.in to produce config.h. The first handles `#define'
16555 # templates, and the second `#undef' templates.
16556 # And first: Protect against being on the right side of a sed subst in
16557 # config.status. Protect against being in an unquoted here document
16558 # in config.status.
16559 rm -f conftest.defines conftest.undefs
16560 # Using a here document instead of a string reduces the quoting nightmare.
16561 # Putting comments in sed scripts is not portable.
16563 # `end' is used to avoid that the second main sed command (meant for
16564 # 0-ary CPP macros) applies to n-ary macro definitions.
16565 # See the Autoconf documentation for `clear'.
16566 cat >confdef2sed.
sed <<\_ACEOF
16571 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16573 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16576 # If some macros were called several times there might be several times
16577 # the same #defines, which is useless. Nevertheless, we may not want to
16578 # sort them, since we want the *last* AC-DEFINE to be honored.
16579 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16580 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16581 rm -f confdef2sed.sed
16583 # This sed command replaces #undef with comments. This is necessary, for
16584 # example, in the case of _POSIX_SOURCE, which is predefined and required
16585 # on some systems where configure will not decide to define it.
16586 cat >>conftest.undefs <<\_ACEOF
16587 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16590 # Break up conftest.defines because some shells have a limit on the size
16591 # of here documents, and old seds have small limits too (100 cmds).
16592 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16593 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16594 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16595 echo ' :' >>$CONFIG_STATUS
16596 rm -f conftest.tail
16597 while grep . conftest.defines >/dev/null
16599 # Write a limited-size here document to $tmp/defines.sed.
16600 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16601 # Speed up: don't consider the non `#define' lines.
16602 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16603 # Work around the forget-to-reset-the-flag bug.
16604 echo 't clr' >>$CONFIG_STATUS
16605 echo ': clr' >>$CONFIG_STATUS
16606 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16608 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16610 mv $tmp/out $tmp/in
16612 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16613 rm -f conftest.defines
16614 mv conftest.
tail conftest.defines
16616 rm -f conftest.defines
16617 echo ' fi # grep' >>$CONFIG_STATUS
16618 echo >>$CONFIG_STATUS
16620 # Break up conftest.undefs because some shells have a limit on the size
16621 # of here documents, and old seds have small limits too (100 cmds).
16622 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16623 rm -f conftest.
tail
16624 while grep . conftest.undefs
>/dev
/null
16626 # Write a limited-size here document to $tmp/undefs.sed.
16627 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16628 # Speed up: don't consider the non
`#undef'
16629 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16630 # Work around the forget-to-reset-the-flag bug.
16631 echo 't clr' >>$CONFIG_STATUS
16632 echo ': clr' >>$CONFIG_STATUS
16633 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16635 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16637 mv $tmp/out $tmp/in
16639 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16640 rm -f conftest.undefs
16641 mv conftest.tail conftest.undefs
16643 rm -f conftest.undefs
16645 cat >>$CONFIG_STATUS <<\_ACEOF
16646 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16647 # use $as_me), people would be surprised to read:
16648 # /* config.h. Generated by config.status. */
16649 if test x
"$ac_file" = x-
; then
16650 echo "/* Generated by configure. */" >$tmp/config.h
16652 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16654 cat $tmp/in >>$tmp/config.h
16656 if test x
"$ac_file" != x-
; then
16657 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
16658 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16659 echo "$as_me: $ac_file is unchanged" >&6;}
16661 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16662 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16663 X"$ac_file" : 'X\(//\)[^/]' \| \
16664 X"$ac_file" : 'X\(//\)$' \| \
16665 X"$ac_file" : 'X\(/\)' \| \
16666 . : '\(.\)' 2>/dev/null ||
16668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16670 /^X\(\/\/\)$/{ s//\1/; q; }
16671 /^X\(\/\).*/{ s//\1/; q; }
16673 { if $as_mkdir_p; then
16678 while test ! -d "$as_dir"; do
16679 as_dirs
="$as_dir $as_dirs"
16680 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16681 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16682 X"$as_dir" : 'X\(//\)[^/]' \| \
16683 X"$as_dir" : 'X\(//\)$' \| \
16684 X"$as_dir" : 'X\(/\)' \| \
16685 . : '\(.\)' 2>/dev/null ||
16687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16689 /^X\(\/\/\)$/{ s//\1/; q; }
16690 /^X\(\/\).*/{ s//\1/; q; }
16693 test ! -n "$as_dirs" || mkdir
$as_dirs
16694 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16695 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16696 { (exit 1); exit 1; }; }; }
16699 mv $tmp/config.h
$ac_file
16703 rm -f $tmp/config.h
16707 cat >>$CONFIG_STATUS <<\_ACEOF
16710 # CONFIG_COMMANDS section.
16712 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
16713 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16714 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16715 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16716 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16717 X"$ac_dest" : 'X\(//\)[^/]' \| \
16718 X"$ac_dest" : 'X\(//\)$' \| \
16719 X"$ac_dest" : 'X\(/\)' \| \
16720 . : '\(.\)' 2>/dev/null ||
16722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16724 /^X\(\/\/\)$/{ s//\1/; q; }
16725 /^X\(\/\).*/{ s//\1/; q; }
16727 { if $as_mkdir_p; then
16732 while test ! -d "$as_dir"; do
16733 as_dirs
="$as_dir $as_dirs"
16734 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16736 X"$as_dir" : 'X\(//\)[^/]' \| \
16737 X"$as_dir" : 'X\(//\)$' \| \
16738 X"$as_dir" : 'X\(/\)' \| \
16739 . : '\(.\)' 2>/dev/null ||
16741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16743 /^X\(\/\/\)$/{ s//\1/; q; }
16744 /^X\(\/\).*/{ s//\1/; q; }
16747 test ! -n "$as_dirs" || mkdir
$as_dirs
16748 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16749 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16750 { (exit 1); exit 1; }; }; }
16754 if test "$ac_dir" != .
; then
16755 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16756 # A "../" for each directory in $ac_dir_suffix.
16757 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16759 ac_dir_suffix
= ac_top_builddir
=
16763 .
) # No --srcdir option. We are building in place.
16765 if test -z "$ac_top_builddir"; then
16768 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16770 [\\/]* | ?
:[\\/]* ) # Absolute path.
16771 ac_srcdir
=$srcdir$ac_dir_suffix;
16772 ac_top_srcdir
=$srcdir ;;
16773 *) # Relative path.
16774 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16775 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16778 # Do not use `cd foo && pwd` to compute absolute paths, because
16779 # the directories may not exist.
16781 .
) ac_abs_builddir
="$ac_dir";;
16784 .
) ac_abs_builddir
=`pwd`;;
16785 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16786 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16789 case $ac_abs_builddir in
16790 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16792 case ${ac_top_builddir}.
in
16793 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16794 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16795 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16798 case $ac_abs_builddir in
16799 .
) ac_abs_srcdir
=$ac_srcdir;;
16802 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16803 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16804 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16807 case $ac_abs_builddir in
16808 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16810 case $ac_top_srcdir in
16811 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16812 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16813 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16818 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16819 echo "$as_me: executing $ac_dest commands" >&6;}
16822 case ${CONFIG_HEADERS} in
16823 *auto-host.h
:config.
in*)
16826 # Make sure all the subdirs exist.
16827 for d
in $subdirs doc build
16829 test -d $d || mkdir
$d
16831 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16832 # bootstrapping and the installation procedure can still use
16833 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16834 # FLAGS_TO_PASS has been modified to solve the problem there.
16835 # This is virtually a duplicate of what happens in configure.lang; we do
16836 # an extra check to make sure this only happens if ln -s can be used.
16839 for d
in ${subdirs} ; do
16840 STARTDIR
=`${PWDCMD-pwd}`
16842 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16845 $LN_S ..
/$t $t 2>/dev
/null
16856 cat >>$CONFIG_STATUS <<\_ACEOF
16858 { (exit 0); exit 0; }
16860 chmod +x
$CONFIG_STATUS
16861 ac_clean_files
=$ac_clean_files_save
16864 # configure is writing to config.log, and then calls config.status.
16865 # config.status does its own redirection, appending to config.log.
16866 # Unfortunately, on DOS this fails, as config.log is still kept open
16867 # by configure, so config.status won't be able to write to it; its
16868 # output is simply discarded. So we exec the FD to /dev/null,
16869 # effectively closing config.log, so it can be properly (re)opened and
16870 # appended to by config.status. When coming back to configure, we
16871 # need to make the FD available again.
16872 if test "$no_create" != yes; then
16874 ac_config_status_args
=
16875 test "$silent" = yes &&
16876 ac_config_status_args
="$ac_config_status_args --quiet"
16878 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16880 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16881 # would make configure fail if this is the last instruction.
16882 $ac_cs_success ||
{ (exit 1); exit 1; }