2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default 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 # Determine the host, build, and target systems
1388 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1389 if test -f $ac_dir/install-sh; then
1391 ac_install_sh="$ac_aux_dir/install-sh -c"
1393 elif test -f $ac_dir/install.sh; then
1395 ac_install_sh="$ac_aux_dir/install.sh -c"
1397 elif test -f $ac_dir/shtool; then
1399 ac_install_sh="$ac_aux_dir/shtool install -c"
1403 if test -z "$ac_aux_dir"; then
1404 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1405 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1406 { (exit 1); exit 1; }; }
1408 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1409 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1410 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1412 # Make sure we can run config.sub.
1413 $ac_config_sub sun4 >/dev/null 2>&1 ||
1414 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1415 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1416 { (exit 1); exit 1; }; }
1418 echo "$as_me:$LINENO: checking build system type" >&5
1419 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1420 if test "${ac_cv_build+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 ac_cv_build_alias=$build_alias
1424 test -z "$ac_cv_build_alias" &&
1425 ac_cv_build_alias=`$ac_config_guess`
1426 test -z "$ac_cv_build_alias" &&
1427 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1428 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1429 { (exit 1); exit 1; }; }
1430 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1431 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1437 echo "${ECHO_T}$ac_cv_build" >&6
1439 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1440 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1441 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1444 echo "$as_me:$LINENO: checking host system type" >&5
1445 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1446 if test "${ac_cv_host+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 ac_cv_host_alias=$host_alias
1450 test -z "$ac_cv_host_alias" &&
1451 ac_cv_host_alias=$ac_cv_build_alias
1452 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1453 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1454 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1455 { (exit 1); exit 1; }; }
1458 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1459 echo "${ECHO_T}$ac_cv_host" >&6
1461 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1462 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1463 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1466 echo "$as_me:$LINENO: checking target system type" >&5
1467 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1468 if test "${ac_cv_target+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 ac_cv_target_alias=$target_alias
1472 test "x$ac_cv_target_alias" = "x" &&
1473 ac_cv_target_alias=$ac_cv_host_alias
1474 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1475 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1476 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1477 { (exit 1); exit 1; }; }
1480 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1481 echo "${ECHO_T}$ac_cv_target" >&6
1482 target=$ac_cv_target
1483 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1484 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1485 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1488 # The aliases save the names the user supplied, while $host etc.
1489 # will get canonicalized.
1490 test -n "$target_alias" &&
1491 test "$program_prefix$program_suffix$program_transform_name" = \
1493 program_prefix=${target_alias}-
1495 # Determine the noncanonical target name, for directory use.
1496 case ${build_alias} in
1497 "") build_noncanonical=${build} ;;
1498 *) build_noncanonical=${build_alias} ;;
1501 case ${host_alias} in
1502 "") host_noncanonical=${build_noncanonical} ;;
1503 *) host_noncanonical=${host_alias} ;;
1506 case ${target_alias} in
1507 "") target_noncanonical=${host_noncanonical} ;;
1508 *) target_noncanonical=${target_alias} ;;
1514 # Determine the target- and build-specific subdirectories
1515 # Prefix 'build-
' so this never conflicts with target_subdir.
1516 build_subdir="build-${build_noncanonical}"
1517 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1518 if ( test $srcdir = . && test -d gcc ) \
1519 || test -d $srcdir/../host-${host_noncanonical}; then
1520 host_subdir="host-${host_noncanonical}"
1525 target_subdir=${target_noncanonical}
1528 # Set program_transform_name
1529 test "$program_prefix" != NONE &&
1530 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1531 # Use a double $ so make ignores it.
1532 test "$program_suffix" != NONE &&
1533 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1534 # Double any \ or $. echo might interpret backslashes.
1535 # By default was `s,x,x', remove it
if useless.
1536 cat <<\_ACEOF
>conftest.
sed
1537 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1539 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1543 # Check for bogus environment variables.
1544 # Test if LIBRARY_PATH contains the notation for the current directory
1545 # since this would lead to problems installing/building glibc.
1546 # LIBRARY_PATH contains the current directory if one of the following
1548 # - one of the terminals (":" and ";") is the first or last sign
1549 # - two terminals occur directly after each other
1550 # - the path contains an element with a dot in it
1551 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1552 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1553 case ${LIBRARY_PATH} in
1554 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1555 library_path_setting
="contains current directory"
1558 library_path_setting
="ok"
1561 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1562 echo "${ECHO_T}$library_path_setting" >&6
1563 if test "$library_path_setting" != "ok"; then
1564 { { echo "$as_me:$LINENO: error:
1565 *** LIBRARY_PATH shouldn't contain the current directory when
1566 *** building gcc. Please change the environment variable
1567 *** and run configure again." >&5
1568 echo "$as_me: error:
1569 *** LIBRARY_PATH shouldn't contain the current directory when
1570 *** building gcc. Please change the environment variable
1571 *** and run configure again." >&2;}
1572 { (exit 1); exit 1; }; }
1575 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1576 # since this would lead to problems installing/building glibc.
1577 # GCC_EXEC_PREFIX contains the current directory if one of the following
1579 # - one of the terminals (":" and ";") is the first or last sign
1580 # - two terminals occur directly after each other
1581 # - the path contains an element with a dot in it
1582 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1583 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1584 case ${GCC_EXEC_PREFIX} in
1585 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1586 gcc_exec_prefix_setting
="contains current directory"
1589 gcc_exec_prefix_setting
="ok"
1592 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1593 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1594 if test "$gcc_exec_prefix_setting" != "ok"; then
1595 { { echo "$as_me:$LINENO: error:
1596 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1597 *** building gcc. Please change the environment variable
1598 *** and run configure again." >&5
1599 echo "$as_me: error:
1600 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1601 *** building gcc. Please change the environment variable
1602 *** and run configure again." >&2;}
1603 { (exit 1); exit 1; }; }
1610 # Specify the local prefix
1613 # Check whether --with-local-prefix or --without-local-prefix was given.
1614 if test "${with_local_prefix+set}" = set; then
1615 withval
="$with_local_prefix"
1616 case "${withval}" in
1617 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1618 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1619 { (exit 1); exit 1; }; } ;;
1621 *) local_prefix
=$with_local_prefix ;;
1625 # Default local prefix if it is empty
1626 if test x
$local_prefix = x
; then
1627 local_prefix
=/usr
/local
1630 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1631 # passed in by the toplevel make and thus we'd get different behavior
1632 # depending on where we built the sources.
1633 gcc_gxx_include_dir
=
1634 # Specify the g++ header file directory
1636 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1637 if test "${with_gxx_include_dir+set}" = set; then
1638 withval
="$with_gxx_include_dir"
1639 case "${withval}" in
1640 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1641 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1642 { (exit 1); exit 1; }; } ;;
1644 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1648 if test x
${gcc_gxx_include_dir} = x
; then
1649 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1650 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1652 libstdcxx_incdir
='c++/$(version)'
1653 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1658 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1659 if test "${with_cpp_install_dir+set}" = set; then
1660 withval
="$with_cpp_install_dir"
1661 if test x
$withval = xyes
; then
1662 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1663 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1664 { (exit 1); exit 1; }; }
1665 elif test x
$withval != xno
; then
1666 cpp_install_dir
=$withval
1670 # We would like to our source tree to be readonly. However when releases or
1671 # pre-releases are generated, the flex/bison generated files as well as the
1672 # various formats of manuals need to be included along with the rest of the
1673 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1676 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1677 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1678 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1679 if test "${enable_generated_files_in_srcdir+set}" = set; then
1680 enableval
="$enable_generated_files_in_srcdir"
1681 generated_files_in_srcdir
=$enableval
1683 generated_files_in_srcdir
=no
1686 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1687 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1689 if test "$generated_files_in_srcdir" = "yes"; then
1696 # -------------------
1697 # Find default linker
1698 # -------------------
1702 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1703 if test "${with_gnu_ld+set}" = set; then
1704 withval
="$with_gnu_ld"
1705 gnu_ld_flag
="$with_gnu_ld"
1710 # With pre-defined ld
1712 # Check whether --with-ld or --without-ld was given.
1713 if test "${with_ld+set}" = set; then
1715 DEFAULT_LINKER
="$with_ld"
1717 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1718 if test ! -x "$DEFAULT_LINKER"; then
1719 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1720 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1721 { (exit 1); exit 1; }; }
1722 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1726 cat >>confdefs.h
<<_ACEOF
1727 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1732 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1733 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1734 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1735 if test x
"$gnu_ld_flag" = x
"no"; then
1736 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1737 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1739 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1740 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1743 echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1747 # With demangler in GNU ld
1749 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1750 if test "${with_demangler_in_ld+set}" = set; then
1751 withval
="$with_demangler_in_ld"
1752 demangler_in_ld
="$with_demangler_in_ld"
1757 # ----------------------
1758 # Find default assembler
1759 # ----------------------
1763 # Check whether --with-gnu-as or --without-gnu-as was given.
1764 if test "${with_gnu_as+set}" = set; then
1765 withval
="$with_gnu_as"
1766 gas_flag
="$with_gnu_as"
1772 # Check whether --with-as or --without-as was given.
1773 if test "${with_as+set}" = set; then
1775 DEFAULT_ASSEMBLER
="$with_as"
1777 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1778 if test ! -x "$DEFAULT_ASSEMBLER"; then
1779 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1780 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1781 { (exit 1); exit 1; }; }
1782 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1786 cat >>confdefs.h
<<_ACEOF
1787 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1792 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1793 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1794 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1795 if test x
"$gas_flag" = x
"no"; then
1796 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1797 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1799 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1800 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1811 # If a non-executable a.out is present (e.g. created by GNU as above even if
1812 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1813 # file, even when creating an executable, so an execution test fails.
1814 # Remove possible default executable files to avoid this.
1816 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1817 # Autoconf includes it.
1818 rm -f a.out a.exe b.out
1820 # Find the native compiler
1822 ac_cpp
='$CPP $CPPFLAGS'
1823 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1826 if test -n "$ac_tool_prefix"; then
1827 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1828 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1829 echo "$as_me:$LINENO: checking for $ac_word" >&5
1830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831 if test "${ac_cv_prog_CC+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 if test -n "$CC"; then
1835 ac_cv_prog_CC
="$CC" # Let the user override the test.
1837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1841 test -z "$as_dir" && as_dir
=.
1842 for ac_exec_ext
in '' $ac_executable_extensions; do
1843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 if test -n "$CC"; then
1855 echo "$as_me:$LINENO: result: $CC" >&5
1856 echo "${ECHO_T}$CC" >&6
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1863 if test -z "$ac_cv_prog_CC"; then
1865 # Extract the first word of "gcc", so it can be a program name with args.
1866 set dummy gcc
; ac_word
=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 if test -n "$ac_ct_CC"; then
1873 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1879 test -z "$as_dir" && as_dir
=.
1880 for ac_exec_ext
in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_ac_ct_CC
="gcc"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1892 if test -n "$ac_ct_CC"; then
1893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894 echo "${ECHO_T}$ac_ct_CC" >&6
1896 echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1905 if test -z "$CC"; then
1906 if test -n "$ac_tool_prefix"; then
1907 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1908 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_CC+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 if test -n "$CC"; then
1915 ac_cv_prog_CC
="$CC" # Let the user override the test.
1917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1921 test -z "$as_dir" && as_dir
=.
1922 for ac_exec_ext
in '' $ac_executable_extensions; do
1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 if test -n "$CC"; then
1935 echo "$as_me:$LINENO: result: $CC" >&5
1936 echo "${ECHO_T}$CC" >&6
1938 echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1943 if test -z "$ac_cv_prog_CC"; then
1945 # Extract the first word of "cc", so it can be a program name with args.
1946 set dummy cc
; ac_word
=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 if test -n "$ac_ct_CC"; then
1953 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1959 test -z "$as_dir" && as_dir
=.
1960 for ac_exec_ext
in '' $ac_executable_extensions; do
1961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962 ac_cv_prog_ac_ct_CC
="cc"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1972 if test -n "$ac_ct_CC"; then
1973 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1974 echo "${ECHO_T}$ac_ct_CC" >&6
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1986 if test -z "$CC"; then
1987 # Extract the first word of "cc", so it can be a program name with args.
1988 set dummy cc
; ac_word
=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 if test -n "$CC"; then
1995 ac_cv_prog_CC
="$CC" # Let the user override the test.
1998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2002 test -z "$as_dir" && as_dir
=.
2003 for ac_exec_ext
in '' $ac_executable_extensions; do
2004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2006 ac_prog_rejected
=yes
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016 if test $ac_prog_rejected = yes; then
2017 # We found a bogon in the path, so make sure we never use it.
2018 set dummy
$ac_cv_prog_CC
2020 if test $# != 0; then
2021 # We chose a different compiler from the bogus one.
2022 # However, it has the same basename, so the bogon will be chosen
2023 # first if we set CC to just the basename; use the full file name.
2025 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2031 if test -n "$CC"; then
2032 echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2040 if test -z "$CC"; then
2041 if test -n "$ac_tool_prefix"; then
2044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2045 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 if test -n "$CC"; then
2052 ac_cv_prog_CC
="$CC" # Let the user override the test.
2054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2058 test -z "$as_dir" && as_dir
=.
2059 for ac_exec_ext
in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 if test -n "$CC"; then
2072 echo "$as_me:$LINENO: result: $CC" >&5
2073 echo "${ECHO_T}$CC" >&6
2075 echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6
2079 test -n "$CC" && break
2082 if test -z "$CC"; then
2086 # Extract the first word of "$ac_prog", so it can be a program name with args.
2087 set dummy
$ac_prog; ac_word
=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 if test -n "$ac_ct_CC"; then
2094 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2100 test -z "$as_dir" && as_dir
=.
2101 for ac_exec_ext
in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_ac_ct_CC
="$ac_prog"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2113 if test -n "$ac_ct_CC"; then
2114 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2115 echo "${ECHO_T}$ac_ct_CC" >&6
2117 echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2121 test -n "$ac_ct_CC" && break
2130 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: no acceptable C compiler found in \$PATH
2133 See \`config.log' for more details." >&2;}
2134 { (exit 1); exit 1; }; }
2136 # Provide some information about the compiler.
2137 echo "$as_me:$LINENO:" \
2138 "checking for C compiler version" >&5
2139 ac_compiler
=`set X $ac_compile; echo $2`
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2141 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }
2145 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2146 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }
2150 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2151 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }
2156 cat >conftest.
$ac_ext <<_ACEOF
2159 cat confdefs.h
>>conftest.
$ac_ext
2160 cat >>conftest.
$ac_ext <<_ACEOF
2161 /* end confdefs.h. */
2171 ac_clean_files_save
=$ac_clean_files
2172 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2173 # Try to create an executable without -o first, disregard a.out.
2174 # It will help us diagnose broken compilers, and finding out an intuition
2176 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2177 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2178 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2179 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2180 (eval $ac_link_default) 2>&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; then
2184 # Find the output, starting from the most likely. This scheme is
2185 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2188 # Be careful to initialize this variable, since it used to be cached.
2189 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2191 # b.out is created by i960 compilers.
2192 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2194 test -f "$ac_file" ||
continue
2196 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2199 # This is the source file.
2202 # We found the default executable, but exeext='' is most
2206 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207 # FIXME: I believe we export ac_cv_exeext for Libtool,
2208 # but it would be cool to find out if it's true. Does anybody
2209 # maintain Libtool? --akim.
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.
$ac_ext >&5
2220 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: C compiler cannot create executables
2223 See \`config.log' for more details." >&2;}
2224 { (exit 77); exit 77; }; }
2227 ac_exeext
=$ac_cv_exeext
2228 echo "$as_me:$LINENO: result: $ac_file" >&5
2229 echo "${ECHO_T}$ac_file" >&6
2231 # Check the compiler produces executables we can run. If not, either
2232 # the compiler is broken, or we cross compile.
2233 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2234 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2235 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2236 # If not cross compiling, check that we can run a simple program.
2237 if test "$cross_compiling" != yes; then
2238 if { ac_try
='./$ac_file'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2246 if test "$cross_compiling" = maybe
; then
2249 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2250 If you meant to cross compile, use \`--host'.
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: cannot run C compiled programs.
2253 If you meant to cross compile, use \`--host'.
2254 See \`config.log' for more details." >&2;}
2255 { (exit 1); exit 1; }; }
2259 echo "$as_me:$LINENO: result: yes" >&5
2260 echo "${ECHO_T}yes" >&6
2262 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2263 ac_clean_files
=$ac_clean_files_save
2264 # Check the compiler produces executables we can run. If not, either
2265 # the compiler is broken, or we cross compile.
2266 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2267 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2268 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2269 echo "${ECHO_T}$cross_compiling" >&6
2271 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2272 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2274 (eval $ac_link) 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2279 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2280 # work properly (i.e., refer to `conftest.exe'), while it won't with
2282 for ac_file
in conftest.exe conftest conftest.
*; do
2283 test -f "$ac_file" ||
continue
2285 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2286 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2293 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&5
2295 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
2300 rm -f conftest
$ac_cv_exeext
2301 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302 echo "${ECHO_T}$ac_cv_exeext" >&6
2304 rm -f conftest.
$ac_ext
2305 EXEEXT
=$ac_cv_exeext
2307 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2309 if test "${ac_cv_objext+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 cat >conftest.
$ac_ext <<_ACEOF
2315 cat confdefs.h
>>conftest.
$ac_ext
2316 cat >>conftest.
$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2327 rm -f conftest.o conftest.obj
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; then
2333 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2335 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2336 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.
$ac_ext >&5
2344 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2345 See \`config.log' for more details." >&5
2346 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&2;}
2348 { (exit 1); exit 1; }; }
2351 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2353 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2354 echo "${ECHO_T}$ac_cv_objext" >&6
2355 OBJEXT
=$ac_cv_objext
2357 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2358 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2359 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 cat >conftest.
$ac_ext <<_ACEOF
2365 cat confdefs.h
>>conftest.
$ac_ext
2366 cat >>conftest.
$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2380 rm -f conftest.
$ac_objext
2381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382 (eval $ac_compile) 2>conftest.er1
2384 grep -v '^ *+' conftest.er1
>conftest.err
2386 cat conftest.err
>&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } &&
2389 { ac_try
='test -z "$ac_c_werror_flag"
2390 || test ! -s conftest.err'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; } &&
2396 { ac_try
='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.
$ac_ext >&5
2409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2410 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2413 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2414 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2415 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2416 ac_test_CFLAGS
=${CFLAGS+set}
2417 ac_save_CFLAGS
=$CFLAGS
2419 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2420 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2421 if test "${ac_cv_prog_cc_g+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 cat >conftest.
$ac_ext <<_ACEOF
2427 cat confdefs.h
>>conftest.
$ac_ext
2428 cat >>conftest.
$ac_ext <<_ACEOF
2429 /* end confdefs.h. */
2439 rm -f conftest.
$ac_objext
2440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441 (eval $ac_compile) 2>conftest.er1
2443 grep -v '^ *+' conftest.er1
>conftest.err
2445 cat conftest.err
>&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); } &&
2448 { ac_try
='test -z "$ac_c_werror_flag"
2449 || test ! -s conftest.err'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; } &&
2455 { ac_try
='test -s conftest.$ac_objext'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; }; then
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.
$ac_ext >&5
2468 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2471 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2472 if test "$ac_test_CFLAGS" = set; then
2473 CFLAGS
=$ac_save_CFLAGS
2474 elif test $ac_cv_prog_cc_g = yes; then
2475 if test "$GCC" = yes; then
2481 if test "$GCC" = yes; then
2487 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2488 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2489 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 ac_cv_prog_cc_stdc
=no
2494 cat >conftest.
$ac_ext <<_ACEOF
2497 cat confdefs.h
>>conftest.
$ac_ext
2498 cat >>conftest.
$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2502 #include <sys/types.h>
2503 #include <sys/stat.h>
2504 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2505 struct buf { int x; };
2506 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2507 static char *e (p, i)
2513 static char *f (char * (*g) (char **, int), char **p, ...)
2518 s = g (p, va_arg (v,int));
2523 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2524 function prototypes and stuff, but not '\xHH' hex character constants.
2525 These don't provoke an error unfortunately, instead are silently treated
2526 as 'x'. The following induces an error, until -std1 is added to get
2527 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2528 array size at least. It's necessary to write '\x00'==0 to get something
2529 that's true only with -std1. */
2530 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2532 int test (int i, double x);
2533 struct s1 {int (*f) (int a);};
2534 struct s2 {int (*f) (double a);};
2535 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2541 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2546 # Don't try gcc -ansi; that turns off useful extensions and
2547 # breaks some systems' header files.
2548 # AIX -qlanglvl=ansi
2549 # Ultrix and OSF/1 -std1
2550 # HP-UX 10.20 and later -Ae
2551 # HP-UX older versions -Aa -D_HPUX_SOURCE
2552 # SVR4 -Xc -D__EXTENSIONS__
2553 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2555 CC
="$ac_save_CC $ac_arg"
2556 rm -f conftest.
$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2560 grep -v '^ *+' conftest.er1
>conftest.err
2562 cat conftest.err
>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try
='test -z "$ac_c_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try
='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 ac_cv_prog_cc_stdc
=$ac_arg
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.
$ac_ext >&5
2585 rm -f conftest.err conftest.
$ac_objext
2587 rm -f conftest.
$ac_ext conftest.
$ac_objext
2592 case "x$ac_cv_prog_cc_stdc" in
2594 echo "$as_me:$LINENO: result: none needed" >&5
2595 echo "${ECHO_T}none needed" >&6 ;;
2597 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2598 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2599 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2602 # Some people use a C++ compiler to compile C. Since we use `exit',
2603 # in C++ we need to declare it. In case someone uses the same compiler
2604 # for both compiling C and C++ we need to have the C++ compiler decide
2605 # the declaration of exit, since it's the most demanding environment.
2606 cat >conftest.
$ac_ext <<_ACEOF
2611 rm -f conftest.
$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>conftest.er1
2615 grep -v '^ *+' conftest.er1
>conftest.err
2617 cat conftest.err
>&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try
='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try
='test -s conftest.$ac_objext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2633 for ac_declaration
in \
2635 'extern "C" void std::exit (int) throw (); using std::exit;' \
2636 'extern "C" void std::exit (int); using std::exit;' \
2637 'extern "C" void exit (int) throw ();' \
2638 'extern "C" void exit (int);' \
2641 cat >conftest.
$ac_ext <<_ACEOF
2644 cat confdefs.h
>>conftest.
$ac_ext
2645 cat >>conftest.
$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2657 rm -f conftest.
$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2661 grep -v '^ *+' conftest.er1
>conftest.err
2663 cat conftest.err
>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try
='test -z "$ac_c_werror_flag"
2667 || test ! -s conftest.err'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try
='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.
$ac_ext >&5
2686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2687 cat >conftest.
$ac_ext <<_ACEOF
2690 cat confdefs.h
>>conftest.
$ac_ext
2691 cat >>conftest.
$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2702 rm -f conftest.
$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2706 grep -v '^ *+' conftest.er1
>conftest.err
2708 cat conftest.err
>&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try
='test -z "$ac_c_werror_flag"
2712 || test ! -s conftest.err'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try
='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.
$ac_ext >&5
2730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2733 if test -n "$ac_declaration"; then
2734 echo '#ifdef __cplusplus' >>confdefs.h
2735 echo $ac_declaration >>confdefs.h
2736 echo '#endif' >>confdefs.h
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.
$ac_ext >&5
2744 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2746 ac_cpp
='$CPP $CPPFLAGS'
2747 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2751 if test "x$CC" != xcc
; then
2752 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2753 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2755 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2756 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2758 set dummy
$CC; ac_cc
=`echo $2 |
2759 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2760 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 cat >conftest.
$ac_ext <<_ACEOF
2766 cat confdefs.h
>>conftest.
$ac_ext
2767 cat >>conftest.
$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2778 # Make sure it works both with $CC and with simple cc.
2779 # We do the test twice because some compilers refuse to overwrite an
2780 # existing .o file with -o, though they will create one.
2781 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2782 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); };
2793 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2794 if test "x$CC" != xcc
; then
2795 # Test first that cc exists at all.
2796 if { ac_try
='cc -c conftest.$ac_ext >&5'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2803 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); };
2817 # cc exists but doesn't like -o.
2818 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2823 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2828 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2829 echo "$as_me:$LINENO: result: yes" >&5
2830 echo "${ECHO_T}yes" >&6
2832 echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6
2835 cat >>confdefs.h
<<\_ACEOF
2836 #define NO_MINUS_C_MINUS_O 1
2841 # expand $ac_aux_dir to an absolute path
2842 am_aux_dir
=`cd $ac_aux_dir && pwd`
2844 # FIXME: we rely on the cache variable name because
2845 # there is no other way.
2847 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2848 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2849 # Losing compiler, so override with the script.
2850 # FIXME: It is wrong to rewrite CC.
2851 # But if we don't then we get into trouble of one sort or another.
2852 # A longer-term fix would be to have automake use am__CC in this case,
2853 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2854 CC
="$am_aux_dir/compile $CC"
2857 # autoconf is lame and doesn't give us any substitution variable for this.
2858 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2859 NO_MINUS_C_MINUS_O
=yes
2861 OUTPUT_OPTION
='-o $@'
2866 # -------------------------
2867 # Check C compiler features
2868 # -------------------------
2871 ac_cpp
='$CPP $CPPFLAGS'
2872 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2875 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2876 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2877 # On Suns, sometimes $CPP names a directory.
2878 if test -n "$CPP" && test -d "$CPP"; then
2881 if test -z "$CPP"; then
2882 if test "${ac_cv_prog_CPP+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 # Double quotes because CPP needs to be expanded
2886 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2889 for ac_c_preproc_warn_flag
in '' yes
2891 # Use a header file that comes with gcc, so configuring glibc
2892 # with a fresh cross-compiler works.
2893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2894 # <limits.h> exists even on freestanding compilers.
2895 # On the NeXT, cc -E runs the code through the compiler's parser,
2896 # not just through cpp. "Syntax error" is here to catch this case.
2897 cat >conftest.
$ac_ext <<_ACEOF
2900 cat confdefs.h
>>conftest.
$ac_ext
2901 cat >>conftest.
$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2904 # include <limits.h>
2906 # include <assert.h>
2910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2911 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2913 grep -v '^ *+' conftest.er1
>conftest.err
2915 cat conftest.err
>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } >/dev
/null
; then
2918 if test -s conftest.err
; then
2919 ac_cpp_err
=$ac_c_preproc_warn_flag
2920 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2927 if test -z "$ac_cpp_err"; then
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.
$ac_ext >&5
2933 # Broken: fails on valid input.
2936 rm -f conftest.err conftest.
$ac_ext
2938 # OK, works on sane cases. Now check whether non-existent headers
2939 # can be detected and how.
2940 cat >conftest.
$ac_ext <<_ACEOF
2943 cat confdefs.h
>>conftest.
$ac_ext
2944 cat >>conftest.
$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #include <ac_nonexistent.h>
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2951 grep -v '^ *+' conftest.er1
>conftest.err
2953 cat conftest.err
>&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } >/dev
/null
; then
2956 if test -s conftest.err
; then
2957 ac_cpp_err
=$ac_c_preproc_warn_flag
2958 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2965 if test -z "$ac_cpp_err"; then
2966 # Broken: success on invalid input.
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.
$ac_ext >&5
2972 # Passes both tests.
2976 rm -f conftest.err conftest.
$ac_ext
2979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2980 rm -f conftest.err conftest.
$ac_ext
2981 if $ac_preproc_ok; then
2993 echo "$as_me:$LINENO: result: $CPP" >&5
2994 echo "${ECHO_T}$CPP" >&6
2996 for ac_c_preproc_warn_flag
in '' yes
2998 # Use a header file that comes with gcc, so configuring glibc
2999 # with a fresh cross-compiler works.
3000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001 # <limits.h> exists even on freestanding compilers.
3002 # On the NeXT, cc -E runs the code through the compiler's parser,
3003 # not just through cpp. "Syntax error" is here to catch this case.
3004 cat >conftest.
$ac_ext <<_ACEOF
3007 cat confdefs.h
>>conftest.
$ac_ext
3008 cat >>conftest.
$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3011 # include <limits.h>
3013 # include <assert.h>
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3020 grep -v '^ *+' conftest.er1
>conftest.err
3022 cat conftest.err
>&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } >/dev
/null
; then
3025 if test -s conftest.err
; then
3026 ac_cpp_err
=$ac_c_preproc_warn_flag
3027 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3034 if test -z "$ac_cpp_err"; then
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.
$ac_ext >&5
3040 # Broken: fails on valid input.
3043 rm -f conftest.err conftest.
$ac_ext
3045 # OK, works on sane cases. Now check whether non-existent headers
3046 # can be detected and how.
3047 cat >conftest.
$ac_ext <<_ACEOF
3050 cat confdefs.h
>>conftest.
$ac_ext
3051 cat >>conftest.
$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #include <ac_nonexistent.h>
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3058 grep -v '^ *+' conftest.er1
>conftest.err
3060 cat conftest.err
>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } >/dev
/null
; then
3063 if test -s conftest.err
; then
3064 ac_cpp_err
=$ac_c_preproc_warn_flag
3065 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3072 if test -z "$ac_cpp_err"; then
3073 # Broken: success on invalid input.
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.
$ac_ext >&5
3079 # Passes both tests.
3083 rm -f conftest.err conftest.
$ac_ext
3086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087 rm -f conftest.err conftest.
$ac_ext
3088 if $ac_preproc_ok; then
3091 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&5
3093 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3094 See \`config.log' for more details." >&2;}
3095 { (exit 1); exit 1; }; }
3099 ac_cpp
='$CPP $CPPFLAGS'
3100 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3105 echo "$as_me:$LINENO: checking for inline" >&5
3106 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3107 if test "${ac_cv_c_inline+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 for ac_kw
in inline __inline__ __inline
; do
3112 cat >conftest.
$ac_ext <<_ACEOF
3115 cat confdefs.h
>>conftest.
$ac_ext
3116 cat >>conftest.
$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3120 static $ac_kw foo_t static_foo () {return 0; }
3121 $ac_kw foo_t foo () {return 0; }
3125 rm -f conftest.
$ac_objext
3126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3127 (eval $ac_compile) 2>conftest.er1
3129 grep -v '^ *+' conftest.er1
>conftest.err
3131 cat conftest.err
>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } &&
3134 { ac_try
='test -z "$ac_c_werror_flag"
3135 || test ! -s conftest.err'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } &&
3141 { ac_try
='test -s conftest.$ac_objext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_c_inline
=$ac_kw; break
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.
$ac_ext >&5
3153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3157 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3158 echo "${ECHO_T}$ac_cv_c_inline" >&6
3161 case $ac_cv_c_inline in
3164 case $ac_cv_c_inline in
3166 *) ac_val
=$ac_cv_c_inline;;
3168 cat >>confdefs.h
<<_ACEOF
3170 #define inline $ac_val
3177 echo "$as_me:$LINENO: checking for long long int" >&5
3178 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3179 if test "${ac_cv_c_long_long+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 cat >conftest.
$ac_ext <<_ACEOF
3185 cat confdefs.h
>>conftest.
$ac_ext
3186 cat >>conftest.
$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3197 rm -f conftest.
$ac_objext
3198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199 (eval $ac_compile) 2>conftest.er1
3201 grep -v '^ *+' conftest.er1
>conftest.err
3203 cat conftest.err
>&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } &&
3206 { ac_try
='test -z "$ac_c_werror_flag"
3207 || test ! -s conftest.err'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; } &&
3213 { ac_try
='test -s conftest.$ac_objext'
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3219 ac_cv_c_long_long
=yes
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.
$ac_ext >&5
3224 ac_cv_c_long_long
=no
3226 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3228 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3229 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3230 if test $ac_cv_c_long_long = yes; then
3232 cat >>confdefs.h
<<\_ACEOF
3233 #define HAVE_LONG_LONG 1
3237 echo "$as_me:$LINENO: checking for __int64" >&5
3238 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3239 if test "${ac_cv_c___int64+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 cat >conftest.
$ac_ext <<_ACEOF
3245 cat confdefs.h
>>conftest.
$ac_ext
3246 cat >>conftest.
$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3257 rm -f conftest.
$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>conftest.er1
3261 grep -v '^ *+' conftest.er1
>conftest.err
3263 cat conftest.err
>&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try
='test -z "$ac_c_werror_flag"
3267 || test ! -s conftest.err'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; } &&
3273 { ac_try
='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.
$ac_ext >&5
3286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3288 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3289 echo "${ECHO_T}$ac_cv_c___int64" >&6
3290 if test $ac_cv_c___int64 = yes; then
3292 cat >>confdefs.h
<<\_ACEOF
3293 #define HAVE___INT64 1
3299 # sizeof(char) is 1 by definition.
3301 echo "$as_me:$LINENO: checking for egrep" >&5
3302 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3303 if test "${ac_cv_prog_egrep+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3307 then ac_cv_prog_egrep
='grep -E'
3308 else ac_cv_prog_egrep
='egrep'
3311 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3312 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3313 EGREP
=$ac_cv_prog_egrep
3316 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3317 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3318 if test "${ac_cv_header_stdc+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 cat >conftest.
$ac_ext <<_ACEOF
3324 cat confdefs.h
>>conftest.
$ac_ext
3325 cat >>conftest.
$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3340 rm -f conftest.
$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>conftest.er1
3344 grep -v '^ *+' conftest.er1
>conftest.err
3346 cat conftest.err
>&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try
='test -z "$ac_c_werror_flag"
3350 || test ! -s conftest.err'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try
='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 ac_cv_header_stdc
=yes
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.
$ac_ext >&5
3367 ac_cv_header_stdc
=no
3369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3371 if test $ac_cv_header_stdc = yes; then
3372 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3373 cat >conftest.
$ac_ext <<_ACEOF
3376 cat confdefs.h
>>conftest.
$ac_ext
3377 cat >>conftest.
$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3383 $EGREP "memchr" >/dev
/null
2>&1; then
3386 ac_cv_header_stdc
=no
3392 if test $ac_cv_header_stdc = yes; then
3393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3394 cat >conftest.
$ac_ext <<_ACEOF
3397 cat confdefs.h
>>conftest.
$ac_ext
3398 cat >>conftest.
$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3404 $EGREP "free" >/dev
/null
2>&1; then
3407 ac_cv_header_stdc
=no
3413 if test $ac_cv_header_stdc = yes; then
3414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3415 if test "$cross_compiling" = yes; then
3418 cat >conftest.
$ac_ext <<_ACEOF
3421 cat confdefs.h
>>conftest.
$ac_ext
3422 cat >>conftest.
$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3425 #if ((' ' & 0x0FF) == 0x020)
3426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3429 # define ISLOWER(c) \
3430 (('a' <= (c) && (c) <= 'i') \
3431 || ('j' <= (c) && (c) <= 'r') \
3432 || ('s' <= (c) && (c) <= 'z'))
3433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3441 for (i = 0; i < 256; i++)
3442 if (XOR (islower (i), ISLOWER (i))
3443 || toupper (i) != TOUPPER (i))
3448 rm -f conftest
$ac_exeext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3450 (eval $ac_link) 2>&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3461 echo "$as_me: program exited with status $ac_status" >&5
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.
$ac_ext >&5
3466 ac_cv_header_stdc
=no
3468 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3472 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3473 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3474 if test $ac_cv_header_stdc = yes; then
3476 cat >>confdefs.h
<<\_ACEOF
3477 #define STDC_HEADERS 1
3482 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3492 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3493 inttypes.h stdint.h unistd.h
3495 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3496 echo "$as_me:$LINENO: checking for $ac_header" >&5
3497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 cat >conftest.
$ac_ext <<_ACEOF
3504 cat confdefs.h
>>conftest.
$ac_ext
3505 cat >>conftest.
$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3507 $ac_includes_default
3509 #include <$ac_header>
3511 rm -f conftest.
$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>conftest.er1
3515 grep -v '^ *+' conftest.er1
>conftest.err
3517 cat conftest.err
>&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try
='test -z "$ac_c_werror_flag"
3521 || test ! -s conftest.err'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try
='test -s conftest.$ac_objext'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 eval "$as_ac_Header=yes"
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.
$ac_ext >&5
3538 eval "$as_ac_Header=no"
3540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3545 cat >>confdefs.h
<<_ACEOF
3546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3554 echo "$as_me:$LINENO: checking for void *" >&5
3555 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3556 if test "${ac_cv_type_void_p+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 cat >conftest.
$ac_ext <<_ACEOF
3562 cat confdefs.h
>>conftest.
$ac_ext
3563 cat >>conftest.
$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 $ac_includes_default
3571 if (sizeof (void *))
3577 rm -f conftest.
$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3581 grep -v '^ *+' conftest.er1
>conftest.err
3583 cat conftest.err
>&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try
='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try
='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 ac_cv_type_void_p
=yes
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.
$ac_ext >&5
3604 ac_cv_type_void_p
=no
3606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3608 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3609 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3611 echo "$as_me:$LINENO: checking size of void *" >&5
3612 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3613 if test "${ac_cv_sizeof_void_p+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 if test "$ac_cv_type_void_p" = yes; then
3617 # The cast to unsigned long works around a bug in the HP C Compiler
3618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3620 # This bug is HP SR number 8606223364.
3621 if test "$cross_compiling" = yes; then
3622 # Depending upon the size, compute the lo and hi bounds.
3623 cat >conftest.
$ac_ext <<_ACEOF
3626 cat confdefs.h
>>conftest.
$ac_ext
3627 cat >>conftest.
$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629 $ac_includes_default
3633 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3640 rm -f conftest.
$ac_objext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642 (eval $ac_compile) 2>conftest.er1
3644 grep -v '^ *+' conftest.er1
>conftest.err
3646 cat conftest.err
>&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try
='test -z "$ac_c_werror_flag"
3650 || test ! -s conftest.err'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; } &&
3656 { ac_try
='test -s conftest.$ac_objext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3664 cat >conftest.
$ac_ext <<_ACEOF
3667 cat confdefs.h
>>conftest.
$ac_ext
3668 cat >>conftest.
$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3670 $ac_includes_default
3674 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3681 rm -f conftest.
$ac_objext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683 (eval $ac_compile) 2>conftest.er1
3685 grep -v '^ *+' conftest.er1
>conftest.err
3687 cat conftest.err
>&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try
='test -z "$ac_c_werror_flag"
3691 || test ! -s conftest.err'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; } &&
3697 { ac_try
='test -s conftest.$ac_objext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 ac_hi
=$ac_mid; break
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.
$ac_ext >&5
3708 ac_lo
=`expr $ac_mid + 1`
3709 if test $ac_lo -le $ac_mid; then
3713 ac_mid
=`expr 2 '*' $ac_mid + 1`
3715 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.
$ac_ext >&5
3721 cat >conftest.
$ac_ext <<_ACEOF
3724 cat confdefs.h
>>conftest.
$ac_ext
3725 cat >>conftest.
$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3727 $ac_includes_default
3731 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3738 rm -f conftest.
$ac_objext
3739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3740 (eval $ac_compile) 2>conftest.er1
3742 grep -v '^ *+' conftest.er1
>conftest.err
3744 cat conftest.err
>&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try
='test -z "$ac_c_werror_flag"
3748 || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try
='test -s conftest.$ac_objext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3762 cat >conftest.
$ac_ext <<_ACEOF
3765 cat confdefs.h
>>conftest.
$ac_ext
3766 cat >>conftest.
$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3768 $ac_includes_default
3772 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3779 rm -f conftest.
$ac_objext
3780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3781 (eval $ac_compile) 2>conftest.er1
3783 grep -v '^ *+' conftest.er1
>conftest.err
3785 cat conftest.err
>&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } &&
3788 { ac_try
='test -z "$ac_c_werror_flag"
3789 || test ! -s conftest.err'
3790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; } &&
3795 { ac_try
='test -s conftest.$ac_objext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3801 ac_lo
=$ac_mid; break
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.
$ac_ext >&5
3806 ac_hi
=`expr '(' $ac_mid ')' - 1`
3807 if test $ac_mid -le $ac_hi; then
3811 ac_mid
=`expr 2 '*' $ac_mid`
3813 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.
$ac_ext >&5
3821 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3823 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3824 # Binary search between lo and hi bounds.
3825 while test "x$ac_lo" != "x$ac_hi"; do
3826 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3827 cat >conftest.
$ac_ext <<_ACEOF
3830 cat confdefs.h
>>conftest.
$ac_ext
3831 cat >>conftest.
$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3833 $ac_includes_default
3837 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3844 rm -f conftest.
$ac_objext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>conftest.er1
3848 grep -v '^ *+' conftest.er1
>conftest.err
3850 cat conftest.err
>&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try
='test -z "$ac_c_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try
='test -s conftest.$ac_objext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.
$ac_ext >&5
3871 ac_lo
=`expr '(' $ac_mid ')' + 1`
3873 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3876 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3877 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3878 See \`config.log' for more details." >&5
3879 echo "$as_me: error: cannot compute sizeof (void *), 77
3880 See \`config.log' for more details." >&2;}
3881 { (exit 1); exit 1; }; } ;;
3884 if test "$cross_compiling" = yes; then
3885 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3886 See \`config.log' for more details." >&5
3887 echo "$as_me: error: cannot run test program while cross compiling
3888 See \`config.log' for more details." >&2;}
3889 { (exit 1); exit 1; }; }
3891 cat >conftest.
$ac_ext <<_ACEOF
3894 cat confdefs.h
>>conftest.
$ac_ext
3895 cat >>conftest.
$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3897 $ac_includes_default
3898 long longval () { return (long) (sizeof (void *)); }
3899 unsigned long ulongval () { return (long) (sizeof (void *)); }
3906 FILE *f = fopen ("conftest.val", "w");
3909 if (((long) (sizeof (void *))) < 0)
3911 long i = longval ();
3912 if (i != ((long) (sizeof (void *))))
3914 fprintf (f, "%ld\n", i);
3918 unsigned long i = ulongval ();
3919 if (i != ((long) (sizeof (void *))))
3921 fprintf (f, "%lu\n", i);
3923 exit (ferror (f) || fclose (f) != 0);
3929 rm -f conftest
$ac_exeext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931 (eval $ac_link) 2>&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 ac_cv_sizeof_void_p
=`cat conftest.val`
3942 echo "$as_me: program exited with status $ac_status" >&5
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.
$ac_ext >&5
3947 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3948 See \`config.log' for more details." >&5
3949 echo "$as_me: error: cannot compute sizeof (void *), 77
3950 See \`config.log' for more details." >&2;}
3951 { (exit 1); exit 1; }; }
3953 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3958 ac_cv_sizeof_void_p
=0
3961 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3962 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3963 cat >>confdefs.h
<<_ACEOF
3964 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3968 echo "$as_me:$LINENO: checking for short" >&5
3969 echo $ECHO_N "checking for short... $ECHO_C" >&6
3970 if test "${ac_cv_type_short+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 cat >conftest.
$ac_ext <<_ACEOF
3976 cat confdefs.h
>>conftest.
$ac_ext
3977 cat >>conftest.
$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3979 $ac_includes_default
3991 rm -f conftest.
$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>conftest.er1
3995 grep -v '^ *+' conftest.er1
>conftest.err
3997 cat conftest.err
>&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try
='test -z "$ac_c_werror_flag"
4001 || test ! -s conftest.err'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try
='test -s conftest.$ac_objext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 ac_cv_type_short
=yes
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.
$ac_ext >&5
4020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4022 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4023 echo "${ECHO_T}$ac_cv_type_short" >&6
4025 echo "$as_me:$LINENO: checking size of short" >&5
4026 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4027 if test "${ac_cv_sizeof_short+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test "$ac_cv_type_short" = yes; then
4031 # The cast to unsigned long works around a bug in the HP C Compiler
4032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4034 # This bug is HP SR number 8606223364.
4035 if test "$cross_compiling" = yes; then
4036 # Depending upon the size, compute the lo and hi bounds.
4037 cat >conftest.
$ac_ext <<_ACEOF
4040 cat confdefs.h
>>conftest.
$ac_ext
4041 cat >>conftest.
$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 $ac_includes_default
4047 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4054 rm -f conftest.
$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056 (eval $ac_compile) 2>conftest.er1
4058 grep -v '^ *+' conftest.er1
>conftest.err
4060 cat conftest.err
>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try
='test -z "$ac_c_werror_flag"
4064 || test ! -s conftest.err'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; } &&
4070 { ac_try
='test -s conftest.$ac_objext'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4078 cat >conftest.
$ac_ext <<_ACEOF
4081 cat confdefs.h
>>conftest.
$ac_ext
4082 cat >>conftest.
$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4084 $ac_includes_default
4088 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4095 rm -f conftest.
$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>conftest.er1
4099 grep -v '^ *+' conftest.er1
>conftest.err
4101 cat conftest.err
>&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try
='test -z "$ac_c_werror_flag"
4105 || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try
='test -s conftest.$ac_objext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 ac_hi
=$ac_mid; break
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.
$ac_ext >&5
4122 ac_lo
=`expr $ac_mid + 1`
4123 if test $ac_lo -le $ac_mid; then
4127 ac_mid
=`expr 2 '*' $ac_mid + 1`
4129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.
$ac_ext >&5
4135 cat >conftest.
$ac_ext <<_ACEOF
4138 cat confdefs.h
>>conftest.
$ac_ext
4139 cat >>conftest.
$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 $ac_includes_default
4145 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4152 rm -f conftest.
$ac_objext
4153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4154 (eval $ac_compile) 2>conftest.er1
4156 grep -v '^ *+' conftest.er1
>conftest.err
4158 cat conftest.err
>&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try
='test -z "$ac_c_werror_flag"
4162 || test ! -s conftest.err'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; } &&
4168 { ac_try
='test -s conftest.$ac_objext'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4176 cat >conftest.
$ac_ext <<_ACEOF
4179 cat confdefs.h
>>conftest.
$ac_ext
4180 cat >>conftest.
$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4182 $ac_includes_default
4186 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4193 rm -f conftest.
$ac_objext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4195 (eval $ac_compile) 2>conftest.er1
4197 grep -v '^ *+' conftest.er1
>conftest.err
4199 cat conftest.err
>&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } &&
4202 { ac_try
='test -z "$ac_c_werror_flag"
4203 || test ! -s conftest.err'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; } &&
4209 { ac_try
='test -s conftest.$ac_objext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 ac_lo
=$ac_mid; break
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.
$ac_ext >&5
4220 ac_hi
=`expr '(' $ac_mid ')' - 1`
4221 if test $ac_mid -le $ac_hi; then
4225 ac_mid
=`expr 2 '*' $ac_mid`
4227 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.
$ac_ext >&5
4235 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4238 # Binary search between lo and hi bounds.
4239 while test "x$ac_lo" != "x$ac_hi"; do
4240 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4241 cat >conftest.
$ac_ext <<_ACEOF
4244 cat confdefs.h
>>conftest.
$ac_ext
4245 cat >>conftest.
$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 $ac_includes_default
4251 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4258 rm -f conftest.
$ac_objext
4259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4260 (eval $ac_compile) 2>conftest.er1
4262 grep -v '^ *+' conftest.er1
>conftest.err
4264 cat conftest.err
>&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } &&
4267 { ac_try
='test -z "$ac_c_werror_flag"
4268 || test ! -s conftest.err'
4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; } &&
4274 { ac_try
='test -s conftest.$ac_objext'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.
$ac_ext >&5
4285 ac_lo
=`expr '(' $ac_mid ')' + 1`
4287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4290 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4291 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4292 See \`config.log' for more details." >&5
4293 echo "$as_me: error: cannot compute sizeof (short), 77
4294 See \`config.log' for more details." >&2;}
4295 { (exit 1); exit 1; }; } ;;
4298 if test "$cross_compiling" = yes; then
4299 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4300 See \`config.log' for more details." >&5
4301 echo "$as_me: error: cannot run test program while cross compiling
4302 See \`config.log' for more details." >&2;}
4303 { (exit 1); exit 1; }; }
4305 cat >conftest.
$ac_ext <<_ACEOF
4308 cat confdefs.h
>>conftest.
$ac_ext
4309 cat >>conftest.
$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 $ac_includes_default
4312 long longval () { return (long) (sizeof (short)); }
4313 unsigned long ulongval () { return (long) (sizeof (short)); }
4320 FILE *f = fopen ("conftest.val", "w");
4323 if (((long) (sizeof (short))) < 0)
4325 long i = longval ();
4326 if (i != ((long) (sizeof (short))))
4328 fprintf (f, "%ld\n", i);
4332 unsigned long i = ulongval ();
4333 if (i != ((long) (sizeof (short))))
4335 fprintf (f, "%lu\n", i);
4337 exit (ferror (f) || fclose (f) != 0);
4343 rm -f conftest
$ac_exeext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4345 (eval $ac_link) 2>&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
4354 ac_cv_sizeof_short
=`cat conftest.val`
4356 echo "$as_me: program exited with status $ac_status" >&5
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.
$ac_ext >&5
4361 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4362 See \`config.log' for more details." >&5
4363 echo "$as_me: error: cannot compute sizeof (short), 77
4364 See \`config.log' for more details." >&2;}
4365 { (exit 1); exit 1; }; }
4367 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4372 ac_cv_sizeof_short
=0
4375 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4376 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4377 cat >>confdefs.h
<<_ACEOF
4378 #define SIZEOF_SHORT $ac_cv_sizeof_short
4382 echo "$as_me:$LINENO: checking for int" >&5
4383 echo $ECHO_N "checking for int... $ECHO_C" >&6
4384 if test "${ac_cv_type_int+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 cat >conftest.
$ac_ext <<_ACEOF
4390 cat confdefs.h
>>conftest.
$ac_ext
4391 cat >>conftest.
$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 $ac_includes_default
4405 rm -f conftest.
$ac_objext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407 (eval $ac_compile) 2>conftest.er1
4409 grep -v '^ *+' conftest.er1
>conftest.err
4411 cat conftest.err
>&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try
='test -z "$ac_c_werror_flag"
4415 || test ! -s conftest.err'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try
='test -s conftest.$ac_objext'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.
$ac_ext >&5
4434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4436 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4437 echo "${ECHO_T}$ac_cv_type_int" >&6
4439 echo "$as_me:$LINENO: checking size of int" >&5
4440 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4441 if test "${ac_cv_sizeof_int+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 if test "$ac_cv_type_int" = yes; then
4445 # The cast to unsigned long works around a bug in the HP C Compiler
4446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4448 # This bug is HP SR number 8606223364.
4449 if test "$cross_compiling" = yes; then
4450 # Depending upon the size, compute the lo and hi bounds.
4451 cat >conftest.
$ac_ext <<_ACEOF
4454 cat confdefs.h
>>conftest.
$ac_ext
4455 cat >>conftest.
$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 $ac_includes_default
4461 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4468 rm -f conftest.
$ac_objext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470 (eval $ac_compile) 2>conftest.er1
4472 grep -v '^ *+' conftest.er1
>conftest.err
4474 cat conftest.err
>&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try
='test -z "$ac_c_werror_flag"
4478 || test ! -s conftest.err'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try
='test -s conftest.$ac_objext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4492 cat >conftest.
$ac_ext <<_ACEOF
4495 cat confdefs.h
>>conftest.
$ac_ext
4496 cat >>conftest.
$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 $ac_includes_default
4502 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4509 rm -f conftest.
$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>conftest.er1
4513 grep -v '^ *+' conftest.er1
>conftest.err
4515 cat conftest.err
>&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } &&
4518 { ac_try
='test -z "$ac_c_werror_flag"
4519 || test ! -s conftest.err'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; } &&
4525 { ac_try
='test -s conftest.$ac_objext'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4531 ac_hi
=$ac_mid; break
4533 echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.
$ac_ext >&5
4536 ac_lo
=`expr $ac_mid + 1`
4537 if test $ac_lo -le $ac_mid; then
4541 ac_mid
=`expr 2 '*' $ac_mid + 1`
4543 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.
$ac_ext >&5
4549 cat >conftest.
$ac_ext <<_ACEOF
4552 cat confdefs.h
>>conftest.
$ac_ext
4553 cat >>conftest.
$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4555 $ac_includes_default
4559 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4566 rm -f conftest.
$ac_objext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4568 (eval $ac_compile) 2>conftest.er1
4570 grep -v '^ *+' conftest.er1
>conftest.err
4572 cat conftest.err
>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try
='test -z "$ac_c_werror_flag"
4576 || test ! -s conftest.err'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; } &&
4582 { ac_try
='test -s conftest.$ac_objext'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; }; then
4590 cat >conftest.
$ac_ext <<_ACEOF
4593 cat confdefs.h
>>conftest.
$ac_ext
4594 cat >>conftest.
$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 $ac_includes_default
4600 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4607 rm -f conftest.
$ac_objext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609 (eval $ac_compile) 2>conftest.er1
4611 grep -v '^ *+' conftest.er1
>conftest.err
4613 cat conftest.err
>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } &&
4616 { ac_try
='test -z "$ac_c_werror_flag"
4617 || test ! -s conftest.err'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; } &&
4623 { ac_try
='test -s conftest.$ac_objext'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; }; then
4629 ac_lo
=$ac_mid; break
4631 echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.
$ac_ext >&5
4634 ac_hi
=`expr '(' $ac_mid ')' - 1`
4635 if test $ac_mid -le $ac_hi; then
4639 ac_mid
=`expr 2 '*' $ac_mid`
4641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.
$ac_ext >&5
4649 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4651 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4652 # Binary search between lo and hi bounds.
4653 while test "x$ac_lo" != "x$ac_hi"; do
4654 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4655 cat >conftest.
$ac_ext <<_ACEOF
4658 cat confdefs.h
>>conftest.
$ac_ext
4659 cat >>conftest.
$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4661 $ac_includes_default
4665 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4672 rm -f conftest.
$ac_objext
4673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4674 (eval $ac_compile) 2>conftest.er1
4676 grep -v '^ *+' conftest.er1
>conftest.err
4678 cat conftest.err
>&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } &&
4681 { ac_try
='test -z "$ac_c_werror_flag"
4682 || test ! -s conftest.err'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; } &&
4688 { ac_try
='test -s conftest.$ac_objext'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.
$ac_ext >&5
4699 ac_lo
=`expr '(' $ac_mid ')' + 1`
4701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4704 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4705 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4706 See \`config.log' for more details." >&5
4707 echo "$as_me: error: cannot compute sizeof (int), 77
4708 See \`config.log' for more details." >&2;}
4709 { (exit 1); exit 1; }; } ;;
4712 if test "$cross_compiling" = yes; then
4713 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4714 See \`config.log' for more details." >&5
4715 echo "$as_me: error: cannot run test program while cross compiling
4716 See \`config.log' for more details." >&2;}
4717 { (exit 1); exit 1; }; }
4719 cat >conftest.
$ac_ext <<_ACEOF
4722 cat confdefs.h
>>conftest.
$ac_ext
4723 cat >>conftest.
$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 $ac_includes_default
4726 long longval () { return (long) (sizeof (int)); }
4727 unsigned long ulongval () { return (long) (sizeof (int)); }
4734 FILE *f = fopen ("conftest.val", "w");
4737 if (((long) (sizeof (int))) < 0)
4739 long i = longval ();
4740 if (i != ((long) (sizeof (int))))
4742 fprintf (f, "%ld\n", i);
4746 unsigned long i = ulongval ();
4747 if (i != ((long) (sizeof (int))))
4749 fprintf (f, "%lu\n", i);
4751 exit (ferror (f) || fclose (f) != 0);
4757 rm -f conftest
$ac_exeext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4759 (eval $ac_link) 2>&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 ac_cv_sizeof_int
=`cat conftest.val`
4770 echo "$as_me: program exited with status $ac_status" >&5
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.
$ac_ext >&5
4775 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4776 See \`config.log' for more details." >&5
4777 echo "$as_me: error: cannot compute sizeof (int), 77
4778 See \`config.log' for more details." >&2;}
4779 { (exit 1); exit 1; }; }
4781 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4789 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4790 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4791 cat >>confdefs.h
<<_ACEOF
4792 #define SIZEOF_INT $ac_cv_sizeof_int
4796 echo "$as_me:$LINENO: checking for long" >&5
4797 echo $ECHO_N "checking for long... $ECHO_C" >&6
4798 if test "${ac_cv_type_long+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 cat >conftest.
$ac_ext <<_ACEOF
4804 cat confdefs.h
>>conftest.
$ac_ext
4805 cat >>conftest.
$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 $ac_includes_default
4819 rm -f conftest.
$ac_objext
4820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821 (eval $ac_compile) 2>conftest.er1
4823 grep -v '^ *+' conftest.er1
>conftest.err
4825 cat conftest.err
>&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } &&
4828 { ac_try
='test -z "$ac_c_werror_flag"
4829 || test ! -s conftest.err'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; } &&
4835 { ac_try
='test -s conftest.$ac_objext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.
$ac_ext >&5
4848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4850 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4851 echo "${ECHO_T}$ac_cv_type_long" >&6
4853 echo "$as_me:$LINENO: checking size of long" >&5
4854 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4855 if test "${ac_cv_sizeof_long+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 if test "$ac_cv_type_long" = yes; then
4859 # The cast to unsigned long works around a bug in the HP C Compiler
4860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4862 # This bug is HP SR number 8606223364.
4863 if test "$cross_compiling" = yes; then
4864 # Depending upon the size, compute the lo and hi bounds.
4865 cat >conftest.
$ac_ext <<_ACEOF
4868 cat confdefs.h
>>conftest.
$ac_ext
4869 cat >>conftest.
$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4871 $ac_includes_default
4875 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4882 rm -f conftest.
$ac_objext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4886 grep -v '^ *+' conftest.er1
>conftest.err
4888 cat conftest.err
>&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try
='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try
='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4906 cat >conftest.
$ac_ext <<_ACEOF
4909 cat confdefs.h
>>conftest.
$ac_ext
4910 cat >>conftest.
$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 $ac_includes_default
4916 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4923 rm -f conftest.
$ac_objext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925 (eval $ac_compile) 2>conftest.er1
4927 grep -v '^ *+' conftest.er1
>conftest.err
4929 cat conftest.err
>&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } &&
4932 { ac_try
='test -z "$ac_c_werror_flag"
4933 || test ! -s conftest.err'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; } &&
4939 { ac_try
='test -s conftest.$ac_objext'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4945 ac_hi
=$ac_mid; break
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.
$ac_ext >&5
4950 ac_lo
=`expr $ac_mid + 1`
4951 if test $ac_lo -le $ac_mid; then
4955 ac_mid
=`expr 2 '*' $ac_mid + 1`
4957 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.
$ac_ext >&5
4963 cat >conftest.
$ac_ext <<_ACEOF
4966 cat confdefs.h
>>conftest.
$ac_ext
4967 cat >>conftest.
$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 $ac_includes_default
4973 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4980 rm -f conftest.
$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>conftest.er1
4984 grep -v '^ *+' conftest.er1
>conftest.err
4986 cat conftest.err
>&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try
='test -z "$ac_c_werror_flag"
4990 || test ! -s conftest.err'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; } &&
4996 { ac_try
='test -s conftest.$ac_objext'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; }; then
5004 cat >conftest.
$ac_ext <<_ACEOF
5007 cat confdefs.h
>>conftest.
$ac_ext
5008 cat >>conftest.
$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5010 $ac_includes_default
5014 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5021 rm -f conftest.
$ac_objext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>conftest.er1
5025 grep -v '^ *+' conftest.er1
>conftest.err
5027 cat conftest.err
>&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try
='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try
='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_lo
=$ac_mid; break
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.
$ac_ext >&5
5048 ac_hi
=`expr '(' $ac_mid ')' - 1`
5049 if test $ac_mid -le $ac_hi; then
5053 ac_mid
=`expr 2 '*' $ac_mid`
5055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.
$ac_ext >&5
5063 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5065 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5066 # Binary search between lo and hi bounds.
5067 while test "x$ac_lo" != "x$ac_hi"; do
5068 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5069 cat >conftest.
$ac_ext <<_ACEOF
5072 cat confdefs.h
>>conftest.
$ac_ext
5073 cat >>conftest.
$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 $ac_includes_default
5079 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5086 rm -f conftest.
$ac_objext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5088 (eval $ac_compile) 2>conftest.er1
5090 grep -v '^ *+' conftest.er1
>conftest.err
5092 cat conftest.err
>&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try
='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try
='test -s conftest.$ac_objext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.
$ac_ext >&5
5113 ac_lo
=`expr '(' $ac_mid ')' + 1`
5115 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5118 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5119 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5120 See \`config.log' for more details." >&5
5121 echo "$as_me: error: cannot compute sizeof (long), 77
5122 See \`config.log' for more details." >&2;}
5123 { (exit 1); exit 1; }; } ;;
5126 if test "$cross_compiling" = yes; then
5127 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5128 See \`config.log' for more details." >&5
5129 echo "$as_me: error: cannot run test program while cross compiling
5130 See \`config.log' for more details." >&2;}
5131 { (exit 1); exit 1; }; }
5133 cat >conftest.
$ac_ext <<_ACEOF
5136 cat confdefs.h
>>conftest.
$ac_ext
5137 cat >>conftest.
$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 $ac_includes_default
5140 long longval () { return (long) (sizeof (long)); }
5141 unsigned long ulongval () { return (long) (sizeof (long)); }
5148 FILE *f = fopen ("conftest.val", "w");
5151 if (((long) (sizeof (long))) < 0)
5153 long i = longval ();
5154 if (i != ((long) (sizeof (long))))
5156 fprintf (f, "%ld\n", i);
5160 unsigned long i = ulongval ();
5161 if (i != ((long) (sizeof (long))))
5163 fprintf (f, "%lu\n", i);
5165 exit (ferror (f) || fclose (f) != 0);
5171 rm -f conftest
$ac_exeext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5173 (eval $ac_link) 2>&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 ac_cv_sizeof_long
=`cat conftest.val`
5184 echo "$as_me: program exited with status $ac_status" >&5
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.
$ac_ext >&5
5189 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5190 See \`config.log' for more details." >&5
5191 echo "$as_me: error: cannot compute sizeof (long), 77
5192 See \`config.log' for more details." >&2;}
5193 { (exit 1); exit 1; }; }
5195 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5203 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5204 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5205 cat >>confdefs.h
<<_ACEOF
5206 #define SIZEOF_LONG $ac_cv_sizeof_long
5210 if test $ac_cv_c_long_long = yes; then
5211 echo "$as_me:$LINENO: checking for long long" >&5
5212 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5213 if test "${ac_cv_type_long_long+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 cat >conftest.
$ac_ext <<_ACEOF
5219 cat confdefs.h
>>conftest.
$ac_ext
5220 cat >>conftest.
$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5222 $ac_includes_default
5226 if ((long long *) 0)
5228 if (sizeof (long long))
5234 rm -f conftest.
$ac_objext
5235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5236 (eval $ac_compile) 2>conftest.er1
5238 grep -v '^ *+' conftest.er1
>conftest.err
5240 cat conftest.err
>&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try
='test -z "$ac_c_werror_flag"
5244 || test ! -s conftest.err'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; } &&
5250 { ac_try
='test -s conftest.$ac_objext'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
5256 ac_cv_type_long_long
=yes
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.
$ac_ext >&5
5261 ac_cv_type_long_long
=no
5263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5265 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5266 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5268 echo "$as_me:$LINENO: checking size of long long" >&5
5269 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5270 if test "${ac_cv_sizeof_long_long+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 if test "$ac_cv_type_long_long" = yes; then
5274 # The cast to unsigned long works around a bug in the HP C Compiler
5275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5277 # This bug is HP SR number 8606223364.
5278 if test "$cross_compiling" = yes; then
5279 # Depending upon the size, compute the lo and hi bounds.
5280 cat >conftest.
$ac_ext <<_ACEOF
5283 cat confdefs.h
>>conftest.
$ac_ext
5284 cat >>conftest.
$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 $ac_includes_default
5290 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5297 rm -f conftest.
$ac_objext
5298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5299 (eval $ac_compile) 2>conftest.er1
5301 grep -v '^ *+' conftest.er1
>conftest.err
5303 cat conftest.err
>&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } &&
5306 { ac_try
='test -z "$ac_c_werror_flag"
5307 || test ! -s conftest.err'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; } &&
5313 { ac_try
='test -s conftest.$ac_objext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5321 cat >conftest.
$ac_ext <<_ACEOF
5324 cat confdefs.h
>>conftest.
$ac_ext
5325 cat >>conftest.
$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 $ac_includes_default
5331 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5338 rm -f conftest.
$ac_objext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340 (eval $ac_compile) 2>conftest.er1
5342 grep -v '^ *+' conftest.er1
>conftest.err
5344 cat conftest.err
>&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try
='test -z "$ac_c_werror_flag"
5348 || test ! -s conftest.err'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; } &&
5354 { ac_try
='test -s conftest.$ac_objext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 ac_hi
=$ac_mid; break
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.
$ac_ext >&5
5365 ac_lo
=`expr $ac_mid + 1`
5366 if test $ac_lo -le $ac_mid; then
5370 ac_mid
=`expr 2 '*' $ac_mid + 1`
5372 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.
$ac_ext >&5
5378 cat >conftest.
$ac_ext <<_ACEOF
5381 cat confdefs.h
>>conftest.
$ac_ext
5382 cat >>conftest.
$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 $ac_includes_default
5388 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5395 rm -f conftest.
$ac_objext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397 (eval $ac_compile) 2>conftest.er1
5399 grep -v '^ *+' conftest.er1
>conftest.err
5401 cat conftest.err
>&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try
='test -z "$ac_c_werror_flag"
5405 || test ! -s conftest.err'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; } &&
5411 { ac_try
='test -s conftest.$ac_objext'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5419 cat >conftest.
$ac_ext <<_ACEOF
5422 cat confdefs.h
>>conftest.
$ac_ext
5423 cat >>conftest.
$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 $ac_includes_default
5429 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5436 rm -f conftest.
$ac_objext
5437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5438 (eval $ac_compile) 2>conftest.er1
5440 grep -v '^ *+' conftest.er1
>conftest.err
5442 cat conftest.err
>&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } &&
5445 { ac_try
='test -z "$ac_c_werror_flag"
5446 || test ! -s conftest.err'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; } &&
5452 { ac_try
='test -s conftest.$ac_objext'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; }; then
5458 ac_lo
=$ac_mid; break
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.
$ac_ext >&5
5463 ac_hi
=`expr '(' $ac_mid ')' - 1`
5464 if test $ac_mid -le $ac_hi; then
5468 ac_mid
=`expr 2 '*' $ac_mid`
5470 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.
$ac_ext >&5
5478 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5480 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5481 # Binary search between lo and hi bounds.
5482 while test "x$ac_lo" != "x$ac_hi"; do
5483 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5484 cat >conftest.
$ac_ext <<_ACEOF
5487 cat confdefs.h
>>conftest.
$ac_ext
5488 cat >>conftest.
$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5490 $ac_includes_default
5494 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5501 rm -f conftest.
$ac_objext
5502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5503 (eval $ac_compile) 2>conftest.er1
5505 grep -v '^ *+' conftest.er1
>conftest.err
5507 cat conftest.err
>&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } &&
5510 { ac_try
='test -z "$ac_c_werror_flag"
5511 || test ! -s conftest.err'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; } &&
5517 { ac_try
='test -s conftest.$ac_objext'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
5525 echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.
$ac_ext >&5
5528 ac_lo
=`expr '(' $ac_mid ')' + 1`
5530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5533 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5534 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5535 See \`config.log' for more details." >&5
5536 echo "$as_me: error: cannot compute sizeof (long long), 77
5537 See \`config.log' for more details." >&2;}
5538 { (exit 1); exit 1; }; } ;;
5541 if test "$cross_compiling" = yes; then
5542 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5543 See \`config.log' for more details." >&5
5544 echo "$as_me: error: cannot run test program while cross compiling
5545 See \`config.log' for more details." >&2;}
5546 { (exit 1); exit 1; }; }
5548 cat >conftest.
$ac_ext <<_ACEOF
5551 cat confdefs.h
>>conftest.
$ac_ext
5552 cat >>conftest.
$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5554 $ac_includes_default
5555 long longval () { return (long) (sizeof (long long)); }
5556 unsigned long ulongval () { return (long) (sizeof (long long)); }
5563 FILE *f = fopen ("conftest.val", "w");
5566 if (((long) (sizeof (long long))) < 0)
5568 long i = longval ();
5569 if (i != ((long) (sizeof (long long))))
5571 fprintf (f, "%ld\n", i);
5575 unsigned long i = ulongval ();
5576 if (i != ((long) (sizeof (long long))))
5578 fprintf (f, "%lu\n", i);
5580 exit (ferror (f) || fclose (f) != 0);
5586 rm -f conftest
$ac_exeext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5588 (eval $ac_link) 2>&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; }; then
5597 ac_cv_sizeof_long_long
=`cat conftest.val`
5599 echo "$as_me: program exited with status $ac_status" >&5
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.
$ac_ext >&5
5604 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5605 See \`config.log' for more details." >&5
5606 echo "$as_me: error: cannot compute sizeof (long long), 77
5607 See \`config.log' for more details." >&2;}
5608 { (exit 1); exit 1; }; }
5610 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5615 ac_cv_sizeof_long_long
=0
5618 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5619 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5620 cat >>confdefs.h
<<_ACEOF
5621 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5626 if test $ac_cv_c___int64 = yes; then
5627 echo "$as_me:$LINENO: checking for __int64" >&5
5628 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5629 if test "${ac_cv_type___int64+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 cat >conftest.
$ac_ext <<_ACEOF
5635 cat confdefs.h
>>conftest.
$ac_ext
5636 cat >>conftest.
$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 $ac_includes_default
5644 if (sizeof (__int64))
5650 rm -f conftest.
$ac_objext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5652 (eval $ac_compile) 2>conftest.er1
5654 grep -v '^ *+' conftest.er1
>conftest.err
5656 cat conftest.err
>&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try
='test -z "$ac_c_werror_flag"
5660 || test ! -s conftest.err'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; } &&
5666 { ac_try
='test -s conftest.$ac_objext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 ac_cv_type___int64
=yes
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.
$ac_ext >&5
5677 ac_cv_type___int64
=no
5679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5681 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5682 echo "${ECHO_T}$ac_cv_type___int64" >&6
5684 echo "$as_me:$LINENO: checking size of __int64" >&5
5685 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5686 if test "${ac_cv_sizeof___int64+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 if test "$ac_cv_type___int64" = yes; then
5690 # The cast to unsigned long works around a bug in the HP C Compiler
5691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5693 # This bug is HP SR number 8606223364.
5694 if test "$cross_compiling" = yes; then
5695 # Depending upon the size, compute the lo and hi bounds.
5696 cat >conftest.
$ac_ext <<_ACEOF
5699 cat confdefs.h
>>conftest.
$ac_ext
5700 cat >>conftest.
$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 $ac_includes_default
5706 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5713 rm -f conftest.
$ac_objext
5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715 (eval $ac_compile) 2>conftest.er1
5717 grep -v '^ *+' conftest.er1
>conftest.err
5719 cat conftest.err
>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } &&
5722 { ac_try
='test -z "$ac_c_werror_flag"
5723 || test ! -s conftest.err'
5724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; } &&
5729 { ac_try
='test -s conftest.$ac_objext'
5730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; }; then
5737 cat >conftest.
$ac_ext <<_ACEOF
5740 cat confdefs.h
>>conftest.
$ac_ext
5741 cat >>conftest.
$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 $ac_includes_default
5747 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5754 rm -f conftest.
$ac_objext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5756 (eval $ac_compile) 2>conftest.er1
5758 grep -v '^ *+' conftest.er1
>conftest.err
5760 cat conftest.err
>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try
='test -z "$ac_c_werror_flag"
5764 || test ! -s conftest.err'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; } &&
5770 { ac_try
='test -s conftest.$ac_objext'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5776 ac_hi
=$ac_mid; break
5778 echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.
$ac_ext >&5
5781 ac_lo
=`expr $ac_mid + 1`
5782 if test $ac_lo -le $ac_mid; then
5786 ac_mid
=`expr 2 '*' $ac_mid + 1`
5788 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.
$ac_ext >&5
5794 cat >conftest.
$ac_ext <<_ACEOF
5797 cat confdefs.h
>>conftest.
$ac_ext
5798 cat >>conftest.
$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 $ac_includes_default
5804 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5811 rm -f conftest.
$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>conftest.er1
5815 grep -v '^ *+' conftest.er1
>conftest.err
5817 cat conftest.err
>&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try
='test -z "$ac_c_werror_flag"
5821 || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try
='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5835 cat >conftest.
$ac_ext <<_ACEOF
5838 cat confdefs.h
>>conftest.
$ac_ext
5839 cat >>conftest.
$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 $ac_includes_default
5845 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5852 rm -f conftest.
$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>conftest.er1
5856 grep -v '^ *+' conftest.er1
>conftest.err
5858 cat conftest.err
>&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try
='test -z "$ac_c_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try
='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_lo
=$ac_mid; break
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.
$ac_ext >&5
5879 ac_hi
=`expr '(' $ac_mid ')' - 1`
5880 if test $ac_mid -le $ac_hi; then
5884 ac_mid
=`expr 2 '*' $ac_mid`
5886 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.
$ac_ext >&5
5894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5896 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5897 # Binary search between lo and hi bounds.
5898 while test "x$ac_lo" != "x$ac_hi"; do
5899 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5900 cat >conftest.
$ac_ext <<_ACEOF
5903 cat confdefs.h
>>conftest.
$ac_ext
5904 cat >>conftest.
$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 $ac_includes_default
5910 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5917 rm -f conftest.
$ac_objext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5919 (eval $ac_compile) 2>conftest.er1
5921 grep -v '^ *+' conftest.er1
>conftest.err
5923 cat conftest.err
>&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } &&
5926 { ac_try
='test -z "$ac_c_werror_flag"
5927 || test ! -s conftest.err'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; } &&
5933 { ac_try
='test -s conftest.$ac_objext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.
$ac_ext >&5
5944 ac_lo
=`expr '(' $ac_mid ')' + 1`
5946 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5949 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5950 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5951 See \`config.log' for more details." >&5
5952 echo "$as_me: error: cannot compute sizeof (__int64), 77
5953 See \`config.log' for more details." >&2;}
5954 { (exit 1); exit 1; }; } ;;
5957 if test "$cross_compiling" = yes; then
5958 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5959 See \`config.log' for more details." >&5
5960 echo "$as_me: error: cannot run test program while cross compiling
5961 See \`config.log' for more details." >&2;}
5962 { (exit 1); exit 1; }; }
5964 cat >conftest.
$ac_ext <<_ACEOF
5967 cat confdefs.h
>>conftest.
$ac_ext
5968 cat >>conftest.
$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5970 $ac_includes_default
5971 long longval () { return (long) (sizeof (__int64)); }
5972 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5979 FILE *f = fopen ("conftest.val", "w");
5982 if (((long) (sizeof (__int64))) < 0)
5984 long i = longval ();
5985 if (i != ((long) (sizeof (__int64))))
5987 fprintf (f, "%ld\n", i);
5991 unsigned long i = ulongval ();
5992 if (i != ((long) (sizeof (__int64))))
5994 fprintf (f, "%lu\n", i);
5996 exit (ferror (f) || fclose (f) != 0);
6002 rm -f conftest
$ac_exeext
6003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6004 (eval $ac_link) 2>&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 ac_cv_sizeof___int64
=`cat conftest.val`
6015 echo "$as_me: program exited with status $ac_status" >&5
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.
$ac_ext >&5
6020 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6021 See \`config.log' for more details." >&5
6022 echo "$as_me: error: cannot compute sizeof (__int64), 77
6023 See \`config.log' for more details." >&2;}
6024 { (exit 1); exit 1; }; }
6026 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6031 ac_cv_sizeof___int64
=0
6034 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6035 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6036 cat >>confdefs.h
<<_ACEOF
6037 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6043 # ---------------------
6044 # Warnings and checking
6045 # ---------------------
6047 # Check $CC warning features (if it's GCC).
6048 # We want to use -pedantic, but we don't want warnings about
6051 # So, we only use -pedantic if we can disable those warnings.
6053 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6054 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6055 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 save_CFLAGS
="$CFLAGS"
6059 CFLAGS
="-Wno-long-long"
6060 cat >conftest.
$ac_ext <<_ACEOF
6063 cat confdefs.h
>>conftest.
$ac_ext
6064 cat >>conftest.
$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6068 rm -f conftest.
$ac_objext
6069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070 (eval $ac_compile) 2>conftest.er1
6072 grep -v '^ *+' conftest.er1
>conftest.err
6074 cat conftest.err
>&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
6077 { ac_try
='test -z "$ac_c_werror_flag"
6078 || test ! -s conftest.err'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try
='test -s conftest.$ac_objext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 ac_cv_prog_cc_w_no_long_long
=yes
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.
$ac_ext >&5
6095 ac_cv_prog_cc_w_no_long_long
=no
6097 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6098 CFLAGS
="$save_CFLAGS"
6101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6102 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6104 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6105 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6106 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 save_CFLAGS
="$CFLAGS"
6110 CFLAGS
="-Wno-variadic-macros"
6111 cat >conftest.
$ac_ext <<_ACEOF
6114 cat confdefs.h
>>conftest.
$ac_ext
6115 cat >>conftest.
$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6119 rm -f conftest.
$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>conftest.er1
6123 grep -v '^ *+' conftest.er1
>conftest.err
6125 cat conftest.err
>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try
='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try
='test -s conftest.$ac_objext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_prog_cc_w_no_variadic_macros
=yes
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.
$ac_ext >&5
6146 ac_cv_prog_cc_w_no_variadic_macros
=no
6148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6149 CFLAGS
="$save_CFLAGS"
6152 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6153 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6156 if test $ac_cv_prog_cc_w_no_long_long = yes \
6157 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6158 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6162 # Add -Wold-style-definition if it's accepted
6163 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6164 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6165 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 save_CFLAGS
="$CFLAGS"
6169 CFLAGS
="-Wold-style-definition"
6170 cat >conftest.
$ac_ext <<_ACEOF
6173 cat confdefs.h
>>conftest.
$ac_ext
6174 cat >>conftest.
$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6178 rm -f conftest.
$ac_objext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180 (eval $ac_compile) 2>conftest.er1
6182 grep -v '^ *+' conftest.er1
>conftest.err
6184 cat conftest.err
>&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try
='test -z "$ac_c_werror_flag"
6188 || test ! -s conftest.err'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try
='test -s conftest.$ac_objext'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_prog_cc_w_old_style_definition
=yes
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.
$ac_ext >&5
6205 ac_cv_prog_cc_w_old_style_definition
=no
6207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6208 CFLAGS
="$save_CFLAGS"
6211 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6212 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6213 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6214 strict1_warn
="${strict1_warn} -Wold-style-definition"
6217 # Enable -Werror, period.
6218 # Check whether --enable-werror_always or --disable-werror_always was given.
6219 if test "${enable_werror_always+set}" = set; then
6220 enableval
="$enable_werror_always"
6223 enable_werror_always
=no
6225 if test x
${enable_werror_always} = xyes
; then
6226 strict1_warn
="${strict1_warn} -Werror"
6230 # If the native compiler is GCC, we can enable warnings even in stage1.
6231 # That's useful for people building cross-compilers, or just running a
6234 if test "x$GCC" = "xyes"; then
6235 warn_cflags
='$(GCC_WARN_CFLAGS)'
6239 # Enable -Werror in bootstrap stage2 and later.
6241 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6244 # Check whether --enable-werror or --disable-werror was given.
6245 if test "${enable_werror+set}" = set; then
6246 enableval
="$enable_werror"
6249 if test x
$is_release = x
; then
6250 # Default to "yes" on development branches.
6253 # Default to "no" on release branches.
6257 if test x
$enable_werror = xyes
; then
6262 # Enable expensive internal checks
6263 # Check whether --enable-checking or --disable-checking was given.
6264 if test "${enable_checking+set}" = set; then
6265 enableval
="$enable_checking"
6266 ac_checking_flags
="${enableval}"
6269 # Determine the default checks.
6270 if test x
$is_release = x
; then
6271 ac_checking_flags
=yes
6273 ac_checking_flags
=release
6276 ac_assert_checking
=1
6280 ac_rtlflag_checking
=
6282 ac_gc_always_collect
=
6284 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6285 for check
in $ac_checking_flags
6288 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6289 ac_tree_checking
=1 ; ac_gc_checking
=1 ;
6290 ac_rtlflag_checking
=1 ;;
6291 no
) ac_assert_checking
= ; ac_checking
= ;
6292 ac_tree_checking
= ; ac_rtl_checking
= ;
6293 ac_rtlflag_checking
= ; ac_gc_checking
= ;
6294 ac_gc_always_collect
= ; ac_fold_checking
= ;;
6295 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6296 ac_tree_checking
=1 ; ac_rtl_checking
=1 ;
6297 ac_rtlflag_checking
=1 ; ac_gc_checking
=1 ;
6298 ac_gc_always_collect
=1 ; ac_fold_checking
=1 ;;
6299 release
) ac_assert_checking
=1 ;;
6300 assert
) ac_assert_checking
=1 ;;
6301 fold) ac_fold_checking
=1 ;;
6302 gc
) ac_gc_checking
=1 ;;
6303 gcac
) ac_gc_always_collect
=1 ;;
6304 misc
) ac_checking
=1 ;;
6305 rtlflag
) ac_rtlflag_checking
=1 ;;
6306 rtl
) ac_rtl_checking
=1 ;;
6307 tree
) ac_tree_checking
=1 ;;
6308 valgrind
) ac_checking_valgrind
=1 ;;
6309 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6310 echo "$as_me: error: unknown check category $check" >&2;}
6311 { (exit 1); exit 1; }; } ;;
6317 if test x
$ac_checking != x
; then
6319 cat >>confdefs.h
<<\_ACEOF
6320 #define ENABLE_CHECKING 1
6323 nocommon_flag
=-fno-common
6326 if test x
$ac_assert_checking != x
; then
6328 cat >>confdefs.h
<<\_ACEOF
6329 #define ENABLE_ASSERT_CHECKING 1
6333 if test x
$ac_tree_checking != x
; then
6335 cat >>confdefs.h
<<\_ACEOF
6336 #define ENABLE_TREE_CHECKING 1
6339 TREEBROWSER
=tree-browser.o
6342 if test x
$ac_rtl_checking != x
; then
6344 cat >>confdefs.h
<<\_ACEOF
6345 #define ENABLE_RTL_CHECKING 1
6349 if test x
$ac_rtlflag_checking != x
; then
6351 cat >>confdefs.h
<<\_ACEOF
6352 #define ENABLE_RTL_FLAG_CHECKING 1
6356 if test x
$ac_gc_checking != x
; then
6358 cat >>confdefs.h
<<\_ACEOF
6359 #define ENABLE_GC_CHECKING 1
6363 if test x
$ac_gc_always_collect != x
; then
6365 cat >>confdefs.h
<<\_ACEOF
6366 #define ENABLE_GC_ALWAYS_COLLECT 1
6370 if test x
$ac_fold_checking != x
; then
6372 cat >>confdefs.h
<<\_ACEOF
6373 #define ENABLE_FOLD_CHECKING 1
6377 valgrind_path_defines
=
6380 if test "${ac_cv_header_valgrind_h+set}" = set; then
6381 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6382 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6383 if test "${ac_cv_header_valgrind_h+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6387 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6389 # Is the header compilable?
6390 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6391 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6392 cat >conftest.
$ac_ext <<_ACEOF
6395 cat confdefs.h
>>conftest.
$ac_ext
6396 cat >>conftest.
$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 $ac_includes_default
6399 #include <valgrind.h>
6401 rm -f conftest.
$ac_objext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403 (eval $ac_compile) 2>conftest.er1
6405 grep -v '^ *+' conftest.er1
>conftest.err
6407 cat conftest.err
>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try
='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try
='test -s conftest.$ac_objext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 ac_header_compiler
=yes
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.
$ac_ext >&5
6428 ac_header_compiler
=no
6430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6432 echo "${ECHO_T}$ac_header_compiler" >&6
6434 # Is the header present?
6435 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6436 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6437 cat >conftest.
$ac_ext <<_ACEOF
6440 cat confdefs.h
>>conftest.
$ac_ext
6441 cat >>conftest.
$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 #include <valgrind.h>
6445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6446 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6448 grep -v '^ *+' conftest.er1
>conftest.err
6450 cat conftest.err
>&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } >/dev
/null
; then
6453 if test -s conftest.err
; then
6454 ac_cpp_err
=$ac_c_preproc_warn_flag
6455 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6462 if test -z "$ac_cpp_err"; then
6463 ac_header_preproc
=yes
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.
$ac_ext >&5
6468 ac_header_preproc
=no
6470 rm -f conftest.err conftest.
$ac_ext
6471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6472 echo "${ECHO_T}$ac_header_preproc" >&6
6474 # So? What about this header?
6475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6477 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6478 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6480 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6481 ac_header_preproc
=yes
6484 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6485 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6487 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6489 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6491 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6493 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6494 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6495 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6498 ## ------------------------------------------ ##
6499 ## Report this to the AC_PACKAGE_NAME lists. ##
6500 ## ------------------------------------------ ##
6503 sed "s/^/$as_me: WARNING: /" >&2
6506 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6507 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6508 if test "${ac_cv_header_valgrind_h+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 ac_cv_header_valgrind_h
=$ac_header_preproc
6513 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6514 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6517 if test $ac_cv_header_valgrind_h = yes; then
6525 if test x
$ac_checking_valgrind != x
; then
6526 # It is certainly possible that there's valgrind but no valgrind.h.
6527 # GCC relies on making annotations so we must have both.
6528 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6529 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6530 cat >conftest.
$ac_ext <<_ACEOF
6533 cat confdefs.h
>>conftest.
$ac_ext
6534 cat >>conftest.
$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 #include <valgrind/memcheck.h>
6537 #ifndef VALGRIND_DISCARD
6538 #error VALGRIND_DISCARD not defined
6541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6542 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6544 grep -v '^ *+' conftest.er1
>conftest.err
6546 cat conftest.err
>&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } >/dev
/null
; then
6549 if test -s conftest.err
; then
6550 ac_cpp_err
=$ac_c_preproc_warn_flag
6551 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6558 if test -z "$ac_cpp_err"; then
6559 gcc_cv_header_valgrind_memcheck_h
=yes
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.
$ac_ext >&5
6564 gcc_cv_header_valgrind_memcheck_h
=no
6566 rm -f conftest.err conftest.
$ac_ext
6567 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6568 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6569 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6570 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6571 cat >conftest.
$ac_ext <<_ACEOF
6574 cat confdefs.h
>>conftest.
$ac_ext
6575 cat >>conftest.
$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 #include <memcheck.h>
6578 #ifndef VALGRIND_DISCARD
6579 #error VALGRIND_DISCARD not defined
6582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6583 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6585 grep -v '^ *+' conftest.er1
>conftest.err
6587 cat conftest.err
>&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } >/dev
/null
; then
6590 if test -s conftest.err
; then
6591 ac_cpp_err
=$ac_c_preproc_warn_flag
6592 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6599 if test -z "$ac_cpp_err"; then
6600 gcc_cv_header_memcheck_h
=yes
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.
$ac_ext >&5
6605 gcc_cv_header_memcheck_h
=no
6607 rm -f conftest.err conftest.
$ac_ext
6608 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6609 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6611 # Prepare PATH_SEPARATOR.
6612 # The user is always right.
6613 if test "${PATH_SEPARATOR+set}" != set; then
6614 echo "#! /bin/sh" >conf$$.sh
6615 echo "exit 0" >>conf$$.sh
6617 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6625 # Find out how to test for executable files. Don't use a zero-byte file,
6626 # as systems may use methods other than mode bits to determine executability.
6627 cat >conf$$.
file <<_ASEOF
6631 chmod +x conf$$.
file
6632 if test -x conf$$.
file >/dev
/null
2>&1; then
6633 ac_executable_p
="test -x"
6635 ac_executable_p
="test -f"
6639 # Extract the first word of "valgrind", so it can be a program name with args.
6640 set dummy valgrind
; ac_word
=$2
6641 echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6643 if test "${ac_cv_path_valgrind_path+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 case "$valgrind_path" in
6648 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6651 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6652 for ac_dir
in $PATH; do
6654 test -z "$ac_dir" && ac_dir
=.
6655 for ac_exec_ext
in '' $ac_executable_extensions; do
6656 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6657 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6658 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6668 valgrind_path
="$ac_cv_path_valgrind_path"
6669 if test -n "$valgrind_path"; then
6670 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6671 echo "${ECHO_T}$valgrind_path" >&6
6673 echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6
6677 if test "x$valgrind_path" = "x" \
6678 ||
(test $have_valgrind_h = no \
6679 && test $gcc_cv_header_memcheck_h = no \
6680 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6681 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6682 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6683 { (exit 1); exit 1; }; }
6685 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6686 valgrind_command
="$valgrind_path -q"
6688 cat >>confdefs.h
<<\_ACEOF
6689 #define ENABLE_VALGRIND_CHECKING 1
6692 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6694 cat >>confdefs.h
<<\_ACEOF
6695 #define HAVE_VALGRIND_MEMCHECK_H 1
6699 if test $gcc_cv_header_memcheck_h = yes; then
6701 cat >>confdefs.h
<<\_ACEOF
6702 #define HAVE_MEMCHECK_H 1
6710 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6711 if test "${enable_mapped_location+set}" = set; then
6712 enableval
="$enable_mapped_location"
6715 enable_mapped_location
=no
6718 if test "$enable_mapped_location" = yes ; then
6720 cat >>confdefs.h
<<\_ACEOF
6721 #define USE_MAPPED_LOCATION 1
6726 # Enable code coverage collection
6727 # Check whether --enable-coverage or --disable-coverage was given.
6728 if test "${enable_coverage+set}" = set; then
6729 enableval
="$enable_coverage"
6730 case "${enableval}" in
6732 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6735 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6738 # a.k.a. --disable-coverage
6742 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6743 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6744 { (exit 1); exit 1; }; }
6752 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6753 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6754 enableval
="$enable_gather_detailed_mem_stats"
6757 enable_gather_detailed_mem_stats
=no
6759 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6761 cat >>confdefs.h
<<\_ACEOF
6762 #define GATHER_STATISTICS 1
6767 # -------------------------------
6768 # Miscenalleous configure options
6769 # -------------------------------
6773 # Check whether --with-stabs or --without-stabs was given.
6774 if test "${with_stabs+set}" = set; then
6775 withval
="$with_stabs"
6781 # Determine whether or not multilibs are enabled.
6782 # Check whether --enable-multilib or --disable-multilib was given.
6783 if test "${enable_multilib+set}" = set; then
6784 enableval
="$enable_multilib"
6791 # Enable __cxa_atexit for C++.
6792 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6793 if test "${enable___cxa_atexit+set}" = set; then
6794 enableval
="$enable___cxa_atexit"
6799 # Pass with no value to take the default
6800 # Pass with a value to specify a thread package
6801 # Check whether --enable-threads or --disable-threads was given.
6802 if test "${enable_threads+set}" = set; then
6803 enableval
="$enable_threads"
6809 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6810 if test "${enable_objc_gc+set}" = set; then
6811 enableval
="$enable_objc_gc"
6812 if test x
$enable_objc_gc = xno
; then
6822 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6823 if test "${with_dwarf2+set}" = set; then
6824 withval
="$with_dwarf2"
6825 dwarf2
="$with_dwarf2"
6830 # Check whether --enable-shared or --disable-shared was given.
6831 if test "${enable_shared+set}" = set; then
6832 enableval
="$enable_shared"
6834 case $enable_shared in
6838 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6839 for pkg
in $enableval; do
6840 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6854 # Check whether --with-sysroot or --without-sysroot was given.
6855 if test "${with_sysroot+set}" = set; then
6856 withval
="$with_sysroot"
6858 case ${with_sysroot} in
6859 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6860 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6863 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6864 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6866 if test "x$exec_prefix" = xNONE
; then
6867 if test "x$prefix" = xNONE
; then
6868 test_prefix
=/usr
/local
6873 test_prefix
=$exec_prefix
6875 case ${TARGET_SYSTEM_ROOT} in
6876 "${test_prefix}"|
"${test_prefix}/"*|\
6877 '${exec_prefix}'|
'${exec_prefix}/'*)
6878 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6879 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6886 TARGET_SYSTEM_ROOT_DEFINE
=
6887 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6894 # Build with intermodule optimisations
6895 # Check whether --enable-intermodule or --disable-intermodule was given.
6896 if test "${enable_intermodule+set}" = set; then
6897 enableval
="$enable_intermodule"
6898 case ${enable_intermodule} in
6899 yes) onestep
="-onestep";;
6907 # Sanity check enable_languages in case someone does not run the toplevel
6908 # configure # script.
6909 # Check whether --enable-languages or --disable-languages was given.
6910 if test "${enable_languages+set}" = set; then
6911 enableval
="$enable_languages"
6912 case ,${enable_languages}, in
6914 # go safe -- we cannot be much sure without the toplevel
6916 # analysis of which target libs are present and usable
6920 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6921 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6922 { (exit 1); exit 1; }; }
6927 enable_languages
=c
,${enable_languages}
6935 for lang
in ${srcdir}/*/config-lang.
in
6938 # The odd quoting in the next line works around
6939 # an apparent bug in bash 1.12 on linux.
6940 ${srcdir}/[*]/config-lang.
in) ;;
6942 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6943 if test "x$lang_alias" = x
6945 echo "$lang doesn't set \$language." 1>&2
6948 case ",$enable_languages," in
6950 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6957 # -------------------------
6958 # Checks for other programs
6959 # -------------------------
6961 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6962 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6963 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
6964 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 cat >conftest.
make <<\_ACEOF
6969 @
echo 'ac_maketemp="$(MAKE)"'
6971 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6972 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6973 if test -n "$ac_maketemp"; then
6974 eval ac_cv_prog_make_
${ac_make}_set
=yes
6976 eval ac_cv_prog_make_
${ac_make}_set
=no
6980 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6981 echo "$as_me:$LINENO: result: yes" >&5
6982 echo "${ECHO_T}yes" >&6
6985 echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6
6987 SET_MAKE
="MAKE=${MAKE-make}"
6991 # Find some useful tools
6992 for ac_prog
in gawk mawk nawk
awk
6994 # Extract the first word of "$ac_prog", so it can be a program name with args.
6995 set dummy
$ac_prog; ac_word
=$2
6996 echo "$as_me:$LINENO: checking for $ac_word" >&5
6997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6998 if test "${ac_cv_prog_AWK+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 if test -n "$AWK"; then
7002 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7008 test -z "$as_dir" && as_dir
=.
7009 for ac_exec_ext
in '' $ac_executable_extensions; do
7010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011 ac_cv_prog_AWK
="$ac_prog"
7012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 if test -n "$AWK"; then
7022 echo "$as_me:$LINENO: result: $AWK" >&5
7023 echo "${ECHO_T}$AWK" >&6
7025 echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6
7029 test -n "$AWK" && break
7032 # We need awk to create options.c and options.h.
7033 # Bail out if it's missing.
7035 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7036 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7037 { (exit 1); exit 1; }; } ;;
7040 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7041 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7042 if test "${gcc_cv_prog_LN_S+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 rm -f conftestdata_t
7046 echo >conftestdata_f
7047 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7049 gcc_cv_prog_LN_S
="ln -s"
7051 if ln conftestdata_f conftestdata_t
2>/dev
/null
7055 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7057 gcc_cv_prog_LN_S
="cp -p"
7063 rm -f conftestdata_f conftestdata_t
7066 LN_S
="$gcc_cv_prog_LN_S"
7067 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7068 echo "$as_me:$LINENO: result: yes" >&5
7069 echo "${ECHO_T}yes" >&6
7071 if test "$gcc_cv_prog_LN_S" = "ln"; then
7072 echo "$as_me:$LINENO: result: no, using ln" >&5
7073 echo "${ECHO_T}no, using ln" >&6
7075 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7076 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7080 echo "$as_me:$LINENO: checking whether ln works" >&5
7081 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7082 if test "${acx_cv_prog_LN+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 rm -f conftestdata_t
7086 echo >conftestdata_f
7087 if ln conftestdata_f conftestdata_t
2>/dev
/null
7093 rm -f conftestdata_f conftestdata_t
7096 if test $acx_cv_prog_LN = no
; then
7098 echo "$as_me:$LINENO: result: no, using $LN" >&5
7099 echo "${ECHO_T}no, using $LN" >&6
7101 LN
="$acx_cv_prog_LN"
7102 echo "$as_me:$LINENO: result: yes" >&5
7103 echo "${ECHO_T}yes" >&6
7106 if test -n "$ac_tool_prefix"; then
7107 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7108 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7109 echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7111 if test "${ac_cv_prog_RANLIB+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 if test -n "$RANLIB"; then
7115 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir
=.
7122 for ac_exec_ext
in '' $ac_executable_extensions; do
7123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 RANLIB
=$ac_cv_prog_RANLIB
7134 if test -n "$RANLIB"; then
7135 echo "$as_me:$LINENO: result: $RANLIB" >&5
7136 echo "${ECHO_T}$RANLIB" >&6
7138 echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6
7143 if test -z "$ac_cv_prog_RANLIB"; then
7144 ac_ct_RANLIB
=$RANLIB
7145 # Extract the first word of "ranlib", so it can be a program name with args.
7146 set dummy ranlib
; ac_word
=$2
7147 echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7149 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 if test -n "$ac_ct_RANLIB"; then
7153 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir
=.
7160 for ac_exec_ext
in '' $ac_executable_extensions; do
7161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7172 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7173 if test -n "$ac_ct_RANLIB"; then
7174 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7175 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7177 echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6
7181 RANLIB
=$ac_ct_RANLIB
7183 RANLIB
="$ac_cv_prog_RANLIB"
7188 # By default, the Darwin ranlib will not treat common symbols as
7189 # definitions when building the archive table of contents. Other
7190 # ranlibs do that; pass an option to the Darwin ranlib that makes
7191 # it behave similarly.
7199 # Find a good install program. We prefer a C program (faster),
7200 # so one script is as good as another. But avoid the broken or
7201 # incompatible versions:
7202 # SysV /etc/install, /usr/sbin/install
7203 # SunOS /usr/etc/install
7204 # IRIX /sbin/install
7206 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7207 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7208 # ./install, which can be erroneously created by make from ./install.sh.
7209 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7210 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7211 if test -z "$INSTALL"; then
7212 if test "${ac_cv_path_install+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7216 for ac_dir
in $PATH; do
7217 # Account for people who put trailing slashes in PATH elements.
7219 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7221 # OSF1 and SCO ODT 3.0 have their own names for install.
7222 for ac_prog
in ginstall scoinst
install; do
7223 if test -f $ac_dir/$ac_prog; then
7224 if test $ac_prog = install &&
7225 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7226 # AIX install. It has an incompatible calling convention.
7227 # OSF/1 installbsd also uses dspmsg, but is usable.
7230 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7241 if test "${ac_cv_path_install+set}" = set; then
7242 INSTALL
="$ac_cv_path_install"
7244 # As a last resort, use the slow shell script. We don't cache a
7245 # path for INSTALL within a source directory, because that will
7246 # break other packages using the cache if that directory is
7247 # removed, or if the path is relative.
7248 INSTALL
="$ac_install_sh"
7251 echo "$as_me:$LINENO: result: $INSTALL" >&5
7252 echo "${ECHO_T}$INSTALL" >&6
7254 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7255 # It thinks the first close brace ends the variable substitution.
7256 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7258 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7261 # See if cmp has --ignore-initial.
7262 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7263 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7264 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 gcc_cv_prog_cmp_skip
=slowcompare
7270 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7271 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7274 gcc_cv_prog_cmp_skip
=gnucompare
7277 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7278 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7279 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7282 gcc_cv_prog_cmp_skip
=fastcompare
7289 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7290 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7291 make_compare_target
=$gcc_cv_prog_cmp_skip
7295 # See if we have the mktemp command.
7296 # Extract the first word of "mktemp", so it can be a program name with args.
7297 set dummy mktemp
; ac_word
=$2
7298 echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7300 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 if test -n "$have_mktemp_command"; then
7304 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7310 test -z "$as_dir" && as_dir
=.
7311 for ac_exec_ext
in '' $ac_executable_extensions; do
7312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313 ac_cv_prog_have_mktemp_command
="yes"
7314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7323 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7324 if test -n "$have_mktemp_command"; then
7325 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7326 echo "${ECHO_T}$have_mktemp_command" >&6
7328 echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6
7333 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7335 # See if makeinfo has been installed and is modern enough
7336 # that we can use it.
7337 # Extract the first word of "makeinfo", so it can be a program name with args.
7338 set dummy makeinfo
; ac_word
=$2
7339 echo "$as_me:$LINENO: checking for $ac_word" >&5
7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7341 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 if test -n "$MAKEINFO"; then
7345 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7351 test -z "$as_dir" && as_dir
=.
7352 for ac_exec_ext
in '' $ac_executable_extensions; do
7353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354 ac_cv_prog_MAKEINFO
="makeinfo"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 MAKEINFO
=$ac_cv_prog_MAKEINFO
7364 if test -n "$MAKEINFO"; then
7365 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7366 echo "${ECHO_T}$MAKEINFO" >&6
7368 echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6
7372 if test -n "$MAKEINFO"; then
7373 # Found it, now check the version.
7374 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7375 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7376 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7380 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7381 echo "configure:7381: version of makeinfo is $ac_prog_version" >&5
7382 case $ac_prog_version in
7383 '') gcc_cv_prog_makeinfo_modern
=no
;;
7385 gcc_cv_prog_makeinfo_modern
=yes;;
7386 *) gcc_cv_prog_makeinfo_modern
=no
;;
7390 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7391 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7393 gcc_cv_prog_makeinfo_modern
=no
7396 if test $gcc_cv_prog_makeinfo_modern = no
; then
7397 MAKEINFO
="$MISSING makeinfo"
7398 { echo "$as_me:$LINENO: WARNING:
7399 *** Makeinfo is missing or too old.
7400 *** Info documentation will not be built." >&5
7401 echo "$as_me: WARNING:
7402 *** Makeinfo is missing or too old.
7403 *** Info documentation will not be built." >&2;}
7410 # Is pod2man recent enough to regenerate manpages?
7411 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7412 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7413 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7414 echo "$as_me:$LINENO: result: yes" >&5
7415 echo "${ECHO_T}yes" >&6
7416 GENERATED_MANPAGES
=generated-manpages
7418 echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6
7427 # Extract the first word of "$ac_prog", so it can be a program name with args.
7428 set dummy
$ac_prog; ac_word
=$2
7429 echo "$as_me:$LINENO: checking for $ac_word" >&5
7430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7431 if test "${ac_cv_prog_FLEX+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 if test -n "$FLEX"; then
7435 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir
=.
7442 for ac_exec_ext
in '' $ac_executable_extensions; do
7443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444 ac_cv_prog_FLEX
="$ac_prog"
7445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 FLEX
=$ac_cv_prog_FLEX
7454 if test -n "$FLEX"; then
7455 echo "$as_me:$LINENO: result: $FLEX" >&5
7456 echo "${ECHO_T}$FLEX" >&6
7458 echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6
7462 test -n "$FLEX" && break
7464 test -n "$FLEX" || FLEX
="$MISSING flex"
7468 for ac_prog
in bison
7470 # Extract the first word of "$ac_prog", so it can be a program name with args.
7471 set dummy
$ac_prog; ac_word
=$2
7472 echo "$as_me:$LINENO: checking for $ac_word" >&5
7473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7474 if test "${ac_cv_prog_BISON+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 if test -n "$BISON"; then
7478 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir
=.
7485 for ac_exec_ext
in '' $ac_executable_extensions; do
7486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_BISON
="$ac_prog"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 BISON
=$ac_cv_prog_BISON
7497 if test -n "$BISON"; then
7498 echo "$as_me:$LINENO: result: $BISON" >&5
7499 echo "${ECHO_T}$BISON" >&6
7501 echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7505 test -n "$BISON" && break
7507 test -n "$BISON" || BISON
="$MISSING bison"
7510 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7511 # check for build == host before using them.
7514 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7515 && test -d ..
/binutils
; then
7516 NM
='$(objdir)/../binutils/nm-new'
7518 # Extract the first word of "nm", so it can be a program name with args.
7519 set dummy nm
; ac_word
=$2
7520 echo "$as_me:$LINENO: checking for $ac_word" >&5
7521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7522 if test "${ac_cv_prog_NM+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 if test -n "$NM"; then
7526 ac_cv_prog_NM
="$NM" # Let the user override the test.
7528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7532 test -z "$as_dir" && as_dir
=.
7533 for ac_exec_ext
in '' $ac_executable_extensions; do
7534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7546 if test -n "$NM"; then
7547 echo "$as_me:$LINENO: result: $NM" >&5
7548 echo "${ECHO_T}$NM" >&6
7550 echo "$as_me:$LINENO: result: no" >&5
7551 echo "${ECHO_T}no" >&6
7557 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7558 && test -d ..
/binutils
; then
7559 AR
='$(objdir)/../binutils/ar'
7561 # Extract the first word of "ar", so it can be a program name with args.
7562 set dummy
ar; ac_word
=$2
7563 echo "$as_me:$LINENO: checking for $ac_word" >&5
7564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7565 if test "${ac_cv_prog_AR+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 if test -n "$AR"; then
7569 ac_cv_prog_AR
="$AR" # Let the user override the test.
7571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7575 test -z "$as_dir" && as_dir
=.
7576 for ac_exec_ext
in '' $ac_executable_extensions; do
7577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7589 if test -n "$AR"; then
7590 echo "$as_me:$LINENO: result: $AR" >&5
7591 echo "${ECHO_T}$AR" >&6
7593 echo "$as_me:$LINENO: result: no" >&5
7594 echo "${ECHO_T}no" >&6
7600 # --------------------
7601 # Checks for C headers
7602 # --------------------
7604 echo "$as_me:$LINENO: checking for GNU C library" >&5
7605 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7606 if test "${gcc_cv_glibc+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 cat >conftest.
$ac_ext <<_ACEOF
7612 cat confdefs.h
>>conftest.
$ac_ext
7613 cat >>conftest.
$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 #include <features.h>
7620 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7621 #error Not a GNU C library system
7627 rm -f conftest.
$ac_objext
7628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7629 (eval $ac_compile) 2>conftest.er1
7631 grep -v '^ *+' conftest.er1
>conftest.err
7633 cat conftest.err
>&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try
='test -z "$ac_c_werror_flag"
7637 || test ! -s conftest.err'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; } &&
7643 { ac_try
='test -s conftest.$ac_objext'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; }; then
7651 echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.
$ac_ext >&5
7656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7659 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7660 echo "${ECHO_T}$gcc_cv_glibc" >&6
7661 if test $gcc_cv_glibc = yes; then
7663 cat >>confdefs.h
<<\_ACEOF
7664 #define _GNU_SOURCE 1
7669 # Need to reject headers which give warnings, so that the -Werror bootstrap
7670 # works later. *sigh* This needs to come before all header checks.
7672 ac_c_preproc_warn_flag
=yes
7674 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7675 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7676 if test "${ac_cv_header_stdc+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 cat >conftest.
$ac_ext <<_ACEOF
7682 cat confdefs.h
>>conftest.
$ac_ext
7683 cat >>conftest.
$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7698 rm -f conftest.
$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7702 grep -v '^ *+' conftest.er1
>conftest.err
7704 cat conftest.err
>&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try
='test -z "$ac_c_werror_flag"
7708 || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try
='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 ac_cv_header_stdc
=yes
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.
$ac_ext >&5
7725 ac_cv_header_stdc
=no
7727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7729 if test $ac_cv_header_stdc = yes; then
7730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7731 cat >conftest.
$ac_ext <<_ACEOF
7734 cat confdefs.h
>>conftest.
$ac_ext
7735 cat >>conftest.
$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7741 $EGREP "memchr" >/dev
/null
2>&1; then
7744 ac_cv_header_stdc
=no
7750 if test $ac_cv_header_stdc = yes; then
7751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7752 cat >conftest.
$ac_ext <<_ACEOF
7755 cat confdefs.h
>>conftest.
$ac_ext
7756 cat >>conftest.
$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7762 $EGREP "free" >/dev
/null
2>&1; then
7765 ac_cv_header_stdc
=no
7771 if test $ac_cv_header_stdc = yes; then
7772 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7773 if test "$cross_compiling" = yes; then
7776 cat >conftest.
$ac_ext <<_ACEOF
7779 cat confdefs.h
>>conftest.
$ac_ext
7780 cat >>conftest.
$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7783 #if ((' ' & 0x0FF) == 0x020)
7784 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7785 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7787 # define ISLOWER(c) \
7788 (('a' <= (c) && (c) <= 'i') \
7789 || ('j' <= (c) && (c) <= 'r') \
7790 || ('s' <= (c) && (c) <= 'z'))
7791 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7794 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7799 for (i = 0; i < 256; i++)
7800 if (XOR (islower (i), ISLOWER (i))
7801 || toupper (i) != TOUPPER (i))
7806 rm -f conftest
$ac_exeext
7807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7808 (eval $ac_link) 2>&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); }; }; then
7819 echo "$as_me: program exited with status $ac_status" >&5
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.
$ac_ext >&5
7824 ac_cv_header_stdc
=no
7826 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7830 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7831 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7832 if test $ac_cv_header_stdc = yes; then
7834 cat >>confdefs.h
<<\_ACEOF
7835 #define STDC_HEADERS 1
7840 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7841 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7842 if test "${ac_cv_header_time+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 cat >conftest.
$ac_ext <<_ACEOF
7848 cat confdefs.h
>>conftest.
$ac_ext
7849 cat >>conftest.
$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7851 #include <sys/types.h>
7852 #include <sys/time.h>
7858 if ((struct tm *) 0)
7864 rm -f conftest.
$ac_objext
7865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7866 (eval $ac_compile) 2>conftest.er1
7868 grep -v '^ *+' conftest.er1
>conftest.err
7870 cat conftest.err
>&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try
='test -z "$ac_c_werror_flag"
7874 || test ! -s conftest.err'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; } &&
7880 { ac_try
='test -s conftest.$ac_objext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 ac_cv_header_time
=yes
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.
$ac_ext >&5
7891 ac_cv_header_time
=no
7893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7895 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7896 echo "${ECHO_T}$ac_cv_header_time" >&6
7897 if test $ac_cv_header_time = yes; then
7899 cat >>confdefs.h
<<\_ACEOF
7900 #define TIME_WITH_SYS_TIME 1
7905 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7906 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7907 if test "${gcc_cv_header_string+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 cat >conftest.
$ac_ext <<_ACEOF
7913 cat confdefs.h
>>conftest.
$ac_ext
7914 cat >>conftest.
$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7917 #include <strings.h>
7926 rm -f conftest.
$ac_objext
7927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7928 (eval $ac_compile) 2>conftest.er1
7930 grep -v '^ *+' conftest.er1
>conftest.err
7932 cat conftest.err
>&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } &&
7935 { ac_try
='test -z "$ac_c_werror_flag"
7936 || test ! -s conftest.err'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; } &&
7942 { ac_try
='test -s conftest.$ac_objext'
7943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; }; then
7948 gcc_cv_header_string
=yes
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.
$ac_ext >&5
7953 gcc_cv_header_string
=no
7955 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7957 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7958 echo "${ECHO_T}$gcc_cv_header_string" >&6
7959 if test $gcc_cv_header_string = yes; then
7961 cat >>confdefs.h
<<\_ACEOF
7962 #define STRING_WITH_STRINGS 1
7967 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7968 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7969 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 cat >conftest.
$ac_ext <<_ACEOF
7975 cat confdefs.h
>>conftest.
$ac_ext
7976 cat >>conftest.
$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7978 #include <sys/types.h>
7979 #include <sys/wait.h>
7981 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7984 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7992 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7997 rm -f conftest.
$ac_objext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7999 (eval $ac_compile) 2>conftest.er1
8001 grep -v '^ *+' conftest.er1
>conftest.err
8003 cat conftest.err
>&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try
='test -z "$ac_c_werror_flag"
8007 || test ! -s conftest.err'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; } &&
8013 { ac_try
='test -s conftest.$ac_objext'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8019 ac_cv_header_sys_wait_h
=yes
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.
$ac_ext >&5
8024 ac_cv_header_sys_wait_h
=no
8026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8028 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8029 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8030 if test $ac_cv_header_sys_wait_h = yes; then
8032 cat >>confdefs.h
<<\_ACEOF
8033 #define HAVE_SYS_WAIT_H 1
8060 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8061 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8062 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8063 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8065 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8066 echo "$as_me:$LINENO: checking for $ac_header" >&5
8067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 cat >conftest.
$ac_ext <<_ACEOF
8074 cat confdefs.h
>>conftest.
$ac_ext
8075 cat >>conftest.
$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 #include <$ac_header>
8079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8080 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8082 grep -v '^ *+' conftest.er1
>conftest.err
8084 cat conftest.err
>&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } >/dev
/null
; then
8087 if test -s conftest.err
; then
8088 ac_cpp_err
=$ac_c_preproc_warn_flag
8089 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8096 if test -z "$ac_cpp_err"; then
8097 eval "$as_ac_Header=yes"
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.
$ac_ext >&5
8102 eval "$as_ac_Header=no"
8104 rm -f conftest.err conftest.
$ac_ext
8106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8109 cat >>confdefs.h
<<_ACEOF
8110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8117 # Check for thread headers.
8118 echo "$as_me:$LINENO: checking for thread.h" >&5
8119 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8120 if test "${ac_cv_header_thread_h+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 cat >conftest.
$ac_ext <<_ACEOF
8126 cat confdefs.h
>>conftest.
$ac_ext
8127 cat >>conftest.
$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8132 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8134 grep -v '^ *+' conftest.er1
>conftest.err
8136 cat conftest.err
>&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } >/dev
/null
; then
8139 if test -s conftest.err
; then
8140 ac_cpp_err
=$ac_c_preproc_warn_flag
8141 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8148 if test -z "$ac_cpp_err"; then
8149 ac_cv_header_thread_h
=yes
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.
$ac_ext >&5
8154 ac_cv_header_thread_h
=no
8156 rm -f conftest.err conftest.
$ac_ext
8158 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8159 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8160 if test $ac_cv_header_thread_h = yes; then
8166 echo "$as_me:$LINENO: checking for pthread.h" >&5
8167 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8168 if test "${ac_cv_header_pthread_h+set}" = set; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 cat >conftest.
$ac_ext <<_ACEOF
8174 cat confdefs.h
>>conftest.
$ac_ext
8175 cat >>conftest.
$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 #include <pthread.h>
8179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8180 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8182 grep -v '^ *+' conftest.er1
>conftest.err
8184 cat conftest.err
>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } >/dev
/null
; then
8187 if test -s conftest.err
; then
8188 ac_cpp_err
=$ac_c_preproc_warn_flag
8189 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8196 if test -z "$ac_cpp_err"; then
8197 ac_cv_header_pthread_h
=yes
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.
$ac_ext >&5
8202 ac_cv_header_pthread_h
=no
8204 rm -f conftest.err conftest.
$ac_ext
8206 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8207 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8208 if test $ac_cv_header_pthread_h = yes; then
8215 # These tests can't be done till we know if we have limits.h.
8216 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8217 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8218 if test "${gcc_cv_decl_char_bit+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 cat >conftest.
$ac_ext <<_ACEOF
8224 cat confdefs.h
>>conftest.
$ac_ext
8225 cat >>conftest.
$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 #ifdef HAVE_LIMITS_H
8234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8235 $EGREP "found" >/dev
/null
2>&1; then
8236 gcc_cv_decl_char_bit
=yes
8238 gcc_cv_decl_char_bit
=no
8244 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8245 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8246 if test $gcc_cv_decl_char_bit = no
; then
8247 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8248 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8249 if test "${gcc_cv_c_nbby+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 while test $i -lt 65; do
8255 cat >conftest.
$ac_ext <<_ACEOF
8258 cat confdefs.h
>>conftest.
$ac_ext
8259 cat >>conftest.
$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8266 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8267 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8273 rm -f conftest.
$ac_objext
8274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8275 (eval $ac_compile) 2>conftest.er1
8277 grep -v '^ *+' conftest.er1
>conftest.err
8279 cat conftest.err
>&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try
='test -z "$ac_c_werror_flag"
8283 || test ! -s conftest.err'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; } &&
8289 { ac_try
='test -s conftest.$ac_objext'
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
8295 gcc_cv_c_nbby
=$i; break
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.
$ac_ext >&5
8301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8304 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8307 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8308 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8309 if test $gcc_cv_c_nbby = failed
; then
8310 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8311 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8312 { (exit 1); exit 1; }; }
8315 cat >>confdefs.h
<<_ACEOF
8316 #define CHAR_BIT $gcc_cv_c_nbby
8321 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8322 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8323 if test "${ac_cv_c_bigendian+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 ac_cv_c_bigendian
=unknown
8327 # See if sys/param.h defines the BYTE_ORDER macro.
8328 cat >conftest.
$ac_ext <<_ACEOF
8331 cat confdefs.h
>>conftest.
$ac_ext
8332 cat >>conftest.
$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 #include <sys/types.h>
8335 #include <sys/param.h>
8340 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8347 rm -f conftest.
$ac_objext
8348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8349 (eval $ac_compile) 2>conftest.er1
8351 grep -v '^ *+' conftest.er1
>conftest.err
8353 cat conftest.err
>&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } &&
8356 { ac_try
='test -z "$ac_c_werror_flag"
8357 || test ! -s conftest.err'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; } &&
8363 { ac_try
='test -s conftest.$ac_objext'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8369 # It does; now see whether it defined to BIG_ENDIAN or not.
8370 cat >conftest.
$ac_ext <<_ACEOF
8373 cat confdefs.h
>>conftest.
$ac_ext
8374 cat >>conftest.
$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 #include <sys/types.h>
8377 #include <sys/param.h>
8382 #if BYTE_ORDER != BIG_ENDIAN
8389 rm -f conftest.
$ac_objext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8391 (eval $ac_compile) 2>conftest.er1
8393 grep -v '^ *+' conftest.er1
>conftest.err
8395 cat conftest.err
>&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } &&
8398 { ac_try
='test -z "$ac_c_werror_flag"
8399 || test ! -s conftest.err'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; } &&
8405 { ac_try
='test -s conftest.$ac_objext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_c_bigendian
=yes
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.
$ac_ext >&5
8416 ac_cv_c_bigendian
=no
8418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.
$ac_ext >&5
8424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8425 if test $ac_cv_c_bigendian = unknown
; then
8426 if test "$cross_compiling" = yes; then
8427 echo $ac_n "cross-compiling... " 2>&6
8429 cat >conftest.
$ac_ext <<_ACEOF
8432 cat confdefs.h
>>conftest.
$ac_ext
8433 cat >>conftest.
$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8436 /* Are we little or big endian? From Harbison&Steele. */
8440 char c[sizeof (long)];
8443 exit (u.c[sizeof (long) - 1] == 1);
8446 rm -f conftest
$ac_exeext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448 (eval $ac_link) 2>&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; }; then
8457 ac_cv_c_bigendian
=no
8459 echo "$as_me: program exited with status $ac_status" >&5
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.
$ac_ext >&5
8464 ac_cv_c_bigendian
=yes
8466 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8470 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8471 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8472 if test $ac_cv_c_bigendian = unknown
; then
8473 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8474 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8476 cat >conftest.c
<<EOF
8477 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8478 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8479 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8480 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8481 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8482 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8483 int main() { _ascii (); _ebcdic (); return 0; }
8485 if test -f conftest.c
; then
8486 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
8487 if test `grep -l BIGenDianSyS conftest.o` ; then
8488 echo $ac_n ' big endian probe OK, ' 1>&6
8489 ac_cv_c_bigendian
=yes
8491 if test `grep -l LiTTleEnDian conftest.o` ; then
8492 echo $ac_n ' little endian probe OK, ' 1>&6
8493 if test $ac_cv_c_bigendian = yes ; then
8494 ac_cv_c_bigendian
=unknown
;
8496 ac_cv_c_bigendian
=no
8499 echo $ac_n 'guessing bigendian ... ' >&6
8502 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8503 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8505 if test $ac_cv_c_bigendian = yes; then
8507 cat >>confdefs.h
<<\_ACEOF
8508 #define WORDS_BIGENDIAN 1
8512 cat >>confdefs.h
<<\_ACEOF
8513 #define HOST_WORDS_BIG_ENDIAN 1
8521 cat >>confdefs.h
<<_ACEOF
8522 #define BYTEORDER $BYTEORDER
8525 if test $ac_cv_c_bigendian = unknown
; then
8526 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8527 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8528 { (exit 1); exit 1; }; }
8536 # Stage specific cflags for build.
8540 if test x
$GCC = xyes
8542 stage1_cflags
="-Wa,-J"
8548 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8549 # sources; use -no-cpp-precomp to get to GNU cpp.
8550 # Apple's GCC has bugs in designated initializer handling, so disable
8552 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8557 # These libraries may be used by collect2.
8558 # We may need a special search path to get them linked.
8559 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8560 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8561 if test "${gcc_cv_collect2_libs+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 for libs
in '' -lld -lmld \
8566 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8567 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8570 cat >conftest.
$ac_ext <<_ACEOF
8573 cat confdefs.h
>>conftest.
$ac_ext
8574 cat >>conftest.
$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8577 /* Override any gcc2 internal prototype to avoid an error. */
8581 /* We use char because int might match the return type of a gcc2
8582 builtin and then its argument prototype would still apply. */
8592 rm -f conftest.
$ac_objext conftest
$ac_exeext
8593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8594 (eval $ac_link) 2>conftest.er1
8596 grep -v '^ *+' conftest.er1
>conftest.err
8598 cat conftest.err
>&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } &&
8601 { ac_try
='test -z "$ac_c_werror_flag"
8602 || test ! -s conftest.err'
8603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; } &&
8608 { ac_try
='test -s conftest$ac_exeext'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; }; then
8614 gcc_cv_collect2_libs
="$libs"; break
8616 echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.
$ac_ext >&5
8620 rm -f conftest.err conftest.
$ac_objext \
8621 conftest
$ac_exeext conftest.
$ac_ext
8624 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8626 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8627 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8628 case $gcc_cv_collect2_libs in
8630 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8634 # When building Ada code on Alpha, we need exc_resume which is usually in
8635 # -lexc. So test for it.
8638 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8639 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8640 if test "${ac_cv_search_exc_resume+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 ac_func_search_save_LIBS
=$LIBS
8644 ac_cv_search_exc_resume
=no
8645 cat >conftest.
$ac_ext <<_ACEOF
8648 cat confdefs.h
>>conftest.
$ac_ext
8649 cat >>conftest.
$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8652 /* Override any gcc2 internal prototype to avoid an error. */
8656 /* We use char because int might match the return type of a gcc2
8657 builtin and then its argument prototype would still apply. */
8667 rm -f conftest.
$ac_objext conftest
$ac_exeext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8669 (eval $ac_link) 2>conftest.er1
8671 grep -v '^ *+' conftest.er1
>conftest.err
8673 cat conftest.err
>&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } &&
8676 { ac_try
='test -z "$ac_c_werror_flag"
8677 || test ! -s conftest.err'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; } &&
8683 { ac_try
='test -s conftest$ac_exeext'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; }; then
8689 ac_cv_search_exc_resume
="none required"
8691 echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.
$ac_ext >&5
8695 rm -f conftest.err conftest.
$ac_objext \
8696 conftest
$ac_exeext conftest.
$ac_ext
8697 if test "$ac_cv_search_exc_resume" = no
; then
8698 for ac_lib
in exc
; do
8699 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8700 cat >conftest.
$ac_ext <<_ACEOF
8703 cat confdefs.h
>>conftest.
$ac_ext
8704 cat >>conftest.
$ac_ext <<_ACEOF
8705 /* end confdefs.h. */
8707 /* Override any gcc2 internal prototype to avoid an error. */
8711 /* We use char because int might match the return type of a gcc2
8712 builtin and then its argument prototype would still apply. */
8722 rm -f conftest.
$ac_objext conftest
$ac_exeext
8723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8724 (eval $ac_link) 2>conftest.er1
8726 grep -v '^ *+' conftest.er1
>conftest.err
8728 cat conftest.err
>&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } &&
8731 { ac_try
='test -z "$ac_c_werror_flag"
8732 || test ! -s conftest.err'
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; } &&
8738 { ac_try
='test -s conftest$ac_exeext'
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
8744 ac_cv_search_exc_resume
="-l$ac_lib"
8747 echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.
$ac_ext >&5
8751 rm -f conftest.err conftest.
$ac_objext \
8752 conftest
$ac_exeext conftest.
$ac_ext
8755 LIBS
=$ac_func_search_save_LIBS
8757 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8758 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8759 if test "$ac_cv_search_exc_resume" != no
; then
8760 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8768 # Some systems put ldexp and frexp in libm instead of libc; assume
8769 # they're both in the same place. jcf-dump needs them.
8772 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8773 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8774 if test "${ac_cv_search_ldexp+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8777 ac_func_search_save_LIBS
=$LIBS
8778 ac_cv_search_ldexp
=no
8779 cat >conftest.
$ac_ext <<_ACEOF
8782 cat confdefs.h
>>conftest.
$ac_ext
8783 cat >>conftest.
$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8786 /* Override any gcc2 internal prototype to avoid an error. */
8790 /* We use char because int might match the return type of a gcc2
8791 builtin and then its argument prototype would still apply. */
8801 rm -f conftest.
$ac_objext conftest
$ac_exeext
8802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8803 (eval $ac_link) 2>conftest.er1
8805 grep -v '^ *+' conftest.er1
>conftest.err
8807 cat conftest.err
>&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } &&
8810 { ac_try
='test -z "$ac_c_werror_flag"
8811 || test ! -s conftest.err'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; } &&
8817 { ac_try
='test -s conftest$ac_exeext'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 ac_cv_search_ldexp
="none required"
8825 echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.
$ac_ext >&5
8829 rm -f conftest.err conftest.
$ac_objext \
8830 conftest
$ac_exeext conftest.
$ac_ext
8831 if test "$ac_cv_search_ldexp" = no
; then
8833 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8834 cat >conftest.
$ac_ext <<_ACEOF
8837 cat confdefs.h
>>conftest.
$ac_ext
8838 cat >>conftest.
$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8841 /* Override any gcc2 internal prototype to avoid an error. */
8845 /* We use char because int might match the return type of a gcc2
8846 builtin and then its argument prototype would still apply. */
8856 rm -f conftest.
$ac_objext conftest
$ac_exeext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8858 (eval $ac_link) 2>conftest.er1
8860 grep -v '^ *+' conftest.er1
>conftest.err
8862 cat conftest.err
>&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try
='test -z "$ac_c_werror_flag"
8866 || test ! -s conftest.err'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; } &&
8872 { ac_try
='test -s conftest$ac_exeext'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8878 ac_cv_search_ldexp
="-l$ac_lib"
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.
$ac_ext >&5
8885 rm -f conftest.err conftest.
$ac_objext \
8886 conftest
$ac_exeext conftest.
$ac_ext
8889 LIBS
=$ac_func_search_save_LIBS
8891 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8892 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8893 if test "$ac_cv_search_ldexp" != no
; then
8894 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
8902 # Use <inttypes.h> only if it exists,
8903 # doesn't clash with <sys/types.h>, and declares intmax_t.
8904 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8905 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8906 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 cat >conftest.
$ac_ext <<_ACEOF
8912 cat confdefs.h
>>conftest.
$ac_ext
8913 cat >>conftest.
$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8915 #include <sys/types.h>
8916 #include <inttypes.h>
8925 rm -f conftest.
$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927 (eval $ac_compile) 2>conftest.er1
8929 grep -v '^ *+' conftest.er1
>conftest.err
8931 cat conftest.err
>&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try
='test -z "$ac_c_werror_flag"
8935 || test ! -s conftest.err'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try
='test -s conftest.$ac_objext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 gcc_cv_header_inttypes_h
=yes
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.
$ac_ext >&5
8952 gcc_cv_header_inttypes_h
=no
8954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8957 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8958 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8959 if test $gcc_cv_header_inttypes_h = yes; then
8961 cat >>confdefs.h
<<\_ACEOF
8962 #define HAVE_INTTYPES_H 1
8993 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
8994 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
8995 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
8996 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
8999 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9000 echo "$as_me:$LINENO: checking for $ac_func" >&5
9001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9002 if eval "test \"\${$as_ac_var+set}\" = set"; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 cat >conftest.
$ac_ext <<_ACEOF
9008 cat confdefs.h
>>conftest.
$ac_ext
9009 cat >>conftest.
$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9013 #define $ac_func innocuous_$ac_func
9015 /* System header to define __stub macros and hopefully few prototypes,
9016 which can conflict with char $ac_func (); below.
9017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9018 <limits.h> exists even on freestanding compilers. */
9021 # include <limits.h>
9023 # include <assert.h>
9028 /* Override any gcc2 internal prototype to avoid an error. */
9033 /* We use char because int might match the return type of a gcc2
9034 builtin and then its argument prototype would still apply. */
9036 /* The GNU C library defines this for functions which it implements
9037 to always fail with ENOSYS. Some functions are actually named
9038 something starting with __ and the normal name is an alias. */
9039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9042 char (*f) () = $ac_func;
9051 return f != $ac_func;
9056 rm -f conftest.
$ac_objext conftest
$ac_exeext
9057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9058 (eval $ac_link) 2>conftest.er1
9060 grep -v '^ *+' conftest.er1
>conftest.err
9062 cat conftest.err
>&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } &&
9065 { ac_try
='test -z "$ac_c_werror_flag"
9066 || test ! -s conftest.err'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; } &&
9072 { ac_try
='test -s conftest$ac_exeext'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 eval "$as_ac_var=yes"
9080 echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.
$ac_ext >&5
9083 eval "$as_ac_var=no"
9085 rm -f conftest.err conftest.
$ac_objext \
9086 conftest
$ac_exeext conftest.
$ac_ext
9088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9090 if test `eval echo '${'$as_ac_var'}'` = yes; then
9091 cat >>confdefs.h
<<_ACEOF
9092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9099 if test x
$ac_cv_func_mbstowcs = xyes
; then
9100 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9101 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9102 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 if test "$cross_compiling" = yes; then
9106 gcc_cv_func_mbstowcs_works
=yes
9108 cat >conftest.
$ac_ext <<_ACEOF
9111 cat confdefs.h
>>conftest.
$ac_ext
9112 cat >>conftest.
$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9121 rm -f conftest
$ac_exeext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123 (eval $ac_link) 2>&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9132 gcc_cv_func_mbstowcs_works
=yes
9134 echo "$as_me: program exited with status $ac_status" >&5
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.
$ac_ext >&5
9139 gcc_cv_func_mbstowcs_works
=no
9141 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9144 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9145 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9146 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9148 cat >>confdefs.h
<<\_ACEOF
9149 #define HAVE_WORKING_MBSTOWCS 1
9155 echo "$as_me:$LINENO: checking for ssize_t" >&5
9156 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9157 if test "${ac_cv_type_ssize_t+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 cat >conftest.
$ac_ext <<_ACEOF
9163 cat confdefs.h
>>conftest.
$ac_ext
9164 cat >>conftest.
$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9166 $ac_includes_default
9172 if (sizeof (ssize_t))
9178 rm -f conftest.
$ac_objext
9179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9180 (eval $ac_compile) 2>conftest.er1
9182 grep -v '^ *+' conftest.er1
>conftest.err
9184 cat conftest.err
>&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try
='test -z "$ac_c_werror_flag"
9188 || test ! -s conftest.err'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; } &&
9194 { ac_try
='test -s conftest.$ac_objext'
9195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; }; then
9200 ac_cv_type_ssize_t
=yes
9202 echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.
$ac_ext >&5
9205 ac_cv_type_ssize_t
=no
9207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9209 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9210 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9211 if test $ac_cv_type_ssize_t = yes; then
9215 cat >>confdefs.h
<<_ACEOF
9222 # Try to determine the array type of the second argument of getgroups
9223 # for the target system (int or gid_t).
9224 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9225 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9226 if test "${ac_cv_type_uid_t+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 cat >conftest.
$ac_ext <<_ACEOF
9232 cat confdefs.h
>>conftest.
$ac_ext
9233 cat >>conftest.
$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 #include <sys/types.h>
9238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9239 $EGREP "uid_t" >/dev
/null
2>&1; then
9240 ac_cv_type_uid_t
=yes
9247 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9248 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9249 if test $ac_cv_type_uid_t = no
; then
9251 cat >>confdefs.h
<<\_ACEOF
9256 cat >>confdefs.h
<<\_ACEOF
9262 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9263 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9264 if test "${ac_cv_type_getgroups+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 if test "$cross_compiling" = yes; then
9268 ac_cv_type_getgroups
=cross
9270 cat >conftest.
$ac_ext <<_ACEOF
9273 cat confdefs.h
>>conftest.
$ac_ext
9274 cat >>conftest.
$ac_ext <<_ACEOF
9275 /* end confdefs.h. */
9276 /* Thanks to Mike Rendell for this test. */
9277 #include <sys/types.h>
9280 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9287 union { gid_t gval; long lval; } val;
9290 for (i = 0; i < NGID; i++)
9291 gidset[i] = val.gval;
9292 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9294 /* Exit non-zero if getgroups seems to require an array of ints. This
9295 happens when gid_t is short but getgroups modifies an array of ints. */
9296 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9299 rm -f conftest
$ac_exeext
9300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301 (eval $ac_link) 2>&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
9310 ac_cv_type_getgroups
=gid_t
9312 echo "$as_me: program exited with status $ac_status" >&5
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.
$ac_ext >&5
9317 ac_cv_type_getgroups
=int
9319 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9321 if test $ac_cv_type_getgroups = cross
; then
9322 cat >conftest.
$ac_ext <<_ACEOF
9325 cat confdefs.h
>>conftest.
$ac_ext
9326 cat >>conftest.
$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9332 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9333 ac_cv_type_getgroups
=gid_t
9335 ac_cv_type_getgroups
=int
9341 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9342 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9344 cat >>confdefs.h
<<_ACEOF
9345 #define GETGROUPS_T $ac_cv_type_getgroups
9349 if test "${target}" = "${build}"; then
9350 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9353 # This condition may need some tweaking. It should include all
9354 # targets where the array type of the second argument of getgroups
9355 # is int and the type of gid_t is not equivalent to int.
9356 *-*-sunos* |
*-*-ultrix*)
9357 TARGET_GETGROUPS_T
=int
9360 TARGET_GETGROUPS_T
=gid_t
9366 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9367 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9368 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 if test "$cross_compiling" = yes; then
9372 gcc_cv_func_printf_ptr
=no
9374 cat >conftest.
$ac_ext <<_ACEOF
9377 cat confdefs.h
>>conftest.
$ac_ext
9378 cat >>conftest.
$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9385 char *p = buf, *q = NULL;
9386 sprintf(buf, "%p", p);
9387 sscanf(buf, "%p", &q);
9391 rm -f conftest
$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9402 gcc_cv_func_printf_ptr
=yes
9404 echo "$as_me: program exited with status $ac_status" >&5
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.
$ac_ext >&5
9409 gcc_cv_func_printf_ptr
=no
9411 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9413 rm -f core core.
* *.core
9415 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9416 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9417 if test $gcc_cv_func_printf_ptr = yes ; then
9419 cat >>confdefs.h
<<\_ACEOF
9420 #define HAVE_PRINTF_PTR 1
9426 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9427 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9428 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 cat >conftest.
$ac_ext <<_ACEOF
9434 cat confdefs.h
>>conftest.
$ac_ext
9435 cat >>conftest.
$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9437 #include <sys/mman.h>
9439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9440 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9442 grep -v '^ *+' conftest.er1
>conftest.err
9444 cat conftest.err
>&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } >/dev
/null
; then
9447 if test -s conftest.err
; then
9448 ac_cpp_err
=$ac_c_preproc_warn_flag
9449 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9456 if test -z "$ac_cpp_err"; then
9457 ac_cv_header_sys_mman_h
=yes
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.
$ac_ext >&5
9462 ac_cv_header_sys_mman_h
=no
9464 rm -f conftest.err conftest.
$ac_ext
9466 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9467 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9468 if test $ac_cv_header_sys_mman_h = yes; then
9469 gcc_header_sys_mman_h
=yes
9471 gcc_header_sys_mman_h
=no
9474 echo "$as_me:$LINENO: checking for mmap" >&5
9475 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9476 if test "${ac_cv_func_mmap+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 cat >conftest.
$ac_ext <<_ACEOF
9482 cat confdefs.h
>>conftest.
$ac_ext
9483 cat >>conftest.
$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9485 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9487 #define mmap innocuous_mmap
9489 /* System header to define __stub macros and hopefully few prototypes,
9490 which can conflict with char mmap (); below.
9491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9492 <limits.h> exists even on freestanding compilers. */
9495 # include <limits.h>
9497 # include <assert.h>
9502 /* Override any gcc2 internal prototype to avoid an error. */
9507 /* We use char because int might match the return type of a gcc2
9508 builtin and then its argument prototype would still apply. */
9510 /* The GNU C library defines this for functions which it implements
9511 to always fail with ENOSYS. Some functions are actually named
9512 something starting with __ and the normal name is an alias. */
9513 #if defined (__stub_mmap) || defined (__stub___mmap)
9516 char (*f) () = mmap;
9530 rm -f conftest.
$ac_objext conftest
$ac_exeext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9532 (eval $ac_link) 2>conftest.er1
9534 grep -v '^ *+' conftest.er1
>conftest.err
9536 cat conftest.err
>&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try
='test -z "$ac_c_werror_flag"
9540 || test ! -s conftest.err'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; } &&
9546 { ac_try
='test -s conftest$ac_exeext'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.
$ac_ext >&5
9559 rm -f conftest.err conftest.
$ac_objext \
9560 conftest
$ac_exeext conftest.
$ac_ext
9562 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9563 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9564 if test $ac_cv_func_mmap = yes; then
9570 if test "$gcc_header_sys_mman_h" != yes \
9571 ||
test "$gcc_func_mmap" != yes; then
9572 gcc_cv_func_mmap_file
=no
9573 gcc_cv_func_mmap_dev_zero
=no
9574 gcc_cv_func_mmap_anon
=no
9576 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9577 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9578 if test "${gcc_cv_func_mmap_file+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 # Add a system to this blacklist if
9582 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9583 # memory area containing the same data that you'd get if you applied
9584 # read() to the same fd. The only system known to have a problem here
9585 # is VMS, where text files have record structure.
9588 gcc_cv_func_mmap_file
=no
;;
9590 gcc_cv_func_mmap_file
=yes;;
9593 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9594 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9595 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9596 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9597 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 # Add a system to this blacklist if it has mmap() but /dev/zero
9601 # does not exist, or if mmapping /dev/zero does not give anonymous
9602 # zeroed pages with both the following properties:
9603 # 1. If you map N consecutive pages in with one call, and then
9604 # unmap any subset of those pages, the pages that were not
9605 # explicitly unmapped remain accessible.
9606 # 2. If you map two adjacent blocks of memory and then unmap them
9607 # both at once, they must both go away.
9608 # Systems known to be in this category are Windows (all variants),
9611 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9612 gcc_cv_func_mmap_dev_zero
=no
;;
9614 gcc_cv_func_mmap_dev_zero
=yes;;
9617 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9618 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9620 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9621 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9622 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9623 if test "${gcc_cv_decl_map_anon+set}" = set; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9626 cat >conftest.
$ac_ext <<_ACEOF
9629 cat confdefs.h
>>conftest.
$ac_ext
9630 cat >>conftest.
$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9632 #include <sys/types.h>
9633 #include <sys/mman.h>
9636 #ifndef MAP_ANONYMOUS
9637 #define MAP_ANONYMOUS MAP_ANON
9643 int n = MAP_ANONYMOUS;
9648 rm -f conftest.
$ac_objext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9650 (eval $ac_compile) 2>conftest.er1
9652 grep -v '^ *+' conftest.er1
>conftest.err
9654 cat conftest.err
>&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 { ac_try
='test -z "$ac_c_werror_flag"
9658 || test ! -s conftest.err'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; } &&
9664 { ac_try
='test -s conftest.$ac_objext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 gcc_cv_decl_map_anon
=yes
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.
$ac_ext >&5
9675 gcc_cv_decl_map_anon
=no
9677 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9679 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9680 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9682 if test $gcc_cv_decl_map_anon = no
; then
9683 gcc_cv_func_mmap_anon
=no
9685 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9686 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9687 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9691 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9692 # doesn't give anonymous zeroed pages with the same properties listed
9693 # above for use of /dev/zero.
9694 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9696 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9697 gcc_cv_func_mmap_anon
=no
;;
9699 gcc_cv_func_mmap_anon
=yes;;
9702 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9703 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9707 if test $gcc_cv_func_mmap_file = yes; then
9709 cat >>confdefs.h
<<\_ACEOF
9710 #define HAVE_MMAP_FILE 1
9714 if test $gcc_cv_func_mmap_dev_zero = yes; then
9716 cat >>confdefs.h
<<\_ACEOF
9717 #define HAVE_MMAP_DEV_ZERO 1
9721 if test $gcc_cv_func_mmap_anon = yes; then
9723 cat >>confdefs.h
<<\_ACEOF
9724 #define HAVE_MMAP_ANON 1
9732 # Under VMS, vfork works very differently than on Unix. The standard test
9733 # won't work, and it isn't easily adaptable. It makes more sense to
9735 ac_cv_func_vfork_works
=yes
9738 echo "$as_me:$LINENO: checking for pid_t" >&5
9739 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9740 if test "${ac_cv_type_pid_t+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 cat >conftest.
$ac_ext <<_ACEOF
9746 cat confdefs.h
>>conftest.
$ac_ext
9747 cat >>conftest.
$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9749 $ac_includes_default
9761 rm -f conftest.
$ac_objext
9762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9763 (eval $ac_compile) 2>conftest.er1
9765 grep -v '^ *+' conftest.er1
>conftest.err
9767 cat conftest.err
>&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try
='test -z "$ac_c_werror_flag"
9771 || test ! -s conftest.err'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; } &&
9777 { ac_try
='test -s conftest.$ac_objext'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then
9783 ac_cv_type_pid_t
=yes
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.
$ac_ext >&5
9790 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9792 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9793 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9794 if test $ac_cv_type_pid_t = yes; then
9798 cat >>confdefs.h
<<_ACEOF
9806 for ac_header
in unistd.h vfork.h
9808 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9809 echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 cat >conftest.
$ac_ext <<_ACEOF
9817 cat confdefs.h
>>conftest.
$ac_ext
9818 cat >>conftest.
$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 #include <$ac_header>
9822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9823 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9825 grep -v '^ *+' conftest.er1
>conftest.err
9827 cat conftest.err
>&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } >/dev
/null
; then
9830 if test -s conftest.err
; then
9831 ac_cpp_err
=$ac_c_preproc_warn_flag
9832 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9839 if test -z "$ac_cpp_err"; then
9840 eval "$as_ac_Header=yes"
9842 echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.
$ac_ext >&5
9845 eval "$as_ac_Header=no"
9847 rm -f conftest.err conftest.
$ac_ext
9849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9852 cat >>confdefs.h
<<_ACEOF
9853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9861 for ac_func
in fork vfork
9863 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9864 echo "$as_me:$LINENO: checking for $ac_func" >&5
9865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9866 if eval "test \"\${$as_ac_var+set}\" = set"; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 cat >conftest.
$ac_ext <<_ACEOF
9872 cat confdefs.h
>>conftest.
$ac_ext
9873 cat >>conftest.
$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9877 #define $ac_func innocuous_$ac_func
9879 /* System header to define __stub macros and hopefully few prototypes,
9880 which can conflict with char $ac_func (); below.
9881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9882 <limits.h> exists even on freestanding compilers. */
9885 # include <limits.h>
9887 # include <assert.h>
9892 /* Override any gcc2 internal prototype to avoid an error. */
9897 /* We use char because int might match the return type of a gcc2
9898 builtin and then its argument prototype would still apply. */
9900 /* The GNU C library defines this for functions which it implements
9901 to always fail with ENOSYS. Some functions are actually named
9902 something starting with __ and the normal name is an alias. */
9903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9906 char (*f) () = $ac_func;
9915 return f != $ac_func;
9920 rm -f conftest.
$ac_objext conftest
$ac_exeext
9921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9922 (eval $ac_link) 2>conftest.er1
9924 grep -v '^ *+' conftest.er1
>conftest.err
9926 cat conftest.err
>&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try
='test -z "$ac_c_werror_flag"
9930 || test ! -s conftest.err'
9931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; } &&
9936 { ac_try
='test -s conftest$ac_exeext'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }; then
9942 eval "$as_ac_var=yes"
9944 echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.
$ac_ext >&5
9947 eval "$as_ac_var=no"
9949 rm -f conftest.err conftest.
$ac_objext \
9950 conftest
$ac_exeext conftest.
$ac_ext
9952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9954 if test `eval echo '${'$as_ac_var'}'` = yes; then
9955 cat >>confdefs.h
<<_ACEOF
9956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9962 if test "x$ac_cv_func_fork" = xyes
; then
9963 echo "$as_me:$LINENO: checking for working fork" >&5
9964 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9965 if test "${ac_cv_func_fork_works+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 if test "$cross_compiling" = yes; then
9969 ac_cv_func_fork_works
=cross
9971 cat >conftest.
$ac_ext <<_ACEOF
9972 /* By Ruediger Kuhlmann. */
9973 #include <sys/types.h>
9975 # include <unistd.h>
9977 /* Some systems only have a dummy stub for fork() */
9985 rm -f conftest
$ac_exeext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987 (eval $ac_link) 2>&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9996 ac_cv_func_fork_works
=yes
9998 echo "$as_me: program exited with status $ac_status" >&5
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.
$ac_ext >&5
10002 ( exit $ac_status )
10003 ac_cv_func_fork_works
=no
10005 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10008 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10009 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10012 ac_cv_func_fork_works
=$ac_cv_func_fork
10014 if test "x$ac_cv_func_fork_works" = xcross
; then
10016 *-*-amigaos* |
*-*-msdosdjgpp*)
10017 # Override, as these systems have only a dummy fork() stub
10018 ac_cv_func_fork_works
=no
10021 ac_cv_func_fork_works
=yes
10024 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10025 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10027 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10028 if test "x$ac_cv_func_vfork" = xyes
; then
10029 echo "$as_me:$LINENO: checking for working vfork" >&5
10030 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10031 if test "${ac_cv_func_vfork_works+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 if test "$cross_compiling" = yes; then
10035 ac_cv_func_vfork_works
=cross
10037 cat >conftest.
$ac_ext <<_ACEOF
10040 cat confdefs.h
>>conftest.
$ac_ext
10041 cat >>conftest.
$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10043 /* Thanks to Paul Eggert for this test. */
10045 #include <stdlib.h>
10046 #include <sys/types.h>
10047 #include <sys/stat.h>
10048 #include <sys/wait.h>
10050 # include <unistd.h>
10053 # include <vfork.h>
10055 /* On some sparc systems, changes by the child to local and incoming
10056 argument registers are propagated back to the parent. The compiler
10057 is told about this with #include <vfork.h>, but some compilers
10058 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10059 static variable whose address is put into a register that is
10060 clobbered by the vfork. */
10063 sparc_address_test (int arg)
10065 sparc_address_test (arg) int arg;
10068 static pid_t child;
10086 pid_t parent = getpid ();
10089 sparc_address_test (0);
10094 /* Here is another test for sparc vfork register problems. This
10095 test uses lots of local variables, at least as many local
10096 variables as main has allocated so far including compiler
10097 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10098 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10099 reuse the register of parent for one of the local variables,
10100 since it will think that parent can't possibly be used any more
10101 in this routine. Assigning to the local variable will thus
10102 munge parent in the parent process. */
10104 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10105 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10106 /* Convince the compiler that p..p7 are live; otherwise, it might
10107 use the same hardware register for all 8 local variables. */
10108 if (p != p1 || p != p2 || p != p3 || p != p4
10109 || p != p5 || p != p6 || p != p7)
10112 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10113 from child file descriptors. If the child closes a descriptor
10114 before it execs or exits, this munges the parent's descriptor
10115 as well. Test for this by closing stdout in the child. */
10116 _exit(close(fileno(stdout)) != 0);
10121 while (wait(&status) != child)
10124 /* Was there some problem with vforking? */
10127 /* Did the child fail? (This shouldn't happen.) */
10130 /* Did the vfork/compiler bug occur? */
10131 || parent != getpid()
10133 /* Did the file descriptor bug occur? */
10134 || fstat(fileno(stdout), &st) != 0
10139 rm -f conftest
$ac_exeext
10140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10141 (eval $ac_link) 2>&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; }; then
10150 ac_cv_func_vfork_works
=yes
10152 echo "$as_me: program exited with status $ac_status" >&5
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.
$ac_ext >&5
10156 ( exit $ac_status )
10157 ac_cv_func_vfork_works
=no
10159 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10162 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10163 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10166 if test "x$ac_cv_func_fork_works" = xcross
; then
10167 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10168 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10169 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10172 if test "x$ac_cv_func_vfork_works" = xyes
; then
10174 cat >>confdefs.h
<<\_ACEOF
10175 #define HAVE_WORKING_VFORK 1
10180 cat >>confdefs.h
<<\_ACEOF
10185 if test "x$ac_cv_func_fork_works" = xyes
; then
10187 cat >>confdefs.h
<<\_ACEOF
10188 #define HAVE_WORKING_FORK 1
10195 if test "X$prefix" = "XNONE"; then
10196 acl_final_prefix
="$ac_default_prefix"
10198 acl_final_prefix
="$prefix"
10200 if test "X$exec_prefix" = "XNONE"; then
10201 acl_final_exec_prefix
='${prefix}'
10203 acl_final_exec_prefix
="$exec_prefix"
10205 acl_save_prefix
="$prefix"
10206 prefix
="$acl_final_prefix"
10207 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10208 prefix
="$acl_save_prefix"
10211 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10212 if test "${with_gnu_ld+set}" = set; then
10213 withval
="$with_gnu_ld"
10214 test "$withval" = no || with_gnu_ld
=yes
10218 # Prepare PATH_SEPARATOR.
10219 # The user is always right.
10220 if test "${PATH_SEPARATOR+set}" != set; then
10221 echo "#! /bin/sh" >conf$$.sh
10222 echo "exit 0" >>conf$$.sh
10224 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10232 if test "$GCC" = yes; then
10233 # Check if gcc -print-prog-name=ld gives a path.
10234 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10235 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10238 # gcc leaves a trailing carriage return which upsets mingw
10239 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10241 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10244 # Accept absolute paths.
10245 [\\/]* |
[A-Za-z
]:[\\/]*)
10246 re_direlt
='/[^/][^/]*/\.\./'
10247 # Canonicalize the path of ld
10248 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10249 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10250 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10252 test -z "$LD" && LD
="$ac_prog"
10255 # If it fails, then pretend we aren't using GCC.
10259 # If it is relative, then search for the first ld in PATH.
10260 with_gnu_ld
=unknown
10263 elif test "$with_gnu_ld" = yes; then
10264 echo "$as_me:$LINENO: checking for GNU ld" >&5
10265 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10267 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10268 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10270 if test "${acl_cv_path_LD+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 if test -z "$LD"; then
10274 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10275 for ac_dir
in $PATH; do
10276 test -z "$ac_dir" && ac_dir
=.
10277 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10278 acl_cv_path_LD
="$ac_dir/$ac_prog"
10279 # Check to see if the program is GNU ld. I'd rather use --version,
10280 # but apparently some GNU ld's only accept -v.
10281 # Break only if it was the GNU/non-GNU ld that we prefer.
10282 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10283 test "$with_gnu_ld" != no
&& break
10285 test "$with_gnu_ld" != yes && break
10291 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10295 LD
="$acl_cv_path_LD"
10296 if test -n "$LD"; then
10297 echo "$as_me:$LINENO: result: $LD" >&5
10298 echo "${ECHO_T}$LD" >&6
10300 echo "$as_me:$LINENO: result: no" >&5
10301 echo "${ECHO_T}no" >&6
10303 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10304 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10305 { (exit 1); exit 1; }; }
10306 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10307 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10308 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10312 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10313 acl_cv_prog_gnu_ld
=yes
10315 acl_cv_prog_gnu_ld
=no
10318 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10319 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10320 with_gnu_ld
=$acl_cv_prog_gnu_ld
10324 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10325 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10326 if test "${acl_cv_rpath+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10331 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10333 rm -f .
/conftest.sh
10337 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10338 echo "${ECHO_T}$acl_cv_rpath" >&6
10340 libext
="$acl_cv_libext"
10341 shlibext
="$acl_cv_shlibext"
10342 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10343 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10344 hardcode_direct
="$acl_cv_hardcode_direct"
10345 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10346 # Check whether --enable-rpath or --disable-rpath was given.
10347 if test "${enable_rpath+set}" = set; then
10348 enableval
="$enable_rpath"
10362 acl_save_prefix
="$prefix"
10363 prefix
="$acl_final_prefix"
10364 acl_save_exec_prefix
="$exec_prefix"
10365 exec_prefix
="$acl_final_exec_prefix"
10367 eval additional_includedir
=\"$includedir\"
10368 eval additional_libdir
=\"$libdir\"
10370 exec_prefix
="$acl_save_exec_prefix"
10371 prefix
="$acl_save_prefix"
10374 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10375 if test "${with_libiconv_prefix+set}" = set; then
10376 withval
="$with_libiconv_prefix"
10378 if test "X$withval" = "Xno"; then
10381 if test "X$withval" = "X"; then
10383 acl_save_prefix
="$prefix"
10384 prefix
="$acl_final_prefix"
10385 acl_save_exec_prefix
="$exec_prefix"
10386 exec_prefix
="$acl_final_exec_prefix"
10388 eval additional_includedir
=\"$includedir\"
10389 eval additional_libdir
=\"$libdir\"
10391 exec_prefix
="$acl_save_exec_prefix"
10392 prefix
="$acl_save_prefix"
10395 additional_includedir
="$withval/include"
10396 additional_libdir
="$withval/lib"
10406 names_already_handled
=
10407 names_next_round
='iconv '
10408 while test -n "$names_next_round"; do
10409 names_this_round
="$names_next_round"
10411 for name
in $names_this_round; do
10413 for n
in $names_already_handled; do
10414 if test "$n" = "$name"; then
10415 already_handled
=yes
10419 if test -z "$already_handled"; then
10420 names_already_handled
="$names_already_handled $name"
10421 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10422 eval value
=\"\
$HAVE_LIB$uppername\"
10423 if test -n "$value"; then
10424 if test "$value" = yes; then
10425 eval value
=\"\
$LIB$uppername\"
10426 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10427 eval value
=\"\
$LTLIB$uppername\"
10428 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10437 if test $use_additional = yes; then
10438 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10439 found_dir
="$additional_libdir"
10440 found_so
="$additional_libdir/lib$name.$shlibext"
10441 if test -f "$additional_libdir/lib$name.la"; then
10442 found_la
="$additional_libdir/lib$name.la"
10445 if test -f "$additional_libdir/lib$name.$libext"; then
10446 found_dir
="$additional_libdir"
10447 found_a
="$additional_libdir/lib$name.$libext"
10448 if test -f "$additional_libdir/lib$name.la"; then
10449 found_la
="$additional_libdir/lib$name.la"
10454 if test "X$found_dir" = "X"; then
10455 for x
in $LDFLAGS $LTLIBICONV; do
10457 acl_save_prefix
="$prefix"
10458 prefix
="$acl_final_prefix"
10459 acl_save_exec_prefix
="$exec_prefix"
10460 exec_prefix
="$acl_final_exec_prefix"
10462 exec_prefix
="$acl_save_exec_prefix"
10463 prefix
="$acl_save_prefix"
10467 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10468 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10470 found_so
="$dir/lib$name.$shlibext"
10471 if test -f "$dir/lib$name.la"; then
10472 found_la
="$dir/lib$name.la"
10475 if test -f "$dir/lib$name.$libext"; then
10477 found_a
="$dir/lib$name.$libext"
10478 if test -f "$dir/lib$name.la"; then
10479 found_la
="$dir/lib$name.la"
10485 if test "X$found_dir" != "X"; then
10490 if test "X$found_dir" != "X"; then
10491 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10492 if test "X$found_so" != "X"; then
10493 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10494 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10497 for x
in $ltrpathdirs; do
10498 if test "X$x" = "X$found_dir"; then
10503 if test -z "$haveit"; then
10504 ltrpathdirs
="$ltrpathdirs $found_dir"
10506 if test "$hardcode_direct" = yes; then
10507 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10509 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10510 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10512 for x
in $rpathdirs; do
10513 if test "X$x" = "X$found_dir"; then
10518 if test -z "$haveit"; then
10519 rpathdirs
="$rpathdirs $found_dir"
10523 for x
in $LDFLAGS $LIBICONV; do
10525 acl_save_prefix
="$prefix"
10526 prefix
="$acl_final_prefix"
10527 acl_save_exec_prefix
="$exec_prefix"
10528 exec_prefix
="$acl_final_exec_prefix"
10530 exec_prefix
="$acl_save_exec_prefix"
10531 prefix
="$acl_save_prefix"
10533 if test "X$x" = "X-L$found_dir"; then
10538 if test -z "$haveit"; then
10539 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10541 if test "$hardcode_minus_L" != no
; then
10542 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10544 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10550 if test "X$found_a" != "X"; then
10551 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10553 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10556 additional_includedir
=
10557 case "$found_dir" in
10559 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10560 additional_includedir
="$basedir/include"
10563 if test "X$additional_includedir" != "X"; then
10564 if test "X$additional_includedir" != "X/usr/include"; then
10566 if test "X$additional_includedir" = "X/usr/local/include"; then
10567 if test -n "$GCC"; then
10569 linux
*) haveit
=yes;;
10573 if test -z "$haveit"; then
10574 for x
in $CPPFLAGS $INCICONV; do
10576 acl_save_prefix
="$prefix"
10577 prefix
="$acl_final_prefix"
10578 acl_save_exec_prefix
="$exec_prefix"
10579 exec_prefix
="$acl_final_exec_prefix"
10581 exec_prefix
="$acl_save_exec_prefix"
10582 prefix
="$acl_save_prefix"
10584 if test "X$x" = "X-I$additional_includedir"; then
10589 if test -z "$haveit"; then
10590 if test -d "$additional_includedir"; then
10591 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10597 if test -n "$found_la"; then
10598 save_libdir
="$libdir"
10599 case "$found_la" in
10600 */* |
*\\*) .
"$found_la" ;;
10601 *) .
"./$found_la" ;;
10603 libdir
="$save_libdir"
10604 for dep
in $dependency_libs; do
10607 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10608 if test "X$additional_libdir" != "X/usr/lib"; then
10610 if test "X$additional_libdir" = "X/usr/local/lib"; then
10611 if test -n "$GCC"; then
10613 linux
*) haveit
=yes;;
10617 if test -z "$haveit"; then
10619 for x
in $LDFLAGS $LIBICONV; do
10621 acl_save_prefix
="$prefix"
10622 prefix
="$acl_final_prefix"
10623 acl_save_exec_prefix
="$exec_prefix"
10624 exec_prefix
="$acl_final_exec_prefix"
10626 exec_prefix
="$acl_save_exec_prefix"
10627 prefix
="$acl_save_prefix"
10629 if test "X$x" = "X-L$additional_libdir"; then
10634 if test -z "$haveit"; then
10635 if test -d "$additional_libdir"; then
10636 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10640 for x
in $LDFLAGS $LTLIBICONV; do
10642 acl_save_prefix
="$prefix"
10643 prefix
="$acl_final_prefix"
10644 acl_save_exec_prefix
="$exec_prefix"
10645 exec_prefix
="$acl_final_exec_prefix"
10647 exec_prefix
="$acl_save_exec_prefix"
10648 prefix
="$acl_save_prefix"
10650 if test "X$x" = "X-L$additional_libdir"; then
10655 if test -z "$haveit"; then
10656 if test -d "$additional_libdir"; then
10657 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10664 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10665 if test "$enable_rpath" != no
; then
10667 for x
in $rpathdirs; do
10668 if test "X$x" = "X$dir"; then
10673 if test -z "$haveit"; then
10674 rpathdirs
="$rpathdirs $dir"
10677 for x
in $ltrpathdirs; do
10678 if test "X$x" = "X$dir"; then
10683 if test -z "$haveit"; then
10684 ltrpathdirs
="$ltrpathdirs $dir"
10689 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10692 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10695 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10696 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10702 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10703 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10709 if test "X$rpathdirs" != "X"; then
10710 if test -n "$hardcode_libdir_separator"; then
10712 for found_dir
in $rpathdirs; do
10713 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10715 acl_save_libdir
="$libdir"
10717 eval flag
=\"$hardcode_libdir_flag_spec\"
10718 libdir
="$acl_save_libdir"
10719 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10721 for found_dir
in $rpathdirs; do
10722 acl_save_libdir
="$libdir"
10723 libdir
="$found_dir"
10724 eval flag
=\"$hardcode_libdir_flag_spec\"
10725 libdir
="$acl_save_libdir"
10726 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10730 if test "X$ltrpathdirs" != "X"; then
10731 for found_dir
in $ltrpathdirs; do
10732 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10742 am_save_CPPFLAGS
="$CPPFLAGS"
10744 for element
in $INCICONV; do
10746 for x
in $CPPFLAGS; do
10748 acl_save_prefix
="$prefix"
10749 prefix
="$acl_final_prefix"
10750 acl_save_exec_prefix
="$exec_prefix"
10751 exec_prefix
="$acl_final_exec_prefix"
10753 exec_prefix
="$acl_save_exec_prefix"
10754 prefix
="$acl_save_prefix"
10756 if test "X$x" = "X$element"; then
10761 if test -z "$haveit"; then
10762 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10767 echo "$as_me:$LINENO: checking for iconv" >&5
10768 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10769 if test "${am_cv_func_iconv+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 am_cv_func_iconv
="no, consider installing GNU libiconv"
10775 cat >conftest.
$ac_ext <<_ACEOF
10778 cat confdefs.h
>>conftest.
$ac_ext
10779 cat >>conftest.
$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 #include <stdlib.h>
10786 iconv_t cd = iconv_open("","");
10787 iconv(cd,NULL,NULL,NULL,NULL);
10793 rm -f conftest.
$ac_objext conftest
$ac_exeext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10795 (eval $ac_link) 2>conftest.er1
10797 grep -v '^ *+' conftest.er1
>conftest.err
10799 cat conftest.err
>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try
='test -z "$ac_c_werror_flag"
10803 || test ! -s conftest.err'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try
='test -s conftest$ac_exeext'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 am_cv_func_iconv
=yes
10817 echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.
$ac_ext >&5
10821 rm -f conftest.err conftest.
$ac_objext \
10822 conftest
$ac_exeext conftest.
$ac_ext
10823 if test "$am_cv_func_iconv" != yes; then
10824 am_save_LIBS
="$LIBS"
10825 LIBS
="$LIBS $LIBICONV"
10826 cat >conftest.
$ac_ext <<_ACEOF
10829 cat confdefs.h
>>conftest.
$ac_ext
10830 cat >>conftest.
$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 #include <stdlib.h>
10837 iconv_t cd = iconv_open("","");
10838 iconv(cd,NULL,NULL,NULL,NULL);
10844 rm -f conftest.
$ac_objext conftest
$ac_exeext
10845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846 (eval $ac_link) 2>conftest.er1
10848 grep -v '^ *+' conftest.er1
>conftest.err
10850 cat conftest.err
>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } &&
10853 { ac_try
='test -z "$ac_c_werror_flag"
10854 || test ! -s conftest.err'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; } &&
10860 { ac_try
='test -s conftest$ac_exeext'
10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866 am_cv_lib_iconv
=yes
10867 am_cv_func_iconv
=yes
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.
$ac_ext >&5
10873 rm -f conftest.err conftest.
$ac_objext \
10874 conftest
$ac_exeext conftest.
$ac_ext
10875 LIBS
="$am_save_LIBS"
10879 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10880 echo "${ECHO_T}$am_cv_func_iconv" >&6
10881 if test "$am_cv_func_iconv" = yes; then
10883 cat >>confdefs.h
<<\_ACEOF
10884 #define HAVE_ICONV 1
10888 if test "$am_cv_lib_iconv" = yes; then
10889 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10890 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10891 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10892 echo "${ECHO_T}$LIBICONV" >&6
10894 CPPFLAGS
="$am_save_CPPFLAGS"
10901 if test "$am_cv_func_iconv" = yes; then
10902 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10903 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10904 if test "${am_cv_proto_iconv+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 cat >conftest.
$ac_ext <<_ACEOF
10911 cat confdefs.h
>>conftest.
$ac_ext
10912 cat >>conftest.
$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10915 #include <stdlib.h>
10921 #if defined(__STDC__) || defined(__cplusplus)
10922 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10935 rm -f conftest.
$ac_objext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
10939 grep -v '^ *+' conftest.er1
>conftest.err
10941 cat conftest.err
>&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try
='test -z "$ac_c_werror_flag"
10945 || test ! -s conftest.err'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try
='test -s conftest.$ac_objext'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10957 am_cv_proto_iconv_arg1
=""
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.
$ac_ext >&5
10962 am_cv_proto_iconv_arg1
="const"
10964 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10965 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);"
10968 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10969 echo "$as_me:$LINENO: result: ${ac_t:-
10970 }$am_cv_proto_iconv" >&5
10971 echo "${ECHO_T}${ac_t:-
10972 }$am_cv_proto_iconv" >&6
10974 cat >>confdefs.h
<<_ACEOF
10975 #define ICONV_CONST $am_cv_proto_iconv_arg1
10980 # Until we have in-tree GNU iconv:
10985 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10986 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10987 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 cat >conftest.
$ac_ext <<_ACEOF
10993 cat confdefs.h
>>conftest.
$ac_ext
10994 cat >>conftest.
$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996 #include <locale.h>
11005 rm -f conftest.
$ac_objext conftest
$ac_exeext
11006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11007 (eval $ac_link) 2>conftest.er1
11009 grep -v '^ *+' conftest.er1
>conftest.err
11011 cat conftest.err
>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try
='test -z "$ac_c_werror_flag"
11015 || test ! -s conftest.err'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try
='test -s conftest$ac_exeext'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 am_cv_val_LC_MESSAGES
=yes
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.
$ac_ext >&5
11032 am_cv_val_LC_MESSAGES
=no
11034 rm -f conftest.err conftest.
$ac_objext \
11035 conftest
$ac_exeext conftest.
$ac_ext
11037 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11038 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11039 if test $am_cv_val_LC_MESSAGES = yes; then
11041 cat >>confdefs.h
<<\_ACEOF
11042 #define HAVE_LC_MESSAGES 1
11049 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11050 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11051 if test "${am_cv_langinfo_codeset+set}" = set; then
11052 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 cat >conftest.
$ac_ext <<_ACEOF
11057 cat confdefs.h
>>conftest.
$ac_ext
11058 cat >>conftest.
$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11060 #include <langinfo.h>
11064 char* cs = nl_langinfo(CODESET);
11069 rm -f conftest.
$ac_objext conftest
$ac_exeext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071 (eval $ac_link) 2>conftest.er1
11073 grep -v '^ *+' conftest.er1
>conftest.err
11075 cat conftest.err
>&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
11078 { ac_try
='test -z "$ac_c_werror_flag"
11079 || test ! -s conftest.err'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try
='test -s conftest$ac_exeext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 am_cv_langinfo_codeset
=yes
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.
$ac_ext >&5
11096 am_cv_langinfo_codeset
=no
11098 rm -f conftest.err conftest.
$ac_objext \
11099 conftest
$ac_exeext conftest.
$ac_ext
11102 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11103 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11104 if test $am_cv_langinfo_codeset = yes; then
11106 cat >>confdefs.h
<<\_ACEOF
11107 #define HAVE_LANGINFO_CODESET 1
11113 # We will need to find libiberty.h and ansidecl.h
11114 saved_CFLAGS
="$CFLAGS"
11115 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11140 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
11141 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11142 fprintf_unlocked strstr errno snprintf vasprintf \
11143 malloc realloc calloc free
basename getopt
clock getpagesize
11145 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11146 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11147 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11148 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 cat >conftest.
$ac_ext <<_ACEOF
11154 cat confdefs.h
>>conftest.
$ac_ext
11155 cat >>conftest.
$ac_ext <<_ACEOF
11156 /* end confdefs.h. */
11158 #define $ac_tr_decl 1
11160 #include "ansidecl.h"
11161 #include "system.h"
11167 char *(*pfn) = (char *(*)) $ac_func ;
11173 rm -f conftest.
$ac_objext
11174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11175 (eval $ac_compile) 2>conftest.er1
11177 grep -v '^ *+' conftest.er1
>conftest.err
11179 cat conftest.err
>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
11182 { ac_try
='test -z "$ac_c_werror_flag"
11183 || test ! -s conftest.err'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try
='test -s conftest.$ac_objext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 eval "gcc_cv_have_decl_$ac_func=yes"
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.
$ac_ext >&5
11200 eval "gcc_cv_have_decl_$ac_func=no"
11202 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11205 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11206 echo "$as_me:$LINENO: result: yes" >&5
11207 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11208 #define $ac_tr_decl 1
11212 echo "$as_me:$LINENO: result: no" >&5
11213 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11214 #define $ac_tr_decl 0
11225 for ac_func
in getrlimit setrlimit getrusage
11227 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11228 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11229 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11230 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 cat >conftest.
$ac_ext <<_ACEOF
11236 cat confdefs.h
>>conftest.
$ac_ext
11237 cat >>conftest.
$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11240 #define $ac_tr_decl 1
11242 #include "ansidecl.h"
11243 #include "system.h"
11244 #ifdef HAVE_SYS_RESOURCE_H
11245 #include <sys/resource.h>
11253 char *(*pfn) = (char *(*)) $ac_func ;
11259 rm -f conftest.
$ac_objext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>conftest.er1
11263 grep -v '^ *+' conftest.er1
>conftest.err
11265 cat conftest.err
>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try
='test -z "$ac_c_werror_flag"
11269 || test ! -s conftest.err'
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try
='test -s conftest.$ac_objext'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
11281 eval "gcc_cv_have_decl_$ac_func=yes"
11283 echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.
$ac_ext >&5
11286 eval "gcc_cv_have_decl_$ac_func=no"
11288 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11291 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11292 echo "$as_me:$LINENO: result: yes" >&5
11293 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11294 #define $ac_tr_decl 1
11298 echo "$as_me:$LINENO: result: no" >&5
11299 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11300 #define $ac_tr_decl 0
11308 cat >conftest.
$ac_ext <<_ACEOF
11311 cat confdefs.h
>>conftest.
$ac_ext
11312 cat >>conftest.
$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11315 #include "ansidecl.h"
11316 #include "system.h"
11317 #ifdef HAVE_SYS_RESOURCE_H
11318 #include <sys/resource.h>
11329 rm -f conftest.
$ac_objext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11331 (eval $ac_compile) 2>conftest.er1
11333 grep -v '^ *+' conftest.er1
>conftest.err
11335 cat conftest.err
>&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } &&
11338 { ac_try
='test -z "$ac_c_werror_flag"
11339 || test ! -s conftest.err'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; } &&
11345 { ac_try
='test -s conftest.$ac_objext'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.
$ac_ext >&5
11357 cat >>confdefs.h
<<\_ACEOF
11358 #define rlim_t long
11362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11364 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11365 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11366 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11367 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11369 for ac_func
in ldgetname
11371 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11372 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11373 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11374 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 cat >conftest.
$ac_ext <<_ACEOF
11380 cat confdefs.h
>>conftest.
$ac_ext
11381 cat >>conftest.
$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11384 #define $ac_tr_decl 1
11386 #include "ansidecl.h"
11387 #include "system.h"
11388 #ifdef HAVE_LDFCN_H
11399 char *(*pfn) = (char *(*)) $ac_func ;
11405 rm -f conftest.
$ac_objext
11406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11407 (eval $ac_compile) 2>conftest.er1
11409 grep -v '^ *+' conftest.er1
>conftest.err
11411 cat conftest.err
>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try
='test -z "$ac_c_werror_flag"
11415 || test ! -s conftest.err'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; } &&
11421 { ac_try
='test -s conftest.$ac_objext'
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then
11427 eval "gcc_cv_have_decl_$ac_func=yes"
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.
$ac_ext >&5
11432 eval "gcc_cv_have_decl_$ac_func=no"
11434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11437 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11438 echo "$as_me:$LINENO: result: yes" >&5
11439 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11440 #define $ac_tr_decl 1
11444 echo "$as_me:$LINENO: result: no" >&5
11445 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11446 #define $ac_tr_decl 0
11455 for ac_func
in times
11457 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11458 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11459 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11460 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 cat >conftest.
$ac_ext <<_ACEOF
11466 cat confdefs.h
>>conftest.
$ac_ext
11467 cat >>conftest.
$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11470 #define $ac_tr_decl 1
11472 #include "ansidecl.h"
11473 #include "system.h"
11474 #ifdef HAVE_SYS_TIMES_H
11475 #include <sys/times.h>
11483 char *(*pfn) = (char *(*)) $ac_func ;
11489 rm -f conftest.
$ac_objext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11491 (eval $ac_compile) 2>conftest.er1
11493 grep -v '^ *+' conftest.er1
>conftest.err
11495 cat conftest.err
>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try
='test -z "$ac_c_werror_flag"
11499 || test ! -s conftest.err'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try
='test -s conftest.$ac_objext'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 eval "gcc_cv_have_decl_$ac_func=yes"
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.
$ac_ext >&5
11516 eval "gcc_cv_have_decl_$ac_func=no"
11518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11521 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11522 echo "$as_me:$LINENO: result: yes" >&5
11523 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11524 #define $ac_tr_decl 1
11528 echo "$as_me:$LINENO: result: no" >&5
11529 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11530 #define $ac_tr_decl 0
11538 # More time-related stuff.
11539 echo "$as_me:$LINENO: checking for struct tms" >&5
11540 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11541 if test "${ac_cv_struct_tms+set}" = set; then
11542 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 cat >conftest.
$ac_ext <<_ACEOF
11548 cat confdefs.h
>>conftest.
$ac_ext
11549 cat >>conftest.
$ac_ext <<_ACEOF
11550 /* end confdefs.h. */
11552 #include "ansidecl.h"
11553 #include "system.h"
11554 #ifdef HAVE_SYS_TIMES_H
11555 #include <sys/times.h>
11566 rm -f conftest.
$ac_objext
11567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11568 (eval $ac_compile) 2>conftest.er1
11570 grep -v '^ *+' conftest.er1
>conftest.err
11572 cat conftest.err
>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } &&
11575 { ac_try
='test -z "$ac_c_werror_flag"
11576 || test ! -s conftest.err'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; } &&
11582 { ac_try
='test -s conftest.$ac_objext'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; }; then
11588 ac_cv_struct_tms
=yes
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.
$ac_ext >&5
11593 ac_cv_struct_tms
=no
11595 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11597 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11598 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11599 if test $ac_cv_struct_tms = yes; then
11601 cat >>confdefs.h
<<\_ACEOF
11602 #define HAVE_STRUCT_TMS 1
11607 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11608 # revisit after autoconf 2.50.
11609 echo "$as_me:$LINENO: checking for clock_t" >&5
11610 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11611 if test "${gcc_cv_type_clock_t+set}" = set; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 cat >conftest.
$ac_ext <<_ACEOF
11618 cat confdefs.h
>>conftest.
$ac_ext
11619 cat >>conftest.
$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11622 #include "ansidecl.h"
11623 #include "system.h"
11633 rm -f conftest.
$ac_objext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11635 (eval $ac_compile) 2>conftest.er1
11637 grep -v '^ *+' conftest.er1
>conftest.err
11639 cat conftest.err
>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try
='test -z "$ac_c_werror_flag"
11643 || test ! -s conftest.err'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; } &&
11649 { ac_try
='test -s conftest.$ac_objext'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; }; then
11655 gcc_cv_type_clock_t
=yes
11657 echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.
$ac_ext >&5
11660 gcc_cv_type_clock_t
=no
11662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11664 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11665 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11666 if test $gcc_cv_type_clock_t = yes; then
11668 cat >>confdefs.h
<<\_ACEOF
11669 #define HAVE_CLOCK_T 1
11674 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11675 CFLAGS
="$saved_CFLAGS"
11677 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11678 if test "${enable_initfini_array+set}" = set; then
11679 enableval
="$enable_initfini_array"
11683 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11684 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11685 if test "${gcc_cv_initfini_array+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11688 if test "$cross_compiling" = yes; then
11689 gcc_cv_initfini_array
=no
11691 cat >conftest.
$ac_ext <<_ACEOF
11694 cat confdefs.h
>>conftest.
$ac_ext
11695 cat >>conftest.
$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11699 int main (void) { return x; }
11700 int foo (void) { x = 0; }
11701 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11703 rm -f conftest
$ac_exeext
11704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11705 (eval $ac_link) 2>&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }; then
11714 gcc_cv_initfini_array
=yes
11716 echo "$as_me: program exited with status $ac_status" >&5
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.
$ac_ext >&5
11720 ( exit $ac_status )
11721 gcc_cv_initfini_array
=no
11723 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11726 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11727 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11728 enable_initfini_array
=$gcc_cv_initfini_array
11731 if test $enable_initfini_array = yes; then
11733 cat >>confdefs.h
<<\_ACEOF
11734 #define HAVE_INITFINI_ARRAY 1
11739 # mkdir takes a single argument on some systems.
11740 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11741 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11742 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 cat >conftest.
$ac_ext <<_ACEOF
11748 cat confdefs.h
>>conftest.
$ac_ext
11749 cat >>conftest.
$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11752 #include <sys/types.h>
11753 #ifdef HAVE_SYS_STAT_H
11754 # include <sys/stat.h>
11756 #ifdef HAVE_UNISTD_H
11757 # include <unistd.h>
11759 #ifdef HAVE_DIRECT_H
11760 # include <direct.h>
11770 rm -f conftest.
$ac_objext
11771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11772 (eval $ac_compile) 2>conftest.er1
11774 grep -v '^ *+' conftest.er1
>conftest.err
11776 cat conftest.err
>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } &&
11779 { ac_try
='test -z "$ac_c_werror_flag"
11780 || test ! -s conftest.err'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try
='test -s conftest.$ac_objext'
11787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788 (eval $ac_try) 2>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; }; then
11792 gcc_cv_mkdir_takes_one_arg
=no
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.
$ac_ext >&5
11797 gcc_cv_mkdir_takes_one_arg
=yes
11799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11801 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11802 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11803 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11805 cat >>confdefs.h
<<\_ACEOF
11806 #define MKDIR_TAKES_ONE_ARG 1
11818 # With Setjmp/Longjmp based exception handling.
11819 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11820 if test "${enable_sjlj_exceptions+set}" = set; then
11821 enableval
="$enable_sjlj_exceptions"
11822 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11824 cat >>confdefs.h
<<_ACEOF
11825 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11830 # For platforms with the unwind ABI which includes an unwind library,
11831 # libunwind, we can choose to use the system libunwind.
11833 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11834 if test "${with_system_libunwind+set}" = set; then
11835 withval
="$with_system_libunwind"
11839 # --------------------------------------------------------
11840 # Build, host, and target specific configuration fragments
11841 # --------------------------------------------------------
11843 # Collect build-machine-specific information.
11844 .
${srcdir}/config.build
11846 # Collect host-machine-specific information.
11847 .
${srcdir}/config.
host
11851 # Collect target-machine-specific information.
11852 .
${srcdir}/config.gcc
11854 extra_objs
="${host_extra_objs} ${extra_objs}"
11855 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11857 # Default the target-machine variables that were not explicitly set.
11858 if test x
"$tm_file" = x
11859 then tm_file
=$cpu_type/$cpu_type.h
; fi
11861 if test x
"$extra_headers" = x
11862 then extra_headers
=; fi
11864 if test x
$md_file = x
11865 then md_file
=$cpu_type/$cpu_type.md
; fi
11867 if test x
$out_file = x
11868 then out_file
=$cpu_type/$cpu_type.c
; fi
11870 if test x
"$tmake_file" = x
11871 then tmake_file
=$cpu_type/t-
$cpu_type
11874 if test x
"$dwarf2" = xyes
11875 then tm_file
="$tm_file tm-dwarf2.h"
11878 # Say what files are being used for the output code and MD file.
11879 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11880 echo "Using \`$srcdir/config/$md_file' as machine description file."
11882 # If any of the xm_file variables contain nonexistent files, warn
11883 # about them and drop them.
11886 for x
in $build_xm_file; do
11887 if test -f $srcdir/config
/$x
11889 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11890 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11893 build_xm_file
="$bx"
11896 for x
in $host_xm_file; do
11897 if test -f $srcdir/config
/$x
11899 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11900 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11906 for x
in $xm_file; do
11907 if test -f $srcdir/config
/$x
11909 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11910 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11916 for f
in $tm_file; do
11919 if test $count = ax
; then
11920 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11922 echo "Using the following target machine macro files:"
11923 for f
in $tm_file; do
11924 echo " $srcdir/config/$f"
11928 if test x
$need_64bit_hwint = xyes
; then
11930 cat >>confdefs.h
<<\_ACEOF
11931 #define NEED_64BIT_HOST_WIDE_INT 1
11936 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11938 cat >>confdefs.h
<<\_ACEOF
11939 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11945 for f
in $host_xm_file; do
11948 if test $count = a
; then
11950 elif test $count = ax
; then
11951 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11953 echo "Using the following host machine macro files:"
11954 for f
in $host_xm_file; do
11955 echo " $srcdir/config/$f"
11958 echo "Using ${out_host_hook_obj} for host machine hooks."
11960 if test "$host_xm_file" != "$build_xm_file"; then
11962 for f
in $build_xm_file; do
11965 if test $count = a
; then
11967 elif test $count = ax
; then
11968 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11970 echo "Using the following build machine macro files:"
11971 for f
in $build_xm_file; do
11972 echo " $srcdir/config/$f"
11981 # Check if a valid thread package
11982 case ${enable_threads} in
11985 target_thread_file
='single'
11989 target_thread_file
='single'
11991 aix | dce | gnat | irix | posix | posix95 | rtems | \
11992 single | solaris | vxworks | win32
)
11993 target_thread_file
=${enable_threads}
11996 echo "${enable_threads} is an unknown thread package" 1>&2
12001 if test x
${thread_file} = x
; then
12002 # No thread file set by target-specific clauses in config.gcc,
12003 # so use file chosen by default logic above
12004 thread_file
=${target_thread_file}
12007 # Make gthr-default.h if we have a thread file.
12009 if test $thread_file != single
; then
12010 rm -f gthr-default.h
12011 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12012 gthread_flags
=-DHAVE_GTHR_DEFAULT
12021 if test x
$enable___cxa_atexit = xyes || \
12022 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12023 if test x
$host = x
$target; then
12024 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12025 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12026 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 cat >conftest.
$ac_ext <<_ACEOF
12032 cat confdefs.h
>>conftest.
$ac_ext
12033 cat >>conftest.
$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12035 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12037 #define __cxa_atexit innocuous___cxa_atexit
12039 /* System header to define __stub macros and hopefully few prototypes,
12040 which can conflict with char __cxa_atexit (); below.
12041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12042 <limits.h> exists even on freestanding compilers. */
12045 # include <limits.h>
12047 # include <assert.h>
12050 #undef __cxa_atexit
12052 /* Override any gcc2 internal prototype to avoid an error. */
12057 /* We use char because int might match the return type of a gcc2
12058 builtin and then its argument prototype would still apply. */
12059 char __cxa_atexit ();
12060 /* The GNU C library defines this for functions which it implements
12061 to always fail with ENOSYS. Some functions are actually named
12062 something starting with __ and the normal name is an alias. */
12063 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12066 char (*f) () = __cxa_atexit;
12075 return f != __cxa_atexit;
12080 rm -f conftest.
$ac_objext conftest
$ac_exeext
12081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12082 (eval $ac_link) 2>conftest.er1
12084 grep -v '^ *+' conftest.er1
>conftest.err
12086 cat conftest.err
>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
12089 { ac_try
='test -z "$ac_c_werror_flag"
12090 || test ! -s conftest.err'
12091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092 (eval $ac_try) 2>&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; } &&
12096 { ac_try
='test -s conftest$ac_exeext'
12097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098 (eval $ac_try) 2>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; }; then
12102 ac_cv_func___cxa_atexit
=yes
12104 echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.
$ac_ext >&5
12107 ac_cv_func___cxa_atexit
=no
12109 rm -f conftest.err conftest.
$ac_objext \
12110 conftest
$ac_exeext conftest.
$ac_ext
12112 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12113 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12114 if test $ac_cv_func___cxa_atexit = yes; then
12117 echo "__cxa_atexit can't be enabled on this target"
12121 # We can't check for __cxa_atexit when building a cross, so assume
12125 if test x
$use_cxa_atexit = xyes
; then
12127 cat >>confdefs.h
<<\_ACEOF
12128 #define DEFAULT_USE_CXA_ATEXIT 1
12134 # Look for a file containing extra machine modes.
12135 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12136 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12139 cat >>confdefs.h
<<_ACEOF
12140 #define EXTRA_MODES_FILE "config/$extra_modes"
12145 # Convert extra_options into a form suitable for Makefile use.
12147 for f
in $extra_options; do
12148 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12152 # auto-host.h is the file containing items generated by autoconf and is
12153 # the first file included by config.h.
12154 # If host=build, it is correct to have bconfig include auto-host.h
12155 # as well. If host!=build, we are in error and need to do more
12156 # work to find out the build config parameters.
12157 if test x
$host = x
$build
12159 build_auto
=auto-host.h
12161 # We create a subdir, then run autoconf in the subdir.
12162 # To prevent recursion we set host and build for the new
12163 # invocation of configure to the build for this invocation
12170 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12171 *) realsrcdir
=..
/${srcdir};;
12173 saved_CFLAGS
="${CFLAGS}"
12174 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12175 ${realsrcdir}/configure \
12176 --enable-languages=${enable_languages-all} \
12177 --target=$target_alias --host=$build_alias --build=$build_alias
12178 CFLAGS
="${saved_CFLAGS}"
12180 # We just finished tests for the build machine, so rename
12181 # the file auto-build.h in the gcc directory.
12182 mv auto-host.h ..
/auto-build.h
12185 build_auto
=auto-build.h
12189 tm_file
="${tm_file} defaults.h"
12190 tm_p_file
="${tm_p_file} tm-preds.h"
12191 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12192 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12193 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12194 # put this back in temporarily.
12195 xm_file
="ansidecl.h ${xm_file}"
12201 # Compile in configure arguments.
12202 if test -f configargs.h
; then
12203 # Being re-configured.
12204 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12205 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12207 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12210 # Double all backslashes and backslash all quotes to turn
12211 # gcc_config_arguments into a C string.
12212 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12213 $gcc_config_arguments
12215 gcc_config_arguments_str
=`cat conftest.out`
12218 cat > configargs.h
<<EOF
12219 /* Generated automatically. */
12220 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12221 static const char thread_model[] = "$thread_file";
12223 static const struct {
12224 const char *name, *value;
12225 } configure_default_options[] = $configure_default_options;
12228 # Internationalization
12229 # If we haven't got the data from the intl directory,
12230 # assume NLS is disabled.
12238 if test -f ..
/intl
/config.intl
; then
12239 . ..
/intl
/config.intl
12241 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12242 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12243 if test x
"$USE_NLS" != xyes
; then
12244 echo "$as_me:$LINENO: result: no" >&5
12245 echo "${ECHO_T}no" >&6
12247 echo "$as_me:$LINENO: result: yes" >&5
12248 echo "${ECHO_T}yes" >&6
12250 cat >>confdefs.h
<<\_ACEOF
12251 #define ENABLE_NLS 1
12255 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12256 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12257 # Look for .po and .gmo files in the source directory.
12260 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12261 # If there aren't any .gmo files the shell will give us the
12262 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12264 case "$cat" in *\
**)
12267 # The quadruple backslash is collapsed to a double backslash
12268 # by the backticks, then collapsed again by the double quotes,
12269 # leaving us with one backslash in the sed expression (right
12270 # before the dot that mustn't act as a wildcard).
12271 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12272 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12273 # The user is allowed to set LINGUAS to a list of languages to
12274 # install catalogs for. If it's empty that means "all of them."
12275 if test "x$LINGUAS" = x
; then
12276 CATALOGS
="$CATALOGS $cat"
12277 XLINGUAS
="$XLINGUAS $lang"
12279 case "$LINGUAS" in *$lang*)
12280 CATALOGS
="$CATALOGS $cat"
12281 XLINGUAS
="$XLINGUAS $lang"
12286 LINGUAS
="$XLINGUAS"
12287 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12288 echo "${ECHO_T}$LINGUAS" >&6
12291 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12292 # -liconv on the link line twice.
12293 case "$LIBINTL" in *$LIBICONV*)
12297 # Windows32 Registry support for specifying GCC installation paths.
12298 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12299 if test "${enable_win32_registry+set}" = set; then
12300 enableval
="$enable_win32_registry"
12305 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12306 if test "x$enable_win32_registry" != xno
; then
12307 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12308 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12309 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 ac_func_search_save_LIBS
=$LIBS
12313 ac_cv_search_RegOpenKeyExA
=no
12314 cat >conftest.
$ac_ext <<_ACEOF
12317 cat confdefs.h
>>conftest.
$ac_ext
12318 cat >>conftest.
$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12321 /* Override any gcc2 internal prototype to avoid an error. */
12325 /* We use char because int might match the return type of a gcc2
12326 builtin and then its argument prototype would still apply. */
12327 char RegOpenKeyExA ();
12336 rm -f conftest.
$ac_objext conftest
$ac_exeext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12338 (eval $ac_link) 2>conftest.er1
12340 grep -v '^ *+' conftest.er1
>conftest.err
12342 cat conftest.err
>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try
='test -z "$ac_c_werror_flag"
12346 || test ! -s conftest.err'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try
='test -s conftest$ac_exeext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 ac_cv_search_RegOpenKeyExA
="none required"
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.
$ac_ext >&5
12364 rm -f conftest.err conftest.
$ac_objext \
12365 conftest
$ac_exeext conftest.
$ac_ext
12366 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12367 for ac_lib
in advapi32
; do
12368 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12369 cat >conftest.
$ac_ext <<_ACEOF
12372 cat confdefs.h
>>conftest.
$ac_ext
12373 cat >>conftest.
$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12376 /* Override any gcc2 internal prototype to avoid an error. */
12380 /* We use char because int might match the return type of a gcc2
12381 builtin and then its argument prototype would still apply. */
12382 char RegOpenKeyExA ();
12391 rm -f conftest.
$ac_objext conftest
$ac_exeext
12392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12393 (eval $ac_link) 2>conftest.er1
12395 grep -v '^ *+' conftest.er1
>conftest.err
12397 cat conftest.err
>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } &&
12400 { ac_try
='test -z "$ac_c_werror_flag"
12401 || test ! -s conftest.err'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; } &&
12407 { ac_try
='test -s conftest$ac_exeext'
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.
$ac_ext >&5
12420 rm -f conftest.err conftest.
$ac_objext \
12421 conftest
$ac_exeext conftest.
$ac_ext
12424 LIBS
=$ac_func_search_save_LIBS
12426 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12427 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12428 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12429 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12432 enable_win32_registry
=no
12437 if test "x$enable_win32_registry" != xno
; then
12439 cat >>confdefs.h
<<\_ACEOF
12440 #define ENABLE_WIN32_REGISTRY 1
12444 if test "x$enable_win32_registry" != xyes \
12445 && test "x$enable_win32_registry" != x
; then
12447 cat >>confdefs.h
<<_ACEOF
12448 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12456 # Get an absolute path to the GCC top-level source directory
12457 holddir
=`${PWDCMD-pwd}`
12459 topdir
=`${PWDCMD-pwd}`
12462 # Conditionalize the makefile for this host machine.
12464 for f
in ${host_xmake_file}
12466 if test -f ${srcdir}/config
/$f
12468 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12472 # Conditionalize the makefile for this target machine.
12474 for f
in ${tmake_file}
12476 if test -f ${srcdir}/config
/$f
12478 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12481 tmake_file
="${tmake_file_}"
12483 # If the host doesn't support symlinks, modify CC in
12484 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12485 # Otherwise, we can use "CC=$(CC)".
12489 cc_set_by_configure
="\$(CC)"
12490 quoted_cc_set_by_configure
="\$(CC)"
12491 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12492 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12495 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12496 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12497 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12498 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12502 # This is a terrible hack which will go away some day.
12503 host_cc_for_libada
=${CC}
12506 out_object_file
=`basename $out_file .c`.o
12508 tm_file_list
="options.h"
12509 tm_include_list
="options.h"
12510 for f
in $tm_file; do
12513 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12514 tm_include_list
="${tm_include_list} $f"
12517 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12518 tm_include_list
="${tm_include_list} config/$f"
12525 for f
in $tm_p_file; do
12528 tm_p_file_list
="${tm_p_file_list} $f"
12529 tm_p_include_list
="${tm_p_include_list} $f"
12532 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12533 tm_p_include_list
="${tm_p_include_list} config/$f"
12539 for f
in $xm_file; do
12542 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12543 xm_include_list
="${xm_include_list} $f"
12546 xm_file_list
="${xm_file_list} $f"
12547 xm_include_list
="${xm_include_list} $f"
12550 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12551 xm_include_list
="${xm_include_list} config/$f"
12557 host_xm_include_list
=
12558 for f
in $host_xm_file; do
12561 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12562 host_xm_include_list
="${host_xm_include_list} $f"
12565 host_xm_file_list
="${host_xm_file_list} $f"
12566 host_xm_include_list
="${host_xm_include_list} $f"
12569 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12570 host_xm_include_list
="${host_xm_include_list} config/$f"
12575 build_xm_file_list
=
12576 for f
in $build_xm_file; do
12579 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12580 build_xm_include_list
="${build_xm_include_list} $f"
12582 auto-build.h | auto-host.h
)
12583 build_xm_file_list
="${build_xm_file_list} $f"
12584 build_xm_include_list
="${build_xm_include_list} $f"
12587 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12588 build_xm_include_list
="${build_xm_include_list} config/$f"
12593 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12594 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12597 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12598 if test x
$host != x
$target
12600 CROSS
="-DCROSS_COMPILE"
12602 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12603 case "$host","$target" in
12604 # Darwin crosses can use the host system's libraries and headers,
12605 # because of the fat library support. Of course, it must be the
12606 # same version of Darwin on both sides. Allow the user to
12607 # just say --target=foo-darwin without a version number to mean
12608 # "the version on this system".
12609 *-*-darwin*,*-*-darwin*)
12610 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12611 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12612 if test $hostos = $targetos -o $targetos = darwin
; then
12614 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12619 i?
86-*-*,x86_64-
*-* \
12620 | powerpc
*-*-*,powerpc64
*-*-*)
12621 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12623 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12624 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12625 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12628 # If this is a cross-compiler that does not
12629 # have its own set of headers then define
12632 # If this is using newlib, without having the headers available now,
12633 # then define inhibit_libc in LIBGCC2_CFLAGS.
12634 # This prevents libgcc2 from containing any code which requires libc
12637 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12638 test x
$with_newlib = xyes
; } &&
12639 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12640 inhibit_libc
=-Dinhibit_libc
12644 # When building gcc with a cross-compiler, we need to adjust things so
12645 # that the generator programs are still built with the native compiler.
12646 # Also, we cannot run fixincludes or fix-header.
12648 # These are the normal (build=host) settings:
12649 CC_FOR_BUILD
='$(CC)'
12650 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12651 STMP_FIXINC
=stmp-fixinc
12653 # Possibly disable fixproto, on a per-target basis.
12654 case ${use_fixproto} in
12659 STMP_FIXPROTO
=stmp-fixproto
12664 # And these apply if build != host, or we are generating coverage data
12665 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12667 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12669 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12670 if "x$STMP_FIXPROTO" != x
; then
12671 STMP_FIXPROTO
=stmp-install-fixproto
12676 # Expand extra_headers to include complete path.
12677 # This substitutes for lots of t-* files.
12678 extra_headers_list
=
12679 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12680 for file in ${extra_headers} ; do
12681 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12684 # Define collect2 in Makefile.
12685 case $host_can_use_collect2 in
12687 *) collect2
='collect2$(exeext)' ;;
12691 # Add a definition of USE_COLLECT2 if system wants one.
12692 case $use_collect2 in
12693 no
) use_collect2
= ;;
12696 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12697 xm_defines
="${xm_defines} USE_COLLECT2"
12698 case $host_can_use_collect2 in
12700 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12701 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12702 { (exit 1); exit 1; }; }
12708 # ---------------------------
12709 # Assembler & linker features
12710 # ---------------------------
12712 # Identify the assembler which will work hand-in-glove with the newly
12713 # built GCC, so that we can examine its features. This is the assembler
12714 # which will be driven by the driver program.
12716 # If build != host, and we aren't building gas in-tree, we identify a
12717 # build->target assembler and hope that it will have the same features
12718 # as the host->target assembler we'll be using.
12719 echo "$as_me:$LINENO: checking what assembler to use" >&5
12720 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12723 gcc_cv_gas_major_version
=
12724 gcc_cv_gas_minor_version
=
12725 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12726 if test -x "$DEFAULT_ASSEMBLER"; then
12727 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12728 elif test -x as
$build_exeext; then
12729 # Build using assembler in the current directory.
12730 gcc_cv_as
=.
/as
$build_exeext
12731 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12732 && test -f ..
/gas
/Makefile \
12733 && test x
$build = x
$host; then
12734 # Single tree build which includes gas. We want to prefer it
12735 # over whatever linker top-level may have detected, since
12736 # we'll use what we're building after installation anyway.
12738 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12739 for f
in $gcc_cv_as_bfd_srcdir/configure \
12740 $gcc_cv_as_gas_srcdir/configure \
12741 $gcc_cv_as_gas_srcdir/configure.
in \
12742 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12743 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12744 if test x
$gcc_cv_gas_version != x
; then
12748 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12749 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12750 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12751 case $gcc_cv_gas_patch_version in
12752 "") gcc_cv_gas_patch_version
="0" ;;
12754 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12755 + $gcc_cv_gas_minor_version \) \* 1000 \
12756 + $gcc_cv_gas_patch_version`
12758 rm -f as
$build_exeext
12759 $LN_S ..
/gas
/as-new
$build_exeext as
$build_exeext 2>/dev
/null
12760 in_tree_gas_is_elf
=no
12761 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12762 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12763 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12765 in_tree_gas_is_elf
=yes
12767 elif test -x "$AS_FOR_TARGET"; then
12768 gcc_cv_as
="$AS_FOR_TARGET"
12769 elif test -x "$AS" && test x
$host = x
$target; then
12773 gcc_version
=`cat $srcdir/BASE-VER`
12775 if test "x$gcc_cv_as" = x
; then
12776 # Search the same directories that the installed compiler will
12777 # search. Else we may find the wrong assembler and lose. If we
12778 # do not find a suitable assembler binary, then try the user's
12781 # Also note we have to check MD_EXEC_PREFIX before checking the
12782 # user's path. Unfortunately, there is no good way to get at the
12783 # value of MD_EXEC_PREFIX here. So we do a brute force search
12784 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12785 # to be fixed as part of the make/configure rewrite too.
12787 if test "x$exec_prefix" = xNONE
; then
12788 if test "x$prefix" = xNONE
; then
12789 test_prefix
=/usr
/local
12791 test_prefix
=$prefix
12794 test_prefix
=$exec_prefix
12797 # If the loop below does not find an assembler, then use whatever
12798 # one we can find in the users's path. We are looking for a
12799 # ${build} -> ${target} assembler.
12800 if test "x$program_prefix" != xNONE
; then
12801 gcc_cv_as
=${program_prefix}as
$build_exeext
12802 elif test x
$build != x
$host && test x
$build != x
$target; then
12803 gcc_cv_as
=${target_noncanonical}-as$build_exeext
12805 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$build_exeext
12808 if test x
$host = x
$build; then
12809 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12810 $test_prefix/libexec/gcc/$target_noncanonical \
12811 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12812 /usr/lib/gcc/$target_noncanonical \
12813 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12814 $test_prefix/$target_noncanonical/bin"
12819 if test x
$build = x
$target; then
12820 test_dirs
="$test_dirs \
12825 /bsd43/usr/lib/cmplrs/cc \
12826 /usr/cross64/usr/bin \
12827 /usr/lib/cmplrs/cc \
12828 /sysv/usr/lib/cmplrs/cc \
12829 /svr4/usr/lib/cmplrs/cc \
12833 for dir
in $test_dirs; do
12834 if test -x $dir/as
$build_exeext; then
12835 gcc_cv_as
=$dir/as
$build_exeext
12840 case $in_tree_gas in
12842 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12843 echo "${ECHO_T}\"newly built gas\"" >&6
12846 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12847 echo "${ECHO_T}$gcc_cv_as" >&6
12851 # Identify the linker which will work hand-in-glove with the newly
12852 # built GCC, so that we can examine its features. This is the linker
12853 # which will be driven by the driver program.
12855 # If build != host, and we aren't building gas in-tree, we identify a
12856 # build->target linker and hope that it will have the same features
12857 # as the host->target linker we'll be using.
12858 echo "$as_me:$LINENO: checking what linker to use" >&5
12859 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12862 gcc_cv_gld_major_version
=
12863 gcc_cv_gld_minor_version
=
12864 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12865 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12866 if test -x "$DEFAULT_LINKER"; then
12867 gcc_cv_ld
="$DEFAULT_LINKER"
12868 elif test -x collect-ld
$build_exeext; then
12869 # Build using linker in the current directory.
12870 gcc_cv_ld
=.
/collect-ld
$build_exeext
12871 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
12872 && test -f ..
/ld
/Makefile \
12873 && test x
$build = x
$host; then
12874 # Single tree build which includes ld. We want to prefer it
12875 # over whatever linker top-level may have detected, since
12876 # we'll use what we're building after installation anyway.
12878 in_tree_ld_is_elf
=no
12879 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
12880 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
12881 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
12882 in_tree_ld_is_elf
=yes
12884 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
12886 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12887 if test x
$gcc_cv_gld_version != x
; then
12891 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12892 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12893 rm -f collect-ld
$build_exeext
12894 $LN_S ..
/ld
/ld-new
$build_exeext collect-ld
$build_exeext 2>/dev
/null
12895 elif test -x "$LD_FOR_TARGET"; then
12896 gcc_cv_ld
="$LD_FOR_TARGET"
12897 elif test -x "$LD" && test x
$host = x
$target; then
12901 if test "x$gcc_cv_ld" = x
; then
12902 # Search the same directories that the installed compiler will
12903 # search. Else we may find the wrong linker and lose. If we
12904 # do not find a suitable linker binary, then try the user's
12907 # Also note we have to check MD_EXEC_PREFIX before checking the
12908 # user's path. Unfortunately, there is no good way to get at the
12909 # value of MD_EXEC_PREFIX here. So we do a brute force search
12910 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12911 # to be fixed as part of the make/configure rewrite too.
12913 if test "x$exec_prefix" = xNONE
; then
12914 if test "x$prefix" = xNONE
; then
12915 test_prefix
=/usr
/local
12917 test_prefix
=$prefix
12920 test_prefix
=$exec_prefix
12923 # If the loop below does not find a linker, then use whatever
12924 # one we can find in the users's path. We are looking for a
12925 # ${build} -> ${target} linker.
12926 if test "x$program_prefix" != xNONE
; then
12927 gcc_cv_ld
=${program_prefix}ld
$build_exeext
12928 elif test x
$build != x
$host && test x
$build != x
$target; then
12929 gcc_cv_ld
=${target_noncanonical}-ld$build_exeext
12931 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$build_exeext
12934 if test x
$host = x
$build; then
12935 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12936 $test_prefix/libexec/gcc/$target_noncanonical \
12937 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12938 /usr/lib/gcc/$target_noncanonical \
12939 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12940 $test_prefix/$target_noncanonical/bin"
12945 if test x
$build = x
$target; then
12946 test_dirs
="$test_dirs \
12951 /bsd43/usr/lib/cmplrs/cc \
12952 /usr/cross64/usr/bin \
12953 /usr/lib/cmplrs/cc \
12954 /sysv/usr/lib/cmplrs/cc \
12955 /svr4/usr/lib/cmplrs/cc \
12959 for dir
in $test_dirs; do
12960 if test -x $dir/ld
$build_exeext; then
12961 gcc_cv_ld
=$dir/ld
$build_exeext
12966 case $in_tree_ld in
12968 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12969 echo "${ECHO_T}\"newly built ld\"" >&6
12972 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12973 echo "${ECHO_T}$gcc_cv_ld" >&6
12977 # Figure out what nm we will be using.
12978 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12979 echo "$as_me:$LINENO: checking what nm to use" >&5
12980 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12982 if test -x nm
$build_exeext; then
12983 gcc_cv_nm
=.
/nm
$build_exeext
12984 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
12985 && test -f ..
/binutils
/Makefile
; then
12986 # Single tree build which includes binutils.
12988 gcc_cv_nm
=.
/nm
$build_exeext
12989 rm -f nm
$build_exeext
12990 $LN_S ..
/binutils
/nm-new
$build_exeext nm
$build_exeext 2>/dev
/null
12991 elif test "x$program_prefix" != xNONE
; then
12992 gcc_cv_nm
=${program_prefix}nm
$build_exeext
12993 elif test x
$build != x
$host && test x
$build != x
$target; then
12994 gcc_cv_nm
=${target_noncanonical}-nm$build_exeext
12996 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$build_exeext
12998 case $in_tree_nm in
12999 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13000 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13001 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13002 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13005 # Figure out what objdump we will be using.
13006 echo "$as_me:$LINENO: checking what objdump to use" >&5
13007 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13009 if test -x objdump
$build_exeext; then
13010 gcc_cv_objdump
=.
/objdump
$build_exeext
13011 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13012 && test -f ..
/binutils
/Makefile
; then
13013 # Single tree build which includes binutils.
13014 in_tree_objdump
=yes
13015 gcc_cv_objdump
=.
/objdump
$build_exeext
13016 rm -f objdump
$build_exeext
13017 $LN_S ..
/binutils
/objdump
$build_exeext objdump
$build_exeext 2>/dev
/null
13018 elif test "x$program_prefix" != xNONE
; then
13019 gcc_cv_objdump
=${program_prefix}objdump
$build_exeext
13020 elif test x
$build != x
$host && test x
$build != x
$target; then
13021 gcc_cv_objdump
=${target_noncanonical}-objdump$build_exeext
13023 gcc_cv_objdump
=`echo objdump | \
13024 sed "${program_transform_name}"`$build_exeext
13026 case $in_tree_objdump in
13027 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13028 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13029 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13030 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13033 # Figure out what assembler alignment features are present.
13034 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13035 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13036 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 gcc_cv_as_balign_and_p2align
=no
13040 if test $in_tree_gas = yes; then
13041 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13042 then gcc_cv_as_balign_and_p2align
=yes
13044 elif test x
$gcc_cv_as != x
; then
13046 .p2align 2' > conftest.s
13047 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }
13054 gcc_cv_as_balign_and_p2align
=yes
13056 echo "configure: failed program was" >&5
13059 rm -f conftest.o conftest.s
13062 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13063 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13064 if test $gcc_cv_as_balign_and_p2align = yes; then
13066 cat >>confdefs.h
<<\_ACEOF
13067 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13072 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13073 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13074 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 gcc_cv_as_max_skip_p2align
=no
13078 if test $in_tree_gas = yes; then
13079 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13080 then gcc_cv_as_max_skip_p2align
=yes
13082 elif test x
$gcc_cv_as != x
; then
13083 echo '.p2align 4,,7' > conftest.s
13084 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086 (eval $ac_try) 2>&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }
13091 gcc_cv_as_max_skip_p2align
=yes
13093 echo "configure: failed program was" >&5
13096 rm -f conftest.o conftest.s
13099 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13100 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13101 if test $gcc_cv_as_max_skip_p2align = yes; then
13103 cat >>confdefs.h
<<\_ACEOF
13104 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13109 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13110 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13111 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 gcc_cv_as_subsection_m1
=no
13115 if test $in_tree_gas = yes; then
13116 if test $in_tree_gas_is_elf = yes \
13117 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13118 then gcc_cv_as_subsection_m1
=yes
13120 elif test x
$gcc_cv_as != x
; then
13121 echo 'conftest_label1: .word 0
13123 conftest_label2: .word 0
13124 .previous' > conftest.s
13125 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127 (eval $ac_try) 2>&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; }
13132 if test x
$gcc_cv_nm != x
; then
13133 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13134 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13135 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13137 else gcc_cv_as_subsection_m1
=yes
13139 rm -f conftest.nm1 conftest.nm2
13142 echo "configure: failed program was" >&5
13145 rm -f conftest.o conftest.s
13148 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13149 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13150 if test $gcc_cv_as_subsection_m1 = yes; then
13152 cat >>confdefs.h
<<\_ACEOF
13153 #define HAVE_GAS_SUBSECTION_ORDERING 1
13158 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13159 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13160 if test "${gcc_cv_as_weak+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 if test $in_tree_gas = yes; then
13165 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13166 then gcc_cv_as_weak
=yes
13168 elif test x
$gcc_cv_as != x
; then
13169 echo ' .weak foobar' > conftest.s
13170 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; }
13179 echo "configure: failed program was" >&5
13182 rm -f conftest.o conftest.s
13185 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13186 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13187 if test $gcc_cv_as_weak = yes; then
13189 cat >>confdefs.h
<<\_ACEOF
13190 #define HAVE_GAS_WEAK 1
13195 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13196 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13197 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 gcc_cv_as_nsubspa_comdat
=no
13201 if test $in_tree_gas = yes; then
13202 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13203 then gcc_cv_as_nsubspa_comdat
=yes
13205 elif test x
$gcc_cv_as != x
; then
13206 echo ' .SPACE $TEXT$
13207 .NSUBSPA $CODE$,COMDAT' > conftest.s
13208 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; }
13215 gcc_cv_as_nsubspa_comdat
=yes
13217 echo "configure: failed program was" >&5
13220 rm -f conftest.o conftest.s
13223 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13224 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13225 if test $gcc_cv_as_nsubspa_comdat = yes; then
13227 cat >>confdefs.h
<<\_ACEOF
13228 #define HAVE_GAS_NSUBSPA_COMDAT 1
13233 # .hidden needs to be supported in both the assembler and the linker,
13234 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13235 # This is irritatingly difficult to feature test for; we have to check the
13236 # date string after the version number. If we've got an in-tree
13237 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13239 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13240 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13241 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13242 if test "${gcc_cv_as_hidden+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 gcc_cv_as_hidden
=no
13246 if test $in_tree_gas = yes; then
13247 if test $in_tree_gas_is_elf = yes \
13248 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13249 then gcc_cv_as_hidden
=yes
13251 elif test x
$gcc_cv_as != x
; then
13252 echo ' .hidden foobar
13253 foobar:' > conftest.s
13254 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }
13261 gcc_cv_as_hidden
=yes
13263 echo "configure: failed program was" >&5
13266 rm -f conftest.o conftest.s
13269 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13270 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13273 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13274 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13275 if test "${gcc_cv_ld_hidden+set}" = set; then
13276 echo $ECHO_N "(cached) $ECHO_C" >&6
13278 if test $in_tree_ld = yes ; then
13279 gcc_cv_ld_hidden
=no
13280 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 \
13281 && test $in_tree_ld_is_elf = yes; then
13282 gcc_cv_ld_hidden
=yes
13285 gcc_cv_ld_hidden
=yes
13286 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13287 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13288 ld_vers
=`echo $ld_ver | sed -n \
13289 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13290 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13291 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13292 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13293 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13294 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13295 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'`
13296 if test 0"$ld_date" -lt 20020404; then
13297 if test -n "$ld_date"; then
13298 # If there was date string, but was earlier than 2002-04-04, fail
13299 gcc_cv_ld_hidden
=no
13300 elif test -z "$ld_vers"; then
13301 # If there was no date string nor ld version number, something is wrong
13302 gcc_cv_ld_hidden
=no
13304 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13305 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13306 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13307 test -z "$ld_vers_patch" && ld_vers_patch
=0
13308 if test "$ld_vers_major" -lt 2; then
13309 gcc_cv_ld_hidden
=no
13310 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13311 gcc_cv_ld_hidden
="no"
13312 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13313 gcc_cv_ld_hidden
=no
13318 case "${target}" in
13319 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13320 gcc_cv_ld_hidden
=yes
13323 gcc_cv_ld_hidden
=no
13329 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13330 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13331 libgcc_visibility
=no
13333 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13334 libgcc_visibility
=yes
13336 cat >>confdefs.h
<<\_ACEOF
13337 #define HAVE_GAS_HIDDEN 1
13342 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13343 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13344 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13345 if test "${gcc_cv_as_leb128+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 gcc_cv_as_leb128
=no
13349 if test $in_tree_gas = yes; then
13350 if test $in_tree_gas_is_elf = yes \
13351 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13352 then gcc_cv_as_leb128
=yes
13354 elif test x
$gcc_cv_as != x
; then
13361 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }
13368 # GAS versions before 2.11 do not support uleb128,
13369 # despite appearing to.
13370 # ??? There exists an elf-specific test that will crash
13371 # the assembler. Perhaps it's better to figure out whether
13372 # arbitrary sections are supported and try the test.
13373 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13374 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13375 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13376 as_major
=`echo $as_ver | sed 's/\..*//'`
13377 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13378 if test $as_major -eq 2 && test $as_minor -lt 11
13380 else gcc_cv_as_leb128
=yes
13384 echo "configure: failed program was" >&5
13387 rm -f conftest.o conftest.s
13390 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13391 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13392 if test $gcc_cv_as_leb128 = yes; then
13394 cat >>confdefs.h
<<\_ACEOF
13395 #define HAVE_AS_LEB128 1
13400 # GAS versions up to and including 2.11.0 may mis-optimize
13402 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13403 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13404 if test "${gcc_cv_as_eh_frame+set}" = set; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
13407 gcc_cv_as_eh_frame
=no
13408 if test $in_tree_gas = yes; then
13409 if test $in_tree_gas_is_elf = yes \
13410 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13411 then gcc_cv_as_eh_frame
=yes
13413 elif test x
$gcc_cv_as != x
; then
13420 .section .eh_frame,"aw",@progbits
13422 .4byte .LECIE1-.LSCIE1
13436 .4byte .LEFDE1-.LASFDE1
13438 .4byte .LASFDE1-__FRAME_BEGIN__
13445 .LEFDE1:' > conftest.s
13446 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }
13453 cat > conftest.lit
<<EOF
13454 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13455 0010 01000000 12000000 18000000 00000000 ................
13456 0020 08000000 04080000 0044 .........D
13458 cat > conftest.big
<<EOF
13459 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13460 0010 00000001 00000012 00000018 00000000 ................
13461 0020 00000008 04000000 0844 .........D
13463 # If the assembler didn't choke, and we can objdump,
13464 # and we got the correct data, then succeed.
13465 if test x
$gcc_cv_objdump != x \
13466 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13467 |
tail -3 > conftest.got \
13468 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13469 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13471 gcc_cv_as_eh_frame
=yes
13472 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 gcc_cv_as_eh_frame
=buggy
13480 # Uh oh, what do we do now?
13481 gcc_cv_as_eh_frame
=no
13484 echo "configure: failed program was" >&5
13487 rm -f conftest.o conftest.s
13490 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13491 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13494 if test $gcc_cv_as_eh_frame = buggy
; then
13496 cat >>confdefs.h
<<\_ACEOF
13497 #define USE_AS_TRADITIONAL_FORMAT 1
13502 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13503 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13504 if test "${gcc_cv_as_shf_merge+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13507 gcc_cv_as_shf_merge
=no
13508 if test $in_tree_gas = yes; then
13509 if test $in_tree_gas_is_elf = yes \
13510 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13511 then gcc_cv_as_shf_merge
=yes
13513 elif test x
$gcc_cv_as != x
; then
13514 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13515 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; }
13522 gcc_cv_as_shf_merge
=yes
13524 echo "configure: failed program was" >&5
13527 rm -f conftest.o conftest.s
13530 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13531 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13533 if test $gcc_cv_as_shf_merge = no
; then
13534 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13535 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13536 if test "${gcc_cv_as_shf_merge+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 gcc_cv_as_shf_merge
=no
13540 if test $in_tree_gas = yes; then
13541 if test $in_tree_gas_is_elf = yes \
13542 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13543 then gcc_cv_as_shf_merge
=yes
13545 elif test x
$gcc_cv_as != x
; then
13546 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13547 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; }
13554 gcc_cv_as_shf_merge
=yes
13556 echo "configure: failed program was" >&5
13559 rm -f conftest.o conftest.s
13562 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13563 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13567 cat >>confdefs.h
<<_ACEOF
13568 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13572 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13573 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13574 if test "${gcc_cv_as_comdat_group+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 gcc_cv_as_comdat_group
=no
13578 if test $in_tree_gas = yes; then
13579 if test $in_tree_gas_is_elf = yes \
13580 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13581 then gcc_cv_as_comdat_group
=yes
13583 elif test x
$gcc_cv_as != x
; then
13584 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13585 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }
13592 gcc_cv_as_comdat_group
=yes
13594 echo "configure: failed program was" >&5
13597 rm -f conftest.o conftest.s
13600 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13601 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13603 if test $gcc_cv_as_comdat_group = yes; then
13604 gcc_cv_as_comdat_group_percent
=no
13606 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13607 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13608 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 gcc_cv_as_comdat_group_percent
=no
13612 if test $in_tree_gas = yes; then
13613 if test $in_tree_gas_is_elf = yes \
13614 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13615 then gcc_cv_as_comdat_group_percent
=yes
13617 elif test x
$gcc_cv_as != x
; then
13618 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13619 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }
13626 gcc_cv_as_comdat_group_percent
=yes
13628 echo "configure: failed program was" >&5
13631 rm -f conftest.o conftest.s
13634 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13635 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13639 cat >>confdefs.h
<<_ACEOF
13640 #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`
13644 # Thread-local storage - the check is heavily parametrized.
13652 .section ".tdata","awT",@progbits
13655 ldq $27,__tls_get_addr($29) !literal!1
13656 lda $16,foo($29) !tlsgd!1
13657 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13658 ldq $27,__tls_get_addr($29) !literal!2
13659 lda $16,foo($29) !tlsldm!2
13660 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13661 ldq $1,foo($29) !gotdtprel
13662 ldah $2,foo($29) !dtprelhi
13663 lda $3,foo($2) !dtprello
13664 lda $4,foo($29) !dtprel
13665 ldq $1,foo($29) !gottprel
13666 ldah $2,foo($29) !tprelhi
13667 lda $3,foo($2) !tprello
13668 lda $4,foo($29) !tprel'
13671 tls_as_opt
=--fatal-warnings
13675 .section ".tdata","awT",@progbits
13678 call #gettlsoff(x)'
13684 .section ".tdata","awT",@progbits
13688 leal foo@TLSGD(,%ebx,1), %eax
13689 leal foo@TLSLDM(%ebx), %eax
13690 leal foo@DTPOFF(%eax), %edx
13691 movl foo@GOTTPOFF(%ebx), %eax
13692 subl foo@GOTTPOFF(%ebx), %eax
13693 addl foo@GOTNTPOFF(%ebx), %eax
13694 movl foo@INDNTPOFF, %eax
13695 movl $foo@TPOFF, %eax
13696 subl $foo@TPOFF, %eax
13697 leal foo@NTPOFF(%ecx), %eax'
13700 tls_as_opt
=--fatal-warnings
13704 .section ".tdata","awT",@progbits
13708 leaq foo@TLSGD(%rip), %rdi
13709 leaq foo@TLSLD(%rip), %rdi
13710 leaq foo@DTPOFF(%rax), %rdx
13711 movq foo@GOTTPOFF(%rip), %rax
13712 movq $foo@TPOFF, %rax'
13715 tls_as_opt
=--fatal-warnings
13719 .section ".tdata","awT",@progbits
13722 addl r16 = @ltoff(@dtpmod(foo#)), gp
13723 addl r17 = @ltoff(@dtprel(foo#)), gp
13724 addl r18 = @ltoff(@tprel(foo#)), gp
13725 addl r19 = @dtprel(foo#), gp
13726 adds r21 = @dtprel(foo#), r13
13727 movl r23 = @dtprel(foo#)
13728 addl r20 = @tprel(foo#), gp
13729 adds r22 = @tprel(foo#), r13
13730 movl r24 = @tprel(foo#)'
13733 tls_as_opt
=--fatal-warnings
13737 .section .tdata,"awT",@progbits
13741 addiu $4, $28, %tlsgd(x)
13742 addiu $4, $28, %tlsldm(x)
13743 lui $4, %dtprel_hi(x)
13744 addiu $4, $4, %dtprel_lo(x)
13745 lw $4, %gottprel(x)($28)
13746 lui $4, %tprel_hi(x)
13747 addiu $4, $4, %tprel_lo(x)'
13750 tls_as_opt
='-32 --fatal-warnings'
13754 .section ".tdata","awT",@progbits
13762 addi 3,31,ld0@got@tlsgd
13764 addi 3,31,x1@got@tlsld
13767 addis 9,3,x2@dtprel@ha
13768 addi 9,9,x2@dtprel@l
13769 lwz 9,x3@got@tprel(31)
13772 addis 9,2,x2@tprel@ha
13773 addi 9,9,x2@tprel@l'
13776 tls_as_opt
="-a32 --fatal-warnings"
13780 .section ".tdata","awT",@progbits
13788 addi 3,2,ld0@got@tlsgd
13794 addi 3,2,x1@got@tlsld
13800 addis 9,3,x2@dtprel@ha
13801 addi 9,9,x2@dtprel@l
13804 ld 9,x3@got@dtprel(2)
13810 tls_as_opt
="-a64 --fatal-warnings"
13814 .section ".tdata","awT",@progbits
13821 .long foo@GOTNTPOFF
13822 .long foo@INDNTPOFF
13823 l %r1,foo@GOTNTPOFF(%r12)
13824 l %r1,0(%r1):tls_load:foo
13825 bas %r14,0(%r1,%r13):tls_gdcall:foo
13826 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13829 tls_as_opt
="-m31 --fatal-warnings"
13833 .section ".tdata","awT",@progbits
13840 .quad foo@GOTNTPOFF
13841 lg %r1,foo@GOTNTPOFF(%r12)
13842 larl %r1,foo@INDNTPOFF
13843 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13844 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13847 tls_as_opt
="-m64 -Aesame --fatal-warnings"
13849 sh-
*-* | sh
[34]-*-*)
13851 .section ".tdata","awT",@progbits
13861 tls_as_opt
=--fatal-warnings
13865 sparc
*-sun-solaris2.
*)
13872 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
13874 .section ".tdata",#alloc,#write,#tls
13877 sethi %tgd_hi22(foo), %o0
13878 add %o0, %tgd_lo10(foo), %o1
13879 add %l7, %o1, %o0, %tgd_add(foo)
13880 call __tls_get_addr, %tgd_call(foo)
13881 sethi %tldm_hi22(foo), %l1
13882 add %l1, %tldm_lo10(foo), %l2
13883 add %l7, %l2, %o0, %tldm_add(foo)
13884 call __tls_get_addr, %tldm_call(foo)
13885 sethi %tldo_hix22(foo), %l3
13886 xor %l3, %tldo_lox10(foo), %l4
13887 add %o0, %l4, %l5, %tldo_add(foo)
13888 sethi %tie_hi22(foo), %o3
13889 add %o3, %tie_lo10(foo), %o3
13890 ld [%l7 + %o3], %o2, %tie_ld(foo)
13891 add %g7, %o2, %o4, %tie_add(foo)
13892 sethi %tle_hix22(foo), %l1
13893 xor %l1, %tle_lox10(foo), %o5
13894 ld [%g7 + %o5], %o1'
13899 .section ".tdata","awT",@progbits
13902 sethi %tgd_hi22(foo), %o0
13903 add %o0, %tgd_lo10(foo), %o1
13904 add %l7, %o1, %o0, %tgd_add(foo)
13905 call __tls_get_addr, %tgd_call(foo)
13906 sethi %tldm_hi22(foo), %l1
13907 add %l1, %tldm_lo10(foo), %l2
13908 add %l7, %l2, %o0, %tldm_add(foo)
13909 call __tls_get_addr, %tldm_call(foo)
13910 sethi %tldo_hix22(foo), %l3
13911 xor %l3, %tldo_lox10(foo), %l4
13912 add %o0, %l4, %l5, %tldo_add(foo)
13913 sethi %tie_hi22(foo), %o3
13914 add %o3, %tie_lo10(foo), %o3
13915 ld [%l7 + %o3], %o2, %tie_ld(foo)
13916 add %g7, %o2, %o4, %tie_add(foo)
13917 sethi %tle_hix22(foo), %l1
13918 xor %l1, %tle_lox10(foo), %o5
13919 ld [%g7 + %o5], %o1'
13922 tls_as_opt
="-32 --fatal-warnings"
13926 if test -z "$tls_first_major"; then
13927 : # If we don't have a check, assume no support.
13929 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13930 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13931 if test "${gcc_cv_as_tls+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 if test $in_tree_gas = yes; then
13936 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13937 then gcc_cv_as_tls
=yes
13939 elif test x
$gcc_cv_as != x
; then
13940 echo "$conftest_s" > conftest.s
13941 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }
13950 echo "configure: failed program was" >&5
13953 rm -f conftest.o conftest.s
13956 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13957 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13958 if test $gcc_cv_as_tls = yes; then
13960 cat >>confdefs.h
<<\_ACEOF
13961 #define HAVE_AS_TLS 1
13967 # Target-specific assembler checks.
13969 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13970 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13971 gcc_cv_ld_static_dynamic
=no
13972 if test $in_tree_ld = yes ; then
13973 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13974 gcc_cv_ld_static_dynamic
=yes
13976 elif test x
$gcc_cv_ld != x
; then
13977 # Check if linker supports -Bstatic/-Bdynamic option
13978 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
13979 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
13980 gcc_cv_ld_static_dynamic
=yes
13983 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
13985 cat >>confdefs.h
<<\_ACEOF
13986 #define HAVE_LD_STATIC_DYNAMIC 1
13990 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
13991 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
13993 if test x
"$demangler_in_ld" = xyes
; then
13994 echo "$as_me:$LINENO: checking linker --demangle support" >&5
13995 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
13996 gcc_cv_ld_demangle
=no
13997 if test $in_tree_ld = yes; then
13998 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 \
13999 gcc_cv_ld_demangle
=yes
14001 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14002 # Check if the GNU linker supports --demangle option
14003 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14004 gcc_cv_ld_demangle
=yes
14007 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14009 cat >>confdefs.h
<<\_ACEOF
14010 #define HAVE_LD_DEMANGLE 1
14014 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14015 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14019 # All TARGET_ABI_OSF targets.
14020 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14021 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14022 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14023 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 gcc_cv_as_alpha_explicit_relocs
=no
14027 if test $in_tree_gas = yes; then
14028 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14029 then gcc_cv_as_alpha_explicit_relocs
=yes
14031 elif test x
$gcc_cv_as != x
; then
14032 echo ' .set nomacro
14034 extbl $3, $2, $3 !lituse_bytoff!1
14035 ldq $2, a($29) !literal!1
14036 ldq $4, b($29) !literal!2
14037 ldq_u $3, 0($2) !lituse_base!1
14038 ldq $27, f($29) !literal!5
14039 jsr $26, ($27), f !lituse_jsr!5
14040 ldah $29, 0($26) !gpdisp!3
14041 lda $0, c($29) !gprel
14042 ldah $1, d($29) !gprelhigh
14043 lda $1, d($1) !gprellow
14044 lda $29, 0($29) !gpdisp!3' > conftest.s
14045 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }
14052 gcc_cv_as_alpha_explicit_relocs
=yes
14054 echo "configure: failed program was" >&5
14057 rm -f conftest.o conftest.s
14060 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14061 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14062 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14064 cat >>confdefs.h
<<\_ACEOF
14065 #define HAVE_AS_EXPLICIT_RELOCS 1
14072 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14073 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14074 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14077 gcc_cv_as_cris_no_mul_bug
=no
14078 if test $in_tree_gas = yes; then
14079 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14080 then gcc_cv_as_cris_no_mul_bug
=yes
14082 elif test x
$gcc_cv_as != x
; then
14083 echo '.text' > conftest.s
14084 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }
14091 gcc_cv_as_cris_no_mul_bug
=yes
14093 echo "configure: failed program was" >&5
14096 rm -f conftest.o conftest.s
14099 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14100 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14101 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14103 cat >>confdefs.h
<<\_ACEOF
14104 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14111 echo "$as_me:$LINENO: checking assembler for .register" >&5
14112 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14113 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 gcc_cv_as_sparc_register_op
=no
14117 if test x
$gcc_cv_as != x
; then
14118 echo '.register %g2, #scratch' > conftest.s
14119 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121 (eval $ac_try) 2>&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; }
14126 gcc_cv_as_sparc_register_op
=yes
14128 echo "configure: failed program was" >&5
14131 rm -f conftest.o conftest.s
14134 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14135 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14136 if test $gcc_cv_as_sparc_register_op = yes; then
14138 cat >>confdefs.h
<<\_ACEOF
14139 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14144 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14145 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14146 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 gcc_cv_as_sparc_relax
=no
14150 if test x
$gcc_cv_as != x
; then
14151 echo '.text' > conftest.s
14152 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }
14159 gcc_cv_as_sparc_relax
=yes
14161 echo "configure: failed program was" >&5
14164 rm -f conftest.o conftest.s
14167 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14168 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14169 if test $gcc_cv_as_sparc_relax = yes; then
14171 cat >>confdefs.h
<<\_ACEOF
14172 #define HAVE_AS_RELAX_OPTION 1
14177 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14178 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14179 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14182 gcc_cv_as_sparc_ua_pcrel
=no
14183 if test x
$gcc_cv_as != x
; then
14190 .uaword %r_disp32(foo)' > conftest.s
14191 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; }
14198 if test x
$gcc_cv_ld != x \
14199 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14200 gcc_cv_as_sparc_ua_pcrel
=yes
14204 echo "configure: failed program was" >&5
14207 rm -f conftest.o conftest.s
14210 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14211 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14212 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14214 cat >>confdefs.h
<<\_ACEOF
14215 #define HAVE_AS_SPARC_UA_PCREL 1
14219 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14220 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14221 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14225 if test x
$gcc_cv_as != x
; then
14229 .uaword %r_disp32(foo)
14230 .byte 0x32, 0x33, 0x34
14234 .skip 4' > conftest.s
14235 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }
14242 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14243 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14244 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14245 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14246 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14247 |
grep 'DISP32' > /dev
/null
2>&1; then
14250 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14255 echo "configure: failed program was" >&5
14258 rm -f conftest.o conftest.s
14261 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14262 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14263 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14265 cat >>confdefs.h
<<\_ACEOF
14266 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14271 fi # unaligned pcrel relocs
14273 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14274 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14275 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 gcc_cv_as_sparc_offsetable_lo10
=no
14279 if test x
$gcc_cv_as != x
; then
14281 or %g1, %lo(ab) + 12, %g1
14282 or %g1, %lo(ab + 12), %g1' > conftest.s
14283 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }
14290 if test x
$gcc_cv_objdump != x \
14291 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14292 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14293 gcc_cv_as_sparc_offsetable_lo10
=yes
14296 echo "configure: failed program was" >&5
14299 rm -f conftest.o conftest.s
14302 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14303 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14304 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14306 cat >>confdefs.h
<<\_ACEOF
14307 #define HAVE_AS_OFFSETABLE_LO10 1
14313 i
[34567]86-*-* | x86_64-
*-*)
14315 cygwin
* | pe | mingw32
*)
14316 # Used for DWARF 2 in PE
14317 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14318 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14319 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14320 echo $ECHO_N "(cached) $ECHO_C" >&6
14322 gcc_cv_as_ix86_pe_secrel32
=no
14323 if test $in_tree_gas = yes; then
14324 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14325 then gcc_cv_as_ix86_pe_secrel32
=yes
14327 elif test x
$gcc_cv_as != x
; then
14331 .secrel32 foo' > conftest.s
14332 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }
14339 if test x
$gcc_cv_ld != x \
14340 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14341 gcc_cv_as_ix86_pe_secrel32
=yes
14345 echo "configure: failed program was" >&5
14348 rm -f conftest.o conftest.s
14351 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14352 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14353 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14355 cat >>confdefs.h
<<\_ACEOF
14356 #define HAVE_GAS_PE_SECREL32_RELOC 1
14363 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14364 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14365 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 gcc_cv_as_ix86_filds_fists
=no
14369 if test $in_tree_gas = yes; then
14370 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14371 then gcc_cv_as_ix86_filds_fists
=yes
14373 elif test x
$gcc_cv_as != x
; then
14374 echo 'filds mem; fists mem' > conftest.s
14375 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377 (eval $ac_try) 2>&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; }
14382 gcc_cv_as_ix86_filds_fists
=yes
14384 echo "configure: failed program was" >&5
14387 rm -f conftest.o conftest.s
14390 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14391 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14392 if test $gcc_cv_as_ix86_filds_fists = yes; then
14394 cat >>confdefs.h
<<\_ACEOF
14395 #define HAVE_GAS_FILDS_FISTS 1
14400 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14401 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14402 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14405 gcc_cv_as_ix86_cmov_sun_syntax
=no
14406 if test x
$gcc_cv_as != x
; then
14407 echo 'cmovl.l %edx, %eax' > conftest.s
14408 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }
14415 gcc_cv_as_ix86_cmov_sun_syntax
=yes
14417 echo "configure: failed program was" >&5
14420 rm -f conftest.o conftest.s
14423 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14424 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14425 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14427 cat >>confdefs.h
<<\_ACEOF
14428 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14433 # This one is used unconditionally by i386.[ch]; it is to be defined
14434 # to 1 if the feature is present, 0 otherwise.
14435 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14436 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14437 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14438 echo $ECHO_N "(cached) $ECHO_C" >&6
14440 gcc_cv_as_ix86_gotoff_in_data
=no
14441 if test $in_tree_gas = yes; then
14442 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14443 then gcc_cv_as_ix86_gotoff_in_data
=yes
14445 elif test x
$gcc_cv_as != x
; then
14450 .long .L0@GOTOFF' > conftest.s
14451 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453 (eval $ac_try) 2>&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; }
14458 gcc_cv_as_ix86_gotoff_in_data
=yes
14460 echo "configure: failed program was" >&5
14463 rm -f conftest.o conftest.s
14466 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14467 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14470 cat >>confdefs.h
<<_ACEOF
14471 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14477 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14478 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14479 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
14483 if test $in_tree_gas = yes; then
14484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14485 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14487 elif test x
$gcc_cv_as != x
; then
14489 addl r15 = @ltoffx(x#), gp
14491 ld8.mov r16 = [r15], x#' > conftest.s
14492 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }
14499 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14501 echo "configure: failed program was" >&5
14504 rm -f conftest.o conftest.s
14507 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14508 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14509 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14511 cat >>confdefs.h
<<\_ACEOF
14512 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14521 *-*-aix*) conftest_s
=' .csect .text[PR]
14524 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14525 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14526 if test "${gcc_cv_as_machine_directive+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 gcc_cv_as_machine_directive
=no
14530 if test x
$gcc_cv_as != x
; then
14531 echo ' .machine ppc7400' > conftest.s
14532 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }
14539 gcc_cv_as_machine_directive
=yes
14541 echo "configure: failed program was" >&5
14544 rm -f conftest.o conftest.s
14547 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14548 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14550 if test x
$gcc_cv_as_machine_directive != xyes
; then
14551 echo "*** This target requires an assembler supporting \".machine\"" >&2
14552 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
14553 test x
$build = x
$target && exit 1
14557 *) conftest_s
=' .machine power4
14562 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14563 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14564 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 gcc_cv_as_powerpc_mfcrf
=no
14568 if test $in_tree_gas = yes; then
14569 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14570 then gcc_cv_as_powerpc_mfcrf
=yes
14572 elif test x
$gcc_cv_as != x
; then
14573 echo "$conftest_s" > conftest.s
14574 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }
14581 gcc_cv_as_powerpc_mfcrf
=yes
14583 echo "configure: failed program was" >&5
14586 rm -f conftest.o conftest.s
14589 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14590 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14591 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14593 cat >>confdefs.h
<<\_ACEOF
14594 #define HAVE_AS_MFCRF 1
14601 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14602 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14603 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 gcc_cv_as_mips_explicit_relocs
=no
14607 if test $in_tree_gas = yes; then
14608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14609 then gcc_cv_as_mips_explicit_relocs
=yes
14611 elif test x
$gcc_cv_as != x
; then
14612 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14613 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }
14620 gcc_cv_as_mips_explicit_relocs
=yes
14622 echo "configure: failed program was" >&5
14625 rm -f conftest.o conftest.s
14628 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14629 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14630 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14631 if test x
$target_cpu_default = x
14632 then target_cpu_default
=MASK_EXPLICIT_RELOCS
14633 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14637 if test x
$gas_flag = xyes \
14638 ||
test x
"$host" != x
"$build" \
14639 ||
test ! -x "$gcc_cv_as" \
14640 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
14643 echo "*** This configuration requires the GNU assembler" >&2
14648 # ??? Not all targets support dwarf2 debug_line, even within a version
14649 # of gas. Moreover, we need to emit a valid instruction to trigger any
14650 # info to the output file. So, as supported targets are added to gas 2.11,
14651 # add some instruction here to (also) show we expect this might work.
14652 # ??? Once 2.11 is released, probably need to add first known working
14653 # version to the per-target configury.
14655 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
14656 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
14657 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
14660 ia64
*-*-* | s390
*-*-*)
14667 if test x
"$insn" != x
; then
14669 .file 1 \"conftest.s\"
14672 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14673 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14674 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 gcc_cv_as_dwarf2_debug_line
=no
14678 if test $in_tree_gas = yes; then
14679 if test $in_tree_gas_is_elf = yes \
14680 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14681 then gcc_cv_as_dwarf2_debug_line
=yes
14683 elif test x
$gcc_cv_as != x
; then
14684 echo "$conftest_s" > conftest.s
14685 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687 (eval $ac_try) 2>&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; }
14692 if test x
$gcc_cv_objdump != x \
14693 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
14694 |
grep debug_line
> /dev
/null
2>&1; then
14695 gcc_cv_as_dwarf2_debug_line
=yes
14698 echo "configure: failed program was" >&5
14701 rm -f conftest.o conftest.s
14704 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14705 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14708 # The .debug_line file table must be in the exact order that
14709 # we specified the files, since these indices are also used
14710 # by DW_AT_decl_file. Approximate this test by testing if
14711 # the assembler bitches if the same index is assigned twice.
14712 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14713 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14714 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 gcc_cv_as_dwarf2_file_buggy
=no
14718 if test x
$gcc_cv_as != x
; then
14719 echo ' .file 1 "foo.s"
14720 .file 1 "bar.s"' > conftest.s
14721 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }
14728 gcc_cv_as_dwarf2_file_buggy
=yes
14730 echo "configure: failed program was" >&5
14733 rm -f conftest.o conftest.s
14736 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14737 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14740 if test $gcc_cv_as_dwarf2_debug_line = yes \
14741 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
14743 cat >>confdefs.h
<<\_ACEOF
14744 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14749 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14750 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14751 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 gcc_cv_as_gdwarf2_flag
=no
14755 if test $in_tree_gas = yes; then
14756 if test $in_tree_gas_is_elf = yes \
14757 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14758 then gcc_cv_as_gdwarf2_flag
=yes
14760 elif test x
$gcc_cv_as != x
; then
14761 echo "$insn" > conftest.s
14762 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764 (eval $ac_try) 2>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; }
14769 gcc_cv_as_gdwarf2_flag
=yes
14771 echo "configure: failed program was" >&5
14774 rm -f conftest.o conftest.s
14777 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14778 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14779 if test $gcc_cv_as_gdwarf2_flag = yes; then
14781 cat >>confdefs.h
<<\_ACEOF
14782 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14787 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14788 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14789 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14792 gcc_cv_as_gstabs_flag
=no
14793 if test $in_tree_gas = yes; then
14794 if test $in_tree_gas_is_elf = yes \
14795 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14796 then gcc_cv_as_gstabs_flag
=yes
14798 elif test x
$gcc_cv_as != x
; then
14799 echo "$insn" > conftest.s
14800 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }
14807 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14808 # and warns about it, but still exits successfully. So check for
14810 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; }
14817 else gcc_cv_as_gstabs_flag
=yes
14820 echo "configure: failed program was" >&5
14823 rm -f conftest.o conftest.s
14826 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14827 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14828 if test $gcc_cv_as_gstabs_flag = yes; then
14830 cat >>confdefs.h
<<\_ACEOF
14831 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14837 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14838 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14839 gcc_cv_ld_ro_rw_mix
=unknown
14840 if test $in_tree_ld = yes ; then
14841 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 \
14842 && test $in_tree_ld_is_elf = yes; then
14843 gcc_cv_ld_ro_rw_mix
=read-write
14845 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
14846 echo '.section myfoosect, "a"' > conftest1.s
14847 echo '.section myfoosect, "aw"' > conftest2.s
14848 echo '.byte 1' >> conftest2.s
14849 echo '.section myfoosect, "a"' > conftest3.s
14850 echo '.byte 0' >> conftest3.s
14851 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14852 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14853 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
14854 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14855 conftest2.o conftest3.o
> /dev
/null
2>&1; then
14856 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
14857 | sed -e '/myfoosect/!d' -e N`
14858 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
14859 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
14860 gcc_cv_ld_ro_rw_mix
=read-only
14862 gcc_cv_ld_ro_rw_mix
=read-write
14866 rm -f conftest.
* conftest
[123].
*
14868 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
14870 cat >>confdefs.h
<<\_ACEOF
14871 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14875 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14876 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14878 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14879 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14880 gcc_cv_ld_eh_frame_hdr
=no
14881 if test $in_tree_ld = yes ; then
14882 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 \
14883 && test $in_tree_ld_is_elf = yes; then
14884 gcc_cv_ld_eh_frame_hdr
=yes
14886 elif test x
$gcc_cv_ld != x
; then
14887 # Check if linker supports --eh-frame-hdr option
14888 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
14889 gcc_cv_ld_eh_frame_hdr
=yes
14892 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
14894 cat >>confdefs.h
<<\_ACEOF
14895 #define HAVE_LD_EH_FRAME_HDR 1
14899 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14900 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14902 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14903 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14905 if test $in_tree_ld = yes ; then
14906 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 \
14907 && test $in_tree_ld_is_elf = yes; then
14910 elif test x
$gcc_cv_ld != x
; then
14911 # Check if linker supports -pie option
14912 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
14916 if test x
"$gcc_cv_ld_pie" = xyes
; then
14918 cat >>confdefs.h
<<\_ACEOF
14919 #define HAVE_LD_PIE 1
14923 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14924 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14930 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14931 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14932 if test "${gcc_cv_ld_as_needed+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 gcc_cv_ld_as_needed
=no
14936 if test $in_tree_ld = yes ; then
14937 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 \
14938 && test $in_tree_ld_is_elf = yes; then
14939 gcc_cv_ld_as_needed
=yes
14941 elif test x
$gcc_cv_ld != x
; then
14942 # Check if linker supports --as-needed and --no-as-needed options
14943 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
14944 gcc_cv_ld_as_needed
=yes
14949 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14950 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14951 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
14953 cat >>confdefs.h
<<\_ACEOF
14954 #define HAVE_LD_AS_NEEDED 1
14960 powerpc64
*-*-linux*)
14961 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14962 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14963 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 gcc_cv_ld_no_dot_syms
=no
14967 if test $in_tree_ld = yes ; then
14968 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
14969 gcc_cv_ld_no_dot_syms
=yes
14971 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
14972 cat > conftest1.s
<<EOF
14976 cat > conftest2.s
<<EOF
14977 .section ".opd","aw"
14980 .type foo,@function
14982 .quad .LEfoo,.TOC.@tocbase,0
14988 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14989 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14990 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
14991 gcc_cv_ld_no_dot_syms
=yes
14993 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
14997 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
14998 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
14999 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15001 cat >>confdefs.h
<<\_ACEOF
15002 #define HAVE_LD_NO_DOT_SYMS 1
15009 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15010 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15012 cat >>confdefs.h
<<_ACEOF
15013 #define PREFIX_INCLUDE_DIR "$prefix/include"
15018 # Find out what GC implementation we want, or may, use.
15020 # Check whether --with-gc or --without-gc was given.
15021 if test "${with_gc+set}" = set; then
15030 cat >>confdefs.h
<<\_ACEOF
15036 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15037 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15038 { (exit 1); exit 1; }; }
15045 echo "Using $GGC for garbage collection."
15047 # Use the system's zlib library.
15049 zlibinc
="-I\$(srcdir)/../zlib"
15051 # Check whether --with-system-zlib or --without-system-zlib was given.
15052 if test "${with_system_zlib+set}" = set; then
15053 withval
="$with_system_zlib"
15062 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15063 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15064 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15065 if test "${enable_maintainer_mode+set}" = set; then
15066 enableval
="$enable_maintainer_mode"
15067 maintainer_mode
=$enableval
15072 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15073 echo "${ECHO_T}$maintainer_mode" >&6
15075 if test "$maintainer_mode" = "yes"; then
15085 # Make empty files to contain the specs and options for each language.
15086 # Then add #include lines to for a compiler that has specs and/or options.
15091 for subdir
in .
$subdirs
15093 if test -f $srcdir/$subdir/lang.opt
; then
15094 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
15096 if test -f $srcdir/$subdir/lang-specs.h
; then
15097 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15099 if test -f $srcdir/$subdir/$subdir-tree.def
; then
15100 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15104 # These (without "all_") are set in each config-lang.in.
15105 # `language' must be a single word so is spelled singularly.
15107 all_boot_languages
=
15110 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15111 # List of language makefile fragments.
15112 all_lang_makefrags
=
15113 # List of language subdirectory makefiles. Deprecated.
15114 all_lang_makefiles
=
15115 # Files for gengtype
15116 all_gtfiles
="$target_gtfiles"
15117 # Files for gengtype with language
15118 all_gtfiles_files_langs
=
15119 all_gtfiles_files_files
=
15121 # Add the language fragments.
15122 # Languages are added via two mechanisms. Some information must be
15123 # recorded in makefile variables, these are defined in config-lang.in.
15124 # We accumulate them and plug them into the main Makefile.
15125 # The other mechanism is a set of hooks for each of the main targets
15126 # like `clean', `install', etc.
15128 language_hooks
="Make-hooks"
15138 .
${srcdir}/$s/config-lang.
in
15139 if test "x$language" = x
15141 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15144 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15145 if test -f ${srcdir}/$s/Makefile.
in
15146 then all_lang_makefiles
="$s/Makefile"
15148 all_languages
="$all_languages $language"
15149 if test "x$boot_language" = xyes
15151 all_boot_languages
="$all_boot_languages $language"
15153 all_compilers
="$all_compilers $compilers"
15154 all_stagestuff
="$all_stagestuff $stagestuff"
15155 all_outputs
="$all_outputs $outputs"
15156 all_gtfiles
="$all_gtfiles $gtfiles"
15159 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15160 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15164 # Pick up gtfiles for c
15167 .
${srcdir}/c-config-lang.
in
15168 all_gtfiles
="$all_gtfiles $gtfiles"
15171 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15172 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15176 for language
in $all_languages
15178 check_languages
="$check_languages check-$language"
15181 # We link each language in with a set of hooks, reached indirectly via
15186 target_list
="all.build all.cross start.encap rest.encap tags \
15187 install-normal install-common install-man \
15188 uninstall info man srcextra srcman srcinfo \
15189 mostlyclean clean distclean maintainer-clean \
15190 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15191 for t
in $target_list
15194 for lang
in $all_languages
15198 echo "lang.$t: $x" >> Make-hooks
15207 echo "dir ." > .gdbinit
15208 echo "dir ${srcdir}" >> .gdbinit
15209 if test x
$gdb_needs_out_file_path = xyes
15211 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15213 if test "x$subdirs" != x
; then
15216 echo "dir ${srcdir}/$s" >> .gdbinit
15219 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15221 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15222 # absolute path for gcc_tooldir based on inserting the number of up-directory
15223 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15224 # $(libsubdir)/@(unlibsubdir) based path.
15225 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15226 # make and thus we'd get different behavior depending on where we built the
15228 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
15229 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15231 # An explanation of the sed strings:
15232 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15233 # -e 's|/$||' match a trailing forward slash and eliminates it
15234 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15235 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15237 # (*) Note this pattern overwrites the first character of the string
15238 # with a forward slash if one is not already present. This is not a
15239 # problem because the exact names of the sub-directories concerned is
15240 # unimportant, just the number of them matters.
15242 # The practical upshot of these patterns is like this:
15244 # prefix exec_prefix result
15245 # ------ ----------- ------
15246 # /foo /foo/bar ../
15247 # /foo/ /foo/bar ../
15248 # /foo /foo/bar/ ../
15249 # /foo/ /foo/bar/ ../
15250 # /foo /foo/bar/ugg ../../
15253 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15258 # Find a directory in which to install a shared libgcc.
15260 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15261 if test "${enable_version_specific_runtime_libs+set}" = set; then
15262 enableval
="$enable_version_specific_runtime_libs"
15267 # Check whether --with-slibdir or --without-slibdir was given.
15268 if test "${with_slibdir+set}" = set; then
15269 withval
="$with_slibdir"
15270 slibdir
="$with_slibdir"
15272 if test "${enable_version_specific_runtime_libs+set}" = set; then
15273 slibdir
='$(libsubdir)'
15274 elif test "$host" != "$target"; then
15275 slibdir
='$(build_tooldir)/lib'
15277 slibdir
='$(libdir)'
15282 objdir
=`${PWDCMD-pwd}`
15285 # Substitute configuration variables
15350 if test x
"$SET_GCC_LIB_PATH_CMD" != x
; then
15351 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15353 # eval "set_gcc_lib_path=XXX=path; export XXX;"
15355 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15356 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15357 set_gcc_lib_path
="export $set_gcc_lib_path"
15365 if test x
${build} = x
${host} ; then
15366 if test x
${host} = x
${target} ; then
15367 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15369 echo "Links are now set up to build a cross-compiler" 1>&2
15370 echo " from ${host} to ${target}." 1>&2
15373 if test x
${host} = x
${target} ; then
15374 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15375 echo " for ${target}." 1>&2
15377 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15378 echo " from ${host} to ${target}." 1>&2
15385 # Configure the subdirectories
15386 # AC_CONFIG_SUBDIRS($subdirs)
15388 # Create the Makefile
15389 # and configure language subdirectories
15390 ac_config_files
="$ac_config_files $all_outputs"
15393 ac_config_commands
="$ac_config_commands default"
15395 cat >confcache
<<\_ACEOF
15396 # This file is a shell script that caches the results of configure
15397 # tests run on this system so they can be shared between configure
15398 # scripts and configure runs, see configure's option --config-cache.
15399 # It is not useful on other systems. If it contains results you don't
15400 # want to keep, you may remove or edit it.
15402 # config.status only pays attention to the cache file if you give it
15403 # the --recheck option to rerun configure.
15405 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15406 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15407 # following values.
15411 # The following way of writing the cache mishandles newlines in values,
15412 # but we know of no workaround that is simple, portable, and efficient.
15413 # So, don't put newlines in cache variables' values.
15414 # Ultrix sh set writes to stderr and can't be redirected directly,
15415 # and sets the high bit in the cache file unless we assign to the vars.
15418 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15420 # `set' does not quote correctly, so add quotes (double-quote
15421 # substitution turns \\\\ into \\, and sed turns \\ into \).
15424 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15427 # `set' quotes correctly as required by POSIX, so do not add quotes.
15429 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15436 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15438 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15440 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15441 if test -w $cache_file; then
15442 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15443 cat confcache
>$cache_file
15445 echo "not updating unwritable cache $cache_file"
15450 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15451 # Let make expand exec_prefix.
15452 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15454 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15455 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15456 # trailing colons and then remove the whole line if VPATH becomes empty
15457 # (actually we leave an empty line to preserve line numbers).
15458 if test "x$srcdir" = x.
; then
15459 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15460 s/:*\$(srcdir):*/:/;
15461 s/:*\${srcdir}:*/:/;
15463 s/^\([^=]*=[ ]*\):*/\1/;
15469 DEFS
=-DHAVE_CONFIG_H
15473 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15474 # 1. Remove the extension, and $U if already installed.
15475 ac_i
=`echo "$ac_i" |
15476 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15478 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15479 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15481 LIBOBJS
=$ac_libobjs
15483 LTLIBOBJS
=$ac_ltlibobjs
15487 : ${CONFIG_STATUS=./config.status}
15488 ac_clean_files_save
=$ac_clean_files
15489 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15490 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15491 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15492 cat >$CONFIG_STATUS <<_ACEOF
15494 # Generated by $as_me.
15495 # Run this file to recreate the current configuration.
15496 # Compiler output produced by configure, useful for debugging
15497 # configure, is in config.log if it exists.
15500 ac_cs_recheck=false
15502 SHELL=\${CONFIG_SHELL-$SHELL}
15505 cat >>$CONFIG_STATUS <<\_ACEOF
15506 ## --------------------- ##
15507 ## M4sh Initialization. ##
15508 ## --------------------- ##
15510 # Be Bourne compatible
15511 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15514 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15515 # is contrary to our usage. Disable this feature.
15516 alias -g '${1+"$@"}'='"$@"'
15517 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
15520 DUALCASE
=1; export DUALCASE
# for MKS sh
15522 # Support unset when possible.
15523 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15530 # Work around bugs in pre-3.0 UWIN ksh.
15531 $as_unset ENV MAIL MAILPATH
15538 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15539 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15540 LC_TELEPHONE LC_TIME
15542 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15543 eval $as_var=C
; export $as_var
15549 # Required to use basename.
15550 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15556 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15557 as_basename
=basename
15563 # Name of the executable.
15564 as_me
=`$as_basename "$0" ||
15565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15566 X"$0" : 'X\(//\)$' \| \
15567 X"$0" : 'X\(/\)$' \| \
15568 . : '\(.\)' 2>/dev/null ||
15570 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15571 /^X\/\(\/\/\)$/{ s//\1/; q; }
15572 /^X\/\(\/\).*/{ s//\1/; q; }
15576 # PATH needs CR, and LINENO needs CR and PATH.
15577 # Avoid depending upon Character Ranges.
15578 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15579 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15580 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15581 as_cr_digits
='0123456789'
15582 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15584 # The user is always right.
15585 if test "${PATH_SEPARATOR+set}" != set; then
15586 echo "#! /bin/sh" >conf$$.sh
15587 echo "exit 0" >>conf$$.sh
15589 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15598 as_lineno_1
=$LINENO
15599 as_lineno_2
=$LINENO
15600 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15601 test "x$as_lineno_1" != "x$as_lineno_2" &&
15602 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
15603 # Find who we are. Look in the path if we contain no path at all
15606 *[\\/]* ) as_myself
=$0 ;;
15607 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15608 for as_dir
in $PATH
15611 test -z "$as_dir" && as_dir
=.
15612 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15617 # We did not find ourselves, most probably we were run as `sh COMMAND'
15618 # in which case we are not to be found in the path.
15619 if test "x$as_myself" = x
; then
15622 if test ! -f "$as_myself"; then
15623 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15624 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15625 { (exit 1); exit 1; }; }
15627 case $CONFIG_SHELL in
15629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15630 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
15633 test -z "$as_dir" && as_dir
=.
15634 for as_base
in sh bash ksh sh5
; do
15637 if ("$as_dir/$as_base" -c '
15638 as_lineno_1=$LINENO
15639 as_lineno_2=$LINENO
15640 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15641 test "x$as_lineno_1" != "x$as_lineno_2" &&
15642 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
15643 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
15644 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
15645 CONFIG_SHELL
=$as_dir/$as_base
15646 export CONFIG_SHELL
15647 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15655 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15656 # uniformly replaced by the line number. The first 'sed' inserts a
15657 # line-number line before each line; the second 'sed' does the real
15658 # work. The second script uses 'N' to pair each line-number line
15659 # with the numbered line, and appends trailing '-' during
15660 # substitution so that $LINENO is not a special case at line end.
15661 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15662 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15663 sed '=' <$as_myself |
15668 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15671 s,^['$as_cr_digits']*\n,,
15672 ' >$as_me.lineno
&&
15673 chmod +x
$as_me.lineno ||
15674 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15675 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15676 { (exit 1); exit 1; }; }
15678 # Don't try to exec as it changes $[0], causing all sort of problems
15679 # (the dirname of $[0] is not the place where we might find the
15680 # original and so on. Autoconf is especially sensible to this).
15682 # Exit status is that of the last command.
15687 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15688 *c
*,-n*) ECHO_N
= ECHO_C
='
15690 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15691 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15694 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15700 rm -f conf$$ conf$$.exe conf$$.
file
15702 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15703 # We could just check for DJGPP; but this test a) works b) is more generic
15704 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15705 if test -f conf$$.exe
; then
15706 # Don't use ln at all; we don't have any links
15711 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15716 rm -f conf$$ conf$$.exe conf$$.
file
15718 if mkdir
-p .
2>/dev
/null
; then
15721 test -d .
/-p && rmdir .
/-p
15725 as_executable_p
="test -f"
15727 # Sed expression to map a string onto a valid CPP name.
15728 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15730 # Sed expression to map a string onto a valid variable name.
15731 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15735 # We need space, tab and new line, in precisely that order.
15745 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15746 # report actual input values of CONFIG_FILES etc. instead of their
15747 # values after options handling. Logging --version etc. is OK.
15751 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15752 ## Running $as_me. ##
15757 This file was extended by $as_me, which was
15758 generated by GNU Autoconf 2.59. Invocation command line was
15760 CONFIG_FILES = $CONFIG_FILES
15761 CONFIG_HEADERS = $CONFIG_HEADERS
15762 CONFIG_LINKS = $CONFIG_LINKS
15763 CONFIG_COMMANDS = $CONFIG_COMMANDS
15767 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15771 # Files that config.status was made for.
15772 if test -n "$ac_config_files"; then
15773 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15776 if test -n "$ac_config_headers"; then
15777 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15780 if test -n "$ac_config_links"; then
15781 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15784 if test -n "$ac_config_commands"; then
15785 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15788 cat >>$CONFIG_STATUS <<\_ACEOF
15791 \`$as_me' instantiates files from templates according to the
15792 current configuration.
15794 Usage: $0 [OPTIONS] [FILE]...
15796 -h, --help print this help, then exit
15797 -V, --version print version number, then exit
15798 -q, --quiet do not print progress messages
15799 -d, --debug don't remove temporary files
15800 --recheck update $as_me by reconfiguring in the same conditions
15801 --file=FILE[:TEMPLATE]
15802 instantiate the configuration file FILE
15803 --header=FILE[:TEMPLATE]
15804 instantiate the configuration header FILE
15806 Configuration files:
15809 Configuration headers:
15812 Configuration commands:
15815 Report bugs to <bug-autoconf@gnu.org>."
15818 cat >>$CONFIG_STATUS <<_ACEOF
15821 configured by $0, generated by GNU Autoconf 2.59,
15822 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15824 Copyright (C) 2003 Free Software Foundation, Inc.
15825 This config.status script is free software; the Free Software Foundation
15826 gives unlimited permission to copy, distribute and modify it."
15830 cat >>$CONFIG_STATUS <<\_ACEOF
15831 # If no file are specified by the user, then we need to provide default
15832 # value. By we need to know if files were specified by the user.
15838 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
15839 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
15847 *) # This is not an option, so the user has probably given explicit
15850 ac_need_defaults
=false
;;
15854 # Handling of the options.
15856 cat >>$CONFIG_STATUS <<\_ACEOF
15857 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15859 --version |
--vers* |
-V )
15860 echo "$ac_cs_version"; exit 0 ;;
15862 # Conflict between --help and --header
15863 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15864 Try \`$0 --help' for more information." >&5
15865 echo "$as_me: error: ambiguous option: $1
15866 Try \`$0 --help' for more information." >&2;}
15867 { (exit 1); exit 1; }; };;
15868 --help |
--hel |
-h )
15869 echo "$ac_cs_usage"; exit 0 ;;
15870 --debug |
--d* |
-d )
15872 --file |
--fil |
--fi |
--f )
15874 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
15875 ac_need_defaults
=false
;;
15876 --header |
--heade |
--head |
--hea )
15878 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
15879 ac_need_defaults
=false
;;
15880 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15881 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15884 # This is an error.
15885 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15886 Try \`$0 --help' for more information." >&5
15887 echo "$as_me: error: unrecognized option: $1
15888 Try \`$0 --help' for more information." >&2;}
15889 { (exit 1); exit 1; }; } ;;
15891 *) ac_config_targets
="$ac_config_targets $1" ;;
15897 ac_configure_extra_args
=
15899 if $ac_cs_silent; then
15901 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15905 cat >>$CONFIG_STATUS <<_ACEOF
15906 if \$ac_cs_recheck; then
15907 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15908 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15913 cat >>$CONFIG_STATUS <<_ACEOF
15915 # INIT-COMMANDS section.
15924 cat >>$CONFIG_STATUS <<\_ACEOF
15925 for ac_config_target
in $ac_config_targets
15927 case "$ac_config_target" in
15928 # Handling of arguments.
15929 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
15930 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15931 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
15932 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15933 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15934 { (exit 1); exit 1; }; };;
15938 # If the user did not use the arguments to specify the items to instantiate,
15939 # then the envvar interface is used. Set only those that are not.
15940 # We use the long form for the default assignment because of an extremely
15941 # bizarre bug on SunOS 4.1.3.
15942 if $ac_need_defaults; then
15943 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15944 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15945 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15948 # Have a temporary directory for convenience. Make it in the build tree
15949 # simply because there is no reason to put it here, and in addition,
15950 # creating and moving files from /tmp can sometimes cause problems.
15951 # Create a temporary directory, and hook for its removal unless debugging.
15954 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15955 trap '{ (exit 1); exit 1; }' 1 2 13 15
15958 # Create a (secure) tmp directory for tmp files.
15961 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15962 test -n "$tmp" && test -d "$tmp"
15965 tmp
=.
/confstat$$
-$RANDOM
15966 (umask 077 && mkdir
$tmp)
15969 echo "$me: cannot create a temporary directory in ." >&2
15970 { (exit 1); exit 1; }
15975 cat >>$CONFIG_STATUS <<_ACEOF
15978 # CONFIG_FILES section.
15981 # No need to generate the scripts if there are no CONFIG_FILES.
15982 # This happens for instance when ./config.status config.h
15983 if test -n "\$CONFIG_FILES"; then
15984 # Protect against being on the right side of a sed subst in config.status.
15985 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15986 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15987 s,@SHELL@,$SHELL,;t t
15988 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15989 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15990 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15991 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15992 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15993 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15994 s,@exec_prefix@,$exec_prefix,;t t
15995 s,@prefix@,$prefix,;t t
15996 s,@program_transform_name@,$program_transform_name,;t t
15997 s,@bindir@,$bindir,;t t
15998 s,@sbindir@,$sbindir,;t t
15999 s,@libexecdir@,$libexecdir,;t t
16000 s,@datadir@,$datadir,;t t
16001 s,@sysconfdir@,$sysconfdir,;t t
16002 s,@sharedstatedir@,$sharedstatedir,;t t
16003 s,@localstatedir@,$localstatedir,;t t
16004 s,@libdir@,$libdir,;t t
16005 s,@includedir@,$includedir,;t t
16006 s,@oldincludedir@,$oldincludedir,;t t
16007 s,@infodir@,$infodir,;t t
16008 s,@mandir@,$mandir,;t t
16009 s,@build_alias@,$build_alias,;t t
16010 s,@host_alias@,$host_alias,;t t
16011 s,@target_alias@,$target_alias,;t t
16012 s,@DEFS@,$DEFS,;t t
16013 s,@ECHO_C@,$ECHO_C,;t t
16014 s,@ECHO_N@,$ECHO_N,;t t
16015 s,@ECHO_T@,$ECHO_T,;t t
16016 s,@LIBS@,$LIBS,;t t
16017 s,@build@,$build,;t t
16018 s,@build_cpu@,$build_cpu,;t t
16019 s,@build_vendor@,$build_vendor,;t t
16020 s,@build_os@,$build_os,;t t
16021 s,@host@,$host,;t t
16022 s,@host_cpu@,$host_cpu,;t t
16023 s,@host_vendor@,$host_vendor,;t t
16024 s,@host_os@,$host_os,;t t
16025 s,@target@,$target,;t t
16026 s,@target_cpu@,$target_cpu,;t t
16027 s,@target_vendor@,$target_vendor,;t t
16028 s,@target_os@,$target_os,;t t
16029 s,@target_noncanonical@,$target_noncanonical,;t t
16030 s,@build_subdir@,$build_subdir,;t t
16031 s,@host_subdir@,$host_subdir,;t t
16032 s,@target_subdir@,$target_subdir,;t t
16033 s,@GENINSRC@,$GENINSRC,;t t
16035 s,@CFLAGS@,$CFLAGS,;t t
16036 s,@LDFLAGS@,$LDFLAGS,;t t
16037 s,@CPPFLAGS@,$CPPFLAGS,;t t
16038 s,@ac_ct_CC@,$ac_ct_CC,;t t
16039 s,@EXEEXT@,$EXEEXT,;t t
16040 s,@OBJEXT@,$OBJEXT,;t t
16041 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16042 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16044 s,@EGREP@,$EGREP,;t t
16045 s,@strict1_warn@,$strict1_warn,;t t
16046 s,@warn_cflags@,$warn_cflags,;t t
16047 s,@WERROR@,$WERROR,;t t
16048 s,@nocommon_flag@,$nocommon_flag,;t t
16049 s,@TREEBROWSER@,$TREEBROWSER,;t t
16050 s,@valgrind_path@,$valgrind_path,;t t
16051 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16052 s,@valgrind_command@,$valgrind_command,;t t
16053 s,@coverage_flags@,$coverage_flags,;t t
16054 s,@enable_multilib@,$enable_multilib,;t t
16055 s,@enable_shared@,$enable_shared,;t t
16056 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16057 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16058 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16059 s,@onestep@,$onestep,;t t
16060 s,@SET_MAKE@,$SET_MAKE,;t t
16062 s,@LN_S@,$LN_S,;t t
16064 s,@RANLIB@,$RANLIB,;t t
16065 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16066 s,@ranlib_flags@,$ranlib_flags,;t t
16067 s,@INSTALL@,$INSTALL,;t t
16068 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16069 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16070 s,@make_compare_target@,$make_compare_target,;t t
16071 s,@have_mktemp_command@,$have_mktemp_command,;t t
16072 s,@MAKEINFO@,$MAKEINFO,;t t
16073 s,@BUILD_INFO@,$BUILD_INFO,;t t
16074 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16075 s,@FLEX@,$FLEX,;t t
16076 s,@BISON@,$BISON,;t t
16079 s,@stage1_cflags@,$stage1_cflags,;t t
16080 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16081 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16082 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16083 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16084 s,@LIBICONV@,$LIBICONV,;t t
16085 s,@LTLIBICONV@,$LTLIBICONV,;t t
16086 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16087 s,@manext@,$manext,;t t
16088 s,@objext@,$objext,;t t
16089 s,@gthread_flags@,$gthread_flags,;t t
16090 s,@extra_modes_file@,$extra_modes_file,;t t
16091 s,@extra_opt_files@,$extra_opt_files,;t t
16092 s,@USE_NLS@,$USE_NLS,;t t
16093 s,@LIBINTL@,$LIBINTL,;t t
16094 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16095 s,@INCINTL@,$INCINTL,;t t
16096 s,@XGETTEXT@,$XGETTEXT,;t t
16097 s,@GMSGFMT@,$GMSGFMT,;t t
16098 s,@POSUB@,$POSUB,;t t
16099 s,@CATALOGS@,$CATALOGS,;t t
16100 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16101 s,@CROSS@,$CROSS,;t t
16103 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16104 s,@inhibit_libc@,$inhibit_libc,;t t
16105 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16106 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16107 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16108 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16109 s,@collect2@,$collect2,;t t
16110 s,@libgcc_visibility@,$libgcc_visibility,;t t
16112 s,@zlibdir@,$zlibdir,;t t
16113 s,@zlibinc@,$zlibinc,;t t
16114 s,@MAINT@,$MAINT,;t t
16115 s,@gcc_tooldir@,$gcc_tooldir,;t t
16116 s,@dollar@,$dollar,;t t
16117 s,@slibdir@,$slibdir,;t t
16118 s,@objdir@,$objdir,;t t
16119 s,@subdirs@,$subdirs,;t t
16120 s,@srcdir@,$srcdir,;t t
16121 s,@all_boot_languages@,$all_boot_languages,;t t
16122 s,@all_compilers@,$all_compilers,;t t
16123 s,@all_gtfiles@,$all_gtfiles,;t t
16124 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16125 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16126 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16127 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16128 s,@all_languages@,$all_languages,;t t
16129 s,@all_stagestuff@,$all_stagestuff,;t t
16130 s,@build_exeext@,$build_exeext,;t t
16131 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16132 s,@build_xm_file_list@,$build_xm_file_list,;t t
16133 s,@build_xm_include_list@,$build_xm_include_list,;t t
16134 s,@build_xm_defines@,$build_xm_defines,;t t
16135 s,@check_languages@,$check_languages,;t t
16136 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16137 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16138 s,@cpp_install_dir@,$cpp_install_dir,;t t
16139 s,@xmake_file@,$xmake_file,;t t
16140 s,@tmake_file@,$tmake_file,;t t
16141 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16142 s,@extra_headers_list@,$extra_headers_list,;t t
16143 s,@extra_objs@,$extra_objs,;t t
16144 s,@extra_parts@,$extra_parts,;t t
16145 s,@extra_passes@,$extra_passes,;t t
16146 s,@extra_programs@,$extra_programs,;t t
16147 s,@float_h_file@,$float_h_file,;t t
16148 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16149 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16150 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16151 s,@host_exeext@,$host_exeext,;t t
16152 s,@host_xm_file_list@,$host_xm_file_list,;t t
16153 s,@host_xm_include_list@,$host_xm_include_list,;t t
16154 s,@host_xm_defines@,$host_xm_defines,;t t
16155 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16156 s,@install@,$install,;t t
16157 s,@lang_opt_files@,$lang_opt_files,;t t
16158 s,@lang_specs_files@,$lang_specs_files,;t t
16159 s,@lang_tree_files@,$lang_tree_files,;t t
16160 s,@local_prefix@,$local_prefix,;t t
16161 s,@md_file@,$md_file,;t t
16162 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16163 s,@out_file@,$out_file,;t t
16164 s,@out_object_file@,$out_object_file,;t t
16165 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16166 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16167 s,@thread_file@,$thread_file,;t t
16168 s,@tm_file_list@,$tm_file_list,;t t
16169 s,@tm_include_list@,$tm_include_list,;t t
16170 s,@tm_defines@,$tm_defines,;t t
16171 s,@tm_p_file_list@,$tm_p_file_list,;t t
16172 s,@tm_p_include_list@,$tm_p_include_list,;t t
16173 s,@xm_file_list@,$xm_file_list,;t t
16174 s,@xm_include_list@,$xm_include_list,;t t
16175 s,@xm_defines@,$xm_defines,;t t
16176 s,@c_target_objs@,$c_target_objs,;t t
16177 s,@cxx_target_objs@,$cxx_target_objs,;t t
16178 s,@target_cpu_default@,$target_cpu_default,;t t
16179 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
16180 s,@GMPLIBS@,$GMPLIBS,;t t
16181 s,@GMPINC@,$GMPINC,;t t
16182 s,@LIBOBJS@,$LIBOBJS,;t t
16183 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16184 /@language_hooks@/r $language_hooks
16185 s,@language_hooks@,,;t t
16190 cat >>$CONFIG_STATUS <<\_ACEOF
16191 # Split the substitutions into bite-sized pieces for seds with
16192 # small command number limits, like on Digital OSF/1 and HP-UX.
16193 ac_max_sed_lines
=48
16194 ac_sed_frag
=1 # Number of current file.
16195 ac_beg
=1 # First line for current file.
16196 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16199 while $ac_more_lines; do
16200 if test $ac_beg -gt 1; then
16201 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16203 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16205 if test ! -s $tmp/subs.frag
; then
16206 ac_more_lines
=false
16208 # The purpose of the label and of the branching condition is to
16209 # speed up the sed processing (if there are no `@' at all, there
16210 # is no need to browse any of the substitutions).
16211 # These are the two extra sed commands mentioned above.
16213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16214 if test -z "$ac_sed_cmds"; then
16215 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16217 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16219 ac_sed_frag
=`expr $ac_sed_frag + 1`
16221 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16224 if test -z "$ac_sed_cmds"; then
16227 fi # test -n "$CONFIG_FILES"
16230 cat >>$CONFIG_STATUS <<\_ACEOF
16231 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16232 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16234 - |
*:- |
*:-:* ) # input from stdin
16236 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16237 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16238 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16239 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16240 * ) ac_file_in
=$ac_file.
in ;;
16243 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16244 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16246 X"$ac_file" : 'X\(//\)[^/]' \| \
16247 X"$ac_file" : 'X\(//\)$' \| \
16248 X"$ac_file" : 'X\(/\)' \| \
16249 . : '\(.\)' 2>/dev/null ||
16251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16252 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16253 /^X\(\/\/\)$/{ s//\1/; q; }
16254 /^X\(\/\).*/{ s//\1/; q; }
16256 { if $as_mkdir_p; then
16261 while test ! -d "$as_dir"; do
16262 as_dirs
="$as_dir $as_dirs"
16263 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16265 X"$as_dir" : 'X\(//\)[^/]' \| \
16266 X"$as_dir" : 'X\(//\)$' \| \
16267 X"$as_dir" : 'X\(/\)' \| \
16268 . : '\(.\)' 2>/dev/null ||
16270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16272 /^X\(\/\/\)$/{ s//\1/; q; }
16273 /^X\(\/\).*/{ s//\1/; q; }
16276 test ! -n "$as_dirs" || mkdir
$as_dirs
16277 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16278 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16279 { (exit 1); exit 1; }; }; }
16283 if test "$ac_dir" != .
; then
16284 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16285 # A "../" for each directory in $ac_dir_suffix.
16286 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16288 ac_dir_suffix
= ac_top_builddir
=
16292 .
) # No --srcdir option. We are building in place.
16294 if test -z "$ac_top_builddir"; then
16297 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16299 [\\/]* | ?
:[\\/]* ) # Absolute path.
16300 ac_srcdir
=$srcdir$ac_dir_suffix;
16301 ac_top_srcdir
=$srcdir ;;
16302 *) # Relative path.
16303 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16304 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16307 # Do not use `cd foo && pwd` to compute absolute paths, because
16308 # the directories may not exist.
16310 .
) ac_abs_builddir
="$ac_dir";;
16313 .
) ac_abs_builddir
=`pwd`;;
16314 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16315 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16318 case $ac_abs_builddir in
16319 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16321 case ${ac_top_builddir}.
in
16322 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16323 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16324 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16327 case $ac_abs_builddir in
16328 .
) ac_abs_srcdir
=$ac_srcdir;;
16331 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16332 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16333 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16336 case $ac_abs_builddir in
16337 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16339 case $ac_top_srcdir in
16340 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16341 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16342 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16348 if test x
"$ac_file" != x-
; then
16349 { echo "$as_me:$LINENO: creating $ac_file" >&5
16350 echo "$as_me: creating $ac_file" >&6;}
16353 # Let's still pretend it is `configure' which instantiates (i.e., don't
16354 # use $as_me), people would be surprised to read:
16355 # /* config.h. Generated by config.status. */
16356 if test x
"$ac_file" = x-
; then
16359 configure_input
="$ac_file. "
16361 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16362 sed 's,.*/,,'` by configure."
16364 # First look for the input files in the build tree, otherwise in the
16366 ac_file_inputs
=`IFS=:
16367 for f in $ac_file_in; do
16369 -) echo $tmp/stdin ;;
16371 # Absolute (can't be DOS-style, as IFS=:)
16372 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16373 echo "$as_me: error: cannot find input file: $f" >&2;}
16374 { (exit 1); exit 1; }; }
16377 if test -f "$f"; then
16380 elif test -f "$srcdir/$f"; then
16385 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16386 echo "$as_me: error: cannot find input file: $f" >&2;}
16387 { (exit 1); exit 1; }; }
16390 done` ||
{ (exit 1); exit 1; }
16392 cat >>$CONFIG_STATUS <<_ACEOF
16396 cat >>$CONFIG_STATUS <<\_ACEOF
16398 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16399 s
,@configure_input@
,$configure_input,;t t
16400 s
,@srcdir@
,$ac_srcdir,;t t
16401 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16402 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16403 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16404 s
,@builddir@
,$ac_builddir,;t t
16405 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16406 s
,@top_builddir@
,$ac_top_builddir,;t t
16407 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16408 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16410 if test x"$ac_file" != x-; then
16411 mv $tmp/out $ac_file
16419 cat >>$CONFIG_STATUS <<\_ACEOF
16422 # CONFIG_HEADER section.
16425 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16426 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16428 # ac_d sets the value in "#define NAME VALUE" lines.
16429 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16430 ac_dB
='[ ].*$,\1#\2'
16433 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16434 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16435 ac_uB
='$,\1#\2define\3'
16439 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16440 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16442 - |
*:- |
*:-:* ) # input from stdin
16444 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16445 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16446 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16447 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16448 * ) ac_file_in
=$ac_file.
in ;;
16451 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16452 echo "$as_me: creating $ac_file" >&6;}
16454 # First look for the input files in the build tree, otherwise in the
16456 ac_file_inputs
=`IFS=:
16457 for f in $ac_file_in; do
16459 -) echo $tmp/stdin ;;
16461 # Absolute (can't be DOS-style, as IFS=:)
16462 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16463 echo "$as_me: error: cannot find input file: $f" >&2;}
16464 { (exit 1); exit 1; }; }
16465 # Do quote $f, to prevent DOS paths from being IFS'd.
16468 if test -f "$f"; then
16471 elif test -f "$srcdir/$f"; then
16476 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16477 echo "$as_me: error: cannot find input file: $f" >&2;}
16478 { (exit 1); exit 1; }; }
16481 done` ||
{ (exit 1); exit 1; }
16482 # Remove the trailing spaces.
16483 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16487 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16488 # `conftest.undefs', that substitutes the proper values into
16489 # config.h.in to produce config.h. The first handles `#define'
16490 # templates, and the second `#undef' templates.
16491 # And first: Protect against being on the right side of a sed subst in
16492 # config.status. Protect against being in an unquoted here document
16493 # in config.status.
16494 rm -f conftest.defines conftest.undefs
16495 # Using a here document instead of a string reduces the quoting nightmare.
16496 # Putting comments in sed scripts is not portable.
16498 # `end' is used to avoid that the second main sed command (meant for
16499 # 0-ary CPP macros) applies to n-ary macro definitions.
16500 # See the Autoconf documentation for `clear'.
16501 cat >confdef2sed.
sed <<\_ACEOF
16506 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16508 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16511 # If some macros were called several times there might be several times
16512 # the same #defines, which is useless. Nevertheless, we may not want to
16513 # sort them, since we want the *last* AC-DEFINE to be honored.
16514 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16515 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16516 rm -f confdef2sed.sed
16518 # This sed command replaces #undef with comments. This is necessary, for
16519 # example, in the case of _POSIX_SOURCE, which is predefined and required
16520 # on some systems where configure will not decide to define it.
16521 cat >>conftest.undefs <<\_ACEOF
16522 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16525 # Break up conftest.defines because some shells have a limit on the size
16526 # of here documents, and old seds have small limits too (100 cmds).
16527 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16528 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16529 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16530 echo ' :' >>$CONFIG_STATUS
16531 rm -f conftest.tail
16532 while grep . conftest.defines >/dev/null
16534 # Write a limited-size here document to $tmp/defines.sed.
16535 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16536 # Speed up: don't consider the non `#define' lines.
16537 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16538 # Work around the forget-to-reset-the-flag bug.
16539 echo 't clr' >>$CONFIG_STATUS
16540 echo ': clr' >>$CONFIG_STATUS
16541 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16543 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16545 mv $tmp/out $tmp/in
16547 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16548 rm -f conftest.defines
16549 mv conftest.
tail conftest.defines
16551 rm -f conftest.defines
16552 echo ' fi # grep' >>$CONFIG_STATUS
16553 echo >>$CONFIG_STATUS
16555 # Break up conftest.undefs because some shells have a limit on the size
16556 # of here documents, and old seds have small limits too (100 cmds).
16557 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16558 rm -f conftest.
tail
16559 while grep . conftest.undefs
>/dev
/null
16561 # Write a limited-size here document to $tmp/undefs.sed.
16562 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16563 # Speed up: don't consider the non
`#undef'
16564 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16565 # Work around the forget-to-reset-the-flag bug.
16566 echo 't clr' >>$CONFIG_STATUS
16567 echo ': clr' >>$CONFIG_STATUS
16568 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16570 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16572 mv $tmp/out $tmp/in
16574 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16575 rm -f conftest.undefs
16576 mv conftest.tail conftest.undefs
16578 rm -f conftest.undefs
16580 cat >>$CONFIG_STATUS <<\_ACEOF
16581 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16582 # use $as_me), people would be surprised to read:
16583 # /* config.h. Generated by config.status. */
16584 if test x
"$ac_file" = x-
; then
16585 echo "/* Generated by configure. */" >$tmp/config.h
16587 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16589 cat $tmp/in >>$tmp/config.h
16591 if test x
"$ac_file" != x-
; then
16592 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
16593 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16594 echo "$as_me: $ac_file is unchanged" >&6;}
16596 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16598 X"$ac_file" : 'X\(//\)[^/]' \| \
16599 X"$ac_file" : 'X\(//\)$' \| \
16600 X"$ac_file" : 'X\(/\)' \| \
16601 . : '\(.\)' 2>/dev/null ||
16603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16604 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16605 /^X\(\/\/\)$/{ s//\1/; q; }
16606 /^X\(\/\).*/{ s//\1/; q; }
16608 { if $as_mkdir_p; then
16613 while test ! -d "$as_dir"; do
16614 as_dirs
="$as_dir $as_dirs"
16615 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16616 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16617 X"$as_dir" : 'X\(//\)[^/]' \| \
16618 X"$as_dir" : 'X\(//\)$' \| \
16619 X"$as_dir" : 'X\(/\)' \| \
16620 . : '\(.\)' 2>/dev/null ||
16622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16623 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16624 /^X\(\/\/\)$/{ s//\1/; q; }
16625 /^X\(\/\).*/{ s//\1/; q; }
16628 test ! -n "$as_dirs" || mkdir
$as_dirs
16629 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16630 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16631 { (exit 1); exit 1; }; }; }
16634 mv $tmp/config.h
$ac_file
16638 rm -f $tmp/config.h
16642 cat >>$CONFIG_STATUS <<\_ACEOF
16645 # CONFIG_COMMANDS section.
16647 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
16648 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16649 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16650 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16651 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16652 X"$ac_dest" : 'X\(//\)[^/]' \| \
16653 X"$ac_dest" : 'X\(//\)$' \| \
16654 X"$ac_dest" : 'X\(/\)' \| \
16655 . : '\(.\)' 2>/dev/null ||
16657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16659 /^X\(\/\/\)$/{ s//\1/; q; }
16660 /^X\(\/\).*/{ s//\1/; q; }
16662 { if $as_mkdir_p; then
16667 while test ! -d "$as_dir"; do
16668 as_dirs
="$as_dir $as_dirs"
16669 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16671 X"$as_dir" : 'X\(//\)[^/]' \| \
16672 X"$as_dir" : 'X\(//\)$' \| \
16673 X"$as_dir" : 'X\(/\)' \| \
16674 . : '\(.\)' 2>/dev/null ||
16676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16678 /^X\(\/\/\)$/{ s//\1/; q; }
16679 /^X\(\/\).*/{ s//\1/; q; }
16682 test ! -n "$as_dirs" || mkdir
$as_dirs
16683 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16684 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16685 { (exit 1); exit 1; }; }; }
16689 if test "$ac_dir" != .
; then
16690 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16691 # A "../" for each directory in $ac_dir_suffix.
16692 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16694 ac_dir_suffix
= ac_top_builddir
=
16698 .
) # No --srcdir option. We are building in place.
16700 if test -z "$ac_top_builddir"; then
16703 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16705 [\\/]* | ?
:[\\/]* ) # Absolute path.
16706 ac_srcdir
=$srcdir$ac_dir_suffix;
16707 ac_top_srcdir
=$srcdir ;;
16708 *) # Relative path.
16709 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16710 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16713 # Do not use `cd foo && pwd` to compute absolute paths, because
16714 # the directories may not exist.
16716 .
) ac_abs_builddir
="$ac_dir";;
16719 .
) ac_abs_builddir
=`pwd`;;
16720 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16721 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16724 case $ac_abs_builddir in
16725 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16727 case ${ac_top_builddir}.
in
16728 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16729 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16730 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16733 case $ac_abs_builddir in
16734 .
) ac_abs_srcdir
=$ac_srcdir;;
16737 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16738 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16739 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16742 case $ac_abs_builddir in
16743 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16745 case $ac_top_srcdir in
16746 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16747 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16748 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16753 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16754 echo "$as_me: executing $ac_dest commands" >&6;}
16757 case ${CONFIG_HEADERS} in
16758 *auto-host.h
:config.
in*)
16761 # Make sure all the subdirs exist.
16762 for d
in $subdirs doc build
16764 test -d $d || mkdir
$d
16766 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16767 # bootstrapping and the installation procedure can still use
16768 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16769 # FLAGS_TO_PASS has been modified to solve the problem there.
16770 # This is virtually a duplicate of what happens in configure.lang; we do
16771 # an extra check to make sure this only happens if ln -s can be used.
16774 for d
in ${subdirs} ; do
16775 STARTDIR
=`${PWDCMD-pwd}`
16777 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16780 $LN_S ..
/$t $t 2>/dev
/null
16791 cat >>$CONFIG_STATUS <<\_ACEOF
16793 { (exit 0); exit 0; }
16795 chmod +x
$CONFIG_STATUS
16796 ac_clean_files
=$ac_clean_files_save
16799 # configure is writing to config.log, and then calls config.status.
16800 # config.status does its own redirection, appending to config.log.
16801 # Unfortunately, on DOS this fails, as config.log is still kept open
16802 # by configure, so config.status won't be able to write to it; its
16803 # output is simply discarded. So we exec the FD to /dev/null,
16804 # effectively closing config.log, so it can be properly (re)opened and
16805 # appended to by config.status. When coming back to configure, we
16806 # need to make the FD available again.
16807 if test "$no_create" != yes; then
16809 ac_config_status_args
=
16810 test "$silent" = yes &&
16811 ac_config_status_args
="$ac_config_status_args --quiet"
16813 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16815 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16816 # would make configure fail if this is the last instruction.
16817 $ac_cs_success ||
{ (exit 1); exit 1; }