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 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: yes,no
,all
,none
,release.
871 Flags are
: assert
,fold,gc
,gcac
,misc
,
872 rtlflag
,rtl
,runtime
,tree
,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler
's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-threads enable thread usage for target GCC
884 --enable-threads=LIB use LIB thread package for target GCC
885 --enable-objc-gc enable the use of Boehm's garbage collector with
886 the GNU Objective-C runtime
887 --disable-shared don
't provide a shared libgcc
888 --enable-intermodule build the compiler in one step
889 --enable-languages=LIST specify which front-ends to build
890 --disable-rpath do not hardcode runtime library paths
891 --enable-initfini-array use .init_array/.fini_array sections
892 --enable-sjlj-exceptions
893 arrange to use setjmp/longjmp exception handling
894 --enable-secureplt enable -msecure-plt by default for PowerPC
895 --disable-win32-registry
896 disable lookup of installation paths in the
897 Registry on Windows hosts
898 --enable-win32-registry enable registry lookup (default)
899 --enable-win32-registry=KEY
900 use KEY instead of GCC version as the last portion
902 --enable-maintainer-mode
903 enable make rules and dependencies not useful
904 (and sometimes confusing) to the casual installer
905 --enable-version-specific-runtime-libs
906 specify that runtime libraries should be
907 installed in a compiler-specific directory
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 --with-local-prefix=DIR specifies directory to put local include
913 --with-gxx-include-dir=DIR
914 specifies directory to put g++ header files
915 --with-cpp-install-dir=DIR
916 install the user visible C preprocessor in DIR
917 (relative to PREFIX) as well as PREFIX/bin
918 --with-gnu-ld arrange to work with GNU ld.
919 --with-ld arrange to use the specified ld (full pathname)
920 --with-demangler-in-ld try to use demangler in GNU ld.
921 --with-gnu-as arrange to work with GNU as
922 --with-as arrange to use the specified as (full pathname)
923 --with-stabs arrange to use stabs instead of host debug format
924 --with-dwarf2 force the default debug format to be DWARF 2
925 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
926 --with-gnu-ld assume the C compiler uses GNU ld default=no
927 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
928 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
929 --with-system-libunwind use installed libunwind
930 --with-gc={page
,zone
} choose the garbage collection mechanism to use
932 --with-system-zlib use installed libz
933 --with-slibdir=DIR shared libraries
in DIR LIBDIR
935 Some influential environment variables
:
936 CC C compiler
command
937 CFLAGS C compiler flags
938 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
939 nonstandard directory
<lib dir
>
940 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
941 headers
in a nonstandard directory
<include dir
>
943 GMPLIBS How to link GMP
944 GMPINC How to
find GMP include files
946 Use these variables to override the choices made by
`configure' or to help
947 it to find libraries and programs with nonstandard names/locations.
952 if test "$ac_init_help" = "recursive"; then
953 # If there are subdirs, report their specific --help.
955 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
956 test -d $ac_dir || continue
959 if test "$ac_dir" != .; then
960 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
961 # A "../" for each directory in $ac_dir_suffix.
962 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
964 ac_dir_suffix= ac_top_builddir=
968 .) # No --srcdir option. We are building in place.
970 if test -z "$ac_top_builddir"; then
973 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
975 [\\/]* | ?:[\\/]* ) # Absolute path.
976 ac_srcdir=$srcdir$ac_dir_suffix;
977 ac_top_srcdir=$srcdir ;;
979 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
980 ac_top_srcdir=$ac_top_builddir$srcdir ;;
983 # Do not use `cd foo
&& pwd` to compute absolute paths, because
984 # the directories may not exist.
986 .) ac_abs_builddir="$ac_dir";;
989 .) ac_abs_builddir=`pwd`;;
990 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
991 *) ac_abs_builddir=`pwd`/"$ac_dir";;
994 case $ac_abs_builddir in
995 .) ac_abs_top_builddir=${ac_top_builddir}.;;
997 case ${ac_top_builddir}. in
998 .) ac_abs_top_builddir=$ac_abs_builddir;;
999 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1000 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1003 case $ac_abs_builddir in
1004 .) ac_abs_srcdir=$ac_srcdir;;
1007 .) ac_abs_srcdir=$ac_abs_builddir;;
1008 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1009 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1012 case $ac_abs_builddir in
1013 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1015 case $ac_top_srcdir in
1016 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1017 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1018 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1023 # Check for guested configure; otherwise get Cygnus style configure.
1024 if test -f $ac_srcdir/configure.gnu; then
1026 $SHELL $ac_srcdir/configure.gnu --help=recursive
1027 elif test -f $ac_srcdir/configure; then
1029 $SHELL $ac_srcdir/configure --help=recursive
1030 elif test -f $ac_srcdir/configure.ac ||
1031 test -f $ac_srcdir/configure.in; then
1033 $ac_configure --help
1035 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1041 test -n "$ac_init_help" && exit 0
1042 if $ac_init_version; then
1045 Copyright (C) 2003 Free Software Foundation, Inc.
1046 This configure script is free software; the Free Software Foundation
1047 gives unlimited permission to copy, distribute and modify it.
1053 This file contains any messages produced by compilers while
1054 running configure, to aid debugging if configure makes a mistake.
1056 It was created by $as_me, which was
1057 generated by GNU Autoconf 2.59. Invocation command line was
1068 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1069 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1070 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1071 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1072 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1074 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1075 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1077 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1078 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1079 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1080 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1081 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1082 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1083 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1091 test -z "$as_dir" && as_dir=.
1092 echo "PATH: $as_dir"
1107 # Keep a trace of the command line.
1108 # Strip out --no-create and --no-recursion so they do not pile up.
1109 # Strip out --silent because we don't want to record it for future runs.
1110 # Also quote any args containing shell meta-characters.
1111 # Make two passes to allow for proper duplicate-argument suppression.
1116 ac_must_keep_next=false
1122 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1126 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1127 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1130 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1132 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1133 if test $ac_must_keep_next = true; then
1134 ac_must_keep_next=false # Got value, back to normal.
1137 *=* | --config-cache | -C | -disable-* | --disable-* \
1138 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1139 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1140 | -with-* | --with-* | -without-* | --without-* | --x)
1141 case "$ac_configure_args0 " in
1142 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1145 -* ) ac_must_keep_next=true ;;
1148 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1149 # Get rid of the leading space.
1155 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1156 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1158 # When interrupted or exit'd, cleanup temporary files, and complete
1159 # config.log. We remove comments because anyway the quotes in there
1160 # would cause problems or look ugly.
1161 # WARNING: Be sure not to use single quotes in there, as some shells,
1162 # such as our DU 5.0 friend, will then `close
' the trap.
1163 trap 'exit_status
=$?
1164 # Save into config.log some information that might help in debugging.
1169 ## ---------------- ##
1170 ## Cache variables. ##
1171 ## ---------------- ##
1174 # The following way of writing the cache mishandles newlines in values,
1177 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1180 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1185 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1192 ## ----------------- ##
1193 ## Output variables. ##
1194 ## ----------------- ##
1197 for ac_var
in $ac_subst_vars
1199 eval ac_val
=$
`echo $ac_var`
1200 echo "$ac_var='"'"'$ac_val'"'"'"
1204 if test -n "$ac_subst_files"; then
1211 for ac_var
in $ac_subst_files
1213 eval ac_val
=$
`echo $ac_var`
1214 echo "$ac_var='"'"'$ac_val'"'"'"
1219 if test -s confdefs.h
; then
1226 sed "/^$/d" confdefs.h |
sort
1229 test "$ac_signal" != 0 &&
1230 echo "$as_me: caught signal $ac_signal"
1231 echo "$as_me: exit $exit_status"
1233 rm -f core
*.core
&&
1234 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1237 for ac_signal in 1 2 13 15; do
1238 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1242 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1243 rm -rf conftest* confdefs.h
1244 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1247 # Predefined preprocessor variables.
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_NAME "$PACKAGE_NAME"
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_STRING "$PACKAGE_STRING"
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1274 # Let the site file select an alternate cache file if it wants to.
1275 # Prefer explicitly selected file to automatically selected ones.
1276 if test -z "$CONFIG_SITE"; then
1277 if test "x$prefix" != xNONE; then
1278 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1280 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1283 for ac_site_file in $CONFIG_SITE; do
1284 if test -r "$ac_site_file"; then
1285 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1286 echo "$as_me: loading site script $ac_site_file" >&6;}
1287 sed 's
/^
/|
/' "$ac_site_file" >&5
1292 if test -r "$cache_file"; then
1293 # Some versions of bash will fail to source /dev/null (special
1294 # files actually), so we avoid doing that.
1295 if test -f "$cache_file"; then
1296 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1297 echo "$as_me: loading cache $cache_file" >&6;}
1299 [\\/]* | ?:[\\/]* ) . $cache_file;;
1300 *) . ./$cache_file;;
1304 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1305 echo "$as_me: creating cache $cache_file" >&6;}
1309 # Check that the precious variables saved in the cache have kept the same
1311 ac_cache_corrupted=false
1312 for ac_var in `(set) 2>&1 |
1313 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1314 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1315 eval ac_new_set=\$ac_env_${ac_var}_set
1316 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1317 eval ac_new_val="\$ac_env_${ac_var}_value"
1318 case $ac_old_set,$ac_new_set in
1320 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1322 ac_cache_corrupted=: ;;
1324 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1325 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1326 ac_cache_corrupted=: ;;
1329 if test "x$ac_old_val" != "x$ac_new_val"; then
1330 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1331 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1332 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1333 echo "$as_me: former value: $ac_old_val" >&2;}
1334 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1335 echo "$as_me: current value: $ac_new_val" >&2;}
1336 ac_cache_corrupted=:
1339 # Pass precious variables to config.status.
1340 if test "$ac_new_set" = set; then
1342 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1343 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1344 *) ac_arg=$ac_var=$ac_new_val ;;
1346 case " $ac_configure_args " in
1347 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1348 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1352 if $ac_cache_corrupted; then
1353 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1354 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1355 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1356 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1357 { (exit 1); exit 1; }; }
1361 ac_cpp='$CPP $CPPFLAGS'
1362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1363 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1385 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1388 gcc_version=`cat $srcdir/BASE-VER`
1390 # Determine the host, build, and target systems
1392 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1393 if test -f $ac_dir/install-sh; then
1395 ac_install_sh="$ac_aux_dir/install-sh -c"
1397 elif test -f $ac_dir/install.sh; then
1399 ac_install_sh="$ac_aux_dir/install.sh -c"
1401 elif test -f $ac_dir/shtool; then
1403 ac_install_sh="$ac_aux_dir/shtool install -c"
1407 if test -z "$ac_aux_dir"; then
1408 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1409 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1410 { (exit 1); exit 1; }; }
1412 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1413 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1414 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1416 # Make sure we can run config.sub.
1417 $ac_config_sub sun4 >/dev/null 2>&1 ||
1418 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1419 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1420 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: checking build system type" >&5
1423 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1424 if test "${ac_cv_build+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 ac_cv_build_alias=$build_alias
1428 test -z "$ac_cv_build_alias" &&
1429 ac_cv_build_alias=`$ac_config_guess`
1430 test -z "$ac_cv_build_alias" &&
1431 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1432 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1433 { (exit 1); exit 1; }; }
1434 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1435 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1436 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1437 { (exit 1); exit 1; }; }
1440 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1441 echo "${ECHO_T}$ac_cv_build" >&6
1443 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1444 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1445 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1448 echo "$as_me:$LINENO: checking host system type" >&5
1449 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1450 if test "${ac_cv_host+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 ac_cv_host_alias=$host_alias
1454 test -z "$ac_cv_host_alias" &&
1455 ac_cv_host_alias=$ac_cv_build_alias
1456 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1457 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1458 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1459 { (exit 1); exit 1; }; }
1462 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1463 echo "${ECHO_T}$ac_cv_host" >&6
1465 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1466 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1467 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1470 echo "$as_me:$LINENO: checking target system type" >&5
1471 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1472 if test "${ac_cv_target+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 ac_cv_target_alias=$target_alias
1476 test "x$ac_cv_target_alias" = "x" &&
1477 ac_cv_target_alias=$ac_cv_host_alias
1478 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1479 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1480 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1481 { (exit 1); exit 1; }; }
1484 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1485 echo "${ECHO_T}$ac_cv_target" >&6
1486 target=$ac_cv_target
1487 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1488 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1489 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1492 # The aliases save the names the user supplied, while $host etc.
1493 # will get canonicalized.
1494 test -n "$target_alias" &&
1495 test "$program_prefix$program_suffix$program_transform_name" = \
1497 program_prefix=${target_alias}-
1499 # Determine the noncanonical target name, for directory use.
1500 case ${build_alias} in
1501 "") build_noncanonical=${build} ;;
1502 *) build_noncanonical=${build_alias} ;;
1505 case ${host_alias} in
1506 "") host_noncanonical=${build_noncanonical} ;;
1507 *) host_noncanonical=${host_alias} ;;
1510 case ${target_alias} in
1511 "") target_noncanonical=${host_noncanonical} ;;
1512 *) target_noncanonical=${target_alias} ;;
1518 # Determine the target- and build-specific subdirectories
1519 # Prefix 'build-
' so this never conflicts with target_subdir.
1520 build_subdir="build-${build_noncanonical}"
1521 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1522 if ( test $srcdir = . && test -d gcc ) \
1523 || test -d $srcdir/../host-${host_noncanonical}; then
1524 host_subdir="host-${host_noncanonical}"
1529 target_subdir=${target_noncanonical}
1532 # Set program_transform_name
1533 test "$program_prefix" != NONE &&
1534 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1535 # Use a double $ so make ignores it.
1536 test "$program_suffix" != NONE &&
1537 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1538 # Double any \ or $. echo might interpret backslashes.
1539 # By default was `s,x,x', remove it
if useless.
1540 cat <<\_ACEOF
>conftest.
sed
1541 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1543 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1547 # Check for bogus environment variables.
1548 # Test if LIBRARY_PATH contains the notation for the current directory
1549 # since this would lead to problems installing/building glibc.
1550 # LIBRARY_PATH contains the current directory if one of the following
1552 # - one of the terminals (":" and ";") is the first or last sign
1553 # - two terminals occur directly after each other
1554 # - the path contains an element with a dot in it
1555 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1556 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1557 case ${LIBRARY_PATH} in
1558 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1559 library_path_setting
="contains current directory"
1562 library_path_setting
="ok"
1565 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1566 echo "${ECHO_T}$library_path_setting" >&6
1567 if test "$library_path_setting" != "ok"; then
1568 { { echo "$as_me:$LINENO: error:
1569 *** LIBRARY_PATH shouldn't contain the current directory when
1570 *** building gcc. Please change the environment variable
1571 *** and run configure again." >&5
1572 echo "$as_me: error:
1573 *** LIBRARY_PATH shouldn't contain the current directory when
1574 *** building gcc. Please change the environment variable
1575 *** and run configure again." >&2;}
1576 { (exit 1); exit 1; }; }
1579 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1580 # since this would lead to problems installing/building glibc.
1581 # GCC_EXEC_PREFIX contains the current directory if one of the following
1583 # - one of the terminals (":" and ";") is the first or last sign
1584 # - two terminals occur directly after each other
1585 # - the path contains an element with a dot in it
1586 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1587 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1588 case ${GCC_EXEC_PREFIX} in
1589 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1590 gcc_exec_prefix_setting
="contains current directory"
1593 gcc_exec_prefix_setting
="ok"
1596 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1597 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1598 if test "$gcc_exec_prefix_setting" != "ok"; then
1599 { { echo "$as_me:$LINENO: error:
1600 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1601 *** building gcc. Please change the environment variable
1602 *** and run configure again." >&5
1603 echo "$as_me: error:
1604 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1605 *** building gcc. Please change the environment variable
1606 *** and run configure again." >&2;}
1607 { (exit 1); exit 1; }; }
1614 # Specify the local prefix
1617 # Check whether --with-local-prefix or --without-local-prefix was given.
1618 if test "${with_local_prefix+set}" = set; then
1619 withval
="$with_local_prefix"
1620 case "${withval}" in
1621 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1622 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1623 { (exit 1); exit 1; }; } ;;
1625 *) local_prefix
=$with_local_prefix ;;
1629 # Default local prefix if it is empty
1630 if test x
$local_prefix = x
; then
1631 local_prefix
=/usr
/local
1634 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1635 # passed in by the toplevel make and thus we'd get different behavior
1636 # depending on where we built the sources.
1637 gcc_gxx_include_dir
=
1638 # Specify the g++ header file directory
1640 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1641 if test "${with_gxx_include_dir+set}" = set; then
1642 withval
="$with_gxx_include_dir"
1643 case "${withval}" in
1644 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1645 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1646 { (exit 1); exit 1; }; } ;;
1648 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1652 if test x
${gcc_gxx_include_dir} = x
; then
1653 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1654 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1656 libstdcxx_incdir
='c++/$(version)'
1657 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1662 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1663 if test "${with_cpp_install_dir+set}" = set; then
1664 withval
="$with_cpp_install_dir"
1665 if test x
$withval = xyes
; then
1666 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1667 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1668 { (exit 1); exit 1; }; }
1669 elif test x
$withval != xno
; then
1670 cpp_install_dir
=$withval
1674 # We would like to our source tree to be readonly. However when releases or
1675 # pre-releases are generated, the flex/bison generated files as well as the
1676 # various formats of manuals need to be included along with the rest of the
1677 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1680 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1681 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1682 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1683 if test "${enable_generated_files_in_srcdir+set}" = set; then
1684 enableval
="$enable_generated_files_in_srcdir"
1685 generated_files_in_srcdir
=$enableval
1687 generated_files_in_srcdir
=no
1690 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1691 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1693 if test "$generated_files_in_srcdir" = "yes"; then
1700 # -------------------
1701 # Find default linker
1702 # -------------------
1706 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1707 if test "${with_gnu_ld+set}" = set; then
1708 withval
="$with_gnu_ld"
1709 gnu_ld_flag
="$with_gnu_ld"
1714 # With pre-defined ld
1716 # Check whether --with-ld or --without-ld was given.
1717 if test "${with_ld+set}" = set; then
1719 DEFAULT_LINKER
="$with_ld"
1721 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1722 if test ! -x "$DEFAULT_LINKER"; then
1723 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1724 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1725 { (exit 1); exit 1; }; }
1726 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1730 cat >>confdefs.h
<<_ACEOF
1731 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1736 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1737 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1738 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1739 if test x
"$gnu_ld_flag" = x
"no"; then
1740 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1741 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1743 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1744 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1751 # With demangler in GNU ld
1753 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1754 if test "${with_demangler_in_ld+set}" = set; then
1755 withval
="$with_demangler_in_ld"
1756 demangler_in_ld
="$with_demangler_in_ld"
1761 # ----------------------
1762 # Find default assembler
1763 # ----------------------
1767 # Check whether --with-gnu-as or --without-gnu-as was given.
1768 if test "${with_gnu_as+set}" = set; then
1769 withval
="$with_gnu_as"
1770 gas_flag
="$with_gnu_as"
1776 # Check whether --with-as or --without-as was given.
1777 if test "${with_as+set}" = set; then
1779 DEFAULT_ASSEMBLER
="$with_as"
1781 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1782 if test ! -x "$DEFAULT_ASSEMBLER"; then
1783 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1784 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1785 { (exit 1); exit 1; }; }
1786 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1790 cat >>confdefs.h
<<_ACEOF
1791 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1796 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1797 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1798 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1799 if test x
"$gas_flag" = x
"no"; then
1800 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1801 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1803 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1804 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1807 echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1815 # If a non-executable a.out is present (e.g. created by GNU as above even if
1816 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1817 # file, even when creating an executable, so an execution test fails.
1818 # Remove possible default executable files to avoid this.
1820 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1821 # Autoconf includes it.
1822 rm -f a.out a.exe b.out
1824 # Find the native compiler
1826 ac_cpp
='$CPP $CPPFLAGS'
1827 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1830 if test -n "$ac_tool_prefix"; then
1831 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1832 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 if test -n "$CC"; then
1839 ac_cv_prog_CC
="$CC" # Let the user override the test.
1841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1845 test -z "$as_dir" && as_dir
=.
1846 for ac_exec_ext
in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 if test -n "$CC"; then
1859 echo "$as_me:$LINENO: result: $CC" >&5
1860 echo "${ECHO_T}$CC" >&6
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1867 if test -z "$ac_cv_prog_CC"; then
1869 # Extract the first word of "gcc", so it can be a program name with args.
1870 set dummy gcc
; ac_word
=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 if test -n "$ac_ct_CC"; then
1877 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1883 test -z "$as_dir" && as_dir
=.
1884 for ac_exec_ext
in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 ac_cv_prog_ac_ct_CC
="gcc"
1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1896 if test -n "$ac_ct_CC"; then
1897 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1898 echo "${ECHO_T}$ac_ct_CC" >&6
1900 echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1909 if test -z "$CC"; then
1910 if test -n "$ac_tool_prefix"; then
1911 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1912 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 if test -n "$CC"; then
1919 ac_cv_prog_CC
="$CC" # Let the user override the test.
1921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir
=.
1926 for ac_exec_ext
in '' $ac_executable_extensions; do
1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 if test -n "$CC"; then
1939 echo "$as_me:$LINENO: result: $CC" >&5
1940 echo "${ECHO_T}$CC" >&6
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1947 if test -z "$ac_cv_prog_CC"; then
1949 # Extract the first word of "cc", so it can be a program name with args.
1950 set dummy cc
; ac_word
=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 if test -n "$ac_ct_CC"; then
1957 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1963 test -z "$as_dir" && as_dir
=.
1964 for ac_exec_ext
in '' $ac_executable_extensions; do
1965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 ac_cv_prog_ac_ct_CC
="cc"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1976 if test -n "$ac_ct_CC"; then
1977 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1978 echo "${ECHO_T}$ac_ct_CC" >&6
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1990 if test -z "$CC"; then
1991 # Extract the first word of "cc", so it can be a program name with args.
1992 set dummy cc
; ac_word
=$2
1993 echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995 if test "${ac_cv_prog_CC+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 if test -n "$CC"; then
1999 ac_cv_prog_CC
="$CC" # Let the user override the test.
2002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2006 test -z "$as_dir" && as_dir
=.
2007 for ac_exec_ext
in '' $ac_executable_extensions; do
2008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2010 ac_prog_rejected
=yes
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 if test $ac_prog_rejected = yes; then
2021 # We found a bogon in the path, so make sure we never use it.
2022 set dummy
$ac_cv_prog_CC
2024 if test $# != 0; then
2025 # We chose a different compiler from the bogus one.
2026 # However, it has the same basename, so the bogon will be chosen
2027 # first if we set CC to just the basename; use the full file name.
2029 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2035 if test -n "$CC"; then
2036 echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2044 if test -z "$CC"; then
2045 if test -n "$ac_tool_prefix"; then
2048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2049 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2050 echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2052 if test "${ac_cv_prog_CC+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 if test -n "$CC"; then
2056 ac_cv_prog_CC
="$CC" # Let the user override the test.
2058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2062 test -z "$as_dir" && as_dir
=.
2063 for ac_exec_ext
in '' $ac_executable_extensions; do
2064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2065 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 if test -n "$CC"; then
2076 echo "$as_me:$LINENO: result: $CC" >&5
2077 echo "${ECHO_T}$CC" >&6
2079 echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6
2083 test -n "$CC" && break
2086 if test -z "$CC"; then
2090 # Extract the first word of "$ac_prog", so it can be a program name with args.
2091 set dummy
$ac_prog; ac_word
=$2
2092 echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 if test -n "$ac_ct_CC"; then
2098 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2104 test -z "$as_dir" && as_dir
=.
2105 for ac_exec_ext
in '' $ac_executable_extensions; do
2106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107 ac_cv_prog_ac_ct_CC
="$ac_prog"
2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2117 if test -n "$ac_ct_CC"; then
2118 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2119 echo "${ECHO_T}$ac_ct_CC" >&6
2121 echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6
2125 test -n "$ac_ct_CC" && break
2134 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: no acceptable C compiler found in \$PATH
2137 See \`config.log' for more details." >&2;}
2138 { (exit 1); exit 1; }; }
2140 # Provide some information about the compiler.
2141 echo "$as_me:$LINENO:" \
2142 "checking for C compiler version" >&5
2143 ac_compiler
=`set X $ac_compile; echo $2`
2144 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2145 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2150 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2155 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2160 cat >conftest.
$ac_ext <<_ACEOF
2163 cat confdefs.h
>>conftest.
$ac_ext
2164 cat >>conftest.
$ac_ext <<_ACEOF
2165 /* end confdefs.h. */
2175 ac_clean_files_save
=$ac_clean_files
2176 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2177 # Try to create an executable without -o first, disregard a.out.
2178 # It will help us diagnose broken compilers, and finding out an intuition
2180 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2181 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2182 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2183 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2184 (eval $ac_link_default) 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; then
2188 # Find the output, starting from the most likely. This scheme is
2189 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2192 # Be careful to initialize this variable, since it used to be cached.
2193 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2195 # b.out is created by i960 compilers.
2196 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2198 test -f "$ac_file" ||
continue
2200 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2203 # This is the source file.
2206 # We found the default executable, but exeext='' is most
2210 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2211 # FIXME: I believe we export ac_cv_exeext for Libtool,
2212 # but it would be cool to find out if it's true. Does anybody
2213 # maintain Libtool? --akim.
2221 echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.
$ac_ext >&5
2224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&2;}
2228 { (exit 77); exit 77; }; }
2231 ac_exeext
=$ac_cv_exeext
2232 echo "$as_me:$LINENO: result: $ac_file" >&5
2233 echo "${ECHO_T}$ac_file" >&6
2235 # Check the compiler produces executables we can run. If not, either
2236 # the compiler is broken, or we cross compile.
2237 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2238 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2239 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2240 # If not cross compiling, check that we can run a simple program.
2241 if test "$cross_compiling" != yes; then
2242 if { ac_try
='./$ac_file'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2250 if test "$cross_compiling" = maybe
; then
2253 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2254 If you meant to cross compile, use \`--host'.
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: cannot run C compiled programs.
2257 If you meant to cross compile, use \`--host'.
2258 See \`config.log' for more details." >&2;}
2259 { (exit 1); exit 1; }; }
2263 echo "$as_me:$LINENO: result: yes" >&5
2264 echo "${ECHO_T}yes" >&6
2266 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2267 ac_clean_files
=$ac_clean_files_save
2268 # Check the compiler produces executables we can run. If not, either
2269 # the compiler is broken, or we cross compile.
2270 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2271 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2272 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2273 echo "${ECHO_T}$cross_compiling" >&6
2275 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2276 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2278 (eval $ac_link) 2>&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; then
2282 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2283 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2284 # work properly (i.e., refer to `conftest.exe'), while it won't with
2286 for ac_file
in conftest.exe conftest conftest.
*; do
2287 test -f "$ac_file" ||
continue
2289 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2290 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2300 See \`config.log' for more details." >&2;}
2301 { (exit 1); exit 1; }; }
2304 rm -f conftest
$ac_cv_exeext
2305 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2306 echo "${ECHO_T}$ac_cv_exeext" >&6
2308 rm -f conftest.
$ac_ext
2309 EXEEXT
=$ac_cv_exeext
2311 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2312 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2313 if test "${ac_cv_objext+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 cat >conftest.
$ac_ext <<_ACEOF
2319 cat confdefs.h
>>conftest.
$ac_ext
2320 cat >>conftest.
$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2331 rm -f conftest.o conftest.obj
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; then
2337 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2339 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2340 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.
$ac_ext >&5
2348 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&2;}
2352 { (exit 1); exit 1; }; }
2355 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2357 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2358 echo "${ECHO_T}$ac_cv_objext" >&6
2359 OBJEXT
=$ac_cv_objext
2361 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2362 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2363 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat >conftest.
$ac_ext <<_ACEOF
2369 cat confdefs.h
>>conftest.
$ac_ext
2370 cat >>conftest.
$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2384 rm -f conftest.
$ac_objext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386 (eval $ac_compile) 2>conftest.er1
2388 grep -v '^ *+' conftest.er1
>conftest.err
2390 cat conftest.err
>&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try
='test -z "$ac_c_werror_flag"
2394 || test ! -s conftest.err'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try
='test -s conftest.$ac_objext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.
$ac_ext >&5
2413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2414 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2417 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2418 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2419 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2420 ac_test_CFLAGS
=${CFLAGS+set}
2421 ac_save_CFLAGS
=$CFLAGS
2423 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2424 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2425 if test "${ac_cv_prog_cc_g+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 cat >conftest.
$ac_ext <<_ACEOF
2431 cat confdefs.h
>>conftest.
$ac_ext
2432 cat >>conftest.
$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2443 rm -f conftest.
$ac_objext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>conftest.er1
2447 grep -v '^ *+' conftest.er1
>conftest.err
2449 cat conftest.err
>&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try
='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try
='test -s conftest.$ac_objext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.
$ac_ext >&5
2472 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2474 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2475 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2476 if test "$ac_test_CFLAGS" = set; then
2477 CFLAGS
=$ac_save_CFLAGS
2478 elif test $ac_cv_prog_cc_g = yes; then
2479 if test "$GCC" = yes; then
2485 if test "$GCC" = yes; then
2491 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2492 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2493 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 ac_cv_prog_cc_stdc
=no
2498 cat >conftest.
$ac_ext <<_ACEOF
2501 cat confdefs.h
>>conftest.
$ac_ext
2502 cat >>conftest.
$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2506 #include <sys/types.h>
2507 #include <sys/stat.h>
2508 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2509 struct buf { int x; };
2510 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2511 static char *e (p, i)
2517 static char *f (char * (*g) (char **, int), char **p, ...)
2522 s = g (p, va_arg (v,int));
2527 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2528 function prototypes and stuff, but not '\xHH' hex character constants.
2529 These don't provoke an error unfortunately, instead are silently treated
2530 as 'x'. The following induces an error, until -std1 is added to get
2531 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2532 array size at least. It's necessary to write '\x00'==0 to get something
2533 that's true only with -std1. */
2534 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2536 int test (int i, double x);
2537 struct s1 {int (*f) (int a);};
2538 struct s2 {int (*f) (double a);};
2539 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2545 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2550 # Don't try gcc -ansi; that turns off useful extensions and
2551 # breaks some systems' header files.
2552 # AIX -qlanglvl=ansi
2553 # Ultrix and OSF/1 -std1
2554 # HP-UX 10.20 and later -Ae
2555 # HP-UX older versions -Aa -D_HPUX_SOURCE
2556 # SVR4 -Xc -D__EXTENSIONS__
2557 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2559 CC
="$ac_save_CC $ac_arg"
2560 rm -f conftest.
$ac_objext
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562 (eval $ac_compile) 2>conftest.er1
2564 grep -v '^ *+' conftest.er1
>conftest.err
2566 cat conftest.err
>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } &&
2569 { ac_try
='test -z "$ac_c_werror_flag"
2570 || test ! -s conftest.err'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try
='test -s conftest.$ac_objext'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2582 ac_cv_prog_cc_stdc
=$ac_arg
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.
$ac_ext >&5
2589 rm -f conftest.err conftest.
$ac_objext
2591 rm -f conftest.
$ac_ext conftest.
$ac_objext
2596 case "x$ac_cv_prog_cc_stdc" in
2598 echo "$as_me:$LINENO: result: none needed" >&5
2599 echo "${ECHO_T}none needed" >&6 ;;
2601 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2602 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2603 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2606 # Some people use a C++ compiler to compile C. Since we use `exit',
2607 # in C++ we need to declare it. In case someone uses the same compiler
2608 # for both compiling C and C++ we need to have the C++ compiler decide
2609 # the declaration of exit, since it's the most demanding environment.
2610 cat >conftest.
$ac_ext <<_ACEOF
2615 rm -f conftest.
$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>conftest.er1
2619 grep -v '^ *+' conftest.er1
>conftest.err
2621 cat conftest.err
>&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try
='test -z "$ac_c_werror_flag"
2625 || test ! -s conftest.err'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try
='test -s conftest.$ac_objext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2637 for ac_declaration
in \
2639 'extern "C" void std::exit (int) throw (); using std::exit;' \
2640 'extern "C" void std::exit (int); using std::exit;' \
2641 'extern "C" void exit (int) throw ();' \
2642 'extern "C" void exit (int);' \
2645 cat >conftest.
$ac_ext <<_ACEOF
2648 cat confdefs.h
>>conftest.
$ac_ext
2649 cat >>conftest.
$ac_ext <<_ACEOF
2650 /* end confdefs.h. */
2661 rm -f conftest.
$ac_objext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663 (eval $ac_compile) 2>conftest.er1
2665 grep -v '^ *+' conftest.er1
>conftest.err
2667 cat conftest.err
>&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
2670 { ac_try
='test -z "$ac_c_werror_flag"
2671 || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try
='test -s conftest.$ac_objext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.
$ac_ext >&5
2690 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2691 cat >conftest.
$ac_ext <<_ACEOF
2694 cat confdefs.h
>>conftest.
$ac_ext
2695 cat >>conftest.
$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2706 rm -f conftest.
$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>conftest.er1
2710 grep -v '^ *+' conftest.er1
>conftest.err
2712 cat conftest.err
>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try
='test -z "$ac_c_werror_flag"
2716 || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try
='test -s conftest.$ac_objext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.
$ac_ext >&5
2734 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2737 if test -n "$ac_declaration"; then
2738 echo '#ifdef __cplusplus' >>confdefs.h
2739 echo $ac_declaration >>confdefs.h
2740 echo '#endif' >>confdefs.h
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.
$ac_ext >&5
2748 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2750 ac_cpp
='$CPP $CPPFLAGS'
2751 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2755 if test "x$CC" != xcc
; then
2756 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2757 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2759 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2760 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2762 set dummy
$CC; ac_cc
=`echo $2 |
2763 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2764 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 cat >conftest.
$ac_ext <<_ACEOF
2770 cat confdefs.h
>>conftest.
$ac_ext
2771 cat >>conftest.
$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2782 # Make sure it works both with $CC and with simple cc.
2783 # We do the test twice because some compilers refuse to overwrite an
2784 # existing .o file with -o, though they will create one.
2785 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2786 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
2791 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); };
2797 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2798 if test "x$CC" != xcc
; then
2799 # Test first that cc exists at all.
2800 if { ac_try
='cc -c conftest.$ac_ext >&5'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2807 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); };
2821 # cc exists but doesn't like -o.
2822 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2827 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2832 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2833 echo "$as_me:$LINENO: result: yes" >&5
2834 echo "${ECHO_T}yes" >&6
2836 echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6
2839 cat >>confdefs.h
<<\_ACEOF
2840 #define NO_MINUS_C_MINUS_O 1
2845 # expand $ac_aux_dir to an absolute path
2846 am_aux_dir
=`cd $ac_aux_dir && pwd`
2848 # FIXME: we rely on the cache variable name because
2849 # there is no other way.
2851 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2852 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2853 # Losing compiler, so override with the script.
2854 # FIXME: It is wrong to rewrite CC.
2855 # But if we don't then we get into trouble of one sort or another.
2856 # A longer-term fix would be to have automake use am__CC in this case,
2857 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2858 CC
="$am_aux_dir/compile $CC"
2861 # autoconf is lame and doesn't give us any substitution variable for this.
2862 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2863 NO_MINUS_C_MINUS_O
=yes
2865 OUTPUT_OPTION
='-o $@'
2870 # -------------------------
2871 # Check C compiler features
2872 # -------------------------
2875 ac_cpp
='$CPP $CPPFLAGS'
2876 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2879 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2880 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2881 # On Suns, sometimes $CPP names a directory.
2882 if test -n "$CPP" && test -d "$CPP"; then
2885 if test -z "$CPP"; then
2886 if test "${ac_cv_prog_CPP+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 # Double quotes because CPP needs to be expanded
2890 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2893 for ac_c_preproc_warn_flag
in '' yes
2895 # Use a header file that comes with gcc, so configuring glibc
2896 # with a fresh cross-compiler works.
2897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2898 # <limits.h> exists even on freestanding compilers.
2899 # On the NeXT, cc -E runs the code through the compiler's parser,
2900 # not just through cpp. "Syntax error" is here to catch this case.
2901 cat >conftest.
$ac_ext <<_ACEOF
2904 cat confdefs.h
>>conftest.
$ac_ext
2905 cat >>conftest.
$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2908 # include <limits.h>
2910 # include <assert.h>
2914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2915 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2917 grep -v '^ *+' conftest.er1
>conftest.err
2919 cat conftest.err
>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } >/dev
/null
; then
2922 if test -s conftest.err
; then
2923 ac_cpp_err
=$ac_c_preproc_warn_flag
2924 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2931 if test -z "$ac_cpp_err"; then
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.
$ac_ext >&5
2937 # Broken: fails on valid input.
2940 rm -f conftest.err conftest.
$ac_ext
2942 # OK, works on sane cases. Now check whether non-existent headers
2943 # can be detected and how.
2944 cat >conftest.
$ac_ext <<_ACEOF
2947 cat confdefs.h
>>conftest.
$ac_ext
2948 cat >>conftest.
$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2950 #include <ac_nonexistent.h>
2952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2953 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2955 grep -v '^ *+' conftest.er1
>conftest.err
2957 cat conftest.err
>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } >/dev
/null
; then
2960 if test -s conftest.err
; then
2961 ac_cpp_err
=$ac_c_preproc_warn_flag
2962 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2969 if test -z "$ac_cpp_err"; then
2970 # Broken: success on invalid input.
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.
$ac_ext >&5
2976 # Passes both tests.
2980 rm -f conftest.err conftest.
$ac_ext
2983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2984 rm -f conftest.err conftest.
$ac_ext
2985 if $ac_preproc_ok; then
2997 echo "$as_me:$LINENO: result: $CPP" >&5
2998 echo "${ECHO_T}$CPP" >&6
3000 for ac_c_preproc_warn_flag
in '' yes
3002 # Use a header file that comes with gcc, so configuring glibc
3003 # with a fresh cross-compiler works.
3004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3005 # <limits.h> exists even on freestanding compilers.
3006 # On the NeXT, cc -E runs the code through the compiler's parser,
3007 # not just through cpp. "Syntax error" is here to catch this case.
3008 cat >conftest.
$ac_ext <<_ACEOF
3011 cat confdefs.h
>>conftest.
$ac_ext
3012 cat >>conftest.
$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3015 # include <limits.h>
3017 # include <assert.h>
3021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3022 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3024 grep -v '^ *+' conftest.er1
>conftest.err
3026 cat conftest.err
>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } >/dev
/null
; then
3029 if test -s conftest.err
; then
3030 ac_cpp_err
=$ac_c_preproc_warn_flag
3031 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3038 if test -z "$ac_cpp_err"; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.
$ac_ext >&5
3044 # Broken: fails on valid input.
3047 rm -f conftest.err conftest.
$ac_ext
3049 # OK, works on sane cases. Now check whether non-existent headers
3050 # can be detected and how.
3051 cat >conftest.
$ac_ext <<_ACEOF
3054 cat confdefs.h
>>conftest.
$ac_ext
3055 cat >>conftest.
$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 #include <ac_nonexistent.h>
3059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3060 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3062 grep -v '^ *+' conftest.er1
>conftest.err
3064 cat conftest.err
>&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } >/dev
/null
; then
3067 if test -s conftest.err
; then
3068 ac_cpp_err
=$ac_c_preproc_warn_flag
3069 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3076 if test -z "$ac_cpp_err"; then
3077 # Broken: success on invalid input.
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.
$ac_ext >&5
3083 # Passes both tests.
3087 rm -f conftest.err conftest.
$ac_ext
3090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3091 rm -f conftest.err conftest.
$ac_ext
3092 if $ac_preproc_ok; then
3095 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3103 ac_cpp
='$CPP $CPPFLAGS'
3104 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3109 echo "$as_me:$LINENO: checking for inline" >&5
3110 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3111 if test "${ac_cv_c_inline+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 for ac_kw
in inline __inline__ __inline
; do
3116 cat >conftest.
$ac_ext <<_ACEOF
3119 cat confdefs.h
>>conftest.
$ac_ext
3120 cat >>conftest.
$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3124 static $ac_kw foo_t static_foo () {return 0; }
3125 $ac_kw foo_t foo () {return 0; }
3129 rm -f conftest.
$ac_objext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3131 (eval $ac_compile) 2>conftest.er1
3133 grep -v '^ *+' conftest.er1
>conftest.err
3135 cat conftest.err
>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try
='test -z "$ac_c_werror_flag"
3139 || test ! -s conftest.err'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; } &&
3145 { ac_try
='test -s conftest.$ac_objext'
3146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3151 ac_cv_c_inline
=$ac_kw; break
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.
$ac_ext >&5
3157 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3161 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3162 echo "${ECHO_T}$ac_cv_c_inline" >&6
3165 case $ac_cv_c_inline in
3168 case $ac_cv_c_inline in
3170 *) ac_val
=$ac_cv_c_inline;;
3172 cat >>confdefs.h
<<_ACEOF
3174 #define inline $ac_val
3181 # sizeof(char) is 1 by definition.
3183 echo "$as_me:$LINENO: checking for egrep" >&5
3184 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3185 if test "${ac_cv_prog_egrep+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3189 then ac_cv_prog_egrep
='grep -E'
3190 else ac_cv_prog_egrep
='egrep'
3193 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3194 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3195 EGREP
=$ac_cv_prog_egrep
3198 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3200 if test "${ac_cv_header_stdc+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 cat >conftest.
$ac_ext <<_ACEOF
3206 cat confdefs.h
>>conftest.
$ac_ext
3207 cat >>conftest.
$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3222 rm -f conftest.
$ac_objext
3223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3224 (eval $ac_compile) 2>conftest.er1
3226 grep -v '^ *+' conftest.er1
>conftest.err
3228 cat conftest.err
>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } &&
3231 { ac_try
='test -z "$ac_c_werror_flag"
3232 || test ! -s conftest.err'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; } &&
3238 { ac_try
='test -s conftest.$ac_objext'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3244 ac_cv_header_stdc
=yes
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.
$ac_ext >&5
3249 ac_cv_header_stdc
=no
3251 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3253 if test $ac_cv_header_stdc = yes; then
3254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3255 cat >conftest.
$ac_ext <<_ACEOF
3258 cat confdefs.h
>>conftest.
$ac_ext
3259 cat >>conftest.
$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3265 $EGREP "memchr" >/dev
/null
2>&1; then
3268 ac_cv_header_stdc
=no
3274 if test $ac_cv_header_stdc = yes; then
3275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3276 cat >conftest.
$ac_ext <<_ACEOF
3279 cat confdefs.h
>>conftest.
$ac_ext
3280 cat >>conftest.
$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3286 $EGREP "free" >/dev
/null
2>&1; then
3289 ac_cv_header_stdc
=no
3295 if test $ac_cv_header_stdc = yes; then
3296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3297 if test "$cross_compiling" = yes; then
3300 cat >conftest.
$ac_ext <<_ACEOF
3303 cat confdefs.h
>>conftest.
$ac_ext
3304 cat >>conftest.
$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3307 #if ((' ' & 0x0FF) == 0x020)
3308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3311 # define ISLOWER(c) \
3312 (('a' <= (c) && (c) <= 'i') \
3313 || ('j' <= (c) && (c) <= 'r') \
3314 || ('s' <= (c) && (c) <= 'z'))
3315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3323 for (i = 0; i < 256; i++)
3324 if (XOR (islower (i), ISLOWER (i))
3325 || toupper (i) != TOUPPER (i))
3330 rm -f conftest
$ac_exeext
3331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3332 (eval $ac_link) 2>&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3343 echo "$as_me: program exited with status $ac_status" >&5
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.
$ac_ext >&5
3348 ac_cv_header_stdc
=no
3350 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3354 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3355 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3356 if test $ac_cv_header_stdc = yes; then
3358 cat >>confdefs.h
<<\_ACEOF
3359 #define STDC_HEADERS 1
3364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3374 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3375 inttypes.h stdint.h unistd.h
3377 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3378 echo "$as_me:$LINENO: checking for $ac_header" >&5
3379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 cat >conftest.
$ac_ext <<_ACEOF
3386 cat confdefs.h
>>conftest.
$ac_ext
3387 cat >>conftest.
$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3389 $ac_includes_default
3391 #include <$ac_header>
3393 rm -f conftest.
$ac_objext
3394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3395 (eval $ac_compile) 2>conftest.er1
3397 grep -v '^ *+' conftest.er1
>conftest.err
3399 cat conftest.err
>&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } &&
3402 { ac_try
='test -z "$ac_c_werror_flag"
3403 || test ! -s conftest.err'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; } &&
3409 { ac_try
='test -s conftest.$ac_objext'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 eval "$as_ac_Header=yes"
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.
$ac_ext >&5
3420 eval "$as_ac_Header=no"
3422 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3427 cat >>confdefs.h
<<_ACEOF
3428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3436 echo "$as_me:$LINENO: checking for void *" >&5
3437 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3438 if test "${ac_cv_type_void_p+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 cat >conftest.
$ac_ext <<_ACEOF
3444 cat confdefs.h
>>conftest.
$ac_ext
3445 cat >>conftest.
$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 $ac_includes_default
3453 if (sizeof (void *))
3459 rm -f conftest.
$ac_objext
3460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3461 (eval $ac_compile) 2>conftest.er1
3463 grep -v '^ *+' conftest.er1
>conftest.err
3465 cat conftest.err
>&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } &&
3468 { ac_try
='test -z "$ac_c_werror_flag"
3469 || test ! -s conftest.err'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; } &&
3475 { ac_try
='test -s conftest.$ac_objext'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 ac_cv_type_void_p
=yes
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.
$ac_ext >&5
3486 ac_cv_type_void_p
=no
3488 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3490 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3491 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3493 echo "$as_me:$LINENO: checking size of void *" >&5
3494 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3495 if test "${ac_cv_sizeof_void_p+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 if test "$ac_cv_type_void_p" = yes; then
3499 # The cast to unsigned long works around a bug in the HP C Compiler
3500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3502 # This bug is HP SR number 8606223364.
3503 if test "$cross_compiling" = yes; then
3504 # Depending upon the size, compute the lo and hi bounds.
3505 cat >conftest.
$ac_ext <<_ACEOF
3508 cat confdefs.h
>>conftest.
$ac_ext
3509 cat >>conftest.
$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3511 $ac_includes_default
3515 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3522 rm -f conftest.
$ac_objext
3523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3524 (eval $ac_compile) 2>conftest.er1
3526 grep -v '^ *+' conftest.er1
>conftest.err
3528 cat conftest.err
>&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try
='test -z "$ac_c_werror_flag"
3532 || test ! -s conftest.err'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; } &&
3538 { ac_try
='test -s conftest.$ac_objext'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; }; then
3546 cat >conftest.
$ac_ext <<_ACEOF
3549 cat confdefs.h
>>conftest.
$ac_ext
3550 cat >>conftest.
$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 $ac_includes_default
3556 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3563 rm -f conftest.
$ac_objext
3564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3565 (eval $ac_compile) 2>conftest.er1
3567 grep -v '^ *+' conftest.er1
>conftest.err
3569 cat conftest.err
>&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } &&
3572 { ac_try
='test -z "$ac_c_werror_flag"
3573 || test ! -s conftest.err'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; } &&
3579 { ac_try
='test -s conftest.$ac_objext'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; }; then
3585 ac_hi
=$ac_mid; break
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.
$ac_ext >&5
3590 ac_lo
=`expr $ac_mid + 1`
3591 if test $ac_lo -le $ac_mid; then
3595 ac_mid
=`expr 2 '*' $ac_mid + 1`
3597 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3600 echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.
$ac_ext >&5
3603 cat >conftest.
$ac_ext <<_ACEOF
3606 cat confdefs.h
>>conftest.
$ac_ext
3607 cat >>conftest.
$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3609 $ac_includes_default
3613 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3620 rm -f conftest.
$ac_objext
3621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3622 (eval $ac_compile) 2>conftest.er1
3624 grep -v '^ *+' conftest.er1
>conftest.err
3626 cat conftest.err
>&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } &&
3629 { ac_try
='test -z "$ac_c_werror_flag"
3630 || test ! -s conftest.err'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; } &&
3636 { ac_try
='test -s conftest.$ac_objext'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; }; then
3644 cat >conftest.
$ac_ext <<_ACEOF
3647 cat confdefs.h
>>conftest.
$ac_ext
3648 cat >>conftest.
$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 $ac_includes_default
3654 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3661 rm -f conftest.
$ac_objext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663 (eval $ac_compile) 2>conftest.er1
3665 grep -v '^ *+' conftest.er1
>conftest.err
3667 cat conftest.err
>&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try
='test -z "$ac_c_werror_flag"
3671 || test ! -s conftest.err'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; } &&
3677 { ac_try
='test -s conftest.$ac_objext'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 ac_lo
=$ac_mid; break
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.
$ac_ext >&5
3688 ac_hi
=`expr '(' $ac_mid ')' - 1`
3689 if test $ac_mid -le $ac_hi; then
3693 ac_mid
=`expr 2 '*' $ac_mid`
3695 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.
$ac_ext >&5
3703 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3705 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3706 # Binary search between lo and hi bounds.
3707 while test "x$ac_lo" != "x$ac_hi"; do
3708 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3709 cat >conftest.
$ac_ext <<_ACEOF
3712 cat confdefs.h
>>conftest.
$ac_ext
3713 cat >>conftest.
$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 $ac_includes_default
3719 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3726 rm -f conftest.
$ac_objext
3727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3728 (eval $ac_compile) 2>conftest.er1
3730 grep -v '^ *+' conftest.er1
>conftest.err
3732 cat conftest.err
>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } &&
3735 { ac_try
='test -z "$ac_c_werror_flag"
3736 || test ! -s conftest.err'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; } &&
3742 { ac_try
='test -s conftest.$ac_objext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.
$ac_ext >&5
3753 ac_lo
=`expr '(' $ac_mid ')' + 1`
3755 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3758 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3759 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3760 See \`config.log' for more details." >&5
3761 echo "$as_me: error: cannot compute sizeof (void *), 77
3762 See \`config.log' for more details." >&2;}
3763 { (exit 1); exit 1; }; } ;;
3766 if test "$cross_compiling" = yes; then
3767 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3768 See \`config.log' for more details." >&5
3769 echo "$as_me: error: cannot run test program while cross compiling
3770 See \`config.log' for more details." >&2;}
3771 { (exit 1); exit 1; }; }
3773 cat >conftest.
$ac_ext <<_ACEOF
3776 cat confdefs.h
>>conftest.
$ac_ext
3777 cat >>conftest.
$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 $ac_includes_default
3780 long longval () { return (long) (sizeof (void *)); }
3781 unsigned long ulongval () { return (long) (sizeof (void *)); }
3788 FILE *f = fopen ("conftest.val", "w");
3791 if (((long) (sizeof (void *))) < 0)
3793 long i = longval ();
3794 if (i != ((long) (sizeof (void *))))
3796 fprintf (f, "%ld\n", i);
3800 unsigned long i = ulongval ();
3801 if (i != ((long) (sizeof (void *))))
3803 fprintf (f, "%lu\n", i);
3805 exit (ferror (f) || fclose (f) != 0);
3811 rm -f conftest
$ac_exeext
3812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3813 (eval $ac_link) 2>&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 ac_cv_sizeof_void_p
=`cat conftest.val`
3824 echo "$as_me: program exited with status $ac_status" >&5
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.
$ac_ext >&5
3829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3830 See \`config.log' for more details." >&5
3831 echo "$as_me: error: cannot compute sizeof (void *), 77
3832 See \`config.log' for more details." >&2;}
3833 { (exit 1); exit 1; }; }
3835 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3840 ac_cv_sizeof_void_p
=0
3843 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3844 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3845 cat >>confdefs.h
<<_ACEOF
3846 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3850 echo "$as_me:$LINENO: checking for short" >&5
3851 echo $ECHO_N "checking for short... $ECHO_C" >&6
3852 if test "${ac_cv_type_short+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 cat >conftest.
$ac_ext <<_ACEOF
3858 cat confdefs.h
>>conftest.
$ac_ext
3859 cat >>conftest.
$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3861 $ac_includes_default
3873 rm -f conftest.
$ac_objext
3874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3875 (eval $ac_compile) 2>conftest.er1
3877 grep -v '^ *+' conftest.er1
>conftest.err
3879 cat conftest.err
>&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } &&
3882 { ac_try
='test -z "$ac_c_werror_flag"
3883 || test ! -s conftest.err'
3884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; } &&
3889 { ac_try
='test -s conftest.$ac_objext'
3890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; }; then
3895 ac_cv_type_short
=yes
3897 echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.
$ac_ext >&5
3902 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3904 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3905 echo "${ECHO_T}$ac_cv_type_short" >&6
3907 echo "$as_me:$LINENO: checking size of short" >&5
3908 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3909 if test "${ac_cv_sizeof_short+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 if test "$ac_cv_type_short" = yes; then
3913 # The cast to unsigned long works around a bug in the HP C Compiler
3914 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3915 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3916 # This bug is HP SR number 8606223364.
3917 if test "$cross_compiling" = yes; then
3918 # Depending upon the size, compute the lo and hi bounds.
3919 cat >conftest.
$ac_ext <<_ACEOF
3922 cat confdefs.h
>>conftest.
$ac_ext
3923 cat >>conftest.
$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 $ac_includes_default
3929 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3936 rm -f conftest.
$ac_objext
3937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3938 (eval $ac_compile) 2>conftest.er1
3940 grep -v '^ *+' conftest.er1
>conftest.err
3942 cat conftest.err
>&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); } &&
3945 { ac_try
='test -z "$ac_c_werror_flag"
3946 || test ! -s conftest.err'
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; } &&
3952 { ac_try
='test -s conftest.$ac_objext'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3960 cat >conftest.
$ac_ext <<_ACEOF
3963 cat confdefs.h
>>conftest.
$ac_ext
3964 cat >>conftest.
$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3966 $ac_includes_default
3970 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3977 rm -f conftest.
$ac_objext
3978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979 (eval $ac_compile) 2>conftest.er1
3981 grep -v '^ *+' conftest.er1
>conftest.err
3983 cat conftest.err
>&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try
='test -z "$ac_c_werror_flag"
3987 || test ! -s conftest.err'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try
='test -s conftest.$ac_objext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 ac_hi
=$ac_mid; break
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.
$ac_ext >&5
4004 ac_lo
=`expr $ac_mid + 1`
4005 if test $ac_lo -le $ac_mid; then
4009 ac_mid
=`expr 2 '*' $ac_mid + 1`
4011 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.
$ac_ext >&5
4017 cat >conftest.
$ac_ext <<_ACEOF
4020 cat confdefs.h
>>conftest.
$ac_ext
4021 cat >>conftest.
$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 $ac_includes_default
4027 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4034 rm -f conftest.
$ac_objext
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>conftest.er1
4038 grep -v '^ *+' conftest.er1
>conftest.err
4040 cat conftest.err
>&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try
='test -z "$ac_c_werror_flag"
4044 || test ! -s conftest.err'
4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; } &&
4050 { ac_try
='test -s conftest.$ac_objext'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; }; then
4058 cat >conftest.
$ac_ext <<_ACEOF
4061 cat confdefs.h
>>conftest.
$ac_ext
4062 cat >>conftest.
$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 $ac_includes_default
4068 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4075 rm -f conftest.
$ac_objext
4076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4077 (eval $ac_compile) 2>conftest.er1
4079 grep -v '^ *+' conftest.er1
>conftest.err
4081 cat conftest.err
>&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } &&
4084 { ac_try
='test -z "$ac_c_werror_flag"
4085 || test ! -s conftest.err'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; } &&
4091 { ac_try
='test -s conftest.$ac_objext'
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4097 ac_lo
=$ac_mid; break
4099 echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.
$ac_ext >&5
4102 ac_hi
=`expr '(' $ac_mid ')' - 1`
4103 if test $ac_mid -le $ac_hi; then
4107 ac_mid
=`expr 2 '*' $ac_mid`
4109 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.
$ac_ext >&5
4117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4119 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4120 # Binary search between lo and hi bounds.
4121 while test "x$ac_lo" != "x$ac_hi"; do
4122 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4123 cat >conftest.
$ac_ext <<_ACEOF
4126 cat confdefs.h
>>conftest.
$ac_ext
4127 cat >>conftest.
$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 $ac_includes_default
4133 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4140 rm -f conftest.
$ac_objext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4142 (eval $ac_compile) 2>conftest.er1
4144 grep -v '^ *+' conftest.er1
>conftest.err
4146 cat conftest.err
>&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try
='test -z "$ac_c_werror_flag"
4150 || test ! -s conftest.err'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try
='test -s conftest.$ac_objext'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.
$ac_ext >&5
4167 ac_lo
=`expr '(' $ac_mid ')' + 1`
4169 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4172 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4173 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4174 See \`config.log' for more details." >&5
4175 echo "$as_me: error: cannot compute sizeof (short), 77
4176 See \`config.log' for more details." >&2;}
4177 { (exit 1); exit 1; }; } ;;
4180 if test "$cross_compiling" = yes; then
4181 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4182 See \`config.log' for more details." >&5
4183 echo "$as_me: error: cannot run test program while cross compiling
4184 See \`config.log' for more details." >&2;}
4185 { (exit 1); exit 1; }; }
4187 cat >conftest.
$ac_ext <<_ACEOF
4190 cat confdefs.h
>>conftest.
$ac_ext
4191 cat >>conftest.
$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 $ac_includes_default
4194 long longval () { return (long) (sizeof (short)); }
4195 unsigned long ulongval () { return (long) (sizeof (short)); }
4202 FILE *f = fopen ("conftest.val", "w");
4205 if (((long) (sizeof (short))) < 0)
4207 long i = longval ();
4208 if (i != ((long) (sizeof (short))))
4210 fprintf (f, "%ld\n", i);
4214 unsigned long i = ulongval ();
4215 if (i != ((long) (sizeof (short))))
4217 fprintf (f, "%lu\n", i);
4219 exit (ferror (f) || fclose (f) != 0);
4225 rm -f conftest
$ac_exeext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4227 (eval $ac_link) 2>&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 ac_cv_sizeof_short
=`cat conftest.val`
4238 echo "$as_me: program exited with status $ac_status" >&5
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.
$ac_ext >&5
4243 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4244 See \`config.log' for more details." >&5
4245 echo "$as_me: error: cannot compute sizeof (short), 77
4246 See \`config.log' for more details." >&2;}
4247 { (exit 1); exit 1; }; }
4249 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4254 ac_cv_sizeof_short
=0
4257 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4258 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4259 cat >>confdefs.h
<<_ACEOF
4260 #define SIZEOF_SHORT $ac_cv_sizeof_short
4264 echo "$as_me:$LINENO: checking for int" >&5
4265 echo $ECHO_N "checking for int... $ECHO_C" >&6
4266 if test "${ac_cv_type_int+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 cat >conftest.
$ac_ext <<_ACEOF
4272 cat confdefs.h
>>conftest.
$ac_ext
4273 cat >>conftest.
$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4275 $ac_includes_default
4287 rm -f conftest.
$ac_objext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>conftest.er1
4291 grep -v '^ *+' conftest.er1
>conftest.err
4293 cat conftest.err
>&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try
='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try
='test -s conftest.$ac_objext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.
$ac_ext >&5
4316 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4318 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4319 echo "${ECHO_T}$ac_cv_type_int" >&6
4321 echo "$as_me:$LINENO: checking size of int" >&5
4322 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4323 if test "${ac_cv_sizeof_int+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 if test "$ac_cv_type_int" = yes; then
4327 # The cast to unsigned long works around a bug in the HP C Compiler
4328 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4329 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4330 # This bug is HP SR number 8606223364.
4331 if test "$cross_compiling" = yes; then
4332 # Depending upon the size, compute the lo and hi bounds.
4333 cat >conftest.
$ac_ext <<_ACEOF
4336 cat confdefs.h
>>conftest.
$ac_ext
4337 cat >>conftest.
$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4339 $ac_includes_default
4343 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4350 rm -f conftest.
$ac_objext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4352 (eval $ac_compile) 2>conftest.er1
4354 grep -v '^ *+' conftest.er1
>conftest.err
4356 cat conftest.err
>&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try
='test -z "$ac_c_werror_flag"
4360 || test ! -s conftest.err'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; } &&
4366 { ac_try
='test -s conftest.$ac_objext'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4374 cat >conftest.
$ac_ext <<_ACEOF
4377 cat confdefs.h
>>conftest.
$ac_ext
4378 cat >>conftest.
$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 $ac_includes_default
4384 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4391 rm -f conftest.
$ac_objext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>conftest.er1
4395 grep -v '^ *+' conftest.er1
>conftest.err
4397 cat conftest.err
>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try
='test -z "$ac_c_werror_flag"
4401 || test ! -s conftest.err'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; } &&
4407 { ac_try
='test -s conftest.$ac_objext'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; }; then
4413 ac_hi
=$ac_mid; break
4415 echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.
$ac_ext >&5
4418 ac_lo
=`expr $ac_mid + 1`
4419 if test $ac_lo -le $ac_mid; then
4423 ac_mid
=`expr 2 '*' $ac_mid + 1`
4425 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.
$ac_ext >&5
4431 cat >conftest.
$ac_ext <<_ACEOF
4434 cat confdefs.h
>>conftest.
$ac_ext
4435 cat >>conftest.
$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 $ac_includes_default
4441 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4448 rm -f conftest.
$ac_objext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>conftest.er1
4452 grep -v '^ *+' conftest.er1
>conftest.err
4454 cat conftest.err
>&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try
='test -z "$ac_c_werror_flag"
4458 || test ! -s conftest.err'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; } &&
4464 { ac_try
='test -s conftest.$ac_objext'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4472 cat >conftest.
$ac_ext <<_ACEOF
4475 cat confdefs.h
>>conftest.
$ac_ext
4476 cat >>conftest.
$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 $ac_includes_default
4482 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4489 rm -f conftest.
$ac_objext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491 (eval $ac_compile) 2>conftest.er1
4493 grep -v '^ *+' conftest.er1
>conftest.err
4495 cat conftest.err
>&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } &&
4498 { ac_try
='test -z "$ac_c_werror_flag"
4499 || test ! -s conftest.err'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try
='test -s conftest.$ac_objext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 ac_lo
=$ac_mid; break
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.
$ac_ext >&5
4516 ac_hi
=`expr '(' $ac_mid ')' - 1`
4517 if test $ac_mid -le $ac_hi; then
4521 ac_mid
=`expr 2 '*' $ac_mid`
4523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4526 echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.
$ac_ext >&5
4531 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4533 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4534 # Binary search between lo and hi bounds.
4535 while test "x$ac_lo" != "x$ac_hi"; do
4536 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4537 cat >conftest.
$ac_ext <<_ACEOF
4540 cat confdefs.h
>>conftest.
$ac_ext
4541 cat >>conftest.
$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4543 $ac_includes_default
4547 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4554 rm -f conftest.
$ac_objext
4555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556 (eval $ac_compile) 2>conftest.er1
4558 grep -v '^ *+' conftest.er1
>conftest.err
4560 cat conftest.err
>&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try
='test -z "$ac_c_werror_flag"
4564 || test ! -s conftest.err'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; } &&
4570 { ac_try
='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.
$ac_ext >&5
4581 ac_lo
=`expr '(' $ac_mid ')' + 1`
4583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4586 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4587 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4588 See \`config.log' for more details." >&5
4589 echo "$as_me: error: cannot compute sizeof (int), 77
4590 See \`config.log' for more details." >&2;}
4591 { (exit 1); exit 1; }; } ;;
4594 if test "$cross_compiling" = yes; then
4595 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4596 See \`config.log' for more details." >&5
4597 echo "$as_me: error: cannot run test program while cross compiling
4598 See \`config.log' for more details." >&2;}
4599 { (exit 1); exit 1; }; }
4601 cat >conftest.
$ac_ext <<_ACEOF
4604 cat confdefs.h
>>conftest.
$ac_ext
4605 cat >>conftest.
$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 $ac_includes_default
4608 long longval () { return (long) (sizeof (int)); }
4609 unsigned long ulongval () { return (long) (sizeof (int)); }
4616 FILE *f = fopen ("conftest.val", "w");
4619 if (((long) (sizeof (int))) < 0)
4621 long i = longval ();
4622 if (i != ((long) (sizeof (int))))
4624 fprintf (f, "%ld\n", i);
4628 unsigned long i = ulongval ();
4629 if (i != ((long) (sizeof (int))))
4631 fprintf (f, "%lu\n", i);
4633 exit (ferror (f) || fclose (f) != 0);
4639 rm -f conftest
$ac_exeext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4641 (eval $ac_link) 2>&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 ac_cv_sizeof_int
=`cat conftest.val`
4652 echo "$as_me: program exited with status $ac_status" >&5
4653 echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.
$ac_ext >&5
4657 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4658 See \`config.log' for more details." >&5
4659 echo "$as_me: error: cannot compute sizeof (int), 77
4660 See \`config.log' for more details." >&2;}
4661 { (exit 1); exit 1; }; }
4663 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4671 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4672 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4673 cat >>confdefs.h
<<_ACEOF
4674 #define SIZEOF_INT $ac_cv_sizeof_int
4678 echo "$as_me:$LINENO: checking for long" >&5
4679 echo $ECHO_N "checking for long... $ECHO_C" >&6
4680 if test "${ac_cv_type_long+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 cat >conftest.
$ac_ext <<_ACEOF
4686 cat confdefs.h
>>conftest.
$ac_ext
4687 cat >>conftest.
$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4689 $ac_includes_default
4701 rm -f conftest.
$ac_objext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4703 (eval $ac_compile) 2>conftest.er1
4705 grep -v '^ *+' conftest.er1
>conftest.err
4707 cat conftest.err
>&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try
='test -z "$ac_c_werror_flag"
4711 || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try
='test -s conftest.$ac_objext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.
$ac_ext >&5
4730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4732 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4733 echo "${ECHO_T}$ac_cv_type_long" >&6
4735 echo "$as_me:$LINENO: checking size of long" >&5
4736 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4737 if test "${ac_cv_sizeof_long+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 if test "$ac_cv_type_long" = yes; then
4741 # The cast to unsigned long works around a bug in the HP C Compiler
4742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4744 # This bug is HP SR number 8606223364.
4745 if test "$cross_compiling" = yes; then
4746 # Depending upon the size, compute the lo and hi bounds.
4747 cat >conftest.
$ac_ext <<_ACEOF
4750 cat confdefs.h
>>conftest.
$ac_ext
4751 cat >>conftest.
$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 $ac_includes_default
4757 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4764 rm -f conftest.
$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>conftest.er1
4768 grep -v '^ *+' conftest.er1
>conftest.err
4770 cat conftest.err
>&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try
='test -z "$ac_c_werror_flag"
4774 || test ! -s conftest.err'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; } &&
4780 { ac_try
='test -s conftest.$ac_objext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4788 cat >conftest.
$ac_ext <<_ACEOF
4791 cat confdefs.h
>>conftest.
$ac_ext
4792 cat >>conftest.
$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4794 $ac_includes_default
4798 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4805 rm -f conftest.
$ac_objext
4806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4807 (eval $ac_compile) 2>conftest.er1
4809 grep -v '^ *+' conftest.er1
>conftest.err
4811 cat conftest.err
>&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } &&
4814 { ac_try
='test -z "$ac_c_werror_flag"
4815 || test ! -s conftest.err'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; } &&
4821 { ac_try
='test -s conftest.$ac_objext'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 ac_hi
=$ac_mid; break
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.
$ac_ext >&5
4832 ac_lo
=`expr $ac_mid + 1`
4833 if test $ac_lo -le $ac_mid; then
4837 ac_mid
=`expr 2 '*' $ac_mid + 1`
4839 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.
$ac_ext >&5
4845 cat >conftest.
$ac_ext <<_ACEOF
4848 cat confdefs.h
>>conftest.
$ac_ext
4849 cat >>conftest.
$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4851 $ac_includes_default
4855 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4862 rm -f conftest.
$ac_objext
4863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4864 (eval $ac_compile) 2>conftest.er1
4866 grep -v '^ *+' conftest.er1
>conftest.err
4868 cat conftest.err
>&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } &&
4871 { ac_try
='test -z "$ac_c_werror_flag"
4872 || test ! -s conftest.err'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; } &&
4878 { ac_try
='test -s conftest.$ac_objext'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4886 cat >conftest.
$ac_ext <<_ACEOF
4889 cat confdefs.h
>>conftest.
$ac_ext
4890 cat >>conftest.
$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4892 $ac_includes_default
4896 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4903 rm -f conftest.
$ac_objext
4904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4905 (eval $ac_compile) 2>conftest.er1
4907 grep -v '^ *+' conftest.er1
>conftest.err
4909 cat conftest.err
>&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } &&
4912 { ac_try
='test -z "$ac_c_werror_flag"
4913 || test ! -s conftest.err'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; } &&
4919 { ac_try
='test -s conftest.$ac_objext'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; }; then
4925 ac_lo
=$ac_mid; break
4927 echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.
$ac_ext >&5
4930 ac_hi
=`expr '(' $ac_mid ')' - 1`
4931 if test $ac_mid -le $ac_hi; then
4935 ac_mid
=`expr 2 '*' $ac_mid`
4937 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4940 echo "$as_me: failed program was:" >&5
4941 sed 's/^/| /' conftest.
$ac_ext >&5
4945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4947 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4948 # Binary search between lo and hi bounds.
4949 while test "x$ac_lo" != "x$ac_hi"; do
4950 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4951 cat >conftest.
$ac_ext <<_ACEOF
4954 cat confdefs.h
>>conftest.
$ac_ext
4955 cat >>conftest.
$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4957 $ac_includes_default
4961 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4968 rm -f conftest.
$ac_objext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4970 (eval $ac_compile) 2>conftest.er1
4972 grep -v '^ *+' conftest.er1
>conftest.err
4974 cat conftest.err
>&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try
='test -z "$ac_c_werror_flag"
4978 || test ! -s conftest.err'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; } &&
4984 { ac_try
='test -s conftest.$ac_objext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.
$ac_ext >&5
4995 ac_lo
=`expr '(' $ac_mid ')' + 1`
4997 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5000 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5001 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5002 See \`config.log' for more details." >&5
5003 echo "$as_me: error: cannot compute sizeof (long), 77
5004 See \`config.log' for more details." >&2;}
5005 { (exit 1); exit 1; }; } ;;
5008 if test "$cross_compiling" = yes; then
5009 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5010 See \`config.log' for more details." >&5
5011 echo "$as_me: error: cannot run test program while cross compiling
5012 See \`config.log' for more details." >&2;}
5013 { (exit 1); exit 1; }; }
5015 cat >conftest.
$ac_ext <<_ACEOF
5018 cat confdefs.h
>>conftest.
$ac_ext
5019 cat >>conftest.
$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 $ac_includes_default
5022 long longval () { return (long) (sizeof (long)); }
5023 unsigned long ulongval () { return (long) (sizeof (long)); }
5030 FILE *f = fopen ("conftest.val", "w");
5033 if (((long) (sizeof (long))) < 0)
5035 long i = longval ();
5036 if (i != ((long) (sizeof (long))))
5038 fprintf (f, "%ld\n", i);
5042 unsigned long i = ulongval ();
5043 if (i != ((long) (sizeof (long))))
5045 fprintf (f, "%lu\n", i);
5047 exit (ferror (f) || fclose (f) != 0);
5053 rm -f conftest
$ac_exeext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5055 (eval $ac_link) 2>&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; }; then
5064 ac_cv_sizeof_long
=`cat conftest.val`
5066 echo "$as_me: program exited with status $ac_status" >&5
5067 echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.
$ac_ext >&5
5071 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5072 See \`config.log' for more details." >&5
5073 echo "$as_me: error: cannot compute sizeof (long), 77
5074 See \`config.log' for more details." >&2;}
5075 { (exit 1); exit 1; }; }
5077 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5085 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5086 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5087 cat >>confdefs.h
<<_ACEOF
5088 #define SIZEOF_LONG $ac_cv_sizeof_long
5092 echo "$as_me:$LINENO: checking for long long" >&5
5093 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5094 if test "${ac_cv_type_long_long+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 cat >conftest.
$ac_ext <<_ACEOF
5100 cat confdefs.h
>>conftest.
$ac_ext
5101 cat >>conftest.
$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 $ac_includes_default
5107 if ((long long *) 0)
5109 if (sizeof (long long))
5115 rm -f conftest.
$ac_objext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117 (eval $ac_compile) 2>conftest.er1
5119 grep -v '^ *+' conftest.er1
>conftest.err
5121 cat conftest.err
>&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } &&
5124 { ac_try
='test -z "$ac_c_werror_flag"
5125 || test ! -s conftest.err'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; } &&
5131 { ac_try
='test -s conftest.$ac_objext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5137 ac_cv_type_long_long
=yes
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.
$ac_ext >&5
5142 ac_cv_type_long_long
=no
5144 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5146 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5147 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5148 if test $ac_cv_type_long_long = yes; then
5150 cat >>confdefs.h
<<_ACEOF
5151 #define HAVE_LONG_LONG 1
5154 echo "$as_me:$LINENO: checking for long long" >&5
5155 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5156 if test "${ac_cv_type_long_long+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 cat >conftest.
$ac_ext <<_ACEOF
5162 cat confdefs.h
>>conftest.
$ac_ext
5163 cat >>conftest.
$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 $ac_includes_default
5169 if ((long long *) 0)
5171 if (sizeof (long long))
5177 rm -f conftest.
$ac_objext
5178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5179 (eval $ac_compile) 2>conftest.er1
5181 grep -v '^ *+' conftest.er1
>conftest.err
5183 cat conftest.err
>&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } &&
5186 { ac_try
='test -z "$ac_c_werror_flag"
5187 || test ! -s conftest.err'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; } &&
5193 { ac_try
='test -s conftest.$ac_objext'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5199 ac_cv_type_long_long
=yes
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.
$ac_ext >&5
5204 ac_cv_type_long_long
=no
5206 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5208 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5209 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5211 echo "$as_me:$LINENO: checking size of long long" >&5
5212 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5213 if test "${ac_cv_sizeof_long_long+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 if test "$ac_cv_type_long_long" = yes; then
5217 # The cast to unsigned long works around a bug in the HP C Compiler
5218 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5219 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5220 # This bug is HP SR number 8606223364.
5221 if test "$cross_compiling" = yes; then
5222 # Depending upon the size, compute the lo and hi bounds.
5223 cat >conftest.
$ac_ext <<_ACEOF
5226 cat confdefs.h
>>conftest.
$ac_ext
5227 cat >>conftest.
$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5229 $ac_includes_default
5233 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5240 rm -f conftest.
$ac_objext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5242 (eval $ac_compile) 2>conftest.er1
5244 grep -v '^ *+' conftest.er1
>conftest.err
5246 cat conftest.err
>&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
5249 { ac_try
='test -z "$ac_c_werror_flag"
5250 || test ! -s conftest.err'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; } &&
5256 { ac_try
='test -s conftest.$ac_objext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5264 cat >conftest.
$ac_ext <<_ACEOF
5267 cat confdefs.h
>>conftest.
$ac_ext
5268 cat >>conftest.
$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5270 $ac_includes_default
5274 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5281 rm -f conftest.
$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>conftest.er1
5285 grep -v '^ *+' conftest.er1
>conftest.err
5287 cat conftest.err
>&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try
='test -z "$ac_c_werror_flag"
5291 || test ! -s conftest.err'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; } &&
5297 { ac_try
='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_hi
=$ac_mid; break
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.
$ac_ext >&5
5308 ac_lo
=`expr $ac_mid + 1`
5309 if test $ac_lo -le $ac_mid; then
5313 ac_mid
=`expr 2 '*' $ac_mid + 1`
5315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.
$ac_ext >&5
5321 cat >conftest.
$ac_ext <<_ACEOF
5324 cat confdefs.h
>>conftest.
$ac_ext
5325 cat >>conftest.
$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 $ac_includes_default
5331 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5338 rm -f conftest.
$ac_objext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340 (eval $ac_compile) 2>conftest.er1
5342 grep -v '^ *+' conftest.er1
>conftest.err
5344 cat conftest.err
>&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try
='test -z "$ac_c_werror_flag"
5348 || test ! -s conftest.err'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; } &&
5354 { ac_try
='test -s conftest.$ac_objext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5362 cat >conftest.
$ac_ext <<_ACEOF
5365 cat confdefs.h
>>conftest.
$ac_ext
5366 cat >>conftest.
$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 $ac_includes_default
5372 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5379 rm -f conftest.
$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381 (eval $ac_compile) 2>conftest.er1
5383 grep -v '^ *+' conftest.er1
>conftest.err
5385 cat conftest.err
>&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } &&
5388 { ac_try
='test -z "$ac_c_werror_flag"
5389 || test ! -s conftest.err'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; } &&
5395 { ac_try
='test -s conftest.$ac_objext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5401 ac_lo
=$ac_mid; break
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.
$ac_ext >&5
5406 ac_hi
=`expr '(' $ac_mid ')' - 1`
5407 if test $ac_mid -le $ac_hi; then
5411 ac_mid
=`expr 2 '*' $ac_mid`
5413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5416 echo "$as_me: failed program was:" >&5
5417 sed 's/^/| /' conftest.
$ac_ext >&5
5421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5424 # Binary search between lo and hi bounds.
5425 while test "x$ac_lo" != "x$ac_hi"; do
5426 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5427 cat >conftest.
$ac_ext <<_ACEOF
5430 cat confdefs.h
>>conftest.
$ac_ext
5431 cat >>conftest.
$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 $ac_includes_default
5437 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5444 rm -f conftest.
$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446 (eval $ac_compile) 2>conftest.er1
5448 grep -v '^ *+' conftest.er1
>conftest.err
5450 cat conftest.err
>&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } &&
5453 { ac_try
='test -z "$ac_c_werror_flag"
5454 || test ! -s conftest.err'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; } &&
5460 { ac_try
='test -s conftest.$ac_objext'
5461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; }; then
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.
$ac_ext >&5
5471 ac_lo
=`expr '(' $ac_mid ')' + 1`
5473 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5476 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5477 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5478 See \`config.log' for more details." >&5
5479 echo "$as_me: error: cannot compute sizeof (long long), 77
5480 See \`config.log' for more details." >&2;}
5481 { (exit 1); exit 1; }; } ;;
5484 if test "$cross_compiling" = yes; then
5485 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5486 See \`config.log' for more details." >&5
5487 echo "$as_me: error: cannot run test program while cross compiling
5488 See \`config.log' for more details." >&2;}
5489 { (exit 1); exit 1; }; }
5491 cat >conftest.
$ac_ext <<_ACEOF
5494 cat confdefs.h
>>conftest.
$ac_ext
5495 cat >>conftest.
$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497 $ac_includes_default
5498 long longval () { return (long) (sizeof (long long)); }
5499 unsigned long ulongval () { return (long) (sizeof (long long)); }
5506 FILE *f = fopen ("conftest.val", "w");
5509 if (((long) (sizeof (long long))) < 0)
5511 long i = longval ();
5512 if (i != ((long) (sizeof (long long))))
5514 fprintf (f, "%ld\n", i);
5518 unsigned long i = ulongval ();
5519 if (i != ((long) (sizeof (long long))))
5521 fprintf (f, "%lu\n", i);
5523 exit (ferror (f) || fclose (f) != 0);
5529 rm -f conftest
$ac_exeext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5531 (eval $ac_link) 2>&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 ac_cv_sizeof_long_long
=`cat conftest.val`
5542 echo "$as_me: program exited with status $ac_status" >&5
5543 echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.
$ac_ext >&5
5547 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5548 See \`config.log' for more details." >&5
5549 echo "$as_me: error: cannot compute sizeof (long long), 77
5550 See \`config.log' for more details." >&2;}
5551 { (exit 1); exit 1; }; }
5553 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5558 ac_cv_sizeof_long_long
=0
5561 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5562 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5563 cat >>confdefs.h
<<_ACEOF
5564 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5570 echo "$as_me:$LINENO: checking for __int64" >&5
5571 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5572 if test "${ac_cv_type___int64+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 cat >conftest.
$ac_ext <<_ACEOF
5578 cat confdefs.h
>>conftest.
$ac_ext
5579 cat >>conftest.
$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 $ac_includes_default
5587 if (sizeof (__int64))
5593 rm -f conftest.
$ac_objext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595 (eval $ac_compile) 2>conftest.er1
5597 grep -v '^ *+' conftest.er1
>conftest.err
5599 cat conftest.err
>&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try
='test -z "$ac_c_werror_flag"
5603 || test ! -s conftest.err'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; } &&
5609 { ac_try
='test -s conftest.$ac_objext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_type___int64
=yes
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.
$ac_ext >&5
5620 ac_cv_type___int64
=no
5622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5624 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5625 echo "${ECHO_T}$ac_cv_type___int64" >&6
5626 if test $ac_cv_type___int64 = yes; then
5628 cat >>confdefs.h
<<_ACEOF
5629 #define HAVE___INT64 1
5632 echo "$as_me:$LINENO: checking for __int64" >&5
5633 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5634 if test "${ac_cv_type___int64+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 cat >conftest.
$ac_ext <<_ACEOF
5640 cat confdefs.h
>>conftest.
$ac_ext
5641 cat >>conftest.
$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643 $ac_includes_default
5649 if (sizeof (__int64))
5655 rm -f conftest.
$ac_objext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657 (eval $ac_compile) 2>conftest.er1
5659 grep -v '^ *+' conftest.er1
>conftest.err
5661 cat conftest.err
>&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try
='test -z "$ac_c_werror_flag"
5665 || test ! -s conftest.err'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; } &&
5671 { ac_try
='test -s conftest.$ac_objext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 ac_cv_type___int64
=yes
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.
$ac_ext >&5
5682 ac_cv_type___int64
=no
5684 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5686 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5687 echo "${ECHO_T}$ac_cv_type___int64" >&6
5689 echo "$as_me:$LINENO: checking size of __int64" >&5
5690 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5691 if test "${ac_cv_sizeof___int64+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 if test "$ac_cv_type___int64" = yes; then
5695 # The cast to unsigned long works around a bug in the HP C Compiler
5696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5698 # This bug is HP SR number 8606223364.
5699 if test "$cross_compiling" = yes; then
5700 # Depending upon the size, compute the lo and hi bounds.
5701 cat >conftest.
$ac_ext <<_ACEOF
5704 cat confdefs.h
>>conftest.
$ac_ext
5705 cat >>conftest.
$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5707 $ac_includes_default
5711 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5718 rm -f conftest.
$ac_objext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5720 (eval $ac_compile) 2>conftest.er1
5722 grep -v '^ *+' conftest.er1
>conftest.err
5724 cat conftest.err
>&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
5727 { ac_try
='test -z "$ac_c_werror_flag"
5728 || test ! -s conftest.err'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; } &&
5734 { ac_try
='test -s conftest.$ac_objext'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; }; then
5742 cat >conftest.
$ac_ext <<_ACEOF
5745 cat confdefs.h
>>conftest.
$ac_ext
5746 cat >>conftest.
$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5748 $ac_includes_default
5752 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5759 rm -f conftest.
$ac_objext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761 (eval $ac_compile) 2>conftest.er1
5763 grep -v '^ *+' conftest.er1
>conftest.err
5765 cat conftest.err
>&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } &&
5768 { ac_try
='test -z "$ac_c_werror_flag"
5769 || test ! -s conftest.err'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; } &&
5775 { ac_try
='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 ac_hi
=$ac_mid; break
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.
$ac_ext >&5
5786 ac_lo
=`expr $ac_mid + 1`
5787 if test $ac_lo -le $ac_mid; then
5791 ac_mid
=`expr 2 '*' $ac_mid + 1`
5793 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.
$ac_ext >&5
5799 cat >conftest.
$ac_ext <<_ACEOF
5802 cat confdefs.h
>>conftest.
$ac_ext
5803 cat >>conftest.
$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 $ac_includes_default
5809 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5816 rm -f conftest.
$ac_objext
5817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5818 (eval $ac_compile) 2>conftest.er1
5820 grep -v '^ *+' conftest.er1
>conftest.err
5822 cat conftest.err
>&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try
='test -z "$ac_c_werror_flag"
5826 || test ! -s conftest.err'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; } &&
5832 { ac_try
='test -s conftest.$ac_objext'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; }; then
5840 cat >conftest.
$ac_ext <<_ACEOF
5843 cat confdefs.h
>>conftest.
$ac_ext
5844 cat >>conftest.
$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 $ac_includes_default
5850 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5857 rm -f conftest.
$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>conftest.er1
5861 grep -v '^ *+' conftest.er1
>conftest.err
5863 cat conftest.err
>&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } &&
5866 { ac_try
='test -z "$ac_c_werror_flag"
5867 || test ! -s conftest.err'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try
='test -s conftest.$ac_objext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_lo
=$ac_mid; break
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.
$ac_ext >&5
5884 ac_hi
=`expr '(' $ac_mid ')' - 1`
5885 if test $ac_mid -le $ac_hi; then
5889 ac_mid
=`expr 2 '*' $ac_mid`
5891 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.
$ac_ext >&5
5899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5902 # Binary search between lo and hi bounds.
5903 while test "x$ac_lo" != "x$ac_hi"; do
5904 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5905 cat >conftest.
$ac_ext <<_ACEOF
5908 cat confdefs.h
>>conftest.
$ac_ext
5909 cat >>conftest.
$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 $ac_includes_default
5915 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5922 rm -f conftest.
$ac_objext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5924 (eval $ac_compile) 2>conftest.er1
5926 grep -v '^ *+' conftest.er1
>conftest.err
5928 cat conftest.err
>&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try
='test -z "$ac_c_werror_flag"
5932 || test ! -s conftest.err'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; } &&
5938 { ac_try
='test -s conftest.$ac_objext'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; }; then
5946 echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.
$ac_ext >&5
5949 ac_lo
=`expr '(' $ac_mid ')' + 1`
5951 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5954 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5955 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5956 See \`config.log' for more details." >&5
5957 echo "$as_me: error: cannot compute sizeof (__int64), 77
5958 See \`config.log' for more details." >&2;}
5959 { (exit 1); exit 1; }; } ;;
5962 if test "$cross_compiling" = yes; then
5963 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5964 See \`config.log' for more details." >&5
5965 echo "$as_me: error: cannot run test program while cross compiling
5966 See \`config.log' for more details." >&2;}
5967 { (exit 1); exit 1; }; }
5969 cat >conftest.
$ac_ext <<_ACEOF
5972 cat confdefs.h
>>conftest.
$ac_ext
5973 cat >>conftest.
$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5975 $ac_includes_default
5976 long longval () { return (long) (sizeof (__int64)); }
5977 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5984 FILE *f = fopen ("conftest.val", "w");
5987 if (((long) (sizeof (__int64))) < 0)
5989 long i = longval ();
5990 if (i != ((long) (sizeof (__int64))))
5992 fprintf (f, "%ld\n", i);
5996 unsigned long i = ulongval ();
5997 if (i != ((long) (sizeof (__int64))))
5999 fprintf (f, "%lu\n", i);
6001 exit (ferror (f) || fclose (f) != 0);
6007 rm -f conftest
$ac_exeext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6009 (eval $ac_link) 2>&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; }; then
6018 ac_cv_sizeof___int64
=`cat conftest.val`
6020 echo "$as_me: program exited with status $ac_status" >&5
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.
$ac_ext >&5
6025 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6026 See \`config.log' for more details." >&5
6027 echo "$as_me: error: cannot compute sizeof (__int64), 77
6028 See \`config.log' for more details." >&2;}
6029 { (exit 1); exit 1; }; }
6031 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6036 ac_cv_sizeof___int64
=0
6039 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6040 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6041 cat >>confdefs.h
<<_ACEOF
6042 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6049 # ---------------------
6050 # Warnings and checking
6051 # ---------------------
6053 # Check $CC warning features (if it's GCC).
6054 # We want to use -pedantic, but we don't want warnings about
6057 # So, we only use -pedantic if we can disable those warnings.
6059 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6060 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6061 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 save_CFLAGS
="$CFLAGS"
6065 CFLAGS
="-Wno-long-long"
6066 cat >conftest.
$ac_ext <<_ACEOF
6069 cat confdefs.h
>>conftest.
$ac_ext
6070 cat >>conftest.
$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6074 rm -f conftest.
$ac_objext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076 (eval $ac_compile) 2>conftest.er1
6078 grep -v '^ *+' conftest.er1
>conftest.err
6080 cat conftest.err
>&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try
='test -z "$ac_c_werror_flag"
6084 || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try
='test -s conftest.$ac_objext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_prog_cc_w_no_long_long
=yes
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.
$ac_ext >&5
6101 ac_cv_prog_cc_w_no_long_long
=no
6103 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6104 CFLAGS
="$save_CFLAGS"
6107 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6108 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6110 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6111 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6112 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 save_CFLAGS
="$CFLAGS"
6116 CFLAGS
="-Wno-variadic-macros"
6117 cat >conftest.
$ac_ext <<_ACEOF
6120 cat confdefs.h
>>conftest.
$ac_ext
6121 cat >>conftest.
$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6125 rm -f conftest.
$ac_objext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127 (eval $ac_compile) 2>conftest.er1
6129 grep -v '^ *+' conftest.er1
>conftest.err
6131 cat conftest.err
>&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try
='test -z "$ac_c_werror_flag"
6135 || test ! -s conftest.err'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try
='test -s conftest.$ac_objext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 ac_cv_prog_cc_w_no_variadic_macros
=yes
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.
$ac_ext >&5
6152 ac_cv_prog_cc_w_no_variadic_macros
=no
6154 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6155 CFLAGS
="$save_CFLAGS"
6158 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6159 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6162 if test $ac_cv_prog_cc_w_no_long_long = yes \
6163 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6164 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6168 # Add -Wold-style-definition if it's accepted
6169 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6170 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6171 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 save_CFLAGS
="$CFLAGS"
6175 CFLAGS
="-Wold-style-definition"
6176 cat >conftest.
$ac_ext <<_ACEOF
6179 cat confdefs.h
>>conftest.
$ac_ext
6180 cat >>conftest.
$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6184 rm -f conftest.
$ac_objext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6186 (eval $ac_compile) 2>conftest.er1
6188 grep -v '^ *+' conftest.er1
>conftest.err
6190 cat conftest.err
>&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } &&
6193 { ac_try
='test -z "$ac_c_werror_flag"
6194 || test ! -s conftest.err'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; } &&
6200 { ac_try
='test -s conftest.$ac_objext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 ac_cv_prog_cc_w_old_style_definition
=yes
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.
$ac_ext >&5
6211 ac_cv_prog_cc_w_old_style_definition
=no
6213 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6214 CFLAGS
="$save_CFLAGS"
6217 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6218 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6219 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6220 strict1_warn
="${strict1_warn} -Wold-style-definition"
6223 # Enable -Werror, period.
6224 # Check whether --enable-werror_always or --disable-werror_always was given.
6225 if test "${enable_werror_always+set}" = set; then
6226 enableval
="$enable_werror_always"
6229 enable_werror_always
=no
6231 if test x
${enable_werror_always} = xyes
; then
6232 strict1_warn
="${strict1_warn} -Werror"
6236 # If the native compiler is GCC, we can enable warnings even in stage1.
6237 # That's useful for people building cross-compilers, or just running a
6240 if test "x$GCC" = "xyes"; then
6241 warn_cflags
='$(GCC_WARN_CFLAGS)'
6245 # Enable -Werror in bootstrap stage2 and later.
6247 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6250 # Check whether --enable-werror or --disable-werror was given.
6251 if test "${enable_werror+set}" = set; then
6252 enableval
="$enable_werror"
6255 if test x
$is_release = x
; then
6256 # Default to "yes" on development branches.
6259 # Default to "no" on release branches.
6263 if test x
$enable_werror = xyes
; then
6268 # Enable expensive internal checks
6269 # Check whether --enable-checking or --disable-checking was given.
6270 if test "${enable_checking+set}" = set; then
6271 enableval
="$enable_checking"
6272 ac_checking_flags
="${enableval}"
6275 # Determine the default checks.
6276 if test x
$is_release = x
; then
6277 ac_checking_flags
=yes
6279 ac_checking_flags
=release
6282 ac_assert_checking
=1
6286 ac_gc_always_collect
=
6288 ac_rtlflag_checking
=
6289 ac_runtime_checking
=1
6291 ac_valgrind_checking
=
6292 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6293 for check
in $ac_checking_flags
6296 # these set all the flags to specific states
6297 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6298 ac_fold_checking
= ; ac_gc_checking
=1 ;
6299 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6300 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6301 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6302 no|none
) ac_assert_checking
= ; ac_checking
= ;
6303 ac_fold_checking
= ; ac_gc_checking
= ;
6304 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6305 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6306 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6307 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6308 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6309 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6310 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6311 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6312 release
) ac_assert_checking
=1 ; ac_checking
= ;
6313 ac_fold_checking
= ; ac_gc_checking
= ;
6314 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6315 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6316 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6317 # these enable particular checks
6318 assert
) ac_assert_checking
=1 ;;
6319 fold) ac_fold_checking
=1 ;;
6320 gc
) ac_gc_checking
=1 ;;
6321 gcac
) ac_gc_always_collect
=1 ;;
6322 misc
) ac_checking
=1 ;;
6323 rtl
) ac_rtl_checking
=1 ;;
6324 rtlflag
) ac_rtlflag_checking
=1 ;;
6325 runtime
) ac_runtime_checking
=1 ;;
6326 tree
) ac_tree_checking
=1 ;;
6327 valgrind
) ac_valgrind_checking
=1 ;;
6328 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6329 echo "$as_me: error: unknown check category $check" >&2;}
6330 { (exit 1); exit 1; }; } ;;
6336 if test x
$ac_checking != x
; then
6338 cat >>confdefs.h
<<\_ACEOF
6339 #define ENABLE_CHECKING 1
6342 nocommon_flag
=-fno-common
6345 if test x
$ac_assert_checking != x
; then
6347 cat >>confdefs.h
<<\_ACEOF
6348 #define ENABLE_ASSERT_CHECKING 1
6353 if test x
$ac_runtime_checking != x
; then
6355 cat >>confdefs.h
<<\_ACEOF
6356 #define ENABLE_RUNTIME_CHECKING 1
6360 if test x
$ac_tree_checking != x
; then
6362 cat >>confdefs.h
<<\_ACEOF
6363 #define ENABLE_TREE_CHECKING 1
6366 TREEBROWSER
=tree-browser.o
6369 if test x
$ac_rtl_checking != x
; then
6371 cat >>confdefs.h
<<\_ACEOF
6372 #define ENABLE_RTL_CHECKING 1
6376 if test x
$ac_rtlflag_checking != x
; then
6378 cat >>confdefs.h
<<\_ACEOF
6379 #define ENABLE_RTL_FLAG_CHECKING 1
6383 if test x
$ac_gc_checking != x
; then
6385 cat >>confdefs.h
<<\_ACEOF
6386 #define ENABLE_GC_CHECKING 1
6390 if test x
$ac_gc_always_collect != x
; then
6392 cat >>confdefs.h
<<\_ACEOF
6393 #define ENABLE_GC_ALWAYS_COLLECT 1
6397 if test x
$ac_fold_checking != x
; then
6399 cat >>confdefs.h
<<\_ACEOF
6400 #define ENABLE_FOLD_CHECKING 1
6404 valgrind_path_defines
=
6407 if test "${ac_cv_header_valgrind_h+set}" = set; then
6408 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6409 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6410 if test "${ac_cv_header_valgrind_h+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6414 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6416 # Is the header compilable?
6417 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6418 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6419 cat >conftest.
$ac_ext <<_ACEOF
6422 cat confdefs.h
>>conftest.
$ac_ext
6423 cat >>conftest.
$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 $ac_includes_default
6426 #include <valgrind.h>
6428 rm -f conftest.
$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>conftest.er1
6432 grep -v '^ *+' conftest.er1
>conftest.err
6434 cat conftest.err
>&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try
='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try
='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_header_compiler
=yes
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.
$ac_ext >&5
6455 ac_header_compiler
=no
6457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6459 echo "${ECHO_T}$ac_header_compiler" >&6
6461 # Is the header present?
6462 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6463 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6464 cat >conftest.
$ac_ext <<_ACEOF
6467 cat confdefs.h
>>conftest.
$ac_ext
6468 cat >>conftest.
$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 #include <valgrind.h>
6472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6473 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6475 grep -v '^ *+' conftest.er1
>conftest.err
6477 cat conftest.err
>&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } >/dev
/null
; then
6480 if test -s conftest.err
; then
6481 ac_cpp_err
=$ac_c_preproc_warn_flag
6482 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6489 if test -z "$ac_cpp_err"; then
6490 ac_header_preproc
=yes
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.
$ac_ext >&5
6495 ac_header_preproc
=no
6497 rm -f conftest.err conftest.
$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499 echo "${ECHO_T}$ac_header_preproc" >&6
6501 # So? What about this header?
6502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6504 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6505 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6507 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6508 ac_header_preproc
=yes
6511 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6512 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6514 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6516 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6518 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6520 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6521 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6522 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6525 ## ------------------------------------------ ##
6526 ## Report this to the AC_PACKAGE_NAME lists. ##
6527 ## ------------------------------------------ ##
6530 sed "s/^/$as_me: WARNING: /" >&2
6533 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6534 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6535 if test "${ac_cv_header_valgrind_h+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 ac_cv_header_valgrind_h
=$ac_header_preproc
6540 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6541 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6544 if test $ac_cv_header_valgrind_h = yes; then
6552 if test x
$ac_valgrind_checking != x
; then
6553 # It is certainly possible that there's valgrind but no valgrind.h.
6554 # GCC relies on making annotations so we must have both.
6555 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6556 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6557 cat >conftest.
$ac_ext <<_ACEOF
6560 cat confdefs.h
>>conftest.
$ac_ext
6561 cat >>conftest.
$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6563 #include <valgrind/memcheck.h>
6564 #ifndef VALGRIND_DISCARD
6565 #error VALGRIND_DISCARD not defined
6568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6569 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6571 grep -v '^ *+' conftest.er1
>conftest.err
6573 cat conftest.err
>&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } >/dev
/null
; then
6576 if test -s conftest.err
; then
6577 ac_cpp_err
=$ac_c_preproc_warn_flag
6578 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6585 if test -z "$ac_cpp_err"; then
6586 gcc_cv_header_valgrind_memcheck_h
=yes
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.
$ac_ext >&5
6591 gcc_cv_header_valgrind_memcheck_h
=no
6593 rm -f conftest.err conftest.
$ac_ext
6594 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6595 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6596 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6597 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6598 cat >conftest.
$ac_ext <<_ACEOF
6601 cat confdefs.h
>>conftest.
$ac_ext
6602 cat >>conftest.
$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6604 #include <memcheck.h>
6605 #ifndef VALGRIND_DISCARD
6606 #error VALGRIND_DISCARD not defined
6609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6610 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6612 grep -v '^ *+' conftest.er1
>conftest.err
6614 cat conftest.err
>&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } >/dev
/null
; then
6617 if test -s conftest.err
; then
6618 ac_cpp_err
=$ac_c_preproc_warn_flag
6619 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6626 if test -z "$ac_cpp_err"; then
6627 gcc_cv_header_memcheck_h
=yes
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.
$ac_ext >&5
6632 gcc_cv_header_memcheck_h
=no
6634 rm -f conftest.err conftest.
$ac_ext
6635 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6636 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6638 # Prepare PATH_SEPARATOR.
6639 # The user is always right.
6640 if test "${PATH_SEPARATOR+set}" != set; then
6641 echo "#! /bin/sh" >conf$$.sh
6642 echo "exit 0" >>conf$$.sh
6644 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6652 # Find out how to test for executable files. Don't use a zero-byte file,
6653 # as systems may use methods other than mode bits to determine executability.
6654 cat >conf$$.
file <<_ASEOF
6658 chmod +x conf$$.
file
6659 if test -x conf$$.
file >/dev
/null
2>&1; then
6660 ac_executable_p
="test -x"
6662 ac_executable_p
="test -f"
6666 # Extract the first word of "valgrind", so it can be a program name with args.
6667 set dummy valgrind
; ac_word
=$2
6668 echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6670 if test "${ac_cv_path_valgrind_path+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 case "$valgrind_path" in
6675 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6678 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6679 for ac_dir
in $PATH; do
6681 test -z "$ac_dir" && ac_dir
=.
6682 for ac_exec_ext
in '' $ac_executable_extensions; do
6683 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6684 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6685 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6695 valgrind_path
="$ac_cv_path_valgrind_path"
6696 if test -n "$valgrind_path"; then
6697 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6698 echo "${ECHO_T}$valgrind_path" >&6
6700 echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6
6704 if test "x$valgrind_path" = "x" \
6705 ||
(test $have_valgrind_h = no \
6706 && test $gcc_cv_header_memcheck_h = no \
6707 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6708 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6709 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6710 { (exit 1); exit 1; }; }
6712 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6713 valgrind_command
="$valgrind_path -q"
6715 cat >>confdefs.h
<<\_ACEOF
6716 #define ENABLE_VALGRIND_CHECKING 1
6719 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6721 cat >>confdefs.h
<<\_ACEOF
6722 #define HAVE_VALGRIND_MEMCHECK_H 1
6726 if test $gcc_cv_header_memcheck_h = yes; then
6728 cat >>confdefs.h
<<\_ACEOF
6729 #define HAVE_MEMCHECK_H 1
6737 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6738 if test "${enable_mapped_location+set}" = set; then
6739 enableval
="$enable_mapped_location"
6742 enable_mapped_location
=no
6745 if test "$enable_mapped_location" = yes ; then
6747 cat >>confdefs.h
<<\_ACEOF
6748 #define USE_MAPPED_LOCATION 1
6753 # Enable code coverage collection
6754 # Check whether --enable-coverage or --disable-coverage was given.
6755 if test "${enable_coverage+set}" = set; then
6756 enableval
="$enable_coverage"
6757 case "${enableval}" in
6759 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6762 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6765 # a.k.a. --disable-coverage
6769 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6770 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6771 { (exit 1); exit 1; }; }
6779 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6780 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6781 enableval
="$enable_gather_detailed_mem_stats"
6784 enable_gather_detailed_mem_stats
=no
6786 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6788 cat >>confdefs.h
<<\_ACEOF
6789 #define GATHER_STATISTICS 1
6794 # -------------------------------
6795 # Miscenalleous configure options
6796 # -------------------------------
6800 # Check whether --with-stabs or --without-stabs was given.
6801 if test "${with_stabs+set}" = set; then
6802 withval
="$with_stabs"
6808 # Determine whether or not multilibs are enabled.
6809 # Check whether --enable-multilib or --disable-multilib was given.
6810 if test "${enable_multilib+set}" = set; then
6811 enableval
="$enable_multilib"
6818 # Enable __cxa_atexit for C++.
6819 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6820 if test "${enable___cxa_atexit+set}" = set; then
6821 enableval
="$enable___cxa_atexit"
6826 # Pass with no value to take the default
6827 # Pass with a value to specify a thread package
6828 # Check whether --enable-threads or --disable-threads was given.
6829 if test "${enable_threads+set}" = set; then
6830 enableval
="$enable_threads"
6836 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6837 if test "${enable_objc_gc+set}" = set; then
6838 enableval
="$enable_objc_gc"
6839 if test x
$enable_objc_gc = xno
; then
6849 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6850 if test "${with_dwarf2+set}" = set; then
6851 withval
="$with_dwarf2"
6852 dwarf2
="$with_dwarf2"
6857 # Check whether --enable-shared or --disable-shared was given.
6858 if test "${enable_shared+set}" = set; then
6859 enableval
="$enable_shared"
6861 case $enable_shared in
6865 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6866 for pkg
in $enableval; do
6867 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6881 # Check whether --with-sysroot or --without-sysroot was given.
6882 if test "${with_sysroot+set}" = set; then
6883 withval
="$with_sysroot"
6885 case ${with_sysroot} in
6886 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6887 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6890 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6891 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6893 if test "x$exec_prefix" = xNONE
; then
6894 if test "x$prefix" = xNONE
; then
6895 test_prefix
=/usr
/local
6900 test_prefix
=$exec_prefix
6902 case ${TARGET_SYSTEM_ROOT} in
6903 "${test_prefix}"|
"${test_prefix}/"*|\
6904 '${exec_prefix}'|
'${exec_prefix}/'*)
6905 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6906 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6913 TARGET_SYSTEM_ROOT_DEFINE
=
6914 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6921 # Build with intermodule optimisations
6922 # Check whether --enable-intermodule or --disable-intermodule was given.
6923 if test "${enable_intermodule+set}" = set; then
6924 enableval
="$enable_intermodule"
6925 case ${enable_intermodule} in
6926 yes) onestep
="-onestep";;
6934 # Sanity check enable_languages in case someone does not run the toplevel
6935 # configure # script.
6936 # Check whether --enable-languages or --disable-languages was given.
6937 if test "${enable_languages+set}" = set; then
6938 enableval
="$enable_languages"
6939 case ,${enable_languages}, in
6941 # go safe -- we cannot be much sure without the toplevel
6943 # analysis of which target libs are present and usable
6947 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6948 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6949 { (exit 1); exit 1; }; }
6954 enable_languages
=c
,${enable_languages}
6962 for lang
in ${srcdir}/*/config-lang.
in
6965 # The odd quoting in the next line works around
6966 # an apparent bug in bash 1.12 on linux.
6967 ${srcdir}/[*]/config-lang.
in) ;;
6969 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6970 if test "x$lang_alias" = x
6972 echo "$lang doesn't set \$language." 1>&2
6975 case ",$enable_languages," in
6977 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6984 # -------------------------
6985 # Checks for other programs
6986 # -------------------------
6988 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6989 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6990 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
6991 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 cat >conftest.
make <<\_ACEOF
6996 @
echo 'ac_maketemp="$(MAKE)"'
6998 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6999 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7000 if test -n "$ac_maketemp"; then
7001 eval ac_cv_prog_make_
${ac_make}_set
=yes
7003 eval ac_cv_prog_make_
${ac_make}_set
=no
7007 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7008 echo "$as_me:$LINENO: result: yes" >&5
7009 echo "${ECHO_T}yes" >&6
7012 echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6
7014 SET_MAKE
="MAKE=${MAKE-make}"
7018 # Find some useful tools
7019 for ac_prog
in gawk mawk nawk
awk
7021 # Extract the first word of "$ac_prog", so it can be a program name with args.
7022 set dummy
$ac_prog; ac_word
=$2
7023 echo "$as_me:$LINENO: checking for $ac_word" >&5
7024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7025 if test "${ac_cv_prog_AWK+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 if test -n "$AWK"; then
7029 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7035 test -z "$as_dir" && as_dir
=.
7036 for ac_exec_ext
in '' $ac_executable_extensions; do
7037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038 ac_cv_prog_AWK
="$ac_prog"
7039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 if test -n "$AWK"; then
7049 echo "$as_me:$LINENO: result: $AWK" >&5
7050 echo "${ECHO_T}$AWK" >&6
7052 echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6
7056 test -n "$AWK" && break
7059 # We need awk to create options.c and options.h.
7060 # Bail out if it's missing.
7062 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7063 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7064 { (exit 1); exit 1; }; } ;;
7067 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7068 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7069 if test "${gcc_cv_prog_LN_S+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 rm -f conftestdata_t
7073 echo >conftestdata_f
7074 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7076 gcc_cv_prog_LN_S
="ln -s"
7078 if ln conftestdata_f conftestdata_t
2>/dev
/null
7082 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7084 gcc_cv_prog_LN_S
="cp -p"
7090 rm -f conftestdata_f conftestdata_t
7093 LN_S
="$gcc_cv_prog_LN_S"
7094 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7095 echo "$as_me:$LINENO: result: yes" >&5
7096 echo "${ECHO_T}yes" >&6
7098 if test "$gcc_cv_prog_LN_S" = "ln"; then
7099 echo "$as_me:$LINENO: result: no, using ln" >&5
7100 echo "${ECHO_T}no, using ln" >&6
7102 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7103 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7107 echo "$as_me:$LINENO: checking whether ln works" >&5
7108 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7109 if test "${acx_cv_prog_LN+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 rm -f conftestdata_t
7113 echo >conftestdata_f
7114 if ln conftestdata_f conftestdata_t
2>/dev
/null
7120 rm -f conftestdata_f conftestdata_t
7123 if test $acx_cv_prog_LN = no
; then
7125 echo "$as_me:$LINENO: result: no, using $LN" >&5
7126 echo "${ECHO_T}no, using $LN" >&6
7128 LN
="$acx_cv_prog_LN"
7129 echo "$as_me:$LINENO: result: yes" >&5
7130 echo "${ECHO_T}yes" >&6
7133 if test -n "$ac_tool_prefix"; then
7134 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7135 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7136 echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7138 if test "${ac_cv_prog_RANLIB+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 if test -n "$RANLIB"; then
7142 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir
=.
7149 for ac_exec_ext
in '' $ac_executable_extensions; do
7150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 RANLIB
=$ac_cv_prog_RANLIB
7161 if test -n "$RANLIB"; then
7162 echo "$as_me:$LINENO: result: $RANLIB" >&5
7163 echo "${ECHO_T}$RANLIB" >&6
7165 echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6
7170 if test -z "$ac_cv_prog_RANLIB"; then
7171 ac_ct_RANLIB
=$RANLIB
7172 # Extract the first word of "ranlib", so it can be a program name with args.
7173 set dummy ranlib
; ac_word
=$2
7174 echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 if test -n "$ac_ct_RANLIB"; then
7180 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7186 test -z "$as_dir" && as_dir
=.
7187 for ac_exec_ext
in '' $ac_executable_extensions; do
7188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7199 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7200 if test -n "$ac_ct_RANLIB"; then
7201 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7202 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7204 echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6
7208 RANLIB
=$ac_ct_RANLIB
7210 RANLIB
="$ac_cv_prog_RANLIB"
7215 # By default, the Darwin ranlib will not treat common symbols as
7216 # definitions when building the archive table of contents. Other
7217 # ranlibs do that; pass an option to the Darwin ranlib that makes
7218 # it behave similarly.
7226 # Find a good install program. We prefer a C program (faster),
7227 # so one script is as good as another. But avoid the broken or
7228 # incompatible versions:
7229 # SysV /etc/install, /usr/sbin/install
7230 # SunOS /usr/etc/install
7231 # IRIX /sbin/install
7233 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7234 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7235 # ./install, which can be erroneously created by make from ./install.sh.
7236 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7237 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7238 if test -z "$INSTALL"; then
7239 if test "${ac_cv_path_install+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7243 for ac_dir
in $PATH; do
7244 # Account for people who put trailing slashes in PATH elements.
7246 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7248 # OSF1 and SCO ODT 3.0 have their own names for install.
7249 for ac_prog
in ginstall scoinst
install; do
7250 if test -f $ac_dir/$ac_prog; then
7251 if test $ac_prog = install &&
7252 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7253 # AIX install. It has an incompatible calling convention.
7254 # OSF/1 installbsd also uses dspmsg, but is usable.
7257 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7268 if test "${ac_cv_path_install+set}" = set; then
7269 INSTALL
="$ac_cv_path_install"
7271 # As a last resort, use the slow shell script. We don't cache a
7272 # path for INSTALL within a source directory, because that will
7273 # break other packages using the cache if that directory is
7274 # removed, or if the path is relative.
7275 INSTALL
="$ac_install_sh"
7278 echo "$as_me:$LINENO: result: $INSTALL" >&5
7279 echo "${ECHO_T}$INSTALL" >&6
7281 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7282 # It thinks the first close brace ends the variable substitution.
7283 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7285 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7288 # See if cmp has --ignore-initial.
7289 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7290 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7291 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 gcc_cv_prog_cmp_skip
=slowcompare
7297 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7298 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7301 gcc_cv_prog_cmp_skip
=gnucompare
7304 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7305 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7306 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7309 gcc_cv_prog_cmp_skip
=fastcompare
7316 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7317 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7318 make_compare_target
=$gcc_cv_prog_cmp_skip
7322 # See if we have the mktemp command.
7323 # Extract the first word of "mktemp", so it can be a program name with args.
7324 set dummy mktemp
; ac_word
=$2
7325 echo "$as_me:$LINENO: checking for $ac_word" >&5
7326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7327 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 if test -n "$have_mktemp_command"; then
7331 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7337 test -z "$as_dir" && as_dir
=.
7338 for ac_exec_ext
in '' $ac_executable_extensions; do
7339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_have_mktemp_command
="yes"
7341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7350 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7351 if test -n "$have_mktemp_command"; then
7352 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7353 echo "${ECHO_T}$have_mktemp_command" >&6
7355 echo "$as_me:$LINENO: result: no" >&5
7356 echo "${ECHO_T}no" >&6
7360 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7362 # See if makeinfo has been installed and is modern enough
7363 # that we can use it.
7365 ac_executable_extensions
="$build_exeext"
7367 # Extract the first word of "makeinfo", so it can be a program name with args.
7368 set dummy makeinfo
; ac_word
=$2
7369 echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7371 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 if test -n "$MAKEINFO"; then
7375 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir
=.
7382 for ac_exec_ext
in '' $ac_executable_extensions; do
7383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7384 ac_cv_prog_MAKEINFO
="makeinfo"
7385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 MAKEINFO
=$ac_cv_prog_MAKEINFO
7394 if test -n "$MAKEINFO"; then
7395 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7396 echo "${ECHO_T}$MAKEINFO" >&6
7398 echo "$as_me:$LINENO: result: no" >&5
7399 echo "${ECHO_T}no" >&6
7402 if test -n "$MAKEINFO"; then
7403 # Found it, now check the version.
7404 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7405 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7406 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7410 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7411 echo "configure:7411: version of makeinfo is $ac_prog_version" >&5
7412 case $ac_prog_version in
7413 '') gcc_cv_prog_makeinfo_modern
=no
;;
7415 gcc_cv_prog_makeinfo_modern
=yes;;
7416 *) gcc_cv_prog_makeinfo_modern
=no
;;
7420 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7421 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7423 gcc_cv_prog_makeinfo_modern
=no
7426 if test $gcc_cv_prog_makeinfo_modern = no
; then
7427 MAKEINFO
="$MISSING makeinfo"
7428 { echo "$as_me:$LINENO: WARNING:
7429 *** Makeinfo is missing or too old.
7430 *** Info documentation will not be built." >&5
7431 echo "$as_me: WARNING:
7432 *** Makeinfo is missing or too old.
7433 *** Info documentation will not be built." >&2;}
7440 # Is pod2man recent enough to regenerate manpages?
7441 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7442 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7443 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7444 echo "$as_me:$LINENO: result: yes" >&5
7445 echo "${ECHO_T}yes" >&6
7446 GENERATED_MANPAGES
=generated-manpages
7448 echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6
7457 # Extract the first word of "$ac_prog", so it can be a program name with args.
7458 set dummy
$ac_prog; ac_word
=$2
7459 echo "$as_me:$LINENO: checking for $ac_word" >&5
7460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7461 if test "${ac_cv_prog_FLEX+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 if test -n "$FLEX"; then
7465 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7471 test -z "$as_dir" && as_dir
=.
7472 for ac_exec_ext
in '' $ac_executable_extensions; do
7473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7474 ac_cv_prog_FLEX
="$ac_prog"
7475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 FLEX
=$ac_cv_prog_FLEX
7484 if test -n "$FLEX"; then
7485 echo "$as_me:$LINENO: result: $FLEX" >&5
7486 echo "${ECHO_T}$FLEX" >&6
7488 echo "$as_me:$LINENO: result: no" >&5
7489 echo "${ECHO_T}no" >&6
7492 test -n "$FLEX" && break
7494 test -n "$FLEX" || FLEX
="$MISSING flex"
7498 for ac_prog
in bison
7500 # Extract the first word of "$ac_prog", so it can be a program name with args.
7501 set dummy
$ac_prog; ac_word
=$2
7502 echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7504 if test "${ac_cv_prog_BISON+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 if test -n "$BISON"; then
7508 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7514 test -z "$as_dir" && as_dir
=.
7515 for ac_exec_ext
in '' $ac_executable_extensions; do
7516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_prog_BISON
="$ac_prog"
7518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 BISON
=$ac_cv_prog_BISON
7527 if test -n "$BISON"; then
7528 echo "$as_me:$LINENO: result: $BISON" >&5
7529 echo "${ECHO_T}$BISON" >&6
7531 echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6
7535 test -n "$BISON" && break
7537 test -n "$BISON" || BISON
="$MISSING bison"
7540 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7541 # check for build == host before using them.
7544 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7545 && test -d ..
/binutils
; then
7546 NM
='$(objdir)/../binutils/nm-new'
7548 # Extract the first word of "nm", so it can be a program name with args.
7549 set dummy nm
; ac_word
=$2
7550 echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7552 if test "${ac_cv_prog_NM+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 if test -n "$NM"; then
7556 ac_cv_prog_NM
="$NM" # Let the user override the test.
7558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir
=.
7563 for ac_exec_ext
in '' $ac_executable_extensions; do
7564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7576 if test -n "$NM"; then
7577 echo "$as_me:$LINENO: result: $NM" >&5
7578 echo "${ECHO_T}$NM" >&6
7580 echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6
7587 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7588 && test -d ..
/binutils
; then
7589 AR
='$(objdir)/../binutils/ar'
7591 # Extract the first word of "ar", so it can be a program name with args.
7592 set dummy
ar; ac_word
=$2
7593 echo "$as_me:$LINENO: checking for $ac_word" >&5
7594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7595 if test "${ac_cv_prog_AR+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 if test -n "$AR"; then
7599 ac_cv_prog_AR
="$AR" # Let the user override the test.
7601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7605 test -z "$as_dir" && as_dir
=.
7606 for ac_exec_ext
in '' $ac_executable_extensions; do
7607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7619 if test -n "$AR"; then
7620 echo "$as_me:$LINENO: result: $AR" >&5
7621 echo "${ECHO_T}$AR" >&6
7623 echo "$as_me:$LINENO: result: no" >&5
7624 echo "${ECHO_T}no" >&6
7630 # --------------------
7631 # Checks for C headers
7632 # --------------------
7634 echo "$as_me:$LINENO: checking for GNU C library" >&5
7635 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7636 if test "${gcc_cv_glibc+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 cat >conftest.
$ac_ext <<_ACEOF
7642 cat confdefs.h
>>conftest.
$ac_ext
7643 cat >>conftest.
$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 #include <features.h>
7650 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7651 #error Not a GNU C library system
7657 rm -f conftest.
$ac_objext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7659 (eval $ac_compile) 2>conftest.er1
7661 grep -v '^ *+' conftest.er1
>conftest.err
7663 cat conftest.err
>&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try
='test -z "$ac_c_werror_flag"
7667 || test ! -s conftest.err'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; } &&
7673 { ac_try
='test -s conftest.$ac_objext'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.
$ac_ext >&5
7686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7689 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7690 echo "${ECHO_T}$gcc_cv_glibc" >&6
7691 if test $gcc_cv_glibc = yes; then
7693 cat >>confdefs.h
<<\_ACEOF
7694 #define _GNU_SOURCE 1
7699 # Need to reject headers which give warnings, so that the -Werror bootstrap
7700 # works later. *sigh* This needs to come before all header checks.
7702 ac_c_preproc_warn_flag
=yes
7704 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7705 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7706 if test "${ac_cv_header_stdc+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 cat >conftest.
$ac_ext <<_ACEOF
7712 cat confdefs.h
>>conftest.
$ac_ext
7713 cat >>conftest.
$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7728 rm -f conftest.
$ac_objext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730 (eval $ac_compile) 2>conftest.er1
7732 grep -v '^ *+' conftest.er1
>conftest.err
7734 cat conftest.err
>&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } &&
7737 { ac_try
='test -z "$ac_c_werror_flag"
7738 || test ! -s conftest.err'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; } &&
7744 { ac_try
='test -s conftest.$ac_objext'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; }; then
7750 ac_cv_header_stdc
=yes
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.
$ac_ext >&5
7755 ac_cv_header_stdc
=no
7757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7759 if test $ac_cv_header_stdc = yes; then
7760 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7761 cat >conftest.
$ac_ext <<_ACEOF
7764 cat confdefs.h
>>conftest.
$ac_ext
7765 cat >>conftest.
$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7771 $EGREP "memchr" >/dev
/null
2>&1; then
7774 ac_cv_header_stdc
=no
7780 if test $ac_cv_header_stdc = yes; then
7781 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7782 cat >conftest.
$ac_ext <<_ACEOF
7785 cat confdefs.h
>>conftest.
$ac_ext
7786 cat >>conftest.
$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7792 $EGREP "free" >/dev
/null
2>&1; then
7795 ac_cv_header_stdc
=no
7801 if test $ac_cv_header_stdc = yes; then
7802 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7803 if test "$cross_compiling" = yes; then
7806 cat >conftest.
$ac_ext <<_ACEOF
7809 cat confdefs.h
>>conftest.
$ac_ext
7810 cat >>conftest.
$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7813 #if ((' ' & 0x0FF) == 0x020)
7814 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7815 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7817 # define ISLOWER(c) \
7818 (('a' <= (c) && (c) <= 'i') \
7819 || ('j' <= (c) && (c) <= 'r') \
7820 || ('s' <= (c) && (c) <= 'z'))
7821 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7824 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7829 for (i = 0; i < 256; i++)
7830 if (XOR (islower (i), ISLOWER (i))
7831 || toupper (i) != TOUPPER (i))
7836 rm -f conftest
$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838 (eval $ac_link) 2>&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7849 echo "$as_me: program exited with status $ac_status" >&5
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.
$ac_ext >&5
7854 ac_cv_header_stdc
=no
7856 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7860 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7861 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7862 if test $ac_cv_header_stdc = yes; then
7864 cat >>confdefs.h
<<\_ACEOF
7865 #define STDC_HEADERS 1
7870 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7871 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7872 if test "${ac_cv_header_time+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 cat >conftest.
$ac_ext <<_ACEOF
7878 cat confdefs.h
>>conftest.
$ac_ext
7879 cat >>conftest.
$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7881 #include <sys/types.h>
7882 #include <sys/time.h>
7888 if ((struct tm *) 0)
7894 rm -f conftest.
$ac_objext
7895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7896 (eval $ac_compile) 2>conftest.er1
7898 grep -v '^ *+' conftest.er1
>conftest.err
7900 cat conftest.err
>&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } &&
7903 { ac_try
='test -z "$ac_c_werror_flag"
7904 || test ! -s conftest.err'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; } &&
7910 { ac_try
='test -s conftest.$ac_objext'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; }; then
7916 ac_cv_header_time
=yes
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.
$ac_ext >&5
7921 ac_cv_header_time
=no
7923 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7925 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7926 echo "${ECHO_T}$ac_cv_header_time" >&6
7927 if test $ac_cv_header_time = yes; then
7929 cat >>confdefs.h
<<\_ACEOF
7930 #define TIME_WITH_SYS_TIME 1
7935 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7936 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7937 if test "${gcc_cv_header_string+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 cat >conftest.
$ac_ext <<_ACEOF
7943 cat confdefs.h
>>conftest.
$ac_ext
7944 cat >>conftest.
$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7947 #include <strings.h>
7956 rm -f conftest.
$ac_objext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7958 (eval $ac_compile) 2>conftest.er1
7960 grep -v '^ *+' conftest.er1
>conftest.err
7962 cat conftest.err
>&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try
='test -z "$ac_c_werror_flag"
7966 || test ! -s conftest.err'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; } &&
7972 { ac_try
='test -s conftest.$ac_objext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 gcc_cv_header_string
=yes
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.
$ac_ext >&5
7983 gcc_cv_header_string
=no
7985 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7987 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7988 echo "${ECHO_T}$gcc_cv_header_string" >&6
7989 if test $gcc_cv_header_string = yes; then
7991 cat >>confdefs.h
<<\_ACEOF
7992 #define STRING_WITH_STRINGS 1
7997 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7998 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7999 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 cat >conftest.
$ac_ext <<_ACEOF
8005 cat confdefs.h
>>conftest.
$ac_ext
8006 cat >>conftest.
$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8008 #include <sys/types.h>
8009 #include <sys/wait.h>
8011 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8014 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8022 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8027 rm -f conftest.
$ac_objext
8028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8029 (eval $ac_compile) 2>conftest.er1
8031 grep -v '^ *+' conftest.er1
>conftest.err
8033 cat conftest.err
>&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } &&
8036 { ac_try
='test -z "$ac_c_werror_flag"
8037 || test ! -s conftest.err'
8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; } &&
8043 { ac_try
='test -s conftest.$ac_objext'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; }; then
8049 ac_cv_header_sys_wait_h
=yes
8051 echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.
$ac_ext >&5
8054 ac_cv_header_sys_wait_h
=no
8056 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8058 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8059 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8060 if test $ac_cv_header_sys_wait_h = yes; then
8062 cat >>confdefs.h
<<\_ACEOF
8063 #define HAVE_SYS_WAIT_H 1
8090 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8091 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8092 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8093 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8095 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8096 echo "$as_me:$LINENO: checking for $ac_header" >&5
8097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 cat >conftest.
$ac_ext <<_ACEOF
8104 cat confdefs.h
>>conftest.
$ac_ext
8105 cat >>conftest.
$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107 #include <$ac_header>
8109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8110 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8112 grep -v '^ *+' conftest.er1
>conftest.err
8114 cat conftest.err
>&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } >/dev
/null
; then
8117 if test -s conftest.err
; then
8118 ac_cpp_err
=$ac_c_preproc_warn_flag
8119 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8126 if test -z "$ac_cpp_err"; then
8127 eval "$as_ac_Header=yes"
8129 echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.
$ac_ext >&5
8132 eval "$as_ac_Header=no"
8134 rm -f conftest.err conftest.
$ac_ext
8136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8139 cat >>confdefs.h
<<_ACEOF
8140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8147 # Check for thread headers.
8148 echo "$as_me:$LINENO: checking for thread.h" >&5
8149 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8150 if test "${ac_cv_header_thread_h+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 cat >conftest.
$ac_ext <<_ACEOF
8156 cat confdefs.h
>>conftest.
$ac_ext
8157 cat >>conftest.
$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8162 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8164 grep -v '^ *+' conftest.er1
>conftest.err
8166 cat conftest.err
>&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } >/dev
/null
; then
8169 if test -s conftest.err
; then
8170 ac_cpp_err
=$ac_c_preproc_warn_flag
8171 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8178 if test -z "$ac_cpp_err"; then
8179 ac_cv_header_thread_h
=yes
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.
$ac_ext >&5
8184 ac_cv_header_thread_h
=no
8186 rm -f conftest.err conftest.
$ac_ext
8188 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8189 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8190 if test $ac_cv_header_thread_h = yes; then
8196 echo "$as_me:$LINENO: checking for pthread.h" >&5
8197 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8198 if test "${ac_cv_header_pthread_h+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 cat >conftest.
$ac_ext <<_ACEOF
8204 cat confdefs.h
>>conftest.
$ac_ext
8205 cat >>conftest.
$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8207 #include <pthread.h>
8209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8210 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8212 grep -v '^ *+' conftest.er1
>conftest.err
8214 cat conftest.err
>&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } >/dev
/null
; then
8217 if test -s conftest.err
; then
8218 ac_cpp_err
=$ac_c_preproc_warn_flag
8219 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8226 if test -z "$ac_cpp_err"; then
8227 ac_cv_header_pthread_h
=yes
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.
$ac_ext >&5
8232 ac_cv_header_pthread_h
=no
8234 rm -f conftest.err conftest.
$ac_ext
8236 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8237 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8238 if test $ac_cv_header_pthread_h = yes; then
8245 # These tests can't be done till we know if we have limits.h.
8246 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8247 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8248 if test "${gcc_cv_decl_char_bit+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 cat >conftest.
$ac_ext <<_ACEOF
8254 cat confdefs.h
>>conftest.
$ac_ext
8255 cat >>conftest.
$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 #ifdef HAVE_LIMITS_H
8264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8265 $EGREP "found" >/dev
/null
2>&1; then
8266 gcc_cv_decl_char_bit
=yes
8268 gcc_cv_decl_char_bit
=no
8274 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8275 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8276 if test $gcc_cv_decl_char_bit = no
; then
8277 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8278 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8279 if test "${gcc_cv_c_nbby+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8284 while test $i -lt 65; do
8285 cat >conftest.
$ac_ext <<_ACEOF
8288 cat confdefs.h
>>conftest.
$ac_ext
8289 cat >>conftest.
$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8296 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8297 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8303 rm -f conftest.
$ac_objext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8305 (eval $ac_compile) 2>conftest.er1
8307 grep -v '^ *+' conftest.er1
>conftest.err
8309 cat conftest.err
>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try
='test -z "$ac_c_werror_flag"
8313 || test ! -s conftest.err'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; } &&
8319 { ac_try
='test -s conftest.$ac_objext'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 gcc_cv_c_nbby
=$i; break
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.
$ac_ext >&5
8331 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8334 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8337 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8338 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8339 if test $gcc_cv_c_nbby = failed
; then
8340 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8341 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8342 { (exit 1); exit 1; }; }
8345 cat >>confdefs.h
<<_ACEOF
8346 #define CHAR_BIT $gcc_cv_c_nbby
8351 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8352 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8353 if test "${ac_cv_c_bigendian+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 # See if sys/param.h defines the BYTE_ORDER macro.
8357 cat >conftest.
$ac_ext <<_ACEOF
8360 cat confdefs.h
>>conftest.
$ac_ext
8361 cat >>conftest.
$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 #include <sys/types.h>
8364 #include <sys/param.h>
8369 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8377 rm -f conftest.
$ac_objext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8379 (eval $ac_compile) 2>conftest.er1
8381 grep -v '^ *+' conftest.er1
>conftest.err
8383 cat conftest.err
>&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } &&
8386 { ac_try
='test -z "$ac_c_werror_flag"
8387 || test ! -s conftest.err'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; } &&
8393 { ac_try
='test -s conftest.$ac_objext'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8399 # It does; now see whether it defined to BIG_ENDIAN or not.
8400 cat >conftest.
$ac_ext <<_ACEOF
8403 cat confdefs.h
>>conftest.
$ac_ext
8404 cat >>conftest.
$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8406 #include <sys/types.h>
8407 #include <sys/param.h>
8412 #if BYTE_ORDER != BIG_ENDIAN
8420 rm -f conftest.
$ac_objext
8421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8422 (eval $ac_compile) 2>conftest.er1
8424 grep -v '^ *+' conftest.er1
>conftest.err
8426 cat conftest.err
>&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } &&
8429 { ac_try
='test -z "$ac_c_werror_flag"
8430 || test ! -s conftest.err'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; } &&
8436 { ac_try
='test -s conftest.$ac_objext'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; }; then
8442 ac_cv_c_bigendian
=yes
8444 echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.
$ac_ext >&5
8447 ac_cv_c_bigendian
=no
8449 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.
$ac_ext >&5
8454 # It does not; compile a test program.
8455 if test "$cross_compiling" = yes; then
8456 # try to guess the endianness by grepping values into an object file
8457 ac_cv_c_bigendian
=unknown
8458 cat >conftest.
$ac_ext <<_ACEOF
8461 cat confdefs.h
>>conftest.
$ac_ext
8462 cat >>conftest.
$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8465 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8466 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8467 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8468 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8469 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8473 _ascii (); _ebcdic ();
8478 rm -f conftest.
$ac_objext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8480 (eval $ac_compile) 2>conftest.er1
8482 grep -v '^ *+' conftest.er1
>conftest.err
8484 cat conftest.err
>&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } &&
8487 { ac_try
='test -z "$ac_c_werror_flag"
8488 || test ! -s conftest.err'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try
='test -s conftest.$ac_objext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8501 ac_cv_c_bigendian
=yes
8503 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8504 if test "$ac_cv_c_bigendian" = unknown
; then
8505 ac_cv_c_bigendian
=no
8507 # finding both strings is unlikely to happen, but who knows?
8508 ac_cv_c_bigendian
=unknown
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.
$ac_ext >&5
8516 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8518 cat >conftest.
$ac_ext <<_ACEOF
8521 cat confdefs.h
>>conftest.
$ac_ext
8522 cat >>conftest.
$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8527 /* Are we little or big endian? From Harbison&Steele. */
8531 char c[sizeof (long)];
8534 exit (u.c[sizeof (long) - 1] == 1);
8537 rm -f conftest
$ac_exeext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539 (eval $ac_link) 2>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_cv_c_bigendian
=no
8550 echo "$as_me: program exited with status $ac_status" >&5
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.
$ac_ext >&5
8555 ac_cv_c_bigendian
=yes
8557 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8560 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8562 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8563 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8564 case $ac_cv_c_bigendian in
8567 cat >>confdefs.h
<<\_ACEOF
8568 #define WORDS_BIGENDIAN 1
8574 { { echo "$as_me:$LINENO: error: unknown endianness
8575 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8576 echo "$as_me: error: unknown endianness
8577 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8578 { (exit 1); exit 1; }; } ;;
8586 # Stage specific cflags for build.
8590 if test x
$GCC = xyes
8592 stage1_cflags
="-Wa,-J"
8598 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8599 # sources; use -no-cpp-precomp to get to GNU cpp.
8600 # Apple's GCC has bugs in designated initializer handling, so disable
8602 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8607 # These libraries may be used by collect2.
8608 # We may need a special search path to get them linked.
8609 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8610 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8611 if test "${gcc_cv_collect2_libs+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8615 for libs
in '' -lld -lmld \
8616 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8617 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8620 cat >conftest.
$ac_ext <<_ACEOF
8623 cat confdefs.h
>>conftest.
$ac_ext
8624 cat >>conftest.
$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8627 /* Override any gcc2 internal prototype to avoid an error. */
8631 /* We use char because int might match the return type of a gcc2
8632 builtin and then its argument prototype would still apply. */
8642 rm -f conftest.
$ac_objext conftest
$ac_exeext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8644 (eval $ac_link) 2>conftest.er1
8646 grep -v '^ *+' conftest.er1
>conftest.err
8648 cat conftest.err
>&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try
='test -z "$ac_c_werror_flag"
8652 || test ! -s conftest.err'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try
='test -s conftest$ac_exeext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 gcc_cv_collect2_libs
="$libs"; break
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.
$ac_ext >&5
8670 rm -f conftest.err conftest.
$ac_objext \
8671 conftest
$ac_exeext conftest.
$ac_ext
8674 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8676 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8677 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8678 case $gcc_cv_collect2_libs in
8680 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8684 # When building Ada code on Alpha, we need exc_resume which is usually in
8685 # -lexc. So test for it.
8688 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8689 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8690 if test "${ac_cv_search_exc_resume+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 ac_func_search_save_LIBS
=$LIBS
8694 ac_cv_search_exc_resume
=no
8695 cat >conftest.
$ac_ext <<_ACEOF
8698 cat confdefs.h
>>conftest.
$ac_ext
8699 cat >>conftest.
$ac_ext <<_ACEOF
8700 /* end confdefs.h. */
8702 /* Override any gcc2 internal prototype to avoid an error. */
8706 /* We use char because int might match the return type of a gcc2
8707 builtin and then its argument prototype would still apply. */
8717 rm -f conftest.
$ac_objext conftest
$ac_exeext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8719 (eval $ac_link) 2>conftest.er1
8721 grep -v '^ *+' conftest.er1
>conftest.err
8723 cat conftest.err
>&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } &&
8726 { ac_try
='test -z "$ac_c_werror_flag"
8727 || test ! -s conftest.err'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; } &&
8733 { ac_try
='test -s conftest$ac_exeext'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8739 ac_cv_search_exc_resume
="none required"
8741 echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.
$ac_ext >&5
8745 rm -f conftest.err conftest.
$ac_objext \
8746 conftest
$ac_exeext conftest.
$ac_ext
8747 if test "$ac_cv_search_exc_resume" = no
; then
8748 for ac_lib
in exc
; do
8749 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8750 cat >conftest.
$ac_ext <<_ACEOF
8753 cat confdefs.h
>>conftest.
$ac_ext
8754 cat >>conftest.
$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8757 /* Override any gcc2 internal prototype to avoid an error. */
8761 /* We use char because int might match the return type of a gcc2
8762 builtin and then its argument prototype would still apply. */
8772 rm -f conftest.
$ac_objext conftest
$ac_exeext
8773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8774 (eval $ac_link) 2>conftest.er1
8776 grep -v '^ *+' conftest.er1
>conftest.err
8778 cat conftest.err
>&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } &&
8781 { ac_try
='test -z "$ac_c_werror_flag"
8782 || test ! -s conftest.err'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; } &&
8788 { ac_try
='test -s conftest$ac_exeext'
8789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); }; }; then
8794 ac_cv_search_exc_resume
="-l$ac_lib"
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.
$ac_ext >&5
8801 rm -f conftest.err conftest.
$ac_objext \
8802 conftest
$ac_exeext conftest.
$ac_ext
8805 LIBS
=$ac_func_search_save_LIBS
8807 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8808 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8809 if test "$ac_cv_search_exc_resume" != no
; then
8810 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8818 # Some systems put ldexp and frexp in libm instead of libc; assume
8819 # they're both in the same place. jcf-dump needs them.
8822 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8823 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8824 if test "${ac_cv_search_ldexp+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8827 ac_func_search_save_LIBS
=$LIBS
8828 ac_cv_search_ldexp
=no
8829 cat >conftest.
$ac_ext <<_ACEOF
8832 cat confdefs.h
>>conftest.
$ac_ext
8833 cat >>conftest.
$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8836 /* Override any gcc2 internal prototype to avoid an error. */
8840 /* We use char because int might match the return type of a gcc2
8841 builtin and then its argument prototype would still apply. */
8851 rm -f conftest.
$ac_objext conftest
$ac_exeext
8852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853 (eval $ac_link) 2>conftest.er1
8855 grep -v '^ *+' conftest.er1
>conftest.err
8857 cat conftest.err
>&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } &&
8860 { ac_try
='test -z "$ac_c_werror_flag"
8861 || test ! -s conftest.err'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; } &&
8867 { ac_try
='test -s conftest$ac_exeext'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 ac_cv_search_ldexp
="none required"
8875 echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.
$ac_ext >&5
8879 rm -f conftest.err conftest.
$ac_objext \
8880 conftest
$ac_exeext conftest.
$ac_ext
8881 if test "$ac_cv_search_ldexp" = no
; then
8883 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8884 cat >conftest.
$ac_ext <<_ACEOF
8887 cat confdefs.h
>>conftest.
$ac_ext
8888 cat >>conftest.
$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8891 /* Override any gcc2 internal prototype to avoid an error. */
8895 /* We use char because int might match the return type of a gcc2
8896 builtin and then its argument prototype would still apply. */
8906 rm -f conftest.
$ac_objext conftest
$ac_exeext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8908 (eval $ac_link) 2>conftest.er1
8910 grep -v '^ *+' conftest.er1
>conftest.err
8912 cat conftest.err
>&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } &&
8915 { ac_try
='test -z "$ac_c_werror_flag"
8916 || test ! -s conftest.err'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; } &&
8922 { ac_try
='test -s conftest$ac_exeext'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; }; then
8928 ac_cv_search_ldexp
="-l$ac_lib"
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.
$ac_ext >&5
8935 rm -f conftest.err conftest.
$ac_objext \
8936 conftest
$ac_exeext conftest.
$ac_ext
8939 LIBS
=$ac_func_search_save_LIBS
8941 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8942 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8943 if test "$ac_cv_search_ldexp" != no
; then
8944 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
8952 # Use <inttypes.h> only if it exists,
8953 # doesn't clash with <sys/types.h>, and declares intmax_t.
8954 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8955 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8956 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 cat >conftest.
$ac_ext <<_ACEOF
8962 cat confdefs.h
>>conftest.
$ac_ext
8963 cat >>conftest.
$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 #include <sys/types.h>
8966 #include <inttypes.h>
8975 rm -f conftest.
$ac_objext
8976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8977 (eval $ac_compile) 2>conftest.er1
8979 grep -v '^ *+' conftest.er1
>conftest.err
8981 cat conftest.err
>&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } &&
8984 { ac_try
='test -z "$ac_c_werror_flag"
8985 || test ! -s conftest.err'
8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; } &&
8991 { ac_try
='test -s conftest.$ac_objext'
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; }; then
8997 gcc_cv_header_inttypes_h
=yes
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.
$ac_ext >&5
9002 gcc_cv_header_inttypes_h
=no
9004 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9007 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9008 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9009 if test $gcc_cv_header_inttypes_h = yes; then
9011 cat >>confdefs.h
<<\_ACEOF
9012 #define HAVE_INTTYPES_H 1
9055 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
9056 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9057 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9058 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9060 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9061 echo "$as_me:$LINENO: checking for $ac_func" >&5
9062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9063 if eval "test \"\${$as_ac_var+set}\" = set"; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 cat >conftest.
$ac_ext <<_ACEOF
9069 cat confdefs.h
>>conftest.
$ac_ext
9070 cat >>conftest.
$ac_ext <<_ACEOF
9071 /* end confdefs.h. */
9072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9074 #define $ac_func innocuous_$ac_func
9076 /* System header to define __stub macros and hopefully few prototypes,
9077 which can conflict with char $ac_func (); below.
9078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9079 <limits.h> exists even on freestanding compilers. */
9082 # include <limits.h>
9084 # include <assert.h>
9089 /* Override any gcc2 internal prototype to avoid an error. */
9094 /* We use char because int might match the return type of a gcc2
9095 builtin and then its argument prototype would still apply. */
9097 /* The GNU C library defines this for functions which it implements
9098 to always fail with ENOSYS. Some functions are actually named
9099 something starting with __ and the normal name is an alias. */
9100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9103 char (*f) () = $ac_func;
9112 return f != $ac_func;
9117 rm -f conftest.
$ac_objext conftest
$ac_exeext
9118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119 (eval $ac_link) 2>conftest.er1
9121 grep -v '^ *+' conftest.er1
>conftest.err
9123 cat conftest.err
>&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } &&
9126 { ac_try
='test -z "$ac_c_werror_flag"
9127 || test ! -s conftest.err'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; } &&
9133 { ac_try
='test -s conftest$ac_exeext'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; }; then
9139 eval "$as_ac_var=yes"
9141 echo "$as_me: failed program was:" >&5
9142 sed 's/^/| /' conftest.
$ac_ext >&5
9144 eval "$as_ac_var=no"
9146 rm -f conftest.err conftest.
$ac_objext \
9147 conftest
$ac_exeext conftest.
$ac_ext
9149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9151 if test `eval echo '${'$as_ac_var'}'` = yes; then
9152 cat >>confdefs.h
<<_ACEOF
9153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9160 if test x
$ac_cv_func_mbstowcs = xyes
; then
9161 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9162 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9163 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 if test "$cross_compiling" = yes; then
9167 gcc_cv_func_mbstowcs_works
=yes
9169 cat >conftest.
$ac_ext <<_ACEOF
9172 cat confdefs.h
>>conftest.
$ac_ext
9173 cat >>conftest.
$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9182 rm -f conftest
$ac_exeext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184 (eval $ac_link) 2>&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 gcc_cv_func_mbstowcs_works
=yes
9195 echo "$as_me: program exited with status $ac_status" >&5
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.
$ac_ext >&5
9200 gcc_cv_func_mbstowcs_works
=no
9202 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9205 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9206 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9207 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9209 cat >>confdefs.h
<<\_ACEOF
9210 #define HAVE_WORKING_MBSTOWCS 1
9216 echo "$as_me:$LINENO: checking for ssize_t" >&5
9217 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9218 if test "${ac_cv_type_ssize_t+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 cat >conftest.
$ac_ext <<_ACEOF
9224 cat confdefs.h
>>conftest.
$ac_ext
9225 cat >>conftest.
$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 $ac_includes_default
9233 if (sizeof (ssize_t))
9239 rm -f conftest.
$ac_objext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9241 (eval $ac_compile) 2>conftest.er1
9243 grep -v '^ *+' conftest.er1
>conftest.err
9245 cat conftest.err
>&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try
='test -z "$ac_c_werror_flag"
9249 || test ! -s conftest.err'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try
='test -s conftest.$ac_objext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_type_ssize_t
=yes
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.
$ac_ext >&5
9266 ac_cv_type_ssize_t
=no
9268 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9270 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9271 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9272 if test $ac_cv_type_ssize_t = yes; then
9276 cat >>confdefs.h
<<_ACEOF
9283 # Try to determine the array type of the second argument of getgroups
9284 # for the target system (int or gid_t).
9285 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9286 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9287 if test "${ac_cv_type_uid_t+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 cat >conftest.
$ac_ext <<_ACEOF
9293 cat confdefs.h
>>conftest.
$ac_ext
9294 cat >>conftest.
$ac_ext <<_ACEOF
9295 /* end confdefs.h. */
9296 #include <sys/types.h>
9299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9300 $EGREP "uid_t" >/dev
/null
2>&1; then
9301 ac_cv_type_uid_t
=yes
9308 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9309 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9310 if test $ac_cv_type_uid_t = no
; then
9312 cat >>confdefs.h
<<\_ACEOF
9317 cat >>confdefs.h
<<\_ACEOF
9323 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9324 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9325 if test "${ac_cv_type_getgroups+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 if test "$cross_compiling" = yes; then
9329 ac_cv_type_getgroups
=cross
9331 cat >conftest.
$ac_ext <<_ACEOF
9334 cat confdefs.h
>>conftest.
$ac_ext
9335 cat >>conftest.
$ac_ext <<_ACEOF
9336 /* end confdefs.h. */
9337 /* Thanks to Mike Rendell for this test. */
9338 #include <sys/types.h>
9341 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9348 union { gid_t gval; long lval; } val;
9351 for (i = 0; i < NGID; i++)
9352 gidset[i] = val.gval;
9353 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9355 /* Exit non-zero if getgroups seems to require an array of ints. This
9356 happens when gid_t is short but getgroups modifies an array of ints. */
9357 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9360 rm -f conftest
$ac_exeext
9361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9362 (eval $ac_link) 2>&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 ac_cv_type_getgroups
=gid_t
9373 echo "$as_me: program exited with status $ac_status" >&5
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.
$ac_ext >&5
9378 ac_cv_type_getgroups
=int
9380 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9382 if test $ac_cv_type_getgroups = cross
; then
9383 cat >conftest.
$ac_ext <<_ACEOF
9386 cat confdefs.h
>>conftest.
$ac_ext
9387 cat >>conftest.
$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9393 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9394 ac_cv_type_getgroups
=gid_t
9396 ac_cv_type_getgroups
=int
9402 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9403 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9405 cat >>confdefs.h
<<_ACEOF
9406 #define GETGROUPS_T $ac_cv_type_getgroups
9410 if test "${target}" = "${build}"; then
9411 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9414 # This condition may need some tweaking. It should include all
9415 # targets where the array type of the second argument of getgroups
9416 # is int and the type of gid_t is not equivalent to int.
9417 *-*-sunos* |
*-*-ultrix*)
9418 TARGET_GETGROUPS_T
=int
9421 TARGET_GETGROUPS_T
=gid_t
9427 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9428 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9429 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 if test "$cross_compiling" = yes; then
9433 gcc_cv_func_printf_ptr
=no
9435 cat >conftest.
$ac_ext <<_ACEOF
9438 cat confdefs.h
>>conftest.
$ac_ext
9439 cat >>conftest.
$ac_ext <<_ACEOF
9440 /* end confdefs.h. */
9446 char *p = buf, *q = NULL;
9447 sprintf(buf, "%p", p);
9448 sscanf(buf, "%p", &q);
9452 rm -f conftest
$ac_exeext
9453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9454 (eval $ac_link) 2>&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 gcc_cv_func_printf_ptr
=yes
9465 echo "$as_me: program exited with status $ac_status" >&5
9466 echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.
$ac_ext >&5
9470 gcc_cv_func_printf_ptr
=no
9472 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9474 rm -f core core.
* *.core
9476 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9477 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9478 if test $gcc_cv_func_printf_ptr = yes ; then
9480 cat >>confdefs.h
<<\_ACEOF
9481 #define HAVE_PRINTF_PTR 1
9487 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9488 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9489 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 cat >conftest.
$ac_ext <<_ACEOF
9495 cat confdefs.h
>>conftest.
$ac_ext
9496 cat >>conftest.
$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9498 #include <sys/mman.h>
9500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9501 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9503 grep -v '^ *+' conftest.er1
>conftest.err
9505 cat conftest.err
>&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } >/dev
/null
; then
9508 if test -s conftest.err
; then
9509 ac_cpp_err
=$ac_c_preproc_warn_flag
9510 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9517 if test -z "$ac_cpp_err"; then
9518 ac_cv_header_sys_mman_h
=yes
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.
$ac_ext >&5
9523 ac_cv_header_sys_mman_h
=no
9525 rm -f conftest.err conftest.
$ac_ext
9527 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9528 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9529 if test $ac_cv_header_sys_mman_h = yes; then
9530 gcc_header_sys_mman_h
=yes
9532 gcc_header_sys_mman_h
=no
9535 echo "$as_me:$LINENO: checking for mmap" >&5
9536 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9537 if test "${ac_cv_func_mmap+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 cat >conftest.
$ac_ext <<_ACEOF
9543 cat confdefs.h
>>conftest.
$ac_ext
9544 cat >>conftest.
$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9546 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9548 #define mmap innocuous_mmap
9550 /* System header to define __stub macros and hopefully few prototypes,
9551 which can conflict with char mmap (); below.
9552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9553 <limits.h> exists even on freestanding compilers. */
9556 # include <limits.h>
9558 # include <assert.h>
9563 /* Override any gcc2 internal prototype to avoid an error. */
9568 /* We use char because int might match the return type of a gcc2
9569 builtin and then its argument prototype would still apply. */
9571 /* The GNU C library defines this for functions which it implements
9572 to always fail with ENOSYS. Some functions are actually named
9573 something starting with __ and the normal name is an alias. */
9574 #if defined (__stub_mmap) || defined (__stub___mmap)
9577 char (*f) () = mmap;
9591 rm -f conftest.
$ac_objext conftest
$ac_exeext
9592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9593 (eval $ac_link) 2>conftest.er1
9595 grep -v '^ *+' conftest.er1
>conftest.err
9597 cat conftest.err
>&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } &&
9600 { ac_try
='test -z "$ac_c_werror_flag"
9601 || test ! -s conftest.err'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; } &&
9607 { ac_try
='test -s conftest$ac_exeext'
9608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; }; then
9615 echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.
$ac_ext >&5
9620 rm -f conftest.err conftest.
$ac_objext \
9621 conftest
$ac_exeext conftest.
$ac_ext
9623 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9624 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9625 if test $ac_cv_func_mmap = yes; then
9631 if test "$gcc_header_sys_mman_h" != yes \
9632 ||
test "$gcc_func_mmap" != yes; then
9633 gcc_cv_func_mmap_file
=no
9634 gcc_cv_func_mmap_dev_zero
=no
9635 gcc_cv_func_mmap_anon
=no
9637 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9638 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9639 if test "${gcc_cv_func_mmap_file+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 # Add a system to this blacklist if
9643 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9644 # memory area containing the same data that you'd get if you applied
9645 # read() to the same fd. The only system known to have a problem here
9646 # is VMS, where text files have record structure.
9649 gcc_cv_func_mmap_file
=no
;;
9651 gcc_cv_func_mmap_file
=yes;;
9654 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9655 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9656 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9657 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9658 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 # Add a system to this blacklist if it has mmap() but /dev/zero
9662 # does not exist, or if mmapping /dev/zero does not give anonymous
9663 # zeroed pages with both the following properties:
9664 # 1. If you map N consecutive pages in with one call, and then
9665 # unmap any subset of those pages, the pages that were not
9666 # explicitly unmapped remain accessible.
9667 # 2. If you map two adjacent blocks of memory and then unmap them
9668 # both at once, they must both go away.
9669 # Systems known to be in this category are Windows (all variants),
9672 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9673 gcc_cv_func_mmap_dev_zero
=no
;;
9675 gcc_cv_func_mmap_dev_zero
=yes;;
9678 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9679 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9681 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9682 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9683 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9684 if test "${gcc_cv_decl_map_anon+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 cat >conftest.
$ac_ext <<_ACEOF
9690 cat confdefs.h
>>conftest.
$ac_ext
9691 cat >>conftest.
$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 #include <sys/types.h>
9694 #include <sys/mman.h>
9697 #ifndef MAP_ANONYMOUS
9698 #define MAP_ANONYMOUS MAP_ANON
9704 int n = MAP_ANONYMOUS;
9709 rm -f conftest.
$ac_objext
9710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9711 (eval $ac_compile) 2>conftest.er1
9713 grep -v '^ *+' conftest.er1
>conftest.err
9715 cat conftest.err
>&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } &&
9718 { ac_try
='test -z "$ac_c_werror_flag"
9719 || test ! -s conftest.err'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try
='test -s conftest.$ac_objext'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; }; then
9731 gcc_cv_decl_map_anon
=yes
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.
$ac_ext >&5
9736 gcc_cv_decl_map_anon
=no
9738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9740 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9741 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9743 if test $gcc_cv_decl_map_anon = no
; then
9744 gcc_cv_func_mmap_anon
=no
9746 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9747 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9748 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9752 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9753 # doesn't give anonymous zeroed pages with the same properties listed
9754 # above for use of /dev/zero.
9755 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9757 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9758 gcc_cv_func_mmap_anon
=no
;;
9760 gcc_cv_func_mmap_anon
=yes;;
9763 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9764 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9768 if test $gcc_cv_func_mmap_file = yes; then
9770 cat >>confdefs.h
<<\_ACEOF
9771 #define HAVE_MMAP_FILE 1
9775 if test $gcc_cv_func_mmap_dev_zero = yes; then
9777 cat >>confdefs.h
<<\_ACEOF
9778 #define HAVE_MMAP_DEV_ZERO 1
9782 if test $gcc_cv_func_mmap_anon = yes; then
9784 cat >>confdefs.h
<<\_ACEOF
9785 #define HAVE_MMAP_ANON 1
9793 # Under VMS, vfork works very differently than on Unix. The standard test
9794 # won't work, and it isn't easily adaptable. It makes more sense to
9796 ac_cv_func_vfork_works
=yes
9799 echo "$as_me:$LINENO: checking for pid_t" >&5
9800 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9801 if test "${ac_cv_type_pid_t+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 cat >conftest.
$ac_ext <<_ACEOF
9807 cat confdefs.h
>>conftest.
$ac_ext
9808 cat >>conftest.
$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 $ac_includes_default
9822 rm -f conftest.
$ac_objext
9823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9824 (eval $ac_compile) 2>conftest.er1
9826 grep -v '^ *+' conftest.er1
>conftest.err
9828 cat conftest.err
>&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try
='test -z "$ac_c_werror_flag"
9832 || test ! -s conftest.err'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; } &&
9838 { ac_try
='test -s conftest.$ac_objext'
9839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; }; then
9844 ac_cv_type_pid_t
=yes
9846 echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.
$ac_ext >&5
9851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9853 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9854 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9855 if test $ac_cv_type_pid_t = yes; then
9859 cat >>confdefs.h
<<_ACEOF
9867 for ac_header
in unistd.h vfork.h
9869 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9870 echo "$as_me:$LINENO: checking for $ac_header" >&5
9871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 cat >conftest.
$ac_ext <<_ACEOF
9878 cat confdefs.h
>>conftest.
$ac_ext
9879 cat >>conftest.
$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9881 #include <$ac_header>
9883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9884 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9886 grep -v '^ *+' conftest.er1
>conftest.err
9888 cat conftest.err
>&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } >/dev
/null
; then
9891 if test -s conftest.err
; then
9892 ac_cpp_err
=$ac_c_preproc_warn_flag
9893 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9900 if test -z "$ac_cpp_err"; then
9901 eval "$as_ac_Header=yes"
9903 echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.
$ac_ext >&5
9906 eval "$as_ac_Header=no"
9908 rm -f conftest.err conftest.
$ac_ext
9910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9913 cat >>confdefs.h
<<_ACEOF
9914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9922 for ac_func
in fork vfork
9924 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9925 echo "$as_me:$LINENO: checking for $ac_func" >&5
9926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9927 if eval "test \"\${$as_ac_var+set}\" = set"; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 cat >conftest.
$ac_ext <<_ACEOF
9933 cat confdefs.h
>>conftest.
$ac_ext
9934 cat >>conftest.
$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9938 #define $ac_func innocuous_$ac_func
9940 /* System header to define __stub macros and hopefully few prototypes,
9941 which can conflict with char $ac_func (); below.
9942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9943 <limits.h> exists even on freestanding compilers. */
9946 # include <limits.h>
9948 # include <assert.h>
9953 /* Override any gcc2 internal prototype to avoid an error. */
9958 /* We use char because int might match the return type of a gcc2
9959 builtin and then its argument prototype would still apply. */
9961 /* The GNU C library defines this for functions which it implements
9962 to always fail with ENOSYS. Some functions are actually named
9963 something starting with __ and the normal name is an alias. */
9964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9967 char (*f) () = $ac_func;
9976 return f != $ac_func;
9981 rm -f conftest.
$ac_objext conftest
$ac_exeext
9982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9983 (eval $ac_link) 2>conftest.er1
9985 grep -v '^ *+' conftest.er1
>conftest.err
9987 cat conftest.err
>&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try
='test -z "$ac_c_werror_flag"
9991 || test ! -s conftest.err'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try
='test -s conftest$ac_exeext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 eval "$as_ac_var=yes"
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.
$ac_ext >&5
10008 eval "$as_ac_var=no"
10010 rm -f conftest.err conftest.
$ac_objext \
10011 conftest
$ac_exeext conftest.
$ac_ext
10013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10015 if test `eval echo '${'$as_ac_var'}'` = yes; then
10016 cat >>confdefs.h
<<_ACEOF
10017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10023 if test "x$ac_cv_func_fork" = xyes
; then
10024 echo "$as_me:$LINENO: checking for working fork" >&5
10025 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10026 if test "${ac_cv_func_fork_works+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 if test "$cross_compiling" = yes; then
10030 ac_cv_func_fork_works
=cross
10032 cat >conftest.
$ac_ext <<_ACEOF
10033 /* By Ruediger Kuhlmann. */
10034 #include <sys/types.h>
10036 # include <unistd.h>
10038 /* Some systems only have a dummy stub for fork() */
10046 rm -f conftest
$ac_exeext
10047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048 (eval $ac_link) 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; }; then
10057 ac_cv_func_fork_works
=yes
10059 echo "$as_me: program exited with status $ac_status" >&5
10060 echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.
$ac_ext >&5
10063 ( exit $ac_status )
10064 ac_cv_func_fork_works
=no
10066 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10069 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10070 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10073 ac_cv_func_fork_works
=$ac_cv_func_fork
10075 if test "x$ac_cv_func_fork_works" = xcross
; then
10077 *-*-amigaos* |
*-*-msdosdjgpp*)
10078 # Override, as these systems have only a dummy fork() stub
10079 ac_cv_func_fork_works
=no
10082 ac_cv_func_fork_works
=yes
10085 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10086 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10088 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10089 if test "x$ac_cv_func_vfork" = xyes
; then
10090 echo "$as_me:$LINENO: checking for working vfork" >&5
10091 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10092 if test "${ac_cv_func_vfork_works+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 if test "$cross_compiling" = yes; then
10096 ac_cv_func_vfork_works
=cross
10098 cat >conftest.
$ac_ext <<_ACEOF
10101 cat confdefs.h
>>conftest.
$ac_ext
10102 cat >>conftest.
$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 /* Thanks to Paul Eggert for this test. */
10106 #include <stdlib.h>
10107 #include <sys/types.h>
10108 #include <sys/stat.h>
10109 #include <sys/wait.h>
10111 # include <unistd.h>
10114 # include <vfork.h>
10116 /* On some sparc systems, changes by the child to local and incoming
10117 argument registers are propagated back to the parent. The compiler
10118 is told about this with #include <vfork.h>, but some compilers
10119 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10120 static variable whose address is put into a register that is
10121 clobbered by the vfork. */
10124 sparc_address_test (int arg)
10126 sparc_address_test (arg) int arg;
10129 static pid_t child;
10147 pid_t parent = getpid ();
10150 sparc_address_test (0);
10155 /* Here is another test for sparc vfork register problems. This
10156 test uses lots of local variables, at least as many local
10157 variables as main has allocated so far including compiler
10158 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10159 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10160 reuse the register of parent for one of the local variables,
10161 since it will think that parent can't possibly be used any more
10162 in this routine. Assigning to the local variable will thus
10163 munge parent in the parent process. */
10165 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10166 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10167 /* Convince the compiler that p..p7 are live; otherwise, it might
10168 use the same hardware register for all 8 local variables. */
10169 if (p != p1 || p != p2 || p != p3 || p != p4
10170 || p != p5 || p != p6 || p != p7)
10173 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10174 from child file descriptors. If the child closes a descriptor
10175 before it execs or exits, this munges the parent's descriptor
10176 as well. Test for this by closing stdout in the child. */
10177 _exit(close(fileno(stdout)) != 0);
10182 while (wait(&status) != child)
10185 /* Was there some problem with vforking? */
10188 /* Did the child fail? (This shouldn't happen.) */
10191 /* Did the vfork/compiler bug occur? */
10192 || parent != getpid()
10194 /* Did the file descriptor bug occur? */
10195 || fstat(fileno(stdout), &st) != 0
10200 rm -f conftest
$ac_exeext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202 (eval $ac_link) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
10211 ac_cv_func_vfork_works
=yes
10213 echo "$as_me: program exited with status $ac_status" >&5
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.
$ac_ext >&5
10217 ( exit $ac_status )
10218 ac_cv_func_vfork_works
=no
10220 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10223 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10224 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10227 if test "x$ac_cv_func_fork_works" = xcross
; then
10228 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10229 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10230 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10233 if test "x$ac_cv_func_vfork_works" = xyes
; then
10235 cat >>confdefs.h
<<\_ACEOF
10236 #define HAVE_WORKING_VFORK 1
10241 cat >>confdefs.h
<<\_ACEOF
10246 if test "x$ac_cv_func_fork_works" = xyes
; then
10248 cat >>confdefs.h
<<\_ACEOF
10249 #define HAVE_WORKING_FORK 1
10256 if test "X$prefix" = "XNONE"; then
10257 acl_final_prefix
="$ac_default_prefix"
10259 acl_final_prefix
="$prefix"
10261 if test "X$exec_prefix" = "XNONE"; then
10262 acl_final_exec_prefix
='${prefix}'
10264 acl_final_exec_prefix
="$exec_prefix"
10266 acl_save_prefix
="$prefix"
10267 prefix
="$acl_final_prefix"
10268 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10269 prefix
="$acl_save_prefix"
10272 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10273 if test "${with_gnu_ld+set}" = set; then
10274 withval
="$with_gnu_ld"
10275 test "$withval" = no || with_gnu_ld
=yes
10279 # Prepare PATH_SEPARATOR.
10280 # The user is always right.
10281 if test "${PATH_SEPARATOR+set}" != set; then
10282 echo "#! /bin/sh" >conf$$.sh
10283 echo "exit 0" >>conf$$.sh
10285 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10293 if test "$GCC" = yes; then
10294 # Check if gcc -print-prog-name=ld gives a path.
10295 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10296 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10299 # gcc leaves a trailing carriage return which upsets mingw
10300 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10302 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10305 # Accept absolute paths.
10306 [\\/]* |
[A-Za-z
]:[\\/]*)
10307 re_direlt
='/[^/][^/]*/\.\./'
10308 # Canonicalize the path of ld
10309 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10310 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10311 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10313 test -z "$LD" && LD
="$ac_prog"
10316 # If it fails, then pretend we aren't using GCC.
10320 # If it is relative, then search for the first ld in PATH.
10321 with_gnu_ld
=unknown
10324 elif test "$with_gnu_ld" = yes; then
10325 echo "$as_me:$LINENO: checking for GNU ld" >&5
10326 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10328 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10329 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10331 if test "${acl_cv_path_LD+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 if test -z "$LD"; then
10335 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10336 for ac_dir
in $PATH; do
10337 test -z "$ac_dir" && ac_dir
=.
10338 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10339 acl_cv_path_LD
="$ac_dir/$ac_prog"
10340 # Check to see if the program is GNU ld. I'd rather use --version,
10341 # but apparently some GNU ld's only accept -v.
10342 # Break only if it was the GNU/non-GNU ld that we prefer.
10343 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10344 test "$with_gnu_ld" != no
&& break
10346 test "$with_gnu_ld" != yes && break
10352 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10356 LD
="$acl_cv_path_LD"
10357 if test -n "$LD"; then
10358 echo "$as_me:$LINENO: result: $LD" >&5
10359 echo "${ECHO_T}$LD" >&6
10361 echo "$as_me:$LINENO: result: no" >&5
10362 echo "${ECHO_T}no" >&6
10364 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10365 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10366 { (exit 1); exit 1; }; }
10367 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10368 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10369 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10373 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10374 acl_cv_prog_gnu_ld
=yes
10376 acl_cv_prog_gnu_ld
=no
10379 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10380 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10381 with_gnu_ld
=$acl_cv_prog_gnu_ld
10385 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10386 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10387 if test "${acl_cv_rpath+set}" = set; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10392 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10394 rm -f .
/conftest.sh
10398 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10399 echo "${ECHO_T}$acl_cv_rpath" >&6
10401 libext
="$acl_cv_libext"
10402 shlibext
="$acl_cv_shlibext"
10403 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10404 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10405 hardcode_direct
="$acl_cv_hardcode_direct"
10406 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10407 # Check whether --enable-rpath or --disable-rpath was given.
10408 if test "${enable_rpath+set}" = set; then
10409 enableval
="$enable_rpath"
10423 acl_save_prefix
="$prefix"
10424 prefix
="$acl_final_prefix"
10425 acl_save_exec_prefix
="$exec_prefix"
10426 exec_prefix
="$acl_final_exec_prefix"
10428 eval additional_includedir
=\"$includedir\"
10429 eval additional_libdir
=\"$libdir\"
10431 exec_prefix
="$acl_save_exec_prefix"
10432 prefix
="$acl_save_prefix"
10435 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10436 if test "${with_libiconv_prefix+set}" = set; then
10437 withval
="$with_libiconv_prefix"
10439 if test "X$withval" = "Xno"; then
10442 if test "X$withval" = "X"; then
10444 acl_save_prefix
="$prefix"
10445 prefix
="$acl_final_prefix"
10446 acl_save_exec_prefix
="$exec_prefix"
10447 exec_prefix
="$acl_final_exec_prefix"
10449 eval additional_includedir
=\"$includedir\"
10450 eval additional_libdir
=\"$libdir\"
10452 exec_prefix
="$acl_save_exec_prefix"
10453 prefix
="$acl_save_prefix"
10456 additional_includedir
="$withval/include"
10457 additional_libdir
="$withval/lib"
10467 names_already_handled
=
10468 names_next_round
='iconv '
10469 while test -n "$names_next_round"; do
10470 names_this_round
="$names_next_round"
10472 for name
in $names_this_round; do
10474 for n
in $names_already_handled; do
10475 if test "$n" = "$name"; then
10476 already_handled
=yes
10480 if test -z "$already_handled"; then
10481 names_already_handled
="$names_already_handled $name"
10482 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10483 eval value
=\"\
$HAVE_LIB$uppername\"
10484 if test -n "$value"; then
10485 if test "$value" = yes; then
10486 eval value
=\"\
$LIB$uppername\"
10487 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10488 eval value
=\"\
$LTLIB$uppername\"
10489 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10498 if test $use_additional = yes; then
10499 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10500 found_dir
="$additional_libdir"
10501 found_so
="$additional_libdir/lib$name.$shlibext"
10502 if test -f "$additional_libdir/lib$name.la"; then
10503 found_la
="$additional_libdir/lib$name.la"
10506 if test -f "$additional_libdir/lib$name.$libext"; then
10507 found_dir
="$additional_libdir"
10508 found_a
="$additional_libdir/lib$name.$libext"
10509 if test -f "$additional_libdir/lib$name.la"; then
10510 found_la
="$additional_libdir/lib$name.la"
10515 if test "X$found_dir" = "X"; then
10516 for x
in $LDFLAGS $LTLIBICONV; do
10518 acl_save_prefix
="$prefix"
10519 prefix
="$acl_final_prefix"
10520 acl_save_exec_prefix
="$exec_prefix"
10521 exec_prefix
="$acl_final_exec_prefix"
10523 exec_prefix
="$acl_save_exec_prefix"
10524 prefix
="$acl_save_prefix"
10528 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10529 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10531 found_so
="$dir/lib$name.$shlibext"
10532 if test -f "$dir/lib$name.la"; then
10533 found_la
="$dir/lib$name.la"
10536 if test -f "$dir/lib$name.$libext"; then
10538 found_a
="$dir/lib$name.$libext"
10539 if test -f "$dir/lib$name.la"; then
10540 found_la
="$dir/lib$name.la"
10546 if test "X$found_dir" != "X"; then
10551 if test "X$found_dir" != "X"; then
10552 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10553 if test "X$found_so" != "X"; then
10554 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10555 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10558 for x
in $ltrpathdirs; do
10559 if test "X$x" = "X$found_dir"; then
10564 if test -z "$haveit"; then
10565 ltrpathdirs
="$ltrpathdirs $found_dir"
10567 if test "$hardcode_direct" = yes; then
10568 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10570 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10571 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10573 for x
in $rpathdirs; do
10574 if test "X$x" = "X$found_dir"; then
10579 if test -z "$haveit"; then
10580 rpathdirs
="$rpathdirs $found_dir"
10584 for x
in $LDFLAGS $LIBICONV; do
10586 acl_save_prefix
="$prefix"
10587 prefix
="$acl_final_prefix"
10588 acl_save_exec_prefix
="$exec_prefix"
10589 exec_prefix
="$acl_final_exec_prefix"
10591 exec_prefix
="$acl_save_exec_prefix"
10592 prefix
="$acl_save_prefix"
10594 if test "X$x" = "X-L$found_dir"; then
10599 if test -z "$haveit"; then
10600 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10602 if test "$hardcode_minus_L" != no
; then
10603 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10605 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10611 if test "X$found_a" != "X"; then
10612 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10614 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10617 additional_includedir
=
10618 case "$found_dir" in
10620 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10621 additional_includedir
="$basedir/include"
10624 if test "X$additional_includedir" != "X"; then
10625 if test "X$additional_includedir" != "X/usr/include"; then
10627 if test "X$additional_includedir" = "X/usr/local/include"; then
10628 if test -n "$GCC"; then
10630 linux
*) haveit
=yes;;
10634 if test -z "$haveit"; then
10635 for x
in $CPPFLAGS $INCICONV; do
10637 acl_save_prefix
="$prefix"
10638 prefix
="$acl_final_prefix"
10639 acl_save_exec_prefix
="$exec_prefix"
10640 exec_prefix
="$acl_final_exec_prefix"
10642 exec_prefix
="$acl_save_exec_prefix"
10643 prefix
="$acl_save_prefix"
10645 if test "X$x" = "X-I$additional_includedir"; then
10650 if test -z "$haveit"; then
10651 if test -d "$additional_includedir"; then
10652 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10658 if test -n "$found_la"; then
10659 save_libdir
="$libdir"
10660 case "$found_la" in
10661 */* |
*\\*) .
"$found_la" ;;
10662 *) .
"./$found_la" ;;
10664 libdir
="$save_libdir"
10665 for dep
in $dependency_libs; do
10668 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10669 if test "X$additional_libdir" != "X/usr/lib"; then
10671 if test "X$additional_libdir" = "X/usr/local/lib"; then
10672 if test -n "$GCC"; then
10674 linux
*) haveit
=yes;;
10678 if test -z "$haveit"; then
10680 for x
in $LDFLAGS $LIBICONV; do
10682 acl_save_prefix
="$prefix"
10683 prefix
="$acl_final_prefix"
10684 acl_save_exec_prefix
="$exec_prefix"
10685 exec_prefix
="$acl_final_exec_prefix"
10687 exec_prefix
="$acl_save_exec_prefix"
10688 prefix
="$acl_save_prefix"
10690 if test "X$x" = "X-L$additional_libdir"; then
10695 if test -z "$haveit"; then
10696 if test -d "$additional_libdir"; then
10697 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10701 for x
in $LDFLAGS $LTLIBICONV; do
10703 acl_save_prefix
="$prefix"
10704 prefix
="$acl_final_prefix"
10705 acl_save_exec_prefix
="$exec_prefix"
10706 exec_prefix
="$acl_final_exec_prefix"
10708 exec_prefix
="$acl_save_exec_prefix"
10709 prefix
="$acl_save_prefix"
10711 if test "X$x" = "X-L$additional_libdir"; then
10716 if test -z "$haveit"; then
10717 if test -d "$additional_libdir"; then
10718 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10725 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10726 if test "$enable_rpath" != no
; then
10728 for x
in $rpathdirs; do
10729 if test "X$x" = "X$dir"; then
10734 if test -z "$haveit"; then
10735 rpathdirs
="$rpathdirs $dir"
10738 for x
in $ltrpathdirs; do
10739 if test "X$x" = "X$dir"; then
10744 if test -z "$haveit"; then
10745 ltrpathdirs
="$ltrpathdirs $dir"
10750 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10753 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10756 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10757 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10763 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10764 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10770 if test "X$rpathdirs" != "X"; then
10771 if test -n "$hardcode_libdir_separator"; then
10773 for found_dir
in $rpathdirs; do
10774 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10776 acl_save_libdir
="$libdir"
10778 eval flag
=\"$hardcode_libdir_flag_spec\"
10779 libdir
="$acl_save_libdir"
10780 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10782 for found_dir
in $rpathdirs; do
10783 acl_save_libdir
="$libdir"
10784 libdir
="$found_dir"
10785 eval flag
=\"$hardcode_libdir_flag_spec\"
10786 libdir
="$acl_save_libdir"
10787 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10791 if test "X$ltrpathdirs" != "X"; then
10792 for found_dir
in $ltrpathdirs; do
10793 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10803 am_save_CPPFLAGS
="$CPPFLAGS"
10805 for element
in $INCICONV; do
10807 for x
in $CPPFLAGS; do
10809 acl_save_prefix
="$prefix"
10810 prefix
="$acl_final_prefix"
10811 acl_save_exec_prefix
="$exec_prefix"
10812 exec_prefix
="$acl_final_exec_prefix"
10814 exec_prefix
="$acl_save_exec_prefix"
10815 prefix
="$acl_save_prefix"
10817 if test "X$x" = "X$element"; then
10822 if test -z "$haveit"; then
10823 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10828 echo "$as_me:$LINENO: checking for iconv" >&5
10829 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10830 if test "${am_cv_func_iconv+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 am_cv_func_iconv
="no, consider installing GNU libiconv"
10836 cat >conftest.
$ac_ext <<_ACEOF
10839 cat confdefs.h
>>conftest.
$ac_ext
10840 cat >>conftest.
$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 #include <stdlib.h>
10847 iconv_t cd = iconv_open("","");
10848 iconv(cd,NULL,NULL,NULL,NULL);
10854 rm -f conftest.
$ac_objext conftest
$ac_exeext
10855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10856 (eval $ac_link) 2>conftest.er1
10858 grep -v '^ *+' conftest.er1
>conftest.err
10860 cat conftest.err
>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try
='test -z "$ac_c_werror_flag"
10864 || test ! -s conftest.err'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; } &&
10870 { ac_try
='test -s conftest$ac_exeext'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; }; then
10876 am_cv_func_iconv
=yes
10878 echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.
$ac_ext >&5
10882 rm -f conftest.err conftest.
$ac_objext \
10883 conftest
$ac_exeext conftest.
$ac_ext
10884 if test "$am_cv_func_iconv" != yes; then
10885 am_save_LIBS
="$LIBS"
10886 LIBS
="$LIBS $LIBICONV"
10887 cat >conftest.
$ac_ext <<_ACEOF
10890 cat confdefs.h
>>conftest.
$ac_ext
10891 cat >>conftest.
$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10893 #include <stdlib.h>
10898 iconv_t cd = iconv_open("","");
10899 iconv(cd,NULL,NULL,NULL,NULL);
10905 rm -f conftest.
$ac_objext conftest
$ac_exeext
10906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10907 (eval $ac_link) 2>conftest.er1
10909 grep -v '^ *+' conftest.er1
>conftest.err
10911 cat conftest.err
>&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } &&
10914 { ac_try
='test -z "$ac_c_werror_flag"
10915 || test ! -s conftest.err'
10916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917 (eval $ac_try) 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; } &&
10921 { ac_try
='test -s conftest$ac_exeext'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; }; then
10927 am_cv_lib_iconv
=yes
10928 am_cv_func_iconv
=yes
10930 echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.
$ac_ext >&5
10934 rm -f conftest.err conftest.
$ac_objext \
10935 conftest
$ac_exeext conftest.
$ac_ext
10936 LIBS
="$am_save_LIBS"
10940 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10941 echo "${ECHO_T}$am_cv_func_iconv" >&6
10942 if test "$am_cv_func_iconv" = yes; then
10944 cat >>confdefs.h
<<\_ACEOF
10945 #define HAVE_ICONV 1
10949 if test "$am_cv_lib_iconv" = yes; then
10950 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10951 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10952 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10953 echo "${ECHO_T}$LIBICONV" >&6
10955 CPPFLAGS
="$am_save_CPPFLAGS"
10962 if test "$am_cv_func_iconv" = yes; then
10963 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10964 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10965 if test "${am_cv_proto_iconv+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 cat >conftest.
$ac_ext <<_ACEOF
10972 cat confdefs.h
>>conftest.
$ac_ext
10973 cat >>conftest.
$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10976 #include <stdlib.h>
10982 #if defined(__STDC__) || defined(__cplusplus)
10983 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10996 rm -f conftest.
$ac_objext
10997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10998 (eval $ac_compile) 2>conftest.er1
11000 grep -v '^ *+' conftest.er1
>conftest.err
11002 cat conftest.err
>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try
='test -z "$ac_c_werror_flag"
11006 || test ! -s conftest.err'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; } &&
11012 { ac_try
='test -s conftest.$ac_objext'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 am_cv_proto_iconv_arg1
=""
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.
$ac_ext >&5
11023 am_cv_proto_iconv_arg1
="const"
11025 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11026 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);"
11029 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11030 echo "$as_me:$LINENO: result: ${ac_t:-
11031 }$am_cv_proto_iconv" >&5
11032 echo "${ECHO_T}${ac_t:-
11033 }$am_cv_proto_iconv" >&6
11035 cat >>confdefs.h
<<_ACEOF
11036 #define ICONV_CONST $am_cv_proto_iconv_arg1
11041 # Until we have in-tree GNU iconv:
11046 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11047 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11048 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 cat >conftest.
$ac_ext <<_ACEOF
11054 cat confdefs.h
>>conftest.
$ac_ext
11055 cat >>conftest.
$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 #include <locale.h>
11066 rm -f conftest.
$ac_objext conftest
$ac_exeext
11067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11068 (eval $ac_link) 2>conftest.er1
11070 grep -v '^ *+' conftest.er1
>conftest.err
11072 cat conftest.err
>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
11075 { ac_try
='test -z "$ac_c_werror_flag"
11076 || test ! -s conftest.err'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; } &&
11082 { ac_try
='test -s conftest$ac_exeext'
11083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 (eval $ac_try) 2>&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; }; then
11088 am_cv_val_LC_MESSAGES
=yes
11090 echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.
$ac_ext >&5
11093 am_cv_val_LC_MESSAGES
=no
11095 rm -f conftest.err conftest.
$ac_objext \
11096 conftest
$ac_exeext conftest.
$ac_ext
11098 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11099 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11100 if test $am_cv_val_LC_MESSAGES = yes; then
11102 cat >>confdefs.h
<<\_ACEOF
11103 #define HAVE_LC_MESSAGES 1
11110 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11111 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11112 if test "${am_cv_langinfo_codeset+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 cat >conftest.
$ac_ext <<_ACEOF
11118 cat confdefs.h
>>conftest.
$ac_ext
11119 cat >>conftest.
$ac_ext <<_ACEOF
11120 /* end confdefs.h. */
11121 #include <langinfo.h>
11125 char* cs = nl_langinfo(CODESET);
11130 rm -f conftest.
$ac_objext conftest
$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132 (eval $ac_link) 2>conftest.er1
11134 grep -v '^ *+' conftest.er1
>conftest.err
11136 cat conftest.err
>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
11139 { ac_try
='test -z "$ac_c_werror_flag"
11140 || test ! -s conftest.err'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; } &&
11146 { ac_try
='test -s conftest$ac_exeext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 am_cv_langinfo_codeset
=yes
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.
$ac_ext >&5
11157 am_cv_langinfo_codeset
=no
11159 rm -f conftest.err conftest.
$ac_objext \
11160 conftest
$ac_exeext conftest.
$ac_ext
11163 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11164 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11165 if test $am_cv_langinfo_codeset = yes; then
11167 cat >>confdefs.h
<<\_ACEOF
11168 #define HAVE_LANGINFO_CODESET 1
11174 # We will need to find libiberty.h and ansidecl.h
11175 saved_CFLAGS
="$CFLAGS"
11176 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11216 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11217 strsignal strstr strverscmp \
11218 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11219 free
basename getopt
clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
11221 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11222 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11223 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11224 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11227 cat >conftest.
$ac_ext <<_ACEOF
11230 cat confdefs.h
>>conftest.
$ac_ext
11231 cat >>conftest.
$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11234 #define $ac_tr_decl 1
11236 #include "ansidecl.h"
11237 #include "system.h"
11243 char *(*pfn) = (char *(*)) $ac_func ;
11249 rm -f conftest.
$ac_objext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251 (eval $ac_compile) 2>conftest.er1
11253 grep -v '^ *+' conftest.er1
>conftest.err
11255 cat conftest.err
>&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try
='test -z "$ac_c_werror_flag"
11259 || test ! -s conftest.err'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try
='test -s conftest.$ac_objext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 eval "gcc_cv_have_decl_$ac_func=yes"
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.
$ac_ext >&5
11276 eval "gcc_cv_have_decl_$ac_func=no"
11278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11281 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11282 echo "$as_me:$LINENO: result: yes" >&5
11283 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11284 #define $ac_tr_decl 1
11288 echo "$as_me:$LINENO: result: no" >&5
11289 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11290 #define $ac_tr_decl 0
11301 for ac_func
in getrlimit setrlimit getrusage
11303 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11304 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11305 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11306 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 cat >conftest.
$ac_ext <<_ACEOF
11312 cat confdefs.h
>>conftest.
$ac_ext
11313 cat >>conftest.
$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11316 #define $ac_tr_decl 1
11318 #include "ansidecl.h"
11319 #include "system.h"
11320 #ifdef HAVE_SYS_RESOURCE_H
11321 #include <sys/resource.h>
11329 char *(*pfn) = (char *(*)) $ac_func ;
11335 rm -f conftest.
$ac_objext
11336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11337 (eval $ac_compile) 2>conftest.er1
11339 grep -v '^ *+' conftest.er1
>conftest.err
11341 cat conftest.err
>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } &&
11344 { ac_try
='test -z "$ac_c_werror_flag"
11345 || test ! -s conftest.err'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; } &&
11351 { ac_try
='test -s conftest.$ac_objext'
11352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353 (eval $ac_try) 2>&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; }; then
11357 eval "gcc_cv_have_decl_$ac_func=yes"
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.
$ac_ext >&5
11362 eval "gcc_cv_have_decl_$ac_func=no"
11364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11367 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11368 echo "$as_me:$LINENO: result: yes" >&5
11369 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11370 #define $ac_tr_decl 1
11374 echo "$as_me:$LINENO: result: no" >&5
11375 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11376 #define $ac_tr_decl 0
11384 cat >conftest.
$ac_ext <<_ACEOF
11387 cat confdefs.h
>>conftest.
$ac_ext
11388 cat >>conftest.
$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11391 #include "ansidecl.h"
11392 #include "system.h"
11393 #ifdef HAVE_SYS_RESOURCE_H
11394 #include <sys/resource.h>
11405 rm -f conftest.
$ac_objext
11406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11407 (eval $ac_compile) 2>conftest.er1
11409 grep -v '^ *+' conftest.er1
>conftest.err
11411 cat conftest.err
>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try
='test -z "$ac_c_werror_flag"
11415 || test ! -s conftest.err'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; } &&
11421 { ac_try
='test -s conftest.$ac_objext'
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.
$ac_ext >&5
11433 cat >>confdefs.h
<<\_ACEOF
11434 #define rlim_t long
11438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11440 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11441 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11442 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11443 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11445 for ac_func
in ldgetname
11447 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11448 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11449 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11450 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 cat >conftest.
$ac_ext <<_ACEOF
11456 cat confdefs.h
>>conftest.
$ac_ext
11457 cat >>conftest.
$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11460 #define $ac_tr_decl 1
11462 #include "ansidecl.h"
11463 #include "system.h"
11464 #ifdef HAVE_LDFCN_H
11475 char *(*pfn) = (char *(*)) $ac_func ;
11481 rm -f conftest.
$ac_objext
11482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11483 (eval $ac_compile) 2>conftest.er1
11485 grep -v '^ *+' conftest.er1
>conftest.err
11487 cat conftest.err
>&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try
='test -z "$ac_c_werror_flag"
11491 || test ! -s conftest.err'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try
='test -s conftest.$ac_objext'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; }; then
11503 eval "gcc_cv_have_decl_$ac_func=yes"
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.
$ac_ext >&5
11508 eval "gcc_cv_have_decl_$ac_func=no"
11510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11513 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11514 echo "$as_me:$LINENO: result: yes" >&5
11515 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11516 #define $ac_tr_decl 1
11520 echo "$as_me:$LINENO: result: no" >&5
11521 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11522 #define $ac_tr_decl 0
11531 for ac_func
in times
11533 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11534 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11535 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11536 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 cat >conftest.
$ac_ext <<_ACEOF
11542 cat confdefs.h
>>conftest.
$ac_ext
11543 cat >>conftest.
$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11546 #define $ac_tr_decl 1
11548 #include "ansidecl.h"
11549 #include "system.h"
11550 #ifdef HAVE_SYS_TIMES_H
11551 #include <sys/times.h>
11559 char *(*pfn) = (char *(*)) $ac_func ;
11565 rm -f conftest.
$ac_objext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11567 (eval $ac_compile) 2>conftest.er1
11569 grep -v '^ *+' conftest.er1
>conftest.err
11571 cat conftest.err
>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try
='test -z "$ac_c_werror_flag"
11575 || test ! -s conftest.err'
11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; } &&
11581 { ac_try
='test -s conftest.$ac_objext'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 eval "gcc_cv_have_decl_$ac_func=yes"
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.
$ac_ext >&5
11592 eval "gcc_cv_have_decl_$ac_func=no"
11594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11597 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11598 echo "$as_me:$LINENO: result: yes" >&5
11599 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11600 #define $ac_tr_decl 1
11604 echo "$as_me:$LINENO: result: no" >&5
11605 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11606 #define $ac_tr_decl 0
11614 # More time-related stuff.
11615 echo "$as_me:$LINENO: checking for struct tms" >&5
11616 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11617 if test "${ac_cv_struct_tms+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 cat >conftest.
$ac_ext <<_ACEOF
11624 cat confdefs.h
>>conftest.
$ac_ext
11625 cat >>conftest.
$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11628 #include "ansidecl.h"
11629 #include "system.h"
11630 #ifdef HAVE_SYS_TIMES_H
11631 #include <sys/times.h>
11642 rm -f conftest.
$ac_objext
11643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11644 (eval $ac_compile) 2>conftest.er1
11646 grep -v '^ *+' conftest.er1
>conftest.err
11648 cat conftest.err
>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try
='test -z "$ac_c_werror_flag"
11652 || test ! -s conftest.err'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; } &&
11658 { ac_try
='test -s conftest.$ac_objext'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
11664 ac_cv_struct_tms
=yes
11666 echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.
$ac_ext >&5
11669 ac_cv_struct_tms
=no
11671 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11673 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11674 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11675 if test $ac_cv_struct_tms = yes; then
11677 cat >>confdefs.h
<<\_ACEOF
11678 #define HAVE_STRUCT_TMS 1
11683 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11684 # revisit after autoconf 2.50.
11685 echo "$as_me:$LINENO: checking for clock_t" >&5
11686 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11687 if test "${gcc_cv_type_clock_t+set}" = set; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 cat >conftest.
$ac_ext <<_ACEOF
11694 cat confdefs.h
>>conftest.
$ac_ext
11695 cat >>conftest.
$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11698 #include "ansidecl.h"
11699 #include "system.h"
11709 rm -f conftest.
$ac_objext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11711 (eval $ac_compile) 2>conftest.er1
11713 grep -v '^ *+' conftest.er1
>conftest.err
11715 cat conftest.err
>&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try
='test -z "$ac_c_werror_flag"
11719 || test ! -s conftest.err'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; } &&
11725 { ac_try
='test -s conftest.$ac_objext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 gcc_cv_type_clock_t
=yes
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.
$ac_ext >&5
11736 gcc_cv_type_clock_t
=no
11738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11740 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11741 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11742 if test $gcc_cv_type_clock_t = yes; then
11744 cat >>confdefs.h
<<\_ACEOF
11745 #define HAVE_CLOCK_T 1
11750 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11751 CFLAGS
="$saved_CFLAGS"
11753 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11754 if test "${enable_initfini_array+set}" = set; then
11755 enableval
="$enable_initfini_array"
11759 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11760 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11761 if test "${gcc_cv_initfini_array+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 if test "$cross_compiling" = yes; then
11765 gcc_cv_initfini_array
=no
11767 cat >conftest.
$ac_ext <<_ACEOF
11770 cat confdefs.h
>>conftest.
$ac_ext
11771 cat >>conftest.
$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11775 int main (void) { return x; }
11776 int foo (void) { x = 0; }
11777 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11779 rm -f conftest
$ac_exeext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781 (eval $ac_link) 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 gcc_cv_initfini_array
=yes
11792 echo "$as_me: program exited with status $ac_status" >&5
11793 echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.
$ac_ext >&5
11796 ( exit $ac_status )
11797 gcc_cv_initfini_array
=no
11799 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11802 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11803 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11804 enable_initfini_array
=$gcc_cv_initfini_array
11807 if test $enable_initfini_array = yes; then
11809 cat >>confdefs.h
<<\_ACEOF
11810 #define HAVE_INITFINI_ARRAY 1
11815 # mkdir takes a single argument on some systems.
11816 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11817 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11818 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 cat >conftest.
$ac_ext <<_ACEOF
11824 cat confdefs.h
>>conftest.
$ac_ext
11825 cat >>conftest.
$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11828 #include <sys/types.h>
11829 #ifdef HAVE_SYS_STAT_H
11830 # include <sys/stat.h>
11832 #ifdef HAVE_UNISTD_H
11833 # include <unistd.h>
11835 #ifdef HAVE_DIRECT_H
11836 # include <direct.h>
11846 rm -f conftest.
$ac_objext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848 (eval $ac_compile) 2>conftest.er1
11850 grep -v '^ *+' conftest.er1
>conftest.err
11852 cat conftest.err
>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try
='test -z "$ac_c_werror_flag"
11856 || test ! -s conftest.err'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; } &&
11862 { ac_try
='test -s conftest.$ac_objext'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then
11868 gcc_cv_mkdir_takes_one_arg
=no
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.
$ac_ext >&5
11873 gcc_cv_mkdir_takes_one_arg
=yes
11875 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11877 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11878 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11879 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11881 cat >>confdefs.h
<<\_ACEOF
11882 #define MKDIR_TAKES_ONE_ARG 1
11894 # With Setjmp/Longjmp based exception handling.
11895 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11896 if test "${enable_sjlj_exceptions+set}" = set; then
11897 enableval
="$enable_sjlj_exceptions"
11898 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11900 cat >>confdefs.h
<<_ACEOF
11901 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11906 # For platforms with the unwind ABI which includes an unwind library,
11907 # libunwind, we can choose to use the system libunwind.
11909 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11910 if test "${with_system_libunwind+set}" = set; then
11911 withval
="$with_system_libunwind"
11915 # --------------------------------------------------------
11916 # Build, host, and target specific configuration fragments
11917 # --------------------------------------------------------
11919 # Collect build-machine-specific information.
11920 .
${srcdir}/config.build
11922 # Collect host-machine-specific information.
11923 .
${srcdir}/config.
host
11927 # Collect target-machine-specific information.
11928 .
${srcdir}/config.gcc
11930 extra_objs
="${host_extra_objs} ${extra_objs}"
11931 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11933 # Default the target-machine variables that were not explicitly set.
11934 if test x
"$tm_file" = x
11935 then tm_file
=$cpu_type/$cpu_type.h
; fi
11937 if test x
"$extra_headers" = x
11938 then extra_headers
=; fi
11940 if test x
$md_file = x
11941 then md_file
=$cpu_type/$cpu_type.md
; fi
11943 if test x
$out_file = x
11944 then out_file
=$cpu_type/$cpu_type.c
; fi
11946 if test x
"$tmake_file" = x
11947 then tmake_file
=$cpu_type/t-
$cpu_type
11950 if test x
"$dwarf2" = xyes
11951 then tm_file
="$tm_file tm-dwarf2.h"
11954 # Say what files are being used for the output code and MD file.
11955 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11956 echo "Using \`$srcdir/config/$md_file' as machine description file."
11958 # If any of the xm_file variables contain nonexistent files, warn
11959 # about them and drop them.
11962 for x
in $build_xm_file; do
11963 if test -f $srcdir/config
/$x
11965 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11966 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11969 build_xm_file
="$bx"
11972 for x
in $host_xm_file; do
11973 if test -f $srcdir/config
/$x
11975 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11976 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11982 for x
in $xm_file; do
11983 if test -f $srcdir/config
/$x
11985 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11986 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11992 for f
in $tm_file; do
11995 if test $count = ax
; then
11996 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11998 echo "Using the following target machine macro files:"
11999 for f
in $tm_file; do
12000 echo " $srcdir/config/$f"
12004 if test x
$need_64bit_hwint = xyes
; then
12006 cat >>confdefs.h
<<\_ACEOF
12007 #define NEED_64BIT_HOST_WIDE_INT 1
12012 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12014 cat >>confdefs.h
<<\_ACEOF
12015 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12021 for f
in $host_xm_file; do
12024 if test $count = a
; then
12026 elif test $count = ax
; then
12027 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12029 echo "Using the following host machine macro files:"
12030 for f
in $host_xm_file; do
12031 echo " $srcdir/config/$f"
12034 echo "Using ${out_host_hook_obj} for host machine hooks."
12036 if test "$host_xm_file" != "$build_xm_file"; then
12038 for f
in $build_xm_file; do
12041 if test $count = a
; then
12043 elif test $count = ax
; then
12044 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12046 echo "Using the following build machine macro files:"
12047 for f
in $build_xm_file; do
12048 echo " $srcdir/config/$f"
12057 # Check if a valid thread package
12058 case ${enable_threads} in
12061 target_thread_file
='single'
12065 target_thread_file
='single'
12067 aix | dce | gnat | irix | posix | posix95 | rtems | \
12068 single | solaris | vxworks | win32
)
12069 target_thread_file
=${enable_threads}
12072 echo "${enable_threads} is an unknown thread package" 1>&2
12077 if test x
${thread_file} = x
; then
12078 # No thread file set by target-specific clauses in config.gcc,
12079 # so use file chosen by default logic above
12080 thread_file
=${target_thread_file}
12083 # Make gthr-default.h if we have a thread file.
12085 if test $thread_file != single
; then
12086 rm -f gthr-default.h
12087 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12088 gthread_flags
=-DHAVE_GTHR_DEFAULT
12097 if test x
$enable___cxa_atexit = xyes || \
12098 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12099 if test x
$host = x
$target; then
12100 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12101 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12102 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 cat >conftest.
$ac_ext <<_ACEOF
12108 cat confdefs.h
>>conftest.
$ac_ext
12109 cat >>conftest.
$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12113 #define __cxa_atexit innocuous___cxa_atexit
12115 /* System header to define __stub macros and hopefully few prototypes,
12116 which can conflict with char __cxa_atexit (); below.
12117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12118 <limits.h> exists even on freestanding compilers. */
12121 # include <limits.h>
12123 # include <assert.h>
12126 #undef __cxa_atexit
12128 /* Override any gcc2 internal prototype to avoid an error. */
12133 /* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12135 char __cxa_atexit ();
12136 /* The GNU C library defines this for functions which it implements
12137 to always fail with ENOSYS. Some functions are actually named
12138 something starting with __ and the normal name is an alias. */
12139 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12142 char (*f) () = __cxa_atexit;
12151 return f != __cxa_atexit;
12156 rm -f conftest.
$ac_objext conftest
$ac_exeext
12157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12158 (eval $ac_link) 2>conftest.er1
12160 grep -v '^ *+' conftest.er1
>conftest.err
12162 cat conftest.err
>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try
='test -z "$ac_c_werror_flag"
12166 || test ! -s conftest.err'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try
='test -s conftest$ac_exeext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178 ac_cv_func___cxa_atexit
=yes
12180 echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.
$ac_ext >&5
12183 ac_cv_func___cxa_atexit
=no
12185 rm -f conftest.err conftest.
$ac_objext \
12186 conftest
$ac_exeext conftest.
$ac_ext
12188 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12189 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12190 if test $ac_cv_func___cxa_atexit = yes; then
12193 echo "__cxa_atexit can't be enabled on this target"
12197 # We can't check for __cxa_atexit when building a cross, so assume
12201 if test x
$use_cxa_atexit = xyes
; then
12203 cat >>confdefs.h
<<\_ACEOF
12204 #define DEFAULT_USE_CXA_ATEXIT 1
12210 # Look for a file containing extra machine modes.
12211 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12212 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12215 cat >>confdefs.h
<<_ACEOF
12216 #define EXTRA_MODES_FILE "config/$extra_modes"
12221 # Convert extra_options into a form suitable for Makefile use.
12223 for f
in $extra_options; do
12224 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12228 # auto-host.h is the file containing items generated by autoconf and is
12229 # the first file included by config.h.
12230 # If host=build, it is correct to have bconfig include auto-host.h
12231 # as well. If host!=build, we are in error and need to do more
12232 # work to find out the build config parameters.
12233 if test x
$host = x
$build
12235 build_auto
=auto-host.h
12237 # We create a subdir, then run autoconf in the subdir.
12238 # To prevent recursion we set host and build for the new
12239 # invocation of configure to the build for this invocation
12246 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12247 *) realsrcdir
=..
/${srcdir};;
12249 saved_CFLAGS
="${CFLAGS}"
12250 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12251 ${realsrcdir}/configure \
12252 --enable-languages=${enable_languages-all} \
12253 --target=$target_alias --host=$build_alias --build=$build_alias
12254 CFLAGS
="${saved_CFLAGS}"
12256 # We just finished tests for the build machine, so rename
12257 # the file auto-build.h in the gcc directory.
12258 mv auto-host.h ..
/auto-build.h
12261 build_auto
=auto-build.h
12265 tm_file
="${tm_file} defaults.h"
12266 tm_p_file
="${tm_p_file} tm-preds.h"
12267 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12268 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12269 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12270 # put this back in temporarily.
12271 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12277 # Compile in configure arguments.
12278 if test -f configargs.h
; then
12279 # Being re-configured.
12280 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12281 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12283 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12286 # Double all backslashes and backslash all quotes to turn
12287 # gcc_config_arguments into a C string.
12288 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12289 $gcc_config_arguments
12291 gcc_config_arguments_str
=`cat conftest.out`
12294 cat > configargs.h
<<EOF
12295 /* Generated automatically. */
12296 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12297 static const char thread_model[] = "$thread_file";
12299 static const struct {
12300 const char *name, *value;
12301 } configure_default_options[] = $configure_default_options;
12304 # Internationalization
12305 # If we haven't got the data from the intl directory,
12306 # assume NLS is disabled.
12314 if test -f ..
/intl
/config.intl
; then
12315 . ..
/intl
/config.intl
12317 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12318 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12319 if test x
"$USE_NLS" != xyes
; then
12320 echo "$as_me:$LINENO: result: no" >&5
12321 echo "${ECHO_T}no" >&6
12323 echo "$as_me:$LINENO: result: yes" >&5
12324 echo "${ECHO_T}yes" >&6
12326 cat >>confdefs.h
<<\_ACEOF
12327 #define ENABLE_NLS 1
12331 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12332 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12333 # Look for .po and .gmo files in the source directory.
12336 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12337 # If there aren't any .gmo files the shell will give us the
12338 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12340 case "$cat" in *\
**)
12343 # The quadruple backslash is collapsed to a double backslash
12344 # by the backticks, then collapsed again by the double quotes,
12345 # leaving us with one backslash in the sed expression (right
12346 # before the dot that mustn't act as a wildcard).
12347 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12348 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12349 # The user is allowed to set LINGUAS to a list of languages to
12350 # install catalogs for. If it's empty that means "all of them."
12351 if test "x$LINGUAS" = x
; then
12352 CATALOGS
="$CATALOGS $cat"
12353 XLINGUAS
="$XLINGUAS $lang"
12355 case "$LINGUAS" in *$lang*)
12356 CATALOGS
="$CATALOGS $cat"
12357 XLINGUAS
="$XLINGUAS $lang"
12362 LINGUAS
="$XLINGUAS"
12363 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12364 echo "${ECHO_T}$LINGUAS" >&6
12367 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12368 # -liconv on the link line twice.
12369 case "$LIBINTL" in *$LIBICONV*)
12373 # Check whether --enable-secureplt or --disable-secureplt was given.
12374 if test "${enable_secureplt+set}" = set; then
12375 enableval
="$enable_secureplt"
12379 # Windows32 Registry support for specifying GCC installation paths.
12380 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12381 if test "${enable_win32_registry+set}" = set; then
12382 enableval
="$enable_win32_registry"
12387 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12388 if test "x$enable_win32_registry" != xno
; then
12389 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12390 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12391 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 ac_func_search_save_LIBS
=$LIBS
12395 ac_cv_search_RegOpenKeyExA
=no
12396 cat >conftest.
$ac_ext <<_ACEOF
12399 cat confdefs.h
>>conftest.
$ac_ext
12400 cat >>conftest.
$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12403 /* Override any gcc2 internal prototype to avoid an error. */
12407 /* We use char because int might match the return type of a gcc2
12408 builtin and then its argument prototype would still apply. */
12409 char RegOpenKeyExA ();
12418 rm -f conftest.
$ac_objext conftest
$ac_exeext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420 (eval $ac_link) 2>conftest.er1
12422 grep -v '^ *+' conftest.er1
>conftest.err
12424 cat conftest.err
>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try
='test -z "$ac_c_werror_flag"
12428 || test ! -s conftest.err'
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); }; } &&
12434 { ac_try
='test -s conftest$ac_exeext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_cv_search_RegOpenKeyExA
="none required"
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.
$ac_ext >&5
12446 rm -f conftest.err conftest.
$ac_objext \
12447 conftest
$ac_exeext conftest.
$ac_ext
12448 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12449 for ac_lib
in advapi32
; do
12450 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12451 cat >conftest.
$ac_ext <<_ACEOF
12454 cat confdefs.h
>>conftest.
$ac_ext
12455 cat >>conftest.
$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12458 /* Override any gcc2 internal prototype to avoid an error. */
12462 /* We use char because int might match the return type of a gcc2
12463 builtin and then its argument prototype would still apply. */
12464 char RegOpenKeyExA ();
12473 rm -f conftest.
$ac_objext conftest
$ac_exeext
12474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12475 (eval $ac_link) 2>conftest.er1
12477 grep -v '^ *+' conftest.er1
>conftest.err
12479 cat conftest.err
>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try
='test -z "$ac_c_werror_flag"
12483 || test ! -s conftest.err'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; } &&
12489 { ac_try
='test -s conftest$ac_exeext'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12498 echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.
$ac_ext >&5
12502 rm -f conftest.err conftest.
$ac_objext \
12503 conftest
$ac_exeext conftest.
$ac_ext
12506 LIBS
=$ac_func_search_save_LIBS
12508 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12509 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12510 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12511 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12514 enable_win32_registry
=no
12519 if test "x$enable_win32_registry" != xno
; then
12521 cat >>confdefs.h
<<\_ACEOF
12522 #define ENABLE_WIN32_REGISTRY 1
12526 if test "x$enable_win32_registry" != xyes \
12527 && test "x$enable_win32_registry" != x
; then
12529 cat >>confdefs.h
<<_ACEOF
12530 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12538 # Get an absolute path to the GCC top-level source directory
12539 holddir
=`${PWDCMD-pwd}`
12541 topdir
=`${PWDCMD-pwd}`
12544 # Conditionalize the makefile for this host machine.
12546 for f
in ${host_xmake_file}
12548 if test -f ${srcdir}/config
/$f
12550 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12554 # Conditionalize the makefile for this target machine.
12556 for f
in ${tmake_file}
12558 if test -f ${srcdir}/config
/$f
12560 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12563 tmake_file
="${tmake_file_}"
12565 # If the host doesn't support symlinks, modify CC in
12566 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12567 # Otherwise, we can use "CC=$(CC)".
12571 cc_set_by_configure
="\$(CC)"
12572 quoted_cc_set_by_configure
="\$(CC)"
12573 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12574 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12577 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12578 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12579 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12580 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12584 # This is a terrible hack which will go away some day.
12585 host_cc_for_libada
=${CC}
12588 out_object_file
=`basename $out_file .c`.o
12590 tm_file_list
="options.h"
12591 tm_include_list
="options.h"
12592 for f
in $tm_file; do
12595 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12596 tm_include_list
="${tm_include_list} $f"
12599 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12600 tm_include_list
="${tm_include_list} config/$f"
12607 for f
in $tm_p_file; do
12610 tm_p_file_list
="${tm_p_file_list} $f"
12611 tm_p_include_list
="${tm_p_include_list} $f"
12614 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12615 tm_p_include_list
="${tm_p_include_list} config/$f"
12621 for f
in $xm_file; do
12624 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12625 xm_include_list
="${xm_include_list} $f"
12628 xm_file_list
="${xm_file_list} $f"
12629 xm_include_list
="${xm_include_list} $f"
12632 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12633 xm_include_list
="${xm_include_list} config/$f"
12639 host_xm_include_list
=
12640 for f
in $host_xm_file; do
12643 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12644 host_xm_include_list
="${host_xm_include_list} $f"
12647 host_xm_file_list
="${host_xm_file_list} $f"
12648 host_xm_include_list
="${host_xm_include_list} $f"
12651 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12652 host_xm_include_list
="${host_xm_include_list} config/$f"
12657 build_xm_file_list
=
12658 for f
in $build_xm_file; do
12661 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12662 build_xm_include_list
="${build_xm_include_list} $f"
12664 auto-build.h | auto-host.h
)
12665 build_xm_file_list
="${build_xm_file_list} $f"
12666 build_xm_include_list
="${build_xm_include_list} $f"
12669 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12670 build_xm_include_list
="${build_xm_include_list} config/$f"
12675 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12676 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12679 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12680 if test x
$host != x
$target
12682 CROSS
="-DCROSS_COMPILE"
12684 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12685 case "$host","$target" in
12686 # Darwin crosses can use the host system's libraries and headers,
12687 # because of the fat library support. Of course, it must be the
12688 # same version of Darwin on both sides. Allow the user to
12689 # just say --target=foo-darwin without a version number to mean
12690 # "the version on this system".
12691 *-*-darwin*,*-*-darwin*)
12692 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12693 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12694 if test $hostos = $targetos -o $targetos = darwin
; then
12696 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12701 i?
86-*-*,x86_64-
*-* \
12702 | powerpc
*-*-*,powerpc64
*-*-*)
12703 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12705 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12706 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12707 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12710 # If this is a cross-compiler that does not
12711 # have its own set of headers then define
12714 # If this is using newlib, without having the headers available now,
12715 # then define inhibit_libc in LIBGCC2_CFLAGS.
12716 # This prevents libgcc2 from containing any code which requires libc
12719 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12720 test x
$with_newlib = xyes
; } &&
12721 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12722 inhibit_libc
=-Dinhibit_libc
12726 # When building gcc with a cross-compiler, we need to adjust things so
12727 # that the generator programs are still built with the native compiler.
12728 # Also, we cannot run fixincludes or fix-header.
12730 # These are the normal (build=host) settings:
12731 CC_FOR_BUILD
='$(CC)'
12732 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12733 STMP_FIXINC
=stmp-fixinc
12735 # Possibly disable fixproto, on a per-target basis.
12736 case ${use_fixproto} in
12741 STMP_FIXPROTO
=stmp-fixproto
12746 # And these apply if build != host, or we are generating coverage data
12747 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12749 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12751 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12752 if test "x$STMP_FIXPROTO" != x
; then
12753 STMP_FIXPROTO
=stmp-install-fixproto
12758 # Expand extra_headers to include complete path.
12759 # This substitutes for lots of t-* files.
12760 extra_headers_list
=
12761 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12762 for file in ${extra_headers} ; do
12763 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12766 # Define collect2 in Makefile.
12767 case $host_can_use_collect2 in
12769 *) collect2
='collect2$(exeext)' ;;
12773 # Add a definition of USE_COLLECT2 if system wants one.
12774 case $use_collect2 in
12775 no
) use_collect2
= ;;
12778 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12779 xm_defines
="${xm_defines} USE_COLLECT2"
12780 case $host_can_use_collect2 in
12782 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12783 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12784 { (exit 1); exit 1; }; }
12790 # ---------------------------
12791 # Assembler & linker features
12792 # ---------------------------
12794 # Identify the assembler which will work hand-in-glove with the newly
12795 # built GCC, so that we can examine its features. This is the assembler
12796 # which will be driven by the driver program.
12798 # If build != host, and we aren't building gas in-tree, we identify a
12799 # build->target assembler and hope that it will have the same features
12800 # as the host->target assembler we'll be using.
12803 gcc_cv_gas_major_version
=
12804 gcc_cv_gas_minor_version
=
12805 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12806 if test -x "$DEFAULT_ASSEMBLER"; then
12807 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12808 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12809 && test -f ..
/gas
/Makefile \
12810 && test x
$build = x
$host; then
12811 # Single tree build which includes gas. We want to prefer it
12812 # over whatever linker top-level may have detected, since
12813 # we'll use what we're building after installation anyway.
12815 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12816 for f
in $gcc_cv_as_bfd_srcdir/configure \
12817 $gcc_cv_as_gas_srcdir/configure \
12818 $gcc_cv_as_gas_srcdir/configure.
in \
12819 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12820 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12821 if test x
$gcc_cv_gas_version != x
; then
12825 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12826 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12827 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12828 case $gcc_cv_gas_patch_version in
12829 "") gcc_cv_gas_patch_version
="0" ;;
12831 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12832 + $gcc_cv_gas_minor_version \) \* 1000 \
12833 + $gcc_cv_gas_patch_version`
12835 gcc_cv_as
=..
/gas
/as-new
$build_exeext
12836 in_tree_gas_is_elf
=no
12837 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12838 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12839 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12841 in_tree_gas_is_elf
=yes
12843 elif test -x as
$build_exeext; then
12844 # Build using assembler in the current directory.
12845 gcc_cv_as
=.
/as
$build_exeext
12846 elif test -x "$AS_FOR_TARGET"; then
12847 gcc_cv_as
="$AS_FOR_TARGET"
12848 elif test -x "$AS" && test x
$host = x
$target; then
12853 # When searching for the assembler or linker, search the same directories
12854 # that the installed compiler will search. Else we may find the wrong
12855 # assembler or linker and lose. If we do not find a suitable binary,
12856 # then try the user's path.
12858 # Also note we have to check MD_EXEC_PREFIX before checking the user's path.
12859 if test "x$exec_prefix" = xNONE
; then
12860 if test "x$prefix" = xNONE
; then
12861 gcc_cv_tool_prefix
=/usr
/local
12863 gcc_cv_tool_prefix
=$prefix
12866 gcc_cv_tool_prefix
=$exec_prefix
12869 if test x
$host = x
$build; then
12870 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version"
12871 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical"
12872 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical/$gcc_version"
12873 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical"
12874 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version"
12875 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin"
12880 if test x
$build = x
$target; then
12881 # Rummage through tm_files looking for MD_EXEC_PREFIX
12883 for f
in ${tm_file_list}; do
12884 if test -f $f; then
12885 if grep '^#[ ]*undef[ ]*MD_EXEC_PREFIX' $f > /dev
/null
; then
12888 md_dirs
="$md_dirs "`sed -n -e 's@^#[ ]*define[ ]*MD_EXEC_PREFIX[ ]*"\(.*\)/"@\1@p' < $f`
12891 for f
in ${md_dirs}; do
12892 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$PATH_SEPARATOR$f"
12900 if test "x$gcc_cv_as" = x
; then
12901 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
12903 if test "x$gcc_cv_tool_dirs" = x
; then
12908 # Extract the first word of "$ac_prog", so it can be a program name with args.
12909 set dummy
$ac_prog; ac_word
=$2
12910 echo "$as_me:$LINENO: checking for $ac_word" >&5
12911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12912 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
12920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12921 for as_dir
in $gcc_cv_tool_dirs
12924 test -z "$as_dir" && as_dir
=.
12925 for ac_exec_ext
in '' $ac_executable_extensions; do
12926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12927 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
12928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12937 gcc_cv_as
=$ac_cv_path_gcc_cv_as
12939 if test -n "$gcc_cv_as"; then
12940 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12941 echo "${ECHO_T}$gcc_cv_as" >&6
12943 echo "$as_me:$LINENO: result: no" >&5
12944 echo "${ECHO_T}no" >&6
12947 test -n "$gcc_cv_as" && break
12952 if test "x$gcc_cv_as" = x
; then
12953 # If the loop above did not find a tool, then use whatever
12954 # one we can find in the users's path. We are looking for a
12955 # ${build} -> ${target} tool.
12956 if test "x$program_prefix" != xNONE
; then
12957 default_tool_name
=${program_prefix}as
12958 elif test x
$build != x
$host && test x
$build != x
$target; then
12959 default_tool_name
=${target_noncanonical}-as
12961 default_tool_name
=`echo as | sed "${program_transform_name}"`
12963 for ac_prog
in $default_tool_name
12965 # Extract the first word of "$ac_prog", so it can be a program name with args.
12966 set dummy
$ac_prog; ac_word
=$2
12967 echo "$as_me:$LINENO: checking for $ac_word" >&5
12968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12969 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12974 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
12977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12978 for as_dir
in $PATH
12981 test -z "$as_dir" && as_dir
=.
12982 for ac_exec_ext
in '' $ac_executable_extensions; do
12983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12984 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
12985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12994 gcc_cv_as
=$ac_cv_path_gcc_cv_as
12996 if test -n "$gcc_cv_as"; then
12997 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12998 echo "${ECHO_T}$gcc_cv_as" >&6
13000 echo "$as_me:$LINENO: result: no" >&5
13001 echo "${ECHO_T}no" >&6
13004 test -n "$gcc_cv_as" && break
13006 test -n "$gcc_cv_as" || gcc_cv_as
="$gcc_cv_tool_prefix/$default_tool_name$build_exeext"
13009 test "$silent" != yes && exec 6>&1
13011 ORIGINAL_AS_FOR_TARGET
="$gcc_cv_as"
13013 echo "$as_me:$LINENO: checking what assembler to use" >&5
13014 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13015 case $in_tree_gas in
13017 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
13018 echo "${ECHO_T}\"newly built gas\"" >&6
13021 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13022 echo "${ECHO_T}$gcc_cv_as" >&6
13026 # Identify the linker which will work hand-in-glove with the newly
13027 # built GCC, so that we can examine its features. This is the linker
13028 # which will be driven by the driver program.
13030 # If build != host, and we aren't building gas in-tree, we identify a
13031 # build->target linker and hope that it will have the same features
13032 # as the host->target linker we'll be using.
13035 gcc_cv_gld_major_version
=
13036 gcc_cv_gld_minor_version
=
13037 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13038 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13039 if test -x "$DEFAULT_LINKER"; then
13040 gcc_cv_ld
="$DEFAULT_LINKER"
13041 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13042 && test -f ..
/ld
/Makefile \
13043 && test x
$build = x
$host; then
13044 # Single tree build which includes ld. We want to prefer it
13045 # over whatever linker top-level may have detected, since
13046 # we'll use what we're building after installation anyway.
13048 in_tree_ld_is_elf
=no
13049 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13050 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13051 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13052 in_tree_ld_is_elf
=yes
13054 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
13056 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13057 if test x
$gcc_cv_gld_version != x
; then
13061 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13062 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13063 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13064 elif test -x collect-ld
$build_exeext; then
13065 # Build using linker in the current directory.
13066 gcc_cv_ld
=.
/collect-ld
$build_exeext
13067 elif test -x "$LD_FOR_TARGET"; then
13068 gcc_cv_ld
="$LD_FOR_TARGET"
13069 elif test -x "$LD" && test x
$host = x
$target; then
13078 if test "x$gcc_cv_ld" = x
; then
13079 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13081 if test "x$gcc_cv_tool_dirs" = x
; then
13086 # Extract the first word of "$ac_prog", so it can be a program name with args.
13087 set dummy
$ac_prog; ac_word
=$2
13088 echo "$as_me:$LINENO: checking for $ac_word" >&5
13089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13090 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13099 for as_dir
in $gcc_cv_tool_dirs
13102 test -z "$as_dir" && as_dir
=.
13103 for ac_exec_ext
in '' $ac_executable_extensions; do
13104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13105 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13115 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13117 if test -n "$gcc_cv_ld"; then
13118 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13119 echo "${ECHO_T}$gcc_cv_ld" >&6
13121 echo "$as_me:$LINENO: result: no" >&5
13122 echo "${ECHO_T}no" >&6
13125 test -n "$gcc_cv_ld" && break
13130 if test "x$gcc_cv_ld" = x
; then
13131 # If the loop above did not find a tool, then use whatever
13132 # one we can find in the users's path. We are looking for a
13133 # ${build} -> ${target} tool.
13134 if test "x$program_prefix" != xNONE
; then
13135 default_tool_name
=${program_prefix}ld
13136 elif test x
$build != x
$host && test x
$build != x
$target; then
13137 default_tool_name
=${target_noncanonical}-ld
13139 default_tool_name
=`echo ld | sed "${program_transform_name}"`
13141 for ac_prog
in $default_tool_name
13143 # Extract the first word of "$ac_prog", so it can be a program name with args.
13144 set dummy
$ac_prog; ac_word
=$2
13145 echo "$as_me:$LINENO: checking for $ac_word" >&5
13146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13147 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13156 for as_dir
in $PATH
13159 test -z "$as_dir" && as_dir
=.
13160 for ac_exec_ext
in '' $ac_executable_extensions; do
13161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13162 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13172 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13174 if test -n "$gcc_cv_ld"; then
13175 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13176 echo "${ECHO_T}$gcc_cv_ld" >&6
13178 echo "$as_me:$LINENO: result: no" >&5
13179 echo "${ECHO_T}no" >&6
13182 test -n "$gcc_cv_ld" && break
13184 test -n "$gcc_cv_ld" || gcc_cv_ld
="$gcc_cv_tool_prefix/$default_tool_name$build_exeext"
13187 test "$silent" != yes && exec 6>&1
13189 ORIGINAL_LD_FOR_TARGET
="$gcc_cv_ld"
13191 echo "$as_me:$LINENO: checking what linker to use" >&5
13192 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13193 case $in_tree_ld in
13195 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13196 echo "${ECHO_T}\"newly built ld\"" >&6
13199 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13200 echo "${ECHO_T}$gcc_cv_ld" >&6
13204 # Figure out what nm we will be using.
13205 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13208 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13209 && test -f ..
/binutils
/Makefile
; then
13210 # Single tree build which includes binutils.
13212 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
13213 elif test -x nm
$build_exeext; then
13214 gcc_cv_nm
=.
/nm
$build_exeext
13222 if test "x$gcc_cv_nm" = x
; then
13223 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13225 if test "x$gcc_cv_tool_dirs" = x
; then
13230 # Extract the first word of "$ac_prog", so it can be a program name with args.
13231 set dummy
$ac_prog; ac_word
=$2
13232 echo "$as_me:$LINENO: checking for $ac_word" >&5
13233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13234 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13239 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13243 for as_dir
in $gcc_cv_tool_dirs
13246 test -z "$as_dir" && as_dir
=.
13247 for ac_exec_ext
in '' $ac_executable_extensions; do
13248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13249 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13259 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13261 if test -n "$gcc_cv_nm"; then
13262 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13263 echo "${ECHO_T}$gcc_cv_nm" >&6
13265 echo "$as_me:$LINENO: result: no" >&5
13266 echo "${ECHO_T}no" >&6
13269 test -n "$gcc_cv_nm" && break
13274 if test "x$gcc_cv_nm" = x
; then
13275 # If the loop above did not find a tool, then use whatever
13276 # one we can find in the users's path. We are looking for a
13277 # ${build} -> ${target} tool.
13278 if test "x$program_prefix" != xNONE
; then
13279 default_tool_name
=${program_prefix}nm
13280 elif test x
$build != x
$host && test x
$build != x
$target; then
13281 default_tool_name
=${target_noncanonical}-nm
13283 default_tool_name
=`echo nm | sed "${program_transform_name}"`
13285 for ac_prog
in $default_tool_name
13287 # Extract the first word of "$ac_prog", so it can be a program name with args.
13288 set dummy
$ac_prog; ac_word
=$2
13289 echo "$as_me:$LINENO: checking for $ac_word" >&5
13290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13291 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13292 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13300 for as_dir
in $PATH
13303 test -z "$as_dir" && as_dir
=.
13304 for ac_exec_ext
in '' $ac_executable_extensions; do
13305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13306 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13316 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13318 if test -n "$gcc_cv_nm"; then
13319 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13320 echo "${ECHO_T}$gcc_cv_nm" >&6
13322 echo "$as_me:$LINENO: result: no" >&5
13323 echo "${ECHO_T}no" >&6
13326 test -n "$gcc_cv_nm" && break
13328 test -n "$gcc_cv_nm" || gcc_cv_nm
="$gcc_cv_tool_prefix/$default_tool_name$build_exeext"
13331 test "$silent" != yes && exec 6>&1
13333 ORIGINAL_NM_FOR_TARGET
="$gcc_cv_nm"
13335 echo "$as_me:$LINENO: checking what nm to use" >&5
13336 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13337 case $in_tree_nm in
13338 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13339 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13340 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13341 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13344 # Figure out what objdump we will be using.
13345 echo "$as_me:$LINENO: checking what objdump to use" >&5
13346 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13348 if test -x objdump
$build_exeext; then
13349 gcc_cv_objdump
=.
/objdump
$build_exeext
13350 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13351 && test -f ..
/binutils
/Makefile
; then
13352 # Single tree build which includes binutils.
13353 in_tree_objdump
=yes
13354 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
13355 elif test "x$program_prefix" != xNONE
; then
13356 gcc_cv_objdump
=${program_prefix}objdump
$build_exeext
13357 elif test x
$build != x
$host && test x
$build != x
$target; then
13358 gcc_cv_objdump
=${target_noncanonical}-objdump$build_exeext
13360 gcc_cv_objdump
=`echo objdump | \
13361 sed "${program_transform_name}"`$build_exeext
13363 case $in_tree_objdump in
13364 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13365 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13366 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13367 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13370 # Figure out what assembler alignment features are present.
13371 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13372 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13373 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13376 gcc_cv_as_balign_and_p2align
=no
13377 if test $in_tree_gas = yes; then
13378 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13379 then gcc_cv_as_balign_and_p2align
=yes
13381 elif test x
$gcc_cv_as != x
; then
13383 .p2align 2' > conftest.s
13384 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }
13391 gcc_cv_as_balign_and_p2align
=yes
13393 echo "configure: failed program was" >&5
13396 rm -f conftest.o conftest.s
13399 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13400 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13401 if test $gcc_cv_as_balign_and_p2align = yes; then
13403 cat >>confdefs.h
<<\_ACEOF
13404 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13409 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13410 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13411 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 gcc_cv_as_max_skip_p2align
=no
13415 if test $in_tree_gas = yes; then
13416 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13417 then gcc_cv_as_max_skip_p2align
=yes
13419 elif test x
$gcc_cv_as != x
; then
13420 echo '.p2align 4,,7' > conftest.s
13421 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }
13428 gcc_cv_as_max_skip_p2align
=yes
13430 echo "configure: failed program was" >&5
13433 rm -f conftest.o conftest.s
13436 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13437 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13438 if test $gcc_cv_as_max_skip_p2align = yes; then
13440 cat >>confdefs.h
<<\_ACEOF
13441 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13446 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13447 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13448 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 gcc_cv_as_subsection_m1
=no
13452 if test $in_tree_gas = yes; then
13453 if test $in_tree_gas_is_elf = yes \
13454 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13455 then gcc_cv_as_subsection_m1
=yes
13457 elif test x
$gcc_cv_as != x
; then
13458 echo 'conftest_label1: .word 0
13460 conftest_label2: .word 0
13461 .previous' > conftest.s
13462 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }
13469 if test x
$gcc_cv_nm != x
; then
13470 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13471 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13472 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13474 else gcc_cv_as_subsection_m1
=yes
13476 rm -f conftest.nm1 conftest.nm2
13479 echo "configure: failed program was" >&5
13482 rm -f conftest.o conftest.s
13485 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13486 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13487 if test $gcc_cv_as_subsection_m1 = yes; then
13489 cat >>confdefs.h
<<\_ACEOF
13490 #define HAVE_GAS_SUBSECTION_ORDERING 1
13495 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13496 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13497 if test "${gcc_cv_as_weak+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 if test $in_tree_gas = yes; then
13502 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13503 then gcc_cv_as_weak
=yes
13505 elif test x
$gcc_cv_as != x
; then
13506 echo ' .weak foobar' > conftest.s
13507 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }
13516 echo "configure: failed program was" >&5
13519 rm -f conftest.o conftest.s
13522 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13523 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13524 if test $gcc_cv_as_weak = yes; then
13526 cat >>confdefs.h
<<\_ACEOF
13527 #define HAVE_GAS_WEAK 1
13532 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13533 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13534 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 gcc_cv_as_nsubspa_comdat
=no
13538 if test $in_tree_gas = yes; then
13539 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13540 then gcc_cv_as_nsubspa_comdat
=yes
13542 elif test x
$gcc_cv_as != x
; then
13543 echo ' .SPACE $TEXT$
13544 .NSUBSPA $CODE$,COMDAT' > conftest.s
13545 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; }
13552 gcc_cv_as_nsubspa_comdat
=yes
13554 echo "configure: failed program was" >&5
13557 rm -f conftest.o conftest.s
13560 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13561 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13562 if test $gcc_cv_as_nsubspa_comdat = yes; then
13564 cat >>confdefs.h
<<\_ACEOF
13565 #define HAVE_GAS_NSUBSPA_COMDAT 1
13570 # .hidden needs to be supported in both the assembler and the linker,
13571 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13572 # This is irritatingly difficult to feature test for; we have to check the
13573 # date string after the version number. If we've got an in-tree
13574 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13576 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13577 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13578 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13579 if test "${gcc_cv_as_hidden+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 gcc_cv_as_hidden
=no
13583 if test $in_tree_gas = yes; then
13584 if test $in_tree_gas_is_elf = yes \
13585 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13586 then gcc_cv_as_hidden
=yes
13588 elif test x
$gcc_cv_as != x
; then
13589 echo ' .hidden foobar
13590 foobar:' > conftest.s
13591 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }
13598 gcc_cv_as_hidden
=yes
13600 echo "configure: failed program was" >&5
13603 rm -f conftest.o conftest.s
13606 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13607 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13610 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13611 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13612 if test "${gcc_cv_ld_hidden+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 if test $in_tree_ld = yes ; then
13616 gcc_cv_ld_hidden
=no
13617 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 \
13618 && test $in_tree_ld_is_elf = yes; then
13619 gcc_cv_ld_hidden
=yes
13622 gcc_cv_ld_hidden
=yes
13623 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13624 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13625 ld_vers
=`echo $ld_ver | sed -n \
13626 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13627 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13628 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13629 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13630 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13631 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13632 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13633 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'`
13634 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13635 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13636 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13637 if test 0"$ld_date" -lt 20020404; then
13638 if test -n "$ld_date"; then
13639 # If there was date string, but was earlier than 2002-04-04, fail
13640 gcc_cv_ld_hidden
=no
13641 elif test -z "$ld_vers"; then
13642 # If there was no date string nor ld version number, something is wrong
13643 gcc_cv_ld_hidden
=no
13645 test -z "$ld_vers_patch" && ld_vers_patch
=0
13646 if test "$ld_vers_major" -lt 2; then
13647 gcc_cv_ld_hidden
=no
13648 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13649 gcc_cv_ld_hidden
="no"
13650 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13651 gcc_cv_ld_hidden
=no
13656 case "${target}" in
13657 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13658 gcc_cv_ld_hidden
=yes
13661 gcc_cv_ld_hidden
=no
13667 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13668 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13669 libgcc_visibility
=no
13672 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13673 libgcc_visibility
=yes
13675 cat >>confdefs.h
<<\_ACEOF
13676 #define HAVE_GAS_HIDDEN 1
13681 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13682 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13683 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13684 if test "${gcc_cv_as_leb128+set}" = set; then
13685 echo $ECHO_N "(cached) $ECHO_C" >&6
13687 gcc_cv_as_leb128
=no
13688 if test $in_tree_gas = yes; then
13689 if test $in_tree_gas_is_elf = yes \
13690 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13691 then gcc_cv_as_leb128
=yes
13693 elif test x
$gcc_cv_as != x
; then
13700 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }
13707 # GAS versions before 2.11 do not support uleb128,
13708 # despite appearing to.
13709 # ??? There exists an elf-specific test that will crash
13710 # the assembler. Perhaps it's better to figure out whether
13711 # arbitrary sections are supported and try the test.
13712 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13713 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13714 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13715 as_major
=`echo $as_ver | sed 's/\..*//'`
13716 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13717 if test $as_major -eq 2 && test $as_minor -lt 11
13719 else gcc_cv_as_leb128
=yes
13723 echo "configure: failed program was" >&5
13726 rm -f conftest.o conftest.s
13729 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13730 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13731 if test $gcc_cv_as_leb128 = yes; then
13733 cat >>confdefs.h
<<\_ACEOF
13734 #define HAVE_AS_LEB128 1
13739 # GAS versions up to and including 2.11.0 may mis-optimize
13741 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13742 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13743 if test "${gcc_cv_as_eh_frame+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 gcc_cv_as_eh_frame
=no
13747 if test $in_tree_gas = yes; then
13748 if test $in_tree_gas_is_elf = yes \
13749 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13750 then gcc_cv_as_eh_frame
=yes
13752 elif test x
$gcc_cv_as != x
; then
13759 .section .eh_frame,"aw",@progbits
13761 .4byte .LECIE1-.LSCIE1
13775 .4byte .LEFDE1-.LASFDE1
13777 .4byte .LASFDE1-__FRAME_BEGIN__
13784 .LEFDE1:' > conftest.s
13785 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }
13792 cat > conftest.lit
<<EOF
13793 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13794 0010 01000000 12000000 18000000 00000000 ................
13795 0020 08000000 04080000 0044 .........D
13797 cat > conftest.big
<<EOF
13798 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13799 0010 00000001 00000012 00000018 00000000 ................
13800 0020 00000008 04000000 0844 .........D
13802 # If the assembler didn't choke, and we can objdump,
13803 # and we got the correct data, then succeed.
13804 if test x
$gcc_cv_objdump != x \
13805 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13806 |
tail -3 > conftest.got \
13807 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13808 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13810 gcc_cv_as_eh_frame
=yes
13811 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13817 gcc_cv_as_eh_frame
=buggy
13819 # Uh oh, what do we do now?
13820 gcc_cv_as_eh_frame
=no
13823 echo "configure: failed program was" >&5
13826 rm -f conftest.o conftest.s
13829 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13830 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13833 if test $gcc_cv_as_eh_frame = buggy
; then
13835 cat >>confdefs.h
<<\_ACEOF
13836 #define USE_AS_TRADITIONAL_FORMAT 1
13841 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13842 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13843 if test "${gcc_cv_as_shf_merge+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13846 gcc_cv_as_shf_merge
=no
13847 if test $in_tree_gas = yes; then
13848 if test $in_tree_gas_is_elf = yes \
13849 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13850 then gcc_cv_as_shf_merge
=yes
13852 elif test x
$gcc_cv_as != x
; then
13853 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13854 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; }
13861 gcc_cv_as_shf_merge
=yes
13863 echo "configure: failed program was" >&5
13866 rm -f conftest.o conftest.s
13869 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13870 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13872 if test $gcc_cv_as_shf_merge = no
; then
13873 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13874 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13875 if test "${gcc_cv_as_shf_merge+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 gcc_cv_as_shf_merge
=no
13879 if test $in_tree_gas = yes; then
13880 if test $in_tree_gas_is_elf = yes \
13881 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13882 then gcc_cv_as_shf_merge
=yes
13884 elif test x
$gcc_cv_as != x
; then
13885 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13886 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }
13893 gcc_cv_as_shf_merge
=yes
13895 echo "configure: failed program was" >&5
13898 rm -f conftest.o conftest.s
13901 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13902 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13906 cat >>confdefs.h
<<_ACEOF
13907 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13911 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13912 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13913 if test "${gcc_cv_as_comdat_group+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 gcc_cv_as_comdat_group
=no
13917 if test $in_tree_gas = yes; then
13918 if test $in_tree_gas_is_elf = yes \
13919 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13920 then gcc_cv_as_comdat_group
=yes
13922 elif test x
$gcc_cv_as != x
; then
13923 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13924 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }
13931 gcc_cv_as_comdat_group
=yes
13933 echo "configure: failed program was" >&5
13936 rm -f conftest.o conftest.s
13939 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13940 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13942 if test $gcc_cv_as_comdat_group = yes; then
13943 gcc_cv_as_comdat_group_percent
=no
13945 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13946 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13947 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 gcc_cv_as_comdat_group_percent
=no
13951 if test $in_tree_gas = yes; then
13952 if test $in_tree_gas_is_elf = yes \
13953 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13954 then gcc_cv_as_comdat_group_percent
=yes
13956 elif test x
$gcc_cv_as != x
; then
13957 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13958 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }
13965 gcc_cv_as_comdat_group_percent
=yes
13967 echo "configure: failed program was" >&5
13970 rm -f conftest.o conftest.s
13973 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13974 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13977 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
13979 if test 0"$ld_date" -lt 20050308; then
13980 if test -n "$ld_date"; then
13981 # If there was date string, but was earlier than 2005-03-08, fail
13983 elif test "$ld_vers_major" -lt 2; then
13985 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
13989 if test $comdat_group = no
; then
13990 gcc_cv_as_comdat_group
=no
13991 gcc_cv_as_comdat_group_percent
=no
13995 cat >>confdefs.h
<<_ACEOF
13996 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14000 # Thread-local storage - the check is heavily parametrized.
14008 .section ".tdata","awT",@progbits
14011 ldq $27,__tls_get_addr($29) !literal!1
14012 lda $16,foo($29) !tlsgd!1
14013 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14014 ldq $27,__tls_get_addr($29) !literal!2
14015 lda $16,foo($29) !tlsldm!2
14016 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14017 ldq $1,foo($29) !gotdtprel
14018 ldah $2,foo($29) !dtprelhi
14019 lda $3,foo($2) !dtprello
14020 lda $4,foo($29) !dtprel
14021 ldq $1,foo($29) !gottprel
14022 ldah $2,foo($29) !tprelhi
14023 lda $3,foo($2) !tprello
14024 lda $4,foo($29) !tprel'
14027 tls_as_opt
=--fatal-warnings
14031 .section ".tdata","awT",@progbits
14034 call #gettlsoff(x)'
14043 .section ".tdata","awT",@progbits
14047 addil LT%foo-$tls_gdidx$,gp
14048 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14051 addil LT%foo-$tls_ldidx$,gp
14053 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14054 addil LR%foo-$tls_dtpoff$,%ret0
14055 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14057 addil LT%foo-$tls_ieoff$,gp
14058 ldw RT%foo-$tls_ieoff$(%r1),%t2
14061 addil LR%foo-$tls_leoff$,%t1
14062 ldo RR%foo-$tls_leoff$(%r1),%t2'
14065 tls_as_opt
=--fatal-warnings
14069 .section ".tdata","awT",@progbits
14073 leal foo@TLSGD(,%ebx,1), %eax
14074 leal foo@TLSLDM(%ebx), %eax
14075 leal foo@DTPOFF(%eax), %edx
14076 movl foo@GOTTPOFF(%ebx), %eax
14077 subl foo@GOTTPOFF(%ebx), %eax
14078 addl foo@GOTNTPOFF(%ebx), %eax
14079 movl foo@INDNTPOFF, %eax
14080 movl $foo@TPOFF, %eax
14081 subl $foo@TPOFF, %eax
14082 leal foo@NTPOFF(%ecx), %eax'
14085 tls_as_opt
=--fatal-warnings
14089 .section ".tdata","awT",@progbits
14093 leaq foo@TLSGD(%rip), %rdi
14094 leaq foo@TLSLD(%rip), %rdi
14095 leaq foo@DTPOFF(%rax), %rdx
14096 movq foo@GOTTPOFF(%rip), %rax
14097 movq $foo@TPOFF, %rax'
14100 tls_as_opt
=--fatal-warnings
14104 .section ".tdata","awT",@progbits
14107 addl r16 = @ltoff(@dtpmod(foo#)), gp
14108 addl r17 = @ltoff(@dtprel(foo#)), gp
14109 addl r18 = @ltoff(@tprel(foo#)), gp
14110 addl r19 = @dtprel(foo#), gp
14111 adds r21 = @dtprel(foo#), r13
14112 movl r23 = @dtprel(foo#)
14113 addl r20 = @tprel(foo#), gp
14114 adds r22 = @tprel(foo#), r13
14115 movl r24 = @tprel(foo#)'
14118 tls_as_opt
=--fatal-warnings
14122 .section .tdata,"awT",@progbits
14126 addiu $4, $28, %tlsgd(x)
14127 addiu $4, $28, %tlsldm(x)
14128 lui $4, %dtprel_hi(x)
14129 addiu $4, $4, %dtprel_lo(x)
14130 lw $4, %gottprel(x)($28)
14131 lui $4, %tprel_hi(x)
14132 addiu $4, $4, %tprel_lo(x)'
14135 tls_as_opt
='-32 --fatal-warnings'
14139 .section ".tdata","awT",@progbits
14147 addi 3,31,ld0@got@tlsgd
14149 addi 3,31,x1@got@tlsld
14152 addis 9,3,x2@dtprel@ha
14153 addi 9,9,x2@dtprel@l
14154 lwz 9,x3@got@tprel(31)
14157 addis 9,2,x2@tprel@ha
14158 addi 9,9,x2@tprel@l'
14161 tls_as_opt
="-a32 --fatal-warnings"
14165 .section ".tdata","awT",@progbits
14173 addi 3,2,ld0@got@tlsgd
14179 addi 3,2,x1@got@tlsld
14185 addis 9,3,x2@dtprel@ha
14186 addi 9,9,x2@dtprel@l
14189 ld 9,x3@got@dtprel(2)
14195 tls_as_opt
="-a64 --fatal-warnings"
14199 .section ".tdata","awT",@progbits
14206 .long foo@GOTNTPOFF
14207 .long foo@INDNTPOFF
14208 l %r1,foo@GOTNTPOFF(%r12)
14209 l %r1,0(%r1):tls_load:foo
14210 bas %r14,0(%r1,%r13):tls_gdcall:foo
14211 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14214 tls_as_opt
="-m31 --fatal-warnings"
14218 .section ".tdata","awT",@progbits
14225 .quad foo@GOTNTPOFF
14226 lg %r1,foo@GOTNTPOFF(%r12)
14227 larl %r1,foo@INDNTPOFF
14228 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14229 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14232 tls_as_opt
="-m64 -Aesame --fatal-warnings"
14234 sh-
*-* | sh
[34]-*-*)
14236 .section ".tdata","awT",@progbits
14246 tls_as_opt
=--fatal-warnings
14250 sparc
*-sun-solaris2.
*)
14257 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
14259 .section ".tdata",#alloc,#write,#tls
14262 sethi %tgd_hi22(foo), %o0
14263 add %o0, %tgd_lo10(foo), %o1
14264 add %l7, %o1, %o0, %tgd_add(foo)
14265 call __tls_get_addr, %tgd_call(foo)
14266 sethi %tldm_hi22(foo), %l1
14267 add %l1, %tldm_lo10(foo), %l2
14268 add %l7, %l2, %o0, %tldm_add(foo)
14269 call __tls_get_addr, %tldm_call(foo)
14270 sethi %tldo_hix22(foo), %l3
14271 xor %l3, %tldo_lox10(foo), %l4
14272 add %o0, %l4, %l5, %tldo_add(foo)
14273 sethi %tie_hi22(foo), %o3
14274 add %o3, %tie_lo10(foo), %o3
14275 ld [%l7 + %o3], %o2, %tie_ld(foo)
14276 add %g7, %o2, %o4, %tie_add(foo)
14277 sethi %tle_hix22(foo), %l1
14278 xor %l1, %tle_lox10(foo), %o5
14279 ld [%g7 + %o5], %o1'
14284 .section ".tdata","awT",@progbits
14287 sethi %tgd_hi22(foo), %o0
14288 add %o0, %tgd_lo10(foo), %o1
14289 add %l7, %o1, %o0, %tgd_add(foo)
14290 call __tls_get_addr, %tgd_call(foo)
14291 sethi %tldm_hi22(foo), %l1
14292 add %l1, %tldm_lo10(foo), %l2
14293 add %l7, %l2, %o0, %tldm_add(foo)
14294 call __tls_get_addr, %tldm_call(foo)
14295 sethi %tldo_hix22(foo), %l3
14296 xor %l3, %tldo_lox10(foo), %l4
14297 add %o0, %l4, %l5, %tldo_add(foo)
14298 sethi %tie_hi22(foo), %o3
14299 add %o3, %tie_lo10(foo), %o3
14300 ld [%l7 + %o3], %o2, %tie_ld(foo)
14301 add %g7, %o2, %o4, %tie_add(foo)
14302 sethi %tle_hix22(foo), %l1
14303 xor %l1, %tle_lox10(foo), %o5
14304 ld [%g7 + %o5], %o1'
14307 tls_as_opt
="-32 --fatal-warnings"
14311 if test -z "$tls_first_major"; then
14312 : # If we don't have a check, assume no support.
14314 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14315 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14316 if test "${gcc_cv_as_tls+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14320 if test $in_tree_gas = yes; then
14321 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14322 then gcc_cv_as_tls
=yes
14324 elif test x
$gcc_cv_as != x
; then
14325 echo "$conftest_s" > conftest.s
14326 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }
14335 echo "configure: failed program was" >&5
14338 rm -f conftest.o conftest.s
14341 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14342 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14343 if test $gcc_cv_as_tls = yes; then
14345 cat >>confdefs.h
<<\_ACEOF
14346 #define HAVE_AS_TLS 1
14352 # Target-specific assembler checks.
14354 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14355 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14356 gcc_cv_ld_static_dynamic
=no
14357 if test $in_tree_ld = yes ; then
14358 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14359 gcc_cv_ld_static_dynamic
=yes
14361 elif test x
$gcc_cv_ld != x
; then
14362 # Check if linker supports -Bstatic/-Bdynamic option
14363 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14364 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14365 gcc_cv_ld_static_dynamic
=yes
14368 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14370 cat >>confdefs.h
<<\_ACEOF
14371 #define HAVE_LD_STATIC_DYNAMIC 1
14375 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14376 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14378 if test x
"$demangler_in_ld" = xyes
; then
14379 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14380 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14381 gcc_cv_ld_demangle
=no
14382 if test $in_tree_ld = yes; then
14383 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 \
14384 gcc_cv_ld_demangle
=yes
14386 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14387 # Check if the GNU linker supports --demangle option
14388 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14389 gcc_cv_ld_demangle
=yes
14392 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14394 cat >>confdefs.h
<<\_ACEOF
14395 #define HAVE_LD_DEMANGLE 1
14399 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14400 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14404 # All TARGET_ABI_OSF targets.
14405 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14406 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14407 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14408 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 gcc_cv_as_alpha_explicit_relocs
=no
14412 if test $in_tree_gas = yes; then
14413 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14414 then gcc_cv_as_alpha_explicit_relocs
=yes
14416 elif test x
$gcc_cv_as != x
; then
14417 echo ' .set nomacro
14419 extbl $3, $2, $3 !lituse_bytoff!1
14420 ldq $2, a($29) !literal!1
14421 ldq $4, b($29) !literal!2
14422 ldq_u $3, 0($2) !lituse_base!1
14423 ldq $27, f($29) !literal!5
14424 jsr $26, ($27), f !lituse_jsr!5
14425 ldah $29, 0($26) !gpdisp!3
14426 lda $0, c($29) !gprel
14427 ldah $1, d($29) !gprelhigh
14428 lda $1, d($1) !gprellow
14429 lda $29, 0($29) !gpdisp!3' > conftest.s
14430 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }
14437 gcc_cv_as_alpha_explicit_relocs
=yes
14439 echo "configure: failed program was" >&5
14442 rm -f conftest.o conftest.s
14445 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14446 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14447 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14449 cat >>confdefs.h
<<\_ACEOF
14450 #define HAVE_AS_EXPLICIT_RELOCS 1
14454 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14455 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14456 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14459 gcc_cv_as_alpha_jsrdirect_relocs
=no
14460 if test $in_tree_gas = yes; then
14461 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14462 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14464 elif test x
$gcc_cv_as != x
; then
14465 echo ' .set nomacro
14467 ldq $27, a($29) !literal!1
14468 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14469 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; }
14476 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14478 echo "configure: failed program was" >&5
14481 rm -f conftest.o conftest.s
14484 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14485 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14486 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14488 cat >>confdefs.h
<<\_ACEOF
14489 #define HAVE_AS_JSRDIRECT_RELOCS 1
14496 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14497 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14498 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 gcc_cv_as_cris_no_mul_bug
=no
14502 if test $in_tree_gas = yes; then
14503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14504 then gcc_cv_as_cris_no_mul_bug
=yes
14506 elif test x
$gcc_cv_as != x
; then
14507 echo '.text' > conftest.s
14508 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510 (eval $ac_try) 2>&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; }
14515 gcc_cv_as_cris_no_mul_bug
=yes
14517 echo "configure: failed program was" >&5
14520 rm -f conftest.o conftest.s
14523 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14524 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14525 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14527 cat >>confdefs.h
<<\_ACEOF
14528 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14535 echo "$as_me:$LINENO: checking assembler for .register" >&5
14536 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14537 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 gcc_cv_as_sparc_register_op
=no
14541 if test x
$gcc_cv_as != x
; then
14542 echo '.register %g2, #scratch' > conftest.s
14543 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; }
14550 gcc_cv_as_sparc_register_op
=yes
14552 echo "configure: failed program was" >&5
14555 rm -f conftest.o conftest.s
14558 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14559 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14560 if test $gcc_cv_as_sparc_register_op = yes; then
14562 cat >>confdefs.h
<<\_ACEOF
14563 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14568 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14569 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14570 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 gcc_cv_as_sparc_relax
=no
14574 if test x
$gcc_cv_as != x
; then
14575 echo '.text' > conftest.s
14576 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; }
14583 gcc_cv_as_sparc_relax
=yes
14585 echo "configure: failed program was" >&5
14588 rm -f conftest.o conftest.s
14591 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14592 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14593 if test $gcc_cv_as_sparc_relax = yes; then
14595 cat >>confdefs.h
<<\_ACEOF
14596 #define HAVE_AS_RELAX_OPTION 1
14601 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14602 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14603 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 gcc_cv_as_sparc_ua_pcrel
=no
14607 if test x
$gcc_cv_as != x
; then
14614 .uaword %r_disp32(foo)' > conftest.s
14615 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }
14622 if test x
$gcc_cv_ld != x \
14623 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14624 gcc_cv_as_sparc_ua_pcrel
=yes
14628 echo "configure: failed program was" >&5
14631 rm -f conftest.o conftest.s
14634 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14635 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14636 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14638 cat >>confdefs.h
<<\_ACEOF
14639 #define HAVE_AS_SPARC_UA_PCREL 1
14643 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14644 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14645 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14649 if test x
$gcc_cv_as != x
; then
14653 .uaword %r_disp32(foo)
14654 .byte 0x32, 0x33, 0x34
14658 .skip 4' > conftest.s
14659 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }
14666 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14667 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14668 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14669 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14670 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14671 |
grep 'DISP32' > /dev
/null
2>&1; then
14674 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14679 echo "configure: failed program was" >&5
14682 rm -f conftest.o conftest.s
14685 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14686 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14687 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14689 cat >>confdefs.h
<<\_ACEOF
14690 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14695 fi # unaligned pcrel relocs
14697 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14698 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14699 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 gcc_cv_as_sparc_offsetable_lo10
=no
14703 if test x
$gcc_cv_as != x
; then
14705 or %g1, %lo(ab) + 12, %g1
14706 or %g1, %lo(ab + 12), %g1' > conftest.s
14707 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }
14714 if test x
$gcc_cv_objdump != x \
14715 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14716 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14717 gcc_cv_as_sparc_offsetable_lo10
=yes
14720 echo "configure: failed program was" >&5
14723 rm -f conftest.o conftest.s
14726 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14727 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14728 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14730 cat >>confdefs.h
<<\_ACEOF
14731 #define HAVE_AS_OFFSETABLE_LO10 1
14737 i
[34567]86-*-* | x86_64-
*-*)
14739 cygwin
* | pe | mingw32
*)
14740 # Used for DWARF 2 in PE
14741 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14742 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14743 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 gcc_cv_as_ix86_pe_secrel32
=no
14747 if test $in_tree_gas = yes; then
14748 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14749 then gcc_cv_as_ix86_pe_secrel32
=yes
14751 elif test x
$gcc_cv_as != x
; then
14755 .secrel32 foo' > conftest.s
14756 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }
14763 if test x
$gcc_cv_ld != x \
14764 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14765 gcc_cv_as_ix86_pe_secrel32
=yes
14769 echo "configure: failed program was" >&5
14772 rm -f conftest.o conftest.s
14775 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14776 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14777 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14779 cat >>confdefs.h
<<\_ACEOF
14780 #define HAVE_GAS_PE_SECREL32_RELOC 1
14787 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14788 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14789 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14792 gcc_cv_as_ix86_filds_fists
=no
14793 if test $in_tree_gas = yes; then
14794 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14795 then gcc_cv_as_ix86_filds_fists
=yes
14797 elif test x
$gcc_cv_as != x
; then
14798 echo 'filds mem; fists mem' > conftest.s
14799 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }
14806 gcc_cv_as_ix86_filds_fists
=yes
14808 echo "configure: failed program was" >&5
14811 rm -f conftest.o conftest.s
14814 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14815 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14816 if test $gcc_cv_as_ix86_filds_fists = yes; then
14818 cat >>confdefs.h
<<\_ACEOF
14819 #define HAVE_GAS_FILDS_FISTS 1
14824 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14825 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14826 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 gcc_cv_as_ix86_cmov_sun_syntax
=no
14830 if test x
$gcc_cv_as != x
; then
14831 echo 'cmovl.l %edx, %eax' > conftest.s
14832 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; }
14839 gcc_cv_as_ix86_cmov_sun_syntax
=yes
14841 echo "configure: failed program was" >&5
14844 rm -f conftest.o conftest.s
14847 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14848 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14849 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14851 cat >>confdefs.h
<<\_ACEOF
14852 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14857 # This one is used unconditionally by i386.[ch]; it is to be defined
14858 # to 1 if the feature is present, 0 otherwise.
14859 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14860 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14861 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14864 gcc_cv_as_ix86_gotoff_in_data
=no
14865 if test $in_tree_gas = yes; then
14866 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14867 then gcc_cv_as_ix86_gotoff_in_data
=yes
14869 elif test x
$gcc_cv_as != x
; then
14874 .long .L0@GOTOFF' > conftest.s
14875 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; }
14882 gcc_cv_as_ix86_gotoff_in_data
=yes
14884 echo "configure: failed program was" >&5
14887 rm -f conftest.o conftest.s
14890 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14891 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14894 cat >>confdefs.h
<<_ACEOF
14895 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14901 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14902 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14903 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14904 echo $ECHO_N "(cached) $ECHO_C" >&6
14906 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
14907 if test $in_tree_gas = yes; then
14908 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14909 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14911 elif test x
$gcc_cv_as != x
; then
14913 addl r15 = @ltoffx(x#), gp
14915 ld8.mov r16 = [r15], x#' > conftest.s
14916 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }
14923 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14925 echo "configure: failed program was" >&5
14928 rm -f conftest.o conftest.s
14931 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14932 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14933 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14935 cat >>confdefs.h
<<\_ACEOF
14936 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14945 *-*-aix*) conftest_s
=' .machine "pwr5"
14949 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14950 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14951 if test "${gcc_cv_as_machine_directive+set}" = set; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6
14954 gcc_cv_as_machine_directive
=no
14955 if test x
$gcc_cv_as != x
; then
14956 echo ' .machine ppc7400' > conftest.s
14957 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }
14964 gcc_cv_as_machine_directive
=yes
14966 echo "configure: failed program was" >&5
14969 rm -f conftest.o conftest.s
14972 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14973 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14975 if test x
$gcc_cv_as_machine_directive != xyes
; then
14976 echo "*** This target requires an assembler supporting \".machine\"" >&2
14977 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
14978 test x
$build = x
$target && exit 1
14982 *) conftest_s
=' .machine power4
14987 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14988 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14989 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 gcc_cv_as_powerpc_mfcrf
=no
14993 if test $in_tree_gas = yes; then
14994 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14995 then gcc_cv_as_powerpc_mfcrf
=yes
14997 elif test x
$gcc_cv_as != x
; then
14998 echo "$conftest_s" > conftest.s
14999 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }
15006 gcc_cv_as_powerpc_mfcrf
=yes
15008 echo "configure: failed program was" >&5
15011 rm -f conftest.o conftest.s
15014 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15015 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15016 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15018 cat >>confdefs.h
<<\_ACEOF
15019 #define HAVE_AS_MFCRF 1
15025 *-*-aix*) conftest_s
=' .machine "pwr5"
15028 *) conftest_s
=' .machine power5
15033 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15034 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15035 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 gcc_cv_as_powerpc_popcntb
=no
15039 if test $in_tree_gas = yes; then
15040 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15041 then gcc_cv_as_powerpc_popcntb
=yes
15043 elif test x
$gcc_cv_as != x
; then
15044 echo "$conftest_s" > conftest.s
15045 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }
15052 gcc_cv_as_powerpc_popcntb
=yes
15054 echo "configure: failed program was" >&5
15057 rm -f conftest.o conftest.s
15060 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15061 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15062 if test $gcc_cv_as_powerpc_popcntb = yes; then
15064 cat >>confdefs.h
<<\_ACEOF
15065 #define HAVE_AS_POPCNTB 1
15071 *-*-aix*) conftest_s
=' .csect .text[PR]
15073 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15077 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15078 *) conftest_s
=' .text
15080 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15083 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15084 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15085 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15088 gcc_cv_as_powerpc_rel16
=no
15089 if test $in_tree_gas = yes; then
15090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15091 then gcc_cv_as_powerpc_rel16
=yes
15093 elif test x
$gcc_cv_as != x
; then
15094 echo "$conftest_s" > conftest.s
15095 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; }
15102 gcc_cv_as_powerpc_rel16
=yes
15104 echo "configure: failed program was" >&5
15107 rm -f conftest.o conftest.s
15110 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15111 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15112 if test $gcc_cv_as_powerpc_rel16 = yes; then
15114 cat >>confdefs.h
<<\_ACEOF
15115 #define HAVE_AS_REL16 1
15122 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15123 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15124 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 gcc_cv_as_mips_explicit_relocs
=no
15128 if test $in_tree_gas = yes; then
15129 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15130 then gcc_cv_as_mips_explicit_relocs
=yes
15132 elif test x
$gcc_cv_as != x
; then
15133 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15134 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }
15141 gcc_cv_as_mips_explicit_relocs
=yes
15143 echo "configure: failed program was" >&5
15146 rm -f conftest.o conftest.s
15149 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15150 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15151 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15152 if test x
$target_cpu_default = x
15153 then target_cpu_default
=MASK_EXPLICIT_RELOCS
15154 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15158 if test x
$gas_flag = xyes \
15159 ||
test x
"$host" != x
"$build" \
15160 ||
test ! -x "$gcc_cv_as" \
15161 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
15164 echo "*** This configuration requires the GNU assembler" >&2
15169 # ??? Not all targets support dwarf2 debug_line, even within a version
15170 # of gas. Moreover, we need to emit a valid instruction to trigger any
15171 # info to the output file. So, as supported targets are added to gas 2.11,
15172 # add some instruction here to (also) show we expect this might work.
15173 # ??? Once 2.11 is released, probably need to add first known working
15174 # version to the per-target configury.
15176 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
15177 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
15178 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
15181 ia64
*-*-* | s390
*-*-*)
15188 if test x
"$insn" != x
; then
15190 .file 1 \"conftest.s\"
15193 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15194 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15195 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15196 echo $ECHO_N "(cached) $ECHO_C" >&6
15198 gcc_cv_as_dwarf2_debug_line
=no
15199 if test $in_tree_gas = yes; then
15200 if test $in_tree_gas_is_elf = yes \
15201 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15202 then gcc_cv_as_dwarf2_debug_line
=yes
15204 elif test x
$gcc_cv_as != x
; then
15205 echo "$conftest_s" > conftest.s
15206 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; }
15213 if test x
$gcc_cv_objdump != x \
15214 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
15215 |
grep debug_line
> /dev
/null
2>&1; then
15216 gcc_cv_as_dwarf2_debug_line
=yes
15219 echo "configure: failed program was" >&5
15222 rm -f conftest.o conftest.s
15225 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15226 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15229 # The .debug_line file table must be in the exact order that
15230 # we specified the files, since these indices are also used
15231 # by DW_AT_decl_file. Approximate this test by testing if
15232 # the assembler bitches if the same index is assigned twice.
15233 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15234 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15235 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6
15238 gcc_cv_as_dwarf2_file_buggy
=no
15239 if test x
$gcc_cv_as != x
; then
15240 echo ' .file 1 "foo.s"
15241 .file 1 "bar.s"' > conftest.s
15242 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; }
15249 gcc_cv_as_dwarf2_file_buggy
=yes
15251 echo "configure: failed program was" >&5
15254 rm -f conftest.o conftest.s
15257 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15258 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15261 if test $gcc_cv_as_dwarf2_debug_line = yes \
15262 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
15264 cat >>confdefs.h
<<\_ACEOF
15265 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15270 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15271 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15272 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15273 echo $ECHO_N "(cached) $ECHO_C" >&6
15275 gcc_cv_as_gdwarf2_flag
=no
15276 if test $in_tree_gas = yes; then
15277 if test $in_tree_gas_is_elf = yes \
15278 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15279 then gcc_cv_as_gdwarf2_flag
=yes
15281 elif test x
$gcc_cv_as != x
; then
15282 echo "$insn" > conftest.s
15283 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285 (eval $ac_try) 2>&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); }; }
15290 gcc_cv_as_gdwarf2_flag
=yes
15292 echo "configure: failed program was" >&5
15295 rm -f conftest.o conftest.s
15298 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15299 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15300 if test $gcc_cv_as_gdwarf2_flag = yes; then
15302 cat >>confdefs.h
<<\_ACEOF
15303 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15308 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15309 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15310 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 gcc_cv_as_gstabs_flag
=no
15314 if test $in_tree_gas = yes; then
15315 if test $in_tree_gas_is_elf = yes \
15316 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15317 then gcc_cv_as_gstabs_flag
=yes
15319 elif test x
$gcc_cv_as != x
; then
15320 echo "$insn" > conftest.s
15321 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }
15328 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15329 # and warns about it, but still exits successfully. So check for
15331 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; }
15338 else gcc_cv_as_gstabs_flag
=yes
15341 echo "configure: failed program was" >&5
15344 rm -f conftest.o conftest.s
15347 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15348 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15349 if test $gcc_cv_as_gstabs_flag = yes; then
15351 cat >>confdefs.h
<<\_ACEOF
15352 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15358 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15359 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15360 gcc_cv_ld_ro_rw_mix
=unknown
15361 if test $in_tree_ld = yes ; then
15362 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 \
15363 && test $in_tree_ld_is_elf = yes; then
15364 gcc_cv_ld_ro_rw_mix
=read-write
15366 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
15367 echo '.section myfoosect, "a"' > conftest1.s
15368 echo '.section myfoosect, "aw"' > conftest2.s
15369 echo '.byte 1' >> conftest2.s
15370 echo '.section myfoosect, "a"' > conftest3.s
15371 echo '.byte 0' >> conftest3.s
15372 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15373 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15374 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
15375 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15376 conftest2.o conftest3.o
> /dev
/null
2>&1; then
15377 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
15378 | sed -e '/myfoosect/!d' -e N`
15379 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
15380 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
15381 gcc_cv_ld_ro_rw_mix
=read-only
15383 gcc_cv_ld_ro_rw_mix
=read-write
15387 rm -f conftest.
* conftest
[123].
*
15389 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
15391 cat >>confdefs.h
<<\_ACEOF
15392 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15396 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15397 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15399 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15400 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15401 gcc_cv_ld_eh_frame_hdr
=no
15402 if test $in_tree_ld = yes ; then
15403 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 \
15404 && test $in_tree_ld_is_elf = yes; then
15405 gcc_cv_ld_eh_frame_hdr
=yes
15407 elif test x
$gcc_cv_ld != x
; then
15408 # Check if linker supports --eh-frame-hdr option
15409 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
15410 gcc_cv_ld_eh_frame_hdr
=yes
15414 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
15416 cat >>confdefs.h
<<\_ACEOF
15417 #define HAVE_LD_EH_FRAME_HDR 1
15421 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15422 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15424 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15425 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15427 if test $in_tree_ld = yes ; then
15428 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 \
15429 && test $in_tree_ld_is_elf = yes; then
15432 elif test x
$gcc_cv_ld != x
; then
15433 # Check if linker supports -pie option
15434 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
15438 if test x
"$gcc_cv_ld_pie" = xyes
; then
15440 cat >>confdefs.h
<<\_ACEOF
15441 #define HAVE_LD_PIE 1
15445 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15446 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15452 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15453 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15454 if test "${gcc_cv_ld_as_needed+set}" = set; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 gcc_cv_ld_as_needed
=no
15458 if test $in_tree_ld = yes ; then
15459 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 \
15460 && test $in_tree_ld_is_elf = yes; then
15461 gcc_cv_ld_as_needed
=yes
15463 elif test x
$gcc_cv_ld != x
; then
15464 # Check if linker supports --as-needed and --no-as-needed options
15465 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
15466 gcc_cv_ld_as_needed
=yes
15471 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15472 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15473 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
15475 cat >>confdefs.h
<<\_ACEOF
15476 #define HAVE_LD_AS_NEEDED 1
15482 powerpc64
*-*-linux*)
15483 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15484 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15485 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15486 echo $ECHO_N "(cached) $ECHO_C" >&6
15488 gcc_cv_ld_no_dot_syms
=no
15489 if test $in_tree_ld = yes ; then
15490 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
15491 gcc_cv_ld_no_dot_syms
=yes
15493 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
15494 cat > conftest1.s
<<EOF
15498 cat > conftest2.s
<<EOF
15499 .section ".opd","aw"
15502 .type foo,@function
15504 .quad .LEfoo,.TOC.@tocbase,0
15510 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15511 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15512 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
15513 gcc_cv_ld_no_dot_syms
=yes
15515 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15519 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15520 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15521 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15523 cat >>confdefs.h
<<\_ACEOF
15524 #define HAVE_LD_NO_DOT_SYMS 1
15531 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15532 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15533 if test "${gcc_cv_ld_sysroot+set}" = set; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 gcc_cv_ld_sysroot
=no
15537 if test $in_tree_ld = yes ; then
15538 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
15539 gcc_cv_ld_sysroot
=yes
15541 elif test x
$gcc_cv_ld != x
; then
15542 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
15543 gcc_cv_ld_sysroot
=yes
15547 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15548 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15549 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
15551 cat >>confdefs.h
<<\_ACEOF
15552 #define HAVE_LD_SYSROOT 1
15557 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15558 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15560 cat >>confdefs.h
<<_ACEOF
15561 #define PREFIX_INCLUDE_DIR "$prefix/include"
15566 # Test for stack protector support in target C library.
15569 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15570 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15571 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 gcc_cv_libc_provides_ssp
=no
15575 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
15576 if test "x$with_sysroot" = x
; then
15577 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
15578 elif test "x$with_sysroot" = xyes
; then
15579 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15581 glibc_header_dir
="${with_sysroot}/usr/include"
15584 glibc_header_dir
=/usr
/include
15586 # glibc 2.4 and later provides __stack_chk_fail and
15587 # either __stack_chk_guard, or TLS access to stack guard canary.
15588 if test -f $glibc_header_dir/features.h \
15589 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
15590 $glibc_header_dir/features.h
> /dev
/null
; then
15591 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
15592 $glibc_header_dir/features.h
> /dev
/null
; then
15593 gcc_cv_libc_provides_ssp
=yes
15594 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
15595 $glibc_header_dir/features.h
> /dev
/null \
15596 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
15597 $glibc_header_dir/features.h
> /dev
/null
; then
15598 gcc_cv_libc_provides_ssp
=yes
15602 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15603 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15604 *) gcc_cv_libc_provides_ssp
=no
;;
15606 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
15608 cat >>confdefs.h
<<\_ACEOF
15609 #define TARGET_LIBC_PROVIDES_SSP 1
15614 # Find out what GC implementation we want, or may, use.
15616 # Check whether --with-gc or --without-gc was given.
15617 if test "${with_gc+set}" = set; then
15626 cat >>confdefs.h
<<\_ACEOF
15632 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15633 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15634 { (exit 1); exit 1; }; }
15641 echo "Using $GGC for garbage collection."
15643 # Use the system's zlib library.
15645 zlibinc
="-I\$(srcdir)/../zlib"
15647 # Check whether --with-system-zlib or --without-system-zlib was given.
15648 if test "${with_system_zlib+set}" = set; then
15649 withval
="$with_system_zlib"
15658 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15659 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15660 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15661 if test "${enable_maintainer_mode+set}" = set; then
15662 enableval
="$enable_maintainer_mode"
15663 maintainer_mode
=$enableval
15668 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15669 echo "${ECHO_T}$maintainer_mode" >&6
15671 if test "$maintainer_mode" = "yes"; then
15681 # Make empty files to contain the specs and options for each language.
15682 # Then add #include lines to for a compiler that has specs and/or options.
15687 for subdir
in .
$subdirs
15689 if test -f $srcdir/$subdir/lang.opt
; then
15690 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
15692 if test -f $srcdir/$subdir/lang-specs.h
; then
15693 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15695 if test -f $srcdir/$subdir/$subdir-tree.def
; then
15696 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15700 # These (without "all_") are set in each config-lang.in.
15701 # `language' must be a single word so is spelled singularly.
15703 all_boot_languages
=
15706 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15707 # List of language makefile fragments.
15708 all_lang_makefrags
=
15709 # List of language subdirectory makefiles. Deprecated.
15710 all_lang_makefiles
=
15711 # Files for gengtype
15712 all_gtfiles
="$target_gtfiles"
15713 # Files for gengtype with language
15714 all_gtfiles_files_langs
=
15715 all_gtfiles_files_files
=
15717 # Add the language fragments.
15718 # Languages are added via two mechanisms. Some information must be
15719 # recorded in makefile variables, these are defined in config-lang.in.
15720 # We accumulate them and plug them into the main Makefile.
15721 # The other mechanism is a set of hooks for each of the main targets
15722 # like `clean', `install', etc.
15724 language_hooks
="Make-hooks"
15734 .
${srcdir}/$s/config-lang.
in
15735 if test "x$language" = x
15737 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15740 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15741 if test -f ${srcdir}/$s/Makefile.
in
15742 then all_lang_makefiles
="$s/Makefile"
15744 all_languages
="$all_languages $language"
15745 if test "x$boot_language" = xyes
15747 all_boot_languages
="$all_boot_languages $language"
15749 all_compilers
="$all_compilers $compilers"
15750 all_stagestuff
="$all_stagestuff $stagestuff"
15751 all_outputs
="$all_outputs $outputs"
15752 all_gtfiles
="$all_gtfiles $gtfiles"
15755 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15756 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15760 # Pick up gtfiles for c
15763 .
${srcdir}/c-config-lang.
in
15764 all_gtfiles
="$all_gtfiles $gtfiles"
15767 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15768 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15772 for language
in $all_languages
15774 check_languages
="$check_languages check-$language"
15777 # We link each language in with a set of hooks, reached indirectly via
15782 target_list
="all.build all.cross start.encap rest.encap tags \
15783 install-normal install-common install-man \
15784 uninstall info man srcextra srcman srcinfo \
15785 mostlyclean clean distclean maintainer-clean \
15786 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15787 for t
in $target_list
15790 for lang
in $all_languages
15794 echo "lang.$t: $x" >> Make-hooks
15803 echo "dir ." > .gdbinit
15804 echo "dir ${srcdir}" >> .gdbinit
15805 if test x
$gdb_needs_out_file_path = xyes
15807 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15809 if test "x$subdirs" != x
; then
15812 echo "dir ${srcdir}/$s" >> .gdbinit
15815 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15817 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15818 # absolute path for gcc_tooldir based on inserting the number of up-directory
15819 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15820 # $(libsubdir)/@(unlibsubdir) based path.
15821 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15822 # make and thus we'd get different behavior depending on where we built the
15824 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
15825 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15827 # An explanation of the sed strings:
15828 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15829 # -e 's|/$||' match a trailing forward slash and eliminates it
15830 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15831 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15833 # (*) Note this pattern overwrites the first character of the string
15834 # with a forward slash if one is not already present. This is not a
15835 # problem because the exact names of the sub-directories concerned is
15836 # unimportant, just the number of them matters.
15838 # The practical upshot of these patterns is like this:
15840 # prefix exec_prefix result
15841 # ------ ----------- ------
15842 # /foo /foo/bar ../
15843 # /foo/ /foo/bar ../
15844 # /foo /foo/bar/ ../
15845 # /foo/ /foo/bar/ ../
15846 # /foo /foo/bar/ugg ../../
15849 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15854 # Find a directory in which to install a shared libgcc.
15856 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15857 if test "${enable_version_specific_runtime_libs+set}" = set; then
15858 enableval
="$enable_version_specific_runtime_libs"
15863 # Check whether --with-slibdir or --without-slibdir was given.
15864 if test "${with_slibdir+set}" = set; then
15865 withval
="$with_slibdir"
15866 slibdir
="$with_slibdir"
15868 if test "${enable_version_specific_runtime_libs+set}" = set; then
15869 slibdir
='$(libsubdir)'
15870 elif test "$host" != "$target"; then
15871 slibdir
='$(build_tooldir)/lib'
15873 slibdir
='$(libdir)'
15878 objdir
=`${PWDCMD-pwd}`
15881 # Substitute configuration variables
15946 if test x
${build} = x
${host} ; then
15947 if test x
${host} = x
${target} ; then
15948 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15950 echo "Links are now set up to build a cross-compiler" 1>&2
15951 echo " from ${host} to ${target}." 1>&2
15954 if test x
${host} = x
${target} ; then
15955 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15956 echo " for ${target}." 1>&2
15958 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15959 echo " from ${host} to ${target}." 1>&2
15966 # Configure the subdirectories
15967 # AC_CONFIG_SUBDIRS($subdirs)
15969 # Create the Makefile
15970 # and configure language subdirectories
15971 ac_config_files
="$ac_config_files $all_outputs"
15974 ac_config_commands
="$ac_config_commands default"
15976 cat >confcache
<<\_ACEOF
15977 # This file is a shell script that caches the results of configure
15978 # tests run on this system so they can be shared between configure
15979 # scripts and configure runs, see configure's option --config-cache.
15980 # It is not useful on other systems. If it contains results you don't
15981 # want to keep, you may remove or edit it.
15983 # config.status only pays attention to the cache file if you give it
15984 # the --recheck option to rerun configure.
15986 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15987 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15988 # following values.
15992 # The following way of writing the cache mishandles newlines in values,
15993 # but we know of no workaround that is simple, portable, and efficient.
15994 # So, don't put newlines in cache variables' values.
15995 # Ultrix sh set writes to stderr and can't be redirected directly,
15996 # and sets the high bit in the cache file unless we assign to the vars.
15999 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16001 # `set' does not quote correctly, so add quotes (double-quote
16002 # substitution turns \\\\ into \\, and sed turns \\ into \).
16005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16008 # `set' quotes correctly as required by POSIX, so do not add quotes.
16010 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16017 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16019 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16021 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
16022 if test -w $cache_file; then
16023 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16024 cat confcache
>$cache_file
16026 echo "not updating unwritable cache $cache_file"
16031 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16032 # Let make expand exec_prefix.
16033 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16035 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16036 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16037 # trailing colons and then remove the whole line if VPATH becomes empty
16038 # (actually we leave an empty line to preserve line numbers).
16039 if test "x$srcdir" = x.
; then
16040 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16041 s/:*\$(srcdir):*/:/;
16042 s/:*\${srcdir}:*/:/;
16044 s/^\([^=]*=[ ]*\):*/\1/;
16050 DEFS
=-DHAVE_CONFIG_H
16054 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16055 # 1. Remove the extension, and $U if already installed.
16056 ac_i
=`echo "$ac_i" |
16057 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16059 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
16060 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
16062 LIBOBJS
=$ac_libobjs
16064 LTLIBOBJS
=$ac_ltlibobjs
16068 : ${CONFIG_STATUS=./config.status}
16069 ac_clean_files_save
=$ac_clean_files
16070 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16071 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16072 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16073 cat >$CONFIG_STATUS <<_ACEOF
16075 # Generated by $as_me.
16076 # Run this file to recreate the current configuration.
16077 # Compiler output produced by configure, useful for debugging
16078 # configure, is in config.log if it exists.
16081 ac_cs_recheck=false
16083 SHELL=\${CONFIG_SHELL-$SHELL}
16086 cat >>$CONFIG_STATUS <<\_ACEOF
16087 ## --------------------- ##
16088 ## M4sh Initialization. ##
16089 ## --------------------- ##
16091 # Be Bourne compatible
16092 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16095 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16096 # is contrary to our usage. Disable this feature.
16097 alias -g '${1+"$@"}'='"$@"'
16098 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16101 DUALCASE
=1; export DUALCASE
# for MKS sh
16103 # Support unset when possible.
16104 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16111 # Work around bugs in pre-3.0 UWIN ksh.
16112 $as_unset ENV MAIL MAILPATH
16119 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16120 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16121 LC_TELEPHONE LC_TIME
16123 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16124 eval $as_var=C
; export $as_var
16130 # Required to use basename.
16131 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16137 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16138 as_basename
=basename
16144 # Name of the executable.
16145 as_me
=`$as_basename "$0" ||
16146 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16147 X"$0" : 'X\(//\)$' \| \
16148 X"$0" : 'X\(/\)$' \| \
16149 . : '\(.\)' 2>/dev/null ||
16151 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16152 /^X\/\(\/\/\)$/{ s//\1/; q; }
16153 /^X\/\(\/\).*/{ s//\1/; q; }
16157 # PATH needs CR, and LINENO needs CR and PATH.
16158 # Avoid depending upon Character Ranges.
16159 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16160 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16161 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16162 as_cr_digits
='0123456789'
16163 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16165 # The user is always right.
16166 if test "${PATH_SEPARATOR+set}" != set; then
16167 echo "#! /bin/sh" >conf$$.sh
16168 echo "exit 0" >>conf$$.sh
16170 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16179 as_lineno_1
=$LINENO
16180 as_lineno_2
=$LINENO
16181 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16182 test "x$as_lineno_1" != "x$as_lineno_2" &&
16183 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16184 # Find who we are. Look in the path if we contain no path at all
16187 *[\\/]* ) as_myself
=$0 ;;
16188 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16189 for as_dir
in $PATH
16192 test -z "$as_dir" && as_dir
=.
16193 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16198 # We did not find ourselves, most probably we were run as `sh COMMAND'
16199 # in which case we are not to be found in the path.
16200 if test "x$as_myself" = x
; then
16203 if test ! -f "$as_myself"; then
16204 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16205 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16206 { (exit 1); exit 1; }; }
16208 case $CONFIG_SHELL in
16210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16211 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16214 test -z "$as_dir" && as_dir
=.
16215 for as_base
in sh bash ksh sh5
; do
16218 if ("$as_dir/$as_base" -c '
16219 as_lineno_1=$LINENO
16220 as_lineno_2=$LINENO
16221 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16222 test "x$as_lineno_1" != "x$as_lineno_2" &&
16223 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16224 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
16225 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
16226 CONFIG_SHELL
=$as_dir/$as_base
16227 export CONFIG_SHELL
16228 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16236 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16237 # uniformly replaced by the line number. The first 'sed' inserts a
16238 # line-number line before each line; the second 'sed' does the real
16239 # work. The second script uses 'N' to pair each line-number line
16240 # with the numbered line, and appends trailing '-' during
16241 # substitution so that $LINENO is not a special case at line end.
16242 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16243 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16244 sed '=' <$as_myself |
16249 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16252 s,^['$as_cr_digits']*\n,,
16253 ' >$as_me.lineno
&&
16254 chmod +x
$as_me.lineno ||
16255 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16256 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16257 { (exit 1); exit 1; }; }
16259 # Don't try to exec as it changes $[0], causing all sort of problems
16260 # (the dirname of $[0] is not the place where we might find the
16261 # original and so on. Autoconf is especially sensible to this).
16263 # Exit status is that of the last command.
16268 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16269 *c
*,-n*) ECHO_N
= ECHO_C
='
16271 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16272 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16275 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16281 rm -f conf$$ conf$$.exe conf$$.
file
16283 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16284 # We could just check for DJGPP; but this test a) works b) is more generic
16285 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16286 if test -f conf$$.exe
; then
16287 # Don't use ln at all; we don't have any links
16292 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16297 rm -f conf$$ conf$$.exe conf$$.
file
16299 if mkdir
-p .
2>/dev
/null
; then
16302 test -d .
/-p && rmdir .
/-p
16306 as_executable_p
="test -f"
16308 # Sed expression to map a string onto a valid CPP name.
16309 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16311 # Sed expression to map a string onto a valid variable name.
16312 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16316 # We need space, tab and new line, in precisely that order.
16326 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16327 # report actual input values of CONFIG_FILES etc. instead of their
16328 # values after options handling. Logging --version etc. is OK.
16332 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16333 ## Running $as_me. ##
16338 This file was extended by $as_me, which was
16339 generated by GNU Autoconf 2.59. Invocation command line was
16341 CONFIG_FILES = $CONFIG_FILES
16342 CONFIG_HEADERS = $CONFIG_HEADERS
16343 CONFIG_LINKS = $CONFIG_LINKS
16344 CONFIG_COMMANDS = $CONFIG_COMMANDS
16348 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16352 # Files that config.status was made for.
16353 if test -n "$ac_config_files"; then
16354 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16357 if test -n "$ac_config_headers"; then
16358 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16361 if test -n "$ac_config_links"; then
16362 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16365 if test -n "$ac_config_commands"; then
16366 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16369 cat >>$CONFIG_STATUS <<\_ACEOF
16372 \`$as_me' instantiates files from templates according to the
16373 current configuration.
16375 Usage: $0 [OPTIONS] [FILE]...
16377 -h, --help print this help, then exit
16378 -V, --version print version number, then exit
16379 -q, --quiet do not print progress messages
16380 -d, --debug don't remove temporary files
16381 --recheck update $as_me by reconfiguring in the same conditions
16382 --file=FILE[:TEMPLATE]
16383 instantiate the configuration file FILE
16384 --header=FILE[:TEMPLATE]
16385 instantiate the configuration header FILE
16387 Configuration files:
16390 Configuration headers:
16393 Configuration commands:
16396 Report bugs to <bug-autoconf@gnu.org>."
16399 cat >>$CONFIG_STATUS <<_ACEOF
16402 configured by $0, generated by GNU Autoconf 2.59,
16403 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16405 Copyright (C) 2003 Free Software Foundation, Inc.
16406 This config.status script is free software; the Free Software Foundation
16407 gives unlimited permission to copy, distribute and modify it."
16411 cat >>$CONFIG_STATUS <<\_ACEOF
16412 # If no file are specified by the user, then we need to provide default
16413 # value. By we need to know if files were specified by the user.
16419 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16420 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16428 *) # This is not an option, so the user has probably given explicit
16431 ac_need_defaults
=false
;;
16435 # Handling of the options.
16437 cat >>$CONFIG_STATUS <<\_ACEOF
16438 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16440 --version |
--vers* |
-V )
16441 echo "$ac_cs_version"; exit 0 ;;
16443 # Conflict between --help and --header
16444 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16445 Try \`$0 --help' for more information." >&5
16446 echo "$as_me: error: ambiguous option: $1
16447 Try \`$0 --help' for more information." >&2;}
16448 { (exit 1); exit 1; }; };;
16449 --help |
--hel |
-h )
16450 echo "$ac_cs_usage"; exit 0 ;;
16451 --debug |
--d* |
-d )
16453 --file |
--fil |
--fi |
--f )
16455 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16456 ac_need_defaults
=false
;;
16457 --header |
--heade |
--head |
--hea )
16459 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16460 ac_need_defaults
=false
;;
16461 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16462 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16465 # This is an error.
16466 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16467 Try \`$0 --help' for more information." >&5
16468 echo "$as_me: error: unrecognized option: $1
16469 Try \`$0 --help' for more information." >&2;}
16470 { (exit 1); exit 1; }; } ;;
16472 *) ac_config_targets
="$ac_config_targets $1" ;;
16478 ac_configure_extra_args
=
16480 if $ac_cs_silent; then
16482 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16486 cat >>$CONFIG_STATUS <<_ACEOF
16487 if \$ac_cs_recheck; then
16488 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16489 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16494 cat >>$CONFIG_STATUS <<_ACEOF
16496 # INIT-COMMANDS section.
16505 cat >>$CONFIG_STATUS <<\_ACEOF
16506 for ac_config_target
in $ac_config_targets
16508 case "$ac_config_target" in
16509 # Handling of arguments.
16510 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
16511 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16512 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
16513 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16514 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16515 { (exit 1); exit 1; }; };;
16519 # If the user did not use the arguments to specify the items to instantiate,
16520 # then the envvar interface is used. Set only those that are not.
16521 # We use the long form for the default assignment because of an extremely
16522 # bizarre bug on SunOS 4.1.3.
16523 if $ac_need_defaults; then
16524 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16525 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16526 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16529 # Have a temporary directory for convenience. Make it in the build tree
16530 # simply because there is no reason to put it here, and in addition,
16531 # creating and moving files from /tmp can sometimes cause problems.
16532 # Create a temporary directory, and hook for its removal unless debugging.
16535 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16536 trap '{ (exit 1); exit 1; }' 1 2 13 15
16539 # Create a (secure) tmp directory for tmp files.
16542 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16543 test -n "$tmp" && test -d "$tmp"
16546 tmp
=.
/confstat$$
-$RANDOM
16547 (umask 077 && mkdir
$tmp)
16550 echo "$me: cannot create a temporary directory in ." >&2
16551 { (exit 1); exit 1; }
16556 cat >>$CONFIG_STATUS <<_ACEOF
16559 # CONFIG_FILES section.
16562 # No need to generate the scripts if there are no CONFIG_FILES.
16563 # This happens for instance when ./config.status config.h
16564 if test -n "\$CONFIG_FILES"; then
16565 # Protect against being on the right side of a sed subst in config.status.
16566 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16567 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16568 s,@SHELL@,$SHELL,;t t
16569 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16570 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16571 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16572 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16573 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16574 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16575 s,@exec_prefix@,$exec_prefix,;t t
16576 s,@prefix@,$prefix,;t t
16577 s,@program_transform_name@,$program_transform_name,;t t
16578 s,@bindir@,$bindir,;t t
16579 s,@sbindir@,$sbindir,;t t
16580 s,@libexecdir@,$libexecdir,;t t
16581 s,@datadir@,$datadir,;t t
16582 s,@sysconfdir@,$sysconfdir,;t t
16583 s,@sharedstatedir@,$sharedstatedir,;t t
16584 s,@localstatedir@,$localstatedir,;t t
16585 s,@libdir@,$libdir,;t t
16586 s,@includedir@,$includedir,;t t
16587 s,@oldincludedir@,$oldincludedir,;t t
16588 s,@infodir@,$infodir,;t t
16589 s,@mandir@,$mandir,;t t
16590 s,@build_alias@,$build_alias,;t t
16591 s,@host_alias@,$host_alias,;t t
16592 s,@target_alias@,$target_alias,;t t
16593 s,@DEFS@,$DEFS,;t t
16594 s,@ECHO_C@,$ECHO_C,;t t
16595 s,@ECHO_N@,$ECHO_N,;t t
16596 s,@ECHO_T@,$ECHO_T,;t t
16597 s,@LIBS@,$LIBS,;t t
16598 s,@build@,$build,;t t
16599 s,@build_cpu@,$build_cpu,;t t
16600 s,@build_vendor@,$build_vendor,;t t
16601 s,@build_os@,$build_os,;t t
16602 s,@host@,$host,;t t
16603 s,@host_cpu@,$host_cpu,;t t
16604 s,@host_vendor@,$host_vendor,;t t
16605 s,@host_os@,$host_os,;t t
16606 s,@target@,$target,;t t
16607 s,@target_cpu@,$target_cpu,;t t
16608 s,@target_vendor@,$target_vendor,;t t
16609 s,@target_os@,$target_os,;t t
16610 s,@target_noncanonical@,$target_noncanonical,;t t
16611 s,@build_subdir@,$build_subdir,;t t
16612 s,@host_subdir@,$host_subdir,;t t
16613 s,@target_subdir@,$target_subdir,;t t
16614 s,@GENINSRC@,$GENINSRC,;t t
16616 s,@CFLAGS@,$CFLAGS,;t t
16617 s,@LDFLAGS@,$LDFLAGS,;t t
16618 s,@CPPFLAGS@,$CPPFLAGS,;t t
16619 s,@ac_ct_CC@,$ac_ct_CC,;t t
16620 s,@EXEEXT@,$EXEEXT,;t t
16621 s,@OBJEXT@,$OBJEXT,;t t
16622 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16623 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16625 s,@EGREP@,$EGREP,;t t
16626 s,@strict1_warn@,$strict1_warn,;t t
16627 s,@warn_cflags@,$warn_cflags,;t t
16628 s,@WERROR@,$WERROR,;t t
16629 s,@nocommon_flag@,$nocommon_flag,;t t
16630 s,@TREEBROWSER@,$TREEBROWSER,;t t
16631 s,@valgrind_path@,$valgrind_path,;t t
16632 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16633 s,@valgrind_command@,$valgrind_command,;t t
16634 s,@coverage_flags@,$coverage_flags,;t t
16635 s,@enable_multilib@,$enable_multilib,;t t
16636 s,@enable_shared@,$enable_shared,;t t
16637 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16638 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16639 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16640 s,@onestep@,$onestep,;t t
16641 s,@SET_MAKE@,$SET_MAKE,;t t
16643 s,@LN_S@,$LN_S,;t t
16645 s,@RANLIB@,$RANLIB,;t t
16646 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16647 s,@ranlib_flags@,$ranlib_flags,;t t
16648 s,@INSTALL@,$INSTALL,;t t
16649 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16650 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16651 s,@make_compare_target@,$make_compare_target,;t t
16652 s,@have_mktemp_command@,$have_mktemp_command,;t t
16653 s,@MAKEINFO@,$MAKEINFO,;t t
16654 s,@BUILD_INFO@,$BUILD_INFO,;t t
16655 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16656 s,@FLEX@,$FLEX,;t t
16657 s,@BISON@,$BISON,;t t
16660 s,@stage1_cflags@,$stage1_cflags,;t t
16661 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16662 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16663 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16664 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16665 s,@LIBICONV@,$LIBICONV,;t t
16666 s,@LTLIBICONV@,$LTLIBICONV,;t t
16667 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16668 s,@manext@,$manext,;t t
16669 s,@objext@,$objext,;t t
16670 s,@gthread_flags@,$gthread_flags,;t t
16671 s,@extra_modes_file@,$extra_modes_file,;t t
16672 s,@extra_opt_files@,$extra_opt_files,;t t
16673 s,@USE_NLS@,$USE_NLS,;t t
16674 s,@LIBINTL@,$LIBINTL,;t t
16675 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16676 s,@INCINTL@,$INCINTL,;t t
16677 s,@XGETTEXT@,$XGETTEXT,;t t
16678 s,@GMSGFMT@,$GMSGFMT,;t t
16679 s,@POSUB@,$POSUB,;t t
16680 s,@CATALOGS@,$CATALOGS,;t t
16681 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16682 s,@CROSS@,$CROSS,;t t
16684 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16685 s,@inhibit_libc@,$inhibit_libc,;t t
16686 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16687 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16688 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16689 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16690 s,@collect2@,$collect2,;t t
16691 s,@gcc_cv_as@,$gcc_cv_as,;t t
16692 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
16693 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
16694 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
16695 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
16696 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
16697 s,@libgcc_visibility@,$libgcc_visibility,;t t
16699 s,@zlibdir@,$zlibdir,;t t
16700 s,@zlibinc@,$zlibinc,;t t
16701 s,@MAINT@,$MAINT,;t t
16702 s,@gcc_tooldir@,$gcc_tooldir,;t t
16703 s,@dollar@,$dollar,;t t
16704 s,@slibdir@,$slibdir,;t t
16705 s,@objdir@,$objdir,;t t
16706 s,@subdirs@,$subdirs,;t t
16707 s,@srcdir@,$srcdir,;t t
16708 s,@all_boot_languages@,$all_boot_languages,;t t
16709 s,@all_compilers@,$all_compilers,;t t
16710 s,@all_gtfiles@,$all_gtfiles,;t t
16711 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16712 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16713 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16714 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16715 s,@all_languages@,$all_languages,;t t
16716 s,@all_stagestuff@,$all_stagestuff,;t t
16717 s,@build_exeext@,$build_exeext,;t t
16718 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16719 s,@build_xm_file_list@,$build_xm_file_list,;t t
16720 s,@build_xm_include_list@,$build_xm_include_list,;t t
16721 s,@build_xm_defines@,$build_xm_defines,;t t
16722 s,@check_languages@,$check_languages,;t t
16723 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16724 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16725 s,@cpp_install_dir@,$cpp_install_dir,;t t
16726 s,@xmake_file@,$xmake_file,;t t
16727 s,@tmake_file@,$tmake_file,;t t
16728 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16729 s,@extra_headers_list@,$extra_headers_list,;t t
16730 s,@extra_objs@,$extra_objs,;t t
16731 s,@extra_parts@,$extra_parts,;t t
16732 s,@extra_passes@,$extra_passes,;t t
16733 s,@extra_programs@,$extra_programs,;t t
16734 s,@float_h_file@,$float_h_file,;t t
16735 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16736 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16737 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16738 s,@host_exeext@,$host_exeext,;t t
16739 s,@host_xm_file_list@,$host_xm_file_list,;t t
16740 s,@host_xm_include_list@,$host_xm_include_list,;t t
16741 s,@host_xm_defines@,$host_xm_defines,;t t
16742 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16743 s,@install@,$install,;t t
16744 s,@lang_opt_files@,$lang_opt_files,;t t
16745 s,@lang_specs_files@,$lang_specs_files,;t t
16746 s,@lang_tree_files@,$lang_tree_files,;t t
16747 s,@local_prefix@,$local_prefix,;t t
16748 s,@md_file@,$md_file,;t t
16749 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16750 s,@out_file@,$out_file,;t t
16751 s,@out_object_file@,$out_object_file,;t t
16752 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16753 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16754 s,@thread_file@,$thread_file,;t t
16755 s,@tm_file_list@,$tm_file_list,;t t
16756 s,@tm_include_list@,$tm_include_list,;t t
16757 s,@tm_defines@,$tm_defines,;t t
16758 s,@tm_p_file_list@,$tm_p_file_list,;t t
16759 s,@tm_p_include_list@,$tm_p_include_list,;t t
16760 s,@xm_file_list@,$xm_file_list,;t t
16761 s,@xm_include_list@,$xm_include_list,;t t
16762 s,@xm_defines@,$xm_defines,;t t
16763 s,@c_target_objs@,$c_target_objs,;t t
16764 s,@cxx_target_objs@,$cxx_target_objs,;t t
16765 s,@target_cpu_default@,$target_cpu_default,;t t
16766 s,@GMPLIBS@,$GMPLIBS,;t t
16767 s,@GMPINC@,$GMPINC,;t t
16768 s,@LIBOBJS@,$LIBOBJS,;t t
16769 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16770 /@language_hooks@/r $language_hooks
16771 s,@language_hooks@,,;t t
16776 cat >>$CONFIG_STATUS <<\_ACEOF
16777 # Split the substitutions into bite-sized pieces for seds with
16778 # small command number limits, like on Digital OSF/1 and HP-UX.
16779 ac_max_sed_lines
=48
16780 ac_sed_frag
=1 # Number of current file.
16781 ac_beg
=1 # First line for current file.
16782 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16785 while $ac_more_lines; do
16786 if test $ac_beg -gt 1; then
16787 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16789 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16791 if test ! -s $tmp/subs.frag
; then
16792 ac_more_lines
=false
16794 # The purpose of the label and of the branching condition is to
16795 # speed up the sed processing (if there are no `@' at all, there
16796 # is no need to browse any of the substitutions).
16797 # These are the two extra sed commands mentioned above.
16799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16800 if test -z "$ac_sed_cmds"; then
16801 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16803 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16805 ac_sed_frag
=`expr $ac_sed_frag + 1`
16807 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16810 if test -z "$ac_sed_cmds"; then
16813 fi # test -n "$CONFIG_FILES"
16816 cat >>$CONFIG_STATUS <<\_ACEOF
16817 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16818 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16820 - |
*:- |
*:-:* ) # input from stdin
16822 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16823 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16824 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16825 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16826 * ) ac_file_in
=$ac_file.
in ;;
16829 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16830 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16831 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16832 X"$ac_file" : 'X\(//\)[^/]' \| \
16833 X"$ac_file" : 'X\(//\)$' \| \
16834 X"$ac_file" : 'X\(/\)' \| \
16835 . : '\(.\)' 2>/dev/null ||
16837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16838 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16839 /^X\(\/\/\)$/{ s//\1/; q; }
16840 /^X\(\/\).*/{ s//\1/; q; }
16842 { if $as_mkdir_p; then
16847 while test ! -d "$as_dir"; do
16848 as_dirs
="$as_dir $as_dirs"
16849 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16851 X"$as_dir" : 'X\(//\)[^/]' \| \
16852 X"$as_dir" : 'X\(//\)$' \| \
16853 X"$as_dir" : 'X\(/\)' \| \
16854 . : '\(.\)' 2>/dev/null ||
16856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16858 /^X\(\/\/\)$/{ s//\1/; q; }
16859 /^X\(\/\).*/{ s//\1/; q; }
16862 test ! -n "$as_dirs" || mkdir
$as_dirs
16863 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16864 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16865 { (exit 1); exit 1; }; }; }
16869 if test "$ac_dir" != .
; then
16870 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16871 # A "../" for each directory in $ac_dir_suffix.
16872 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16874 ac_dir_suffix
= ac_top_builddir
=
16878 .
) # No --srcdir option. We are building in place.
16880 if test -z "$ac_top_builddir"; then
16883 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16885 [\\/]* | ?
:[\\/]* ) # Absolute path.
16886 ac_srcdir
=$srcdir$ac_dir_suffix;
16887 ac_top_srcdir
=$srcdir ;;
16888 *) # Relative path.
16889 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16890 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16893 # Do not use `cd foo && pwd` to compute absolute paths, because
16894 # the directories may not exist.
16896 .
) ac_abs_builddir
="$ac_dir";;
16899 .
) ac_abs_builddir
=`pwd`;;
16900 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16901 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16904 case $ac_abs_builddir in
16905 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16907 case ${ac_top_builddir}.
in
16908 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16909 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16910 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16913 case $ac_abs_builddir in
16914 .
) ac_abs_srcdir
=$ac_srcdir;;
16917 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16918 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16919 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16922 case $ac_abs_builddir in
16923 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16925 case $ac_top_srcdir in
16926 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16927 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16928 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16934 if test x
"$ac_file" != x-
; then
16935 { echo "$as_me:$LINENO: creating $ac_file" >&5
16936 echo "$as_me: creating $ac_file" >&6;}
16939 # Let's still pretend it is `configure' which instantiates (i.e., don't
16940 # use $as_me), people would be surprised to read:
16941 # /* config.h. Generated by config.status. */
16942 if test x
"$ac_file" = x-
; then
16945 configure_input
="$ac_file. "
16947 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16948 sed 's,.*/,,'` by configure."
16950 # First look for the input files in the build tree, otherwise in the
16952 ac_file_inputs
=`IFS=:
16953 for f in $ac_file_in; do
16955 -) echo $tmp/stdin ;;
16957 # Absolute (can't be DOS-style, as IFS=:)
16958 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16959 echo "$as_me: error: cannot find input file: $f" >&2;}
16960 { (exit 1); exit 1; }; }
16963 if test -f "$f"; then
16966 elif test -f "$srcdir/$f"; then
16971 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16972 echo "$as_me: error: cannot find input file: $f" >&2;}
16973 { (exit 1); exit 1; }; }
16976 done` ||
{ (exit 1); exit 1; }
16978 cat >>$CONFIG_STATUS <<_ACEOF
16982 cat >>$CONFIG_STATUS <<\_ACEOF
16984 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16985 s
,@configure_input@
,$configure_input,;t t
16986 s
,@srcdir@
,$ac_srcdir,;t t
16987 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16988 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16989 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16990 s
,@builddir@
,$ac_builddir,;t t
16991 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16992 s
,@top_builddir@
,$ac_top_builddir,;t t
16993 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16994 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16996 if test x"$ac_file" != x-; then
16997 mv $tmp/out $ac_file
17005 cat >>$CONFIG_STATUS <<\_ACEOF
17008 # CONFIG_HEADER section.
17011 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17012 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17014 # ac_d sets the value in "#define NAME VALUE" lines.
17015 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17016 ac_dB
='[ ].*$,\1#\2'
17019 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17020 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17021 ac_uB
='$,\1#\2define\3'
17025 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17026 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17028 - |
*:- |
*:-:* ) # input from stdin
17030 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17031 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17032 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17033 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17034 * ) ac_file_in
=$ac_file.
in ;;
17037 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17038 echo "$as_me: creating $ac_file" >&6;}
17040 # First look for the input files in the build tree, otherwise in the
17042 ac_file_inputs
=`IFS=:
17043 for f in $ac_file_in; do
17045 -) echo $tmp/stdin ;;
17047 # Absolute (can't be DOS-style, as IFS=:)
17048 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17049 echo "$as_me: error: cannot find input file: $f" >&2;}
17050 { (exit 1); exit 1; }; }
17051 # Do quote $f, to prevent DOS paths from being IFS'd.
17054 if test -f "$f"; then
17057 elif test -f "$srcdir/$f"; then
17062 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17063 echo "$as_me: error: cannot find input file: $f" >&2;}
17064 { (exit 1); exit 1; }; }
17067 done` ||
{ (exit 1); exit 1; }
17068 # Remove the trailing spaces.
17069 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17073 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17074 # `conftest.undefs', that substitutes the proper values into
17075 # config.h.in to produce config.h. The first handles `#define'
17076 # templates, and the second `#undef' templates.
17077 # And first: Protect against being on the right side of a sed subst in
17078 # config.status. Protect against being in an unquoted here document
17079 # in config.status.
17080 rm -f conftest.defines conftest.undefs
17081 # Using a here document instead of a string reduces the quoting nightmare.
17082 # Putting comments in sed scripts is not portable.
17084 # `end' is used to avoid that the second main sed command (meant for
17085 # 0-ary CPP macros) applies to n-ary macro definitions.
17086 # See the Autoconf documentation for `clear'.
17087 cat >confdef2sed.
sed <<\_ACEOF
17092 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17094 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17097 # If some macros were called several times there might be several times
17098 # the same #defines, which is useless. Nevertheless, we may not want to
17099 # sort them, since we want the *last* AC-DEFINE to be honored.
17100 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17101 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17102 rm -f confdef2sed.sed
17104 # This sed command replaces #undef with comments. This is necessary, for
17105 # example, in the case of _POSIX_SOURCE, which is predefined and required
17106 # on some systems where configure will not decide to define it.
17107 cat >>conftest.undefs <<\_ACEOF
17108 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17111 # Break up conftest.defines because some shells have a limit on the size
17112 # of here documents, and old seds have small limits too (100 cmds).
17113 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17114 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17115 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17116 echo ' :' >>$CONFIG_STATUS
17117 rm -f conftest.tail
17118 while grep . conftest.defines >/dev/null
17120 # Write a limited-size here document to $tmp/defines.sed.
17121 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17122 # Speed up: don't consider the non `#define' lines.
17123 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17124 # Work around the forget-to-reset-the-flag bug.
17125 echo 't clr' >>$CONFIG_STATUS
17126 echo ': clr' >>$CONFIG_STATUS
17127 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17129 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17131 mv $tmp/out $tmp/in
17133 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17134 rm -f conftest.defines
17135 mv conftest.
tail conftest.defines
17137 rm -f conftest.defines
17138 echo ' fi # grep' >>$CONFIG_STATUS
17139 echo >>$CONFIG_STATUS
17141 # Break up conftest.undefs because some shells have a limit on the size
17142 # of here documents, and old seds have small limits too (100 cmds).
17143 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17144 rm -f conftest.
tail
17145 while grep . conftest.undefs
>/dev
/null
17147 # Write a limited-size here document to $tmp/undefs.sed.
17148 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17149 # Speed up: don't consider the non
`#undef'
17150 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17151 # Work around the forget-to-reset-the-flag bug.
17152 echo 't clr' >>$CONFIG_STATUS
17153 echo ': clr' >>$CONFIG_STATUS
17154 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17156 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17158 mv $tmp/out $tmp/in
17160 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17161 rm -f conftest.undefs
17162 mv conftest.tail conftest.undefs
17164 rm -f conftest.undefs
17166 cat >>$CONFIG_STATUS <<\_ACEOF
17167 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17168 # use $as_me), people would be surprised to read:
17169 # /* config.h. Generated by config.status. */
17170 if test x
"$ac_file" = x-
; then
17171 echo "/* Generated by configure. */" >$tmp/config.h
17173 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17175 cat $tmp/in >>$tmp/config.h
17177 if test x
"$ac_file" != x-
; then
17178 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
17179 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17180 echo "$as_me: $ac_file is unchanged" >&6;}
17182 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17184 X"$ac_file" : 'X\(//\)[^/]' \| \
17185 X"$ac_file" : 'X\(//\)$' \| \
17186 X"$ac_file" : 'X\(/\)' \| \
17187 . : '\(.\)' 2>/dev/null ||
17189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17191 /^X\(\/\/\)$/{ s//\1/; q; }
17192 /^X\(\/\).*/{ s//\1/; q; }
17194 { if $as_mkdir_p; then
17199 while test ! -d "$as_dir"; do
17200 as_dirs
="$as_dir $as_dirs"
17201 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17203 X"$as_dir" : 'X\(//\)[^/]' \| \
17204 X"$as_dir" : 'X\(//\)$' \| \
17205 X"$as_dir" : 'X\(/\)' \| \
17206 . : '\(.\)' 2>/dev/null ||
17208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17210 /^X\(\/\/\)$/{ s//\1/; q; }
17211 /^X\(\/\).*/{ s//\1/; q; }
17214 test ! -n "$as_dirs" || mkdir
$as_dirs
17215 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17216 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17217 { (exit 1); exit 1; }; }; }
17220 mv $tmp/config.h
$ac_file
17224 rm -f $tmp/config.h
17228 cat >>$CONFIG_STATUS <<\_ACEOF
17231 # CONFIG_COMMANDS section.
17233 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17234 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17235 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17236 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17237 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17238 X"$ac_dest" : 'X\(//\)[^/]' \| \
17239 X"$ac_dest" : 'X\(//\)$' \| \
17240 X"$ac_dest" : 'X\(/\)' \| \
17241 . : '\(.\)' 2>/dev/null ||
17243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17245 /^X\(\/\/\)$/{ s//\1/; q; }
17246 /^X\(\/\).*/{ s//\1/; q; }
17248 { if $as_mkdir_p; then
17253 while test ! -d "$as_dir"; do
17254 as_dirs
="$as_dir $as_dirs"
17255 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17257 X"$as_dir" : 'X\(//\)[^/]' \| \
17258 X"$as_dir" : 'X\(//\)$' \| \
17259 X"$as_dir" : 'X\(/\)' \| \
17260 . : '\(.\)' 2>/dev/null ||
17262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17264 /^X\(\/\/\)$/{ s//\1/; q; }
17265 /^X\(\/\).*/{ s//\1/; q; }
17268 test ! -n "$as_dirs" || mkdir
$as_dirs
17269 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17270 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17271 { (exit 1); exit 1; }; }; }
17275 if test "$ac_dir" != .
; then
17276 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17277 # A "../" for each directory in $ac_dir_suffix.
17278 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17280 ac_dir_suffix
= ac_top_builddir
=
17284 .
) # No --srcdir option. We are building in place.
17286 if test -z "$ac_top_builddir"; then
17289 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17291 [\\/]* | ?
:[\\/]* ) # Absolute path.
17292 ac_srcdir
=$srcdir$ac_dir_suffix;
17293 ac_top_srcdir
=$srcdir ;;
17294 *) # Relative path.
17295 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17296 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17299 # Do not use `cd foo && pwd` to compute absolute paths, because
17300 # the directories may not exist.
17302 .
) ac_abs_builddir
="$ac_dir";;
17305 .
) ac_abs_builddir
=`pwd`;;
17306 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17307 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17310 case $ac_abs_builddir in
17311 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17313 case ${ac_top_builddir}.
in
17314 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17315 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17316 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17319 case $ac_abs_builddir in
17320 .
) ac_abs_srcdir
=$ac_srcdir;;
17323 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17324 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17325 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17328 case $ac_abs_builddir in
17329 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17331 case $ac_top_srcdir in
17332 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17333 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17334 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17339 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17340 echo "$as_me: executing $ac_dest commands" >&6;}
17343 case ${CONFIG_HEADERS} in
17344 *auto-host.h
:config.
in*)
17347 # Make sure all the subdirs exist.
17348 for d
in $subdirs doc build
17350 test -d $d || mkdir
$d
17352 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17353 # bootstrapping and the installation procedure can still use
17354 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17355 # FLAGS_TO_PASS has been modified to solve the problem there.
17356 # This is virtually a duplicate of what happens in configure.lang; we do
17357 # an extra check to make sure this only happens if ln -s can be used.
17360 for d
in ${subdirs} ; do
17361 STARTDIR
=`${PWDCMD-pwd}`
17363 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17366 $LN_S ..
/$t $t 2>/dev
/null
17377 cat >>$CONFIG_STATUS <<\_ACEOF
17379 { (exit 0); exit 0; }
17381 chmod +x
$CONFIG_STATUS
17382 ac_clean_files
=$ac_clean_files_save
17385 # configure is writing to config.log, and then calls config.status.
17386 # config.status does its own redirection, appending to config.log.
17387 # Unfortunately, on DOS this fails, as config.log is still kept open
17388 # by configure, so config.status won't be able to write to it; its
17389 # output is simply discarded. So we exec the FD to /dev/null,
17390 # effectively closing config.log, so it can be properly (re)opened and
17391 # appended to by config.status. When coming back to configure, we
17392 # need to make the FD available again.
17393 if test "$no_create" != yes; then
17395 ac_config_status_args
=
17396 test "$silent" = yes &&
17397 ac_config_status_args
="$ac_config_status_args --quiet"
17399 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17401 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17402 # would make configure fail if this is the last instruction.
17403 $ac_cs_success ||
{ (exit 1); exit 1; }