2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: yes,no
,all
,none
,release.
871 Flags are
: assert
,fold,gc
,gcac
,misc
,
872 rtlflag
,rtl
,runtime
,tree
,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler
's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-threads enable thread usage for target GCC
884 --enable-threads=LIB use LIB thread package for target GCC
885 --enable-objc-gc enable the use of Boehm's garbage collector with
886 the GNU Objective-C runtime
887 --disable-shared don
't provide a shared libgcc
888 --enable-intermodule build the compiler in one step
889 --enable-languages=LIST specify which front-ends to build
890 --disable-rpath do not hardcode runtime library paths
891 --enable-initfini-array use .init_array/.fini_array sections
892 --enable-sjlj-exceptions
893 arrange to use setjmp/longjmp exception handling
894 --disable-win32-registry
895 disable lookup of installation paths in the
896 Registry on Windows hosts
897 --enable-win32-registry enable registry lookup (default)
898 --enable-win32-registry=KEY
899 use KEY instead of GCC version as the last portion
901 --enable-maintainer-mode
902 enable make rules and dependencies not useful
903 (and sometimes confusing) to the casual installer
904 --enable-version-specific-runtime-libs
905 specify that runtime libraries should be
906 installed in a compiler-specific directory
909 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
910 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
911 --with-local-prefix=DIR specifies directory to put local include
912 --with-gxx-include-dir=DIR
913 specifies directory to put g++ header files
914 --with-cpp-install-dir=DIR
915 install the user visible C preprocessor in DIR
916 (relative to PREFIX) as well as PREFIX/bin
917 --with-gnu-ld arrange to work with GNU ld.
918 --with-ld arrange to use the specified ld (full pathname)
919 --with-demangler-in-ld try to use demangler in GNU ld.
920 --with-gnu-as arrange to work with GNU as
921 --with-as arrange to use the specified as (full pathname)
922 --with-stabs arrange to use stabs instead of host debug format
923 --with-dwarf2 force the default debug format to be DWARF 2
924 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
925 --with-gnu-ld assume the C compiler uses GNU ld default=no
926 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
927 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
928 --with-system-libunwind use installed libunwind
929 --with-gc={page
,zone
} choose the garbage collection mechanism to use
931 --with-system-zlib use installed libz
932 --with-slibdir=DIR shared libraries
in DIR LIBDIR
934 Some influential environment variables
:
935 CC C compiler
command
936 CFLAGS C compiler flags
937 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
938 nonstandard directory
<lib dir
>
939 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
940 headers
in a nonstandard directory
<include dir
>
942 GMPLIBS How to link GMP
943 GMPINC How to
find GMP include files
945 Use these variables to override the choices made by
`configure' or to help
946 it to find libraries and programs with nonstandard names/locations.
951 if test "$ac_init_help" = "recursive"; then
952 # If there are subdirs, report their specific --help.
954 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
955 test -d $ac_dir || continue
958 if test "$ac_dir" != .; then
959 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
960 # A "../" for each directory in $ac_dir_suffix.
961 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
963 ac_dir_suffix= ac_top_builddir=
967 .) # No --srcdir option. We are building in place.
969 if test -z "$ac_top_builddir"; then
972 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
974 [\\/]* | ?:[\\/]* ) # Absolute path.
975 ac_srcdir=$srcdir$ac_dir_suffix;
976 ac_top_srcdir=$srcdir ;;
978 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
979 ac_top_srcdir=$ac_top_builddir$srcdir ;;
982 # Do not use `cd foo
&& pwd` to compute absolute paths, because
983 # the directories may not exist.
985 .) ac_abs_builddir="$ac_dir";;
988 .) ac_abs_builddir=`pwd`;;
989 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
990 *) ac_abs_builddir=`pwd`/"$ac_dir";;
993 case $ac_abs_builddir in
994 .) ac_abs_top_builddir=${ac_top_builddir}.;;
996 case ${ac_top_builddir}. in
997 .) ac_abs_top_builddir=$ac_abs_builddir;;
998 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
999 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1002 case $ac_abs_builddir in
1003 .) ac_abs_srcdir=$ac_srcdir;;
1006 .) ac_abs_srcdir=$ac_abs_builddir;;
1007 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1008 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1011 case $ac_abs_builddir in
1012 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 case $ac_top_srcdir in
1015 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1016 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1017 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1022 # Check for guested configure; otherwise get Cygnus style configure.
1023 if test -f $ac_srcdir/configure.gnu; then
1025 $SHELL $ac_srcdir/configure.gnu --help=recursive
1026 elif test -f $ac_srcdir/configure; then
1028 $SHELL $ac_srcdir/configure --help=recursive
1029 elif test -f $ac_srcdir/configure.ac ||
1030 test -f $ac_srcdir/configure.in; then
1032 $ac_configure --help
1034 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1040 test -n "$ac_init_help" && exit 0
1041 if $ac_init_version; then
1044 Copyright (C) 2003 Free Software Foundation, Inc.
1045 This configure script is free software; the Free Software Foundation
1046 gives unlimited permission to copy, distribute and modify it.
1052 This file contains any messages produced by compilers while
1053 running configure, to aid debugging if configure makes a mistake.
1055 It was created by $as_me, which was
1056 generated by GNU Autoconf 2.59. Invocation command line was
1067 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1068 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1069 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1070 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1071 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1073 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1074 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1076 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1077 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1078 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1079 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1080 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1081 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1082 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1090 test -z "$as_dir" && as_dir=.
1091 echo "PATH: $as_dir"
1106 # Keep a trace of the command line.
1107 # Strip out --no-create and --no-recursion so they do not pile up.
1108 # Strip out --silent because we don't want to record it for future runs.
1109 # Also quote any args containing shell meta-characters.
1110 # Make two passes to allow for proper duplicate-argument suppression.
1115 ac_must_keep_next=false
1121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1125 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1126 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1129 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1131 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1132 if test $ac_must_keep_next = true; then
1133 ac_must_keep_next=false # Got value, back to normal.
1136 *=* | --config-cache | -C | -disable-* | --disable-* \
1137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1139 | -with-* | --with-* | -without-* | --without-* | --x)
1140 case "$ac_configure_args0 " in
1141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1144 -* ) ac_must_keep_next=true ;;
1147 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1148 # Get rid of the leading space.
1154 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1155 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1157 # When interrupted or exit'd, cleanup temporary files, and complete
1158 # config.log. We remove comments because anyway the quotes in there
1159 # would cause problems or look ugly.
1160 # WARNING: Be sure not to use single quotes in there, as some shells,
1161 # such as our DU 5.0 friend, will then `close
' the trap.
1162 trap 'exit_status
=$?
1163 # Save into config.log some information that might help in debugging.
1168 ## ---------------- ##
1169 ## Cache variables. ##
1170 ## ---------------- ##
1173 # The following way of writing the cache mishandles newlines in values,
1176 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1179 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1184 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1191 ## ----------------- ##
1192 ## Output variables. ##
1193 ## ----------------- ##
1196 for ac_var
in $ac_subst_vars
1198 eval ac_val
=$
`echo $ac_var`
1199 echo "$ac_var='"'"'$ac_val'"'"'"
1203 if test -n "$ac_subst_files"; then
1210 for ac_var
in $ac_subst_files
1212 eval ac_val
=$
`echo $ac_var`
1213 echo "$ac_var='"'"'$ac_val'"'"'"
1218 if test -s confdefs.h
; then
1225 sed "/^$/d" confdefs.h |
sort
1228 test "$ac_signal" != 0 &&
1229 echo "$as_me: caught signal $ac_signal"
1230 echo "$as_me: exit $exit_status"
1232 rm -f core
*.core
&&
1233 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1236 for ac_signal in 1 2 13 15; do
1237 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1242 rm -rf conftest* confdefs.h
1243 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1246 # Predefined preprocessor variables.
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_NAME "$PACKAGE_NAME"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_STRING "$PACKAGE_STRING"
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1273 # Let the site file select an alternate cache file if it wants to.
1274 # Prefer explicitly selected file to automatically selected ones.
1275 if test -z "$CONFIG_SITE"; then
1276 if test "x$prefix" != xNONE; then
1277 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1279 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1282 for ac_site_file in $CONFIG_SITE; do
1283 if test -r "$ac_site_file"; then
1284 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285 echo "$as_me: loading site script $ac_site_file" >&6;}
1286 sed 's
/^
/|
/' "$ac_site_file" >&5
1291 if test -r "$cache_file"; then
1292 # Some versions of bash will fail to source /dev/null (special
1293 # files actually), so we avoid doing that.
1294 if test -f "$cache_file"; then
1295 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296 echo "$as_me: loading cache $cache_file" >&6;}
1298 [\\/]* | ?:[\\/]* ) . $cache_file;;
1299 *) . ./$cache_file;;
1303 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304 echo "$as_me: creating cache $cache_file" >&6;}
1308 # Check that the precious variables saved in the cache have kept the same
1310 ac_cache_corrupted=false
1311 for ac_var in `(set) 2>&1 |
1312 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314 eval ac_new_set=\$ac_env_${ac_var}_set
1315 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316 eval ac_new_val="\$ac_env_${ac_var}_value"
1317 case $ac_old_set,$ac_new_set in
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1321 ac_cache_corrupted=: ;;
1323 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1328 if test "x$ac_old_val" != "x$ac_new_val"; then
1329 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1330 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1331 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1332 echo "$as_me: former value: $ac_old_val" >&2;}
1333 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1334 echo "$as_me: current value: $ac_new_val" >&2;}
1335 ac_cache_corrupted=:
1338 # Pass precious variables to config.status.
1339 if test "$ac_new_set" = set; then
1341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1343 *) ac_arg=$ac_var=$ac_new_val ;;
1345 case " $ac_configure_args " in
1346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1347 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1351 if $ac_cache_corrupted; then
1352 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1355 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356 { (exit 1); exit 1; }; }
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1362 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1384 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1387 # Determine the host, build, and target systems
1389 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1390 if test -f $ac_dir/install-sh; then
1392 ac_install_sh="$ac_aux_dir/install-sh -c"
1394 elif test -f $ac_dir/install.sh; then
1396 ac_install_sh="$ac_aux_dir/install.sh -c"
1398 elif test -f $ac_dir/shtool; then
1400 ac_install_sh="$ac_aux_dir/shtool install -c"
1404 if test -z "$ac_aux_dir"; then
1405 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1406 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1407 { (exit 1); exit 1; }; }
1409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1413 # Make sure we can run config.sub.
1414 $ac_config_sub sun4 >/dev/null 2>&1 ||
1415 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1416 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1417 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: checking build system type" >&5
1420 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1421 if test "${ac_cv_build+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 ac_cv_build_alias=$build_alias
1425 test -z "$ac_cv_build_alias" &&
1426 ac_cv_build_alias=`$ac_config_guess`
1427 test -z "$ac_cv_build_alias" &&
1428 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1429 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1430 { (exit 1); exit 1; }; }
1431 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1432 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1433 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1434 { (exit 1); exit 1; }; }
1437 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1438 echo "${ECHO_T}$ac_cv_build" >&6
1440 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1441 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1442 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1445 echo "$as_me:$LINENO: checking host system type" >&5
1446 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1447 if test "${ac_cv_host+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1450 ac_cv_host_alias=$host_alias
1451 test -z "$ac_cv_host_alias" &&
1452 ac_cv_host_alias=$ac_cv_build_alias
1453 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1454 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1455 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1456 { (exit 1); exit 1; }; }
1459 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1460 echo "${ECHO_T}$ac_cv_host" >&6
1462 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1463 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1464 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1467 echo "$as_me:$LINENO: checking target system type" >&5
1468 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1469 if test "${ac_cv_target+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 ac_cv_target_alias=$target_alias
1473 test "x$ac_cv_target_alias" = "x" &&
1474 ac_cv_target_alias=$ac_cv_host_alias
1475 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1476 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1477 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1478 { (exit 1); exit 1; }; }
1481 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1482 echo "${ECHO_T}$ac_cv_target" >&6
1483 target=$ac_cv_target
1484 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1485 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1486 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1489 # The aliases save the names the user supplied, while $host etc.
1490 # will get canonicalized.
1491 test -n "$target_alias" &&
1492 test "$program_prefix$program_suffix$program_transform_name" = \
1494 program_prefix=${target_alias}-
1496 # Determine the noncanonical target name, for directory use.
1497 case ${build_alias} in
1498 "") build_noncanonical=${build} ;;
1499 *) build_noncanonical=${build_alias} ;;
1502 case ${host_alias} in
1503 "") host_noncanonical=${build_noncanonical} ;;
1504 *) host_noncanonical=${host_alias} ;;
1507 case ${target_alias} in
1508 "") target_noncanonical=${host_noncanonical} ;;
1509 *) target_noncanonical=${target_alias} ;;
1515 # Determine the target- and build-specific subdirectories
1516 # Prefix 'build-
' so this never conflicts with target_subdir.
1517 build_subdir="build-${build_noncanonical}"
1518 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1519 if ( test $srcdir = . && test -d gcc ) \
1520 || test -d $srcdir/../host-${host_noncanonical}; then
1521 host_subdir="host-${host_noncanonical}"
1526 target_subdir=${target_noncanonical}
1529 # Set program_transform_name
1530 test "$program_prefix" != NONE &&
1531 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1532 # Use a double $ so make ignores it.
1533 test "$program_suffix" != NONE &&
1534 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1535 # Double any \ or $. echo might interpret backslashes.
1536 # By default was `s,x,x', remove it
if useless.
1537 cat <<\_ACEOF
>conftest.
sed
1538 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1540 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1544 # Check for bogus environment variables.
1545 # Test if LIBRARY_PATH contains the notation for the current directory
1546 # since this would lead to problems installing/building glibc.
1547 # LIBRARY_PATH contains the current directory if one of the following
1549 # - one of the terminals (":" and ";") is the first or last sign
1550 # - two terminals occur directly after each other
1551 # - the path contains an element with a dot in it
1552 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1553 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1554 case ${LIBRARY_PATH} in
1555 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1556 library_path_setting
="contains current directory"
1559 library_path_setting
="ok"
1562 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1563 echo "${ECHO_T}$library_path_setting" >&6
1564 if test "$library_path_setting" != "ok"; then
1565 { { echo "$as_me:$LINENO: error:
1566 *** LIBRARY_PATH shouldn't contain the current directory when
1567 *** building gcc. Please change the environment variable
1568 *** and run configure again." >&5
1569 echo "$as_me: error:
1570 *** LIBRARY_PATH shouldn't contain the current directory when
1571 *** building gcc. Please change the environment variable
1572 *** and run configure again." >&2;}
1573 { (exit 1); exit 1; }; }
1576 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1577 # since this would lead to problems installing/building glibc.
1578 # GCC_EXEC_PREFIX contains the current directory if one of the following
1580 # - one of the terminals (":" and ";") is the first or last sign
1581 # - two terminals occur directly after each other
1582 # - the path contains an element with a dot in it
1583 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1584 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1585 case ${GCC_EXEC_PREFIX} in
1586 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1587 gcc_exec_prefix_setting
="contains current directory"
1590 gcc_exec_prefix_setting
="ok"
1593 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1594 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1595 if test "$gcc_exec_prefix_setting" != "ok"; then
1596 { { echo "$as_me:$LINENO: error:
1597 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1598 *** building gcc. Please change the environment variable
1599 *** and run configure again." >&5
1600 echo "$as_me: error:
1601 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1602 *** building gcc. Please change the environment variable
1603 *** and run configure again." >&2;}
1604 { (exit 1); exit 1; }; }
1611 # Specify the local prefix
1614 # Check whether --with-local-prefix or --without-local-prefix was given.
1615 if test "${with_local_prefix+set}" = set; then
1616 withval
="$with_local_prefix"
1617 case "${withval}" in
1618 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1619 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1620 { (exit 1); exit 1; }; } ;;
1622 *) local_prefix
=$with_local_prefix ;;
1626 # Default local prefix if it is empty
1627 if test x
$local_prefix = x
; then
1628 local_prefix
=/usr
/local
1631 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1632 # passed in by the toplevel make and thus we'd get different behavior
1633 # depending on where we built the sources.
1634 gcc_gxx_include_dir
=
1635 # Specify the g++ header file directory
1637 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1638 if test "${with_gxx_include_dir+set}" = set; then
1639 withval
="$with_gxx_include_dir"
1640 case "${withval}" in
1641 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1642 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1643 { (exit 1); exit 1; }; } ;;
1645 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1649 if test x
${gcc_gxx_include_dir} = x
; then
1650 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1651 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1653 libstdcxx_incdir
='c++/$(version)'
1654 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1659 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1660 if test "${with_cpp_install_dir+set}" = set; then
1661 withval
="$with_cpp_install_dir"
1662 if test x
$withval = xyes
; then
1663 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1664 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1665 { (exit 1); exit 1; }; }
1666 elif test x
$withval != xno
; then
1667 cpp_install_dir
=$withval
1671 # We would like to our source tree to be readonly. However when releases or
1672 # pre-releases are generated, the flex/bison generated files as well as the
1673 # various formats of manuals need to be included along with the rest of the
1674 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1677 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1678 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1679 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1680 if test "${enable_generated_files_in_srcdir+set}" = set; then
1681 enableval
="$enable_generated_files_in_srcdir"
1682 generated_files_in_srcdir
=$enableval
1684 generated_files_in_srcdir
=no
1687 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1688 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1690 if test "$generated_files_in_srcdir" = "yes"; then
1697 # -------------------
1698 # Find default linker
1699 # -------------------
1703 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1704 if test "${with_gnu_ld+set}" = set; then
1705 withval
="$with_gnu_ld"
1706 gnu_ld_flag
="$with_gnu_ld"
1711 # With pre-defined ld
1713 # Check whether --with-ld or --without-ld was given.
1714 if test "${with_ld+set}" = set; then
1716 DEFAULT_LINKER
="$with_ld"
1718 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1719 if test ! -x "$DEFAULT_LINKER"; then
1720 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1721 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1722 { (exit 1); exit 1; }; }
1723 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1727 cat >>confdefs.h
<<_ACEOF
1728 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1733 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1734 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1735 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1736 if test x
"$gnu_ld_flag" = x
"no"; then
1737 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1738 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1740 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1741 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1748 # With demangler in GNU ld
1750 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1751 if test "${with_demangler_in_ld+set}" = set; then
1752 withval
="$with_demangler_in_ld"
1753 demangler_in_ld
="$with_demangler_in_ld"
1758 # ----------------------
1759 # Find default assembler
1760 # ----------------------
1764 # Check whether --with-gnu-as or --without-gnu-as was given.
1765 if test "${with_gnu_as+set}" = set; then
1766 withval
="$with_gnu_as"
1767 gas_flag
="$with_gnu_as"
1773 # Check whether --with-as or --without-as was given.
1774 if test "${with_as+set}" = set; then
1776 DEFAULT_ASSEMBLER
="$with_as"
1778 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1779 if test ! -x "$DEFAULT_ASSEMBLER"; then
1780 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1781 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1782 { (exit 1); exit 1; }; }
1783 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1787 cat >>confdefs.h
<<_ACEOF
1788 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1793 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1794 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1795 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1796 if test x
"$gas_flag" = x
"no"; then
1797 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1798 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1800 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1801 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1812 # If a non-executable a.out is present (e.g. created by GNU as above even if
1813 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1814 # file, even when creating an executable, so an execution test fails.
1815 # Remove possible default executable files to avoid this.
1817 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1818 # Autoconf includes it.
1819 rm -f a.out a.exe b.out
1821 # Find the native compiler
1823 ac_cpp
='$CPP $CPPFLAGS'
1824 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1825 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1826 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1827 if test -n "$ac_tool_prefix"; then
1828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1829 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC
="$CC" # Let the user override the test.
1838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1842 test -z "$as_dir" && as_dir
=.
1843 for ac_exec_ext
in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1864 if test -z "$ac_cv_prog_CC"; then
1866 # Extract the first word of "gcc", so it can be a program name with args.
1867 set dummy gcc
; ac_word
=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1880 test -z "$as_dir" && as_dir
=.
1881 for ac_exec_ext
in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_ac_ct_CC
="gcc"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1893 if test -n "$ac_ct_CC"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895 echo "${ECHO_T}$ac_ct_CC" >&6
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1906 if test -z "$CC"; then
1907 if test -n "$ac_tool_prefix"; then
1908 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1909 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_CC+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC
="$CC" # Let the user override the test.
1918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1922 test -z "$as_dir" && as_dir
=.
1923 for ac_exec_ext
in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 if test -n "$CC"; then
1936 echo "$as_me:$LINENO: result: $CC" >&5
1937 echo "${ECHO_T}$CC" >&6
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1944 if test -z "$ac_cv_prog_CC"; then
1946 # Extract the first word of "cc", so it can be a program name with args.
1947 set dummy cc
; ac_word
=$2
1948 echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 if test -n "$ac_ct_CC"; then
1954 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1960 test -z "$as_dir" && as_dir
=.
1961 for ac_exec_ext
in '' $ac_executable_extensions; do
1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963 ac_cv_prog_ac_ct_CC
="cc"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1973 if test -n "$ac_ct_CC"; then
1974 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1975 echo "${ECHO_T}$ac_ct_CC" >&6
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1987 if test -z "$CC"; then
1988 # Extract the first word of "cc", so it can be a program name with args.
1989 set dummy cc
; ac_word
=$2
1990 echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992 if test "${ac_cv_prog_CC+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 if test -n "$CC"; then
1996 ac_cv_prog_CC
="$CC" # Let the user override the test.
1999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir
=.
2004 for ac_exec_ext
in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2007 ac_prog_rejected
=yes
2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 if test $ac_prog_rejected = yes; then
2018 # We found a bogon in the path, so make sure we never use it.
2019 set dummy
$ac_cv_prog_CC
2021 if test $# != 0; then
2022 # We chose a different compiler from the bogus one.
2023 # However, it has the same basename, so the bogon will be chosen
2024 # first if we set CC to just the basename; use the full file name.
2026 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2032 if test -n "$CC"; then
2033 echo "$as_me:$LINENO: result: $CC" >&5
2034 echo "${ECHO_T}$CC" >&6
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2041 if test -z "$CC"; then
2042 if test -n "$ac_tool_prefix"; then
2045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2046 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC
="$CC" # Let the user override the test.
2055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir
=.
2060 for ac_exec_ext
in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 if test -n "$CC"; then
2073 echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6
2076 echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2080 test -n "$CC" && break
2083 if test -z "$CC"; then
2087 # Extract the first word of "$ac_prog", so it can be a program name with args.
2088 set dummy
$ac_prog; ac_word
=$2
2089 echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 if test -n "$ac_ct_CC"; then
2095 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2101 test -z "$as_dir" && as_dir
=.
2102 for ac_exec_ext
in '' $ac_executable_extensions; do
2103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104 ac_cv_prog_ac_ct_CC
="$ac_prog"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2114 if test -n "$ac_ct_CC"; then
2115 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2116 echo "${ECHO_T}$ac_ct_CC" >&6
2118 echo "$as_me:$LINENO: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2122 test -n "$ac_ct_CC" && break
2131 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: no acceptable C compiler found in \$PATH
2134 See \`config.log' for more details." >&2;}
2135 { (exit 1); exit 1; }; }
2137 # Provide some information about the compiler.
2138 echo "$as_me:$LINENO:" \
2139 "checking for C compiler version" >&5
2140 ac_compiler
=`set X $ac_compile; echo $2`
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2142 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2146 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2147 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }
2151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2152 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }
2157 cat >conftest.
$ac_ext <<_ACEOF
2160 cat confdefs.h
>>conftest.
$ac_ext
2161 cat >>conftest.
$ac_ext <<_ACEOF
2162 /* end confdefs.h. */
2172 ac_clean_files_save
=$ac_clean_files
2173 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2174 # Try to create an executable without -o first, disregard a.out.
2175 # It will help us diagnose broken compilers, and finding out an intuition
2177 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2178 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2179 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2180 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2181 (eval $ac_link_default) 2>&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; then
2185 # Find the output, starting from the most likely. This scheme is
2186 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2189 # Be careful to initialize this variable, since it used to be cached.
2190 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2192 # b.out is created by i960 compilers.
2193 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2195 test -f "$ac_file" ||
continue
2197 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2200 # This is the source file.
2203 # We found the default executable, but exeext='' is most
2207 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208 # FIXME: I believe we export ac_cv_exeext for Libtool,
2209 # but it would be cool to find out if it's true. Does anybody
2210 # maintain Libtool? --akim.
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.
$ac_ext >&5
2221 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&2;}
2225 { (exit 77); exit 77; }; }
2228 ac_exeext
=$ac_cv_exeext
2229 echo "$as_me:$LINENO: result: $ac_file" >&5
2230 echo "${ECHO_T}$ac_file" >&6
2232 # Check the compiler produces executables we can run. If not, either
2233 # the compiler is broken, or we cross compile.
2234 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2236 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237 # If not cross compiling, check that we can run a simple program.
2238 if test "$cross_compiling" != yes; then
2239 if { ac_try
='./$ac_file'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2247 if test "$cross_compiling" = maybe
; then
2250 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: cannot run C compiled programs.
2254 If you meant to cross compile, use \`--host'.
2255 See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2260 echo "$as_me:$LINENO: result: yes" >&5
2261 echo "${ECHO_T}yes" >&6
2263 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2264 ac_clean_files
=$ac_clean_files_save
2265 # Check the compiler produces executables we can run. If not, either
2266 # the compiler is broken, or we cross compile.
2267 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2268 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2269 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2270 echo "${ECHO_T}$cross_compiling" >&6
2272 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2273 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2275 (eval $ac_link) 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281 # work properly (i.e., refer to `conftest.exe'), while it won't with
2283 for ac_file
in conftest.exe conftest conftest.
*; do
2284 test -f "$ac_file" ||
continue
2286 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2287 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest
$ac_cv_exeext
2302 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2303 echo "${ECHO_T}$ac_cv_exeext" >&6
2305 rm -f conftest.
$ac_ext
2306 EXEEXT
=$ac_cv_exeext
2308 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2309 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2310 if test "${ac_cv_objext+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 cat >conftest.
$ac_ext <<_ACEOF
2316 cat confdefs.h
>>conftest.
$ac_ext
2317 cat >>conftest.
$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2328 rm -f conftest.o conftest.obj
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2336 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2337 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.
$ac_ext >&5
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2352 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2354 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355 echo "${ECHO_T}$ac_cv_objext" >&6
2356 OBJEXT
=$ac_cv_objext
2358 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2360 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 cat >conftest.
$ac_ext <<_ACEOF
2366 cat confdefs.h
>>conftest.
$ac_ext
2367 cat >>conftest.
$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2381 rm -f conftest.
$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>conftest.er1
2385 grep -v '^ *+' conftest.er1
>conftest.err
2387 cat conftest.err
>&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try
='test -z "$ac_c_werror_flag"
2391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try
='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.
$ac_ext >&5
2410 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2411 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2414 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2415 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2416 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2417 ac_test_CFLAGS
=${CFLAGS+set}
2418 ac_save_CFLAGS
=$CFLAGS
2420 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2421 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2422 if test "${ac_cv_prog_cc_g+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 cat >conftest.
$ac_ext <<_ACEOF
2428 cat confdefs.h
>>conftest.
$ac_ext
2429 cat >>conftest.
$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2440 rm -f conftest.
$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442 (eval $ac_compile) 2>conftest.er1
2444 grep -v '^ *+' conftest.er1
>conftest.err
2446 cat conftest.err
>&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try
='test -z "$ac_c_werror_flag"
2450 || test ! -s conftest.err'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; } &&
2456 { ac_try
='test -s conftest.$ac_objext'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.
$ac_ext >&5
2469 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2471 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2472 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2473 if test "$ac_test_CFLAGS" = set; then
2474 CFLAGS
=$ac_save_CFLAGS
2475 elif test $ac_cv_prog_cc_g = yes; then
2476 if test "$GCC" = yes; then
2482 if test "$GCC" = yes; then
2488 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2489 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2490 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 ac_cv_prog_cc_stdc
=no
2495 cat >conftest.
$ac_ext <<_ACEOF
2498 cat confdefs.h
>>conftest.
$ac_ext
2499 cat >>conftest.
$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2503 #include <sys/types.h>
2504 #include <sys/stat.h>
2505 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2506 struct buf { int x; };
2507 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2508 static char *e (p, i)
2514 static char *f (char * (*g) (char **, int), char **p, ...)
2519 s = g (p, va_arg (v,int));
2524 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2525 function prototypes and stuff, but not '\xHH' hex character constants.
2526 These don't provoke an error unfortunately, instead are silently treated
2527 as 'x'. The following induces an error, until -std1 is added to get
2528 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2529 array size at least. It's necessary to write '\x00'==0 to get something
2530 that's true only with -std1. */
2531 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2533 int test (int i, double x);
2534 struct s1 {int (*f) (int a);};
2535 struct s2 {int (*f) (double a);};
2536 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2542 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2547 # Don't try gcc -ansi; that turns off useful extensions and
2548 # breaks some systems' header files.
2549 # AIX -qlanglvl=ansi
2550 # Ultrix and OSF/1 -std1
2551 # HP-UX 10.20 and later -Ae
2552 # HP-UX older versions -Aa -D_HPUX_SOURCE
2553 # SVR4 -Xc -D__EXTENSIONS__
2554 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2556 CC
="$ac_save_CC $ac_arg"
2557 rm -f conftest.
$ac_objext
2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>conftest.er1
2561 grep -v '^ *+' conftest.er1
>conftest.err
2563 cat conftest.err
>&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try
='test -z "$ac_c_werror_flag"
2567 || test ! -s conftest.err'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; } &&
2573 { ac_try
='test -s conftest.$ac_objext'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2579 ac_cv_prog_cc_stdc
=$ac_arg
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.
$ac_ext >&5
2586 rm -f conftest.err conftest.
$ac_objext
2588 rm -f conftest.
$ac_ext conftest.
$ac_objext
2593 case "x$ac_cv_prog_cc_stdc" in
2595 echo "$as_me:$LINENO: result: none needed" >&5
2596 echo "${ECHO_T}none needed" >&6 ;;
2598 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2599 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2600 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2603 # Some people use a C++ compiler to compile C. Since we use `exit',
2604 # in C++ we need to declare it. In case someone uses the same compiler
2605 # for both compiling C and C++ we need to have the C++ compiler decide
2606 # the declaration of exit, since it's the most demanding environment.
2607 cat >conftest.
$ac_ext <<_ACEOF
2612 rm -f conftest.
$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614 (eval $ac_compile) 2>conftest.er1
2616 grep -v '^ *+' conftest.er1
>conftest.err
2618 cat conftest.err
>&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try
='test -z "$ac_c_werror_flag"
2622 || test ! -s conftest.err'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; } &&
2628 { ac_try
='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2634 for ac_declaration
in \
2636 'extern "C" void std::exit (int) throw (); using std::exit;' \
2637 'extern "C" void std::exit (int); using std::exit;' \
2638 'extern "C" void exit (int) throw ();' \
2639 'extern "C" void exit (int);' \
2642 cat >conftest.
$ac_ext <<_ACEOF
2645 cat confdefs.h
>>conftest.
$ac_ext
2646 cat >>conftest.
$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2658 rm -f conftest.
$ac_objext
2659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2660 (eval $ac_compile) 2>conftest.er1
2662 grep -v '^ *+' conftest.er1
>conftest.err
2664 cat conftest.err
>&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); } &&
2667 { ac_try
='test -z "$ac_c_werror_flag"
2668 || test ! -s conftest.err'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; } &&
2674 { ac_try
='test -s conftest.$ac_objext'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; }; then
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.
$ac_ext >&5
2687 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2688 cat >conftest.
$ac_ext <<_ACEOF
2691 cat confdefs.h
>>conftest.
$ac_ext
2692 cat >>conftest.
$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2703 rm -f conftest.
$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>conftest.er1
2707 grep -v '^ *+' conftest.er1
>conftest.err
2709 cat conftest.err
>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try
='test -z "$ac_c_werror_flag"
2713 || test ! -s conftest.err'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try
='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.
$ac_ext >&5
2731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2734 if test -n "$ac_declaration"; then
2735 echo '#ifdef __cplusplus' >>confdefs.h
2736 echo $ac_declaration >>confdefs.h
2737 echo '#endif' >>confdefs.h
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.
$ac_ext >&5
2745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2747 ac_cpp
='$CPP $CPPFLAGS'
2748 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2752 if test "x$CC" != xcc
; then
2753 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2754 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2756 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2757 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2759 set dummy
$CC; ac_cc
=`echo $2 |
2760 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2761 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 cat >conftest.
$ac_ext <<_ACEOF
2767 cat confdefs.h
>>conftest.
$ac_ext
2768 cat >>conftest.
$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2779 # Make sure it works both with $CC and with simple cc.
2780 # We do the test twice because some compilers refuse to overwrite an
2781 # existing .o file with -o, though they will create one.
2782 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2783 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); };
2794 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2795 if test "x$CC" != xcc
; then
2796 # Test first that cc exists at all.
2797 if { ac_try
='cc -c conftest.$ac_ext >&5'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2804 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); };
2818 # cc exists but doesn't like -o.
2819 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2824 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2829 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2830 echo "$as_me:$LINENO: result: yes" >&5
2831 echo "${ECHO_T}yes" >&6
2833 echo "$as_me:$LINENO: result: no" >&5
2834 echo "${ECHO_T}no" >&6
2836 cat >>confdefs.h
<<\_ACEOF
2837 #define NO_MINUS_C_MINUS_O 1
2842 # expand $ac_aux_dir to an absolute path
2843 am_aux_dir
=`cd $ac_aux_dir && pwd`
2845 # FIXME: we rely on the cache variable name because
2846 # there is no other way.
2848 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2849 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2850 # Losing compiler, so override with the script.
2851 # FIXME: It is wrong to rewrite CC.
2852 # But if we don't then we get into trouble of one sort or another.
2853 # A longer-term fix would be to have automake use am__CC in this case,
2854 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2855 CC
="$am_aux_dir/compile $CC"
2858 # autoconf is lame and doesn't give us any substitution variable for this.
2859 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2860 NO_MINUS_C_MINUS_O
=yes
2862 OUTPUT_OPTION
='-o $@'
2867 # -------------------------
2868 # Check C compiler features
2869 # -------------------------
2872 ac_cpp
='$CPP $CPPFLAGS'
2873 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2876 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2877 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2878 # On Suns, sometimes $CPP names a directory.
2879 if test -n "$CPP" && test -d "$CPP"; then
2882 if test -z "$CPP"; then
2883 if test "${ac_cv_prog_CPP+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 # Double quotes because CPP needs to be expanded
2887 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2890 for ac_c_preproc_warn_flag
in '' yes
2892 # Use a header file that comes with gcc, so configuring glibc
2893 # with a fresh cross-compiler works.
2894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2895 # <limits.h> exists even on freestanding compilers.
2896 # On the NeXT, cc -E runs the code through the compiler's parser,
2897 # not just through cpp. "Syntax error" is here to catch this case.
2898 cat >conftest.
$ac_ext <<_ACEOF
2901 cat confdefs.h
>>conftest.
$ac_ext
2902 cat >>conftest.
$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2905 # include <limits.h>
2907 # include <assert.h>
2911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2912 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2914 grep -v '^ *+' conftest.er1
>conftest.err
2916 cat conftest.err
>&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } >/dev
/null
; then
2919 if test -s conftest.err
; then
2920 ac_cpp_err
=$ac_c_preproc_warn_flag
2921 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2928 if test -z "$ac_cpp_err"; then
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.
$ac_ext >&5
2934 # Broken: fails on valid input.
2937 rm -f conftest.err conftest.
$ac_ext
2939 # OK, works on sane cases. Now check whether non-existent headers
2940 # can be detected and how.
2941 cat >conftest.
$ac_ext <<_ACEOF
2944 cat confdefs.h
>>conftest.
$ac_ext
2945 cat >>conftest.
$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947 #include <ac_nonexistent.h>
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2952 grep -v '^ *+' conftest.er1
>conftest.err
2954 cat conftest.err
>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev
/null
; then
2957 if test -s conftest.err
; then
2958 ac_cpp_err
=$ac_c_preproc_warn_flag
2959 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2966 if test -z "$ac_cpp_err"; then
2967 # Broken: success on invalid input.
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.
$ac_ext >&5
2973 # Passes both tests.
2977 rm -f conftest.err conftest.
$ac_ext
2980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2981 rm -f conftest.err conftest.
$ac_ext
2982 if $ac_preproc_ok; then
2994 echo "$as_me:$LINENO: result: $CPP" >&5
2995 echo "${ECHO_T}$CPP" >&6
2997 for ac_c_preproc_warn_flag
in '' yes
2999 # Use a header file that comes with gcc, so configuring glibc
3000 # with a fresh cross-compiler works.
3001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3002 # <limits.h> exists even on freestanding compilers.
3003 # On the NeXT, cc -E runs the code through the compiler's parser,
3004 # not just through cpp. "Syntax error" is here to catch this case.
3005 cat >conftest.
$ac_ext <<_ACEOF
3008 cat confdefs.h
>>conftest.
$ac_ext
3009 cat >>conftest.
$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3012 # include <limits.h>
3014 # include <assert.h>
3018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3019 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3021 grep -v '^ *+' conftest.er1
>conftest.err
3023 cat conftest.err
>&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } >/dev
/null
; then
3026 if test -s conftest.err
; then
3027 ac_cpp_err
=$ac_c_preproc_warn_flag
3028 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3035 if test -z "$ac_cpp_err"; then
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.
$ac_ext >&5
3041 # Broken: fails on valid input.
3044 rm -f conftest.err conftest.
$ac_ext
3046 # OK, works on sane cases. Now check whether non-existent headers
3047 # can be detected and how.
3048 cat >conftest.
$ac_ext <<_ACEOF
3051 cat confdefs.h
>>conftest.
$ac_ext
3052 cat >>conftest.
$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3054 #include <ac_nonexistent.h>
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3059 grep -v '^ *+' conftest.er1
>conftest.err
3061 cat conftest.err
>&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev
/null
; then
3064 if test -s conftest.err
; then
3065 ac_cpp_err
=$ac_c_preproc_warn_flag
3066 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3073 if test -z "$ac_cpp_err"; then
3074 # Broken: success on invalid input.
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.
$ac_ext >&5
3080 # Passes both tests.
3084 rm -f conftest.err conftest.
$ac_ext
3087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3088 rm -f conftest.err conftest.
$ac_ext
3089 if $ac_preproc_ok; then
3092 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3093 See \`config.log' for more details." >&5
3094 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3095 See \`config.log' for more details." >&2;}
3096 { (exit 1); exit 1; }; }
3100 ac_cpp
='$CPP $CPPFLAGS'
3101 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3106 echo "$as_me:$LINENO: checking for inline" >&5
3107 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3108 if test "${ac_cv_c_inline+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 for ac_kw
in inline __inline__ __inline
; do
3113 cat >conftest.
$ac_ext <<_ACEOF
3116 cat confdefs.h
>>conftest.
$ac_ext
3117 cat >>conftest.
$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3121 static $ac_kw foo_t static_foo () {return 0; }
3122 $ac_kw foo_t foo () {return 0; }
3126 rm -f conftest.
$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128 (eval $ac_compile) 2>conftest.er1
3130 grep -v '^ *+' conftest.er1
>conftest.err
3132 cat conftest.err
>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try
='test -z "$ac_c_werror_flag"
3136 || test ! -s conftest.err'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try
='test -s conftest.$ac_objext'
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3148 ac_cv_c_inline
=$ac_kw; break
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.
$ac_ext >&5
3154 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3158 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3159 echo "${ECHO_T}$ac_cv_c_inline" >&6
3162 case $ac_cv_c_inline in
3165 case $ac_cv_c_inline in
3167 *) ac_val
=$ac_cv_c_inline;;
3169 cat >>confdefs.h
<<_ACEOF
3171 #define inline $ac_val
3178 echo "$as_me:$LINENO: checking for long long int" >&5
3179 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3180 if test "${ac_cv_c_long_long+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 cat >conftest.
$ac_ext <<_ACEOF
3186 cat confdefs.h
>>conftest.
$ac_ext
3187 cat >>conftest.
$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3198 rm -f conftest.
$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>conftest.er1
3202 grep -v '^ *+' conftest.er1
>conftest.err
3204 cat conftest.err
>&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try
='test -z "$ac_c_werror_flag"
3208 || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try
='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 ac_cv_c_long_long
=yes
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.
$ac_ext >&5
3225 ac_cv_c_long_long
=no
3227 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3229 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3230 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3231 if test $ac_cv_c_long_long = yes; then
3233 cat >>confdefs.h
<<\_ACEOF
3234 #define HAVE_LONG_LONG 1
3238 echo "$as_me:$LINENO: checking for __int64" >&5
3239 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3240 if test "${ac_cv_c___int64+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 cat >conftest.
$ac_ext <<_ACEOF
3246 cat confdefs.h
>>conftest.
$ac_ext
3247 cat >>conftest.
$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3258 rm -f conftest.
$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>conftest.er1
3262 grep -v '^ *+' conftest.er1
>conftest.err
3264 cat conftest.err
>&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } &&
3267 { ac_try
='test -z "$ac_c_werror_flag"
3268 || test ! -s conftest.err'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; } &&
3274 { ac_try
='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.
$ac_ext >&5
3287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3289 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3290 echo "${ECHO_T}$ac_cv_c___int64" >&6
3291 if test $ac_cv_c___int64 = yes; then
3293 cat >>confdefs.h
<<\_ACEOF
3294 #define HAVE___INT64 1
3300 # sizeof(char) is 1 by definition.
3302 echo "$as_me:$LINENO: checking for egrep" >&5
3303 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3304 if test "${ac_cv_prog_egrep+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3308 then ac_cv_prog_egrep
='grep -E'
3309 else ac_cv_prog_egrep
='egrep'
3312 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3313 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3314 EGREP
=$ac_cv_prog_egrep
3317 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3319 if test "${ac_cv_header_stdc+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3322 cat >conftest.
$ac_ext <<_ACEOF
3325 cat confdefs.h
>>conftest.
$ac_ext
3326 cat >>conftest.
$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3341 rm -f conftest.
$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>conftest.er1
3345 grep -v '^ *+' conftest.er1
>conftest.err
3347 cat conftest.err
>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try
='test -z "$ac_c_werror_flag"
3351 || test ! -s conftest.err'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try
='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 ac_cv_header_stdc
=yes
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.
$ac_ext >&5
3368 ac_cv_header_stdc
=no
3370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3372 if test $ac_cv_header_stdc = yes; then
3373 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3374 cat >conftest.
$ac_ext <<_ACEOF
3377 cat confdefs.h
>>conftest.
$ac_ext
3378 cat >>conftest.
$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3384 $EGREP "memchr" >/dev
/null
2>&1; then
3387 ac_cv_header_stdc
=no
3393 if test $ac_cv_header_stdc = yes; then
3394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3395 cat >conftest.
$ac_ext <<_ACEOF
3398 cat confdefs.h
>>conftest.
$ac_ext
3399 cat >>conftest.
$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3405 $EGREP "free" >/dev
/null
2>&1; then
3408 ac_cv_header_stdc
=no
3414 if test $ac_cv_header_stdc = yes; then
3415 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3416 if test "$cross_compiling" = yes; then
3419 cat >conftest.
$ac_ext <<_ACEOF
3422 cat confdefs.h
>>conftest.
$ac_ext
3423 cat >>conftest.
$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3426 #if ((' ' & 0x0FF) == 0x020)
3427 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3428 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3430 # define ISLOWER(c) \
3431 (('a' <= (c) && (c) <= 'i') \
3432 || ('j' <= (c) && (c) <= 'r') \
3433 || ('s' <= (c) && (c) <= 'z'))
3434 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3437 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3442 for (i = 0; i < 256; i++)
3443 if (XOR (islower (i), ISLOWER (i))
3444 || toupper (i) != TOUPPER (i))
3449 rm -f conftest
$ac_exeext
3450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3451 (eval $ac_link) 2>&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3462 echo "$as_me: program exited with status $ac_status" >&5
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.
$ac_ext >&5
3467 ac_cv_header_stdc
=no
3469 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3473 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3474 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3475 if test $ac_cv_header_stdc = yes; then
3477 cat >>confdefs.h
<<\_ACEOF
3478 #define STDC_HEADERS 1
3483 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3493 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3494 inttypes.h stdint.h unistd.h
3496 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3497 echo "$as_me:$LINENO: checking for $ac_header" >&5
3498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 cat >conftest.
$ac_ext <<_ACEOF
3505 cat confdefs.h
>>conftest.
$ac_ext
3506 cat >>conftest.
$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 $ac_includes_default
3510 #include <$ac_header>
3512 rm -f conftest.
$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3516 grep -v '^ *+' conftest.er1
>conftest.err
3518 cat conftest.err
>&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try
='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try
='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 eval "$as_ac_Header=yes"
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.
$ac_ext >&5
3539 eval "$as_ac_Header=no"
3541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3546 cat >>confdefs.h
<<_ACEOF
3547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3555 echo "$as_me:$LINENO: checking for void *" >&5
3556 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3557 if test "${ac_cv_type_void_p+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 cat >conftest.
$ac_ext <<_ACEOF
3563 cat confdefs.h
>>conftest.
$ac_ext
3564 cat >>conftest.
$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 $ac_includes_default
3572 if (sizeof (void *))
3578 rm -f conftest.
$ac_objext
3579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3580 (eval $ac_compile) 2>conftest.er1
3582 grep -v '^ *+' conftest.er1
>conftest.err
3584 cat conftest.err
>&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } &&
3587 { ac_try
='test -z "$ac_c_werror_flag"
3588 || test ! -s conftest.err'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; } &&
3594 { ac_try
='test -s conftest.$ac_objext'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; }; then
3600 ac_cv_type_void_p
=yes
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.
$ac_ext >&5
3605 ac_cv_type_void_p
=no
3607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3609 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3610 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3612 echo "$as_me:$LINENO: checking size of void *" >&5
3613 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3614 if test "${ac_cv_sizeof_void_p+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 if test "$ac_cv_type_void_p" = yes; then
3618 # The cast to unsigned long works around a bug in the HP C Compiler
3619 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3620 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3621 # This bug is HP SR number 8606223364.
3622 if test "$cross_compiling" = yes; then
3623 # Depending upon the size, compute the lo and hi bounds.
3624 cat >conftest.
$ac_ext <<_ACEOF
3627 cat confdefs.h
>>conftest.
$ac_ext
3628 cat >>conftest.
$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 $ac_includes_default
3634 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3641 rm -f conftest.
$ac_objext
3642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3643 (eval $ac_compile) 2>conftest.er1
3645 grep -v '^ *+' conftest.er1
>conftest.err
3647 cat conftest.err
>&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } &&
3650 { ac_try
='test -z "$ac_c_werror_flag"
3651 || test ! -s conftest.err'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; } &&
3657 { ac_try
='test -s conftest.$ac_objext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3665 cat >conftest.
$ac_ext <<_ACEOF
3668 cat confdefs.h
>>conftest.
$ac_ext
3669 cat >>conftest.
$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3671 $ac_includes_default
3675 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3682 rm -f conftest.
$ac_objext
3683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3684 (eval $ac_compile) 2>conftest.er1
3686 grep -v '^ *+' conftest.er1
>conftest.err
3688 cat conftest.err
>&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try
='test -z "$ac_c_werror_flag"
3692 || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try
='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 ac_hi
=$ac_mid; break
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.
$ac_ext >&5
3709 ac_lo
=`expr $ac_mid + 1`
3710 if test $ac_lo -le $ac_mid; then
3714 ac_mid
=`expr 2 '*' $ac_mid + 1`
3716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.
$ac_ext >&5
3722 cat >conftest.
$ac_ext <<_ACEOF
3725 cat confdefs.h
>>conftest.
$ac_ext
3726 cat >>conftest.
$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3728 $ac_includes_default
3732 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3739 rm -f conftest.
$ac_objext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>conftest.er1
3743 grep -v '^ *+' conftest.er1
>conftest.err
3745 cat conftest.err
>&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try
='test -z "$ac_c_werror_flag"
3749 || test ! -s conftest.err'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; } &&
3755 { ac_try
='test -s conftest.$ac_objext'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3763 cat >conftest.
$ac_ext <<_ACEOF
3766 cat confdefs.h
>>conftest.
$ac_ext
3767 cat >>conftest.
$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3769 $ac_includes_default
3773 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3780 rm -f conftest.
$ac_objext
3781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3782 (eval $ac_compile) 2>conftest.er1
3784 grep -v '^ *+' conftest.er1
>conftest.err
3786 cat conftest.err
>&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); } &&
3789 { ac_try
='test -z "$ac_c_werror_flag"
3790 || test ! -s conftest.err'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; } &&
3796 { ac_try
='test -s conftest.$ac_objext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 ac_lo
=$ac_mid; break
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.
$ac_ext >&5
3807 ac_hi
=`expr '(' $ac_mid ')' - 1`
3808 if test $ac_mid -le $ac_hi; then
3812 ac_mid
=`expr 2 '*' $ac_mid`
3814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.
$ac_ext >&5
3822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3824 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3825 # Binary search between lo and hi bounds.
3826 while test "x$ac_lo" != "x$ac_hi"; do
3827 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3828 cat >conftest.
$ac_ext <<_ACEOF
3831 cat confdefs.h
>>conftest.
$ac_ext
3832 cat >>conftest.
$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834 $ac_includes_default
3838 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3845 rm -f conftest.
$ac_objext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1
>conftest.err
3851 cat conftest.err
>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try
='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try
='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.
$ac_ext >&5
3872 ac_lo
=`expr '(' $ac_mid ')' + 1`
3874 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3877 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3878 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3879 See \`config.log' for more details." >&5
3880 echo "$as_me: error: cannot compute sizeof (void *), 77
3881 See \`config.log' for more details." >&2;}
3882 { (exit 1); exit 1; }; } ;;
3885 if test "$cross_compiling" = yes; then
3886 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3887 See \`config.log' for more details." >&5
3888 echo "$as_me: error: cannot run test program while cross compiling
3889 See \`config.log' for more details." >&2;}
3890 { (exit 1); exit 1; }; }
3892 cat >conftest.
$ac_ext <<_ACEOF
3895 cat confdefs.h
>>conftest.
$ac_ext
3896 cat >>conftest.
$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 $ac_includes_default
3899 long longval () { return (long) (sizeof (void *)); }
3900 unsigned long ulongval () { return (long) (sizeof (void *)); }
3907 FILE *f = fopen ("conftest.val", "w");
3910 if (((long) (sizeof (void *))) < 0)
3912 long i = longval ();
3913 if (i != ((long) (sizeof (void *))))
3915 fprintf (f, "%ld\n", i);
3919 unsigned long i = ulongval ();
3920 if (i != ((long) (sizeof (void *))))
3922 fprintf (f, "%lu\n", i);
3924 exit (ferror (f) || fclose (f) != 0);
3930 rm -f conftest
$ac_exeext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932 (eval $ac_link) 2>&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3941 ac_cv_sizeof_void_p
=`cat conftest.val`
3943 echo "$as_me: program exited with status $ac_status" >&5
3944 echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.
$ac_ext >&5
3948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3949 See \`config.log' for more details." >&5
3950 echo "$as_me: error: cannot compute sizeof (void *), 77
3951 See \`config.log' for more details." >&2;}
3952 { (exit 1); exit 1; }; }
3954 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3959 ac_cv_sizeof_void_p
=0
3962 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3963 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3964 cat >>confdefs.h
<<_ACEOF
3965 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3969 echo "$as_me:$LINENO: checking for short" >&5
3970 echo $ECHO_N "checking for short... $ECHO_C" >&6
3971 if test "${ac_cv_type_short+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 cat >conftest.
$ac_ext <<_ACEOF
3977 cat confdefs.h
>>conftest.
$ac_ext
3978 cat >>conftest.
$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3980 $ac_includes_default
3992 rm -f conftest.
$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>conftest.er1
3996 grep -v '^ *+' conftest.er1
>conftest.err
3998 cat conftest.err
>&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try
='test -z "$ac_c_werror_flag"
4002 || test ! -s conftest.err'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try
='test -s conftest.$ac_objext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 ac_cv_type_short
=yes
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.
$ac_ext >&5
4021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4023 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4024 echo "${ECHO_T}$ac_cv_type_short" >&6
4026 echo "$as_me:$LINENO: checking size of short" >&5
4027 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4028 if test "${ac_cv_sizeof_short+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 if test "$ac_cv_type_short" = yes; then
4032 # The cast to unsigned long works around a bug in the HP C Compiler
4033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4035 # This bug is HP SR number 8606223364.
4036 if test "$cross_compiling" = yes; then
4037 # Depending upon the size, compute the lo and hi bounds.
4038 cat >conftest.
$ac_ext <<_ACEOF
4041 cat confdefs.h
>>conftest.
$ac_ext
4042 cat >>conftest.
$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4044 $ac_includes_default
4048 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4055 rm -f conftest.
$ac_objext
4056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4057 (eval $ac_compile) 2>conftest.er1
4059 grep -v '^ *+' conftest.er1
>conftest.err
4061 cat conftest.err
>&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } &&
4064 { ac_try
='test -z "$ac_c_werror_flag"
4065 || test ! -s conftest.err'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; } &&
4071 { ac_try
='test -s conftest.$ac_objext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4079 cat >conftest.
$ac_ext <<_ACEOF
4082 cat confdefs.h
>>conftest.
$ac_ext
4083 cat >>conftest.
$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 $ac_includes_default
4089 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4096 rm -f conftest.
$ac_objext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098 (eval $ac_compile) 2>conftest.er1
4100 grep -v '^ *+' conftest.er1
>conftest.err
4102 cat conftest.err
>&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } &&
4105 { ac_try
='test -z "$ac_c_werror_flag"
4106 || test ! -s conftest.err'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; } &&
4112 { ac_try
='test -s conftest.$ac_objext'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; }; then
4118 ac_hi
=$ac_mid; break
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.
$ac_ext >&5
4123 ac_lo
=`expr $ac_mid + 1`
4124 if test $ac_lo -le $ac_mid; then
4128 ac_mid
=`expr 2 '*' $ac_mid + 1`
4130 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.
$ac_ext >&5
4136 cat >conftest.
$ac_ext <<_ACEOF
4139 cat confdefs.h
>>conftest.
$ac_ext
4140 cat >>conftest.
$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 $ac_includes_default
4146 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4153 rm -f conftest.
$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>conftest.er1
4157 grep -v '^ *+' conftest.er1
>conftest.err
4159 cat conftest.err
>&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try
='test -z "$ac_c_werror_flag"
4163 || test ! -s conftest.err'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; } &&
4169 { ac_try
='test -s conftest.$ac_objext'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4177 cat >conftest.
$ac_ext <<_ACEOF
4180 cat confdefs.h
>>conftest.
$ac_ext
4181 cat >>conftest.
$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4183 $ac_includes_default
4187 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4194 rm -f conftest.
$ac_objext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4196 (eval $ac_compile) 2>conftest.er1
4198 grep -v '^ *+' conftest.er1
>conftest.err
4200 cat conftest.err
>&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try
='test -z "$ac_c_werror_flag"
4204 || test ! -s conftest.err'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; } &&
4210 { ac_try
='test -s conftest.$ac_objext'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 ac_lo
=$ac_mid; break
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.
$ac_ext >&5
4221 ac_hi
=`expr '(' $ac_mid ')' - 1`
4222 if test $ac_mid -le $ac_hi; then
4226 ac_mid
=`expr 2 '*' $ac_mid`
4228 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.
$ac_ext >&5
4236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4238 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4239 # Binary search between lo and hi bounds.
4240 while test "x$ac_lo" != "x$ac_hi"; do
4241 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4242 cat >conftest.
$ac_ext <<_ACEOF
4245 cat confdefs.h
>>conftest.
$ac_ext
4246 cat >>conftest.
$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248 $ac_includes_default
4252 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4259 rm -f conftest.
$ac_objext
4260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261 (eval $ac_compile) 2>conftest.er1
4263 grep -v '^ *+' conftest.er1
>conftest.err
4265 cat conftest.err
>&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try
='test -z "$ac_c_werror_flag"
4269 || test ! -s conftest.err'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; } &&
4275 { ac_try
='test -s conftest.$ac_objext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.
$ac_ext >&5
4286 ac_lo
=`expr '(' $ac_mid ')' + 1`
4288 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4291 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4292 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4293 See \`config.log' for more details." >&5
4294 echo "$as_me: error: cannot compute sizeof (short), 77
4295 See \`config.log' for more details." >&2;}
4296 { (exit 1); exit 1; }; } ;;
4299 if test "$cross_compiling" = yes; then
4300 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4301 See \`config.log' for more details." >&5
4302 echo "$as_me: error: cannot run test program while cross compiling
4303 See \`config.log' for more details." >&2;}
4304 { (exit 1); exit 1; }; }
4306 cat >conftest.
$ac_ext <<_ACEOF
4309 cat confdefs.h
>>conftest.
$ac_ext
4310 cat >>conftest.
$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4312 $ac_includes_default
4313 long longval () { return (long) (sizeof (short)); }
4314 unsigned long ulongval () { return (long) (sizeof (short)); }
4321 FILE *f = fopen ("conftest.val", "w");
4324 if (((long) (sizeof (short))) < 0)
4326 long i = longval ();
4327 if (i != ((long) (sizeof (short))))
4329 fprintf (f, "%ld\n", i);
4333 unsigned long i = ulongval ();
4334 if (i != ((long) (sizeof (short))))
4336 fprintf (f, "%lu\n", i);
4338 exit (ferror (f) || fclose (f) != 0);
4344 rm -f conftest
$ac_exeext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346 (eval $ac_link) 2>&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 ac_cv_sizeof_short
=`cat conftest.val`
4357 echo "$as_me: program exited with status $ac_status" >&5
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.
$ac_ext >&5
4362 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4363 See \`config.log' for more details." >&5
4364 echo "$as_me: error: cannot compute sizeof (short), 77
4365 See \`config.log' for more details." >&2;}
4366 { (exit 1); exit 1; }; }
4368 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4373 ac_cv_sizeof_short
=0
4376 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4377 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4378 cat >>confdefs.h
<<_ACEOF
4379 #define SIZEOF_SHORT $ac_cv_sizeof_short
4383 echo "$as_me:$LINENO: checking for int" >&5
4384 echo $ECHO_N "checking for int... $ECHO_C" >&6
4385 if test "${ac_cv_type_int+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 cat >conftest.
$ac_ext <<_ACEOF
4391 cat confdefs.h
>>conftest.
$ac_ext
4392 cat >>conftest.
$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 $ac_includes_default
4406 rm -f conftest.
$ac_objext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408 (eval $ac_compile) 2>conftest.er1
4410 grep -v '^ *+' conftest.er1
>conftest.err
4412 cat conftest.err
>&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try
='test -z "$ac_c_werror_flag"
4416 || test ! -s conftest.err'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try
='test -s conftest.$ac_objext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.
$ac_ext >&5
4435 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4437 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4438 echo "${ECHO_T}$ac_cv_type_int" >&6
4440 echo "$as_me:$LINENO: checking size of int" >&5
4441 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4442 if test "${ac_cv_sizeof_int+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 if test "$ac_cv_type_int" = yes; then
4446 # The cast to unsigned long works around a bug in the HP C Compiler
4447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4449 # This bug is HP SR number 8606223364.
4450 if test "$cross_compiling" = yes; then
4451 # Depending upon the size, compute the lo and hi bounds.
4452 cat >conftest.
$ac_ext <<_ACEOF
4455 cat confdefs.h
>>conftest.
$ac_ext
4456 cat >>conftest.
$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 $ac_includes_default
4462 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4469 rm -f conftest.
$ac_objext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>conftest.er1
4473 grep -v '^ *+' conftest.er1
>conftest.err
4475 cat conftest.err
>&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try
='test -z "$ac_c_werror_flag"
4479 || test ! -s conftest.err'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; } &&
4485 { ac_try
='test -s conftest.$ac_objext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4493 cat >conftest.
$ac_ext <<_ACEOF
4496 cat confdefs.h
>>conftest.
$ac_ext
4497 cat >>conftest.
$ac_ext <<_ACEOF
4498 /* end confdefs.h. */
4499 $ac_includes_default
4503 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4510 rm -f conftest.
$ac_objext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4512 (eval $ac_compile) 2>conftest.er1
4514 grep -v '^ *+' conftest.er1
>conftest.err
4516 cat conftest.err
>&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } &&
4519 { ac_try
='test -z "$ac_c_werror_flag"
4520 || test ! -s conftest.err'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; } &&
4526 { ac_try
='test -s conftest.$ac_objext'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 ac_hi
=$ac_mid; break
4534 echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.
$ac_ext >&5
4537 ac_lo
=`expr $ac_mid + 1`
4538 if test $ac_lo -le $ac_mid; then
4542 ac_mid
=`expr 2 '*' $ac_mid + 1`
4544 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.
$ac_ext >&5
4550 cat >conftest.
$ac_ext <<_ACEOF
4553 cat confdefs.h
>>conftest.
$ac_ext
4554 cat >>conftest.
$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 $ac_includes_default
4560 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4567 rm -f conftest.
$ac_objext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569 (eval $ac_compile) 2>conftest.er1
4571 grep -v '^ *+' conftest.er1
>conftest.err
4573 cat conftest.err
>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } &&
4576 { ac_try
='test -z "$ac_c_werror_flag"
4577 || test ! -s conftest.err'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; } &&
4583 { ac_try
='test -s conftest.$ac_objext'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4591 cat >conftest.
$ac_ext <<_ACEOF
4594 cat confdefs.h
>>conftest.
$ac_ext
4595 cat >>conftest.
$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597 $ac_includes_default
4601 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4608 rm -f conftest.
$ac_objext
4609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4610 (eval $ac_compile) 2>conftest.er1
4612 grep -v '^ *+' conftest.er1
>conftest.err
4614 cat conftest.err
>&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } &&
4617 { ac_try
='test -z "$ac_c_werror_flag"
4618 || test ! -s conftest.err'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; } &&
4624 { ac_try
='test -s conftest.$ac_objext'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; }; then
4630 ac_lo
=$ac_mid; break
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.
$ac_ext >&5
4635 ac_hi
=`expr '(' $ac_mid ')' - 1`
4636 if test $ac_mid -le $ac_hi; then
4640 ac_mid
=`expr 2 '*' $ac_mid`
4642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.
$ac_ext >&5
4650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4652 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4653 # Binary search between lo and hi bounds.
4654 while test "x$ac_lo" != "x$ac_hi"; do
4655 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4656 cat >conftest.
$ac_ext <<_ACEOF
4659 cat confdefs.h
>>conftest.
$ac_ext
4660 cat >>conftest.
$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4662 $ac_includes_default
4666 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4673 rm -f conftest.
$ac_objext
4674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4675 (eval $ac_compile) 2>conftest.er1
4677 grep -v '^ *+' conftest.er1
>conftest.err
4679 cat conftest.err
>&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } &&
4682 { ac_try
='test -z "$ac_c_werror_flag"
4683 || test ! -s conftest.err'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; } &&
4689 { ac_try
='test -s conftest.$ac_objext'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4697 echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.
$ac_ext >&5
4700 ac_lo
=`expr '(' $ac_mid ')' + 1`
4702 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4705 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4706 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4707 See \`config.log' for more details." >&5
4708 echo "$as_me: error: cannot compute sizeof (int), 77
4709 See \`config.log' for more details." >&2;}
4710 { (exit 1); exit 1; }; } ;;
4713 if test "$cross_compiling" = yes; then
4714 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4715 See \`config.log' for more details." >&5
4716 echo "$as_me: error: cannot run test program while cross compiling
4717 See \`config.log' for more details." >&2;}
4718 { (exit 1); exit 1; }; }
4720 cat >conftest.
$ac_ext <<_ACEOF
4723 cat confdefs.h
>>conftest.
$ac_ext
4724 cat >>conftest.
$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 $ac_includes_default
4727 long longval () { return (long) (sizeof (int)); }
4728 unsigned long ulongval () { return (long) (sizeof (int)); }
4735 FILE *f = fopen ("conftest.val", "w");
4738 if (((long) (sizeof (int))) < 0)
4740 long i = longval ();
4741 if (i != ((long) (sizeof (int))))
4743 fprintf (f, "%ld\n", i);
4747 unsigned long i = ulongval ();
4748 if (i != ((long) (sizeof (int))))
4750 fprintf (f, "%lu\n", i);
4752 exit (ferror (f) || fclose (f) != 0);
4758 rm -f conftest
$ac_exeext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4760 (eval $ac_link) 2>&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 ac_cv_sizeof_int
=`cat conftest.val`
4771 echo "$as_me: program exited with status $ac_status" >&5
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.
$ac_ext >&5
4776 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4777 See \`config.log' for more details." >&5
4778 echo "$as_me: error: cannot compute sizeof (int), 77
4779 See \`config.log' for more details." >&2;}
4780 { (exit 1); exit 1; }; }
4782 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4790 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4791 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4792 cat >>confdefs.h
<<_ACEOF
4793 #define SIZEOF_INT $ac_cv_sizeof_int
4797 echo "$as_me:$LINENO: checking for long" >&5
4798 echo $ECHO_N "checking for long... $ECHO_C" >&6
4799 if test "${ac_cv_type_long+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 cat >conftest.
$ac_ext <<_ACEOF
4805 cat confdefs.h
>>conftest.
$ac_ext
4806 cat >>conftest.
$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 $ac_includes_default
4820 rm -f conftest.
$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>conftest.er1
4824 grep -v '^ *+' conftest.er1
>conftest.err
4826 cat conftest.err
>&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try
='test -z "$ac_c_werror_flag"
4830 || test ! -s conftest.err'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; } &&
4836 { ac_try
='test -s conftest.$ac_objext'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; }; then
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.
$ac_ext >&5
4849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4851 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4852 echo "${ECHO_T}$ac_cv_type_long" >&6
4854 echo "$as_me:$LINENO: checking size of long" >&5
4855 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4856 if test "${ac_cv_sizeof_long+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 if test "$ac_cv_type_long" = yes; then
4860 # The cast to unsigned long works around a bug in the HP C Compiler
4861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4863 # This bug is HP SR number 8606223364.
4864 if test "$cross_compiling" = yes; then
4865 # Depending upon the size, compute the lo and hi bounds.
4866 cat >conftest.
$ac_ext <<_ACEOF
4869 cat confdefs.h
>>conftest.
$ac_ext
4870 cat >>conftest.
$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 $ac_includes_default
4876 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4883 rm -f conftest.
$ac_objext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885 (eval $ac_compile) 2>conftest.er1
4887 grep -v '^ *+' conftest.er1
>conftest.err
4889 cat conftest.err
>&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try
='test -z "$ac_c_werror_flag"
4893 || test ! -s conftest.err'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; } &&
4899 { ac_try
='test -s conftest.$ac_objext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4907 cat >conftest.
$ac_ext <<_ACEOF
4910 cat confdefs.h
>>conftest.
$ac_ext
4911 cat >>conftest.
$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 $ac_includes_default
4917 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4924 rm -f conftest.
$ac_objext
4925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4926 (eval $ac_compile) 2>conftest.er1
4928 grep -v '^ *+' conftest.er1
>conftest.err
4930 cat conftest.err
>&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } &&
4933 { ac_try
='test -z "$ac_c_werror_flag"
4934 || test ! -s conftest.err'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; } &&
4940 { ac_try
='test -s conftest.$ac_objext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 ac_hi
=$ac_mid; break
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.
$ac_ext >&5
4951 ac_lo
=`expr $ac_mid + 1`
4952 if test $ac_lo -le $ac_mid; then
4956 ac_mid
=`expr 2 '*' $ac_mid + 1`
4958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.
$ac_ext >&5
4964 cat >conftest.
$ac_ext <<_ACEOF
4967 cat confdefs.h
>>conftest.
$ac_ext
4968 cat >>conftest.
$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 $ac_includes_default
4974 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4981 rm -f conftest.
$ac_objext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983 (eval $ac_compile) 2>conftest.er1
4985 grep -v '^ *+' conftest.er1
>conftest.err
4987 cat conftest.err
>&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try
='test -z "$ac_c_werror_flag"
4991 || test ! -s conftest.err'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; } &&
4997 { ac_try
='test -s conftest.$ac_objext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5005 cat >conftest.
$ac_ext <<_ACEOF
5008 cat confdefs.h
>>conftest.
$ac_ext
5009 cat >>conftest.
$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011 $ac_includes_default
5015 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5022 rm -f conftest.
$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>conftest.er1
5026 grep -v '^ *+' conftest.er1
>conftest.err
5028 cat conftest.err
>&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try
='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try
='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_lo
=$ac_mid; break
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.
$ac_ext >&5
5049 ac_hi
=`expr '(' $ac_mid ')' - 1`
5050 if test $ac_mid -le $ac_hi; then
5054 ac_mid
=`expr 2 '*' $ac_mid`
5056 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.
$ac_ext >&5
5064 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5066 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5067 # Binary search between lo and hi bounds.
5068 while test "x$ac_lo" != "x$ac_hi"; do
5069 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5070 cat >conftest.
$ac_ext <<_ACEOF
5073 cat confdefs.h
>>conftest.
$ac_ext
5074 cat >>conftest.
$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5080 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5087 rm -f conftest.
$ac_objext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089 (eval $ac_compile) 2>conftest.er1
5091 grep -v '^ *+' conftest.er1
>conftest.err
5093 cat conftest.err
>&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try
='test -z "$ac_c_werror_flag"
5097 || test ! -s conftest.err'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; } &&
5103 { ac_try
='test -s conftest.$ac_objext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.
$ac_ext >&5
5114 ac_lo
=`expr '(' $ac_mid ')' + 1`
5116 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5119 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5120 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: cannot compute sizeof (long), 77
5123 See \`config.log' for more details." >&2;}
5124 { (exit 1); exit 1; }; } ;;
5127 if test "$cross_compiling" = yes; then
5128 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5129 See \`config.log' for more details." >&5
5130 echo "$as_me: error: cannot run test program while cross compiling
5131 See \`config.log' for more details." >&2;}
5132 { (exit 1); exit 1; }; }
5134 cat >conftest.
$ac_ext <<_ACEOF
5137 cat confdefs.h
>>conftest.
$ac_ext
5138 cat >>conftest.
$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 $ac_includes_default
5141 long longval () { return (long) (sizeof (long)); }
5142 unsigned long ulongval () { return (long) (sizeof (long)); }
5149 FILE *f = fopen ("conftest.val", "w");
5152 if (((long) (sizeof (long))) < 0)
5154 long i = longval ();
5155 if (i != ((long) (sizeof (long))))
5157 fprintf (f, "%ld\n", i);
5161 unsigned long i = ulongval ();
5162 if (i != ((long) (sizeof (long))))
5164 fprintf (f, "%lu\n", i);
5166 exit (ferror (f) || fclose (f) != 0);
5172 rm -f conftest
$ac_exeext
5173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5174 (eval $ac_link) 2>&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; }; then
5183 ac_cv_sizeof_long
=`cat conftest.val`
5185 echo "$as_me: program exited with status $ac_status" >&5
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.
$ac_ext >&5
5190 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5191 See \`config.log' for more details." >&5
5192 echo "$as_me: error: cannot compute sizeof (long), 77
5193 See \`config.log' for more details." >&2;}
5194 { (exit 1); exit 1; }; }
5196 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5204 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5205 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5206 cat >>confdefs.h
<<_ACEOF
5207 #define SIZEOF_LONG $ac_cv_sizeof_long
5211 if test $ac_cv_c_long_long = yes; then
5212 echo "$as_me:$LINENO: checking for long long" >&5
5213 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5214 if test "${ac_cv_type_long_long+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 cat >conftest.
$ac_ext <<_ACEOF
5220 cat confdefs.h
>>conftest.
$ac_ext
5221 cat >>conftest.
$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 $ac_includes_default
5227 if ((long long *) 0)
5229 if (sizeof (long long))
5235 rm -f conftest.
$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237 (eval $ac_compile) 2>conftest.er1
5239 grep -v '^ *+' conftest.er1
>conftest.err
5241 cat conftest.err
>&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try
='test -z "$ac_c_werror_flag"
5245 || test ! -s conftest.err'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try
='test -s conftest.$ac_objext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_cv_type_long_long
=yes
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.
$ac_ext >&5
5262 ac_cv_type_long_long
=no
5264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5266 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5267 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5269 echo "$as_me:$LINENO: checking size of long long" >&5
5270 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5271 if test "${ac_cv_sizeof_long_long+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 if test "$ac_cv_type_long_long" = yes; then
5275 # The cast to unsigned long works around a bug in the HP C Compiler
5276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5278 # This bug is HP SR number 8606223364.
5279 if test "$cross_compiling" = yes; then
5280 # Depending upon the size, compute the lo and hi bounds.
5281 cat >conftest.
$ac_ext <<_ACEOF
5284 cat confdefs.h
>>conftest.
$ac_ext
5285 cat >>conftest.
$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5287 $ac_includes_default
5291 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5298 rm -f conftest.
$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>conftest.er1
5302 grep -v '^ *+' conftest.er1
>conftest.err
5304 cat conftest.err
>&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try
='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try
='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5322 cat >conftest.
$ac_ext <<_ACEOF
5325 cat confdefs.h
>>conftest.
$ac_ext
5326 cat >>conftest.
$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 $ac_includes_default
5332 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5339 rm -f conftest.
$ac_objext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341 (eval $ac_compile) 2>conftest.er1
5343 grep -v '^ *+' conftest.er1
>conftest.err
5345 cat conftest.err
>&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try
='test -z "$ac_c_werror_flag"
5349 || test ! -s conftest.err'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; } &&
5355 { ac_try
='test -s conftest.$ac_objext'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; }; then
5361 ac_hi
=$ac_mid; break
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.
$ac_ext >&5
5366 ac_lo
=`expr $ac_mid + 1`
5367 if test $ac_lo -le $ac_mid; then
5371 ac_mid
=`expr 2 '*' $ac_mid + 1`
5373 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.
$ac_ext >&5
5379 cat >conftest.
$ac_ext <<_ACEOF
5382 cat confdefs.h
>>conftest.
$ac_ext
5383 cat >>conftest.
$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 $ac_includes_default
5389 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5396 rm -f conftest.
$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>conftest.er1
5400 grep -v '^ *+' conftest.er1
>conftest.err
5402 cat conftest.err
>&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try
='test -z "$ac_c_werror_flag"
5406 || test ! -s conftest.err'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try
='test -s conftest.$ac_objext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5420 cat >conftest.
$ac_ext <<_ACEOF
5423 cat confdefs.h
>>conftest.
$ac_ext
5424 cat >>conftest.
$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 $ac_includes_default
5430 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5437 rm -f conftest.
$ac_objext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439 (eval $ac_compile) 2>conftest.er1
5441 grep -v '^ *+' conftest.er1
>conftest.err
5443 cat conftest.err
>&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try
='test -z "$ac_c_werror_flag"
5447 || test ! -s conftest.err'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; } &&
5453 { ac_try
='test -s conftest.$ac_objext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 ac_lo
=$ac_mid; break
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.
$ac_ext >&5
5464 ac_hi
=`expr '(' $ac_mid ')' - 1`
5465 if test $ac_mid -le $ac_hi; then
5469 ac_mid
=`expr 2 '*' $ac_mid`
5471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.
$ac_ext >&5
5479 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5481 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5482 # Binary search between lo and hi bounds.
5483 while test "x$ac_lo" != "x$ac_hi"; do
5484 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5485 cat >conftest.
$ac_ext <<_ACEOF
5488 cat confdefs.h
>>conftest.
$ac_ext
5489 cat >>conftest.
$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 $ac_includes_default
5495 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5502 rm -f conftest.
$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>conftest.er1
5506 grep -v '^ *+' conftest.er1
>conftest.err
5508 cat conftest.err
>&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try
='test -z "$ac_c_werror_flag"
5512 || test ! -s conftest.err'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } &&
5518 { ac_try
='test -s conftest.$ac_objext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.
$ac_ext >&5
5529 ac_lo
=`expr '(' $ac_mid ')' + 1`
5531 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5534 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5535 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5536 See \`config.log' for more details." >&5
5537 echo "$as_me: error: cannot compute sizeof (long long), 77
5538 See \`config.log' for more details." >&2;}
5539 { (exit 1); exit 1; }; } ;;
5542 if test "$cross_compiling" = yes; then
5543 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5544 See \`config.log' for more details." >&5
5545 echo "$as_me: error: cannot run test program while cross compiling
5546 See \`config.log' for more details." >&2;}
5547 { (exit 1); exit 1; }; }
5549 cat >conftest.
$ac_ext <<_ACEOF
5552 cat confdefs.h
>>conftest.
$ac_ext
5553 cat >>conftest.
$ac_ext <<_ACEOF
5554 /* end confdefs.h. */
5555 $ac_includes_default
5556 long longval () { return (long) (sizeof (long long)); }
5557 unsigned long ulongval () { return (long) (sizeof (long long)); }
5564 FILE *f = fopen ("conftest.val", "w");
5567 if (((long) (sizeof (long long))) < 0)
5569 long i = longval ();
5570 if (i != ((long) (sizeof (long long))))
5572 fprintf (f, "%ld\n", i);
5576 unsigned long i = ulongval ();
5577 if (i != ((long) (sizeof (long long))))
5579 fprintf (f, "%lu\n", i);
5581 exit (ferror (f) || fclose (f) != 0);
5587 rm -f conftest
$ac_exeext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5589 (eval $ac_link) 2>&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_sizeof_long_long
=`cat conftest.val`
5600 echo "$as_me: program exited with status $ac_status" >&5
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.
$ac_ext >&5
5605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5606 See \`config.log' for more details." >&5
5607 echo "$as_me: error: cannot compute sizeof (long long), 77
5608 See \`config.log' for more details." >&2;}
5609 { (exit 1); exit 1; }; }
5611 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5616 ac_cv_sizeof_long_long
=0
5619 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5620 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5621 cat >>confdefs.h
<<_ACEOF
5622 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5627 if test $ac_cv_c___int64 = yes; then
5628 echo "$as_me:$LINENO: checking for __int64" >&5
5629 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5630 if test "${ac_cv_type___int64+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 cat >conftest.
$ac_ext <<_ACEOF
5636 cat confdefs.h
>>conftest.
$ac_ext
5637 cat >>conftest.
$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5639 $ac_includes_default
5645 if (sizeof (__int64))
5651 rm -f conftest.
$ac_objext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5653 (eval $ac_compile) 2>conftest.er1
5655 grep -v '^ *+' conftest.er1
>conftest.err
5657 cat conftest.err
>&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try
='test -z "$ac_c_werror_flag"
5661 || test ! -s conftest.err'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try
='test -s conftest.$ac_objext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_type___int64
=yes
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.
$ac_ext >&5
5678 ac_cv_type___int64
=no
5680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5682 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5683 echo "${ECHO_T}$ac_cv_type___int64" >&6
5685 echo "$as_me:$LINENO: checking size of __int64" >&5
5686 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5687 if test "${ac_cv_sizeof___int64+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 if test "$ac_cv_type___int64" = yes; then
5691 # The cast to unsigned long works around a bug in the HP C Compiler
5692 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5693 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5694 # This bug is HP SR number 8606223364.
5695 if test "$cross_compiling" = yes; then
5696 # Depending upon the size, compute the lo and hi bounds.
5697 cat >conftest.
$ac_ext <<_ACEOF
5700 cat confdefs.h
>>conftest.
$ac_ext
5701 cat >>conftest.
$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 $ac_includes_default
5707 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5714 rm -f conftest.
$ac_objext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716 (eval $ac_compile) 2>conftest.er1
5718 grep -v '^ *+' conftest.er1
>conftest.err
5720 cat conftest.err
>&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } &&
5723 { ac_try
='test -z "$ac_c_werror_flag"
5724 || test ! -s conftest.err'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; } &&
5730 { ac_try
='test -s conftest.$ac_objext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5738 cat >conftest.
$ac_ext <<_ACEOF
5741 cat confdefs.h
>>conftest.
$ac_ext
5742 cat >>conftest.
$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5744 $ac_includes_default
5748 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5755 rm -f conftest.
$ac_objext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5757 (eval $ac_compile) 2>conftest.er1
5759 grep -v '^ *+' conftest.er1
>conftest.err
5761 cat conftest.err
>&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try
='test -z "$ac_c_werror_flag"
5765 || test ! -s conftest.err'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; } &&
5771 { ac_try
='test -s conftest.$ac_objext'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5777 ac_hi
=$ac_mid; break
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.
$ac_ext >&5
5782 ac_lo
=`expr $ac_mid + 1`
5783 if test $ac_lo -le $ac_mid; then
5787 ac_mid
=`expr 2 '*' $ac_mid + 1`
5789 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.
$ac_ext >&5
5795 cat >conftest.
$ac_ext <<_ACEOF
5798 cat confdefs.h
>>conftest.
$ac_ext
5799 cat >>conftest.
$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 $ac_includes_default
5805 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5812 rm -f conftest.
$ac_objext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>conftest.er1
5816 grep -v '^ *+' conftest.er1
>conftest.err
5818 cat conftest.err
>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try
='test -z "$ac_c_werror_flag"
5822 || test ! -s conftest.err'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; } &&
5828 { ac_try
='test -s conftest.$ac_objext'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5836 cat >conftest.
$ac_ext <<_ACEOF
5839 cat confdefs.h
>>conftest.
$ac_ext
5840 cat >>conftest.
$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5842 $ac_includes_default
5846 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5853 rm -f conftest.
$ac_objext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855 (eval $ac_compile) 2>conftest.er1
5857 grep -v '^ *+' conftest.er1
>conftest.err
5859 cat conftest.err
>&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try
='test -z "$ac_c_werror_flag"
5863 || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try
='test -s conftest.$ac_objext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 ac_lo
=$ac_mid; break
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.
$ac_ext >&5
5880 ac_hi
=`expr '(' $ac_mid ')' - 1`
5881 if test $ac_mid -le $ac_hi; then
5885 ac_mid
=`expr 2 '*' $ac_mid`
5887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.
$ac_ext >&5
5895 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5897 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5898 # Binary search between lo and hi bounds.
5899 while test "x$ac_lo" != "x$ac_hi"; do
5900 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5901 cat >conftest.
$ac_ext <<_ACEOF
5904 cat confdefs.h
>>conftest.
$ac_ext
5905 cat >>conftest.
$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 $ac_includes_default
5911 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5918 rm -f conftest.
$ac_objext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>conftest.er1
5922 grep -v '^ *+' conftest.er1
>conftest.err
5924 cat conftest.err
>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try
='test -z "$ac_c_werror_flag"
5928 || test ! -s conftest.err'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try
='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.
$ac_ext >&5
5945 ac_lo
=`expr '(' $ac_mid ')' + 1`
5947 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5950 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5951 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5952 See \`config.log' for more details." >&5
5953 echo "$as_me: error: cannot compute sizeof (__int64), 77
5954 See \`config.log' for more details." >&2;}
5955 { (exit 1); exit 1; }; } ;;
5958 if test "$cross_compiling" = yes; then
5959 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5960 See \`config.log' for more details." >&5
5961 echo "$as_me: error: cannot run test program while cross compiling
5962 See \`config.log' for more details." >&2;}
5963 { (exit 1); exit 1; }; }
5965 cat >conftest.
$ac_ext <<_ACEOF
5968 cat confdefs.h
>>conftest.
$ac_ext
5969 cat >>conftest.
$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 $ac_includes_default
5972 long longval () { return (long) (sizeof (__int64)); }
5973 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5980 FILE *f = fopen ("conftest.val", "w");
5983 if (((long) (sizeof (__int64))) < 0)
5985 long i = longval ();
5986 if (i != ((long) (sizeof (__int64))))
5988 fprintf (f, "%ld\n", i);
5992 unsigned long i = ulongval ();
5993 if (i != ((long) (sizeof (__int64))))
5995 fprintf (f, "%lu\n", i);
5997 exit (ferror (f) || fclose (f) != 0);
6003 rm -f conftest
$ac_exeext
6004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6005 (eval $ac_link) 2>&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 ac_cv_sizeof___int64
=`cat conftest.val`
6016 echo "$as_me: program exited with status $ac_status" >&5
6017 echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.
$ac_ext >&5
6021 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6022 See \`config.log' for more details." >&5
6023 echo "$as_me: error: cannot compute sizeof (__int64), 77
6024 See \`config.log' for more details." >&2;}
6025 { (exit 1); exit 1; }; }
6027 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6032 ac_cv_sizeof___int64
=0
6035 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6036 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6037 cat >>confdefs.h
<<_ACEOF
6038 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6044 # ---------------------
6045 # Warnings and checking
6046 # ---------------------
6048 # Check $CC warning features (if it's GCC).
6049 # We want to use -pedantic, but we don't want warnings about
6052 # So, we only use -pedantic if we can disable those warnings.
6054 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6055 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6056 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 save_CFLAGS
="$CFLAGS"
6060 CFLAGS
="-Wno-long-long"
6061 cat >conftest.
$ac_ext <<_ACEOF
6064 cat confdefs.h
>>conftest.
$ac_ext
6065 cat >>conftest.
$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6069 rm -f conftest.
$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>conftest.er1
6073 grep -v '^ *+' conftest.er1
>conftest.err
6075 cat conftest.err
>&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try
='test -z "$ac_c_werror_flag"
6079 || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try
='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_prog_cc_w_no_long_long
=yes
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.
$ac_ext >&5
6096 ac_cv_prog_cc_w_no_long_long
=no
6098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6099 CFLAGS
="$save_CFLAGS"
6102 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6103 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6105 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6106 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6107 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 save_CFLAGS
="$CFLAGS"
6111 CFLAGS
="-Wno-variadic-macros"
6112 cat >conftest.
$ac_ext <<_ACEOF
6115 cat confdefs.h
>>conftest.
$ac_ext
6116 cat >>conftest.
$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6120 rm -f conftest.
$ac_objext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122 (eval $ac_compile) 2>conftest.er1
6124 grep -v '^ *+' conftest.er1
>conftest.err
6126 cat conftest.err
>&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try
='test -z "$ac_c_werror_flag"
6130 || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try
='test -s conftest.$ac_objext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_prog_cc_w_no_variadic_macros
=yes
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.
$ac_ext >&5
6147 ac_cv_prog_cc_w_no_variadic_macros
=no
6149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6150 CFLAGS
="$save_CFLAGS"
6153 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6154 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6157 if test $ac_cv_prog_cc_w_no_long_long = yes \
6158 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6159 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6163 # Add -Wold-style-definition if it's accepted
6164 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6165 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6166 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 save_CFLAGS
="$CFLAGS"
6170 CFLAGS
="-Wold-style-definition"
6171 cat >conftest.
$ac_ext <<_ACEOF
6174 cat confdefs.h
>>conftest.
$ac_ext
6175 cat >>conftest.
$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6179 rm -f conftest.
$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181 (eval $ac_compile) 2>conftest.er1
6183 grep -v '^ *+' conftest.er1
>conftest.err
6185 cat conftest.err
>&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try
='test -z "$ac_c_werror_flag"
6189 || test ! -s conftest.err'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try
='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_prog_cc_w_old_style_definition
=yes
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.
$ac_ext >&5
6206 ac_cv_prog_cc_w_old_style_definition
=no
6208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6209 CFLAGS
="$save_CFLAGS"
6212 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6213 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6214 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6215 strict1_warn
="${strict1_warn} -Wold-style-definition"
6218 # Enable -Werror, period.
6219 # Check whether --enable-werror_always or --disable-werror_always was given.
6220 if test "${enable_werror_always+set}" = set; then
6221 enableval
="$enable_werror_always"
6224 enable_werror_always
=no
6226 if test x
${enable_werror_always} = xyes
; then
6227 strict1_warn
="${strict1_warn} -Werror"
6231 # If the native compiler is GCC, we can enable warnings even in stage1.
6232 # That's useful for people building cross-compilers, or just running a
6235 if test "x$GCC" = "xyes"; then
6236 warn_cflags
='$(GCC_WARN_CFLAGS)'
6240 # Enable -Werror in bootstrap stage2 and later.
6242 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6245 # Check whether --enable-werror or --disable-werror was given.
6246 if test "${enable_werror+set}" = set; then
6247 enableval
="$enable_werror"
6250 if test x
$is_release = x
; then
6251 # Default to "yes" on development branches.
6254 # Default to "no" on release branches.
6258 if test x
$enable_werror = xyes
; then
6263 # Enable expensive internal checks
6264 # Check whether --enable-checking or --disable-checking was given.
6265 if test "${enable_checking+set}" = set; then
6266 enableval
="$enable_checking"
6267 ac_checking_flags
="${enableval}"
6270 # Determine the default checks.
6271 if test x
$is_release = x
; then
6272 ac_checking_flags
=yes
6274 ac_checking_flags
=release
6277 ac_assert_checking
=1
6281 ac_gc_always_collect
=
6283 ac_rtlflag_checking
=
6284 ac_runtime_checking
=1
6286 ac_valgrind_checking
=
6287 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6288 for check
in $ac_checking_flags
6291 # these set all the flags to specific states
6292 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6293 ac_fold_checking
= ; ac_gc_checking
=1 ;
6294 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6295 ac_rtlflag_checking
=1 ; ac_runtime_chacking
=1 ;
6296 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6297 no|none
) ac_assert_checking
= ; ac_checking
= ;
6298 ac_fold_checking
= ; ac_gc_checking
= ;
6299 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6300 ac_rtlflag_checking
= ; ac_runtime_chacking
= ;
6301 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6302 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6303 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6304 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6305 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6306 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6307 release
) ac_assert_checking
=1 ; ac_checking
= ;
6308 ac_fold_checking
= ; ac_gc_checking
= ;
6309 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6310 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6311 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6312 # these enable particular checks
6313 assert
) ac_assert_checking
=1 ;;
6314 fold) ac_fold_checking
=1 ;;
6315 gc
) ac_gc_checking
=1 ;;
6316 gcac
) ac_gc_always_collect
=1 ;;
6317 misc
) ac_checking
=1 ;;
6318 rtl
) ac_rtl_checking
=1 ;;
6319 rtlflag
) ac_rtlflag_checking
=1 ;;
6320 runtime
) ac_runtime_checking
=1 ;;
6321 tree
) ac_tree_checking
=1 ;;
6322 valgrind
) ac_valgrind_checking
=1 ;;
6323 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6324 echo "$as_me: error: unknown check category $check" >&2;}
6325 { (exit 1); exit 1; }; } ;;
6331 if test x
$ac_checking != x
; then
6333 cat >>confdefs.h
<<\_ACEOF
6334 #define ENABLE_CHECKING 1
6337 nocommon_flag
=-fno-common
6340 if test x
$ac_assert_checking != x
; then
6342 cat >>confdefs.h
<<\_ACEOF
6343 #define ENABLE_ASSERT_CHECKING 1
6347 if test x
$ac_runtime_checking != x
; then
6349 cat >>confdefs.h
<<\_ACEOF
6350 #define ENABLE_RUNTIME_CHECKING 1
6354 if test x
$ac_tree_checking != x
; then
6356 cat >>confdefs.h
<<\_ACEOF
6357 #define ENABLE_TREE_CHECKING 1
6360 TREEBROWSER
=tree-browser.o
6363 if test x
$ac_rtl_checking != x
; then
6365 cat >>confdefs.h
<<\_ACEOF
6366 #define ENABLE_RTL_CHECKING 1
6370 if test x
$ac_rtlflag_checking != x
; then
6372 cat >>confdefs.h
<<\_ACEOF
6373 #define ENABLE_RTL_FLAG_CHECKING 1
6377 if test x
$ac_gc_checking != x
; then
6379 cat >>confdefs.h
<<\_ACEOF
6380 #define ENABLE_GC_CHECKING 1
6384 if test x
$ac_gc_always_collect != x
; then
6386 cat >>confdefs.h
<<\_ACEOF
6387 #define ENABLE_GC_ALWAYS_COLLECT 1
6391 if test x
$ac_fold_checking != x
; then
6393 cat >>confdefs.h
<<\_ACEOF
6394 #define ENABLE_FOLD_CHECKING 1
6398 valgrind_path_defines
=
6401 if test "${ac_cv_header_valgrind_h+set}" = set; then
6402 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6403 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6404 if test "${ac_cv_header_valgrind_h+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6408 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6410 # Is the header compilable?
6411 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6412 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6413 cat >conftest.
$ac_ext <<_ACEOF
6416 cat confdefs.h
>>conftest.
$ac_ext
6417 cat >>conftest.
$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 $ac_includes_default
6420 #include <valgrind.h>
6422 rm -f conftest.
$ac_objext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424 (eval $ac_compile) 2>conftest.er1
6426 grep -v '^ *+' conftest.er1
>conftest.err
6428 cat conftest.err
>&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try
='test -z "$ac_c_werror_flag"
6432 || test ! -s conftest.err'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; } &&
6438 { ac_try
='test -s conftest.$ac_objext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_header_compiler
=yes
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.
$ac_ext >&5
6449 ac_header_compiler
=no
6451 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453 echo "${ECHO_T}$ac_header_compiler" >&6
6455 # Is the header present?
6456 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6457 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6458 cat >conftest.
$ac_ext <<_ACEOF
6461 cat confdefs.h
>>conftest.
$ac_ext
6462 cat >>conftest.
$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 #include <valgrind.h>
6466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6469 grep -v '^ *+' conftest.er1
>conftest.err
6471 cat conftest.err
>&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev
/null
; then
6474 if test -s conftest.err
; then
6475 ac_cpp_err
=$ac_c_preproc_warn_flag
6476 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6483 if test -z "$ac_cpp_err"; then
6484 ac_header_preproc
=yes
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.
$ac_ext >&5
6489 ac_header_preproc
=no
6491 rm -f conftest.err conftest.
$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493 echo "${ECHO_T}$ac_header_preproc" >&6
6495 # So? What about this header?
6496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6498 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6499 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6501 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6502 ac_header_preproc
=yes
6505 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6510 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6512 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6516 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6519 ## ------------------------------------------ ##
6520 ## Report this to the AC_PACKAGE_NAME lists. ##
6521 ## ------------------------------------------ ##
6524 sed "s/^/$as_me: WARNING: /" >&2
6527 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6528 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6529 if test "${ac_cv_header_valgrind_h+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 ac_cv_header_valgrind_h
=$ac_header_preproc
6534 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6535 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6538 if test $ac_cv_header_valgrind_h = yes; then
6546 if test x
$ac_valgrind_checking != x
; then
6547 # It is certainly possible that there's valgrind but no valgrind.h.
6548 # GCC relies on making annotations so we must have both.
6549 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6550 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6551 cat >conftest.
$ac_ext <<_ACEOF
6554 cat confdefs.h
>>conftest.
$ac_ext
6555 cat >>conftest.
$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <valgrind/memcheck.h>
6558 #ifndef VALGRIND_DISCARD
6559 #error VALGRIND_DISCARD not defined
6562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6563 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6565 grep -v '^ *+' conftest.er1
>conftest.err
6567 cat conftest.err
>&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } >/dev
/null
; then
6570 if test -s conftest.err
; then
6571 ac_cpp_err
=$ac_c_preproc_warn_flag
6572 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6579 if test -z "$ac_cpp_err"; then
6580 gcc_cv_header_valgrind_memcheck_h
=yes
6582 echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.
$ac_ext >&5
6585 gcc_cv_header_valgrind_memcheck_h
=no
6587 rm -f conftest.err conftest.
$ac_ext
6588 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6589 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6590 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6591 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6592 cat >conftest.
$ac_ext <<_ACEOF
6595 cat confdefs.h
>>conftest.
$ac_ext
6596 cat >>conftest.
$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6598 #include <memcheck.h>
6599 #ifndef VALGRIND_DISCARD
6600 #error VALGRIND_DISCARD not defined
6603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6604 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6606 grep -v '^ *+' conftest.er1
>conftest.err
6608 cat conftest.err
>&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } >/dev
/null
; then
6611 if test -s conftest.err
; then
6612 ac_cpp_err
=$ac_c_preproc_warn_flag
6613 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6620 if test -z "$ac_cpp_err"; then
6621 gcc_cv_header_memcheck_h
=yes
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.
$ac_ext >&5
6626 gcc_cv_header_memcheck_h
=no
6628 rm -f conftest.err conftest.
$ac_ext
6629 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6630 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6632 # Prepare PATH_SEPARATOR.
6633 # The user is always right.
6634 if test "${PATH_SEPARATOR+set}" != set; then
6635 echo "#! /bin/sh" >conf$$.sh
6636 echo "exit 0" >>conf$$.sh
6638 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6646 # Find out how to test for executable files. Don't use a zero-byte file,
6647 # as systems may use methods other than mode bits to determine executability.
6648 cat >conf$$.
file <<_ASEOF
6652 chmod +x conf$$.
file
6653 if test -x conf$$.
file >/dev
/null
2>&1; then
6654 ac_executable_p
="test -x"
6656 ac_executable_p
="test -f"
6660 # Extract the first word of "valgrind", so it can be a program name with args.
6661 set dummy valgrind
; ac_word
=$2
6662 echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6664 if test "${ac_cv_path_valgrind_path+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 case "$valgrind_path" in
6669 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6672 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6673 for ac_dir
in $PATH; do
6675 test -z "$ac_dir" && ac_dir
=.
6676 for ac_exec_ext
in '' $ac_executable_extensions; do
6677 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6678 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6679 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6689 valgrind_path
="$ac_cv_path_valgrind_path"
6690 if test -n "$valgrind_path"; then
6691 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6692 echo "${ECHO_T}$valgrind_path" >&6
6694 echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6
6698 if test "x$valgrind_path" = "x" \
6699 ||
(test $have_valgrind_h = no \
6700 && test $gcc_cv_header_memcheck_h = no \
6701 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6702 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6703 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6704 { (exit 1); exit 1; }; }
6706 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6707 valgrind_command
="$valgrind_path -q"
6709 cat >>confdefs.h
<<\_ACEOF
6710 #define ENABLE_VALGRIND_CHECKING 1
6713 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6715 cat >>confdefs.h
<<\_ACEOF
6716 #define HAVE_VALGRIND_MEMCHECK_H 1
6720 if test $gcc_cv_header_memcheck_h = yes; then
6722 cat >>confdefs.h
<<\_ACEOF
6723 #define HAVE_MEMCHECK_H 1
6731 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6732 if test "${enable_mapped_location+set}" = set; then
6733 enableval
="$enable_mapped_location"
6736 enable_mapped_location
=no
6739 if test "$enable_mapped_location" = yes ; then
6741 cat >>confdefs.h
<<\_ACEOF
6742 #define USE_MAPPED_LOCATION 1
6747 # Enable code coverage collection
6748 # Check whether --enable-coverage or --disable-coverage was given.
6749 if test "${enable_coverage+set}" = set; then
6750 enableval
="$enable_coverage"
6751 case "${enableval}" in
6753 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6756 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6759 # a.k.a. --disable-coverage
6763 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6764 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6765 { (exit 1); exit 1; }; }
6773 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6774 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6775 enableval
="$enable_gather_detailed_mem_stats"
6778 enable_gather_detailed_mem_stats
=no
6780 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6782 cat >>confdefs.h
<<\_ACEOF
6783 #define GATHER_STATISTICS 1
6788 # -------------------------------
6789 # Miscenalleous configure options
6790 # -------------------------------
6794 # Check whether --with-stabs or --without-stabs was given.
6795 if test "${with_stabs+set}" = set; then
6796 withval
="$with_stabs"
6802 # Determine whether or not multilibs are enabled.
6803 # Check whether --enable-multilib or --disable-multilib was given.
6804 if test "${enable_multilib+set}" = set; then
6805 enableval
="$enable_multilib"
6812 # Enable __cxa_atexit for C++.
6813 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6814 if test "${enable___cxa_atexit+set}" = set; then
6815 enableval
="$enable___cxa_atexit"
6820 # Pass with no value to take the default
6821 # Pass with a value to specify a thread package
6822 # Check whether --enable-threads or --disable-threads was given.
6823 if test "${enable_threads+set}" = set; then
6824 enableval
="$enable_threads"
6830 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6831 if test "${enable_objc_gc+set}" = set; then
6832 enableval
="$enable_objc_gc"
6833 if test x
$enable_objc_gc = xno
; then
6843 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6844 if test "${with_dwarf2+set}" = set; then
6845 withval
="$with_dwarf2"
6846 dwarf2
="$with_dwarf2"
6851 # Check whether --enable-shared or --disable-shared was given.
6852 if test "${enable_shared+set}" = set; then
6853 enableval
="$enable_shared"
6855 case $enable_shared in
6859 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6860 for pkg
in $enableval; do
6861 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6875 # Check whether --with-sysroot or --without-sysroot was given.
6876 if test "${with_sysroot+set}" = set; then
6877 withval
="$with_sysroot"
6879 case ${with_sysroot} in
6880 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6881 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6884 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6885 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6887 if test "x$exec_prefix" = xNONE
; then
6888 if test "x$prefix" = xNONE
; then
6889 test_prefix
=/usr
/local
6894 test_prefix
=$exec_prefix
6896 case ${TARGET_SYSTEM_ROOT} in
6897 "${test_prefix}"|
"${test_prefix}/"*|\
6898 '${exec_prefix}'|
'${exec_prefix}/'*)
6899 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6900 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6907 TARGET_SYSTEM_ROOT_DEFINE
=
6908 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6915 # Build with intermodule optimisations
6916 # Check whether --enable-intermodule or --disable-intermodule was given.
6917 if test "${enable_intermodule+set}" = set; then
6918 enableval
="$enable_intermodule"
6919 case ${enable_intermodule} in
6920 yes) onestep
="-onestep";;
6928 # Sanity check enable_languages in case someone does not run the toplevel
6929 # configure # script.
6930 # Check whether --enable-languages or --disable-languages was given.
6931 if test "${enable_languages+set}" = set; then
6932 enableval
="$enable_languages"
6933 case ,${enable_languages}, in
6935 # go safe -- we cannot be much sure without the toplevel
6937 # analysis of which target libs are present and usable
6941 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6942 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6943 { (exit 1); exit 1; }; }
6948 enable_languages
=c
,${enable_languages}
6956 for lang
in ${srcdir}/*/config-lang.
in
6959 # The odd quoting in the next line works around
6960 # an apparent bug in bash 1.12 on linux.
6961 ${srcdir}/[*]/config-lang.
in) ;;
6963 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6964 if test "x$lang_alias" = x
6966 echo "$lang doesn't set \$language." 1>&2
6969 case ",$enable_languages," in
6971 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6978 # -------------------------
6979 # Checks for other programs
6980 # -------------------------
6982 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6983 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6984 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
6985 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 cat >conftest.
make <<\_ACEOF
6990 @
echo 'ac_maketemp="$(MAKE)"'
6992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6993 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6994 if test -n "$ac_maketemp"; then
6995 eval ac_cv_prog_make_
${ac_make}_set
=yes
6997 eval ac_cv_prog_make_
${ac_make}_set
=no
7001 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7002 echo "$as_me:$LINENO: result: yes" >&5
7003 echo "${ECHO_T}yes" >&6
7006 echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6
7008 SET_MAKE
="MAKE=${MAKE-make}"
7012 # Find some useful tools
7013 for ac_prog
in gawk mawk nawk
awk
7015 # Extract the first word of "$ac_prog", so it can be a program name with args.
7016 set dummy
$ac_prog; ac_word
=$2
7017 echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7019 if test "${ac_cv_prog_AWK+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 if test -n "$AWK"; then
7023 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7029 test -z "$as_dir" && as_dir
=.
7030 for ac_exec_ext
in '' $ac_executable_extensions; do
7031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032 ac_cv_prog_AWK
="$ac_prog"
7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 if test -n "$AWK"; then
7043 echo "$as_me:$LINENO: result: $AWK" >&5
7044 echo "${ECHO_T}$AWK" >&6
7046 echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6
7050 test -n "$AWK" && break
7053 # We need awk to create options.c and options.h.
7054 # Bail out if it's missing.
7056 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7057 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7058 { (exit 1); exit 1; }; } ;;
7061 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7062 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7063 if test "${gcc_cv_prog_LN_S+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 rm -f conftestdata_t
7067 echo >conftestdata_f
7068 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7070 gcc_cv_prog_LN_S
="ln -s"
7072 if ln conftestdata_f conftestdata_t
2>/dev
/null
7076 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7078 gcc_cv_prog_LN_S
="cp -p"
7084 rm -f conftestdata_f conftestdata_t
7087 LN_S
="$gcc_cv_prog_LN_S"
7088 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7089 echo "$as_me:$LINENO: result: yes" >&5
7090 echo "${ECHO_T}yes" >&6
7092 if test "$gcc_cv_prog_LN_S" = "ln"; then
7093 echo "$as_me:$LINENO: result: no, using ln" >&5
7094 echo "${ECHO_T}no, using ln" >&6
7096 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7097 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7101 echo "$as_me:$LINENO: checking whether ln works" >&5
7102 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7103 if test "${acx_cv_prog_LN+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 rm -f conftestdata_t
7107 echo >conftestdata_f
7108 if ln conftestdata_f conftestdata_t
2>/dev
/null
7114 rm -f conftestdata_f conftestdata_t
7117 if test $acx_cv_prog_LN = no
; then
7119 echo "$as_me:$LINENO: result: no, using $LN" >&5
7120 echo "${ECHO_T}no, using $LN" >&6
7122 LN
="$acx_cv_prog_LN"
7123 echo "$as_me:$LINENO: result: yes" >&5
7124 echo "${ECHO_T}yes" >&6
7127 if test -n "$ac_tool_prefix"; then
7128 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7129 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7130 echo "$as_me:$LINENO: checking for $ac_word" >&5
7131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7132 if test "${ac_cv_prog_RANLIB+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 if test -n "$RANLIB"; then
7136 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir
=.
7143 for ac_exec_ext
in '' $ac_executable_extensions; do
7144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 RANLIB
=$ac_cv_prog_RANLIB
7155 if test -n "$RANLIB"; then
7156 echo "$as_me:$LINENO: result: $RANLIB" >&5
7157 echo "${ECHO_T}$RANLIB" >&6
7159 echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6
7164 if test -z "$ac_cv_prog_RANLIB"; then
7165 ac_ct_RANLIB
=$RANLIB
7166 # Extract the first word of "ranlib", so it can be a program name with args.
7167 set dummy ranlib
; ac_word
=$2
7168 echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7170 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 if test -n "$ac_ct_RANLIB"; then
7174 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir
=.
7181 for ac_exec_ext
in '' $ac_executable_extensions; do
7182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7193 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7194 if test -n "$ac_ct_RANLIB"; then
7195 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7196 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7198 echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6
7202 RANLIB
=$ac_ct_RANLIB
7204 RANLIB
="$ac_cv_prog_RANLIB"
7209 # By default, the Darwin ranlib will not treat common symbols as
7210 # definitions when building the archive table of contents. Other
7211 # ranlibs do that; pass an option to the Darwin ranlib that makes
7212 # it behave similarly.
7220 # Find a good install program. We prefer a C program (faster),
7221 # so one script is as good as another. But avoid the broken or
7222 # incompatible versions:
7223 # SysV /etc/install, /usr/sbin/install
7224 # SunOS /usr/etc/install
7225 # IRIX /sbin/install
7227 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7228 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7229 # ./install, which can be erroneously created by make from ./install.sh.
7230 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7231 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7232 if test -z "$INSTALL"; then
7233 if test "${ac_cv_path_install+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7237 for ac_dir
in $PATH; do
7238 # Account for people who put trailing slashes in PATH elements.
7240 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7242 # OSF1 and SCO ODT 3.0 have their own names for install.
7243 for ac_prog
in ginstall scoinst
install; do
7244 if test -f $ac_dir/$ac_prog; then
7245 if test $ac_prog = install &&
7246 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7247 # AIX install. It has an incompatible calling convention.
7248 # OSF/1 installbsd also uses dspmsg, but is usable.
7251 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7262 if test "${ac_cv_path_install+set}" = set; then
7263 INSTALL
="$ac_cv_path_install"
7265 # As a last resort, use the slow shell script. We don't cache a
7266 # path for INSTALL within a source directory, because that will
7267 # break other packages using the cache if that directory is
7268 # removed, or if the path is relative.
7269 INSTALL
="$ac_install_sh"
7272 echo "$as_me:$LINENO: result: $INSTALL" >&5
7273 echo "${ECHO_T}$INSTALL" >&6
7275 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7276 # It thinks the first close brace ends the variable substitution.
7277 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7279 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7282 # See if cmp has --ignore-initial.
7283 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7284 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7285 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 gcc_cv_prog_cmp_skip
=slowcompare
7291 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7292 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7295 gcc_cv_prog_cmp_skip
=gnucompare
7298 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7299 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7300 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7303 gcc_cv_prog_cmp_skip
=fastcompare
7310 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7311 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7312 make_compare_target
=$gcc_cv_prog_cmp_skip
7316 # See if we have the mktemp command.
7317 # Extract the first word of "mktemp", so it can be a program name with args.
7318 set dummy mktemp
; ac_word
=$2
7319 echo "$as_me:$LINENO: checking for $ac_word" >&5
7320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7321 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 if test -n "$have_mktemp_command"; then
7325 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7331 test -z "$as_dir" && as_dir
=.
7332 for ac_exec_ext
in '' $ac_executable_extensions; do
7333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334 ac_cv_prog_have_mktemp_command
="yes"
7335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7344 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7345 if test -n "$have_mktemp_command"; then
7346 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7347 echo "${ECHO_T}$have_mktemp_command" >&6
7349 echo "$as_me:$LINENO: result: no" >&5
7350 echo "${ECHO_T}no" >&6
7354 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7356 # See if makeinfo has been installed and is modern enough
7357 # that we can use it.
7358 # Extract the first word of "makeinfo", so it can be a program name with args.
7359 set dummy makeinfo
; ac_word
=$2
7360 echo "$as_me:$LINENO: checking for $ac_word" >&5
7361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7362 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 if test -n "$MAKEINFO"; then
7366 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7372 test -z "$as_dir" && as_dir
=.
7373 for ac_exec_ext
in '' $ac_executable_extensions; do
7374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375 ac_cv_prog_MAKEINFO
="makeinfo"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 MAKEINFO
=$ac_cv_prog_MAKEINFO
7385 if test -n "$MAKEINFO"; then
7386 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7387 echo "${ECHO_T}$MAKEINFO" >&6
7389 echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6
7393 if test -n "$MAKEINFO"; then
7394 # Found it, now check the version.
7395 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7396 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7397 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7401 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7402 echo "configure:7402: version of makeinfo is $ac_prog_version" >&5
7403 case $ac_prog_version in
7404 '') gcc_cv_prog_makeinfo_modern
=no
;;
7406 gcc_cv_prog_makeinfo_modern
=yes;;
7407 *) gcc_cv_prog_makeinfo_modern
=no
;;
7411 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7412 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7414 gcc_cv_prog_makeinfo_modern
=no
7417 if test $gcc_cv_prog_makeinfo_modern = no
; then
7418 MAKEINFO
="$MISSING makeinfo"
7419 { echo "$as_me:$LINENO: WARNING:
7420 *** Makeinfo is missing or too old.
7421 *** Info documentation will not be built." >&5
7422 echo "$as_me: WARNING:
7423 *** Makeinfo is missing or too old.
7424 *** Info documentation will not be built." >&2;}
7431 # Is pod2man recent enough to regenerate manpages?
7432 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7433 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7434 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7435 echo "$as_me:$LINENO: result: yes" >&5
7436 echo "${ECHO_T}yes" >&6
7437 GENERATED_MANPAGES
=generated-manpages
7439 echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7448 # Extract the first word of "$ac_prog", so it can be a program name with args.
7449 set dummy
$ac_prog; ac_word
=$2
7450 echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7452 if test "${ac_cv_prog_FLEX+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 if test -n "$FLEX"; then
7456 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir
=.
7463 for ac_exec_ext
in '' $ac_executable_extensions; do
7464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_FLEX
="$ac_prog"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 FLEX
=$ac_cv_prog_FLEX
7475 if test -n "$FLEX"; then
7476 echo "$as_me:$LINENO: result: $FLEX" >&5
7477 echo "${ECHO_T}$FLEX" >&6
7479 echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6
7483 test -n "$FLEX" && break
7485 test -n "$FLEX" || FLEX
="$MISSING flex"
7489 for ac_prog
in bison
7491 # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy
$ac_prog; ac_word
=$2
7493 echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7495 if test "${ac_cv_prog_BISON+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 if test -n "$BISON"; then
7499 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir
=.
7506 for ac_exec_ext
in '' $ac_executable_extensions; do
7507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508 ac_cv_prog_BISON
="$ac_prog"
7509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 BISON
=$ac_cv_prog_BISON
7518 if test -n "$BISON"; then
7519 echo "$as_me:$LINENO: result: $BISON" >&5
7520 echo "${ECHO_T}$BISON" >&6
7522 echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6
7526 test -n "$BISON" && break
7528 test -n "$BISON" || BISON
="$MISSING bison"
7531 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7532 # check for build == host before using them.
7535 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7536 && test -d ..
/binutils
; then
7537 NM
='$(objdir)/../binutils/nm-new'
7539 # Extract the first word of "nm", so it can be a program name with args.
7540 set dummy nm
; ac_word
=$2
7541 echo "$as_me:$LINENO: checking for $ac_word" >&5
7542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7543 if test "${ac_cv_prog_NM+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 if test -n "$NM"; then
7547 ac_cv_prog_NM
="$NM" # Let the user override the test.
7549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7553 test -z "$as_dir" && as_dir
=.
7554 for ac_exec_ext
in '' $ac_executable_extensions; do
7555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7567 if test -n "$NM"; then
7568 echo "$as_me:$LINENO: result: $NM" >&5
7569 echo "${ECHO_T}$NM" >&6
7571 echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6
7578 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7579 && test -d ..
/binutils
; then
7580 AR
='$(objdir)/../binutils/ar'
7582 # Extract the first word of "ar", so it can be a program name with args.
7583 set dummy
ar; ac_word
=$2
7584 echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586 if test "${ac_cv_prog_AR+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 if test -n "$AR"; then
7590 ac_cv_prog_AR
="$AR" # Let the user override the test.
7592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir
=.
7597 for ac_exec_ext
in '' $ac_executable_extensions; do
7598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7610 if test -n "$AR"; then
7611 echo "$as_me:$LINENO: result: $AR" >&5
7612 echo "${ECHO_T}$AR" >&6
7614 echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6
7621 # --------------------
7622 # Checks for C headers
7623 # --------------------
7625 echo "$as_me:$LINENO: checking for GNU C library" >&5
7626 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7627 if test "${gcc_cv_glibc+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 cat >conftest.
$ac_ext <<_ACEOF
7633 cat confdefs.h
>>conftest.
$ac_ext
7634 cat >>conftest.
$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 #include <features.h>
7641 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7642 #error Not a GNU C library system
7648 rm -f conftest.
$ac_objext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>conftest.er1
7652 grep -v '^ *+' conftest.er1
>conftest.err
7654 cat conftest.err
>&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try
='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try
='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.
$ac_ext >&5
7677 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7680 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7681 echo "${ECHO_T}$gcc_cv_glibc" >&6
7682 if test $gcc_cv_glibc = yes; then
7684 cat >>confdefs.h
<<\_ACEOF
7685 #define _GNU_SOURCE 1
7690 # Need to reject headers which give warnings, so that the -Werror bootstrap
7691 # works later. *sigh* This needs to come before all header checks.
7693 ac_c_preproc_warn_flag
=yes
7695 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7696 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7697 if test "${ac_cv_header_stdc+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7700 cat >conftest.
$ac_ext <<_ACEOF
7703 cat confdefs.h
>>conftest.
$ac_ext
7704 cat >>conftest.
$ac_ext <<_ACEOF
7705 /* end confdefs.h. */
7719 rm -f conftest.
$ac_objext
7720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7721 (eval $ac_compile) 2>conftest.er1
7723 grep -v '^ *+' conftest.er1
>conftest.err
7725 cat conftest.err
>&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try
='test -z "$ac_c_werror_flag"
7729 || test ! -s conftest.err'
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; } &&
7735 { ac_try
='test -s conftest.$ac_objext'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; }; then
7741 ac_cv_header_stdc
=yes
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.
$ac_ext >&5
7746 ac_cv_header_stdc
=no
7748 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7750 if test $ac_cv_header_stdc = yes; then
7751 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev
/null
2>&1; then
7765 ac_cv_header_stdc
=no
7771 if test $ac_cv_header_stdc = yes; then
7772 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7773 cat >conftest.
$ac_ext <<_ACEOF
7776 cat confdefs.h
>>conftest.
$ac_ext
7777 cat >>conftest.
$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7783 $EGREP "free" >/dev
/null
2>&1; then
7786 ac_cv_header_stdc
=no
7792 if test $ac_cv_header_stdc = yes; then
7793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7794 if test "$cross_compiling" = yes; then
7797 cat >conftest.
$ac_ext <<_ACEOF
7800 cat confdefs.h
>>conftest.
$ac_ext
7801 cat >>conftest.
$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7804 #if ((' ' & 0x0FF) == 0x020)
7805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7808 # define ISLOWER(c) \
7809 (('a' <= (c) && (c) <= 'i') \
7810 || ('j' <= (c) && (c) <= 'r') \
7811 || ('s' <= (c) && (c) <= 'z'))
7812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7820 for (i = 0; i < 256; i++)
7821 if (XOR (islower (i), ISLOWER (i))
7822 || toupper (i) != TOUPPER (i))
7827 rm -f conftest
$ac_exeext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829 (eval $ac_link) 2>&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7840 echo "$as_me: program exited with status $ac_status" >&5
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.
$ac_ext >&5
7845 ac_cv_header_stdc
=no
7847 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7851 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7852 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7853 if test $ac_cv_header_stdc = yes; then
7855 cat >>confdefs.h
<<\_ACEOF
7856 #define STDC_HEADERS 1
7861 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7862 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7863 if test "${ac_cv_header_time+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 cat >conftest.
$ac_ext <<_ACEOF
7869 cat confdefs.h
>>conftest.
$ac_ext
7870 cat >>conftest.
$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 #include <sys/types.h>
7873 #include <sys/time.h>
7879 if ((struct tm *) 0)
7885 rm -f conftest.
$ac_objext
7886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7887 (eval $ac_compile) 2>conftest.er1
7889 grep -v '^ *+' conftest.er1
>conftest.err
7891 cat conftest.err
>&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } &&
7894 { ac_try
='test -z "$ac_c_werror_flag"
7895 || test ! -s conftest.err'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; } &&
7901 { ac_try
='test -s conftest.$ac_objext'
7902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); }; }; then
7907 ac_cv_header_time
=yes
7909 echo "$as_me: failed program was:" >&5
7910 sed 's/^/| /' conftest.
$ac_ext >&5
7912 ac_cv_header_time
=no
7914 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7916 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7917 echo "${ECHO_T}$ac_cv_header_time" >&6
7918 if test $ac_cv_header_time = yes; then
7920 cat >>confdefs.h
<<\_ACEOF
7921 #define TIME_WITH_SYS_TIME 1
7926 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7927 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7928 if test "${gcc_cv_header_string+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 cat >conftest.
$ac_ext <<_ACEOF
7934 cat confdefs.h
>>conftest.
$ac_ext
7935 cat >>conftest.
$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7938 #include <strings.h>
7947 rm -f conftest.
$ac_objext
7948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7949 (eval $ac_compile) 2>conftest.er1
7951 grep -v '^ *+' conftest.er1
>conftest.err
7953 cat conftest.err
>&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } &&
7956 { ac_try
='test -z "$ac_c_werror_flag"
7957 || test ! -s conftest.err'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try
='test -s conftest.$ac_objext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969 gcc_cv_header_string
=yes
7971 echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.
$ac_ext >&5
7974 gcc_cv_header_string
=no
7976 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7978 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7979 echo "${ECHO_T}$gcc_cv_header_string" >&6
7980 if test $gcc_cv_header_string = yes; then
7982 cat >>confdefs.h
<<\_ACEOF
7983 #define STRING_WITH_STRINGS 1
7988 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7989 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7990 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 cat >conftest.
$ac_ext <<_ACEOF
7996 cat confdefs.h
>>conftest.
$ac_ext
7997 cat >>conftest.
$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 #include <sys/types.h>
8000 #include <sys/wait.h>
8002 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8005 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8013 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8018 rm -f conftest.
$ac_objext
8019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8020 (eval $ac_compile) 2>conftest.er1
8022 grep -v '^ *+' conftest.er1
>conftest.err
8024 cat conftest.err
>&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } &&
8027 { ac_try
='test -z "$ac_c_werror_flag"
8028 || test ! -s conftest.err'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; } &&
8034 { ac_try
='test -s conftest.$ac_objext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 ac_cv_header_sys_wait_h
=yes
8042 echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.
$ac_ext >&5
8045 ac_cv_header_sys_wait_h
=no
8047 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8049 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8050 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8051 if test $ac_cv_header_sys_wait_h = yes; then
8053 cat >>confdefs.h
<<\_ACEOF
8054 #define HAVE_SYS_WAIT_H 1
8081 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8082 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8083 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8084 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8086 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8087 echo "$as_me:$LINENO: checking for $ac_header" >&5
8088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 cat >conftest.
$ac_ext <<_ACEOF
8095 cat confdefs.h
>>conftest.
$ac_ext
8096 cat >>conftest.
$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 #include <$ac_header>
8100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8101 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8103 grep -v '^ *+' conftest.er1
>conftest.err
8105 cat conftest.err
>&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } >/dev
/null
; then
8108 if test -s conftest.err
; then
8109 ac_cpp_err
=$ac_c_preproc_warn_flag
8110 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8117 if test -z "$ac_cpp_err"; then
8118 eval "$as_ac_Header=yes"
8120 echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.
$ac_ext >&5
8123 eval "$as_ac_Header=no"
8125 rm -f conftest.err conftest.
$ac_ext
8127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8130 cat >>confdefs.h
<<_ACEOF
8131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8138 # Check for thread headers.
8139 echo "$as_me:$LINENO: checking for thread.h" >&5
8140 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8141 if test "${ac_cv_header_thread_h+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 cat >conftest.
$ac_ext <<_ACEOF
8147 cat confdefs.h
>>conftest.
$ac_ext
8148 cat >>conftest.
$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8153 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8155 grep -v '^ *+' conftest.er1
>conftest.err
8157 cat conftest.err
>&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } >/dev
/null
; then
8160 if test -s conftest.err
; then
8161 ac_cpp_err
=$ac_c_preproc_warn_flag
8162 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8169 if test -z "$ac_cpp_err"; then
8170 ac_cv_header_thread_h
=yes
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.
$ac_ext >&5
8175 ac_cv_header_thread_h
=no
8177 rm -f conftest.err conftest.
$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8180 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8181 if test $ac_cv_header_thread_h = yes; then
8187 echo "$as_me:$LINENO: checking for pthread.h" >&5
8188 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8189 if test "${ac_cv_header_pthread_h+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 cat >conftest.
$ac_ext <<_ACEOF
8195 cat confdefs.h
>>conftest.
$ac_ext
8196 cat >>conftest.
$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8198 #include <pthread.h>
8200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8201 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8203 grep -v '^ *+' conftest.er1
>conftest.err
8205 cat conftest.err
>&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } >/dev
/null
; then
8208 if test -s conftest.err
; then
8209 ac_cpp_err
=$ac_c_preproc_warn_flag
8210 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8217 if test -z "$ac_cpp_err"; then
8218 ac_cv_header_pthread_h
=yes
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.
$ac_ext >&5
8223 ac_cv_header_pthread_h
=no
8225 rm -f conftest.err conftest.
$ac_ext
8227 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8228 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8229 if test $ac_cv_header_pthread_h = yes; then
8236 # These tests can't be done till we know if we have limits.h.
8237 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8238 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8239 if test "${gcc_cv_decl_char_bit+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 cat >conftest.
$ac_ext <<_ACEOF
8245 cat confdefs.h
>>conftest.
$ac_ext
8246 cat >>conftest.
$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248 #ifdef HAVE_LIMITS_H
8255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8256 $EGREP "found" >/dev
/null
2>&1; then
8257 gcc_cv_decl_char_bit
=yes
8259 gcc_cv_decl_char_bit
=no
8265 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8266 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8267 if test $gcc_cv_decl_char_bit = no
; then
8268 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8269 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8270 if test "${gcc_cv_c_nbby+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 while test $i -lt 65; do
8276 cat >conftest.
$ac_ext <<_ACEOF
8279 cat confdefs.h
>>conftest.
$ac_ext
8280 cat >>conftest.
$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8287 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8288 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8294 rm -f conftest.
$ac_objext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8296 (eval $ac_compile) 2>conftest.er1
8298 grep -v '^ *+' conftest.er1
>conftest.err
8300 cat conftest.err
>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try
='test -z "$ac_c_werror_flag"
8304 || test ! -s conftest.err'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; } &&
8310 { ac_try
='test -s conftest.$ac_objext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 gcc_cv_c_nbby
=$i; break
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.
$ac_ext >&5
8322 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8325 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8328 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8329 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8330 if test $gcc_cv_c_nbby = failed
; then
8331 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8332 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8333 { (exit 1); exit 1; }; }
8336 cat >>confdefs.h
<<_ACEOF
8337 #define CHAR_BIT $gcc_cv_c_nbby
8342 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8343 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8344 if test "${ac_cv_c_bigendian+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 ac_cv_c_bigendian
=unknown
8348 # See if sys/param.h defines the BYTE_ORDER macro.
8349 cat >conftest.
$ac_ext <<_ACEOF
8352 cat confdefs.h
>>conftest.
$ac_ext
8353 cat >>conftest.
$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 #include <sys/types.h>
8356 #include <sys/param.h>
8361 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8368 rm -f conftest.
$ac_objext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8370 (eval $ac_compile) 2>conftest.er1
8372 grep -v '^ *+' conftest.er1
>conftest.err
8374 cat conftest.err
>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try
='test -z "$ac_c_werror_flag"
8378 || test ! -s conftest.err'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; } &&
8384 { ac_try
='test -s conftest.$ac_objext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 # It does; now see whether it defined to BIG_ENDIAN or not.
8391 cat >conftest.
$ac_ext <<_ACEOF
8394 cat confdefs.h
>>conftest.
$ac_ext
8395 cat >>conftest.
$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8397 #include <sys/types.h>
8398 #include <sys/param.h>
8403 #if BYTE_ORDER != BIG_ENDIAN
8410 rm -f conftest.
$ac_objext
8411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8412 (eval $ac_compile) 2>conftest.er1
8414 grep -v '^ *+' conftest.er1
>conftest.err
8416 cat conftest.err
>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } &&
8419 { ac_try
='test -z "$ac_c_werror_flag"
8420 || test ! -s conftest.err'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; } &&
8426 { ac_try
='test -s conftest.$ac_objext'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_cv_c_bigendian
=yes
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.
$ac_ext >&5
8437 ac_cv_c_bigendian
=no
8439 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.
$ac_ext >&5
8445 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8446 if test $ac_cv_c_bigendian = unknown
; then
8447 if test "$cross_compiling" = yes; then
8448 echo $ac_n "cross-compiling... " 2>&6
8450 cat >conftest.
$ac_ext <<_ACEOF
8453 cat confdefs.h
>>conftest.
$ac_ext
8454 cat >>conftest.
$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8457 /* Are we little or big endian? From Harbison&Steele. */
8461 char c[sizeof (long)];
8464 exit (u.c[sizeof (long) - 1] == 1);
8467 rm -f conftest
$ac_exeext
8468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8469 (eval $ac_link) 2>&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
8478 ac_cv_c_bigendian
=no
8480 echo "$as_me: program exited with status $ac_status" >&5
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.
$ac_ext >&5
8485 ac_cv_c_bigendian
=yes
8487 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8491 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8492 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8493 if test $ac_cv_c_bigendian = unknown
; then
8494 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8495 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8497 cat >conftest.c
<<EOF
8498 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8499 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8500 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8501 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8502 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8503 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8504 int main() { _ascii (); _ebcdic (); return 0; }
8506 if test -f conftest.c
; then
8507 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
8508 if test `grep -l BIGenDianSyS conftest.o` ; then
8509 echo $ac_n ' big endian probe OK, ' 1>&6
8510 ac_cv_c_bigendian
=yes
8512 if test `grep -l LiTTleEnDian conftest.o` ; then
8513 echo $ac_n ' little endian probe OK, ' 1>&6
8514 if test $ac_cv_c_bigendian = yes ; then
8515 ac_cv_c_bigendian
=unknown
;
8517 ac_cv_c_bigendian
=no
8520 echo $ac_n 'guessing bigendian ... ' >&6
8523 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8524 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8526 if test $ac_cv_c_bigendian = yes; then
8528 cat >>confdefs.h
<<\_ACEOF
8529 #define WORDS_BIGENDIAN 1
8533 cat >>confdefs.h
<<\_ACEOF
8534 #define HOST_WORDS_BIG_ENDIAN 1
8542 cat >>confdefs.h
<<_ACEOF
8543 #define BYTEORDER $BYTEORDER
8546 if test $ac_cv_c_bigendian = unknown
; then
8547 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8548 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8549 { (exit 1); exit 1; }; }
8557 # Stage specific cflags for build.
8561 if test x
$GCC = xyes
8563 stage1_cflags
="-Wa,-J"
8569 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8570 # sources; use -no-cpp-precomp to get to GNU cpp.
8571 # Apple's GCC has bugs in designated initializer handling, so disable
8573 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8578 # These libraries may be used by collect2.
8579 # We may need a special search path to get them linked.
8580 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8581 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8582 if test "${gcc_cv_collect2_libs+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 for libs
in '' -lld -lmld \
8587 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8588 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8591 cat >conftest.
$ac_ext <<_ACEOF
8594 cat confdefs.h
>>conftest.
$ac_ext
8595 cat >>conftest.
$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8598 /* Override any gcc2 internal prototype to avoid an error. */
8602 /* We use char because int might match the return type of a gcc2
8603 builtin and then its argument prototype would still apply. */
8613 rm -f conftest.
$ac_objext conftest
$ac_exeext
8614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615 (eval $ac_link) 2>conftest.er1
8617 grep -v '^ *+' conftest.er1
>conftest.err
8619 cat conftest.err
>&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } &&
8622 { ac_try
='test -z "$ac_c_werror_flag"
8623 || test ! -s conftest.err'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; } &&
8629 { ac_try
='test -s conftest$ac_exeext'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 gcc_cv_collect2_libs
="$libs"; break
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.
$ac_ext >&5
8641 rm -f conftest.err conftest.
$ac_objext \
8642 conftest
$ac_exeext conftest.
$ac_ext
8645 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8647 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8648 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8649 case $gcc_cv_collect2_libs in
8651 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8655 # When building Ada code on Alpha, we need exc_resume which is usually in
8656 # -lexc. So test for it.
8659 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8660 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8661 if test "${ac_cv_search_exc_resume+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 ac_func_search_save_LIBS
=$LIBS
8665 ac_cv_search_exc_resume
=no
8666 cat >conftest.
$ac_ext <<_ACEOF
8669 cat confdefs.h
>>conftest.
$ac_ext
8670 cat >>conftest.
$ac_ext <<_ACEOF
8671 /* end confdefs.h. */
8673 /* Override any gcc2 internal prototype to avoid an error. */
8677 /* We use char because int might match the return type of a gcc2
8678 builtin and then its argument prototype would still apply. */
8688 rm -f conftest.
$ac_objext conftest
$ac_exeext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8690 (eval $ac_link) 2>conftest.er1
8692 grep -v '^ *+' conftest.er1
>conftest.err
8694 cat conftest.err
>&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try
='test -z "$ac_c_werror_flag"
8698 || test ! -s conftest.err'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try
='test -s conftest$ac_exeext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_cv_search_exc_resume
="none required"
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.
$ac_ext >&5
8716 rm -f conftest.err conftest.
$ac_objext \
8717 conftest
$ac_exeext conftest.
$ac_ext
8718 if test "$ac_cv_search_exc_resume" = no
; then
8719 for ac_lib
in exc
; do
8720 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8721 cat >conftest.
$ac_ext <<_ACEOF
8724 cat confdefs.h
>>conftest.
$ac_ext
8725 cat >>conftest.
$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8728 /* Override any gcc2 internal prototype to avoid an error. */
8732 /* We use char because int might match the return type of a gcc2
8733 builtin and then its argument prototype would still apply. */
8743 rm -f conftest.
$ac_objext conftest
$ac_exeext
8744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8745 (eval $ac_link) 2>conftest.er1
8747 grep -v '^ *+' conftest.er1
>conftest.err
8749 cat conftest.err
>&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } &&
8752 { ac_try
='test -z "$ac_c_werror_flag"
8753 || test ! -s conftest.err'
8754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; } &&
8759 { ac_try
='test -s conftest$ac_exeext'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; }; then
8765 ac_cv_search_exc_resume
="-l$ac_lib"
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.
$ac_ext >&5
8772 rm -f conftest.err conftest.
$ac_objext \
8773 conftest
$ac_exeext conftest.
$ac_ext
8776 LIBS
=$ac_func_search_save_LIBS
8778 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8779 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8780 if test "$ac_cv_search_exc_resume" != no
; then
8781 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8789 # Some systems put ldexp and frexp in libm instead of libc; assume
8790 # they're both in the same place. jcf-dump needs them.
8793 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8794 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8795 if test "${ac_cv_search_ldexp+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 ac_func_search_save_LIBS
=$LIBS
8799 ac_cv_search_ldexp
=no
8800 cat >conftest.
$ac_ext <<_ACEOF
8803 cat confdefs.h
>>conftest.
$ac_ext
8804 cat >>conftest.
$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8807 /* Override any gcc2 internal prototype to avoid an error. */
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8822 rm -f conftest.
$ac_objext conftest
$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>conftest.er1
8826 grep -v '^ *+' conftest.er1
>conftest.err
8828 cat conftest.err
>&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try
='test -z "$ac_c_werror_flag"
8832 || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try
='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_search_ldexp
="none required"
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.
$ac_ext >&5
8850 rm -f conftest.err conftest.
$ac_objext \
8851 conftest
$ac_exeext conftest.
$ac_ext
8852 if test "$ac_cv_search_ldexp" = no
; then
8854 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8855 cat >conftest.
$ac_ext <<_ACEOF
8858 cat confdefs.h
>>conftest.
$ac_ext
8859 cat >>conftest.
$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8862 /* Override any gcc2 internal prototype to avoid an error. */
8866 /* We use char because int might match the return type of a gcc2
8867 builtin and then its argument prototype would still apply. */
8877 rm -f conftest.
$ac_objext conftest
$ac_exeext
8878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879 (eval $ac_link) 2>conftest.er1
8881 grep -v '^ *+' conftest.er1
>conftest.err
8883 cat conftest.err
>&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
8886 { ac_try
='test -z "$ac_c_werror_flag"
8887 || test ! -s conftest.err'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; } &&
8893 { ac_try
='test -s conftest$ac_exeext'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; }; then
8899 ac_cv_search_ldexp
="-l$ac_lib"
8902 echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.
$ac_ext >&5
8906 rm -f conftest.err conftest.
$ac_objext \
8907 conftest
$ac_exeext conftest.
$ac_ext
8910 LIBS
=$ac_func_search_save_LIBS
8912 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8913 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8914 if test "$ac_cv_search_ldexp" != no
; then
8915 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
8923 # Use <inttypes.h> only if it exists,
8924 # doesn't clash with <sys/types.h>, and declares intmax_t.
8925 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8926 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8927 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 cat >conftest.
$ac_ext <<_ACEOF
8933 cat confdefs.h
>>conftest.
$ac_ext
8934 cat >>conftest.
$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8936 #include <sys/types.h>
8937 #include <inttypes.h>
8946 rm -f conftest.
$ac_objext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8948 (eval $ac_compile) 2>conftest.er1
8950 grep -v '^ *+' conftest.er1
>conftest.err
8952 cat conftest.err
>&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try
='test -z "$ac_c_werror_flag"
8956 || test ! -s conftest.err'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; } &&
8962 { ac_try
='test -s conftest.$ac_objext'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; }; then
8968 gcc_cv_header_inttypes_h
=yes
8970 echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.
$ac_ext >&5
8973 gcc_cv_header_inttypes_h
=no
8975 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8978 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8979 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8980 if test $gcc_cv_header_inttypes_h = yes; then
8982 cat >>confdefs.h
<<\_ACEOF
8983 #define HAVE_INTTYPES_H 1
9014 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
9015 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
9016 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
9017 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
9020 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9021 echo "$as_me:$LINENO: checking for $ac_func" >&5
9022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9023 if eval "test \"\${$as_ac_var+set}\" = set"; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 cat >conftest.
$ac_ext <<_ACEOF
9029 cat confdefs.h
>>conftest.
$ac_ext
9030 cat >>conftest.
$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9034 #define $ac_func innocuous_$ac_func
9036 /* System header to define __stub macros and hopefully few prototypes,
9037 which can conflict with char $ac_func (); below.
9038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9039 <limits.h> exists even on freestanding compilers. */
9042 # include <limits.h>
9044 # include <assert.h>
9049 /* Override any gcc2 internal prototype to avoid an error. */
9054 /* We use char because int might match the return type of a gcc2
9055 builtin and then its argument prototype would still apply. */
9057 /* The GNU C library defines this for functions which it implements
9058 to always fail with ENOSYS. Some functions are actually named
9059 something starting with __ and the normal name is an alias. */
9060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9063 char (*f) () = $ac_func;
9072 return f != $ac_func;
9077 rm -f conftest.
$ac_objext conftest
$ac_exeext
9078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9079 (eval $ac_link) 2>conftest.er1
9081 grep -v '^ *+' conftest.er1
>conftest.err
9083 cat conftest.err
>&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } &&
9086 { ac_try
='test -z "$ac_c_werror_flag"
9087 || test ! -s conftest.err'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; } &&
9093 { ac_try
='test -s conftest$ac_exeext'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; }; then
9099 eval "$as_ac_var=yes"
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.
$ac_ext >&5
9104 eval "$as_ac_var=no"
9106 rm -f conftest.err conftest.
$ac_objext \
9107 conftest
$ac_exeext conftest.
$ac_ext
9109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9111 if test `eval echo '${'$as_ac_var'}'` = yes; then
9112 cat >>confdefs.h
<<_ACEOF
9113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9120 if test x
$ac_cv_func_mbstowcs = xyes
; then
9121 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9122 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9123 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 if test "$cross_compiling" = yes; then
9127 gcc_cv_func_mbstowcs_works
=yes
9129 cat >conftest.
$ac_ext <<_ACEOF
9132 cat confdefs.h
>>conftest.
$ac_ext
9133 cat >>conftest.
$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9142 rm -f conftest
$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144 (eval $ac_link) 2>&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
9153 gcc_cv_func_mbstowcs_works
=yes
9155 echo "$as_me: program exited with status $ac_status" >&5
9156 echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.
$ac_ext >&5
9160 gcc_cv_func_mbstowcs_works
=no
9162 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9165 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9166 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9167 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9169 cat >>confdefs.h
<<\_ACEOF
9170 #define HAVE_WORKING_MBSTOWCS 1
9176 echo "$as_me:$LINENO: checking for ssize_t" >&5
9177 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9178 if test "${ac_cv_type_ssize_t+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 cat >conftest.
$ac_ext <<_ACEOF
9184 cat confdefs.h
>>conftest.
$ac_ext
9185 cat >>conftest.
$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9187 $ac_includes_default
9193 if (sizeof (ssize_t))
9199 rm -f conftest.
$ac_objext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9201 (eval $ac_compile) 2>conftest.er1
9203 grep -v '^ *+' conftest.er1
>conftest.err
9205 cat conftest.err
>&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try
='test -z "$ac_c_werror_flag"
9209 || test ! -s conftest.err'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; } &&
9215 { ac_try
='test -s conftest.$ac_objext'
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; }; then
9221 ac_cv_type_ssize_t
=yes
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.
$ac_ext >&5
9226 ac_cv_type_ssize_t
=no
9228 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9230 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9231 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9232 if test $ac_cv_type_ssize_t = yes; then
9236 cat >>confdefs.h
<<_ACEOF
9243 # Try to determine the array type of the second argument of getgroups
9244 # for the target system (int or gid_t).
9245 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9246 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9247 if test "${ac_cv_type_uid_t+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 cat >conftest.
$ac_ext <<_ACEOF
9253 cat confdefs.h
>>conftest.
$ac_ext
9254 cat >>conftest.
$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 #include <sys/types.h>
9259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260 $EGREP "uid_t" >/dev
/null
2>&1; then
9261 ac_cv_type_uid_t
=yes
9268 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9269 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9270 if test $ac_cv_type_uid_t = no
; then
9272 cat >>confdefs.h
<<\_ACEOF
9277 cat >>confdefs.h
<<\_ACEOF
9283 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9284 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9285 if test "${ac_cv_type_getgroups+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 if test "$cross_compiling" = yes; then
9289 ac_cv_type_getgroups
=cross
9291 cat >conftest.
$ac_ext <<_ACEOF
9294 cat confdefs.h
>>conftest.
$ac_ext
9295 cat >>conftest.
$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9297 /* Thanks to Mike Rendell for this test. */
9298 #include <sys/types.h>
9301 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9308 union { gid_t gval; long lval; } val;
9311 for (i = 0; i < NGID; i++)
9312 gidset[i] = val.gval;
9313 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9315 /* Exit non-zero if getgroups seems to require an array of ints. This
9316 happens when gid_t is short but getgroups modifies an array of ints. */
9317 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9320 rm -f conftest
$ac_exeext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9322 (eval $ac_link) 2>&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; }; then
9331 ac_cv_type_getgroups
=gid_t
9333 echo "$as_me: program exited with status $ac_status" >&5
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.
$ac_ext >&5
9338 ac_cv_type_getgroups
=int
9340 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9342 if test $ac_cv_type_getgroups = cross
; then
9343 cat >conftest.
$ac_ext <<_ACEOF
9346 cat confdefs.h
>>conftest.
$ac_ext
9347 cat >>conftest.
$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9353 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9354 ac_cv_type_getgroups
=gid_t
9356 ac_cv_type_getgroups
=int
9362 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9363 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9365 cat >>confdefs.h
<<_ACEOF
9366 #define GETGROUPS_T $ac_cv_type_getgroups
9370 if test "${target}" = "${build}"; then
9371 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9374 # This condition may need some tweaking. It should include all
9375 # targets where the array type of the second argument of getgroups
9376 # is int and the type of gid_t is not equivalent to int.
9377 *-*-sunos* |
*-*-ultrix*)
9378 TARGET_GETGROUPS_T
=int
9381 TARGET_GETGROUPS_T
=gid_t
9387 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9388 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9389 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 if test "$cross_compiling" = yes; then
9393 gcc_cv_func_printf_ptr
=no
9395 cat >conftest.
$ac_ext <<_ACEOF
9398 cat confdefs.h
>>conftest.
$ac_ext
9399 cat >>conftest.
$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9406 char *p = buf, *q = NULL;
9407 sprintf(buf, "%p", p);
9408 sscanf(buf, "%p", &q);
9412 rm -f conftest
$ac_exeext
9413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9414 (eval $ac_link) 2>&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
9423 gcc_cv_func_printf_ptr
=yes
9425 echo "$as_me: program exited with status $ac_status" >&5
9426 echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.
$ac_ext >&5
9430 gcc_cv_func_printf_ptr
=no
9432 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9434 rm -f core core.
* *.core
9436 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9437 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9438 if test $gcc_cv_func_printf_ptr = yes ; then
9440 cat >>confdefs.h
<<\_ACEOF
9441 #define HAVE_PRINTF_PTR 1
9447 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9448 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9449 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 cat >conftest.
$ac_ext <<_ACEOF
9455 cat confdefs.h
>>conftest.
$ac_ext
9456 cat >>conftest.
$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9458 #include <sys/mman.h>
9460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9461 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9463 grep -v '^ *+' conftest.er1
>conftest.err
9465 cat conftest.err
>&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } >/dev
/null
; then
9468 if test -s conftest.err
; then
9469 ac_cpp_err
=$ac_c_preproc_warn_flag
9470 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9477 if test -z "$ac_cpp_err"; then
9478 ac_cv_header_sys_mman_h
=yes
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.
$ac_ext >&5
9483 ac_cv_header_sys_mman_h
=no
9485 rm -f conftest.err conftest.
$ac_ext
9487 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9488 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9489 if test $ac_cv_header_sys_mman_h = yes; then
9490 gcc_header_sys_mman_h
=yes
9492 gcc_header_sys_mman_h
=no
9495 echo "$as_me:$LINENO: checking for mmap" >&5
9496 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9497 if test "${ac_cv_func_mmap+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 cat >conftest.
$ac_ext <<_ACEOF
9503 cat confdefs.h
>>conftest.
$ac_ext
9504 cat >>conftest.
$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9506 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9508 #define mmap innocuous_mmap
9510 /* System header to define __stub macros and hopefully few prototypes,
9511 which can conflict with char mmap (); below.
9512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9513 <limits.h> exists even on freestanding compilers. */
9516 # include <limits.h>
9518 # include <assert.h>
9523 /* Override any gcc2 internal prototype to avoid an error. */
9528 /* We use char because int might match the return type of a gcc2
9529 builtin and then its argument prototype would still apply. */
9531 /* The GNU C library defines this for functions which it implements
9532 to always fail with ENOSYS. Some functions are actually named
9533 something starting with __ and the normal name is an alias. */
9534 #if defined (__stub_mmap) || defined (__stub___mmap)
9537 char (*f) () = mmap;
9551 rm -f conftest.
$ac_objext conftest
$ac_exeext
9552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9553 (eval $ac_link) 2>conftest.er1
9555 grep -v '^ *+' conftest.er1
>conftest.err
9557 cat conftest.err
>&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } &&
9560 { ac_try
='test -z "$ac_c_werror_flag"
9561 || test ! -s conftest.err'
9562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; } &&
9567 { ac_try
='test -s conftest$ac_exeext'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; }; then
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.
$ac_ext >&5
9580 rm -f conftest.err conftest.
$ac_objext \
9581 conftest
$ac_exeext conftest.
$ac_ext
9583 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9584 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9585 if test $ac_cv_func_mmap = yes; then
9591 if test "$gcc_header_sys_mman_h" != yes \
9592 ||
test "$gcc_func_mmap" != yes; then
9593 gcc_cv_func_mmap_file
=no
9594 gcc_cv_func_mmap_dev_zero
=no
9595 gcc_cv_func_mmap_anon
=no
9597 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9598 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9599 if test "${gcc_cv_func_mmap_file+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 # Add a system to this blacklist if
9603 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9604 # memory area containing the same data that you'd get if you applied
9605 # read() to the same fd. The only system known to have a problem here
9606 # is VMS, where text files have record structure.
9609 gcc_cv_func_mmap_file
=no
;;
9611 gcc_cv_func_mmap_file
=yes;;
9614 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9615 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9616 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9617 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9618 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 # Add a system to this blacklist if it has mmap() but /dev/zero
9622 # does not exist, or if mmapping /dev/zero does not give anonymous
9623 # zeroed pages with both the following properties:
9624 # 1. If you map N consecutive pages in with one call, and then
9625 # unmap any subset of those pages, the pages that were not
9626 # explicitly unmapped remain accessible.
9627 # 2. If you map two adjacent blocks of memory and then unmap them
9628 # both at once, they must both go away.
9629 # Systems known to be in this category are Windows (all variants),
9632 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9633 gcc_cv_func_mmap_dev_zero
=no
;;
9635 gcc_cv_func_mmap_dev_zero
=yes;;
9638 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9639 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9641 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9642 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9643 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9644 if test "${gcc_cv_decl_map_anon+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 cat >conftest.
$ac_ext <<_ACEOF
9650 cat confdefs.h
>>conftest.
$ac_ext
9651 cat >>conftest.
$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9653 #include <sys/types.h>
9654 #include <sys/mman.h>
9657 #ifndef MAP_ANONYMOUS
9658 #define MAP_ANONYMOUS MAP_ANON
9664 int n = MAP_ANONYMOUS;
9669 rm -f conftest.
$ac_objext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9671 (eval $ac_compile) 2>conftest.er1
9673 grep -v '^ *+' conftest.er1
>conftest.err
9675 cat conftest.err
>&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } &&
9678 { ac_try
='test -z "$ac_c_werror_flag"
9679 || test ! -s conftest.err'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try
='test -s conftest.$ac_objext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 gcc_cv_decl_map_anon
=yes
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.
$ac_ext >&5
9696 gcc_cv_decl_map_anon
=no
9698 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9700 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9701 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9703 if test $gcc_cv_decl_map_anon = no
; then
9704 gcc_cv_func_mmap_anon
=no
9706 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9707 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9708 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9712 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9713 # doesn't give anonymous zeroed pages with the same properties listed
9714 # above for use of /dev/zero.
9715 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9717 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9718 gcc_cv_func_mmap_anon
=no
;;
9720 gcc_cv_func_mmap_anon
=yes;;
9723 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9724 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9728 if test $gcc_cv_func_mmap_file = yes; then
9730 cat >>confdefs.h
<<\_ACEOF
9731 #define HAVE_MMAP_FILE 1
9735 if test $gcc_cv_func_mmap_dev_zero = yes; then
9737 cat >>confdefs.h
<<\_ACEOF
9738 #define HAVE_MMAP_DEV_ZERO 1
9742 if test $gcc_cv_func_mmap_anon = yes; then
9744 cat >>confdefs.h
<<\_ACEOF
9745 #define HAVE_MMAP_ANON 1
9753 # Under VMS, vfork works very differently than on Unix. The standard test
9754 # won't work, and it isn't easily adaptable. It makes more sense to
9756 ac_cv_func_vfork_works
=yes
9759 echo "$as_me:$LINENO: checking for pid_t" >&5
9760 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9761 if test "${ac_cv_type_pid_t+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 cat >conftest.
$ac_ext <<_ACEOF
9767 cat confdefs.h
>>conftest.
$ac_ext
9768 cat >>conftest.
$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9770 $ac_includes_default
9782 rm -f conftest.
$ac_objext
9783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9784 (eval $ac_compile) 2>conftest.er1
9786 grep -v '^ *+' conftest.er1
>conftest.err
9788 cat conftest.err
>&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } &&
9791 { ac_try
='test -z "$ac_c_werror_flag"
9792 || test ! -s conftest.err'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; } &&
9798 { ac_try
='test -s conftest.$ac_objext'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
9804 ac_cv_type_pid_t
=yes
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.
$ac_ext >&5
9811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9813 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9814 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9815 if test $ac_cv_type_pid_t = yes; then
9819 cat >>confdefs.h
<<_ACEOF
9827 for ac_header
in unistd.h vfork.h
9829 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9830 echo "$as_me:$LINENO: checking for $ac_header" >&5
9831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 cat >conftest.
$ac_ext <<_ACEOF
9838 cat confdefs.h
>>conftest.
$ac_ext
9839 cat >>conftest.
$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 #include <$ac_header>
9843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9844 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9846 grep -v '^ *+' conftest.er1
>conftest.err
9848 cat conftest.err
>&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } >/dev
/null
; then
9851 if test -s conftest.err
; then
9852 ac_cpp_err
=$ac_c_preproc_warn_flag
9853 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9860 if test -z "$ac_cpp_err"; then
9861 eval "$as_ac_Header=yes"
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.
$ac_ext >&5
9866 eval "$as_ac_Header=no"
9868 rm -f conftest.err conftest.
$ac_ext
9870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9873 cat >>confdefs.h
<<_ACEOF
9874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9882 for ac_func
in fork vfork
9884 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9885 echo "$as_me:$LINENO: checking for $ac_func" >&5
9886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9887 if eval "test \"\${$as_ac_var+set}\" = set"; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 cat >conftest.
$ac_ext <<_ACEOF
9893 cat confdefs.h
>>conftest.
$ac_ext
9894 cat >>conftest.
$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9898 #define $ac_func innocuous_$ac_func
9900 /* System header to define __stub macros and hopefully few prototypes,
9901 which can conflict with char $ac_func (); below.
9902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9903 <limits.h> exists even on freestanding compilers. */
9906 # include <limits.h>
9908 # include <assert.h>
9913 /* Override any gcc2 internal prototype to avoid an error. */
9918 /* We use char because int might match the return type of a gcc2
9919 builtin and then its argument prototype would still apply. */
9921 /* The GNU C library defines this for functions which it implements
9922 to always fail with ENOSYS. Some functions are actually named
9923 something starting with __ and the normal name is an alias. */
9924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9927 char (*f) () = $ac_func;
9936 return f != $ac_func;
9941 rm -f conftest.
$ac_objext conftest
$ac_exeext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943 (eval $ac_link) 2>conftest.er1
9945 grep -v '^ *+' conftest.er1
>conftest.err
9947 cat conftest.err
>&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } &&
9950 { ac_try
='test -z "$ac_c_werror_flag"
9951 || test ! -s conftest.err'
9952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; } &&
9957 { ac_try
='test -s conftest$ac_exeext'
9958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; }; then
9963 eval "$as_ac_var=yes"
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.
$ac_ext >&5
9968 eval "$as_ac_var=no"
9970 rm -f conftest.err conftest.
$ac_objext \
9971 conftest
$ac_exeext conftest.
$ac_ext
9973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9975 if test `eval echo '${'$as_ac_var'}'` = yes; then
9976 cat >>confdefs.h
<<_ACEOF
9977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9983 if test "x$ac_cv_func_fork" = xyes
; then
9984 echo "$as_me:$LINENO: checking for working fork" >&5
9985 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9986 if test "${ac_cv_func_fork_works+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 if test "$cross_compiling" = yes; then
9990 ac_cv_func_fork_works
=cross
9992 cat >conftest.
$ac_ext <<_ACEOF
9993 /* By Ruediger Kuhlmann. */
9994 #include <sys/types.h>
9996 # include <unistd.h>
9998 /* Some systems only have a dummy stub for fork() */
10006 rm -f conftest
$ac_exeext
10007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008 (eval $ac_link) 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_cv_func_fork_works
=yes
10019 echo "$as_me: program exited with status $ac_status" >&5
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.
$ac_ext >&5
10023 ( exit $ac_status )
10024 ac_cv_func_fork_works
=no
10026 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10029 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10030 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10033 ac_cv_func_fork_works
=$ac_cv_func_fork
10035 if test "x$ac_cv_func_fork_works" = xcross
; then
10037 *-*-amigaos* |
*-*-msdosdjgpp*)
10038 # Override, as these systems have only a dummy fork() stub
10039 ac_cv_func_fork_works
=no
10042 ac_cv_func_fork_works
=yes
10045 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10046 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10048 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10049 if test "x$ac_cv_func_vfork" = xyes
; then
10050 echo "$as_me:$LINENO: checking for working vfork" >&5
10051 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10052 if test "${ac_cv_func_vfork_works+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 if test "$cross_compiling" = yes; then
10056 ac_cv_func_vfork_works
=cross
10058 cat >conftest.
$ac_ext <<_ACEOF
10061 cat confdefs.h
>>conftest.
$ac_ext
10062 cat >>conftest.
$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 /* Thanks to Paul Eggert for this test. */
10066 #include <stdlib.h>
10067 #include <sys/types.h>
10068 #include <sys/stat.h>
10069 #include <sys/wait.h>
10071 # include <unistd.h>
10074 # include <vfork.h>
10076 /* On some sparc systems, changes by the child to local and incoming
10077 argument registers are propagated back to the parent. The compiler
10078 is told about this with #include <vfork.h>, but some compilers
10079 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10080 static variable whose address is put into a register that is
10081 clobbered by the vfork. */
10084 sparc_address_test (int arg)
10086 sparc_address_test (arg) int arg;
10089 static pid_t child;
10107 pid_t parent = getpid ();
10110 sparc_address_test (0);
10115 /* Here is another test for sparc vfork register problems. This
10116 test uses lots of local variables, at least as many local
10117 variables as main has allocated so far including compiler
10118 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10119 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10120 reuse the register of parent for one of the local variables,
10121 since it will think that parent can't possibly be used any more
10122 in this routine. Assigning to the local variable will thus
10123 munge parent in the parent process. */
10125 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10126 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10127 /* Convince the compiler that p..p7 are live; otherwise, it might
10128 use the same hardware register for all 8 local variables. */
10129 if (p != p1 || p != p2 || p != p3 || p != p4
10130 || p != p5 || p != p6 || p != p7)
10133 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10134 from child file descriptors. If the child closes a descriptor
10135 before it execs or exits, this munges the parent's descriptor
10136 as well. Test for this by closing stdout in the child. */
10137 _exit(close(fileno(stdout)) != 0);
10142 while (wait(&status) != child)
10145 /* Was there some problem with vforking? */
10148 /* Did the child fail? (This shouldn't happen.) */
10151 /* Did the vfork/compiler bug occur? */
10152 || parent != getpid()
10154 /* Did the file descriptor bug occur? */
10155 || fstat(fileno(stdout), &st) != 0
10160 rm -f conftest
$ac_exeext
10161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10162 (eval $ac_link) 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }; then
10171 ac_cv_func_vfork_works
=yes
10173 echo "$as_me: program exited with status $ac_status" >&5
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.
$ac_ext >&5
10177 ( exit $ac_status )
10178 ac_cv_func_vfork_works
=no
10180 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10183 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10184 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10187 if test "x$ac_cv_func_fork_works" = xcross
; then
10188 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10189 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10190 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10193 if test "x$ac_cv_func_vfork_works" = xyes
; then
10195 cat >>confdefs.h
<<\_ACEOF
10196 #define HAVE_WORKING_VFORK 1
10201 cat >>confdefs.h
<<\_ACEOF
10206 if test "x$ac_cv_func_fork_works" = xyes
; then
10208 cat >>confdefs.h
<<\_ACEOF
10209 #define HAVE_WORKING_FORK 1
10216 if test "X$prefix" = "XNONE"; then
10217 acl_final_prefix
="$ac_default_prefix"
10219 acl_final_prefix
="$prefix"
10221 if test "X$exec_prefix" = "XNONE"; then
10222 acl_final_exec_prefix
='${prefix}'
10224 acl_final_exec_prefix
="$exec_prefix"
10226 acl_save_prefix
="$prefix"
10227 prefix
="$acl_final_prefix"
10228 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10229 prefix
="$acl_save_prefix"
10232 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10233 if test "${with_gnu_ld+set}" = set; then
10234 withval
="$with_gnu_ld"
10235 test "$withval" = no || with_gnu_ld
=yes
10239 # Prepare PATH_SEPARATOR.
10240 # The user is always right.
10241 if test "${PATH_SEPARATOR+set}" != set; then
10242 echo "#! /bin/sh" >conf$$.sh
10243 echo "exit 0" >>conf$$.sh
10245 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10253 if test "$GCC" = yes; then
10254 # Check if gcc -print-prog-name=ld gives a path.
10255 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10256 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10259 # gcc leaves a trailing carriage return which upsets mingw
10260 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10262 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10265 # Accept absolute paths.
10266 [\\/]* |
[A-Za-z
]:[\\/]*)
10267 re_direlt
='/[^/][^/]*/\.\./'
10268 # Canonicalize the path of ld
10269 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10270 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10271 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10273 test -z "$LD" && LD
="$ac_prog"
10276 # If it fails, then pretend we aren't using GCC.
10280 # If it is relative, then search for the first ld in PATH.
10281 with_gnu_ld
=unknown
10284 elif test "$with_gnu_ld" = yes; then
10285 echo "$as_me:$LINENO: checking for GNU ld" >&5
10286 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10288 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10289 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10291 if test "${acl_cv_path_LD+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 if test -z "$LD"; then
10295 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10296 for ac_dir
in $PATH; do
10297 test -z "$ac_dir" && ac_dir
=.
10298 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10299 acl_cv_path_LD
="$ac_dir/$ac_prog"
10300 # Check to see if the program is GNU ld. I'd rather use --version,
10301 # but apparently some GNU ld's only accept -v.
10302 # Break only if it was the GNU/non-GNU ld that we prefer.
10303 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10304 test "$with_gnu_ld" != no
&& break
10306 test "$with_gnu_ld" != yes && break
10312 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10316 LD
="$acl_cv_path_LD"
10317 if test -n "$LD"; then
10318 echo "$as_me:$LINENO: result: $LD" >&5
10319 echo "${ECHO_T}$LD" >&6
10321 echo "$as_me:$LINENO: result: no" >&5
10322 echo "${ECHO_T}no" >&6
10324 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10325 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10326 { (exit 1); exit 1; }; }
10327 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10328 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10329 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10332 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10333 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10334 acl_cv_prog_gnu_ld
=yes
10336 acl_cv_prog_gnu_ld
=no
10339 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10340 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10341 with_gnu_ld
=$acl_cv_prog_gnu_ld
10345 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10346 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10347 if test "${acl_cv_rpath+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10352 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10354 rm -f .
/conftest.sh
10358 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10359 echo "${ECHO_T}$acl_cv_rpath" >&6
10361 libext
="$acl_cv_libext"
10362 shlibext
="$acl_cv_shlibext"
10363 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10364 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10365 hardcode_direct
="$acl_cv_hardcode_direct"
10366 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10367 # Check whether --enable-rpath or --disable-rpath was given.
10368 if test "${enable_rpath+set}" = set; then
10369 enableval
="$enable_rpath"
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 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10396 if test "${with_libiconv_prefix+set}" = set; then
10397 withval
="$with_libiconv_prefix"
10399 if test "X$withval" = "Xno"; then
10402 if test "X$withval" = "X"; then
10404 acl_save_prefix
="$prefix"
10405 prefix
="$acl_final_prefix"
10406 acl_save_exec_prefix
="$exec_prefix"
10407 exec_prefix
="$acl_final_exec_prefix"
10409 eval additional_includedir
=\"$includedir\"
10410 eval additional_libdir
=\"$libdir\"
10412 exec_prefix
="$acl_save_exec_prefix"
10413 prefix
="$acl_save_prefix"
10416 additional_includedir
="$withval/include"
10417 additional_libdir
="$withval/lib"
10427 names_already_handled
=
10428 names_next_round
='iconv '
10429 while test -n "$names_next_round"; do
10430 names_this_round
="$names_next_round"
10432 for name
in $names_this_round; do
10434 for n
in $names_already_handled; do
10435 if test "$n" = "$name"; then
10436 already_handled
=yes
10440 if test -z "$already_handled"; then
10441 names_already_handled
="$names_already_handled $name"
10442 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10443 eval value
=\"\
$HAVE_LIB$uppername\"
10444 if test -n "$value"; then
10445 if test "$value" = yes; then
10446 eval value
=\"\
$LIB$uppername\"
10447 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10448 eval value
=\"\
$LTLIB$uppername\"
10449 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10458 if test $use_additional = yes; then
10459 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10460 found_dir
="$additional_libdir"
10461 found_so
="$additional_libdir/lib$name.$shlibext"
10462 if test -f "$additional_libdir/lib$name.la"; then
10463 found_la
="$additional_libdir/lib$name.la"
10466 if test -f "$additional_libdir/lib$name.$libext"; then
10467 found_dir
="$additional_libdir"
10468 found_a
="$additional_libdir/lib$name.$libext"
10469 if test -f "$additional_libdir/lib$name.la"; then
10470 found_la
="$additional_libdir/lib$name.la"
10475 if test "X$found_dir" = "X"; then
10476 for x
in $LDFLAGS $LTLIBICONV; do
10478 acl_save_prefix
="$prefix"
10479 prefix
="$acl_final_prefix"
10480 acl_save_exec_prefix
="$exec_prefix"
10481 exec_prefix
="$acl_final_exec_prefix"
10483 exec_prefix
="$acl_save_exec_prefix"
10484 prefix
="$acl_save_prefix"
10488 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10489 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10491 found_so
="$dir/lib$name.$shlibext"
10492 if test -f "$dir/lib$name.la"; then
10493 found_la
="$dir/lib$name.la"
10496 if test -f "$dir/lib$name.$libext"; then
10498 found_a
="$dir/lib$name.$libext"
10499 if test -f "$dir/lib$name.la"; then
10500 found_la
="$dir/lib$name.la"
10506 if test "X$found_dir" != "X"; then
10511 if test "X$found_dir" != "X"; then
10512 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10513 if test "X$found_so" != "X"; then
10514 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10515 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10518 for x
in $ltrpathdirs; do
10519 if test "X$x" = "X$found_dir"; then
10524 if test -z "$haveit"; then
10525 ltrpathdirs
="$ltrpathdirs $found_dir"
10527 if test "$hardcode_direct" = yes; then
10528 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10530 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10531 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10533 for x
in $rpathdirs; do
10534 if test "X$x" = "X$found_dir"; then
10539 if test -z "$haveit"; then
10540 rpathdirs
="$rpathdirs $found_dir"
10544 for x
in $LDFLAGS $LIBICONV; do
10546 acl_save_prefix
="$prefix"
10547 prefix
="$acl_final_prefix"
10548 acl_save_exec_prefix
="$exec_prefix"
10549 exec_prefix
="$acl_final_exec_prefix"
10551 exec_prefix
="$acl_save_exec_prefix"
10552 prefix
="$acl_save_prefix"
10554 if test "X$x" = "X-L$found_dir"; then
10559 if test -z "$haveit"; then
10560 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10562 if test "$hardcode_minus_L" != no
; then
10563 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10565 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10571 if test "X$found_a" != "X"; then
10572 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10574 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10577 additional_includedir
=
10578 case "$found_dir" in
10580 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10581 additional_includedir
="$basedir/include"
10584 if test "X$additional_includedir" != "X"; then
10585 if test "X$additional_includedir" != "X/usr/include"; then
10587 if test "X$additional_includedir" = "X/usr/local/include"; then
10588 if test -n "$GCC"; then
10590 linux
*) haveit
=yes;;
10594 if test -z "$haveit"; then
10595 for x
in $CPPFLAGS $INCICONV; do
10597 acl_save_prefix
="$prefix"
10598 prefix
="$acl_final_prefix"
10599 acl_save_exec_prefix
="$exec_prefix"
10600 exec_prefix
="$acl_final_exec_prefix"
10602 exec_prefix
="$acl_save_exec_prefix"
10603 prefix
="$acl_save_prefix"
10605 if test "X$x" = "X-I$additional_includedir"; then
10610 if test -z "$haveit"; then
10611 if test -d "$additional_includedir"; then
10612 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10618 if test -n "$found_la"; then
10619 save_libdir
="$libdir"
10620 case "$found_la" in
10621 */* |
*\\*) .
"$found_la" ;;
10622 *) .
"./$found_la" ;;
10624 libdir
="$save_libdir"
10625 for dep
in $dependency_libs; do
10628 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10629 if test "X$additional_libdir" != "X/usr/lib"; then
10631 if test "X$additional_libdir" = "X/usr/local/lib"; then
10632 if test -n "$GCC"; then
10634 linux
*) haveit
=yes;;
10638 if test -z "$haveit"; then
10640 for x
in $LDFLAGS $LIBICONV; 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 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10661 for x
in $LDFLAGS $LTLIBICONV; do
10663 acl_save_prefix
="$prefix"
10664 prefix
="$acl_final_prefix"
10665 acl_save_exec_prefix
="$exec_prefix"
10666 exec_prefix
="$acl_final_exec_prefix"
10668 exec_prefix
="$acl_save_exec_prefix"
10669 prefix
="$acl_save_prefix"
10671 if test "X$x" = "X-L$additional_libdir"; then
10676 if test -z "$haveit"; then
10677 if test -d "$additional_libdir"; then
10678 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10685 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10686 if test "$enable_rpath" != no
; then
10688 for x
in $rpathdirs; do
10689 if test "X$x" = "X$dir"; then
10694 if test -z "$haveit"; then
10695 rpathdirs
="$rpathdirs $dir"
10698 for x
in $ltrpathdirs; do
10699 if test "X$x" = "X$dir"; then
10704 if test -z "$haveit"; then
10705 ltrpathdirs
="$ltrpathdirs $dir"
10710 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10713 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10716 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10717 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10723 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10724 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10730 if test "X$rpathdirs" != "X"; then
10731 if test -n "$hardcode_libdir_separator"; then
10733 for found_dir
in $rpathdirs; do
10734 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10736 acl_save_libdir
="$libdir"
10738 eval flag
=\"$hardcode_libdir_flag_spec\"
10739 libdir
="$acl_save_libdir"
10740 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10742 for found_dir
in $rpathdirs; do
10743 acl_save_libdir
="$libdir"
10744 libdir
="$found_dir"
10745 eval flag
=\"$hardcode_libdir_flag_spec\"
10746 libdir
="$acl_save_libdir"
10747 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10751 if test "X$ltrpathdirs" != "X"; then
10752 for found_dir
in $ltrpathdirs; do
10753 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10763 am_save_CPPFLAGS
="$CPPFLAGS"
10765 for element
in $INCICONV; do
10767 for x
in $CPPFLAGS; do
10769 acl_save_prefix
="$prefix"
10770 prefix
="$acl_final_prefix"
10771 acl_save_exec_prefix
="$exec_prefix"
10772 exec_prefix
="$acl_final_exec_prefix"
10774 exec_prefix
="$acl_save_exec_prefix"
10775 prefix
="$acl_save_prefix"
10777 if test "X$x" = "X$element"; then
10782 if test -z "$haveit"; then
10783 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10788 echo "$as_me:$LINENO: checking for iconv" >&5
10789 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10790 if test "${am_cv_func_iconv+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 am_cv_func_iconv
="no, consider installing GNU libiconv"
10796 cat >conftest.
$ac_ext <<_ACEOF
10799 cat confdefs.h
>>conftest.
$ac_ext
10800 cat >>conftest.
$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 #include <stdlib.h>
10807 iconv_t cd = iconv_open("","");
10808 iconv(cd,NULL,NULL,NULL,NULL);
10814 rm -f conftest.
$ac_objext conftest
$ac_exeext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816 (eval $ac_link) 2>conftest.er1
10818 grep -v '^ *+' conftest.er1
>conftest.err
10820 cat conftest.err
>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try
='test -z "$ac_c_werror_flag"
10824 || test ! -s conftest.err'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; } &&
10830 { ac_try
='test -s conftest$ac_exeext'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }; then
10836 am_cv_func_iconv
=yes
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.
$ac_ext >&5
10842 rm -f conftest.err conftest.
$ac_objext \
10843 conftest
$ac_exeext conftest.
$ac_ext
10844 if test "$am_cv_func_iconv" != yes; then
10845 am_save_LIBS
="$LIBS"
10846 LIBS
="$LIBS $LIBICONV"
10847 cat >conftest.
$ac_ext <<_ACEOF
10850 cat confdefs.h
>>conftest.
$ac_ext
10851 cat >>conftest.
$ac_ext <<_ACEOF
10852 /* end confdefs.h. */
10853 #include <stdlib.h>
10858 iconv_t cd = iconv_open("","");
10859 iconv(cd,NULL,NULL,NULL,NULL);
10865 rm -f conftest.
$ac_objext conftest
$ac_exeext
10866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10867 (eval $ac_link) 2>conftest.er1
10869 grep -v '^ *+' conftest.er1
>conftest.err
10871 cat conftest.err
>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } &&
10874 { ac_try
='test -z "$ac_c_werror_flag"
10875 || test ! -s conftest.err'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; } &&
10881 { ac_try
='test -s conftest$ac_exeext'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 am_cv_lib_iconv
=yes
10888 am_cv_func_iconv
=yes
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.
$ac_ext >&5
10894 rm -f conftest.err conftest.
$ac_objext \
10895 conftest
$ac_exeext conftest.
$ac_ext
10896 LIBS
="$am_save_LIBS"
10900 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10901 echo "${ECHO_T}$am_cv_func_iconv" >&6
10902 if test "$am_cv_func_iconv" = yes; then
10904 cat >>confdefs.h
<<\_ACEOF
10905 #define HAVE_ICONV 1
10909 if test "$am_cv_lib_iconv" = yes; then
10910 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10911 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10912 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10913 echo "${ECHO_T}$LIBICONV" >&6
10915 CPPFLAGS
="$am_save_CPPFLAGS"
10922 if test "$am_cv_func_iconv" = yes; then
10923 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10924 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10925 if test "${am_cv_proto_iconv+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 cat >conftest.
$ac_ext <<_ACEOF
10932 cat confdefs.h
>>conftest.
$ac_ext
10933 cat >>conftest.
$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10936 #include <stdlib.h>
10942 #if defined(__STDC__) || defined(__cplusplus)
10943 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10956 rm -f conftest.
$ac_objext
10957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10958 (eval $ac_compile) 2>conftest.er1
10960 grep -v '^ *+' conftest.er1
>conftest.err
10962 cat conftest.err
>&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } &&
10965 { ac_try
='test -z "$ac_c_werror_flag"
10966 || test ! -s conftest.err'
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; } &&
10972 { ac_try
='test -s conftest.$ac_objext'
10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974 (eval $ac_try) 2>&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; }; then
10978 am_cv_proto_iconv_arg1
=""
10980 echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.
$ac_ext >&5
10983 am_cv_proto_iconv_arg1
="const"
10985 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10986 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);"
10989 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10990 echo "$as_me:$LINENO: result: ${ac_t:-
10991 }$am_cv_proto_iconv" >&5
10992 echo "${ECHO_T}${ac_t:-
10993 }$am_cv_proto_iconv" >&6
10995 cat >>confdefs.h
<<_ACEOF
10996 #define ICONV_CONST $am_cv_proto_iconv_arg1
11001 # Until we have in-tree GNU iconv:
11006 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11007 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11008 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11011 cat >conftest.
$ac_ext <<_ACEOF
11014 cat confdefs.h
>>conftest.
$ac_ext
11015 cat >>conftest.
$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 #include <locale.h>
11026 rm -f conftest.
$ac_objext conftest
$ac_exeext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11028 (eval $ac_link) 2>conftest.er1
11030 grep -v '^ *+' conftest.er1
>conftest.err
11032 cat conftest.err
>&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try
='test -z "$ac_c_werror_flag"
11036 || test ! -s conftest.err'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; } &&
11042 { ac_try
='test -s conftest$ac_exeext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 am_cv_val_LC_MESSAGES
=yes
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.
$ac_ext >&5
11053 am_cv_val_LC_MESSAGES
=no
11055 rm -f conftest.err conftest.
$ac_objext \
11056 conftest
$ac_exeext conftest.
$ac_ext
11058 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11059 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11060 if test $am_cv_val_LC_MESSAGES = yes; then
11062 cat >>confdefs.h
<<\_ACEOF
11063 #define HAVE_LC_MESSAGES 1
11070 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11071 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11072 if test "${am_cv_langinfo_codeset+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 cat >conftest.
$ac_ext <<_ACEOF
11078 cat confdefs.h
>>conftest.
$ac_ext
11079 cat >>conftest.
$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11081 #include <langinfo.h>
11085 char* cs = nl_langinfo(CODESET);
11090 rm -f conftest.
$ac_objext conftest
$ac_exeext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11092 (eval $ac_link) 2>conftest.er1
11094 grep -v '^ *+' conftest.er1
>conftest.err
11096 cat conftest.err
>&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try
='test -z "$ac_c_werror_flag"
11100 || test ! -s conftest.err'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; } &&
11106 { ac_try
='test -s conftest$ac_exeext'
11107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108 (eval $ac_try) 2>&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; }; then
11112 am_cv_langinfo_codeset
=yes
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.
$ac_ext >&5
11117 am_cv_langinfo_codeset
=no
11119 rm -f conftest.err conftest.
$ac_objext \
11120 conftest
$ac_exeext conftest.
$ac_ext
11123 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11124 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11125 if test $am_cv_langinfo_codeset = yes; then
11127 cat >>confdefs.h
<<\_ACEOF
11128 #define HAVE_LANGINFO_CODESET 1
11134 # We will need to find libiberty.h and ansidecl.h
11135 saved_CFLAGS
="$CFLAGS"
11136 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11161 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
11162 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11163 fprintf_unlocked strstr errno snprintf vasprintf \
11164 malloc realloc calloc free
basename getopt
clock getpagesize
11166 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11167 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11168 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11169 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 cat >conftest.
$ac_ext <<_ACEOF
11175 cat confdefs.h
>>conftest.
$ac_ext
11176 cat >>conftest.
$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11179 #define $ac_tr_decl 1
11181 #include "ansidecl.h"
11182 #include "system.h"
11188 char *(*pfn) = (char *(*)) $ac_func ;
11194 rm -f conftest.
$ac_objext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11196 (eval $ac_compile) 2>conftest.er1
11198 grep -v '^ *+' conftest.er1
>conftest.err
11200 cat conftest.err
>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } &&
11203 { ac_try
='test -z "$ac_c_werror_flag"
11204 || test ! -s conftest.err'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; } &&
11210 { ac_try
='test -s conftest.$ac_objext'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; }; then
11216 eval "gcc_cv_have_decl_$ac_func=yes"
11218 echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.
$ac_ext >&5
11221 eval "gcc_cv_have_decl_$ac_func=no"
11223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11226 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11227 echo "$as_me:$LINENO: result: yes" >&5
11228 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11229 #define $ac_tr_decl 1
11233 echo "$as_me:$LINENO: result: no" >&5
11234 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11235 #define $ac_tr_decl 0
11246 for ac_func
in getrlimit setrlimit getrusage
11248 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11249 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11250 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11251 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 cat >conftest.
$ac_ext <<_ACEOF
11257 cat confdefs.h
>>conftest.
$ac_ext
11258 cat >>conftest.
$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11261 #define $ac_tr_decl 1
11263 #include "ansidecl.h"
11264 #include "system.h"
11265 #ifdef HAVE_SYS_RESOURCE_H
11266 #include <sys/resource.h>
11274 char *(*pfn) = (char *(*)) $ac_func ;
11280 rm -f conftest.
$ac_objext
11281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11282 (eval $ac_compile) 2>conftest.er1
11284 grep -v '^ *+' conftest.er1
>conftest.err
11286 cat conftest.err
>&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } &&
11289 { ac_try
='test -z "$ac_c_werror_flag"
11290 || test ! -s conftest.err'
11291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292 (eval $ac_try) 2>&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; } &&
11296 { ac_try
='test -s conftest.$ac_objext'
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 eval "gcc_cv_have_decl_$ac_func=yes"
11304 echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.
$ac_ext >&5
11307 eval "gcc_cv_have_decl_$ac_func=no"
11309 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11312 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11313 echo "$as_me:$LINENO: result: yes" >&5
11314 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11315 #define $ac_tr_decl 1
11319 echo "$as_me:$LINENO: result: no" >&5
11320 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11321 #define $ac_tr_decl 0
11329 cat >conftest.
$ac_ext <<_ACEOF
11332 cat confdefs.h
>>conftest.
$ac_ext
11333 cat >>conftest.
$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11336 #include "ansidecl.h"
11337 #include "system.h"
11338 #ifdef HAVE_SYS_RESOURCE_H
11339 #include <sys/resource.h>
11350 rm -f conftest.
$ac_objext
11351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11352 (eval $ac_compile) 2>conftest.er1
11354 grep -v '^ *+' conftest.er1
>conftest.err
11356 cat conftest.err
>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } &&
11359 { ac_try
='test -z "$ac_c_werror_flag"
11360 || test ! -s conftest.err'
11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; } &&
11366 { ac_try
='test -s conftest.$ac_objext'
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; }; then
11374 echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.
$ac_ext >&5
11378 cat >>confdefs.h
<<\_ACEOF
11379 #define rlim_t long
11383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11385 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11386 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11387 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11388 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11390 for ac_func
in ldgetname
11392 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11393 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11394 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11395 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11398 cat >conftest.
$ac_ext <<_ACEOF
11401 cat confdefs.h
>>conftest.
$ac_ext
11402 cat >>conftest.
$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11405 #define $ac_tr_decl 1
11407 #include "ansidecl.h"
11408 #include "system.h"
11409 #ifdef HAVE_LDFCN_H
11420 char *(*pfn) = (char *(*)) $ac_func ;
11426 rm -f conftest.
$ac_objext
11427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11428 (eval $ac_compile) 2>conftest.er1
11430 grep -v '^ *+' conftest.er1
>conftest.err
11432 cat conftest.err
>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try
='test -z "$ac_c_werror_flag"
11436 || test ! -s conftest.err'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; } &&
11442 { ac_try
='test -s conftest.$ac_objext'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
11448 eval "gcc_cv_have_decl_$ac_func=yes"
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.
$ac_ext >&5
11453 eval "gcc_cv_have_decl_$ac_func=no"
11455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11458 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11459 echo "$as_me:$LINENO: result: yes" >&5
11460 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11461 #define $ac_tr_decl 1
11465 echo "$as_me:$LINENO: result: no" >&5
11466 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11467 #define $ac_tr_decl 0
11476 for ac_func
in times
11478 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11479 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11480 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11481 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 cat >conftest.
$ac_ext <<_ACEOF
11487 cat confdefs.h
>>conftest.
$ac_ext
11488 cat >>conftest.
$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11491 #define $ac_tr_decl 1
11493 #include "ansidecl.h"
11494 #include "system.h"
11495 #ifdef HAVE_SYS_TIMES_H
11496 #include <sys/times.h>
11504 char *(*pfn) = (char *(*)) $ac_func ;
11510 rm -f conftest.
$ac_objext
11511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11512 (eval $ac_compile) 2>conftest.er1
11514 grep -v '^ *+' conftest.er1
>conftest.err
11516 cat conftest.err
>&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try
='test -z "$ac_c_werror_flag"
11520 || test ! -s conftest.err'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; } &&
11526 { ac_try
='test -s conftest.$ac_objext'
11527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528 (eval $ac_try) 2>&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
11532 eval "gcc_cv_have_decl_$ac_func=yes"
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.
$ac_ext >&5
11537 eval "gcc_cv_have_decl_$ac_func=no"
11539 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11542 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11543 echo "$as_me:$LINENO: result: yes" >&5
11544 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11545 #define $ac_tr_decl 1
11549 echo "$as_me:$LINENO: result: no" >&5
11550 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11551 #define $ac_tr_decl 0
11559 # More time-related stuff.
11560 echo "$as_me:$LINENO: checking for struct tms" >&5
11561 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11562 if test "${ac_cv_struct_tms+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 cat >conftest.
$ac_ext <<_ACEOF
11569 cat confdefs.h
>>conftest.
$ac_ext
11570 cat >>conftest.
$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11573 #include "ansidecl.h"
11574 #include "system.h"
11575 #ifdef HAVE_SYS_TIMES_H
11576 #include <sys/times.h>
11587 rm -f conftest.
$ac_objext
11588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11589 (eval $ac_compile) 2>conftest.er1
11591 grep -v '^ *+' conftest.er1
>conftest.err
11593 cat conftest.err
>&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try
='test -z "$ac_c_werror_flag"
11597 || test ! -s conftest.err'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; } &&
11603 { ac_try
='test -s conftest.$ac_objext'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 ac_cv_struct_tms
=yes
11611 echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.
$ac_ext >&5
11614 ac_cv_struct_tms
=no
11616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11618 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11619 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11620 if test $ac_cv_struct_tms = yes; then
11622 cat >>confdefs.h
<<\_ACEOF
11623 #define HAVE_STRUCT_TMS 1
11628 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11629 # revisit after autoconf 2.50.
11630 echo "$as_me:$LINENO: checking for clock_t" >&5
11631 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11632 if test "${gcc_cv_type_clock_t+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 cat >conftest.
$ac_ext <<_ACEOF
11639 cat confdefs.h
>>conftest.
$ac_ext
11640 cat >>conftest.
$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11643 #include "ansidecl.h"
11644 #include "system.h"
11654 rm -f conftest.
$ac_objext
11655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11656 (eval $ac_compile) 2>conftest.er1
11658 grep -v '^ *+' conftest.er1
>conftest.err
11660 cat conftest.err
>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
11663 { ac_try
='test -z "$ac_c_werror_flag"
11664 || test ! -s conftest.err'
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; } &&
11670 { ac_try
='test -s conftest.$ac_objext'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }; then
11676 gcc_cv_type_clock_t
=yes
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.
$ac_ext >&5
11681 gcc_cv_type_clock_t
=no
11683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11685 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11686 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11687 if test $gcc_cv_type_clock_t = yes; then
11689 cat >>confdefs.h
<<\_ACEOF
11690 #define HAVE_CLOCK_T 1
11695 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11696 CFLAGS
="$saved_CFLAGS"
11698 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11699 if test "${enable_initfini_array+set}" = set; then
11700 enableval
="$enable_initfini_array"
11704 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11705 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11706 if test "${gcc_cv_initfini_array+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 if test "$cross_compiling" = yes; then
11710 gcc_cv_initfini_array
=no
11712 cat >conftest.
$ac_ext <<_ACEOF
11715 cat confdefs.h
>>conftest.
$ac_ext
11716 cat >>conftest.
$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11720 int main (void) { return x; }
11721 int foo (void) { x = 0; }
11722 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11724 rm -f conftest
$ac_exeext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11726 (eval $ac_link) 2>&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735 gcc_cv_initfini_array
=yes
11737 echo "$as_me: program exited with status $ac_status" >&5
11738 echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.
$ac_ext >&5
11741 ( exit $ac_status )
11742 gcc_cv_initfini_array
=no
11744 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11747 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11748 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11749 enable_initfini_array
=$gcc_cv_initfini_array
11752 if test $enable_initfini_array = yes; then
11754 cat >>confdefs.h
<<\_ACEOF
11755 #define HAVE_INITFINI_ARRAY 1
11760 # mkdir takes a single argument on some systems.
11761 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11762 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11763 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11766 cat >conftest.
$ac_ext <<_ACEOF
11769 cat confdefs.h
>>conftest.
$ac_ext
11770 cat >>conftest.
$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11773 #include <sys/types.h>
11774 #ifdef HAVE_SYS_STAT_H
11775 # include <sys/stat.h>
11777 #ifdef HAVE_UNISTD_H
11778 # include <unistd.h>
11780 #ifdef HAVE_DIRECT_H
11781 # include <direct.h>
11791 rm -f conftest.
$ac_objext
11792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11793 (eval $ac_compile) 2>conftest.er1
11795 grep -v '^ *+' conftest.er1
>conftest.err
11797 cat conftest.err
>&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } &&
11800 { ac_try
='test -z "$ac_c_werror_flag"
11801 || test ! -s conftest.err'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; } &&
11807 { ac_try
='test -s conftest.$ac_objext'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11813 gcc_cv_mkdir_takes_one_arg
=no
11815 echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.
$ac_ext >&5
11818 gcc_cv_mkdir_takes_one_arg
=yes
11820 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11822 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11823 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11824 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11826 cat >>confdefs.h
<<\_ACEOF
11827 #define MKDIR_TAKES_ONE_ARG 1
11839 # With Setjmp/Longjmp based exception handling.
11840 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11841 if test "${enable_sjlj_exceptions+set}" = set; then
11842 enableval
="$enable_sjlj_exceptions"
11843 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11845 cat >>confdefs.h
<<_ACEOF
11846 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11851 # For platforms with the unwind ABI which includes an unwind library,
11852 # libunwind, we can choose to use the system libunwind.
11854 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11855 if test "${with_system_libunwind+set}" = set; then
11856 withval
="$with_system_libunwind"
11860 # --------------------------------------------------------
11861 # Build, host, and target specific configuration fragments
11862 # --------------------------------------------------------
11864 # Collect build-machine-specific information.
11865 .
${srcdir}/config.build
11867 # Collect host-machine-specific information.
11868 .
${srcdir}/config.
host
11872 # Collect target-machine-specific information.
11873 .
${srcdir}/config.gcc
11875 extra_objs
="${host_extra_objs} ${extra_objs}"
11876 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11878 # Default the target-machine variables that were not explicitly set.
11879 if test x
"$tm_file" = x
11880 then tm_file
=$cpu_type/$cpu_type.h
; fi
11882 if test x
"$extra_headers" = x
11883 then extra_headers
=; fi
11885 if test x
$md_file = x
11886 then md_file
=$cpu_type/$cpu_type.md
; fi
11888 if test x
$out_file = x
11889 then out_file
=$cpu_type/$cpu_type.c
; fi
11891 if test x
"$tmake_file" = x
11892 then tmake_file
=$cpu_type/t-
$cpu_type
11895 if test x
"$dwarf2" = xyes
11896 then tm_file
="$tm_file tm-dwarf2.h"
11899 # Say what files are being used for the output code and MD file.
11900 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11901 echo "Using \`$srcdir/config/$md_file' as machine description file."
11903 # If any of the xm_file variables contain nonexistent files, warn
11904 # about them and drop them.
11907 for x
in $build_xm_file; do
11908 if test -f $srcdir/config
/$x
11910 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11911 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11914 build_xm_file
="$bx"
11917 for x
in $host_xm_file; do
11918 if test -f $srcdir/config
/$x
11920 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11921 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11927 for x
in $xm_file; do
11928 if test -f $srcdir/config
/$x
11930 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11931 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11937 for f
in $tm_file; do
11940 if test $count = ax
; then
11941 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11943 echo "Using the following target machine macro files:"
11944 for f
in $tm_file; do
11945 echo " $srcdir/config/$f"
11949 if test x
$need_64bit_hwint = xyes
; then
11951 cat >>confdefs.h
<<\_ACEOF
11952 #define NEED_64BIT_HOST_WIDE_INT 1
11957 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11959 cat >>confdefs.h
<<\_ACEOF
11960 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11966 for f
in $host_xm_file; do
11969 if test $count = a
; then
11971 elif test $count = ax
; then
11972 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11974 echo "Using the following host machine macro files:"
11975 for f
in $host_xm_file; do
11976 echo " $srcdir/config/$f"
11979 echo "Using ${out_host_hook_obj} for host machine hooks."
11981 if test "$host_xm_file" != "$build_xm_file"; then
11983 for f
in $build_xm_file; do
11986 if test $count = a
; then
11988 elif test $count = ax
; then
11989 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11991 echo "Using the following build machine macro files:"
11992 for f
in $build_xm_file; do
11993 echo " $srcdir/config/$f"
12002 # Check if a valid thread package
12003 case ${enable_threads} in
12006 target_thread_file
='single'
12010 target_thread_file
='single'
12012 aix | dce | gnat | irix | posix | posix95 | rtems | \
12013 single | solaris | vxworks | win32
)
12014 target_thread_file
=${enable_threads}
12017 echo "${enable_threads} is an unknown thread package" 1>&2
12022 if test x
${thread_file} = x
; then
12023 # No thread file set by target-specific clauses in config.gcc,
12024 # so use file chosen by default logic above
12025 thread_file
=${target_thread_file}
12028 # Make gthr-default.h if we have a thread file.
12030 if test $thread_file != single
; then
12031 rm -f gthr-default.h
12032 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12033 gthread_flags
=-DHAVE_GTHR_DEFAULT
12042 if test x
$enable___cxa_atexit = xyes || \
12043 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12044 if test x
$host = x
$target; then
12045 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12046 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12047 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 cat >conftest.
$ac_ext <<_ACEOF
12053 cat confdefs.h
>>conftest.
$ac_ext
12054 cat >>conftest.
$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12058 #define __cxa_atexit innocuous___cxa_atexit
12060 /* System header to define __stub macros and hopefully few prototypes,
12061 which can conflict with char __cxa_atexit (); below.
12062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12063 <limits.h> exists even on freestanding compilers. */
12066 # include <limits.h>
12068 # include <assert.h>
12071 #undef __cxa_atexit
12073 /* Override any gcc2 internal prototype to avoid an error. */
12078 /* We use char because int might match the return type of a gcc2
12079 builtin and then its argument prototype would still apply. */
12080 char __cxa_atexit ();
12081 /* The GNU C library defines this for functions which it implements
12082 to always fail with ENOSYS. Some functions are actually named
12083 something starting with __ and the normal name is an alias. */
12084 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12087 char (*f) () = __cxa_atexit;
12096 return f != __cxa_atexit;
12101 rm -f conftest.
$ac_objext conftest
$ac_exeext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12103 (eval $ac_link) 2>conftest.er1
12105 grep -v '^ *+' conftest.er1
>conftest.err
12107 cat conftest.err
>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } &&
12110 { ac_try
='test -z "$ac_c_werror_flag"
12111 || test ! -s conftest.err'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; } &&
12117 { ac_try
='test -s conftest$ac_exeext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 ac_cv_func___cxa_atexit
=yes
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.
$ac_ext >&5
12128 ac_cv_func___cxa_atexit
=no
12130 rm -f conftest.err conftest.
$ac_objext \
12131 conftest
$ac_exeext conftest.
$ac_ext
12133 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12134 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12135 if test $ac_cv_func___cxa_atexit = yes; then
12138 echo "__cxa_atexit can't be enabled on this target"
12142 # We can't check for __cxa_atexit when building a cross, so assume
12146 if test x
$use_cxa_atexit = xyes
; then
12148 cat >>confdefs.h
<<\_ACEOF
12149 #define DEFAULT_USE_CXA_ATEXIT 1
12155 # Look for a file containing extra machine modes.
12156 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12157 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12160 cat >>confdefs.h
<<_ACEOF
12161 #define EXTRA_MODES_FILE "config/$extra_modes"
12166 # Convert extra_options into a form suitable for Makefile use.
12168 for f
in $extra_options; do
12169 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12173 # auto-host.h is the file containing items generated by autoconf and is
12174 # the first file included by config.h.
12175 # If host=build, it is correct to have bconfig include auto-host.h
12176 # as well. If host!=build, we are in error and need to do more
12177 # work to find out the build config parameters.
12178 if test x
$host = x
$build
12180 build_auto
=auto-host.h
12182 # We create a subdir, then run autoconf in the subdir.
12183 # To prevent recursion we set host and build for the new
12184 # invocation of configure to the build for this invocation
12191 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12192 *) realsrcdir
=..
/${srcdir};;
12194 saved_CFLAGS
="${CFLAGS}"
12195 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12196 ${realsrcdir}/configure \
12197 --enable-languages=${enable_languages-all} \
12198 --target=$target_alias --host=$build_alias --build=$build_alias
12199 CFLAGS
="${saved_CFLAGS}"
12201 # We just finished tests for the build machine, so rename
12202 # the file auto-build.h in the gcc directory.
12203 mv auto-host.h ..
/auto-build.h
12206 build_auto
=auto-build.h
12210 tm_file
="${tm_file} defaults.h"
12211 tm_p_file
="${tm_p_file} tm-preds.h"
12212 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12213 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12214 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12215 # put this back in temporarily.
12216 xm_file
="ansidecl.h ${xm_file}"
12222 # Compile in configure arguments.
12223 if test -f configargs.h
; then
12224 # Being re-configured.
12225 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12226 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12228 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12231 # Double all backslashes and backslash all quotes to turn
12232 # gcc_config_arguments into a C string.
12233 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12234 $gcc_config_arguments
12236 gcc_config_arguments_str
=`cat conftest.out`
12239 cat > configargs.h
<<EOF
12240 /* Generated automatically. */
12241 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12242 static const char thread_model[] = "$thread_file";
12244 static const struct {
12245 const char *name, *value;
12246 } configure_default_options[] = $configure_default_options;
12249 # Internationalization
12250 # If we haven't got the data from the intl directory,
12251 # assume NLS is disabled.
12259 if test -f ..
/intl
/config.intl
; then
12260 . ..
/intl
/config.intl
12262 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12263 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12264 if test x
"$USE_NLS" != xyes
; then
12265 echo "$as_me:$LINENO: result: no" >&5
12266 echo "${ECHO_T}no" >&6
12268 echo "$as_me:$LINENO: result: yes" >&5
12269 echo "${ECHO_T}yes" >&6
12271 cat >>confdefs.h
<<\_ACEOF
12272 #define ENABLE_NLS 1
12276 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12277 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12278 # Look for .po and .gmo files in the source directory.
12281 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12282 # If there aren't any .gmo files the shell will give us the
12283 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12285 case "$cat" in *\
**)
12288 # The quadruple backslash is collapsed to a double backslash
12289 # by the backticks, then collapsed again by the double quotes,
12290 # leaving us with one backslash in the sed expression (right
12291 # before the dot that mustn't act as a wildcard).
12292 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12293 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12294 # The user is allowed to set LINGUAS to a list of languages to
12295 # install catalogs for. If it's empty that means "all of them."
12296 if test "x$LINGUAS" = x
; then
12297 CATALOGS
="$CATALOGS $cat"
12298 XLINGUAS
="$XLINGUAS $lang"
12300 case "$LINGUAS" in *$lang*)
12301 CATALOGS
="$CATALOGS $cat"
12302 XLINGUAS
="$XLINGUAS $lang"
12307 LINGUAS
="$XLINGUAS"
12308 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12309 echo "${ECHO_T}$LINGUAS" >&6
12312 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12313 # -liconv on the link line twice.
12314 case "$LIBINTL" in *$LIBICONV*)
12318 # Windows32 Registry support for specifying GCC installation paths.
12319 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12320 if test "${enable_win32_registry+set}" = set; then
12321 enableval
="$enable_win32_registry"
12326 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12327 if test "x$enable_win32_registry" != xno
; then
12328 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12329 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12330 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 ac_func_search_save_LIBS
=$LIBS
12334 ac_cv_search_RegOpenKeyExA
=no
12335 cat >conftest.
$ac_ext <<_ACEOF
12338 cat confdefs.h
>>conftest.
$ac_ext
12339 cat >>conftest.
$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12342 /* Override any gcc2 internal prototype to avoid an error. */
12346 /* We use char because int might match the return type of a gcc2
12347 builtin and then its argument prototype would still apply. */
12348 char RegOpenKeyExA ();
12357 rm -f conftest.
$ac_objext conftest
$ac_exeext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12359 (eval $ac_link) 2>conftest.er1
12361 grep -v '^ *+' conftest.er1
>conftest.err
12363 cat conftest.err
>&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try
='test -z "$ac_c_werror_flag"
12367 || test ! -s conftest.err'
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; } &&
12373 { ac_try
='test -s conftest$ac_exeext'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; }; then
12379 ac_cv_search_RegOpenKeyExA
="none required"
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.
$ac_ext >&5
12385 rm -f conftest.err conftest.
$ac_objext \
12386 conftest
$ac_exeext conftest.
$ac_ext
12387 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12388 for ac_lib
in advapi32
; do
12389 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12390 cat >conftest.
$ac_ext <<_ACEOF
12393 cat confdefs.h
>>conftest.
$ac_ext
12394 cat >>conftest.
$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12397 /* Override any gcc2 internal prototype to avoid an error. */
12401 /* We use char because int might match the return type of a gcc2
12402 builtin and then its argument prototype would still apply. */
12403 char RegOpenKeyExA ();
12412 rm -f conftest.
$ac_objext conftest
$ac_exeext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12414 (eval $ac_link) 2>conftest.er1
12416 grep -v '^ *+' conftest.er1
>conftest.err
12418 cat conftest.err
>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try
='test -z "$ac_c_werror_flag"
12422 || test ! -s conftest.err'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try
='test -s conftest$ac_exeext'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
12434 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.
$ac_ext >&5
12441 rm -f conftest.err conftest.
$ac_objext \
12442 conftest
$ac_exeext conftest.
$ac_ext
12445 LIBS
=$ac_func_search_save_LIBS
12447 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12448 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12449 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12450 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12453 enable_win32_registry
=no
12458 if test "x$enable_win32_registry" != xno
; then
12460 cat >>confdefs.h
<<\_ACEOF
12461 #define ENABLE_WIN32_REGISTRY 1
12465 if test "x$enable_win32_registry" != xyes \
12466 && test "x$enable_win32_registry" != x
; then
12468 cat >>confdefs.h
<<_ACEOF
12469 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12477 # Get an absolute path to the GCC top-level source directory
12478 holddir
=`${PWDCMD-pwd}`
12480 topdir
=`${PWDCMD-pwd}`
12483 # Conditionalize the makefile for this host machine.
12485 for f
in ${host_xmake_file}
12487 if test -f ${srcdir}/config
/$f
12489 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12493 # Conditionalize the makefile for this target machine.
12495 for f
in ${tmake_file}
12497 if test -f ${srcdir}/config
/$f
12499 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12502 tmake_file
="${tmake_file_}"
12504 # If the host doesn't support symlinks, modify CC in
12505 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12506 # Otherwise, we can use "CC=$(CC)".
12510 cc_set_by_configure
="\$(CC)"
12511 quoted_cc_set_by_configure
="\$(CC)"
12512 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12513 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12516 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12517 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12518 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12519 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12523 # This is a terrible hack which will go away some day.
12524 host_cc_for_libada
=${CC}
12527 out_object_file
=`basename $out_file .c`.o
12529 tm_file_list
="options.h"
12530 tm_include_list
="options.h"
12531 for f
in $tm_file; do
12534 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12535 tm_include_list
="${tm_include_list} $f"
12538 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12539 tm_include_list
="${tm_include_list} config/$f"
12546 for f
in $tm_p_file; do
12549 tm_p_file_list
="${tm_p_file_list} $f"
12550 tm_p_include_list
="${tm_p_include_list} $f"
12553 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12554 tm_p_include_list
="${tm_p_include_list} config/$f"
12560 for f
in $xm_file; do
12563 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12564 xm_include_list
="${xm_include_list} $f"
12567 xm_file_list
="${xm_file_list} $f"
12568 xm_include_list
="${xm_include_list} $f"
12571 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12572 xm_include_list
="${xm_include_list} config/$f"
12578 host_xm_include_list
=
12579 for f
in $host_xm_file; do
12582 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12583 host_xm_include_list
="${host_xm_include_list} $f"
12586 host_xm_file_list
="${host_xm_file_list} $f"
12587 host_xm_include_list
="${host_xm_include_list} $f"
12590 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12591 host_xm_include_list
="${host_xm_include_list} config/$f"
12596 build_xm_file_list
=
12597 for f
in $build_xm_file; do
12600 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12601 build_xm_include_list
="${build_xm_include_list} $f"
12603 auto-build.h | auto-host.h
)
12604 build_xm_file_list
="${build_xm_file_list} $f"
12605 build_xm_include_list
="${build_xm_include_list} $f"
12608 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12609 build_xm_include_list
="${build_xm_include_list} config/$f"
12614 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12615 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12618 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12619 if test x
$host != x
$target
12621 CROSS
="-DCROSS_COMPILE"
12623 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12624 case "$host","$target" in
12625 # Darwin crosses can use the host system's libraries and headers,
12626 # because of the fat library support. Of course, it must be the
12627 # same version of Darwin on both sides. Allow the user to
12628 # just say --target=foo-darwin without a version number to mean
12629 # "the version on this system".
12630 *-*-darwin*,*-*-darwin*)
12631 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12632 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12633 if test $hostos = $targetos -o $targetos = darwin
; then
12635 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12640 i?
86-*-*,x86_64-
*-* \
12641 | powerpc
*-*-*,powerpc64
*-*-*)
12642 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12644 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12645 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12646 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12649 # If this is a cross-compiler that does not
12650 # have its own set of headers then define
12653 # If this is using newlib, without having the headers available now,
12654 # then define inhibit_libc in LIBGCC2_CFLAGS.
12655 # This prevents libgcc2 from containing any code which requires libc
12658 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12659 test x
$with_newlib = xyes
; } &&
12660 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12661 inhibit_libc
=-Dinhibit_libc
12665 # When building gcc with a cross-compiler, we need to adjust things so
12666 # that the generator programs are still built with the native compiler.
12667 # Also, we cannot run fixincludes or fix-header.
12669 # These are the normal (build=host) settings:
12670 CC_FOR_BUILD
='$(CC)'
12671 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12672 STMP_FIXINC
=stmp-fixinc
12674 # Possibly disable fixproto, on a per-target basis.
12675 case ${use_fixproto} in
12680 STMP_FIXPROTO
=stmp-fixproto
12685 # And these apply if build != host, or we are generating coverage data
12686 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12688 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12690 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12691 if "x$STMP_FIXPROTO" != x
; then
12692 STMP_FIXPROTO
=stmp-install-fixproto
12697 # Expand extra_headers to include complete path.
12698 # This substitutes for lots of t-* files.
12699 extra_headers_list
=
12700 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12701 for file in ${extra_headers} ; do
12702 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12705 # Define collect2 in Makefile.
12706 case $host_can_use_collect2 in
12708 *) collect2
='collect2$(exeext)' ;;
12712 # Add a definition of USE_COLLECT2 if system wants one.
12713 case $use_collect2 in
12714 no
) use_collect2
= ;;
12717 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12718 xm_defines
="${xm_defines} USE_COLLECT2"
12719 case $host_can_use_collect2 in
12721 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12722 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12723 { (exit 1); exit 1; }; }
12729 # ---------------------------
12730 # Assembler & linker features
12731 # ---------------------------
12733 # Identify the assembler which will work hand-in-glove with the newly
12734 # built GCC, so that we can examine its features. This is the assembler
12735 # which will be driven by the driver program.
12737 # If build != host, and we aren't building gas in-tree, we identify a
12738 # build->target assembler and hope that it will have the same features
12739 # as the host->target assembler we'll be using.
12740 echo "$as_me:$LINENO: checking what assembler to use" >&5
12741 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12744 gcc_cv_gas_major_version
=
12745 gcc_cv_gas_minor_version
=
12746 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12747 if test -x "$DEFAULT_ASSEMBLER"; then
12748 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12749 elif test -x as
$build_exeext; then
12750 # Build using assembler in the current directory.
12751 gcc_cv_as
=.
/as
$build_exeext
12752 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12753 && test -f ..
/gas
/Makefile \
12754 && test x
$build = x
$host; then
12755 # Single tree build which includes gas. We want to prefer it
12756 # over whatever linker top-level may have detected, since
12757 # we'll use what we're building after installation anyway.
12759 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12760 for f
in $gcc_cv_as_bfd_srcdir/configure \
12761 $gcc_cv_as_gas_srcdir/configure \
12762 $gcc_cv_as_gas_srcdir/configure.
in \
12763 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12764 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12765 if test x
$gcc_cv_gas_version != x
; then
12769 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12770 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12771 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12772 case $gcc_cv_gas_patch_version in
12773 "") gcc_cv_gas_patch_version
="0" ;;
12775 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12776 + $gcc_cv_gas_minor_version \) \* 1000 \
12777 + $gcc_cv_gas_patch_version`
12779 rm -f as
$build_exeext
12780 $LN_S ..
/gas
/as-new
$build_exeext as
$build_exeext 2>/dev
/null
12781 in_tree_gas_is_elf
=no
12782 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12783 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12784 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12786 in_tree_gas_is_elf
=yes
12788 elif test -x "$AS_FOR_TARGET"; then
12789 gcc_cv_as
="$AS_FOR_TARGET"
12790 elif test -x "$AS" && test x
$host = x
$target; then
12794 gcc_version
=`cat $srcdir/BASE-VER`
12796 if test "x$gcc_cv_as" = x
; then
12797 # Search the same directories that the installed compiler will
12798 # search. Else we may find the wrong assembler and lose. If we
12799 # do not find a suitable assembler binary, then try the user's
12802 # Also note we have to check MD_EXEC_PREFIX before checking the
12803 # user's path. Unfortunately, there is no good way to get at the
12804 # value of MD_EXEC_PREFIX here. So we do a brute force search
12805 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12806 # to be fixed as part of the make/configure rewrite too.
12808 if test "x$exec_prefix" = xNONE
; then
12809 if test "x$prefix" = xNONE
; then
12810 test_prefix
=/usr
/local
12812 test_prefix
=$prefix
12815 test_prefix
=$exec_prefix
12818 # If the loop below does not find an assembler, then use whatever
12819 # one we can find in the users's path. We are looking for a
12820 # ${build} -> ${target} assembler.
12821 if test "x$program_prefix" != xNONE
; then
12822 gcc_cv_as
=${program_prefix}as
$build_exeext
12823 elif test x
$build != x
$host && test x
$build != x
$target; then
12824 gcc_cv_as
=${target_noncanonical}-as$build_exeext
12826 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$build_exeext
12829 if test x
$host = x
$build; then
12830 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12831 $test_prefix/libexec/gcc/$target_noncanonical \
12832 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12833 /usr/lib/gcc/$target_noncanonical \
12834 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12835 $test_prefix/$target_noncanonical/bin"
12840 if test x
$build = x
$target; then
12841 test_dirs
="$test_dirs \
12846 /bsd43/usr/lib/cmplrs/cc \
12847 /usr/cross64/usr/bin \
12848 /usr/lib/cmplrs/cc \
12849 /sysv/usr/lib/cmplrs/cc \
12850 /svr4/usr/lib/cmplrs/cc \
12854 for dir
in $test_dirs; do
12855 if test -x $dir/as
$build_exeext; then
12856 gcc_cv_as
=$dir/as
$build_exeext
12861 case $in_tree_gas in
12863 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12864 echo "${ECHO_T}\"newly built gas\"" >&6
12867 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12868 echo "${ECHO_T}$gcc_cv_as" >&6
12872 # Identify the linker which will work hand-in-glove with the newly
12873 # built GCC, so that we can examine its features. This is the linker
12874 # which will be driven by the driver program.
12876 # If build != host, and we aren't building gas in-tree, we identify a
12877 # build->target linker and hope that it will have the same features
12878 # as the host->target linker we'll be using.
12879 echo "$as_me:$LINENO: checking what linker to use" >&5
12880 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12883 gcc_cv_gld_major_version
=
12884 gcc_cv_gld_minor_version
=
12885 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12886 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12887 if test -x "$DEFAULT_LINKER"; then
12888 gcc_cv_ld
="$DEFAULT_LINKER"
12889 elif test -x collect-ld
$build_exeext; then
12890 # Build using linker in the current directory.
12891 gcc_cv_ld
=.
/collect-ld
$build_exeext
12892 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
12893 && test -f ..
/ld
/Makefile \
12894 && test x
$build = x
$host; then
12895 # Single tree build which includes ld. We want to prefer it
12896 # over whatever linker top-level may have detected, since
12897 # we'll use what we're building after installation anyway.
12899 in_tree_ld_is_elf
=no
12900 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
12901 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
12902 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
12903 in_tree_ld_is_elf
=yes
12905 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
12907 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12908 if test x
$gcc_cv_gld_version != x
; then
12912 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12913 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12914 rm -f collect-ld
$build_exeext
12915 $LN_S ..
/ld
/ld-new
$build_exeext collect-ld
$build_exeext 2>/dev
/null
12916 elif test -x "$LD_FOR_TARGET"; then
12917 gcc_cv_ld
="$LD_FOR_TARGET"
12918 elif test -x "$LD" && test x
$host = x
$target; then
12922 if test "x$gcc_cv_ld" = x
; then
12923 # Search the same directories that the installed compiler will
12924 # search. Else we may find the wrong linker and lose. If we
12925 # do not find a suitable linker binary, then try the user's
12928 # Also note we have to check MD_EXEC_PREFIX before checking the
12929 # user's path. Unfortunately, there is no good way to get at the
12930 # value of MD_EXEC_PREFIX here. So we do a brute force search
12931 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12932 # to be fixed as part of the make/configure rewrite too.
12934 if test "x$exec_prefix" = xNONE
; then
12935 if test "x$prefix" = xNONE
; then
12936 test_prefix
=/usr
/local
12938 test_prefix
=$prefix
12941 test_prefix
=$exec_prefix
12944 # If the loop below does not find a linker, then use whatever
12945 # one we can find in the users's path. We are looking for a
12946 # ${build} -> ${target} linker.
12947 if test "x$program_prefix" != xNONE
; then
12948 gcc_cv_ld
=${program_prefix}ld
$build_exeext
12949 elif test x
$build != x
$host && test x
$build != x
$target; then
12950 gcc_cv_ld
=${target_noncanonical}-ld$build_exeext
12952 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$build_exeext
12955 if test x
$host = x
$build; then
12956 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12957 $test_prefix/libexec/gcc/$target_noncanonical \
12958 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12959 /usr/lib/gcc/$target_noncanonical \
12960 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12961 $test_prefix/$target_noncanonical/bin"
12966 if test x
$build = x
$target; then
12967 test_dirs
="$test_dirs \
12972 /bsd43/usr/lib/cmplrs/cc \
12973 /usr/cross64/usr/bin \
12974 /usr/lib/cmplrs/cc \
12975 /sysv/usr/lib/cmplrs/cc \
12976 /svr4/usr/lib/cmplrs/cc \
12980 for dir
in $test_dirs; do
12981 if test -x $dir/ld
$build_exeext; then
12982 gcc_cv_ld
=$dir/ld
$build_exeext
12987 case $in_tree_ld in
12989 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12990 echo "${ECHO_T}\"newly built ld\"" >&6
12993 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12994 echo "${ECHO_T}$gcc_cv_ld" >&6
12998 # Figure out what nm we will be using.
12999 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13000 echo "$as_me:$LINENO: checking what nm to use" >&5
13001 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13003 if test -x nm
$build_exeext; then
13004 gcc_cv_nm
=.
/nm
$build_exeext
13005 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13006 && test -f ..
/binutils
/Makefile
; then
13007 # Single tree build which includes binutils.
13009 gcc_cv_nm
=.
/nm
$build_exeext
13010 rm -f nm
$build_exeext
13011 $LN_S ..
/binutils
/nm-new
$build_exeext nm
$build_exeext 2>/dev
/null
13012 elif test "x$program_prefix" != xNONE
; then
13013 gcc_cv_nm
=${program_prefix}nm
$build_exeext
13014 elif test x
$build != x
$host && test x
$build != x
$target; then
13015 gcc_cv_nm
=${target_noncanonical}-nm$build_exeext
13017 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$build_exeext
13019 case $in_tree_nm in
13020 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13021 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13022 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13023 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13026 # Figure out what objdump we will be using.
13027 echo "$as_me:$LINENO: checking what objdump to use" >&5
13028 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13030 if test -x objdump
$build_exeext; then
13031 gcc_cv_objdump
=.
/objdump
$build_exeext
13032 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13033 && test -f ..
/binutils
/Makefile
; then
13034 # Single tree build which includes binutils.
13035 in_tree_objdump
=yes
13036 gcc_cv_objdump
=.
/objdump
$build_exeext
13037 rm -f objdump
$build_exeext
13038 $LN_S ..
/binutils
/objdump
$build_exeext objdump
$build_exeext 2>/dev
/null
13039 elif test "x$program_prefix" != xNONE
; then
13040 gcc_cv_objdump
=${program_prefix}objdump
$build_exeext
13041 elif test x
$build != x
$host && test x
$build != x
$target; then
13042 gcc_cv_objdump
=${target_noncanonical}-objdump$build_exeext
13044 gcc_cv_objdump
=`echo objdump | \
13045 sed "${program_transform_name}"`$build_exeext
13047 case $in_tree_objdump in
13048 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13049 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13050 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13051 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13054 # Figure out what assembler alignment features are present.
13055 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13056 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13057 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13060 gcc_cv_as_balign_and_p2align
=no
13061 if test $in_tree_gas = yes; then
13062 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13063 then gcc_cv_as_balign_and_p2align
=yes
13065 elif test x
$gcc_cv_as != x
; then
13067 .p2align 2' > conftest.s
13068 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; }
13075 gcc_cv_as_balign_and_p2align
=yes
13077 echo "configure: failed program was" >&5
13080 rm -f conftest.o conftest.s
13083 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13084 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13085 if test $gcc_cv_as_balign_and_p2align = yes; then
13087 cat >>confdefs.h
<<\_ACEOF
13088 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13093 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13094 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13095 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13098 gcc_cv_as_max_skip_p2align
=no
13099 if test $in_tree_gas = yes; then
13100 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13101 then gcc_cv_as_max_skip_p2align
=yes
13103 elif test x
$gcc_cv_as != x
; then
13104 echo '.p2align 4,,7' > conftest.s
13105 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }
13112 gcc_cv_as_max_skip_p2align
=yes
13114 echo "configure: failed program was" >&5
13117 rm -f conftest.o conftest.s
13120 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13121 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13122 if test $gcc_cv_as_max_skip_p2align = yes; then
13124 cat >>confdefs.h
<<\_ACEOF
13125 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13130 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13131 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13132 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 gcc_cv_as_subsection_m1
=no
13136 if test $in_tree_gas = yes; then
13137 if test $in_tree_gas_is_elf = yes \
13138 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13139 then gcc_cv_as_subsection_m1
=yes
13141 elif test x
$gcc_cv_as != x
; then
13142 echo 'conftest_label1: .word 0
13144 conftest_label2: .word 0
13145 .previous' > conftest.s
13146 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }
13153 if test x
$gcc_cv_nm != x
; then
13154 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13155 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13156 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13158 else gcc_cv_as_subsection_m1
=yes
13160 rm -f conftest.nm1 conftest.nm2
13163 echo "configure: failed program was" >&5
13166 rm -f conftest.o conftest.s
13169 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13170 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13171 if test $gcc_cv_as_subsection_m1 = yes; then
13173 cat >>confdefs.h
<<\_ACEOF
13174 #define HAVE_GAS_SUBSECTION_ORDERING 1
13179 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13180 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13181 if test "${gcc_cv_as_weak+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13185 if test $in_tree_gas = yes; then
13186 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13187 then gcc_cv_as_weak
=yes
13189 elif test x
$gcc_cv_as != x
; then
13190 echo ' .weak foobar' > conftest.s
13191 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; }
13200 echo "configure: failed program was" >&5
13203 rm -f conftest.o conftest.s
13206 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13207 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13208 if test $gcc_cv_as_weak = yes; then
13210 cat >>confdefs.h
<<\_ACEOF
13211 #define HAVE_GAS_WEAK 1
13216 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13217 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13218 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13221 gcc_cv_as_nsubspa_comdat
=no
13222 if test $in_tree_gas = yes; then
13223 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13224 then gcc_cv_as_nsubspa_comdat
=yes
13226 elif test x
$gcc_cv_as != x
; then
13227 echo ' .SPACE $TEXT$
13228 .NSUBSPA $CODE$,COMDAT' > conftest.s
13229 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231 (eval $ac_try) 2>&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; }
13236 gcc_cv_as_nsubspa_comdat
=yes
13238 echo "configure: failed program was" >&5
13241 rm -f conftest.o conftest.s
13244 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13245 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13246 if test $gcc_cv_as_nsubspa_comdat = yes; then
13248 cat >>confdefs.h
<<\_ACEOF
13249 #define HAVE_GAS_NSUBSPA_COMDAT 1
13254 # .hidden needs to be supported in both the assembler and the linker,
13255 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13256 # This is irritatingly difficult to feature test for; we have to check the
13257 # date string after the version number. If we've got an in-tree
13258 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13260 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13261 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13262 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13263 if test "${gcc_cv_as_hidden+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13266 gcc_cv_as_hidden
=no
13267 if test $in_tree_gas = yes; then
13268 if test $in_tree_gas_is_elf = yes \
13269 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13270 then gcc_cv_as_hidden
=yes
13272 elif test x
$gcc_cv_as != x
; then
13273 echo ' .hidden foobar
13274 foobar:' > conftest.s
13275 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }
13282 gcc_cv_as_hidden
=yes
13284 echo "configure: failed program was" >&5
13287 rm -f conftest.o conftest.s
13290 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13291 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13294 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13295 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13296 if test "${gcc_cv_ld_hidden+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13299 if test $in_tree_ld = yes ; then
13300 gcc_cv_ld_hidden
=no
13301 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 \
13302 && test $in_tree_ld_is_elf = yes; then
13303 gcc_cv_ld_hidden
=yes
13306 gcc_cv_ld_hidden
=yes
13307 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13308 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13309 ld_vers
=`echo $ld_ver | sed -n \
13310 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13311 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13312 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13313 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13314 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13315 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13316 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'`
13317 if test 0"$ld_date" -lt 20020404; then
13318 if test -n "$ld_date"; then
13319 # If there was date string, but was earlier than 2002-04-04, fail
13320 gcc_cv_ld_hidden
=no
13321 elif test -z "$ld_vers"; then
13322 # If there was no date string nor ld version number, something is wrong
13323 gcc_cv_ld_hidden
=no
13325 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13326 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13327 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13328 test -z "$ld_vers_patch" && ld_vers_patch
=0
13329 if test "$ld_vers_major" -lt 2; then
13330 gcc_cv_ld_hidden
=no
13331 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13332 gcc_cv_ld_hidden
="no"
13333 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13334 gcc_cv_ld_hidden
=no
13339 case "${target}" in
13340 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13341 gcc_cv_ld_hidden
=yes
13344 gcc_cv_ld_hidden
=no
13350 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13351 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13352 libgcc_visibility
=no
13354 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13355 libgcc_visibility
=yes
13357 cat >>confdefs.h
<<\_ACEOF
13358 #define HAVE_GAS_HIDDEN 1
13363 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13364 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13365 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13366 if test "${gcc_cv_as_leb128+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 gcc_cv_as_leb128
=no
13370 if test $in_tree_gas = yes; then
13371 if test $in_tree_gas_is_elf = yes \
13372 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13373 then gcc_cv_as_leb128
=yes
13375 elif test x
$gcc_cv_as != x
; then
13382 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }
13389 # GAS versions before 2.11 do not support uleb128,
13390 # despite appearing to.
13391 # ??? There exists an elf-specific test that will crash
13392 # the assembler. Perhaps it's better to figure out whether
13393 # arbitrary sections are supported and try the test.
13394 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13395 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13396 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13397 as_major
=`echo $as_ver | sed 's/\..*//'`
13398 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13399 if test $as_major -eq 2 && test $as_minor -lt 11
13401 else gcc_cv_as_leb128
=yes
13405 echo "configure: failed program was" >&5
13408 rm -f conftest.o conftest.s
13411 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13412 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13413 if test $gcc_cv_as_leb128 = yes; then
13415 cat >>confdefs.h
<<\_ACEOF
13416 #define HAVE_AS_LEB128 1
13421 # GAS versions up to and including 2.11.0 may mis-optimize
13423 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13424 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13425 if test "${gcc_cv_as_eh_frame+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 gcc_cv_as_eh_frame
=no
13429 if test $in_tree_gas = yes; then
13430 if test $in_tree_gas_is_elf = yes \
13431 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13432 then gcc_cv_as_eh_frame
=yes
13434 elif test x
$gcc_cv_as != x
; then
13441 .section .eh_frame,"aw",@progbits
13443 .4byte .LECIE1-.LSCIE1
13457 .4byte .LEFDE1-.LASFDE1
13459 .4byte .LASFDE1-__FRAME_BEGIN__
13466 .LEFDE1:' > conftest.s
13467 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }
13474 cat > conftest.lit
<<EOF
13475 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13476 0010 01000000 12000000 18000000 00000000 ................
13477 0020 08000000 04080000 0044 .........D
13479 cat > conftest.big
<<EOF
13480 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13481 0010 00000001 00000012 00000018 00000000 ................
13482 0020 00000008 04000000 0844 .........D
13484 # If the assembler didn't choke, and we can objdump,
13485 # and we got the correct data, then succeed.
13486 if test x
$gcc_cv_objdump != x \
13487 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13488 |
tail -3 > conftest.got \
13489 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13490 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13492 gcc_cv_as_eh_frame
=yes
13493 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 gcc_cv_as_eh_frame
=buggy
13501 # Uh oh, what do we do now?
13502 gcc_cv_as_eh_frame
=no
13505 echo "configure: failed program was" >&5
13508 rm -f conftest.o conftest.s
13511 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13512 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13515 if test $gcc_cv_as_eh_frame = buggy
; then
13517 cat >>confdefs.h
<<\_ACEOF
13518 #define USE_AS_TRADITIONAL_FORMAT 1
13523 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13524 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13525 if test "${gcc_cv_as_shf_merge+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 gcc_cv_as_shf_merge
=no
13529 if test $in_tree_gas = yes; then
13530 if test $in_tree_gas_is_elf = yes \
13531 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13532 then gcc_cv_as_shf_merge
=yes
13534 elif test x
$gcc_cv_as != x
; then
13535 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13536 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538 (eval $ac_try) 2>&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }; }
13543 gcc_cv_as_shf_merge
=yes
13545 echo "configure: failed program was" >&5
13548 rm -f conftest.o conftest.s
13551 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13552 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13554 if test $gcc_cv_as_shf_merge = no
; then
13555 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13556 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13557 if test "${gcc_cv_as_shf_merge+set}" = set; then
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 gcc_cv_as_shf_merge
=no
13561 if test $in_tree_gas = yes; then
13562 if test $in_tree_gas_is_elf = yes \
13563 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13564 then gcc_cv_as_shf_merge
=yes
13566 elif test x
$gcc_cv_as != x
; then
13567 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13568 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }
13575 gcc_cv_as_shf_merge
=yes
13577 echo "configure: failed program was" >&5
13580 rm -f conftest.o conftest.s
13583 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13584 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13588 cat >>confdefs.h
<<_ACEOF
13589 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13593 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13594 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13595 if test "${gcc_cv_as_comdat_group+set}" = set; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13598 gcc_cv_as_comdat_group
=no
13599 if test $in_tree_gas = yes; then
13600 if test $in_tree_gas_is_elf = yes \
13601 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13602 then gcc_cv_as_comdat_group
=yes
13604 elif test x
$gcc_cv_as != x
; then
13605 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13606 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 (eval $ac_try) 2>&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; }
13613 gcc_cv_as_comdat_group
=yes
13615 echo "configure: failed program was" >&5
13618 rm -f conftest.o conftest.s
13621 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13622 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13624 if test $gcc_cv_as_comdat_group = yes; then
13625 gcc_cv_as_comdat_group_percent
=no
13627 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13628 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13629 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13632 gcc_cv_as_comdat_group_percent
=no
13633 if test $in_tree_gas = yes; then
13634 if test $in_tree_gas_is_elf = yes \
13635 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13636 then gcc_cv_as_comdat_group_percent
=yes
13638 elif test x
$gcc_cv_as != x
; then
13639 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13640 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }
13647 gcc_cv_as_comdat_group_percent
=yes
13649 echo "configure: failed program was" >&5
13652 rm -f conftest.o conftest.s
13655 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13656 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13660 cat >>confdefs.h
<<_ACEOF
13661 #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`
13665 # Thread-local storage - the check is heavily parametrized.
13673 .section ".tdata","awT",@progbits
13676 ldq $27,__tls_get_addr($29) !literal!1
13677 lda $16,foo($29) !tlsgd!1
13678 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13679 ldq $27,__tls_get_addr($29) !literal!2
13680 lda $16,foo($29) !tlsldm!2
13681 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13682 ldq $1,foo($29) !gotdtprel
13683 ldah $2,foo($29) !dtprelhi
13684 lda $3,foo($2) !dtprello
13685 lda $4,foo($29) !dtprel
13686 ldq $1,foo($29) !gottprel
13687 ldah $2,foo($29) !tprelhi
13688 lda $3,foo($2) !tprello
13689 lda $4,foo($29) !tprel'
13692 tls_as_opt
=--fatal-warnings
13696 .section ".tdata","awT",@progbits
13699 call #gettlsoff(x)'
13705 .section ".tdata","awT",@progbits
13709 leal foo@TLSGD(,%ebx,1), %eax
13710 leal foo@TLSLDM(%ebx), %eax
13711 leal foo@DTPOFF(%eax), %edx
13712 movl foo@GOTTPOFF(%ebx), %eax
13713 subl foo@GOTTPOFF(%ebx), %eax
13714 addl foo@GOTNTPOFF(%ebx), %eax
13715 movl foo@INDNTPOFF, %eax
13716 movl $foo@TPOFF, %eax
13717 subl $foo@TPOFF, %eax
13718 leal foo@NTPOFF(%ecx), %eax'
13721 tls_as_opt
=--fatal-warnings
13725 .section ".tdata","awT",@progbits
13729 leaq foo@TLSGD(%rip), %rdi
13730 leaq foo@TLSLD(%rip), %rdi
13731 leaq foo@DTPOFF(%rax), %rdx
13732 movq foo@GOTTPOFF(%rip), %rax
13733 movq $foo@TPOFF, %rax'
13736 tls_as_opt
=--fatal-warnings
13740 .section ".tdata","awT",@progbits
13743 addl r16 = @ltoff(@dtpmod(foo#)), gp
13744 addl r17 = @ltoff(@dtprel(foo#)), gp
13745 addl r18 = @ltoff(@tprel(foo#)), gp
13746 addl r19 = @dtprel(foo#), gp
13747 adds r21 = @dtprel(foo#), r13
13748 movl r23 = @dtprel(foo#)
13749 addl r20 = @tprel(foo#), gp
13750 adds r22 = @tprel(foo#), r13
13751 movl r24 = @tprel(foo#)'
13754 tls_as_opt
=--fatal-warnings
13758 .section .tdata,"awT",@progbits
13762 addiu $4, $28, %tlsgd(x)
13763 addiu $4, $28, %tlsldm(x)
13764 lui $4, %dtprel_hi(x)
13765 addiu $4, $4, %dtprel_lo(x)
13766 lw $4, %gottprel(x)($28)
13767 lui $4, %tprel_hi(x)
13768 addiu $4, $4, %tprel_lo(x)'
13771 tls_as_opt
='-32 --fatal-warnings'
13775 .section ".tdata","awT",@progbits
13783 addi 3,31,ld0@got@tlsgd
13785 addi 3,31,x1@got@tlsld
13788 addis 9,3,x2@dtprel@ha
13789 addi 9,9,x2@dtprel@l
13790 lwz 9,x3@got@tprel(31)
13793 addis 9,2,x2@tprel@ha
13794 addi 9,9,x2@tprel@l'
13797 tls_as_opt
="-a32 --fatal-warnings"
13801 .section ".tdata","awT",@progbits
13809 addi 3,2,ld0@got@tlsgd
13815 addi 3,2,x1@got@tlsld
13821 addis 9,3,x2@dtprel@ha
13822 addi 9,9,x2@dtprel@l
13825 ld 9,x3@got@dtprel(2)
13831 tls_as_opt
="-a64 --fatal-warnings"
13835 .section ".tdata","awT",@progbits
13842 .long foo@GOTNTPOFF
13843 .long foo@INDNTPOFF
13844 l %r1,foo@GOTNTPOFF(%r12)
13845 l %r1,0(%r1):tls_load:foo
13846 bas %r14,0(%r1,%r13):tls_gdcall:foo
13847 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13850 tls_as_opt
="-m31 --fatal-warnings"
13854 .section ".tdata","awT",@progbits
13861 .quad foo@GOTNTPOFF
13862 lg %r1,foo@GOTNTPOFF(%r12)
13863 larl %r1,foo@INDNTPOFF
13864 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13865 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13868 tls_as_opt
="-m64 -Aesame --fatal-warnings"
13870 sh-
*-* | sh
[34]-*-*)
13872 .section ".tdata","awT",@progbits
13882 tls_as_opt
=--fatal-warnings
13886 sparc
*-sun-solaris2.
*)
13893 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
13895 .section ".tdata",#alloc,#write,#tls
13898 sethi %tgd_hi22(foo), %o0
13899 add %o0, %tgd_lo10(foo), %o1
13900 add %l7, %o1, %o0, %tgd_add(foo)
13901 call __tls_get_addr, %tgd_call(foo)
13902 sethi %tldm_hi22(foo), %l1
13903 add %l1, %tldm_lo10(foo), %l2
13904 add %l7, %l2, %o0, %tldm_add(foo)
13905 call __tls_get_addr, %tldm_call(foo)
13906 sethi %tldo_hix22(foo), %l3
13907 xor %l3, %tldo_lox10(foo), %l4
13908 add %o0, %l4, %l5, %tldo_add(foo)
13909 sethi %tie_hi22(foo), %o3
13910 add %o3, %tie_lo10(foo), %o3
13911 ld [%l7 + %o3], %o2, %tie_ld(foo)
13912 add %g7, %o2, %o4, %tie_add(foo)
13913 sethi %tle_hix22(foo), %l1
13914 xor %l1, %tle_lox10(foo), %o5
13915 ld [%g7 + %o5], %o1'
13920 .section ".tdata","awT",@progbits
13923 sethi %tgd_hi22(foo), %o0
13924 add %o0, %tgd_lo10(foo), %o1
13925 add %l7, %o1, %o0, %tgd_add(foo)
13926 call __tls_get_addr, %tgd_call(foo)
13927 sethi %tldm_hi22(foo), %l1
13928 add %l1, %tldm_lo10(foo), %l2
13929 add %l7, %l2, %o0, %tldm_add(foo)
13930 call __tls_get_addr, %tldm_call(foo)
13931 sethi %tldo_hix22(foo), %l3
13932 xor %l3, %tldo_lox10(foo), %l4
13933 add %o0, %l4, %l5, %tldo_add(foo)
13934 sethi %tie_hi22(foo), %o3
13935 add %o3, %tie_lo10(foo), %o3
13936 ld [%l7 + %o3], %o2, %tie_ld(foo)
13937 add %g7, %o2, %o4, %tie_add(foo)
13938 sethi %tle_hix22(foo), %l1
13939 xor %l1, %tle_lox10(foo), %o5
13940 ld [%g7 + %o5], %o1'
13943 tls_as_opt
="-32 --fatal-warnings"
13947 if test -z "$tls_first_major"; then
13948 : # If we don't have a check, assume no support.
13950 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13951 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13952 if test "${gcc_cv_as_tls+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 if test $in_tree_gas = yes; then
13957 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13958 then gcc_cv_as_tls
=yes
13960 elif test x
$gcc_cv_as != x
; then
13961 echo "$conftest_s" > conftest.s
13962 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }
13971 echo "configure: failed program was" >&5
13974 rm -f conftest.o conftest.s
13977 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13978 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13979 if test $gcc_cv_as_tls = yes; then
13981 cat >>confdefs.h
<<\_ACEOF
13982 #define HAVE_AS_TLS 1
13988 # Target-specific assembler checks.
13990 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13991 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13992 gcc_cv_ld_static_dynamic
=no
13993 if test $in_tree_ld = yes ; then
13994 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13995 gcc_cv_ld_static_dynamic
=yes
13997 elif test x
$gcc_cv_ld != x
; then
13998 # Check if linker supports -Bstatic/-Bdynamic option
13999 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14000 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14001 gcc_cv_ld_static_dynamic
=yes
14004 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14006 cat >>confdefs.h
<<\_ACEOF
14007 #define HAVE_LD_STATIC_DYNAMIC 1
14011 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14012 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14014 if test x
"$demangler_in_ld" = xyes
; then
14015 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14016 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14017 gcc_cv_ld_demangle
=no
14018 if test $in_tree_ld = yes; then
14019 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 \
14020 gcc_cv_ld_demangle
=yes
14022 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14023 # Check if the GNU linker supports --demangle option
14024 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14025 gcc_cv_ld_demangle
=yes
14028 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14030 cat >>confdefs.h
<<\_ACEOF
14031 #define HAVE_LD_DEMANGLE 1
14035 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14036 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14040 # All TARGET_ABI_OSF targets.
14041 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14042 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14043 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14044 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 gcc_cv_as_alpha_explicit_relocs
=no
14048 if test $in_tree_gas = yes; then
14049 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14050 then gcc_cv_as_alpha_explicit_relocs
=yes
14052 elif test x
$gcc_cv_as != x
; then
14053 echo ' .set nomacro
14055 extbl $3, $2, $3 !lituse_bytoff!1
14056 ldq $2, a($29) !literal!1
14057 ldq $4, b($29) !literal!2
14058 ldq_u $3, 0($2) !lituse_base!1
14059 ldq $27, f($29) !literal!5
14060 jsr $26, ($27), f !lituse_jsr!5
14061 ldah $29, 0($26) !gpdisp!3
14062 lda $0, c($29) !gprel
14063 ldah $1, d($29) !gprelhigh
14064 lda $1, d($1) !gprellow
14065 lda $29, 0($29) !gpdisp!3' > conftest.s
14066 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }
14073 gcc_cv_as_alpha_explicit_relocs
=yes
14075 echo "configure: failed program was" >&5
14078 rm -f conftest.o conftest.s
14081 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14082 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14083 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14085 cat >>confdefs.h
<<\_ACEOF
14086 #define HAVE_AS_EXPLICIT_RELOCS 1
14093 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14094 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14095 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14098 gcc_cv_as_cris_no_mul_bug
=no
14099 if test $in_tree_gas = yes; then
14100 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14101 then gcc_cv_as_cris_no_mul_bug
=yes
14103 elif test x
$gcc_cv_as != x
; then
14104 echo '.text' > conftest.s
14105 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; }
14112 gcc_cv_as_cris_no_mul_bug
=yes
14114 echo "configure: failed program was" >&5
14117 rm -f conftest.o conftest.s
14120 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14121 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14122 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14124 cat >>confdefs.h
<<\_ACEOF
14125 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14132 echo "$as_me:$LINENO: checking assembler for .register" >&5
14133 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14134 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 gcc_cv_as_sparc_register_op
=no
14138 if test x
$gcc_cv_as != x
; then
14139 echo '.register %g2, #scratch' > conftest.s
14140 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; }
14147 gcc_cv_as_sparc_register_op
=yes
14149 echo "configure: failed program was" >&5
14152 rm -f conftest.o conftest.s
14155 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14156 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14157 if test $gcc_cv_as_sparc_register_op = yes; then
14159 cat >>confdefs.h
<<\_ACEOF
14160 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14165 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14166 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14167 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 gcc_cv_as_sparc_relax
=no
14171 if test x
$gcc_cv_as != x
; then
14172 echo '.text' > conftest.s
14173 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }
14180 gcc_cv_as_sparc_relax
=yes
14182 echo "configure: failed program was" >&5
14185 rm -f conftest.o conftest.s
14188 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14189 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14190 if test $gcc_cv_as_sparc_relax = yes; then
14192 cat >>confdefs.h
<<\_ACEOF
14193 #define HAVE_AS_RELAX_OPTION 1
14198 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14199 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14200 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 gcc_cv_as_sparc_ua_pcrel
=no
14204 if test x
$gcc_cv_as != x
; then
14211 .uaword %r_disp32(foo)' > conftest.s
14212 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }
14219 if test x
$gcc_cv_ld != x \
14220 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14221 gcc_cv_as_sparc_ua_pcrel
=yes
14225 echo "configure: failed program was" >&5
14228 rm -f conftest.o conftest.s
14231 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14232 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14233 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14235 cat >>confdefs.h
<<\_ACEOF
14236 #define HAVE_AS_SPARC_UA_PCREL 1
14240 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14241 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14242 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14246 if test x
$gcc_cv_as != x
; then
14250 .uaword %r_disp32(foo)
14251 .byte 0x32, 0x33, 0x34
14255 .skip 4' > conftest.s
14256 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258 (eval $ac_try) 2>&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; }
14263 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14264 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14265 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14266 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14267 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14268 |
grep 'DISP32' > /dev
/null
2>&1; then
14271 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14276 echo "configure: failed program was" >&5
14279 rm -f conftest.o conftest.s
14282 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14283 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14284 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14286 cat >>confdefs.h
<<\_ACEOF
14287 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14292 fi # unaligned pcrel relocs
14294 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14295 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14296 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14299 gcc_cv_as_sparc_offsetable_lo10
=no
14300 if test x
$gcc_cv_as != x
; then
14302 or %g1, %lo(ab) + 12, %g1
14303 or %g1, %lo(ab + 12), %g1' > conftest.s
14304 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }
14311 if test x
$gcc_cv_objdump != x \
14312 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14313 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14314 gcc_cv_as_sparc_offsetable_lo10
=yes
14317 echo "configure: failed program was" >&5
14320 rm -f conftest.o conftest.s
14323 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14324 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14325 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14327 cat >>confdefs.h
<<\_ACEOF
14328 #define HAVE_AS_OFFSETABLE_LO10 1
14334 i
[34567]86-*-* | x86_64-
*-*)
14336 cygwin
* | pe | mingw32
*)
14337 # Used for DWARF 2 in PE
14338 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14339 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14340 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14343 gcc_cv_as_ix86_pe_secrel32
=no
14344 if test $in_tree_gas = yes; then
14345 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14346 then gcc_cv_as_ix86_pe_secrel32
=yes
14348 elif test x
$gcc_cv_as != x
; then
14352 .secrel32 foo' > conftest.s
14353 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }
14360 if test x
$gcc_cv_ld != x \
14361 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14362 gcc_cv_as_ix86_pe_secrel32
=yes
14366 echo "configure: failed program was" >&5
14369 rm -f conftest.o conftest.s
14372 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14373 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14374 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14376 cat >>confdefs.h
<<\_ACEOF
14377 #define HAVE_GAS_PE_SECREL32_RELOC 1
14384 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14385 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14386 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14389 gcc_cv_as_ix86_filds_fists
=no
14390 if test $in_tree_gas = yes; then
14391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14392 then gcc_cv_as_ix86_filds_fists
=yes
14394 elif test x
$gcc_cv_as != x
; then
14395 echo 'filds mem; fists mem' > conftest.s
14396 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }
14403 gcc_cv_as_ix86_filds_fists
=yes
14405 echo "configure: failed program was" >&5
14408 rm -f conftest.o conftest.s
14411 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14412 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14413 if test $gcc_cv_as_ix86_filds_fists = yes; then
14415 cat >>confdefs.h
<<\_ACEOF
14416 #define HAVE_GAS_FILDS_FISTS 1
14421 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14422 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14423 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 gcc_cv_as_ix86_cmov_sun_syntax
=no
14427 if test x
$gcc_cv_as != x
; then
14428 echo 'cmovl.l %edx, %eax' > conftest.s
14429 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }
14436 gcc_cv_as_ix86_cmov_sun_syntax
=yes
14438 echo "configure: failed program was" >&5
14441 rm -f conftest.o conftest.s
14444 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14445 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14446 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14448 cat >>confdefs.h
<<\_ACEOF
14449 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14454 # This one is used unconditionally by i386.[ch]; it is to be defined
14455 # to 1 if the feature is present, 0 otherwise.
14456 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14457 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14458 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14461 gcc_cv_as_ix86_gotoff_in_data
=no
14462 if test $in_tree_gas = yes; then
14463 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14464 then gcc_cv_as_ix86_gotoff_in_data
=yes
14466 elif test x
$gcc_cv_as != x
; then
14471 .long .L0@GOTOFF' > conftest.s
14472 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }
14479 gcc_cv_as_ix86_gotoff_in_data
=yes
14481 echo "configure: failed program was" >&5
14484 rm -f conftest.o conftest.s
14487 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14488 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14491 cat >>confdefs.h
<<_ACEOF
14492 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14498 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14499 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14500 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
14504 if test $in_tree_gas = yes; then
14505 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14506 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14508 elif test x
$gcc_cv_as != x
; then
14510 addl r15 = @ltoffx(x#), gp
14512 ld8.mov r16 = [r15], x#' > conftest.s
14513 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; }
14520 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14522 echo "configure: failed program was" >&5
14525 rm -f conftest.o conftest.s
14528 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14529 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14530 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14532 cat >>confdefs.h
<<\_ACEOF
14533 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14542 *-*-aix*) conftest_s
=' .csect .text[PR]
14545 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14546 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14547 if test "${gcc_cv_as_machine_directive+set}" = set; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 gcc_cv_as_machine_directive
=no
14551 if test x
$gcc_cv_as != x
; then
14552 echo ' .machine ppc7400' > conftest.s
14553 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555 (eval $ac_try) 2>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }
14560 gcc_cv_as_machine_directive
=yes
14562 echo "configure: failed program was" >&5
14565 rm -f conftest.o conftest.s
14568 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14569 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14571 if test x
$gcc_cv_as_machine_directive != xyes
; then
14572 echo "*** This target requires an assembler supporting \".machine\"" >&2
14573 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
14574 test x
$build = x
$target && exit 1
14578 *) conftest_s
=' .machine power4
14583 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14584 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14585 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 gcc_cv_as_powerpc_mfcrf
=no
14589 if test $in_tree_gas = yes; then
14590 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14591 then gcc_cv_as_powerpc_mfcrf
=yes
14593 elif test x
$gcc_cv_as != x
; then
14594 echo "$conftest_s" > conftest.s
14595 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }; }
14602 gcc_cv_as_powerpc_mfcrf
=yes
14604 echo "configure: failed program was" >&5
14607 rm -f conftest.o conftest.s
14610 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14611 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14612 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14614 cat >>confdefs.h
<<\_ACEOF
14615 #define HAVE_AS_MFCRF 1
14622 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14623 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14624 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 gcc_cv_as_mips_explicit_relocs
=no
14628 if test $in_tree_gas = yes; then
14629 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14630 then gcc_cv_as_mips_explicit_relocs
=yes
14632 elif test x
$gcc_cv_as != x
; then
14633 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14634 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }
14641 gcc_cv_as_mips_explicit_relocs
=yes
14643 echo "configure: failed program was" >&5
14646 rm -f conftest.o conftest.s
14649 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14650 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14651 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14652 if test x
$target_cpu_default = x
14653 then target_cpu_default
=MASK_EXPLICIT_RELOCS
14654 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14658 if test x
$gas_flag = xyes \
14659 ||
test x
"$host" != x
"$build" \
14660 ||
test ! -x "$gcc_cv_as" \
14661 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
14664 echo "*** This configuration requires the GNU assembler" >&2
14669 # ??? Not all targets support dwarf2 debug_line, even within a version
14670 # of gas. Moreover, we need to emit a valid instruction to trigger any
14671 # info to the output file. So, as supported targets are added to gas 2.11,
14672 # add some instruction here to (also) show we expect this might work.
14673 # ??? Once 2.11 is released, probably need to add first known working
14674 # version to the per-target configury.
14676 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
14677 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
14678 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
14681 ia64
*-*-* | s390
*-*-*)
14688 if test x
"$insn" != x
; then
14690 .file 1 \"conftest.s\"
14693 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14694 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14695 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 gcc_cv_as_dwarf2_debug_line
=no
14699 if test $in_tree_gas = yes; then
14700 if test $in_tree_gas_is_elf = yes \
14701 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14702 then gcc_cv_as_dwarf2_debug_line
=yes
14704 elif test x
$gcc_cv_as != x
; then
14705 echo "$conftest_s" > conftest.s
14706 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }
14713 if test x
$gcc_cv_objdump != x \
14714 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
14715 |
grep debug_line
> /dev
/null
2>&1; then
14716 gcc_cv_as_dwarf2_debug_line
=yes
14719 echo "configure: failed program was" >&5
14722 rm -f conftest.o conftest.s
14725 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14726 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14729 # The .debug_line file table must be in the exact order that
14730 # we specified the files, since these indices are also used
14731 # by DW_AT_decl_file. Approximate this test by testing if
14732 # the assembler bitches if the same index is assigned twice.
14733 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14734 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14735 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14738 gcc_cv_as_dwarf2_file_buggy
=no
14739 if test x
$gcc_cv_as != x
; then
14740 echo ' .file 1 "foo.s"
14741 .file 1 "bar.s"' > conftest.s
14742 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }
14749 gcc_cv_as_dwarf2_file_buggy
=yes
14751 echo "configure: failed program was" >&5
14754 rm -f conftest.o conftest.s
14757 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14758 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14761 if test $gcc_cv_as_dwarf2_debug_line = yes \
14762 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
14764 cat >>confdefs.h
<<\_ACEOF
14765 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14770 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14771 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14772 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14775 gcc_cv_as_gdwarf2_flag
=no
14776 if test $in_tree_gas = yes; then
14777 if test $in_tree_gas_is_elf = yes \
14778 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14779 then gcc_cv_as_gdwarf2_flag
=yes
14781 elif test x
$gcc_cv_as != x
; then
14782 echo "$insn" > conftest.s
14783 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }
14790 gcc_cv_as_gdwarf2_flag
=yes
14792 echo "configure: failed program was" >&5
14795 rm -f conftest.o conftest.s
14798 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14799 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14800 if test $gcc_cv_as_gdwarf2_flag = yes; then
14802 cat >>confdefs.h
<<\_ACEOF
14803 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14808 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14809 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14810 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 gcc_cv_as_gstabs_flag
=no
14814 if test $in_tree_gas = yes; then
14815 if test $in_tree_gas_is_elf = yes \
14816 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14817 then gcc_cv_as_gstabs_flag
=yes
14819 elif test x
$gcc_cv_as != x
; then
14820 echo "$insn" > conftest.s
14821 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }
14828 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14829 # and warns about it, but still exits successfully. So check for
14831 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; }
14838 else gcc_cv_as_gstabs_flag
=yes
14841 echo "configure: failed program was" >&5
14844 rm -f conftest.o conftest.s
14847 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14848 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14849 if test $gcc_cv_as_gstabs_flag = yes; then
14851 cat >>confdefs.h
<<\_ACEOF
14852 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14858 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14859 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14860 gcc_cv_ld_ro_rw_mix
=unknown
14861 if test $in_tree_ld = yes ; then
14862 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 \
14863 && test $in_tree_ld_is_elf = yes; then
14864 gcc_cv_ld_ro_rw_mix
=read-write
14866 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
14867 echo '.section myfoosect, "a"' > conftest1.s
14868 echo '.section myfoosect, "aw"' > conftest2.s
14869 echo '.byte 1' >> conftest2.s
14870 echo '.section myfoosect, "a"' > conftest3.s
14871 echo '.byte 0' >> conftest3.s
14872 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14873 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14874 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
14875 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14876 conftest2.o conftest3.o
> /dev
/null
2>&1; then
14877 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
14878 | sed -e '/myfoosect/!d' -e N`
14879 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
14880 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
14881 gcc_cv_ld_ro_rw_mix
=read-only
14883 gcc_cv_ld_ro_rw_mix
=read-write
14887 rm -f conftest.
* conftest
[123].
*
14889 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
14891 cat >>confdefs.h
<<\_ACEOF
14892 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14896 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14897 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14899 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14900 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14901 gcc_cv_ld_eh_frame_hdr
=no
14902 if test $in_tree_ld = yes ; then
14903 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 \
14904 && test $in_tree_ld_is_elf = yes; then
14905 gcc_cv_ld_eh_frame_hdr
=yes
14907 elif test x
$gcc_cv_ld != x
; then
14908 # Check if linker supports --eh-frame-hdr option
14909 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
14910 gcc_cv_ld_eh_frame_hdr
=yes
14913 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
14915 cat >>confdefs.h
<<\_ACEOF
14916 #define HAVE_LD_EH_FRAME_HDR 1
14920 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14921 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14923 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14924 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14926 if test $in_tree_ld = yes ; then
14927 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 \
14928 && test $in_tree_ld_is_elf = yes; then
14931 elif test x
$gcc_cv_ld != x
; then
14932 # Check if linker supports -pie option
14933 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
14937 if test x
"$gcc_cv_ld_pie" = xyes
; then
14939 cat >>confdefs.h
<<\_ACEOF
14940 #define HAVE_LD_PIE 1
14944 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14945 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14951 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14952 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14953 if test "${gcc_cv_ld_as_needed+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 gcc_cv_ld_as_needed
=no
14957 if test $in_tree_ld = yes ; then
14958 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 \
14959 && test $in_tree_ld_is_elf = yes; then
14960 gcc_cv_ld_as_needed
=yes
14962 elif test x
$gcc_cv_ld != x
; then
14963 # Check if linker supports --as-needed and --no-as-needed options
14964 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
14965 gcc_cv_ld_as_needed
=yes
14970 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14971 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14972 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
14974 cat >>confdefs.h
<<\_ACEOF
14975 #define HAVE_LD_AS_NEEDED 1
14981 powerpc64
*-*-linux*)
14982 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14983 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14984 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14987 gcc_cv_ld_no_dot_syms
=no
14988 if test $in_tree_ld = yes ; then
14989 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
14990 gcc_cv_ld_no_dot_syms
=yes
14992 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
14993 cat > conftest1.s
<<EOF
14997 cat > conftest2.s
<<EOF
14998 .section ".opd","aw"
15001 .type foo,@function
15003 .quad .LEfoo,.TOC.@tocbase,0
15009 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15010 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15011 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
15012 gcc_cv_ld_no_dot_syms
=yes
15014 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15018 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15019 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15020 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15022 cat >>confdefs.h
<<\_ACEOF
15023 #define HAVE_LD_NO_DOT_SYMS 1
15030 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15031 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15033 cat >>confdefs.h
<<_ACEOF
15034 #define PREFIX_INCLUDE_DIR "$prefix/include"
15039 # Find out what GC implementation we want, or may, use.
15041 # Check whether --with-gc or --without-gc was given.
15042 if test "${with_gc+set}" = set; then
15051 cat >>confdefs.h
<<\_ACEOF
15057 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15058 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15059 { (exit 1); exit 1; }; }
15066 echo "Using $GGC for garbage collection."
15068 # Use the system's zlib library.
15070 zlibinc
="-I\$(srcdir)/../zlib"
15072 # Check whether --with-system-zlib or --without-system-zlib was given.
15073 if test "${with_system_zlib+set}" = set; then
15074 withval
="$with_system_zlib"
15083 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15084 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15085 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15086 if test "${enable_maintainer_mode+set}" = set; then
15087 enableval
="$enable_maintainer_mode"
15088 maintainer_mode
=$enableval
15093 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15094 echo "${ECHO_T}$maintainer_mode" >&6
15096 if test "$maintainer_mode" = "yes"; then
15106 # Make empty files to contain the specs and options for each language.
15107 # Then add #include lines to for a compiler that has specs and/or options.
15112 for subdir
in .
$subdirs
15114 if test -f $srcdir/$subdir/lang.opt
; then
15115 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
15117 if test -f $srcdir/$subdir/lang-specs.h
; then
15118 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15120 if test -f $srcdir/$subdir/$subdir-tree.def
; then
15121 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15125 # These (without "all_") are set in each config-lang.in.
15126 # `language' must be a single word so is spelled singularly.
15128 all_boot_languages
=
15131 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15132 # List of language makefile fragments.
15133 all_lang_makefrags
=
15134 # List of language subdirectory makefiles. Deprecated.
15135 all_lang_makefiles
=
15136 # Files for gengtype
15137 all_gtfiles
="$target_gtfiles"
15138 # Files for gengtype with language
15139 all_gtfiles_files_langs
=
15140 all_gtfiles_files_files
=
15142 # Add the language fragments.
15143 # Languages are added via two mechanisms. Some information must be
15144 # recorded in makefile variables, these are defined in config-lang.in.
15145 # We accumulate them and plug them into the main Makefile.
15146 # The other mechanism is a set of hooks for each of the main targets
15147 # like `clean', `install', etc.
15149 language_hooks
="Make-hooks"
15159 .
${srcdir}/$s/config-lang.
in
15160 if test "x$language" = x
15162 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15165 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15166 if test -f ${srcdir}/$s/Makefile.
in
15167 then all_lang_makefiles
="$s/Makefile"
15169 all_languages
="$all_languages $language"
15170 if test "x$boot_language" = xyes
15172 all_boot_languages
="$all_boot_languages $language"
15174 all_compilers
="$all_compilers $compilers"
15175 all_stagestuff
="$all_stagestuff $stagestuff"
15176 all_outputs
="$all_outputs $outputs"
15177 all_gtfiles
="$all_gtfiles $gtfiles"
15180 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15181 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15185 # Pick up gtfiles for c
15188 .
${srcdir}/c-config-lang.
in
15189 all_gtfiles
="$all_gtfiles $gtfiles"
15192 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15193 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15197 for language
in $all_languages
15199 check_languages
="$check_languages check-$language"
15202 # We link each language in with a set of hooks, reached indirectly via
15207 target_list
="all.build all.cross start.encap rest.encap tags \
15208 install-normal install-common install-man \
15209 uninstall info man srcextra srcman srcinfo \
15210 mostlyclean clean distclean maintainer-clean \
15211 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15212 for t
in $target_list
15215 for lang
in $all_languages
15219 echo "lang.$t: $x" >> Make-hooks
15228 echo "dir ." > .gdbinit
15229 echo "dir ${srcdir}" >> .gdbinit
15230 if test x
$gdb_needs_out_file_path = xyes
15232 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15234 if test "x$subdirs" != x
; then
15237 echo "dir ${srcdir}/$s" >> .gdbinit
15240 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15242 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15243 # absolute path for gcc_tooldir based on inserting the number of up-directory
15244 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15245 # $(libsubdir)/@(unlibsubdir) based path.
15246 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15247 # make and thus we'd get different behavior depending on where we built the
15249 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
15250 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15252 # An explanation of the sed strings:
15253 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15254 # -e 's|/$||' match a trailing forward slash and eliminates it
15255 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15256 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15258 # (*) Note this pattern overwrites the first character of the string
15259 # with a forward slash if one is not already present. This is not a
15260 # problem because the exact names of the sub-directories concerned is
15261 # unimportant, just the number of them matters.
15263 # The practical upshot of these patterns is like this:
15265 # prefix exec_prefix result
15266 # ------ ----------- ------
15267 # /foo /foo/bar ../
15268 # /foo/ /foo/bar ../
15269 # /foo /foo/bar/ ../
15270 # /foo/ /foo/bar/ ../
15271 # /foo /foo/bar/ugg ../../
15274 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15279 # Find a directory in which to install a shared libgcc.
15281 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15282 if test "${enable_version_specific_runtime_libs+set}" = set; then
15283 enableval
="$enable_version_specific_runtime_libs"
15288 # Check whether --with-slibdir or --without-slibdir was given.
15289 if test "${with_slibdir+set}" = set; then
15290 withval
="$with_slibdir"
15291 slibdir
="$with_slibdir"
15293 if test "${enable_version_specific_runtime_libs+set}" = set; then
15294 slibdir
='$(libsubdir)'
15295 elif test "$host" != "$target"; then
15296 slibdir
='$(build_tooldir)/lib'
15298 slibdir
='$(libdir)'
15303 objdir
=`${PWDCMD-pwd}`
15306 # Substitute configuration variables
15371 if test x
${build} = x
${host} ; then
15372 if test x
${host} = x
${target} ; then
15373 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15375 echo "Links are now set up to build a cross-compiler" 1>&2
15376 echo " from ${host} to ${target}." 1>&2
15379 if test x
${host} = x
${target} ; then
15380 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15381 echo " for ${target}." 1>&2
15383 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15384 echo " from ${host} to ${target}." 1>&2
15391 # Configure the subdirectories
15392 # AC_CONFIG_SUBDIRS($subdirs)
15394 # Create the Makefile
15395 # and configure language subdirectories
15396 ac_config_files
="$ac_config_files $all_outputs"
15399 ac_config_commands
="$ac_config_commands default"
15401 cat >confcache
<<\_ACEOF
15402 # This file is a shell script that caches the results of configure
15403 # tests run on this system so they can be shared between configure
15404 # scripts and configure runs, see configure's option --config-cache.
15405 # It is not useful on other systems. If it contains results you don't
15406 # want to keep, you may remove or edit it.
15408 # config.status only pays attention to the cache file if you give it
15409 # the --recheck option to rerun configure.
15411 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15412 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15413 # following values.
15417 # The following way of writing the cache mishandles newlines in values,
15418 # but we know of no workaround that is simple, portable, and efficient.
15419 # So, don't put newlines in cache variables' values.
15420 # Ultrix sh set writes to stderr and can't be redirected directly,
15421 # and sets the high bit in the cache file unless we assign to the vars.
15424 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15426 # `set' does not quote correctly, so add quotes (double-quote
15427 # substitution turns \\\\ into \\, and sed turns \\ into \).
15430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15433 # `set' quotes correctly as required by POSIX, so do not add quotes.
15435 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15442 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15444 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15446 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15447 if test -w $cache_file; then
15448 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15449 cat confcache
>$cache_file
15451 echo "not updating unwritable cache $cache_file"
15456 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15457 # Let make expand exec_prefix.
15458 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15460 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15461 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15462 # trailing colons and then remove the whole line if VPATH becomes empty
15463 # (actually we leave an empty line to preserve line numbers).
15464 if test "x$srcdir" = x.
; then
15465 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15466 s/:*\$(srcdir):*/:/;
15467 s/:*\${srcdir}:*/:/;
15469 s/^\([^=]*=[ ]*\):*/\1/;
15475 DEFS
=-DHAVE_CONFIG_H
15479 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15480 # 1. Remove the extension, and $U if already installed.
15481 ac_i
=`echo "$ac_i" |
15482 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15484 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15485 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15487 LIBOBJS
=$ac_libobjs
15489 LTLIBOBJS
=$ac_ltlibobjs
15493 : ${CONFIG_STATUS=./config.status}
15494 ac_clean_files_save
=$ac_clean_files
15495 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15496 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15497 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15498 cat >$CONFIG_STATUS <<_ACEOF
15500 # Generated by $as_me.
15501 # Run this file to recreate the current configuration.
15502 # Compiler output produced by configure, useful for debugging
15503 # configure, is in config.log if it exists.
15506 ac_cs_recheck=false
15508 SHELL=\${CONFIG_SHELL-$SHELL}
15511 cat >>$CONFIG_STATUS <<\_ACEOF
15512 ## --------------------- ##
15513 ## M4sh Initialization. ##
15514 ## --------------------- ##
15516 # Be Bourne compatible
15517 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15520 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15521 # is contrary to our usage. Disable this feature.
15522 alias -g '${1+"$@"}'='"$@"'
15523 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
15526 DUALCASE
=1; export DUALCASE
# for MKS sh
15528 # Support unset when possible.
15529 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15536 # Work around bugs in pre-3.0 UWIN ksh.
15537 $as_unset ENV MAIL MAILPATH
15544 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15545 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15546 LC_TELEPHONE LC_TIME
15548 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15549 eval $as_var=C
; export $as_var
15555 # Required to use basename.
15556 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15562 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15563 as_basename
=basename
15569 # Name of the executable.
15570 as_me
=`$as_basename "$0" ||
15571 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15572 X"$0" : 'X\(//\)$' \| \
15573 X"$0" : 'X\(/\)$' \| \
15574 . : '\(.\)' 2>/dev/null ||
15576 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15577 /^X\/\(\/\/\)$/{ s//\1/; q; }
15578 /^X\/\(\/\).*/{ s//\1/; q; }
15582 # PATH needs CR, and LINENO needs CR and PATH.
15583 # Avoid depending upon Character Ranges.
15584 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15585 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15586 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15587 as_cr_digits
='0123456789'
15588 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15590 # The user is always right.
15591 if test "${PATH_SEPARATOR+set}" != set; then
15592 echo "#! /bin/sh" >conf$$.sh
15593 echo "exit 0" >>conf$$.sh
15595 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15604 as_lineno_1
=$LINENO
15605 as_lineno_2
=$LINENO
15606 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15607 test "x$as_lineno_1" != "x$as_lineno_2" &&
15608 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
15609 # Find who we are. Look in the path if we contain no path at all
15612 *[\\/]* ) as_myself
=$0 ;;
15613 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15614 for as_dir
in $PATH
15617 test -z "$as_dir" && as_dir
=.
15618 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15623 # We did not find ourselves, most probably we were run as `sh COMMAND'
15624 # in which case we are not to be found in the path.
15625 if test "x$as_myself" = x
; then
15628 if test ! -f "$as_myself"; then
15629 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15630 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15631 { (exit 1); exit 1; }; }
15633 case $CONFIG_SHELL in
15635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15636 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
15639 test -z "$as_dir" && as_dir
=.
15640 for as_base
in sh bash ksh sh5
; do
15643 if ("$as_dir/$as_base" -c '
15644 as_lineno_1=$LINENO
15645 as_lineno_2=$LINENO
15646 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15647 test "x$as_lineno_1" != "x$as_lineno_2" &&
15648 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
15649 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
15650 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
15651 CONFIG_SHELL
=$as_dir/$as_base
15652 export CONFIG_SHELL
15653 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15661 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15662 # uniformly replaced by the line number. The first 'sed' inserts a
15663 # line-number line before each line; the second 'sed' does the real
15664 # work. The second script uses 'N' to pair each line-number line
15665 # with the numbered line, and appends trailing '-' during
15666 # substitution so that $LINENO is not a special case at line end.
15667 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15668 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15669 sed '=' <$as_myself |
15674 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15677 s,^['$as_cr_digits']*\n,,
15678 ' >$as_me.lineno
&&
15679 chmod +x
$as_me.lineno ||
15680 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15681 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15682 { (exit 1); exit 1; }; }
15684 # Don't try to exec as it changes $[0], causing all sort of problems
15685 # (the dirname of $[0] is not the place where we might find the
15686 # original and so on. Autoconf is especially sensible to this).
15688 # Exit status is that of the last command.
15693 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15694 *c
*,-n*) ECHO_N
= ECHO_C
='
15696 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15697 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15700 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15706 rm -f conf$$ conf$$.exe conf$$.
file
15708 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15709 # We could just check for DJGPP; but this test a) works b) is more generic
15710 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15711 if test -f conf$$.exe
; then
15712 # Don't use ln at all; we don't have any links
15717 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15722 rm -f conf$$ conf$$.exe conf$$.
file
15724 if mkdir
-p .
2>/dev
/null
; then
15727 test -d .
/-p && rmdir .
/-p
15731 as_executable_p
="test -f"
15733 # Sed expression to map a string onto a valid CPP name.
15734 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15736 # Sed expression to map a string onto a valid variable name.
15737 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15741 # We need space, tab and new line, in precisely that order.
15751 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15752 # report actual input values of CONFIG_FILES etc. instead of their
15753 # values after options handling. Logging --version etc. is OK.
15757 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15758 ## Running $as_me. ##
15763 This file was extended by $as_me, which was
15764 generated by GNU Autoconf 2.59. Invocation command line was
15766 CONFIG_FILES = $CONFIG_FILES
15767 CONFIG_HEADERS = $CONFIG_HEADERS
15768 CONFIG_LINKS = $CONFIG_LINKS
15769 CONFIG_COMMANDS = $CONFIG_COMMANDS
15773 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15777 # Files that config.status was made for.
15778 if test -n "$ac_config_files"; then
15779 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15782 if test -n "$ac_config_headers"; then
15783 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15786 if test -n "$ac_config_links"; then
15787 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15790 if test -n "$ac_config_commands"; then
15791 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15794 cat >>$CONFIG_STATUS <<\_ACEOF
15797 \`$as_me' instantiates files from templates according to the
15798 current configuration.
15800 Usage: $0 [OPTIONS] [FILE]...
15802 -h, --help print this help, then exit
15803 -V, --version print version number, then exit
15804 -q, --quiet do not print progress messages
15805 -d, --debug don't remove temporary files
15806 --recheck update $as_me by reconfiguring in the same conditions
15807 --file=FILE[:TEMPLATE]
15808 instantiate the configuration file FILE
15809 --header=FILE[:TEMPLATE]
15810 instantiate the configuration header FILE
15812 Configuration files:
15815 Configuration headers:
15818 Configuration commands:
15821 Report bugs to <bug-autoconf@gnu.org>."
15824 cat >>$CONFIG_STATUS <<_ACEOF
15827 configured by $0, generated by GNU Autoconf 2.59,
15828 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15830 Copyright (C) 2003 Free Software Foundation, Inc.
15831 This config.status script is free software; the Free Software Foundation
15832 gives unlimited permission to copy, distribute and modify it."
15836 cat >>$CONFIG_STATUS <<\_ACEOF
15837 # If no file are specified by the user, then we need to provide default
15838 # value. By we need to know if files were specified by the user.
15844 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
15845 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
15853 *) # This is not an option, so the user has probably given explicit
15856 ac_need_defaults
=false
;;
15860 # Handling of the options.
15862 cat >>$CONFIG_STATUS <<\_ACEOF
15863 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15865 --version |
--vers* |
-V )
15866 echo "$ac_cs_version"; exit 0 ;;
15868 # Conflict between --help and --header
15869 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15870 Try \`$0 --help' for more information." >&5
15871 echo "$as_me: error: ambiguous option: $1
15872 Try \`$0 --help' for more information." >&2;}
15873 { (exit 1); exit 1; }; };;
15874 --help |
--hel |
-h )
15875 echo "$ac_cs_usage"; exit 0 ;;
15876 --debug |
--d* |
-d )
15878 --file |
--fil |
--fi |
--f )
15880 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
15881 ac_need_defaults
=false
;;
15882 --header |
--heade |
--head |
--hea )
15884 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
15885 ac_need_defaults
=false
;;
15886 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15887 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15890 # This is an error.
15891 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15892 Try \`$0 --help' for more information." >&5
15893 echo "$as_me: error: unrecognized option: $1
15894 Try \`$0 --help' for more information." >&2;}
15895 { (exit 1); exit 1; }; } ;;
15897 *) ac_config_targets
="$ac_config_targets $1" ;;
15903 ac_configure_extra_args
=
15905 if $ac_cs_silent; then
15907 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15911 cat >>$CONFIG_STATUS <<_ACEOF
15912 if \$ac_cs_recheck; then
15913 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15914 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15919 cat >>$CONFIG_STATUS <<_ACEOF
15921 # INIT-COMMANDS section.
15930 cat >>$CONFIG_STATUS <<\_ACEOF
15931 for ac_config_target
in $ac_config_targets
15933 case "$ac_config_target" in
15934 # Handling of arguments.
15935 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
15936 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15937 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
15938 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15939 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15940 { (exit 1); exit 1; }; };;
15944 # If the user did not use the arguments to specify the items to instantiate,
15945 # then the envvar interface is used. Set only those that are not.
15946 # We use the long form for the default assignment because of an extremely
15947 # bizarre bug on SunOS 4.1.3.
15948 if $ac_need_defaults; then
15949 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15950 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15951 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15954 # Have a temporary directory for convenience. Make it in the build tree
15955 # simply because there is no reason to put it here, and in addition,
15956 # creating and moving files from /tmp can sometimes cause problems.
15957 # Create a temporary directory, and hook for its removal unless debugging.
15960 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15961 trap '{ (exit 1); exit 1; }' 1 2 13 15
15964 # Create a (secure) tmp directory for tmp files.
15967 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15968 test -n "$tmp" && test -d "$tmp"
15971 tmp
=.
/confstat$$
-$RANDOM
15972 (umask 077 && mkdir
$tmp)
15975 echo "$me: cannot create a temporary directory in ." >&2
15976 { (exit 1); exit 1; }
15981 cat >>$CONFIG_STATUS <<_ACEOF
15984 # CONFIG_FILES section.
15987 # No need to generate the scripts if there are no CONFIG_FILES.
15988 # This happens for instance when ./config.status config.h
15989 if test -n "\$CONFIG_FILES"; then
15990 # Protect against being on the right side of a sed subst in config.status.
15991 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15992 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15993 s,@SHELL@,$SHELL,;t t
15994 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15995 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15996 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15997 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15998 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15999 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16000 s,@exec_prefix@,$exec_prefix,;t t
16001 s,@prefix@,$prefix,;t t
16002 s,@program_transform_name@,$program_transform_name,;t t
16003 s,@bindir@,$bindir,;t t
16004 s,@sbindir@,$sbindir,;t t
16005 s,@libexecdir@,$libexecdir,;t t
16006 s,@datadir@,$datadir,;t t
16007 s,@sysconfdir@,$sysconfdir,;t t
16008 s,@sharedstatedir@,$sharedstatedir,;t t
16009 s,@localstatedir@,$localstatedir,;t t
16010 s,@libdir@,$libdir,;t t
16011 s,@includedir@,$includedir,;t t
16012 s,@oldincludedir@,$oldincludedir,;t t
16013 s,@infodir@,$infodir,;t t
16014 s,@mandir@,$mandir,;t t
16015 s,@build_alias@,$build_alias,;t t
16016 s,@host_alias@,$host_alias,;t t
16017 s,@target_alias@,$target_alias,;t t
16018 s,@DEFS@,$DEFS,;t t
16019 s,@ECHO_C@,$ECHO_C,;t t
16020 s,@ECHO_N@,$ECHO_N,;t t
16021 s,@ECHO_T@,$ECHO_T,;t t
16022 s,@LIBS@,$LIBS,;t t
16023 s,@build@,$build,;t t
16024 s,@build_cpu@,$build_cpu,;t t
16025 s,@build_vendor@,$build_vendor,;t t
16026 s,@build_os@,$build_os,;t t
16027 s,@host@,$host,;t t
16028 s,@host_cpu@,$host_cpu,;t t
16029 s,@host_vendor@,$host_vendor,;t t
16030 s,@host_os@,$host_os,;t t
16031 s,@target@,$target,;t t
16032 s,@target_cpu@,$target_cpu,;t t
16033 s,@target_vendor@,$target_vendor,;t t
16034 s,@target_os@,$target_os,;t t
16035 s,@target_noncanonical@,$target_noncanonical,;t t
16036 s,@build_subdir@,$build_subdir,;t t
16037 s,@host_subdir@,$host_subdir,;t t
16038 s,@target_subdir@,$target_subdir,;t t
16039 s,@GENINSRC@,$GENINSRC,;t t
16041 s,@CFLAGS@,$CFLAGS,;t t
16042 s,@LDFLAGS@,$LDFLAGS,;t t
16043 s,@CPPFLAGS@,$CPPFLAGS,;t t
16044 s,@ac_ct_CC@,$ac_ct_CC,;t t
16045 s,@EXEEXT@,$EXEEXT,;t t
16046 s,@OBJEXT@,$OBJEXT,;t t
16047 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16048 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16050 s,@EGREP@,$EGREP,;t t
16051 s,@strict1_warn@,$strict1_warn,;t t
16052 s,@warn_cflags@,$warn_cflags,;t t
16053 s,@WERROR@,$WERROR,;t t
16054 s,@nocommon_flag@,$nocommon_flag,;t t
16055 s,@TREEBROWSER@,$TREEBROWSER,;t t
16056 s,@valgrind_path@,$valgrind_path,;t t
16057 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16058 s,@valgrind_command@,$valgrind_command,;t t
16059 s,@coverage_flags@,$coverage_flags,;t t
16060 s,@enable_multilib@,$enable_multilib,;t t
16061 s,@enable_shared@,$enable_shared,;t t
16062 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16063 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16064 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16065 s,@onestep@,$onestep,;t t
16066 s,@SET_MAKE@,$SET_MAKE,;t t
16068 s,@LN_S@,$LN_S,;t t
16070 s,@RANLIB@,$RANLIB,;t t
16071 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16072 s,@ranlib_flags@,$ranlib_flags,;t t
16073 s,@INSTALL@,$INSTALL,;t t
16074 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16075 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16076 s,@make_compare_target@,$make_compare_target,;t t
16077 s,@have_mktemp_command@,$have_mktemp_command,;t t
16078 s,@MAKEINFO@,$MAKEINFO,;t t
16079 s,@BUILD_INFO@,$BUILD_INFO,;t t
16080 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16081 s,@FLEX@,$FLEX,;t t
16082 s,@BISON@,$BISON,;t t
16085 s,@stage1_cflags@,$stage1_cflags,;t t
16086 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16087 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16088 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16089 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16090 s,@LIBICONV@,$LIBICONV,;t t
16091 s,@LTLIBICONV@,$LTLIBICONV,;t t
16092 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16093 s,@manext@,$manext,;t t
16094 s,@objext@,$objext,;t t
16095 s,@gthread_flags@,$gthread_flags,;t t
16096 s,@extra_modes_file@,$extra_modes_file,;t t
16097 s,@extra_opt_files@,$extra_opt_files,;t t
16098 s,@USE_NLS@,$USE_NLS,;t t
16099 s,@LIBINTL@,$LIBINTL,;t t
16100 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16101 s,@INCINTL@,$INCINTL,;t t
16102 s,@XGETTEXT@,$XGETTEXT,;t t
16103 s,@GMSGFMT@,$GMSGFMT,;t t
16104 s,@POSUB@,$POSUB,;t t
16105 s,@CATALOGS@,$CATALOGS,;t t
16106 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16107 s,@CROSS@,$CROSS,;t t
16109 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16110 s,@inhibit_libc@,$inhibit_libc,;t t
16111 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16112 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16113 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16114 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16115 s,@collect2@,$collect2,;t t
16116 s,@libgcc_visibility@,$libgcc_visibility,;t t
16118 s,@zlibdir@,$zlibdir,;t t
16119 s,@zlibinc@,$zlibinc,;t t
16120 s,@MAINT@,$MAINT,;t t
16121 s,@gcc_tooldir@,$gcc_tooldir,;t t
16122 s,@dollar@,$dollar,;t t
16123 s,@slibdir@,$slibdir,;t t
16124 s,@objdir@,$objdir,;t t
16125 s,@subdirs@,$subdirs,;t t
16126 s,@srcdir@,$srcdir,;t t
16127 s,@all_boot_languages@,$all_boot_languages,;t t
16128 s,@all_compilers@,$all_compilers,;t t
16129 s,@all_gtfiles@,$all_gtfiles,;t t
16130 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16131 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16132 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16133 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16134 s,@all_languages@,$all_languages,;t t
16135 s,@all_stagestuff@,$all_stagestuff,;t t
16136 s,@build_exeext@,$build_exeext,;t t
16137 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16138 s,@build_xm_file_list@,$build_xm_file_list,;t t
16139 s,@build_xm_include_list@,$build_xm_include_list,;t t
16140 s,@build_xm_defines@,$build_xm_defines,;t t
16141 s,@check_languages@,$check_languages,;t t
16142 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16143 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16144 s,@cpp_install_dir@,$cpp_install_dir,;t t
16145 s,@xmake_file@,$xmake_file,;t t
16146 s,@tmake_file@,$tmake_file,;t t
16147 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16148 s,@extra_headers_list@,$extra_headers_list,;t t
16149 s,@extra_objs@,$extra_objs,;t t
16150 s,@extra_parts@,$extra_parts,;t t
16151 s,@extra_passes@,$extra_passes,;t t
16152 s,@extra_programs@,$extra_programs,;t t
16153 s,@float_h_file@,$float_h_file,;t t
16154 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16155 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16156 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16157 s,@host_exeext@,$host_exeext,;t t
16158 s,@host_xm_file_list@,$host_xm_file_list,;t t
16159 s,@host_xm_include_list@,$host_xm_include_list,;t t
16160 s,@host_xm_defines@,$host_xm_defines,;t t
16161 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16162 s,@install@,$install,;t t
16163 s,@lang_opt_files@,$lang_opt_files,;t t
16164 s,@lang_specs_files@,$lang_specs_files,;t t
16165 s,@lang_tree_files@,$lang_tree_files,;t t
16166 s,@local_prefix@,$local_prefix,;t t
16167 s,@md_file@,$md_file,;t t
16168 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16169 s,@out_file@,$out_file,;t t
16170 s,@out_object_file@,$out_object_file,;t t
16171 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16172 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16173 s,@thread_file@,$thread_file,;t t
16174 s,@tm_file_list@,$tm_file_list,;t t
16175 s,@tm_include_list@,$tm_include_list,;t t
16176 s,@tm_defines@,$tm_defines,;t t
16177 s,@tm_p_file_list@,$tm_p_file_list,;t t
16178 s,@tm_p_include_list@,$tm_p_include_list,;t t
16179 s,@xm_file_list@,$xm_file_list,;t t
16180 s,@xm_include_list@,$xm_include_list,;t t
16181 s,@xm_defines@,$xm_defines,;t t
16182 s,@c_target_objs@,$c_target_objs,;t t
16183 s,@cxx_target_objs@,$cxx_target_objs,;t t
16184 s,@target_cpu_default@,$target_cpu_default,;t t
16185 s,@GMPLIBS@,$GMPLIBS,;t t
16186 s,@GMPINC@,$GMPINC,;t t
16187 s,@LIBOBJS@,$LIBOBJS,;t t
16188 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16189 /@language_hooks@/r $language_hooks
16190 s,@language_hooks@,,;t t
16195 cat >>$CONFIG_STATUS <<\_ACEOF
16196 # Split the substitutions into bite-sized pieces for seds with
16197 # small command number limits, like on Digital OSF/1 and HP-UX.
16198 ac_max_sed_lines
=48
16199 ac_sed_frag
=1 # Number of current file.
16200 ac_beg
=1 # First line for current file.
16201 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16204 while $ac_more_lines; do
16205 if test $ac_beg -gt 1; then
16206 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16208 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16210 if test ! -s $tmp/subs.frag
; then
16211 ac_more_lines
=false
16213 # The purpose of the label and of the branching condition is to
16214 # speed up the sed processing (if there are no `@' at all, there
16215 # is no need to browse any of the substitutions).
16216 # These are the two extra sed commands mentioned above.
16218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16219 if test -z "$ac_sed_cmds"; then
16220 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16222 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16224 ac_sed_frag
=`expr $ac_sed_frag + 1`
16226 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16229 if test -z "$ac_sed_cmds"; then
16232 fi # test -n "$CONFIG_FILES"
16235 cat >>$CONFIG_STATUS <<\_ACEOF
16236 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16237 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16239 - |
*:- |
*:-:* ) # input from stdin
16241 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16242 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16243 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16244 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16245 * ) ac_file_in
=$ac_file.
in ;;
16248 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16249 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16250 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16251 X"$ac_file" : 'X\(//\)[^/]' \| \
16252 X"$ac_file" : 'X\(//\)$' \| \
16253 X"$ac_file" : 'X\(/\)' \| \
16254 . : '\(.\)' 2>/dev/null ||
16256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16258 /^X\(\/\/\)$/{ s//\1/; q; }
16259 /^X\(\/\).*/{ s//\1/; q; }
16261 { if $as_mkdir_p; then
16266 while test ! -d "$as_dir"; do
16267 as_dirs
="$as_dir $as_dirs"
16268 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16270 X"$as_dir" : 'X\(//\)[^/]' \| \
16271 X"$as_dir" : 'X\(//\)$' \| \
16272 X"$as_dir" : 'X\(/\)' \| \
16273 . : '\(.\)' 2>/dev/null ||
16275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16277 /^X\(\/\/\)$/{ s//\1/; q; }
16278 /^X\(\/\).*/{ s//\1/; q; }
16281 test ! -n "$as_dirs" || mkdir
$as_dirs
16282 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16283 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16284 { (exit 1); exit 1; }; }; }
16288 if test "$ac_dir" != .
; then
16289 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16290 # A "../" for each directory in $ac_dir_suffix.
16291 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16293 ac_dir_suffix
= ac_top_builddir
=
16297 .
) # No --srcdir option. We are building in place.
16299 if test -z "$ac_top_builddir"; then
16302 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16304 [\\/]* | ?
:[\\/]* ) # Absolute path.
16305 ac_srcdir
=$srcdir$ac_dir_suffix;
16306 ac_top_srcdir
=$srcdir ;;
16307 *) # Relative path.
16308 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16309 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16312 # Do not use `cd foo && pwd` to compute absolute paths, because
16313 # the directories may not exist.
16315 .
) ac_abs_builddir
="$ac_dir";;
16318 .
) ac_abs_builddir
=`pwd`;;
16319 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16320 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16323 case $ac_abs_builddir in
16324 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16326 case ${ac_top_builddir}.
in
16327 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16328 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16329 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16332 case $ac_abs_builddir in
16333 .
) ac_abs_srcdir
=$ac_srcdir;;
16336 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16337 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16338 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16341 case $ac_abs_builddir in
16342 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16344 case $ac_top_srcdir in
16345 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16346 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16347 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16353 if test x
"$ac_file" != x-
; then
16354 { echo "$as_me:$LINENO: creating $ac_file" >&5
16355 echo "$as_me: creating $ac_file" >&6;}
16358 # Let's still pretend it is `configure' which instantiates (i.e., don't
16359 # use $as_me), people would be surprised to read:
16360 # /* config.h. Generated by config.status. */
16361 if test x
"$ac_file" = x-
; then
16364 configure_input
="$ac_file. "
16366 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16367 sed 's,.*/,,'` by configure."
16369 # First look for the input files in the build tree, otherwise in the
16371 ac_file_inputs
=`IFS=:
16372 for f in $ac_file_in; do
16374 -) echo $tmp/stdin ;;
16376 # Absolute (can't be DOS-style, as IFS=:)
16377 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16378 echo "$as_me: error: cannot find input file: $f" >&2;}
16379 { (exit 1); exit 1; }; }
16382 if test -f "$f"; then
16385 elif test -f "$srcdir/$f"; then
16390 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16391 echo "$as_me: error: cannot find input file: $f" >&2;}
16392 { (exit 1); exit 1; }; }
16395 done` ||
{ (exit 1); exit 1; }
16397 cat >>$CONFIG_STATUS <<_ACEOF
16401 cat >>$CONFIG_STATUS <<\_ACEOF
16403 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16404 s
,@configure_input@
,$configure_input,;t t
16405 s
,@srcdir@
,$ac_srcdir,;t t
16406 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16407 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16408 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16409 s
,@builddir@
,$ac_builddir,;t t
16410 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16411 s
,@top_builddir@
,$ac_top_builddir,;t t
16412 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16413 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16415 if test x"$ac_file" != x-; then
16416 mv $tmp/out $ac_file
16424 cat >>$CONFIG_STATUS <<\_ACEOF
16427 # CONFIG_HEADER section.
16430 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16431 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16433 # ac_d sets the value in "#define NAME VALUE" lines.
16434 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16435 ac_dB
='[ ].*$,\1#\2'
16438 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16439 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16440 ac_uB
='$,\1#\2define\3'
16444 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16445 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16447 - |
*:- |
*:-:* ) # input from stdin
16449 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16450 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16451 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16452 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16453 * ) ac_file_in
=$ac_file.
in ;;
16456 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16457 echo "$as_me: creating $ac_file" >&6;}
16459 # First look for the input files in the build tree, otherwise in the
16461 ac_file_inputs
=`IFS=:
16462 for f in $ac_file_in; do
16464 -) echo $tmp/stdin ;;
16466 # Absolute (can't be DOS-style, as IFS=:)
16467 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16468 echo "$as_me: error: cannot find input file: $f" >&2;}
16469 { (exit 1); exit 1; }; }
16470 # Do quote $f, to prevent DOS paths from being IFS'd.
16473 if test -f "$f"; then
16476 elif test -f "$srcdir/$f"; then
16481 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16482 echo "$as_me: error: cannot find input file: $f" >&2;}
16483 { (exit 1); exit 1; }; }
16486 done` ||
{ (exit 1); exit 1; }
16487 # Remove the trailing spaces.
16488 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16492 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16493 # `conftest.undefs', that substitutes the proper values into
16494 # config.h.in to produce config.h. The first handles `#define'
16495 # templates, and the second `#undef' templates.
16496 # And first: Protect against being on the right side of a sed subst in
16497 # config.status. Protect against being in an unquoted here document
16498 # in config.status.
16499 rm -f conftest.defines conftest.undefs
16500 # Using a here document instead of a string reduces the quoting nightmare.
16501 # Putting comments in sed scripts is not portable.
16503 # `end' is used to avoid that the second main sed command (meant for
16504 # 0-ary CPP macros) applies to n-ary macro definitions.
16505 # See the Autoconf documentation for `clear'.
16506 cat >confdef2sed.
sed <<\_ACEOF
16511 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16513 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16516 # If some macros were called several times there might be several times
16517 # the same #defines, which is useless. Nevertheless, we may not want to
16518 # sort them, since we want the *last* AC-DEFINE to be honored.
16519 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16520 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16521 rm -f confdef2sed.sed
16523 # This sed command replaces #undef with comments. This is necessary, for
16524 # example, in the case of _POSIX_SOURCE, which is predefined and required
16525 # on some systems where configure will not decide to define it.
16526 cat >>conftest.undefs <<\_ACEOF
16527 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16530 # Break up conftest.defines because some shells have a limit on the size
16531 # of here documents, and old seds have small limits too (100 cmds).
16532 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16533 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16534 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16535 echo ' :' >>$CONFIG_STATUS
16536 rm -f conftest.tail
16537 while grep . conftest.defines >/dev/null
16539 # Write a limited-size here document to $tmp/defines.sed.
16540 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16541 # Speed up: don't consider the non `#define' lines.
16542 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16543 # Work around the forget-to-reset-the-flag bug.
16544 echo 't clr' >>$CONFIG_STATUS
16545 echo ': clr' >>$CONFIG_STATUS
16546 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16548 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16550 mv $tmp/out $tmp/in
16552 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16553 rm -f conftest.defines
16554 mv conftest.
tail conftest.defines
16556 rm -f conftest.defines
16557 echo ' fi # grep' >>$CONFIG_STATUS
16558 echo >>$CONFIG_STATUS
16560 # Break up conftest.undefs because some shells have a limit on the size
16561 # of here documents, and old seds have small limits too (100 cmds).
16562 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16563 rm -f conftest.
tail
16564 while grep . conftest.undefs
>/dev
/null
16566 # Write a limited-size here document to $tmp/undefs.sed.
16567 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16568 # Speed up: don't consider the non
`#undef'
16569 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16570 # Work around the forget-to-reset-the-flag bug.
16571 echo 't clr' >>$CONFIG_STATUS
16572 echo ': clr' >>$CONFIG_STATUS
16573 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16575 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16577 mv $tmp/out $tmp/in
16579 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16580 rm -f conftest.undefs
16581 mv conftest.tail conftest.undefs
16583 rm -f conftest.undefs
16585 cat >>$CONFIG_STATUS <<\_ACEOF
16586 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16587 # use $as_me), people would be surprised to read:
16588 # /* config.h. Generated by config.status. */
16589 if test x
"$ac_file" = x-
; then
16590 echo "/* Generated by configure. */" >$tmp/config.h
16592 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16594 cat $tmp/in >>$tmp/config.h
16596 if test x
"$ac_file" != x-
; then
16597 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
16598 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16599 echo "$as_me: $ac_file is unchanged" >&6;}
16601 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16602 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16603 X"$ac_file" : 'X\(//\)[^/]' \| \
16604 X"$ac_file" : 'X\(//\)$' \| \
16605 X"$ac_file" : 'X\(/\)' \| \
16606 . : '\(.\)' 2>/dev/null ||
16608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16609 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16610 /^X\(\/\/\)$/{ s//\1/; q; }
16611 /^X\(\/\).*/{ s//\1/; q; }
16613 { if $as_mkdir_p; then
16618 while test ! -d "$as_dir"; do
16619 as_dirs
="$as_dir $as_dirs"
16620 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16622 X"$as_dir" : 'X\(//\)[^/]' \| \
16623 X"$as_dir" : 'X\(//\)$' \| \
16624 X"$as_dir" : 'X\(/\)' \| \
16625 . : '\(.\)' 2>/dev/null ||
16627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16629 /^X\(\/\/\)$/{ s//\1/; q; }
16630 /^X\(\/\).*/{ s//\1/; q; }
16633 test ! -n "$as_dirs" || mkdir
$as_dirs
16634 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16635 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16636 { (exit 1); exit 1; }; }; }
16639 mv $tmp/config.h
$ac_file
16643 rm -f $tmp/config.h
16647 cat >>$CONFIG_STATUS <<\_ACEOF
16650 # CONFIG_COMMANDS section.
16652 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
16653 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16654 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16655 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16656 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16657 X"$ac_dest" : 'X\(//\)[^/]' \| \
16658 X"$ac_dest" : 'X\(//\)$' \| \
16659 X"$ac_dest" : 'X\(/\)' \| \
16660 . : '\(.\)' 2>/dev/null ||
16662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16664 /^X\(\/\/\)$/{ s//\1/; q; }
16665 /^X\(\/\).*/{ s//\1/; q; }
16667 { if $as_mkdir_p; then
16672 while test ! -d "$as_dir"; do
16673 as_dirs
="$as_dir $as_dirs"
16674 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16675 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16676 X"$as_dir" : 'X\(//\)[^/]' \| \
16677 X"$as_dir" : 'X\(//\)$' \| \
16678 X"$as_dir" : 'X\(/\)' \| \
16679 . : '\(.\)' 2>/dev/null ||
16681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16683 /^X\(\/\/\)$/{ s//\1/; q; }
16684 /^X\(\/\).*/{ s//\1/; q; }
16687 test ! -n "$as_dirs" || mkdir
$as_dirs
16688 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16689 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16690 { (exit 1); exit 1; }; }; }
16694 if test "$ac_dir" != .
; then
16695 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16696 # A "../" for each directory in $ac_dir_suffix.
16697 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16699 ac_dir_suffix
= ac_top_builddir
=
16703 .
) # No --srcdir option. We are building in place.
16705 if test -z "$ac_top_builddir"; then
16708 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16710 [\\/]* | ?
:[\\/]* ) # Absolute path.
16711 ac_srcdir
=$srcdir$ac_dir_suffix;
16712 ac_top_srcdir
=$srcdir ;;
16713 *) # Relative path.
16714 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16715 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16718 # Do not use `cd foo && pwd` to compute absolute paths, because
16719 # the directories may not exist.
16721 .
) ac_abs_builddir
="$ac_dir";;
16724 .
) ac_abs_builddir
=`pwd`;;
16725 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16726 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16729 case $ac_abs_builddir in
16730 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16732 case ${ac_top_builddir}.
in
16733 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16734 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16735 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16738 case $ac_abs_builddir in
16739 .
) ac_abs_srcdir
=$ac_srcdir;;
16742 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16743 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16744 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16747 case $ac_abs_builddir in
16748 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16750 case $ac_top_srcdir in
16751 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16752 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16753 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16758 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16759 echo "$as_me: executing $ac_dest commands" >&6;}
16762 case ${CONFIG_HEADERS} in
16763 *auto-host.h
:config.
in*)
16766 # Make sure all the subdirs exist.
16767 for d
in $subdirs doc build
16769 test -d $d || mkdir
$d
16771 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16772 # bootstrapping and the installation procedure can still use
16773 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16774 # FLAGS_TO_PASS has been modified to solve the problem there.
16775 # This is virtually a duplicate of what happens in configure.lang; we do
16776 # an extra check to make sure this only happens if ln -s can be used.
16779 for d
in ${subdirs} ; do
16780 STARTDIR
=`${PWDCMD-pwd}`
16782 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16785 $LN_S ..
/$t $t 2>/dev
/null
16796 cat >>$CONFIG_STATUS <<\_ACEOF
16798 { (exit 0); exit 0; }
16800 chmod +x
$CONFIG_STATUS
16801 ac_clean_files
=$ac_clean_files_save
16804 # configure is writing to config.log, and then calls config.status.
16805 # config.status does its own redirection, appending to config.log.
16806 # Unfortunately, on DOS this fails, as config.log is still kept open
16807 # by configure, so config.status won't be able to write to it; its
16808 # output is simply discarded. So we exec the FD to /dev/null,
16809 # effectively closing config.log, so it can be properly (re)opened and
16810 # appended to by config.status. When coming back to configure, we
16811 # need to make the FD available again.
16812 if test "$no_create" != yes; then
16814 ac_config_status_args
=
16815 test "$silent" = yes &&
16816 ac_config_status_args
="$ac_config_status_args --quiet"
16818 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16820 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16821 # would make configure fail if this is the last instruction.
16822 $ac_cs_success ||
{ (exit 1); exit 1; }