2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: assert
,fold,gc
,gcac
,misc
,
871 rtlflag
,rtl
,runtime
,tree
,valgrind
,release
,yes,all
;
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler
's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don
't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --disable-rpath do not hardcode runtime library paths
890 --enable-initfini-array use .init_array/.fini_array sections
891 --enable-sjlj-exceptions
892 arrange to use setjmp/longjmp exception handling
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-gnu-ld assume the C compiler uses GNU ld default=no
925 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
926 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
927 --with-system-libunwind use installed libunwind
928 --with-gc={page
,zone
} choose the garbage collection mechanism to use
930 --with-system-zlib use installed libz
931 --with-slibdir=DIR shared libraries
in DIR LIBDIR
933 Some influential environment variables
:
934 CC C compiler
command
935 CFLAGS C compiler flags
936 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
937 nonstandard directory
<lib dir
>
938 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
939 headers
in a nonstandard directory
<include dir
>
941 GMPLIBS How to link GMP
942 GMPINC How to
find GMP include files
944 Use these variables to override the choices made by
`configure' or to help
945 it to find libraries and programs with nonstandard names/locations.
950 if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
957 if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
962 ac_dir_suffix= ac_top_builddir=
966 .) # No --srcdir option. We are building in place.
968 if test -z "$ac_top_builddir"; then
971 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
981 # Do not use `cd foo
&& pwd` to compute absolute paths, because
982 # the directories may not exist.
984 .) ac_abs_builddir="$ac_dir";;
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1021 # Check for guested configure; otherwise get Cygnus style configure.
1022 if test -f $ac_srcdir/configure.gnu; then
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
1029 test -f $ac_srcdir/configure.in; then
1031 $ac_configure --help
1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1054 It was created by $as_me, which was
1055 generated by GNU Autoconf 2.59. Invocation command line was
1066 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1067 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1068 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1069 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1070 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1072 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1073 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1075 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1076 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1077 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1078 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1079 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1080 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1081 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1089 test -z "$as_dir" && as_dir=.
1090 echo "PATH: $as_dir"
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1114 ac_must_keep_next=false
1120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1124 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1128 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1130 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131 if test $ac_must_keep_next = true; then
1132 ac_must_keep_next=false # Got value, back to normal.
1135 *=* | --config-cache | -C | -disable-* | --disable-* \
1136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138 | -with-* | --with-* | -without-* | --without-* | --x)
1139 case "$ac_configure_args0 " in
1140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1143 -* ) ac_must_keep_next=true ;;
1146 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147 # Get rid of the leading space.
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log. We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close
' the trap.
1161 trap 'exit_status
=$?
1162 # Save into config.log some information that might help in debugging.
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1172 # The following way of writing the cache mishandles newlines in values,
1175 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1178 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1195 for ac_var
in $ac_subst_vars
1197 eval ac_val
=$
`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1202 if test -n "$ac_subst_files"; then
1209 for ac_var
in $ac_subst_files
1211 eval ac_val
=$
`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1217 if test -s confdefs.h
; then
1224 sed "/^$/d" confdefs.h |
sort
1227 test "$ac_signal" != 0 &&
1228 echo "$as_me: caught signal $ac_signal"
1229 echo "$as_me: exit $exit_status"
1231 rm -f core
*.core
&&
1232 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1235 for ac_signal in 1 2 13 15; do
1236 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1245 # Predefined preprocessor variables.
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275 if test "x$prefix" != xNONE; then
1276 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281 for ac_site_file in $CONFIG_SITE; do
1282 if test -r "$ac_site_file"; then
1283 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285 sed 's
/^
/|
/' "$ac_site_file" >&5
1290 if test -r "$cache_file"; then
1291 # Some versions of bash will fail to source /dev/null (special
1292 # files actually), so we avoid doing that.
1293 if test -f "$cache_file"; then
1294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1297 [\\/]* | ?:[\\/]* ) . $cache_file;;
1298 *) . ./$cache_file;;
1302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1307 # Check that the precious variables saved in the cache have kept the same
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313 eval ac_new_set=\$ac_env_${ac_var}_set
1314 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315 eval ac_new_val="\$ac_env_${ac_var}_value"
1316 case $ac_old_set,$ac_new_set in
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1320 ac_cache_corrupted=: ;;
1322 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1327 if test "x$ac_old_val" != "x$ac_new_val"; then
1328 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1329 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1330 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1331 echo "$as_me: former value: $ac_old_val" >&2;}
1332 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1333 echo "$as_me: current value: $ac_new_val" >&2;}
1334 ac_cache_corrupted=:
1337 # Pass precious variables to config.status.
1338 if test "$ac_new_set" = set; then
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1342 *) ac_arg=$ac_var=$ac_new_val ;;
1344 case " $ac_configure_args " in
1345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1346 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1350 if $ac_cache_corrupted; then
1351 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1354 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355 { (exit 1); exit 1; }; }
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1361 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1386 # Determine the host, build, and target systems
1388 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1389 if test -f $ac_dir/install-sh; then
1391 ac_install_sh="$ac_aux_dir/install-sh -c"
1393 elif test -f $ac_dir/install.sh; then
1395 ac_install_sh="$ac_aux_dir/install.sh -c"
1397 elif test -f $ac_dir/shtool; then
1399 ac_install_sh="$ac_aux_dir/shtool install -c"
1403 if test -z "$ac_aux_dir"; then
1404 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1405 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1406 { (exit 1); exit 1; }; }
1408 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1409 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1410 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1412 # Make sure we can run config.sub.
1413 $ac_config_sub sun4 >/dev/null 2>&1 ||
1414 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1415 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1416 { (exit 1); exit 1; }; }
1418 echo "$as_me:$LINENO: checking build system type" >&5
1419 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1420 if test "${ac_cv_build+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 ac_cv_build_alias=$build_alias
1424 test -z "$ac_cv_build_alias" &&
1425 ac_cv_build_alias=`$ac_config_guess`
1426 test -z "$ac_cv_build_alias" &&
1427 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1428 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1429 { (exit 1); exit 1; }; }
1430 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1431 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1437 echo "${ECHO_T}$ac_cv_build" >&6
1439 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1440 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1441 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1444 echo "$as_me:$LINENO: checking host system type" >&5
1445 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1446 if test "${ac_cv_host+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 ac_cv_host_alias=$host_alias
1450 test -z "$ac_cv_host_alias" &&
1451 ac_cv_host_alias=$ac_cv_build_alias
1452 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1453 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1454 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1455 { (exit 1); exit 1; }; }
1458 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1459 echo "${ECHO_T}$ac_cv_host" >&6
1461 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1462 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1463 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1466 echo "$as_me:$LINENO: checking target system type" >&5
1467 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1468 if test "${ac_cv_target+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 ac_cv_target_alias=$target_alias
1472 test "x$ac_cv_target_alias" = "x" &&
1473 ac_cv_target_alias=$ac_cv_host_alias
1474 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1475 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1476 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1477 { (exit 1); exit 1; }; }
1480 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1481 echo "${ECHO_T}$ac_cv_target" >&6
1482 target=$ac_cv_target
1483 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1484 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1485 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1488 # The aliases save the names the user supplied, while $host etc.
1489 # will get canonicalized.
1490 test -n "$target_alias" &&
1491 test "$program_prefix$program_suffix$program_transform_name" = \
1493 program_prefix=${target_alias}-
1495 # Determine the noncanonical target name, for directory use.
1496 case ${build_alias} in
1497 "") build_noncanonical=${build} ;;
1498 *) build_noncanonical=${build_alias} ;;
1501 case ${host_alias} in
1502 "") host_noncanonical=${build_noncanonical} ;;
1503 *) host_noncanonical=${host_alias} ;;
1506 case ${target_alias} in
1507 "") target_noncanonical=${host_noncanonical} ;;
1508 *) target_noncanonical=${target_alias} ;;
1514 # Determine the target- and build-specific subdirectories
1515 # Prefix 'build-
' so this never conflicts with target_subdir.
1516 build_subdir="build-${build_noncanonical}"
1517 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1518 if ( test $srcdir = . && test -d gcc ) \
1519 || test -d $srcdir/../host-${host_noncanonical}; then
1520 host_subdir="host-${host_noncanonical}"
1525 target_subdir=${target_noncanonical}
1528 # Set program_transform_name
1529 test "$program_prefix" != NONE &&
1530 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1531 # Use a double $ so make ignores it.
1532 test "$program_suffix" != NONE &&
1533 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1534 # Double any \ or $. echo might interpret backslashes.
1535 # By default was `s,x,x', remove it
if useless.
1536 cat <<\_ACEOF
>conftest.
sed
1537 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1539 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1543 # Check for bogus environment variables.
1544 # Test if LIBRARY_PATH contains the notation for the current directory
1545 # since this would lead to problems installing/building glibc.
1546 # LIBRARY_PATH contains the current directory if one of the following
1548 # - one of the terminals (":" and ";") is the first or last sign
1549 # - two terminals occur directly after each other
1550 # - the path contains an element with a dot in it
1551 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1552 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1553 case ${LIBRARY_PATH} in
1554 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1555 library_path_setting
="contains current directory"
1558 library_path_setting
="ok"
1561 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1562 echo "${ECHO_T}$library_path_setting" >&6
1563 if test "$library_path_setting" != "ok"; then
1564 { { echo "$as_me:$LINENO: error:
1565 *** LIBRARY_PATH shouldn't contain the current directory when
1566 *** building gcc. Please change the environment variable
1567 *** and run configure again." >&5
1568 echo "$as_me: error:
1569 *** LIBRARY_PATH shouldn't contain the current directory when
1570 *** building gcc. Please change the environment variable
1571 *** and run configure again." >&2;}
1572 { (exit 1); exit 1; }; }
1575 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1576 # since this would lead to problems installing/building glibc.
1577 # GCC_EXEC_PREFIX contains the current directory if one of the following
1579 # - one of the terminals (":" and ";") is the first or last sign
1580 # - two terminals occur directly after each other
1581 # - the path contains an element with a dot in it
1582 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1583 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1584 case ${GCC_EXEC_PREFIX} in
1585 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1586 gcc_exec_prefix_setting
="contains current directory"
1589 gcc_exec_prefix_setting
="ok"
1592 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1593 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1594 if test "$gcc_exec_prefix_setting" != "ok"; then
1595 { { echo "$as_me:$LINENO: error:
1596 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1597 *** building gcc. Please change the environment variable
1598 *** and run configure again." >&5
1599 echo "$as_me: error:
1600 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1601 *** building gcc. Please change the environment variable
1602 *** and run configure again." >&2;}
1603 { (exit 1); exit 1; }; }
1610 # Specify the local prefix
1613 # Check whether --with-local-prefix or --without-local-prefix was given.
1614 if test "${with_local_prefix+set}" = set; then
1615 withval
="$with_local_prefix"
1616 case "${withval}" in
1617 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1618 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1619 { (exit 1); exit 1; }; } ;;
1621 *) local_prefix
=$with_local_prefix ;;
1625 # Default local prefix if it is empty
1626 if test x
$local_prefix = x
; then
1627 local_prefix
=/usr
/local
1630 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1631 # passed in by the toplevel make and thus we'd get different behavior
1632 # depending on where we built the sources.
1633 gcc_gxx_include_dir
=
1634 # Specify the g++ header file directory
1636 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1637 if test "${with_gxx_include_dir+set}" = set; then
1638 withval
="$with_gxx_include_dir"
1639 case "${withval}" in
1640 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1641 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1642 { (exit 1); exit 1; }; } ;;
1644 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1648 if test x
${gcc_gxx_include_dir} = x
; then
1649 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1650 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1652 libstdcxx_incdir
='c++/$(version)'
1653 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1658 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1659 if test "${with_cpp_install_dir+set}" = set; then
1660 withval
="$with_cpp_install_dir"
1661 if test x
$withval = xyes
; then
1662 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1663 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1664 { (exit 1); exit 1; }; }
1665 elif test x
$withval != xno
; then
1666 cpp_install_dir
=$withval
1670 # We would like to our source tree to be readonly. However when releases or
1671 # pre-releases are generated, the flex/bison generated files as well as the
1672 # various formats of manuals need to be included along with the rest of the
1673 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1676 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1677 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1678 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1679 if test "${enable_generated_files_in_srcdir+set}" = set; then
1680 enableval
="$enable_generated_files_in_srcdir"
1681 generated_files_in_srcdir
=$enableval
1683 generated_files_in_srcdir
=no
1686 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1687 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1689 if test "$generated_files_in_srcdir" = "yes"; then
1696 # -------------------
1697 # Find default linker
1698 # -------------------
1702 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1703 if test "${with_gnu_ld+set}" = set; then
1704 withval
="$with_gnu_ld"
1705 gnu_ld_flag
="$with_gnu_ld"
1710 # With pre-defined ld
1712 # Check whether --with-ld or --without-ld was given.
1713 if test "${with_ld+set}" = set; then
1715 DEFAULT_LINKER
="$with_ld"
1717 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1718 if test ! -x "$DEFAULT_LINKER"; then
1719 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1720 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1721 { (exit 1); exit 1; }; }
1722 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1726 cat >>confdefs.h
<<_ACEOF
1727 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1732 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1733 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1734 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1735 if test x
"$gnu_ld_flag" = x
"no"; then
1736 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1737 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1739 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1740 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1743 echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1747 # With demangler in GNU ld
1749 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1750 if test "${with_demangler_in_ld+set}" = set; then
1751 withval
="$with_demangler_in_ld"
1752 demangler_in_ld
="$with_demangler_in_ld"
1757 # ----------------------
1758 # Find default assembler
1759 # ----------------------
1763 # Check whether --with-gnu-as or --without-gnu-as was given.
1764 if test "${with_gnu_as+set}" = set; then
1765 withval
="$with_gnu_as"
1766 gas_flag
="$with_gnu_as"
1772 # Check whether --with-as or --without-as was given.
1773 if test "${with_as+set}" = set; then
1775 DEFAULT_ASSEMBLER
="$with_as"
1777 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1778 if test ! -x "$DEFAULT_ASSEMBLER"; then
1779 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1780 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1781 { (exit 1); exit 1; }; }
1782 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1786 cat >>confdefs.h
<<_ACEOF
1787 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1792 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1793 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1794 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1795 if test x
"$gas_flag" = x
"no"; then
1796 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1797 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1799 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1800 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1811 # If a non-executable a.out is present (e.g. created by GNU as above even if
1812 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1813 # file, even when creating an executable, so an execution test fails.
1814 # Remove possible default executable files to avoid this.
1816 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1817 # Autoconf includes it.
1818 rm -f a.out a.exe b.out
1820 # Find the native compiler
1822 ac_cpp
='$CPP $CPPFLAGS'
1823 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1826 if test -n "$ac_tool_prefix"; then
1827 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1828 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1829 echo "$as_me:$LINENO: checking for $ac_word" >&5
1830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831 if test "${ac_cv_prog_CC+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 if test -n "$CC"; then
1835 ac_cv_prog_CC
="$CC" # Let the user override the test.
1837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1841 test -z "$as_dir" && as_dir
=.
1842 for ac_exec_ext
in '' $ac_executable_extensions; do
1843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 if test -n "$CC"; then
1855 echo "$as_me:$LINENO: result: $CC" >&5
1856 echo "${ECHO_T}$CC" >&6
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1863 if test -z "$ac_cv_prog_CC"; then
1865 # Extract the first word of "gcc", so it can be a program name with args.
1866 set dummy gcc
; ac_word
=$2
1867 echo "$as_me:$LINENO: checking for $ac_word" >&5
1868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 if test -n "$ac_ct_CC"; then
1873 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1879 test -z "$as_dir" && as_dir
=.
1880 for ac_exec_ext
in '' $ac_executable_extensions; do
1881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882 ac_cv_prog_ac_ct_CC
="gcc"
1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1892 if test -n "$ac_ct_CC"; then
1893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894 echo "${ECHO_T}$ac_ct_CC" >&6
1896 echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6
1905 if test -z "$CC"; then
1906 if test -n "$ac_tool_prefix"; then
1907 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1908 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1909 echo "$as_me:$LINENO: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_CC+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 if test -n "$CC"; then
1915 ac_cv_prog_CC
="$CC" # Let the user override the test.
1917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1921 test -z "$as_dir" && as_dir
=.
1922 for ac_exec_ext
in '' $ac_executable_extensions; do
1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 if test -n "$CC"; then
1935 echo "$as_me:$LINENO: result: $CC" >&5
1936 echo "${ECHO_T}$CC" >&6
1938 echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1943 if test -z "$ac_cv_prog_CC"; then
1945 # Extract the first word of "cc", so it can be a program name with args.
1946 set dummy cc
; ac_word
=$2
1947 echo "$as_me:$LINENO: checking for $ac_word" >&5
1948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 if test -n "$ac_ct_CC"; then
1953 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1959 test -z "$as_dir" && as_dir
=.
1960 for ac_exec_ext
in '' $ac_executable_extensions; do
1961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962 ac_cv_prog_ac_ct_CC
="cc"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1972 if test -n "$ac_ct_CC"; then
1973 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1974 echo "${ECHO_T}$ac_ct_CC" >&6
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1986 if test -z "$CC"; then
1987 # Extract the first word of "cc", so it can be a program name with args.
1988 set dummy cc
; ac_word
=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 if test -n "$CC"; then
1995 ac_cv_prog_CC
="$CC" # Let the user override the test.
1998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2002 test -z "$as_dir" && as_dir
=.
2003 for ac_exec_ext
in '' $ac_executable_extensions; do
2004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2006 ac_prog_rejected
=yes
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016 if test $ac_prog_rejected = yes; then
2017 # We found a bogon in the path, so make sure we never use it.
2018 set dummy
$ac_cv_prog_CC
2020 if test $# != 0; then
2021 # We chose a different compiler from the bogus one.
2022 # However, it has the same basename, so the bogon will be chosen
2023 # first if we set CC to just the basename; use the full file name.
2025 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2031 if test -n "$CC"; then
2032 echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2040 if test -z "$CC"; then
2041 if test -n "$ac_tool_prefix"; then
2044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2045 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 if test -n "$CC"; then
2052 ac_cv_prog_CC
="$CC" # Let the user override the test.
2054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2058 test -z "$as_dir" && as_dir
=.
2059 for ac_exec_ext
in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 if test -n "$CC"; then
2072 echo "$as_me:$LINENO: result: $CC" >&5
2073 echo "${ECHO_T}$CC" >&6
2075 echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6
2079 test -n "$CC" && break
2082 if test -z "$CC"; then
2086 # Extract the first word of "$ac_prog", so it can be a program name with args.
2087 set dummy
$ac_prog; ac_word
=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 if test -n "$ac_ct_CC"; then
2094 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2100 test -z "$as_dir" && as_dir
=.
2101 for ac_exec_ext
in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_ac_ct_CC
="$ac_prog"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2113 if test -n "$ac_ct_CC"; then
2114 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2115 echo "${ECHO_T}$ac_ct_CC" >&6
2117 echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2121 test -n "$ac_ct_CC" && break
2130 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: no acceptable C compiler found in \$PATH
2133 See \`config.log' for more details." >&2;}
2134 { (exit 1); exit 1; }; }
2136 # Provide some information about the compiler.
2137 echo "$as_me:$LINENO:" \
2138 "checking for C compiler version" >&5
2139 ac_compiler
=`set X $ac_compile; echo $2`
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2141 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }
2145 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2146 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }
2150 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2151 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }
2156 cat >conftest.
$ac_ext <<_ACEOF
2159 cat confdefs.h
>>conftest.
$ac_ext
2160 cat >>conftest.
$ac_ext <<_ACEOF
2161 /* end confdefs.h. */
2171 ac_clean_files_save
=$ac_clean_files
2172 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2173 # Try to create an executable without -o first, disregard a.out.
2174 # It will help us diagnose broken compilers, and finding out an intuition
2176 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2177 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2178 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2179 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2180 (eval $ac_link_default) 2>&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; then
2184 # Find the output, starting from the most likely. This scheme is
2185 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2188 # Be careful to initialize this variable, since it used to be cached.
2189 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2191 # b.out is created by i960 compilers.
2192 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2194 test -f "$ac_file" ||
continue
2196 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2199 # This is the source file.
2202 # We found the default executable, but exeext='' is most
2206 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207 # FIXME: I believe we export ac_cv_exeext for Libtool,
2208 # but it would be cool to find out if it's true. Does anybody
2209 # maintain Libtool? --akim.
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.
$ac_ext >&5
2220 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: C compiler cannot create executables
2223 See \`config.log' for more details." >&2;}
2224 { (exit 77); exit 77; }; }
2227 ac_exeext
=$ac_cv_exeext
2228 echo "$as_me:$LINENO: result: $ac_file" >&5
2229 echo "${ECHO_T}$ac_file" >&6
2231 # Check the compiler produces executables we can run. If not, either
2232 # the compiler is broken, or we cross compile.
2233 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2234 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2235 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2236 # If not cross compiling, check that we can run a simple program.
2237 if test "$cross_compiling" != yes; then
2238 if { ac_try
='./$ac_file'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2246 if test "$cross_compiling" = maybe
; then
2249 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2250 If you meant to cross compile, use \`--host'.
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: cannot run C compiled programs.
2253 If you meant to cross compile, use \`--host'.
2254 See \`config.log' for more details." >&2;}
2255 { (exit 1); exit 1; }; }
2259 echo "$as_me:$LINENO: result: yes" >&5
2260 echo "${ECHO_T}yes" >&6
2262 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2263 ac_clean_files
=$ac_clean_files_save
2264 # Check the compiler produces executables we can run. If not, either
2265 # the compiler is broken, or we cross compile.
2266 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2267 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2268 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2269 echo "${ECHO_T}$cross_compiling" >&6
2271 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2272 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2274 (eval $ac_link) 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2279 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2280 # work properly (i.e., refer to `conftest.exe'), while it won't with
2282 for ac_file
in conftest.exe conftest conftest.
*; do
2283 test -f "$ac_file" ||
continue
2285 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2286 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2293 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&5
2295 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
2300 rm -f conftest
$ac_cv_exeext
2301 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302 echo "${ECHO_T}$ac_cv_exeext" >&6
2304 rm -f conftest.
$ac_ext
2305 EXEEXT
=$ac_cv_exeext
2307 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2309 if test "${ac_cv_objext+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 cat >conftest.
$ac_ext <<_ACEOF
2315 cat confdefs.h
>>conftest.
$ac_ext
2316 cat >>conftest.
$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2327 rm -f conftest.o conftest.obj
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; then
2333 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2335 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2336 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.
$ac_ext >&5
2344 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2345 See \`config.log' for more details." >&5
2346 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&2;}
2348 { (exit 1); exit 1; }; }
2351 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2353 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2354 echo "${ECHO_T}$ac_cv_objext" >&6
2355 OBJEXT
=$ac_cv_objext
2357 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2358 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2359 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 cat >conftest.
$ac_ext <<_ACEOF
2365 cat confdefs.h
>>conftest.
$ac_ext
2366 cat >>conftest.
$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2380 rm -f conftest.
$ac_objext
2381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382 (eval $ac_compile) 2>conftest.er1
2384 grep -v '^ *+' conftest.er1
>conftest.err
2386 cat conftest.err
>&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } &&
2389 { ac_try
='test -z "$ac_c_werror_flag"
2390 || test ! -s conftest.err'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; } &&
2396 { ac_try
='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.
$ac_ext >&5
2409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2410 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2413 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2414 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2415 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2416 ac_test_CFLAGS
=${CFLAGS+set}
2417 ac_save_CFLAGS
=$CFLAGS
2419 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2420 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2421 if test "${ac_cv_prog_cc_g+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 cat >conftest.
$ac_ext <<_ACEOF
2427 cat confdefs.h
>>conftest.
$ac_ext
2428 cat >>conftest.
$ac_ext <<_ACEOF
2429 /* end confdefs.h. */
2439 rm -f conftest.
$ac_objext
2440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441 (eval $ac_compile) 2>conftest.er1
2443 grep -v '^ *+' conftest.er1
>conftest.err
2445 cat conftest.err
>&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); } &&
2448 { ac_try
='test -z "$ac_c_werror_flag"
2449 || test ! -s conftest.err'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; } &&
2455 { ac_try
='test -s conftest.$ac_objext'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; }; then
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.
$ac_ext >&5
2468 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2471 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2472 if test "$ac_test_CFLAGS" = set; then
2473 CFLAGS
=$ac_save_CFLAGS
2474 elif test $ac_cv_prog_cc_g = yes; then
2475 if test "$GCC" = yes; then
2481 if test "$GCC" = yes; then
2487 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2488 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2489 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 ac_cv_prog_cc_stdc
=no
2494 cat >conftest.
$ac_ext <<_ACEOF
2497 cat confdefs.h
>>conftest.
$ac_ext
2498 cat >>conftest.
$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2502 #include <sys/types.h>
2503 #include <sys/stat.h>
2504 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2505 struct buf { int x; };
2506 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2507 static char *e (p, i)
2513 static char *f (char * (*g) (char **, int), char **p, ...)
2518 s = g (p, va_arg (v,int));
2523 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2524 function prototypes and stuff, but not '\xHH' hex character constants.
2525 These don't provoke an error unfortunately, instead are silently treated
2526 as 'x'. The following induces an error, until -std1 is added to get
2527 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2528 array size at least. It's necessary to write '\x00'==0 to get something
2529 that's true only with -std1. */
2530 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2532 int test (int i, double x);
2533 struct s1 {int (*f) (int a);};
2534 struct s2 {int (*f) (double a);};
2535 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2541 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2546 # Don't try gcc -ansi; that turns off useful extensions and
2547 # breaks some systems' header files.
2548 # AIX -qlanglvl=ansi
2549 # Ultrix and OSF/1 -std1
2550 # HP-UX 10.20 and later -Ae
2551 # HP-UX older versions -Aa -D_HPUX_SOURCE
2552 # SVR4 -Xc -D__EXTENSIONS__
2553 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2555 CC
="$ac_save_CC $ac_arg"
2556 rm -f conftest.
$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2560 grep -v '^ *+' conftest.er1
>conftest.err
2562 cat conftest.err
>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try
='test -z "$ac_c_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try
='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 ac_cv_prog_cc_stdc
=$ac_arg
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.
$ac_ext >&5
2585 rm -f conftest.err conftest.
$ac_objext
2587 rm -f conftest.
$ac_ext conftest.
$ac_objext
2592 case "x$ac_cv_prog_cc_stdc" in
2594 echo "$as_me:$LINENO: result: none needed" >&5
2595 echo "${ECHO_T}none needed" >&6 ;;
2597 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2598 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2599 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2602 # Some people use a C++ compiler to compile C. Since we use `exit',
2603 # in C++ we need to declare it. In case someone uses the same compiler
2604 # for both compiling C and C++ we need to have the C++ compiler decide
2605 # the declaration of exit, since it's the most demanding environment.
2606 cat >conftest.
$ac_ext <<_ACEOF
2611 rm -f conftest.
$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>conftest.er1
2615 grep -v '^ *+' conftest.er1
>conftest.err
2617 cat conftest.err
>&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try
='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try
='test -s conftest.$ac_objext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2633 for ac_declaration
in \
2635 'extern "C" void std::exit (int) throw (); using std::exit;' \
2636 'extern "C" void std::exit (int); using std::exit;' \
2637 'extern "C" void exit (int) throw ();' \
2638 'extern "C" void exit (int);' \
2641 cat >conftest.
$ac_ext <<_ACEOF
2644 cat confdefs.h
>>conftest.
$ac_ext
2645 cat >>conftest.
$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2657 rm -f conftest.
$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2661 grep -v '^ *+' conftest.er1
>conftest.err
2663 cat conftest.err
>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try
='test -z "$ac_c_werror_flag"
2667 || test ! -s conftest.err'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try
='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.
$ac_ext >&5
2686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2687 cat >conftest.
$ac_ext <<_ACEOF
2690 cat confdefs.h
>>conftest.
$ac_ext
2691 cat >>conftest.
$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2702 rm -f conftest.
$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2706 grep -v '^ *+' conftest.er1
>conftest.err
2708 cat conftest.err
>&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try
='test -z "$ac_c_werror_flag"
2712 || test ! -s conftest.err'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try
='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.
$ac_ext >&5
2730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2733 if test -n "$ac_declaration"; then
2734 echo '#ifdef __cplusplus' >>confdefs.h
2735 echo $ac_declaration >>confdefs.h
2736 echo '#endif' >>confdefs.h
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.
$ac_ext >&5
2744 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2746 ac_cpp
='$CPP $CPPFLAGS'
2747 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2751 if test "x$CC" != xcc
; then
2752 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2753 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2755 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2756 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2758 set dummy
$CC; ac_cc
=`echo $2 |
2759 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2760 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 cat >conftest.
$ac_ext <<_ACEOF
2766 cat confdefs.h
>>conftest.
$ac_ext
2767 cat >>conftest.
$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2778 # Make sure it works both with $CC and with simple cc.
2779 # We do the test twice because some compilers refuse to overwrite an
2780 # existing .o file with -o, though they will create one.
2781 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2782 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); };
2793 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2794 if test "x$CC" != xcc
; then
2795 # Test first that cc exists at all.
2796 if { ac_try
='cc -c conftest.$ac_ext >&5'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2803 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); };
2817 # cc exists but doesn't like -o.
2818 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2823 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2828 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2829 echo "$as_me:$LINENO: result: yes" >&5
2830 echo "${ECHO_T}yes" >&6
2832 echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6
2835 cat >>confdefs.h
<<\_ACEOF
2836 #define NO_MINUS_C_MINUS_O 1
2841 # expand $ac_aux_dir to an absolute path
2842 am_aux_dir
=`cd $ac_aux_dir && pwd`
2844 # FIXME: we rely on the cache variable name because
2845 # there is no other way.
2847 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2848 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2849 # Losing compiler, so override with the script.
2850 # FIXME: It is wrong to rewrite CC.
2851 # But if we don't then we get into trouble of one sort or another.
2852 # A longer-term fix would be to have automake use am__CC in this case,
2853 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2854 CC
="$am_aux_dir/compile $CC"
2857 # autoconf is lame and doesn't give us any substitution variable for this.
2858 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2859 NO_MINUS_C_MINUS_O
=yes
2861 OUTPUT_OPTION
='-o $@'
2866 # -------------------------
2867 # Check C compiler features
2868 # -------------------------
2871 ac_cpp
='$CPP $CPPFLAGS'
2872 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2875 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2876 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2877 # On Suns, sometimes $CPP names a directory.
2878 if test -n "$CPP" && test -d "$CPP"; then
2881 if test -z "$CPP"; then
2882 if test "${ac_cv_prog_CPP+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 # Double quotes because CPP needs to be expanded
2886 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2889 for ac_c_preproc_warn_flag
in '' yes
2891 # Use a header file that comes with gcc, so configuring glibc
2892 # with a fresh cross-compiler works.
2893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2894 # <limits.h> exists even on freestanding compilers.
2895 # On the NeXT, cc -E runs the code through the compiler's parser,
2896 # not just through cpp. "Syntax error" is here to catch this case.
2897 cat >conftest.
$ac_ext <<_ACEOF
2900 cat confdefs.h
>>conftest.
$ac_ext
2901 cat >>conftest.
$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2904 # include <limits.h>
2906 # include <assert.h>
2910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2911 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2913 grep -v '^ *+' conftest.er1
>conftest.err
2915 cat conftest.err
>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } >/dev
/null
; then
2918 if test -s conftest.err
; then
2919 ac_cpp_err
=$ac_c_preproc_warn_flag
2920 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2927 if test -z "$ac_cpp_err"; then
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.
$ac_ext >&5
2933 # Broken: fails on valid input.
2936 rm -f conftest.err conftest.
$ac_ext
2938 # OK, works on sane cases. Now check whether non-existent headers
2939 # can be detected and how.
2940 cat >conftest.
$ac_ext <<_ACEOF
2943 cat confdefs.h
>>conftest.
$ac_ext
2944 cat >>conftest.
$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #include <ac_nonexistent.h>
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2951 grep -v '^ *+' conftest.er1
>conftest.err
2953 cat conftest.err
>&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } >/dev
/null
; then
2956 if test -s conftest.err
; then
2957 ac_cpp_err
=$ac_c_preproc_warn_flag
2958 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2965 if test -z "$ac_cpp_err"; then
2966 # Broken: success on invalid input.
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.
$ac_ext >&5
2972 # Passes both tests.
2976 rm -f conftest.err conftest.
$ac_ext
2979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2980 rm -f conftest.err conftest.
$ac_ext
2981 if $ac_preproc_ok; then
2993 echo "$as_me:$LINENO: result: $CPP" >&5
2994 echo "${ECHO_T}$CPP" >&6
2996 for ac_c_preproc_warn_flag
in '' yes
2998 # Use a header file that comes with gcc, so configuring glibc
2999 # with a fresh cross-compiler works.
3000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001 # <limits.h> exists even on freestanding compilers.
3002 # On the NeXT, cc -E runs the code through the compiler's parser,
3003 # not just through cpp. "Syntax error" is here to catch this case.
3004 cat >conftest.
$ac_ext <<_ACEOF
3007 cat confdefs.h
>>conftest.
$ac_ext
3008 cat >>conftest.
$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3011 # include <limits.h>
3013 # include <assert.h>
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3020 grep -v '^ *+' conftest.er1
>conftest.err
3022 cat conftest.err
>&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } >/dev
/null
; then
3025 if test -s conftest.err
; then
3026 ac_cpp_err
=$ac_c_preproc_warn_flag
3027 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3034 if test -z "$ac_cpp_err"; then
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.
$ac_ext >&5
3040 # Broken: fails on valid input.
3043 rm -f conftest.err conftest.
$ac_ext
3045 # OK, works on sane cases. Now check whether non-existent headers
3046 # can be detected and how.
3047 cat >conftest.
$ac_ext <<_ACEOF
3050 cat confdefs.h
>>conftest.
$ac_ext
3051 cat >>conftest.
$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #include <ac_nonexistent.h>
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3058 grep -v '^ *+' conftest.er1
>conftest.err
3060 cat conftest.err
>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } >/dev
/null
; then
3063 if test -s conftest.err
; then
3064 ac_cpp_err
=$ac_c_preproc_warn_flag
3065 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3072 if test -z "$ac_cpp_err"; then
3073 # Broken: success on invalid input.
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.
$ac_ext >&5
3079 # Passes both tests.
3083 rm -f conftest.err conftest.
$ac_ext
3086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087 rm -f conftest.err conftest.
$ac_ext
3088 if $ac_preproc_ok; then
3091 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&5
3093 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3094 See \`config.log' for more details." >&2;}
3095 { (exit 1); exit 1; }; }
3099 ac_cpp
='$CPP $CPPFLAGS'
3100 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3105 echo "$as_me:$LINENO: checking for inline" >&5
3106 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3107 if test "${ac_cv_c_inline+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 for ac_kw
in inline __inline__ __inline
; do
3112 cat >conftest.
$ac_ext <<_ACEOF
3115 cat confdefs.h
>>conftest.
$ac_ext
3116 cat >>conftest.
$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3120 static $ac_kw foo_t static_foo () {return 0; }
3121 $ac_kw foo_t foo () {return 0; }
3125 rm -f conftest.
$ac_objext
3126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3127 (eval $ac_compile) 2>conftest.er1
3129 grep -v '^ *+' conftest.er1
>conftest.err
3131 cat conftest.err
>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } &&
3134 { ac_try
='test -z "$ac_c_werror_flag"
3135 || test ! -s conftest.err'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } &&
3141 { ac_try
='test -s conftest.$ac_objext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_c_inline
=$ac_kw; break
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.
$ac_ext >&5
3153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3157 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3158 echo "${ECHO_T}$ac_cv_c_inline" >&6
3161 case $ac_cv_c_inline in
3164 case $ac_cv_c_inline in
3166 *) ac_val
=$ac_cv_c_inline;;
3168 cat >>confdefs.h
<<_ACEOF
3170 #define inline $ac_val
3177 echo "$as_me:$LINENO: checking for long long int" >&5
3178 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3179 if test "${ac_cv_c_long_long+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 cat >conftest.
$ac_ext <<_ACEOF
3185 cat confdefs.h
>>conftest.
$ac_ext
3186 cat >>conftest.
$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3197 rm -f conftest.
$ac_objext
3198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199 (eval $ac_compile) 2>conftest.er1
3201 grep -v '^ *+' conftest.er1
>conftest.err
3203 cat conftest.err
>&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } &&
3206 { ac_try
='test -z "$ac_c_werror_flag"
3207 || test ! -s conftest.err'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; } &&
3213 { ac_try
='test -s conftest.$ac_objext'
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3219 ac_cv_c_long_long
=yes
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.
$ac_ext >&5
3224 ac_cv_c_long_long
=no
3226 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3228 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3229 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3230 if test $ac_cv_c_long_long = yes; then
3232 cat >>confdefs.h
<<\_ACEOF
3233 #define HAVE_LONG_LONG 1
3237 echo "$as_me:$LINENO: checking for __int64" >&5
3238 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3239 if test "${ac_cv_c___int64+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 cat >conftest.
$ac_ext <<_ACEOF
3245 cat confdefs.h
>>conftest.
$ac_ext
3246 cat >>conftest.
$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3257 rm -f conftest.
$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>conftest.er1
3261 grep -v '^ *+' conftest.er1
>conftest.err
3263 cat conftest.err
>&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try
='test -z "$ac_c_werror_flag"
3267 || test ! -s conftest.err'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; } &&
3273 { ac_try
='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.
$ac_ext >&5
3286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3288 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3289 echo "${ECHO_T}$ac_cv_c___int64" >&6
3290 if test $ac_cv_c___int64 = yes; then
3292 cat >>confdefs.h
<<\_ACEOF
3293 #define HAVE___INT64 1
3299 # sizeof(char) is 1 by definition.
3301 echo "$as_me:$LINENO: checking for egrep" >&5
3302 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3303 if test "${ac_cv_prog_egrep+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3307 then ac_cv_prog_egrep
='grep -E'
3308 else ac_cv_prog_egrep
='egrep'
3311 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3312 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3313 EGREP
=$ac_cv_prog_egrep
3316 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3317 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3318 if test "${ac_cv_header_stdc+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 cat >conftest.
$ac_ext <<_ACEOF
3324 cat confdefs.h
>>conftest.
$ac_ext
3325 cat >>conftest.
$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3340 rm -f conftest.
$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>conftest.er1
3344 grep -v '^ *+' conftest.er1
>conftest.err
3346 cat conftest.err
>&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try
='test -z "$ac_c_werror_flag"
3350 || test ! -s conftest.err'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try
='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 ac_cv_header_stdc
=yes
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.
$ac_ext >&5
3367 ac_cv_header_stdc
=no
3369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3371 if test $ac_cv_header_stdc = yes; then
3372 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3373 cat >conftest.
$ac_ext <<_ACEOF
3376 cat confdefs.h
>>conftest.
$ac_ext
3377 cat >>conftest.
$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3383 $EGREP "memchr" >/dev
/null
2>&1; then
3386 ac_cv_header_stdc
=no
3392 if test $ac_cv_header_stdc = yes; then
3393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3394 cat >conftest.
$ac_ext <<_ACEOF
3397 cat confdefs.h
>>conftest.
$ac_ext
3398 cat >>conftest.
$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3404 $EGREP "free" >/dev
/null
2>&1; then
3407 ac_cv_header_stdc
=no
3413 if test $ac_cv_header_stdc = yes; then
3414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3415 if test "$cross_compiling" = yes; then
3418 cat >conftest.
$ac_ext <<_ACEOF
3421 cat confdefs.h
>>conftest.
$ac_ext
3422 cat >>conftest.
$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3425 #if ((' ' & 0x0FF) == 0x020)
3426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3429 # define ISLOWER(c) \
3430 (('a' <= (c) && (c) <= 'i') \
3431 || ('j' <= (c) && (c) <= 'r') \
3432 || ('s' <= (c) && (c) <= 'z'))
3433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3441 for (i = 0; i < 256; i++)
3442 if (XOR (islower (i), ISLOWER (i))
3443 || toupper (i) != TOUPPER (i))
3448 rm -f conftest
$ac_exeext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3450 (eval $ac_link) 2>&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3461 echo "$as_me: program exited with status $ac_status" >&5
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.
$ac_ext >&5
3466 ac_cv_header_stdc
=no
3468 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3472 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3473 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3474 if test $ac_cv_header_stdc = yes; then
3476 cat >>confdefs.h
<<\_ACEOF
3477 #define STDC_HEADERS 1
3482 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3492 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3493 inttypes.h stdint.h unistd.h
3495 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3496 echo "$as_me:$LINENO: checking for $ac_header" >&5
3497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 cat >conftest.
$ac_ext <<_ACEOF
3504 cat confdefs.h
>>conftest.
$ac_ext
3505 cat >>conftest.
$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3507 $ac_includes_default
3509 #include <$ac_header>
3511 rm -f conftest.
$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>conftest.er1
3515 grep -v '^ *+' conftest.er1
>conftest.err
3517 cat conftest.err
>&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try
='test -z "$ac_c_werror_flag"
3521 || test ! -s conftest.err'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try
='test -s conftest.$ac_objext'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 eval "$as_ac_Header=yes"
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.
$ac_ext >&5
3538 eval "$as_ac_Header=no"
3540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3545 cat >>confdefs.h
<<_ACEOF
3546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3554 echo "$as_me:$LINENO: checking for void *" >&5
3555 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3556 if test "${ac_cv_type_void_p+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 cat >conftest.
$ac_ext <<_ACEOF
3562 cat confdefs.h
>>conftest.
$ac_ext
3563 cat >>conftest.
$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 $ac_includes_default
3571 if (sizeof (void *))
3577 rm -f conftest.
$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3581 grep -v '^ *+' conftest.er1
>conftest.err
3583 cat conftest.err
>&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try
='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try
='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 ac_cv_type_void_p
=yes
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.
$ac_ext >&5
3604 ac_cv_type_void_p
=no
3606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3608 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3609 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3611 echo "$as_me:$LINENO: checking size of void *" >&5
3612 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3613 if test "${ac_cv_sizeof_void_p+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 if test "$ac_cv_type_void_p" = yes; then
3617 # The cast to unsigned long works around a bug in the HP C Compiler
3618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3620 # This bug is HP SR number 8606223364.
3621 if test "$cross_compiling" = yes; then
3622 # Depending upon the size, compute the lo and hi bounds.
3623 cat >conftest.
$ac_ext <<_ACEOF
3626 cat confdefs.h
>>conftest.
$ac_ext
3627 cat >>conftest.
$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629 $ac_includes_default
3633 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3640 rm -f conftest.
$ac_objext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642 (eval $ac_compile) 2>conftest.er1
3644 grep -v '^ *+' conftest.er1
>conftest.err
3646 cat conftest.err
>&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try
='test -z "$ac_c_werror_flag"
3650 || test ! -s conftest.err'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; } &&
3656 { ac_try
='test -s conftest.$ac_objext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3664 cat >conftest.
$ac_ext <<_ACEOF
3667 cat confdefs.h
>>conftest.
$ac_ext
3668 cat >>conftest.
$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3670 $ac_includes_default
3674 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3681 rm -f conftest.
$ac_objext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683 (eval $ac_compile) 2>conftest.er1
3685 grep -v '^ *+' conftest.er1
>conftest.err
3687 cat conftest.err
>&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try
='test -z "$ac_c_werror_flag"
3691 || test ! -s conftest.err'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; } &&
3697 { ac_try
='test -s conftest.$ac_objext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 ac_hi
=$ac_mid; break
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.
$ac_ext >&5
3708 ac_lo
=`expr $ac_mid + 1`
3709 if test $ac_lo -le $ac_mid; then
3713 ac_mid
=`expr 2 '*' $ac_mid + 1`
3715 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.
$ac_ext >&5
3721 cat >conftest.
$ac_ext <<_ACEOF
3724 cat confdefs.h
>>conftest.
$ac_ext
3725 cat >>conftest.
$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3727 $ac_includes_default
3731 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3738 rm -f conftest.
$ac_objext
3739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3740 (eval $ac_compile) 2>conftest.er1
3742 grep -v '^ *+' conftest.er1
>conftest.err
3744 cat conftest.err
>&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try
='test -z "$ac_c_werror_flag"
3748 || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try
='test -s conftest.$ac_objext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3762 cat >conftest.
$ac_ext <<_ACEOF
3765 cat confdefs.h
>>conftest.
$ac_ext
3766 cat >>conftest.
$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3768 $ac_includes_default
3772 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3779 rm -f conftest.
$ac_objext
3780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3781 (eval $ac_compile) 2>conftest.er1
3783 grep -v '^ *+' conftest.er1
>conftest.err
3785 cat conftest.err
>&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } &&
3788 { ac_try
='test -z "$ac_c_werror_flag"
3789 || test ! -s conftest.err'
3790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; } &&
3795 { ac_try
='test -s conftest.$ac_objext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3801 ac_lo
=$ac_mid; break
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.
$ac_ext >&5
3806 ac_hi
=`expr '(' $ac_mid ')' - 1`
3807 if test $ac_mid -le $ac_hi; then
3811 ac_mid
=`expr 2 '*' $ac_mid`
3813 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.
$ac_ext >&5
3821 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3823 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3824 # Binary search between lo and hi bounds.
3825 while test "x$ac_lo" != "x$ac_hi"; do
3826 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3827 cat >conftest.
$ac_ext <<_ACEOF
3830 cat confdefs.h
>>conftest.
$ac_ext
3831 cat >>conftest.
$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3833 $ac_includes_default
3837 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3844 rm -f conftest.
$ac_objext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>conftest.er1
3848 grep -v '^ *+' conftest.er1
>conftest.err
3850 cat conftest.err
>&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try
='test -z "$ac_c_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try
='test -s conftest.$ac_objext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.
$ac_ext >&5
3871 ac_lo
=`expr '(' $ac_mid ')' + 1`
3873 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3876 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3877 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3878 See \`config.log' for more details." >&5
3879 echo "$as_me: error: cannot compute sizeof (void *), 77
3880 See \`config.log' for more details." >&2;}
3881 { (exit 1); exit 1; }; } ;;
3884 if test "$cross_compiling" = yes; then
3885 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3886 See \`config.log' for more details." >&5
3887 echo "$as_me: error: cannot run test program while cross compiling
3888 See \`config.log' for more details." >&2;}
3889 { (exit 1); exit 1; }; }
3891 cat >conftest.
$ac_ext <<_ACEOF
3894 cat confdefs.h
>>conftest.
$ac_ext
3895 cat >>conftest.
$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3897 $ac_includes_default
3898 long longval () { return (long) (sizeof (void *)); }
3899 unsigned long ulongval () { return (long) (sizeof (void *)); }
3906 FILE *f = fopen ("conftest.val", "w");
3909 if (((long) (sizeof (void *))) < 0)
3911 long i = longval ();
3912 if (i != ((long) (sizeof (void *))))
3914 fprintf (f, "%ld\n", i);
3918 unsigned long i = ulongval ();
3919 if (i != ((long) (sizeof (void *))))
3921 fprintf (f, "%lu\n", i);
3923 exit (ferror (f) || fclose (f) != 0);
3929 rm -f conftest
$ac_exeext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931 (eval $ac_link) 2>&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 ac_cv_sizeof_void_p
=`cat conftest.val`
3942 echo "$as_me: program exited with status $ac_status" >&5
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.
$ac_ext >&5
3947 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3948 See \`config.log' for more details." >&5
3949 echo "$as_me: error: cannot compute sizeof (void *), 77
3950 See \`config.log' for more details." >&2;}
3951 { (exit 1); exit 1; }; }
3953 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3958 ac_cv_sizeof_void_p
=0
3961 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3962 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3963 cat >>confdefs.h
<<_ACEOF
3964 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3968 echo "$as_me:$LINENO: checking for short" >&5
3969 echo $ECHO_N "checking for short... $ECHO_C" >&6
3970 if test "${ac_cv_type_short+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 cat >conftest.
$ac_ext <<_ACEOF
3976 cat confdefs.h
>>conftest.
$ac_ext
3977 cat >>conftest.
$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3979 $ac_includes_default
3991 rm -f conftest.
$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>conftest.er1
3995 grep -v '^ *+' conftest.er1
>conftest.err
3997 cat conftest.err
>&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try
='test -z "$ac_c_werror_flag"
4001 || test ! -s conftest.err'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try
='test -s conftest.$ac_objext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 ac_cv_type_short
=yes
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.
$ac_ext >&5
4020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4022 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4023 echo "${ECHO_T}$ac_cv_type_short" >&6
4025 echo "$as_me:$LINENO: checking size of short" >&5
4026 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4027 if test "${ac_cv_sizeof_short+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test "$ac_cv_type_short" = yes; then
4031 # The cast to unsigned long works around a bug in the HP C Compiler
4032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4034 # This bug is HP SR number 8606223364.
4035 if test "$cross_compiling" = yes; then
4036 # Depending upon the size, compute the lo and hi bounds.
4037 cat >conftest.
$ac_ext <<_ACEOF
4040 cat confdefs.h
>>conftest.
$ac_ext
4041 cat >>conftest.
$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 $ac_includes_default
4047 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4054 rm -f conftest.
$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056 (eval $ac_compile) 2>conftest.er1
4058 grep -v '^ *+' conftest.er1
>conftest.err
4060 cat conftest.err
>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try
='test -z "$ac_c_werror_flag"
4064 || test ! -s conftest.err'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; } &&
4070 { ac_try
='test -s conftest.$ac_objext'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4078 cat >conftest.
$ac_ext <<_ACEOF
4081 cat confdefs.h
>>conftest.
$ac_ext
4082 cat >>conftest.
$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4084 $ac_includes_default
4088 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4095 rm -f conftest.
$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>conftest.er1
4099 grep -v '^ *+' conftest.er1
>conftest.err
4101 cat conftest.err
>&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try
='test -z "$ac_c_werror_flag"
4105 || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try
='test -s conftest.$ac_objext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 ac_hi
=$ac_mid; break
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.
$ac_ext >&5
4122 ac_lo
=`expr $ac_mid + 1`
4123 if test $ac_lo -le $ac_mid; then
4127 ac_mid
=`expr 2 '*' $ac_mid + 1`
4129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.
$ac_ext >&5
4135 cat >conftest.
$ac_ext <<_ACEOF
4138 cat confdefs.h
>>conftest.
$ac_ext
4139 cat >>conftest.
$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 $ac_includes_default
4145 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4152 rm -f conftest.
$ac_objext
4153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4154 (eval $ac_compile) 2>conftest.er1
4156 grep -v '^ *+' conftest.er1
>conftest.err
4158 cat conftest.err
>&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try
='test -z "$ac_c_werror_flag"
4162 || test ! -s conftest.err'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; } &&
4168 { ac_try
='test -s conftest.$ac_objext'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4176 cat >conftest.
$ac_ext <<_ACEOF
4179 cat confdefs.h
>>conftest.
$ac_ext
4180 cat >>conftest.
$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4182 $ac_includes_default
4186 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4193 rm -f conftest.
$ac_objext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4195 (eval $ac_compile) 2>conftest.er1
4197 grep -v '^ *+' conftest.er1
>conftest.err
4199 cat conftest.err
>&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } &&
4202 { ac_try
='test -z "$ac_c_werror_flag"
4203 || test ! -s conftest.err'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; } &&
4209 { ac_try
='test -s conftest.$ac_objext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 ac_lo
=$ac_mid; break
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.
$ac_ext >&5
4220 ac_hi
=`expr '(' $ac_mid ')' - 1`
4221 if test $ac_mid -le $ac_hi; then
4225 ac_mid
=`expr 2 '*' $ac_mid`
4227 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.
$ac_ext >&5
4235 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4238 # Binary search between lo and hi bounds.
4239 while test "x$ac_lo" != "x$ac_hi"; do
4240 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4241 cat >conftest.
$ac_ext <<_ACEOF
4244 cat confdefs.h
>>conftest.
$ac_ext
4245 cat >>conftest.
$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 $ac_includes_default
4251 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4258 rm -f conftest.
$ac_objext
4259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4260 (eval $ac_compile) 2>conftest.er1
4262 grep -v '^ *+' conftest.er1
>conftest.err
4264 cat conftest.err
>&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } &&
4267 { ac_try
='test -z "$ac_c_werror_flag"
4268 || test ! -s conftest.err'
4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; } &&
4274 { ac_try
='test -s conftest.$ac_objext'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.
$ac_ext >&5
4285 ac_lo
=`expr '(' $ac_mid ')' + 1`
4287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4290 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4291 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4292 See \`config.log' for more details." >&5
4293 echo "$as_me: error: cannot compute sizeof (short), 77
4294 See \`config.log' for more details." >&2;}
4295 { (exit 1); exit 1; }; } ;;
4298 if test "$cross_compiling" = yes; then
4299 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4300 See \`config.log' for more details." >&5
4301 echo "$as_me: error: cannot run test program while cross compiling
4302 See \`config.log' for more details." >&2;}
4303 { (exit 1); exit 1; }; }
4305 cat >conftest.
$ac_ext <<_ACEOF
4308 cat confdefs.h
>>conftest.
$ac_ext
4309 cat >>conftest.
$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 $ac_includes_default
4312 long longval () { return (long) (sizeof (short)); }
4313 unsigned long ulongval () { return (long) (sizeof (short)); }
4320 FILE *f = fopen ("conftest.val", "w");
4323 if (((long) (sizeof (short))) < 0)
4325 long i = longval ();
4326 if (i != ((long) (sizeof (short))))
4328 fprintf (f, "%ld\n", i);
4332 unsigned long i = ulongval ();
4333 if (i != ((long) (sizeof (short))))
4335 fprintf (f, "%lu\n", i);
4337 exit (ferror (f) || fclose (f) != 0);
4343 rm -f conftest
$ac_exeext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4345 (eval $ac_link) 2>&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
4354 ac_cv_sizeof_short
=`cat conftest.val`
4356 echo "$as_me: program exited with status $ac_status" >&5
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.
$ac_ext >&5
4361 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4362 See \`config.log' for more details." >&5
4363 echo "$as_me: error: cannot compute sizeof (short), 77
4364 See \`config.log' for more details." >&2;}
4365 { (exit 1); exit 1; }; }
4367 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4372 ac_cv_sizeof_short
=0
4375 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4376 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4377 cat >>confdefs.h
<<_ACEOF
4378 #define SIZEOF_SHORT $ac_cv_sizeof_short
4382 echo "$as_me:$LINENO: checking for int" >&5
4383 echo $ECHO_N "checking for int... $ECHO_C" >&6
4384 if test "${ac_cv_type_int+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 cat >conftest.
$ac_ext <<_ACEOF
4390 cat confdefs.h
>>conftest.
$ac_ext
4391 cat >>conftest.
$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 $ac_includes_default
4405 rm -f conftest.
$ac_objext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407 (eval $ac_compile) 2>conftest.er1
4409 grep -v '^ *+' conftest.er1
>conftest.err
4411 cat conftest.err
>&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try
='test -z "$ac_c_werror_flag"
4415 || test ! -s conftest.err'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try
='test -s conftest.$ac_objext'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.
$ac_ext >&5
4434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4436 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4437 echo "${ECHO_T}$ac_cv_type_int" >&6
4439 echo "$as_me:$LINENO: checking size of int" >&5
4440 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4441 if test "${ac_cv_sizeof_int+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 if test "$ac_cv_type_int" = yes; then
4445 # The cast to unsigned long works around a bug in the HP C Compiler
4446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4448 # This bug is HP SR number 8606223364.
4449 if test "$cross_compiling" = yes; then
4450 # Depending upon the size, compute the lo and hi bounds.
4451 cat >conftest.
$ac_ext <<_ACEOF
4454 cat confdefs.h
>>conftest.
$ac_ext
4455 cat >>conftest.
$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 $ac_includes_default
4461 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4468 rm -f conftest.
$ac_objext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470 (eval $ac_compile) 2>conftest.er1
4472 grep -v '^ *+' conftest.er1
>conftest.err
4474 cat conftest.err
>&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try
='test -z "$ac_c_werror_flag"
4478 || test ! -s conftest.err'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try
='test -s conftest.$ac_objext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4492 cat >conftest.
$ac_ext <<_ACEOF
4495 cat confdefs.h
>>conftest.
$ac_ext
4496 cat >>conftest.
$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 $ac_includes_default
4502 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4509 rm -f conftest.
$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>conftest.er1
4513 grep -v '^ *+' conftest.er1
>conftest.err
4515 cat conftest.err
>&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } &&
4518 { ac_try
='test -z "$ac_c_werror_flag"
4519 || test ! -s conftest.err'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; } &&
4525 { ac_try
='test -s conftest.$ac_objext'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4531 ac_hi
=$ac_mid; break
4533 echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.
$ac_ext >&5
4536 ac_lo
=`expr $ac_mid + 1`
4537 if test $ac_lo -le $ac_mid; then
4541 ac_mid
=`expr 2 '*' $ac_mid + 1`
4543 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.
$ac_ext >&5
4549 cat >conftest.
$ac_ext <<_ACEOF
4552 cat confdefs.h
>>conftest.
$ac_ext
4553 cat >>conftest.
$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4555 $ac_includes_default
4559 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4566 rm -f conftest.
$ac_objext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4568 (eval $ac_compile) 2>conftest.er1
4570 grep -v '^ *+' conftest.er1
>conftest.err
4572 cat conftest.err
>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try
='test -z "$ac_c_werror_flag"
4576 || test ! -s conftest.err'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; } &&
4582 { ac_try
='test -s conftest.$ac_objext'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; }; then
4590 cat >conftest.
$ac_ext <<_ACEOF
4593 cat confdefs.h
>>conftest.
$ac_ext
4594 cat >>conftest.
$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 $ac_includes_default
4600 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4607 rm -f conftest.
$ac_objext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609 (eval $ac_compile) 2>conftest.er1
4611 grep -v '^ *+' conftest.er1
>conftest.err
4613 cat conftest.err
>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } &&
4616 { ac_try
='test -z "$ac_c_werror_flag"
4617 || test ! -s conftest.err'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; } &&
4623 { ac_try
='test -s conftest.$ac_objext'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; }; then
4629 ac_lo
=$ac_mid; break
4631 echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.
$ac_ext >&5
4634 ac_hi
=`expr '(' $ac_mid ')' - 1`
4635 if test $ac_mid -le $ac_hi; then
4639 ac_mid
=`expr 2 '*' $ac_mid`
4641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.
$ac_ext >&5
4649 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4651 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4652 # Binary search between lo and hi bounds.
4653 while test "x$ac_lo" != "x$ac_hi"; do
4654 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4655 cat >conftest.
$ac_ext <<_ACEOF
4658 cat confdefs.h
>>conftest.
$ac_ext
4659 cat >>conftest.
$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4661 $ac_includes_default
4665 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4672 rm -f conftest.
$ac_objext
4673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4674 (eval $ac_compile) 2>conftest.er1
4676 grep -v '^ *+' conftest.er1
>conftest.err
4678 cat conftest.err
>&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } &&
4681 { ac_try
='test -z "$ac_c_werror_flag"
4682 || test ! -s conftest.err'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; } &&
4688 { ac_try
='test -s conftest.$ac_objext'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.
$ac_ext >&5
4699 ac_lo
=`expr '(' $ac_mid ')' + 1`
4701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4704 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4705 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4706 See \`config.log' for more details." >&5
4707 echo "$as_me: error: cannot compute sizeof (int), 77
4708 See \`config.log' for more details." >&2;}
4709 { (exit 1); exit 1; }; } ;;
4712 if test "$cross_compiling" = yes; then
4713 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4714 See \`config.log' for more details." >&5
4715 echo "$as_me: error: cannot run test program while cross compiling
4716 See \`config.log' for more details." >&2;}
4717 { (exit 1); exit 1; }; }
4719 cat >conftest.
$ac_ext <<_ACEOF
4722 cat confdefs.h
>>conftest.
$ac_ext
4723 cat >>conftest.
$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 $ac_includes_default
4726 long longval () { return (long) (sizeof (int)); }
4727 unsigned long ulongval () { return (long) (sizeof (int)); }
4734 FILE *f = fopen ("conftest.val", "w");
4737 if (((long) (sizeof (int))) < 0)
4739 long i = longval ();
4740 if (i != ((long) (sizeof (int))))
4742 fprintf (f, "%ld\n", i);
4746 unsigned long i = ulongval ();
4747 if (i != ((long) (sizeof (int))))
4749 fprintf (f, "%lu\n", i);
4751 exit (ferror (f) || fclose (f) != 0);
4757 rm -f conftest
$ac_exeext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4759 (eval $ac_link) 2>&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 ac_cv_sizeof_int
=`cat conftest.val`
4770 echo "$as_me: program exited with status $ac_status" >&5
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.
$ac_ext >&5
4775 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4776 See \`config.log' for more details." >&5
4777 echo "$as_me: error: cannot compute sizeof (int), 77
4778 See \`config.log' for more details." >&2;}
4779 { (exit 1); exit 1; }; }
4781 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4789 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4790 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4791 cat >>confdefs.h
<<_ACEOF
4792 #define SIZEOF_INT $ac_cv_sizeof_int
4796 echo "$as_me:$LINENO: checking for long" >&5
4797 echo $ECHO_N "checking for long... $ECHO_C" >&6
4798 if test "${ac_cv_type_long+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 cat >conftest.
$ac_ext <<_ACEOF
4804 cat confdefs.h
>>conftest.
$ac_ext
4805 cat >>conftest.
$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 $ac_includes_default
4819 rm -f conftest.
$ac_objext
4820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821 (eval $ac_compile) 2>conftest.er1
4823 grep -v '^ *+' conftest.er1
>conftest.err
4825 cat conftest.err
>&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } &&
4828 { ac_try
='test -z "$ac_c_werror_flag"
4829 || test ! -s conftest.err'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; } &&
4835 { ac_try
='test -s conftest.$ac_objext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.
$ac_ext >&5
4848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4850 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4851 echo "${ECHO_T}$ac_cv_type_long" >&6
4853 echo "$as_me:$LINENO: checking size of long" >&5
4854 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4855 if test "${ac_cv_sizeof_long+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 if test "$ac_cv_type_long" = yes; then
4859 # The cast to unsigned long works around a bug in the HP C Compiler
4860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4862 # This bug is HP SR number 8606223364.
4863 if test "$cross_compiling" = yes; then
4864 # Depending upon the size, compute the lo and hi bounds.
4865 cat >conftest.
$ac_ext <<_ACEOF
4868 cat confdefs.h
>>conftest.
$ac_ext
4869 cat >>conftest.
$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4871 $ac_includes_default
4875 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4882 rm -f conftest.
$ac_objext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4886 grep -v '^ *+' conftest.er1
>conftest.err
4888 cat conftest.err
>&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try
='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try
='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4906 cat >conftest.
$ac_ext <<_ACEOF
4909 cat confdefs.h
>>conftest.
$ac_ext
4910 cat >>conftest.
$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 $ac_includes_default
4916 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4923 rm -f conftest.
$ac_objext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925 (eval $ac_compile) 2>conftest.er1
4927 grep -v '^ *+' conftest.er1
>conftest.err
4929 cat conftest.err
>&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } &&
4932 { ac_try
='test -z "$ac_c_werror_flag"
4933 || test ! -s conftest.err'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; } &&
4939 { ac_try
='test -s conftest.$ac_objext'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4945 ac_hi
=$ac_mid; break
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.
$ac_ext >&5
4950 ac_lo
=`expr $ac_mid + 1`
4951 if test $ac_lo -le $ac_mid; then
4955 ac_mid
=`expr 2 '*' $ac_mid + 1`
4957 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.
$ac_ext >&5
4963 cat >conftest.
$ac_ext <<_ACEOF
4966 cat confdefs.h
>>conftest.
$ac_ext
4967 cat >>conftest.
$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 $ac_includes_default
4973 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4980 rm -f conftest.
$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>conftest.er1
4984 grep -v '^ *+' conftest.er1
>conftest.err
4986 cat conftest.err
>&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try
='test -z "$ac_c_werror_flag"
4990 || test ! -s conftest.err'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; } &&
4996 { ac_try
='test -s conftest.$ac_objext'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; }; then
5004 cat >conftest.
$ac_ext <<_ACEOF
5007 cat confdefs.h
>>conftest.
$ac_ext
5008 cat >>conftest.
$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5010 $ac_includes_default
5014 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5021 rm -f conftest.
$ac_objext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>conftest.er1
5025 grep -v '^ *+' conftest.er1
>conftest.err
5027 cat conftest.err
>&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try
='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try
='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_lo
=$ac_mid; break
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.
$ac_ext >&5
5048 ac_hi
=`expr '(' $ac_mid ')' - 1`
5049 if test $ac_mid -le $ac_hi; then
5053 ac_mid
=`expr 2 '*' $ac_mid`
5055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.
$ac_ext >&5
5063 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5065 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5066 # Binary search between lo and hi bounds.
5067 while test "x$ac_lo" != "x$ac_hi"; do
5068 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5069 cat >conftest.
$ac_ext <<_ACEOF
5072 cat confdefs.h
>>conftest.
$ac_ext
5073 cat >>conftest.
$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 $ac_includes_default
5079 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5086 rm -f conftest.
$ac_objext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5088 (eval $ac_compile) 2>conftest.er1
5090 grep -v '^ *+' conftest.er1
>conftest.err
5092 cat conftest.err
>&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try
='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try
='test -s conftest.$ac_objext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.
$ac_ext >&5
5113 ac_lo
=`expr '(' $ac_mid ')' + 1`
5115 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5118 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5119 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5120 See \`config.log' for more details." >&5
5121 echo "$as_me: error: cannot compute sizeof (long), 77
5122 See \`config.log' for more details." >&2;}
5123 { (exit 1); exit 1; }; } ;;
5126 if test "$cross_compiling" = yes; then
5127 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5128 See \`config.log' for more details." >&5
5129 echo "$as_me: error: cannot run test program while cross compiling
5130 See \`config.log' for more details." >&2;}
5131 { (exit 1); exit 1; }; }
5133 cat >conftest.
$ac_ext <<_ACEOF
5136 cat confdefs.h
>>conftest.
$ac_ext
5137 cat >>conftest.
$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 $ac_includes_default
5140 long longval () { return (long) (sizeof (long)); }
5141 unsigned long ulongval () { return (long) (sizeof (long)); }
5148 FILE *f = fopen ("conftest.val", "w");
5151 if (((long) (sizeof (long))) < 0)
5153 long i = longval ();
5154 if (i != ((long) (sizeof (long))))
5156 fprintf (f, "%ld\n", i);
5160 unsigned long i = ulongval ();
5161 if (i != ((long) (sizeof (long))))
5163 fprintf (f, "%lu\n", i);
5165 exit (ferror (f) || fclose (f) != 0);
5171 rm -f conftest
$ac_exeext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5173 (eval $ac_link) 2>&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 ac_cv_sizeof_long
=`cat conftest.val`
5184 echo "$as_me: program exited with status $ac_status" >&5
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.
$ac_ext >&5
5189 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5190 See \`config.log' for more details." >&5
5191 echo "$as_me: error: cannot compute sizeof (long), 77
5192 See \`config.log' for more details." >&2;}
5193 { (exit 1); exit 1; }; }
5195 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5203 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5204 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5205 cat >>confdefs.h
<<_ACEOF
5206 #define SIZEOF_LONG $ac_cv_sizeof_long
5210 if test $ac_cv_c_long_long = yes; then
5211 echo "$as_me:$LINENO: checking for long long" >&5
5212 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5213 if test "${ac_cv_type_long_long+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 cat >conftest.
$ac_ext <<_ACEOF
5219 cat confdefs.h
>>conftest.
$ac_ext
5220 cat >>conftest.
$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5222 $ac_includes_default
5226 if ((long long *) 0)
5228 if (sizeof (long long))
5234 rm -f conftest.
$ac_objext
5235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5236 (eval $ac_compile) 2>conftest.er1
5238 grep -v '^ *+' conftest.er1
>conftest.err
5240 cat conftest.err
>&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try
='test -z "$ac_c_werror_flag"
5244 || test ! -s conftest.err'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; } &&
5250 { ac_try
='test -s conftest.$ac_objext'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
5256 ac_cv_type_long_long
=yes
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.
$ac_ext >&5
5261 ac_cv_type_long_long
=no
5263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5265 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5266 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5268 echo "$as_me:$LINENO: checking size of long long" >&5
5269 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5270 if test "${ac_cv_sizeof_long_long+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 if test "$ac_cv_type_long_long" = yes; then
5274 # The cast to unsigned long works around a bug in the HP C Compiler
5275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5277 # This bug is HP SR number 8606223364.
5278 if test "$cross_compiling" = yes; then
5279 # Depending upon the size, compute the lo and hi bounds.
5280 cat >conftest.
$ac_ext <<_ACEOF
5283 cat confdefs.h
>>conftest.
$ac_ext
5284 cat >>conftest.
$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 $ac_includes_default
5290 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5297 rm -f conftest.
$ac_objext
5298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5299 (eval $ac_compile) 2>conftest.er1
5301 grep -v '^ *+' conftest.er1
>conftest.err
5303 cat conftest.err
>&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } &&
5306 { ac_try
='test -z "$ac_c_werror_flag"
5307 || test ! -s conftest.err'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; } &&
5313 { ac_try
='test -s conftest.$ac_objext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5321 cat >conftest.
$ac_ext <<_ACEOF
5324 cat confdefs.h
>>conftest.
$ac_ext
5325 cat >>conftest.
$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 $ac_includes_default
5331 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5338 rm -f conftest.
$ac_objext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340 (eval $ac_compile) 2>conftest.er1
5342 grep -v '^ *+' conftest.er1
>conftest.err
5344 cat conftest.err
>&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try
='test -z "$ac_c_werror_flag"
5348 || test ! -s conftest.err'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; } &&
5354 { ac_try
='test -s conftest.$ac_objext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 ac_hi
=$ac_mid; break
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.
$ac_ext >&5
5365 ac_lo
=`expr $ac_mid + 1`
5366 if test $ac_lo -le $ac_mid; then
5370 ac_mid
=`expr 2 '*' $ac_mid + 1`
5372 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.
$ac_ext >&5
5378 cat >conftest.
$ac_ext <<_ACEOF
5381 cat confdefs.h
>>conftest.
$ac_ext
5382 cat >>conftest.
$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 $ac_includes_default
5388 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5395 rm -f conftest.
$ac_objext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397 (eval $ac_compile) 2>conftest.er1
5399 grep -v '^ *+' conftest.er1
>conftest.err
5401 cat conftest.err
>&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try
='test -z "$ac_c_werror_flag"
5405 || test ! -s conftest.err'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; } &&
5411 { ac_try
='test -s conftest.$ac_objext'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5419 cat >conftest.
$ac_ext <<_ACEOF
5422 cat confdefs.h
>>conftest.
$ac_ext
5423 cat >>conftest.
$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 $ac_includes_default
5429 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5436 rm -f conftest.
$ac_objext
5437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5438 (eval $ac_compile) 2>conftest.er1
5440 grep -v '^ *+' conftest.er1
>conftest.err
5442 cat conftest.err
>&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } &&
5445 { ac_try
='test -z "$ac_c_werror_flag"
5446 || test ! -s conftest.err'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; } &&
5452 { ac_try
='test -s conftest.$ac_objext'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; }; then
5458 ac_lo
=$ac_mid; break
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.
$ac_ext >&5
5463 ac_hi
=`expr '(' $ac_mid ')' - 1`
5464 if test $ac_mid -le $ac_hi; then
5468 ac_mid
=`expr 2 '*' $ac_mid`
5470 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.
$ac_ext >&5
5478 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5480 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5481 # Binary search between lo and hi bounds.
5482 while test "x$ac_lo" != "x$ac_hi"; do
5483 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5484 cat >conftest.
$ac_ext <<_ACEOF
5487 cat confdefs.h
>>conftest.
$ac_ext
5488 cat >>conftest.
$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5490 $ac_includes_default
5494 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5501 rm -f conftest.
$ac_objext
5502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5503 (eval $ac_compile) 2>conftest.er1
5505 grep -v '^ *+' conftest.er1
>conftest.err
5507 cat conftest.err
>&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } &&
5510 { ac_try
='test -z "$ac_c_werror_flag"
5511 || test ! -s conftest.err'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; } &&
5517 { ac_try
='test -s conftest.$ac_objext'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
5525 echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.
$ac_ext >&5
5528 ac_lo
=`expr '(' $ac_mid ')' + 1`
5530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5533 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5534 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5535 See \`config.log' for more details." >&5
5536 echo "$as_me: error: cannot compute sizeof (long long), 77
5537 See \`config.log' for more details." >&2;}
5538 { (exit 1); exit 1; }; } ;;
5541 if test "$cross_compiling" = yes; then
5542 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5543 See \`config.log' for more details." >&5
5544 echo "$as_me: error: cannot run test program while cross compiling
5545 See \`config.log' for more details." >&2;}
5546 { (exit 1); exit 1; }; }
5548 cat >conftest.
$ac_ext <<_ACEOF
5551 cat confdefs.h
>>conftest.
$ac_ext
5552 cat >>conftest.
$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5554 $ac_includes_default
5555 long longval () { return (long) (sizeof (long long)); }
5556 unsigned long ulongval () { return (long) (sizeof (long long)); }
5563 FILE *f = fopen ("conftest.val", "w");
5566 if (((long) (sizeof (long long))) < 0)
5568 long i = longval ();
5569 if (i != ((long) (sizeof (long long))))
5571 fprintf (f, "%ld\n", i);
5575 unsigned long i = ulongval ();
5576 if (i != ((long) (sizeof (long long))))
5578 fprintf (f, "%lu\n", i);
5580 exit (ferror (f) || fclose (f) != 0);
5586 rm -f conftest
$ac_exeext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5588 (eval $ac_link) 2>&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; }; then
5597 ac_cv_sizeof_long_long
=`cat conftest.val`
5599 echo "$as_me: program exited with status $ac_status" >&5
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.
$ac_ext >&5
5604 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5605 See \`config.log' for more details." >&5
5606 echo "$as_me: error: cannot compute sizeof (long long), 77
5607 See \`config.log' for more details." >&2;}
5608 { (exit 1); exit 1; }; }
5610 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5615 ac_cv_sizeof_long_long
=0
5618 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5619 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5620 cat >>confdefs.h
<<_ACEOF
5621 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5626 if test $ac_cv_c___int64 = yes; then
5627 echo "$as_me:$LINENO: checking for __int64" >&5
5628 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5629 if test "${ac_cv_type___int64+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 cat >conftest.
$ac_ext <<_ACEOF
5635 cat confdefs.h
>>conftest.
$ac_ext
5636 cat >>conftest.
$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 $ac_includes_default
5644 if (sizeof (__int64))
5650 rm -f conftest.
$ac_objext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5652 (eval $ac_compile) 2>conftest.er1
5654 grep -v '^ *+' conftest.er1
>conftest.err
5656 cat conftest.err
>&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try
='test -z "$ac_c_werror_flag"
5660 || test ! -s conftest.err'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; } &&
5666 { ac_try
='test -s conftest.$ac_objext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 ac_cv_type___int64
=yes
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.
$ac_ext >&5
5677 ac_cv_type___int64
=no
5679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5681 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5682 echo "${ECHO_T}$ac_cv_type___int64" >&6
5684 echo "$as_me:$LINENO: checking size of __int64" >&5
5685 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5686 if test "${ac_cv_sizeof___int64+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 if test "$ac_cv_type___int64" = yes; then
5690 # The cast to unsigned long works around a bug in the HP C Compiler
5691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5693 # This bug is HP SR number 8606223364.
5694 if test "$cross_compiling" = yes; then
5695 # Depending upon the size, compute the lo and hi bounds.
5696 cat >conftest.
$ac_ext <<_ACEOF
5699 cat confdefs.h
>>conftest.
$ac_ext
5700 cat >>conftest.
$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 $ac_includes_default
5706 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5713 rm -f conftest.
$ac_objext
5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715 (eval $ac_compile) 2>conftest.er1
5717 grep -v '^ *+' conftest.er1
>conftest.err
5719 cat conftest.err
>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } &&
5722 { ac_try
='test -z "$ac_c_werror_flag"
5723 || test ! -s conftest.err'
5724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; } &&
5729 { ac_try
='test -s conftest.$ac_objext'
5730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; }; then
5737 cat >conftest.
$ac_ext <<_ACEOF
5740 cat confdefs.h
>>conftest.
$ac_ext
5741 cat >>conftest.
$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 $ac_includes_default
5747 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5754 rm -f conftest.
$ac_objext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5756 (eval $ac_compile) 2>conftest.er1
5758 grep -v '^ *+' conftest.er1
>conftest.err
5760 cat conftest.err
>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try
='test -z "$ac_c_werror_flag"
5764 || test ! -s conftest.err'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; } &&
5770 { ac_try
='test -s conftest.$ac_objext'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5776 ac_hi
=$ac_mid; break
5778 echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.
$ac_ext >&5
5781 ac_lo
=`expr $ac_mid + 1`
5782 if test $ac_lo -le $ac_mid; then
5786 ac_mid
=`expr 2 '*' $ac_mid + 1`
5788 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.
$ac_ext >&5
5794 cat >conftest.
$ac_ext <<_ACEOF
5797 cat confdefs.h
>>conftest.
$ac_ext
5798 cat >>conftest.
$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 $ac_includes_default
5804 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5811 rm -f conftest.
$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>conftest.er1
5815 grep -v '^ *+' conftest.er1
>conftest.err
5817 cat conftest.err
>&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try
='test -z "$ac_c_werror_flag"
5821 || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try
='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5835 cat >conftest.
$ac_ext <<_ACEOF
5838 cat confdefs.h
>>conftest.
$ac_ext
5839 cat >>conftest.
$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 $ac_includes_default
5845 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5852 rm -f conftest.
$ac_objext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>conftest.er1
5856 grep -v '^ *+' conftest.er1
>conftest.err
5858 cat conftest.err
>&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try
='test -z "$ac_c_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try
='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_lo
=$ac_mid; break
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.
$ac_ext >&5
5879 ac_hi
=`expr '(' $ac_mid ')' - 1`
5880 if test $ac_mid -le $ac_hi; then
5884 ac_mid
=`expr 2 '*' $ac_mid`
5886 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.
$ac_ext >&5
5894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5896 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5897 # Binary search between lo and hi bounds.
5898 while test "x$ac_lo" != "x$ac_hi"; do
5899 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5900 cat >conftest.
$ac_ext <<_ACEOF
5903 cat confdefs.h
>>conftest.
$ac_ext
5904 cat >>conftest.
$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 $ac_includes_default
5910 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5917 rm -f conftest.
$ac_objext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5919 (eval $ac_compile) 2>conftest.er1
5921 grep -v '^ *+' conftest.er1
>conftest.err
5923 cat conftest.err
>&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } &&
5926 { ac_try
='test -z "$ac_c_werror_flag"
5927 || test ! -s conftest.err'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; } &&
5933 { ac_try
='test -s conftest.$ac_objext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.
$ac_ext >&5
5944 ac_lo
=`expr '(' $ac_mid ')' + 1`
5946 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5949 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5950 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5951 See \`config.log' for more details." >&5
5952 echo "$as_me: error: cannot compute sizeof (__int64), 77
5953 See \`config.log' for more details." >&2;}
5954 { (exit 1); exit 1; }; } ;;
5957 if test "$cross_compiling" = yes; then
5958 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5959 See \`config.log' for more details." >&5
5960 echo "$as_me: error: cannot run test program while cross compiling
5961 See \`config.log' for more details." >&2;}
5962 { (exit 1); exit 1; }; }
5964 cat >conftest.
$ac_ext <<_ACEOF
5967 cat confdefs.h
>>conftest.
$ac_ext
5968 cat >>conftest.
$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5970 $ac_includes_default
5971 long longval () { return (long) (sizeof (__int64)); }
5972 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5979 FILE *f = fopen ("conftest.val", "w");
5982 if (((long) (sizeof (__int64))) < 0)
5984 long i = longval ();
5985 if (i != ((long) (sizeof (__int64))))
5987 fprintf (f, "%ld\n", i);
5991 unsigned long i = ulongval ();
5992 if (i != ((long) (sizeof (__int64))))
5994 fprintf (f, "%lu\n", i);
5996 exit (ferror (f) || fclose (f) != 0);
6002 rm -f conftest
$ac_exeext
6003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6004 (eval $ac_link) 2>&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 ac_cv_sizeof___int64
=`cat conftest.val`
6015 echo "$as_me: program exited with status $ac_status" >&5
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.
$ac_ext >&5
6020 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6021 See \`config.log' for more details." >&5
6022 echo "$as_me: error: cannot compute sizeof (__int64), 77
6023 See \`config.log' for more details." >&2;}
6024 { (exit 1); exit 1; }; }
6026 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6031 ac_cv_sizeof___int64
=0
6034 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6035 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6036 cat >>confdefs.h
<<_ACEOF
6037 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6043 # ---------------------
6044 # Warnings and checking
6045 # ---------------------
6047 # Check $CC warning features (if it's GCC).
6048 # We want to use -pedantic, but we don't want warnings about
6051 # So, we only use -pedantic if we can disable those warnings.
6053 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6054 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6055 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 save_CFLAGS
="$CFLAGS"
6059 CFLAGS
="-Wno-long-long"
6060 cat >conftest.
$ac_ext <<_ACEOF
6063 cat confdefs.h
>>conftest.
$ac_ext
6064 cat >>conftest.
$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6068 rm -f conftest.
$ac_objext
6069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070 (eval $ac_compile) 2>conftest.er1
6072 grep -v '^ *+' conftest.er1
>conftest.err
6074 cat conftest.err
>&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
6077 { ac_try
='test -z "$ac_c_werror_flag"
6078 || test ! -s conftest.err'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try
='test -s conftest.$ac_objext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 ac_cv_prog_cc_w_no_long_long
=yes
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.
$ac_ext >&5
6095 ac_cv_prog_cc_w_no_long_long
=no
6097 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6098 CFLAGS
="$save_CFLAGS"
6101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6102 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6104 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6105 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6106 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 save_CFLAGS
="$CFLAGS"
6110 CFLAGS
="-Wno-variadic-macros"
6111 cat >conftest.
$ac_ext <<_ACEOF
6114 cat confdefs.h
>>conftest.
$ac_ext
6115 cat >>conftest.
$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6119 rm -f conftest.
$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>conftest.er1
6123 grep -v '^ *+' conftest.er1
>conftest.err
6125 cat conftest.err
>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try
='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try
='test -s conftest.$ac_objext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_prog_cc_w_no_variadic_macros
=yes
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.
$ac_ext >&5
6146 ac_cv_prog_cc_w_no_variadic_macros
=no
6148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6149 CFLAGS
="$save_CFLAGS"
6152 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6153 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6156 if test $ac_cv_prog_cc_w_no_long_long = yes \
6157 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6158 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6162 # Add -Wold-style-definition if it's accepted
6163 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6164 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6165 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 save_CFLAGS
="$CFLAGS"
6169 CFLAGS
="-Wold-style-definition"
6170 cat >conftest.
$ac_ext <<_ACEOF
6173 cat confdefs.h
>>conftest.
$ac_ext
6174 cat >>conftest.
$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6178 rm -f conftest.
$ac_objext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180 (eval $ac_compile) 2>conftest.er1
6182 grep -v '^ *+' conftest.er1
>conftest.err
6184 cat conftest.err
>&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try
='test -z "$ac_c_werror_flag"
6188 || test ! -s conftest.err'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try
='test -s conftest.$ac_objext'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_prog_cc_w_old_style_definition
=yes
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.
$ac_ext >&5
6205 ac_cv_prog_cc_w_old_style_definition
=no
6207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6208 CFLAGS
="$save_CFLAGS"
6211 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6212 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6213 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6214 strict1_warn
="${strict1_warn} -Wold-style-definition"
6217 # Enable -Werror, period.
6218 # Check whether --enable-werror_always or --disable-werror_always was given.
6219 if test "${enable_werror_always+set}" = set; then
6220 enableval
="$enable_werror_always"
6223 enable_werror_always
=no
6225 if test x
${enable_werror_always} = xyes
; then
6226 strict1_warn
="${strict1_warn} -Werror"
6230 # If the native compiler is GCC, we can enable warnings even in stage1.
6231 # That's useful for people building cross-compilers, or just running a
6234 if test "x$GCC" = "xyes"; then
6235 warn_cflags
='$(GCC_WARN_CFLAGS)'
6239 # Enable -Werror in bootstrap stage2 and later.
6241 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6244 # Check whether --enable-werror or --disable-werror was given.
6245 if test "${enable_werror+set}" = set; then
6246 enableval
="$enable_werror"
6249 if test x
$is_release = x
; then
6250 # Default to "yes" on development branches.
6253 # Default to "no" on release branches.
6257 if test x
$enable_werror = xyes
; then
6262 # Enable expensive internal checks
6263 # Check whether --enable-checking or --disable-checking was given.
6264 if test "${enable_checking+set}" = set; then
6265 enableval
="$enable_checking"
6266 ac_checking_flags
="${enableval}"
6269 # Determine the default checks.
6270 if test x
$is_release = x
; then
6271 ac_checking_flags
=yes
6273 ac_checking_flags
=release
6276 ac_assert_checking
=1
6280 ac_rtlflag_checking
=
6281 ac_runtime_checking
=1
6283 ac_gc_always_collect
=
6285 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6286 for check
in $ac_checking_flags
6289 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6290 ac_tree_checking
=1 ; ac_gc_checking
=1 ;
6291 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;;
6292 no
) ac_assert_checking
= ; ac_checking
= ;
6293 ac_tree_checking
= ; ac_rtl_checking
= ;
6294 ac_rtlflag_checking
= ; ac_gc_checking
= ;
6295 ac_gc_always_collect
= ; ac_fold_checking
= ;;
6296 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6297 ac_tree_checking
=1 ; ac_rtl_checking
=1 ;
6298 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1;
6299 ac_gc_checking
=1 ; ac_gc_always_collect
=1 ;
6300 ac_fold_checking
=1 ;;
6301 release
) ac_assert_checking
=1 ; ac_runtime_checking
=1 ;;
6302 assert
) ac_assert_checking
=1 ;;
6303 fold) ac_fold_checking
=1 ;;
6304 gc
) ac_gc_checking
=1 ;;
6305 gcac
) ac_gc_always_collect
=1 ;;
6306 misc
) ac_checking
=1 ;;
6307 rtlflag
) ac_rtlflag_checking
=1 ;;
6308 rtl
) ac_rtl_checking
=1 ;;
6309 runtime
) ac_runtime_checking
=1 ;;
6310 tree
) ac_tree_checking
=1 ;;
6311 valgrind
) ac_checking_valgrind
=1 ;;
6312 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6313 echo "$as_me: error: unknown check category $check" >&2;}
6314 { (exit 1); exit 1; }; } ;;
6320 if test x
$ac_checking != x
; then
6322 cat >>confdefs.h
<<\_ACEOF
6323 #define ENABLE_CHECKING 1
6326 nocommon_flag
=-fno-common
6329 if test x
$ac_assert_checking != x
; then
6331 cat >>confdefs.h
<<\_ACEOF
6332 #define ENABLE_ASSERT_CHECKING 1
6336 if test x
$ac_runtime_checking != x
; then
6338 cat >>confdefs.h
<<\_ACEOF
6339 #define ENABLE_RUNTIME_CHECKING 1
6343 if test x
$ac_tree_checking != x
; then
6345 cat >>confdefs.h
<<\_ACEOF
6346 #define ENABLE_TREE_CHECKING 1
6349 TREEBROWSER
=tree-browser.o
6352 if test x
$ac_rtl_checking != x
; then
6354 cat >>confdefs.h
<<\_ACEOF
6355 #define ENABLE_RTL_CHECKING 1
6359 if test x
$ac_rtlflag_checking != x
; then
6361 cat >>confdefs.h
<<\_ACEOF
6362 #define ENABLE_RTL_FLAG_CHECKING 1
6366 if test x
$ac_gc_checking != x
; then
6368 cat >>confdefs.h
<<\_ACEOF
6369 #define ENABLE_GC_CHECKING 1
6373 if test x
$ac_gc_always_collect != x
; then
6375 cat >>confdefs.h
<<\_ACEOF
6376 #define ENABLE_GC_ALWAYS_COLLECT 1
6380 if test x
$ac_fold_checking != x
; then
6382 cat >>confdefs.h
<<\_ACEOF
6383 #define ENABLE_FOLD_CHECKING 1
6387 valgrind_path_defines
=
6390 if test "${ac_cv_header_valgrind_h+set}" = set; then
6391 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6392 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6393 if test "${ac_cv_header_valgrind_h+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6397 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6399 # Is the header compilable?
6400 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6401 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6402 cat >conftest.
$ac_ext <<_ACEOF
6405 cat confdefs.h
>>conftest.
$ac_ext
6406 cat >>conftest.
$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 $ac_includes_default
6409 #include <valgrind.h>
6411 rm -f conftest.
$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6415 grep -v '^ *+' conftest.er1
>conftest.err
6417 cat conftest.err
>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try
='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try
='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_header_compiler
=yes
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.
$ac_ext >&5
6438 ac_header_compiler
=no
6440 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6442 echo "${ECHO_T}$ac_header_compiler" >&6
6444 # Is the header present?
6445 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6446 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6447 cat >conftest.
$ac_ext <<_ACEOF
6450 cat confdefs.h
>>conftest.
$ac_ext
6451 cat >>conftest.
$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6453 #include <valgrind.h>
6455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6456 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6458 grep -v '^ *+' conftest.er1
>conftest.err
6460 cat conftest.err
>&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } >/dev
/null
; then
6463 if test -s conftest.err
; then
6464 ac_cpp_err
=$ac_c_preproc_warn_flag
6465 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6472 if test -z "$ac_cpp_err"; then
6473 ac_header_preproc
=yes
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.
$ac_ext >&5
6478 ac_header_preproc
=no
6480 rm -f conftest.err conftest.
$ac_ext
6481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6482 echo "${ECHO_T}$ac_header_preproc" >&6
6484 # So? What about this header?
6485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6487 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6488 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6490 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6491 ac_header_preproc
=yes
6494 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6495 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6496 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6497 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6498 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6499 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6501 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6503 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6505 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6508 ## ------------------------------------------ ##
6509 ## Report this to the AC_PACKAGE_NAME lists. ##
6510 ## ------------------------------------------ ##
6513 sed "s/^/$as_me: WARNING: /" >&2
6516 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6517 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6518 if test "${ac_cv_header_valgrind_h+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 ac_cv_header_valgrind_h
=$ac_header_preproc
6523 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6524 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6527 if test $ac_cv_header_valgrind_h = yes; then
6535 if test x
$ac_checking_valgrind != x
; then
6536 # It is certainly possible that there's valgrind but no valgrind.h.
6537 # GCC relies on making annotations so we must have both.
6538 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6539 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6540 cat >conftest.
$ac_ext <<_ACEOF
6543 cat confdefs.h
>>conftest.
$ac_ext
6544 cat >>conftest.
$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 #include <valgrind/memcheck.h>
6547 #ifndef VALGRIND_DISCARD
6548 #error VALGRIND_DISCARD not defined
6551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6552 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6554 grep -v '^ *+' conftest.er1
>conftest.err
6556 cat conftest.err
>&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } >/dev
/null
; then
6559 if test -s conftest.err
; then
6560 ac_cpp_err
=$ac_c_preproc_warn_flag
6561 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6568 if test -z "$ac_cpp_err"; then
6569 gcc_cv_header_valgrind_memcheck_h
=yes
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.
$ac_ext >&5
6574 gcc_cv_header_valgrind_memcheck_h
=no
6576 rm -f conftest.err conftest.
$ac_ext
6577 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6578 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6579 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6580 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6581 cat >conftest.
$ac_ext <<_ACEOF
6584 cat confdefs.h
>>conftest.
$ac_ext
6585 cat >>conftest.
$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 #include <memcheck.h>
6588 #ifndef VALGRIND_DISCARD
6589 #error VALGRIND_DISCARD not defined
6592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6593 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6595 grep -v '^ *+' conftest.er1
>conftest.err
6597 cat conftest.err
>&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } >/dev
/null
; then
6600 if test -s conftest.err
; then
6601 ac_cpp_err
=$ac_c_preproc_warn_flag
6602 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6609 if test -z "$ac_cpp_err"; then
6610 gcc_cv_header_memcheck_h
=yes
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.
$ac_ext >&5
6615 gcc_cv_header_memcheck_h
=no
6617 rm -f conftest.err conftest.
$ac_ext
6618 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6619 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6621 # Prepare PATH_SEPARATOR.
6622 # The user is always right.
6623 if test "${PATH_SEPARATOR+set}" != set; then
6624 echo "#! /bin/sh" >conf$$.sh
6625 echo "exit 0" >>conf$$.sh
6627 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6635 # Find out how to test for executable files. Don't use a zero-byte file,
6636 # as systems may use methods other than mode bits to determine executability.
6637 cat >conf$$.
file <<_ASEOF
6641 chmod +x conf$$.
file
6642 if test -x conf$$.
file >/dev
/null
2>&1; then
6643 ac_executable_p
="test -x"
6645 ac_executable_p
="test -f"
6649 # Extract the first word of "valgrind", so it can be a program name with args.
6650 set dummy valgrind
; ac_word
=$2
6651 echo "$as_me:$LINENO: checking for $ac_word" >&5
6652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6653 if test "${ac_cv_path_valgrind_path+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 case "$valgrind_path" in
6658 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6661 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6662 for ac_dir
in $PATH; do
6664 test -z "$ac_dir" && ac_dir
=.
6665 for ac_exec_ext
in '' $ac_executable_extensions; do
6666 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6667 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6668 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6678 valgrind_path
="$ac_cv_path_valgrind_path"
6679 if test -n "$valgrind_path"; then
6680 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6681 echo "${ECHO_T}$valgrind_path" >&6
6683 echo "$as_me:$LINENO: result: no" >&5
6684 echo "${ECHO_T}no" >&6
6687 if test "x$valgrind_path" = "x" \
6688 ||
(test $have_valgrind_h = no \
6689 && test $gcc_cv_header_memcheck_h = no \
6690 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6691 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6692 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6693 { (exit 1); exit 1; }; }
6695 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6696 valgrind_command
="$valgrind_path -q"
6698 cat >>confdefs.h
<<\_ACEOF
6699 #define ENABLE_VALGRIND_CHECKING 1
6702 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6704 cat >>confdefs.h
<<\_ACEOF
6705 #define HAVE_VALGRIND_MEMCHECK_H 1
6709 if test $gcc_cv_header_memcheck_h = yes; then
6711 cat >>confdefs.h
<<\_ACEOF
6712 #define HAVE_MEMCHECK_H 1
6720 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6721 if test "${enable_mapped_location+set}" = set; then
6722 enableval
="$enable_mapped_location"
6725 enable_mapped_location
=no
6728 if test "$enable_mapped_location" = yes ; then
6730 cat >>confdefs.h
<<\_ACEOF
6731 #define USE_MAPPED_LOCATION 1
6736 # Enable code coverage collection
6737 # Check whether --enable-coverage or --disable-coverage was given.
6738 if test "${enable_coverage+set}" = set; then
6739 enableval
="$enable_coverage"
6740 case "${enableval}" in
6742 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6745 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6748 # a.k.a. --disable-coverage
6752 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6753 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6754 { (exit 1); exit 1; }; }
6762 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6763 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6764 enableval
="$enable_gather_detailed_mem_stats"
6767 enable_gather_detailed_mem_stats
=no
6769 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6771 cat >>confdefs.h
<<\_ACEOF
6772 #define GATHER_STATISTICS 1
6777 # -------------------------------
6778 # Miscenalleous configure options
6779 # -------------------------------
6783 # Check whether --with-stabs or --without-stabs was given.
6784 if test "${with_stabs+set}" = set; then
6785 withval
="$with_stabs"
6791 # Determine whether or not multilibs are enabled.
6792 # Check whether --enable-multilib or --disable-multilib was given.
6793 if test "${enable_multilib+set}" = set; then
6794 enableval
="$enable_multilib"
6801 # Enable __cxa_atexit for C++.
6802 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6803 if test "${enable___cxa_atexit+set}" = set; then
6804 enableval
="$enable___cxa_atexit"
6809 # Pass with no value to take the default
6810 # Pass with a value to specify a thread package
6811 # Check whether --enable-threads or --disable-threads was given.
6812 if test "${enable_threads+set}" = set; then
6813 enableval
="$enable_threads"
6819 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6820 if test "${enable_objc_gc+set}" = set; then
6821 enableval
="$enable_objc_gc"
6822 if test x
$enable_objc_gc = xno
; then
6832 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6833 if test "${with_dwarf2+set}" = set; then
6834 withval
="$with_dwarf2"
6835 dwarf2
="$with_dwarf2"
6840 # Check whether --enable-shared or --disable-shared was given.
6841 if test "${enable_shared+set}" = set; then
6842 enableval
="$enable_shared"
6844 case $enable_shared in
6848 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6849 for pkg
in $enableval; do
6850 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6864 # Check whether --with-sysroot or --without-sysroot was given.
6865 if test "${with_sysroot+set}" = set; then
6866 withval
="$with_sysroot"
6868 case ${with_sysroot} in
6869 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6870 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6873 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6874 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6876 if test "x$exec_prefix" = xNONE
; then
6877 if test "x$prefix" = xNONE
; then
6878 test_prefix
=/usr
/local
6883 test_prefix
=$exec_prefix
6885 case ${TARGET_SYSTEM_ROOT} in
6886 "${test_prefix}"|
"${test_prefix}/"*|\
6887 '${exec_prefix}'|
'${exec_prefix}/'*)
6888 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6889 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6896 TARGET_SYSTEM_ROOT_DEFINE
=
6897 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6904 # Build with intermodule optimisations
6905 # Check whether --enable-intermodule or --disable-intermodule was given.
6906 if test "${enable_intermodule+set}" = set; then
6907 enableval
="$enable_intermodule"
6908 case ${enable_intermodule} in
6909 yes) onestep
="-onestep";;
6917 # Sanity check enable_languages in case someone does not run the toplevel
6918 # configure # script.
6919 # Check whether --enable-languages or --disable-languages was given.
6920 if test "${enable_languages+set}" = set; then
6921 enableval
="$enable_languages"
6922 case ,${enable_languages}, in
6924 # go safe -- we cannot be much sure without the toplevel
6926 # analysis of which target libs are present and usable
6930 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6931 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6932 { (exit 1); exit 1; }; }
6937 enable_languages
=c
,${enable_languages}
6945 for lang
in ${srcdir}/*/config-lang.
in
6948 # The odd quoting in the next line works around
6949 # an apparent bug in bash 1.12 on linux.
6950 ${srcdir}/[*]/config-lang.
in) ;;
6952 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6953 if test "x$lang_alias" = x
6955 echo "$lang doesn't set \$language." 1>&2
6958 case ",$enable_languages," in
6960 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6967 # -------------------------
6968 # Checks for other programs
6969 # -------------------------
6971 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6972 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6973 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
6974 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 cat >conftest.
make <<\_ACEOF
6979 @
echo 'ac_maketemp="$(MAKE)"'
6981 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6982 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6983 if test -n "$ac_maketemp"; then
6984 eval ac_cv_prog_make_
${ac_make}_set
=yes
6986 eval ac_cv_prog_make_
${ac_make}_set
=no
6990 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6991 echo "$as_me:$LINENO: result: yes" >&5
6992 echo "${ECHO_T}yes" >&6
6995 echo "$as_me:$LINENO: result: no" >&5
6996 echo "${ECHO_T}no" >&6
6997 SET_MAKE
="MAKE=${MAKE-make}"
7001 # Find some useful tools
7002 for ac_prog
in gawk mawk nawk
awk
7004 # Extract the first word of "$ac_prog", so it can be a program name with args.
7005 set dummy
$ac_prog; ac_word
=$2
7006 echo "$as_me:$LINENO: checking for $ac_word" >&5
7007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7008 if test "${ac_cv_prog_AWK+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 if test -n "$AWK"; then
7012 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7018 test -z "$as_dir" && as_dir
=.
7019 for ac_exec_ext
in '' $ac_executable_extensions; do
7020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7021 ac_cv_prog_AWK
="$ac_prog"
7022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 if test -n "$AWK"; then
7032 echo "$as_me:$LINENO: result: $AWK" >&5
7033 echo "${ECHO_T}$AWK" >&6
7035 echo "$as_me:$LINENO: result: no" >&5
7036 echo "${ECHO_T}no" >&6
7039 test -n "$AWK" && break
7042 # We need awk to create options.c and options.h.
7043 # Bail out if it's missing.
7045 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7046 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7047 { (exit 1); exit 1; }; } ;;
7050 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7051 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7052 if test "${gcc_cv_prog_LN_S+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 rm -f conftestdata_t
7056 echo >conftestdata_f
7057 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7059 gcc_cv_prog_LN_S
="ln -s"
7061 if ln conftestdata_f conftestdata_t
2>/dev
/null
7065 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7067 gcc_cv_prog_LN_S
="cp -p"
7073 rm -f conftestdata_f conftestdata_t
7076 LN_S
="$gcc_cv_prog_LN_S"
7077 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7078 echo "$as_me:$LINENO: result: yes" >&5
7079 echo "${ECHO_T}yes" >&6
7081 if test "$gcc_cv_prog_LN_S" = "ln"; then
7082 echo "$as_me:$LINENO: result: no, using ln" >&5
7083 echo "${ECHO_T}no, using ln" >&6
7085 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7086 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7090 echo "$as_me:$LINENO: checking whether ln works" >&5
7091 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7092 if test "${acx_cv_prog_LN+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 rm -f conftestdata_t
7096 echo >conftestdata_f
7097 if ln conftestdata_f conftestdata_t
2>/dev
/null
7103 rm -f conftestdata_f conftestdata_t
7106 if test $acx_cv_prog_LN = no
; then
7108 echo "$as_me:$LINENO: result: no, using $LN" >&5
7109 echo "${ECHO_T}no, using $LN" >&6
7111 LN
="$acx_cv_prog_LN"
7112 echo "$as_me:$LINENO: result: yes" >&5
7113 echo "${ECHO_T}yes" >&6
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7118 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7119 echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7121 if test "${ac_cv_prog_RANLIB+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 if test -n "$RANLIB"; then
7125 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir
=.
7132 for ac_exec_ext
in '' $ac_executable_extensions; do
7133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 RANLIB
=$ac_cv_prog_RANLIB
7144 if test -n "$RANLIB"; then
7145 echo "$as_me:$LINENO: result: $RANLIB" >&5
7146 echo "${ECHO_T}$RANLIB" >&6
7148 echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6
7153 if test -z "$ac_cv_prog_RANLIB"; then
7154 ac_ct_RANLIB
=$RANLIB
7155 # Extract the first word of "ranlib", so it can be a program name with args.
7156 set dummy ranlib
; ac_word
=$2
7157 echo "$as_me:$LINENO: checking for $ac_word" >&5
7158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7159 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 if test -n "$ac_ct_RANLIB"; then
7163 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7169 test -z "$as_dir" && as_dir
=.
7170 for ac_exec_ext
in '' $ac_executable_extensions; do
7171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7172 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7182 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7183 if test -n "$ac_ct_RANLIB"; then
7184 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7185 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7187 echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6
7191 RANLIB
=$ac_ct_RANLIB
7193 RANLIB
="$ac_cv_prog_RANLIB"
7198 # By default, the Darwin ranlib will not treat common symbols as
7199 # definitions when building the archive table of contents. Other
7200 # ranlibs do that; pass an option to the Darwin ranlib that makes
7201 # it behave similarly.
7209 # Find a good install program. We prefer a C program (faster),
7210 # so one script is as good as another. But avoid the broken or
7211 # incompatible versions:
7212 # SysV /etc/install, /usr/sbin/install
7213 # SunOS /usr/etc/install
7214 # IRIX /sbin/install
7216 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7217 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7218 # ./install, which can be erroneously created by make from ./install.sh.
7219 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7220 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7221 if test -z "$INSTALL"; then
7222 if test "${ac_cv_path_install+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7226 for ac_dir
in $PATH; do
7227 # Account for people who put trailing slashes in PATH elements.
7229 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7231 # OSF1 and SCO ODT 3.0 have their own names for install.
7232 for ac_prog
in ginstall scoinst
install; do
7233 if test -f $ac_dir/$ac_prog; then
7234 if test $ac_prog = install &&
7235 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7236 # AIX install. It has an incompatible calling convention.
7237 # OSF/1 installbsd also uses dspmsg, but is usable.
7240 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7251 if test "${ac_cv_path_install+set}" = set; then
7252 INSTALL
="$ac_cv_path_install"
7254 # As a last resort, use the slow shell script. We don't cache a
7255 # path for INSTALL within a source directory, because that will
7256 # break other packages using the cache if that directory is
7257 # removed, or if the path is relative.
7258 INSTALL
="$ac_install_sh"
7261 echo "$as_me:$LINENO: result: $INSTALL" >&5
7262 echo "${ECHO_T}$INSTALL" >&6
7264 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7265 # It thinks the first close brace ends the variable substitution.
7266 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7268 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7271 # See if cmp has --ignore-initial.
7272 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7273 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7274 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 gcc_cv_prog_cmp_skip
=slowcompare
7280 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7281 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7284 gcc_cv_prog_cmp_skip
=gnucompare
7287 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7288 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7289 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7292 gcc_cv_prog_cmp_skip
=fastcompare
7299 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7300 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7301 make_compare_target
=$gcc_cv_prog_cmp_skip
7305 # See if we have the mktemp command.
7306 # Extract the first word of "mktemp", so it can be a program name with args.
7307 set dummy mktemp
; ac_word
=$2
7308 echo "$as_me:$LINENO: checking for $ac_word" >&5
7309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7310 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 if test -n "$have_mktemp_command"; then
7314 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7320 test -z "$as_dir" && as_dir
=.
7321 for ac_exec_ext
in '' $ac_executable_extensions; do
7322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323 ac_cv_prog_have_mktemp_command
="yes"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7333 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7334 if test -n "$have_mktemp_command"; then
7335 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7336 echo "${ECHO_T}$have_mktemp_command" >&6
7338 echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6
7343 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7345 # See if makeinfo has been installed and is modern enough
7346 # that we can use it.
7347 # Extract the first word of "makeinfo", so it can be a program name with args.
7348 set dummy makeinfo
; ac_word
=$2
7349 echo "$as_me:$LINENO: checking for $ac_word" >&5
7350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7351 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 if test -n "$MAKEINFO"; then
7355 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir
=.
7362 for ac_exec_ext
in '' $ac_executable_extensions; do
7363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_MAKEINFO
="makeinfo"
7365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 MAKEINFO
=$ac_cv_prog_MAKEINFO
7374 if test -n "$MAKEINFO"; then
7375 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7376 echo "${ECHO_T}$MAKEINFO" >&6
7378 echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6
7382 if test -n "$MAKEINFO"; then
7383 # Found it, now check the version.
7384 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7385 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7386 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7390 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7391 echo "configure:7381: version of makeinfo is $ac_prog_version" >&5
7392 case $ac_prog_version in
7393 '') gcc_cv_prog_makeinfo_modern
=no
;;
7395 gcc_cv_prog_makeinfo_modern
=yes;;
7396 *) gcc_cv_prog_makeinfo_modern
=no
;;
7400 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7401 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7403 gcc_cv_prog_makeinfo_modern
=no
7406 if test $gcc_cv_prog_makeinfo_modern = no
; then
7407 MAKEINFO
="$MISSING makeinfo"
7408 { echo "$as_me:$LINENO: WARNING:
7409 *** Makeinfo is missing or too old.
7410 *** Info documentation will not be built." >&5
7411 echo "$as_me: WARNING:
7412 *** Makeinfo is missing or too old.
7413 *** Info documentation will not be built." >&2;}
7420 # Is pod2man recent enough to regenerate manpages?
7421 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7422 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7423 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7424 echo "$as_me:$LINENO: result: yes" >&5
7425 echo "${ECHO_T}yes" >&6
7426 GENERATED_MANPAGES
=generated-manpages
7428 echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6
7437 # Extract the first word of "$ac_prog", so it can be a program name with args.
7438 set dummy
$ac_prog; ac_word
=$2
7439 echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7441 if test "${ac_cv_prog_FLEX+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 if test -n "$FLEX"; then
7445 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir
=.
7452 for ac_exec_ext
in '' $ac_executable_extensions; do
7453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_FLEX
="$ac_prog"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 FLEX
=$ac_cv_prog_FLEX
7464 if test -n "$FLEX"; then
7465 echo "$as_me:$LINENO: result: $FLEX" >&5
7466 echo "${ECHO_T}$FLEX" >&6
7468 echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6
7472 test -n "$FLEX" && break
7474 test -n "$FLEX" || FLEX
="$MISSING flex"
7478 for ac_prog
in bison
7480 # Extract the first word of "$ac_prog", so it can be a program name with args.
7481 set dummy
$ac_prog; ac_word
=$2
7482 echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7484 if test "${ac_cv_prog_BISON+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 if test -n "$BISON"; then
7488 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7494 test -z "$as_dir" && as_dir
=.
7495 for ac_exec_ext
in '' $ac_executable_extensions; do
7496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_BISON
="$ac_prog"
7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 BISON
=$ac_cv_prog_BISON
7507 if test -n "$BISON"; then
7508 echo "$as_me:$LINENO: result: $BISON" >&5
7509 echo "${ECHO_T}$BISON" >&6
7511 echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6
7515 test -n "$BISON" && break
7517 test -n "$BISON" || BISON
="$MISSING bison"
7520 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7521 # check for build == host before using them.
7524 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7525 && test -d ..
/binutils
; then
7526 NM
='$(objdir)/../binutils/nm-new'
7528 # Extract the first word of "nm", so it can be a program name with args.
7529 set dummy nm
; ac_word
=$2
7530 echo "$as_me:$LINENO: checking for $ac_word" >&5
7531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7532 if test "${ac_cv_prog_NM+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 if test -n "$NM"; then
7536 ac_cv_prog_NM
="$NM" # Let the user override the test.
7538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7542 test -z "$as_dir" && as_dir
=.
7543 for ac_exec_ext
in '' $ac_executable_extensions; do
7544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7556 if test -n "$NM"; then
7557 echo "$as_me:$LINENO: result: $NM" >&5
7558 echo "${ECHO_T}$NM" >&6
7560 echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6
7567 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7568 && test -d ..
/binutils
; then
7569 AR
='$(objdir)/../binutils/ar'
7571 # Extract the first word of "ar", so it can be a program name with args.
7572 set dummy
ar; ac_word
=$2
7573 echo "$as_me:$LINENO: checking for $ac_word" >&5
7574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7575 if test "${ac_cv_prog_AR+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 if test -n "$AR"; then
7579 ac_cv_prog_AR
="$AR" # Let the user override the test.
7581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7585 test -z "$as_dir" && as_dir
=.
7586 for ac_exec_ext
in '' $ac_executable_extensions; do
7587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7599 if test -n "$AR"; then
7600 echo "$as_me:$LINENO: result: $AR" >&5
7601 echo "${ECHO_T}$AR" >&6
7603 echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6
7610 # --------------------
7611 # Checks for C headers
7612 # --------------------
7614 echo "$as_me:$LINENO: checking for GNU C library" >&5
7615 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7616 if test "${gcc_cv_glibc+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 cat >conftest.
$ac_ext <<_ACEOF
7622 cat confdefs.h
>>conftest.
$ac_ext
7623 cat >>conftest.
$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625 #include <features.h>
7630 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7631 #error Not a GNU C library system
7637 rm -f conftest.
$ac_objext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639 (eval $ac_compile) 2>conftest.er1
7641 grep -v '^ *+' conftest.er1
>conftest.err
7643 cat conftest.err
>&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try
='test -z "$ac_c_werror_flag"
7647 || test ! -s conftest.err'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try
='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.
$ac_ext >&5
7666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7669 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7670 echo "${ECHO_T}$gcc_cv_glibc" >&6
7671 if test $gcc_cv_glibc = yes; then
7673 cat >>confdefs.h
<<\_ACEOF
7674 #define _GNU_SOURCE 1
7679 # Need to reject headers which give warnings, so that the -Werror bootstrap
7680 # works later. *sigh* This needs to come before all header checks.
7682 ac_c_preproc_warn_flag
=yes
7684 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7685 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7686 if test "${ac_cv_header_stdc+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 cat >conftest.
$ac_ext <<_ACEOF
7692 cat confdefs.h
>>conftest.
$ac_ext
7693 cat >>conftest.
$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7708 rm -f conftest.
$ac_objext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7710 (eval $ac_compile) 2>conftest.er1
7712 grep -v '^ *+' conftest.er1
>conftest.err
7714 cat conftest.err
>&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } &&
7717 { ac_try
='test -z "$ac_c_werror_flag"
7718 || test ! -s conftest.err'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; } &&
7724 { ac_try
='test -s conftest.$ac_objext'
7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; }; then
7730 ac_cv_header_stdc
=yes
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.
$ac_ext >&5
7735 ac_cv_header_stdc
=no
7737 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7739 if test $ac_cv_header_stdc = yes; then
7740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7741 cat >conftest.
$ac_ext <<_ACEOF
7744 cat confdefs.h
>>conftest.
$ac_ext
7745 cat >>conftest.
$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7751 $EGREP "memchr" >/dev
/null
2>&1; then
7754 ac_cv_header_stdc
=no
7760 if test $ac_cv_header_stdc = yes; then
7761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7762 cat >conftest.
$ac_ext <<_ACEOF
7765 cat confdefs.h
>>conftest.
$ac_ext
7766 cat >>conftest.
$ac_ext <<_ACEOF
7767 /* end confdefs.h. */
7771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7772 $EGREP "free" >/dev
/null
2>&1; then
7775 ac_cv_header_stdc
=no
7781 if test $ac_cv_header_stdc = yes; then
7782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7783 if test "$cross_compiling" = yes; then
7786 cat >conftest.
$ac_ext <<_ACEOF
7789 cat confdefs.h
>>conftest.
$ac_ext
7790 cat >>conftest.
$ac_ext <<_ACEOF
7791 /* end confdefs.h. */
7793 #if ((' ' & 0x0FF) == 0x020)
7794 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7795 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7797 # define ISLOWER(c) \
7798 (('a' <= (c) && (c) <= 'i') \
7799 || ('j' <= (c) && (c) <= 'r') \
7800 || ('s' <= (c) && (c) <= 'z'))
7801 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7804 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7809 for (i = 0; i < 256; i++)
7810 if (XOR (islower (i), ISLOWER (i))
7811 || toupper (i) != TOUPPER (i))
7816 rm -f conftest
$ac_exeext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7818 (eval $ac_link) 2>&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; }; then
7829 echo "$as_me: program exited with status $ac_status" >&5
7830 echo "$as_me: failed program was:" >&5
7831 sed 's/^/| /' conftest.
$ac_ext >&5
7834 ac_cv_header_stdc
=no
7836 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7840 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7841 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7842 if test $ac_cv_header_stdc = yes; then
7844 cat >>confdefs.h
<<\_ACEOF
7845 #define STDC_HEADERS 1
7850 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7851 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7852 if test "${ac_cv_header_time+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 cat >conftest.
$ac_ext <<_ACEOF
7858 cat confdefs.h
>>conftest.
$ac_ext
7859 cat >>conftest.
$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 #include <sys/types.h>
7862 #include <sys/time.h>
7868 if ((struct tm *) 0)
7874 rm -f conftest.
$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876 (eval $ac_compile) 2>conftest.er1
7878 grep -v '^ *+' conftest.er1
>conftest.err
7880 cat conftest.err
>&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try
='test -z "$ac_c_werror_flag"
7884 || test ! -s conftest.err'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; } &&
7890 { ac_try
='test -s conftest.$ac_objext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 ac_cv_header_time
=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.
$ac_ext >&5
7901 ac_cv_header_time
=no
7903 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7905 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7906 echo "${ECHO_T}$ac_cv_header_time" >&6
7907 if test $ac_cv_header_time = yes; then
7909 cat >>confdefs.h
<<\_ACEOF
7910 #define TIME_WITH_SYS_TIME 1
7915 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7916 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7917 if test "${gcc_cv_header_string+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 cat >conftest.
$ac_ext <<_ACEOF
7923 cat confdefs.h
>>conftest.
$ac_ext
7924 cat >>conftest.
$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7927 #include <strings.h>
7936 rm -f conftest.
$ac_objext
7937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7938 (eval $ac_compile) 2>conftest.er1
7940 grep -v '^ *+' conftest.er1
>conftest.err
7942 cat conftest.err
>&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try
='test -z "$ac_c_werror_flag"
7946 || test ! -s conftest.err'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; } &&
7952 { ac_try
='test -s conftest.$ac_objext'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7958 gcc_cv_header_string
=yes
7960 echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.
$ac_ext >&5
7963 gcc_cv_header_string
=no
7965 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7967 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7968 echo "${ECHO_T}$gcc_cv_header_string" >&6
7969 if test $gcc_cv_header_string = yes; then
7971 cat >>confdefs.h
<<\_ACEOF
7972 #define STRING_WITH_STRINGS 1
7977 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7978 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7979 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 cat >conftest.
$ac_ext <<_ACEOF
7985 cat confdefs.h
>>conftest.
$ac_ext
7986 cat >>conftest.
$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 #include <sys/types.h>
7989 #include <sys/wait.h>
7991 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7994 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8002 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8007 rm -f conftest.
$ac_objext
8008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8009 (eval $ac_compile) 2>conftest.er1
8011 grep -v '^ *+' conftest.er1
>conftest.err
8013 cat conftest.err
>&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } &&
8016 { ac_try
='test -z "$ac_c_werror_flag"
8017 || test ! -s conftest.err'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; } &&
8023 { ac_try
='test -s conftest.$ac_objext'
8024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }; }; then
8029 ac_cv_header_sys_wait_h
=yes
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.
$ac_ext >&5
8034 ac_cv_header_sys_wait_h
=no
8036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8038 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8039 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8040 if test $ac_cv_header_sys_wait_h = yes; then
8042 cat >>confdefs.h
<<\_ACEOF
8043 #define HAVE_SYS_WAIT_H 1
8070 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8071 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8072 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8073 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8075 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8076 echo "$as_me:$LINENO: checking for $ac_header" >&5
8077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 cat >conftest.
$ac_ext <<_ACEOF
8084 cat confdefs.h
>>conftest.
$ac_ext
8085 cat >>conftest.
$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8087 #include <$ac_header>
8089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8090 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8092 grep -v '^ *+' conftest.er1
>conftest.err
8094 cat conftest.err
>&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } >/dev
/null
; then
8097 if test -s conftest.err
; then
8098 ac_cpp_err
=$ac_c_preproc_warn_flag
8099 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8106 if test -z "$ac_cpp_err"; then
8107 eval "$as_ac_Header=yes"
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.
$ac_ext >&5
8112 eval "$as_ac_Header=no"
8114 rm -f conftest.err conftest.
$ac_ext
8116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8119 cat >>confdefs.h
<<_ACEOF
8120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8127 # Check for thread headers.
8128 echo "$as_me:$LINENO: checking for thread.h" >&5
8129 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8130 if test "${ac_cv_header_thread_h+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 cat >conftest.
$ac_ext <<_ACEOF
8136 cat confdefs.h
>>conftest.
$ac_ext
8137 cat >>conftest.
$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8142 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8144 grep -v '^ *+' conftest.er1
>conftest.err
8146 cat conftest.err
>&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } >/dev
/null
; then
8149 if test -s conftest.err
; then
8150 ac_cpp_err
=$ac_c_preproc_warn_flag
8151 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8158 if test -z "$ac_cpp_err"; then
8159 ac_cv_header_thread_h
=yes
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.
$ac_ext >&5
8164 ac_cv_header_thread_h
=no
8166 rm -f conftest.err conftest.
$ac_ext
8168 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8169 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8170 if test $ac_cv_header_thread_h = yes; then
8176 echo "$as_me:$LINENO: checking for pthread.h" >&5
8177 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8178 if test "${ac_cv_header_pthread_h+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 cat >conftest.
$ac_ext <<_ACEOF
8184 cat confdefs.h
>>conftest.
$ac_ext
8185 cat >>conftest.
$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8187 #include <pthread.h>
8189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8190 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8192 grep -v '^ *+' conftest.er1
>conftest.err
8194 cat conftest.err
>&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } >/dev
/null
; then
8197 if test -s conftest.err
; then
8198 ac_cpp_err
=$ac_c_preproc_warn_flag
8199 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8206 if test -z "$ac_cpp_err"; then
8207 ac_cv_header_pthread_h
=yes
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.
$ac_ext >&5
8212 ac_cv_header_pthread_h
=no
8214 rm -f conftest.err conftest.
$ac_ext
8216 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8217 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8218 if test $ac_cv_header_pthread_h = yes; then
8225 # These tests can't be done till we know if we have limits.h.
8226 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8227 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8228 if test "${gcc_cv_decl_char_bit+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 cat >conftest.
$ac_ext <<_ACEOF
8234 cat confdefs.h
>>conftest.
$ac_ext
8235 cat >>conftest.
$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 #ifdef HAVE_LIMITS_H
8244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8245 $EGREP "found" >/dev
/null
2>&1; then
8246 gcc_cv_decl_char_bit
=yes
8248 gcc_cv_decl_char_bit
=no
8254 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8255 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8256 if test $gcc_cv_decl_char_bit = no
; then
8257 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8258 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8259 if test "${gcc_cv_c_nbby+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 while test $i -lt 65; do
8265 cat >conftest.
$ac_ext <<_ACEOF
8268 cat confdefs.h
>>conftest.
$ac_ext
8269 cat >>conftest.
$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8276 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8277 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8283 rm -f conftest.
$ac_objext
8284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8285 (eval $ac_compile) 2>conftest.er1
8287 grep -v '^ *+' conftest.er1
>conftest.err
8289 cat conftest.err
>&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try
='test -z "$ac_c_werror_flag"
8293 || test ! -s conftest.err'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try
='test -s conftest.$ac_objext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8305 gcc_cv_c_nbby
=$i; break
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.
$ac_ext >&5
8311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8314 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8317 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8318 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8319 if test $gcc_cv_c_nbby = failed
; then
8320 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8321 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8322 { (exit 1); exit 1; }; }
8325 cat >>confdefs.h
<<_ACEOF
8326 #define CHAR_BIT $gcc_cv_c_nbby
8331 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8332 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8333 if test "${ac_cv_c_bigendian+set}" = set; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 ac_cv_c_bigendian
=unknown
8337 # See if sys/param.h defines the BYTE_ORDER macro.
8338 cat >conftest.
$ac_ext <<_ACEOF
8341 cat confdefs.h
>>conftest.
$ac_ext
8342 cat >>conftest.
$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 #include <sys/types.h>
8345 #include <sys/param.h>
8350 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8357 rm -f conftest.
$ac_objext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8359 (eval $ac_compile) 2>conftest.er1
8361 grep -v '^ *+' conftest.er1
>conftest.err
8363 cat conftest.err
>&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try
='test -z "$ac_c_werror_flag"
8367 || test ! -s conftest.err'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; } &&
8373 { ac_try
='test -s conftest.$ac_objext'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; }; then
8379 # It does; now see whether it defined to BIG_ENDIAN or not.
8380 cat >conftest.
$ac_ext <<_ACEOF
8383 cat confdefs.h
>>conftest.
$ac_ext
8384 cat >>conftest.
$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 #include <sys/types.h>
8387 #include <sys/param.h>
8392 #if BYTE_ORDER != BIG_ENDIAN
8399 rm -f conftest.
$ac_objext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>conftest.er1
8403 grep -v '^ *+' conftest.er1
>conftest.err
8405 cat conftest.err
>&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try
='test -z "$ac_c_werror_flag"
8409 || test ! -s conftest.err'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; } &&
8415 { ac_try
='test -s conftest.$ac_objext'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
8421 ac_cv_c_bigendian
=yes
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.
$ac_ext >&5
8426 ac_cv_c_bigendian
=no
8428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.
$ac_ext >&5
8434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8435 if test $ac_cv_c_bigendian = unknown
; then
8436 if test "$cross_compiling" = yes; then
8437 echo $ac_n "cross-compiling... " 2>&6
8439 cat >conftest.
$ac_ext <<_ACEOF
8442 cat confdefs.h
>>conftest.
$ac_ext
8443 cat >>conftest.
$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8446 /* Are we little or big endian? From Harbison&Steele. */
8450 char c[sizeof (long)];
8453 exit (u.c[sizeof (long) - 1] == 1);
8456 rm -f conftest
$ac_exeext
8457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8458 (eval $ac_link) 2>&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_cv_c_bigendian
=no
8469 echo "$as_me: program exited with status $ac_status" >&5
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.
$ac_ext >&5
8474 ac_cv_c_bigendian
=yes
8476 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8480 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8481 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8482 if test $ac_cv_c_bigendian = unknown
; then
8483 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8484 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8486 cat >conftest.c
<<EOF
8487 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8488 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8489 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8490 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8491 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8492 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8493 int main() { _ascii (); _ebcdic (); return 0; }
8495 if test -f conftest.c
; then
8496 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
8497 if test `grep -l BIGenDianSyS conftest.o` ; then
8498 echo $ac_n ' big endian probe OK, ' 1>&6
8499 ac_cv_c_bigendian
=yes
8501 if test `grep -l LiTTleEnDian conftest.o` ; then
8502 echo $ac_n ' little endian probe OK, ' 1>&6
8503 if test $ac_cv_c_bigendian = yes ; then
8504 ac_cv_c_bigendian
=unknown
;
8506 ac_cv_c_bigendian
=no
8509 echo $ac_n 'guessing bigendian ... ' >&6
8512 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8513 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8515 if test $ac_cv_c_bigendian = yes; then
8517 cat >>confdefs.h
<<\_ACEOF
8518 #define WORDS_BIGENDIAN 1
8522 cat >>confdefs.h
<<\_ACEOF
8523 #define HOST_WORDS_BIG_ENDIAN 1
8531 cat >>confdefs.h
<<_ACEOF
8532 #define BYTEORDER $BYTEORDER
8535 if test $ac_cv_c_bigendian = unknown
; then
8536 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8537 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8538 { (exit 1); exit 1; }; }
8546 # Stage specific cflags for build.
8550 if test x
$GCC = xyes
8552 stage1_cflags
="-Wa,-J"
8558 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8559 # sources; use -no-cpp-precomp to get to GNU cpp.
8560 # Apple's GCC has bugs in designated initializer handling, so disable
8562 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8567 # These libraries may be used by collect2.
8568 # We may need a special search path to get them linked.
8569 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8570 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8571 if test "${gcc_cv_collect2_libs+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 for libs
in '' -lld -lmld \
8576 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8577 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8580 cat >conftest.
$ac_ext <<_ACEOF
8583 cat confdefs.h
>>conftest.
$ac_ext
8584 cat >>conftest.
$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8587 /* Override any gcc2 internal prototype to avoid an error. */
8591 /* We use char because int might match the return type of a gcc2
8592 builtin and then its argument prototype would still apply. */
8602 rm -f conftest.
$ac_objext conftest
$ac_exeext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8604 (eval $ac_link) 2>conftest.er1
8606 grep -v '^ *+' conftest.er1
>conftest.err
8608 cat conftest.err
>&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try
='test -z "$ac_c_werror_flag"
8612 || test ! -s conftest.err'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; } &&
8618 { ac_try
='test -s conftest$ac_exeext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 gcc_cv_collect2_libs
="$libs"; break
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.
$ac_ext >&5
8630 rm -f conftest.err conftest.
$ac_objext \
8631 conftest
$ac_exeext conftest.
$ac_ext
8634 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8636 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8637 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8638 case $gcc_cv_collect2_libs in
8640 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8644 # When building Ada code on Alpha, we need exc_resume which is usually in
8645 # -lexc. So test for it.
8648 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8649 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8650 if test "${ac_cv_search_exc_resume+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 ac_func_search_save_LIBS
=$LIBS
8654 ac_cv_search_exc_resume
=no
8655 cat >conftest.
$ac_ext <<_ACEOF
8658 cat confdefs.h
>>conftest.
$ac_ext
8659 cat >>conftest.
$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8662 /* Override any gcc2 internal prototype to avoid an error. */
8666 /* We use char because int might match the return type of a gcc2
8667 builtin and then its argument prototype would still apply. */
8677 rm -f conftest.
$ac_objext conftest
$ac_exeext
8678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8679 (eval $ac_link) 2>conftest.er1
8681 grep -v '^ *+' conftest.er1
>conftest.err
8683 cat conftest.err
>&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } &&
8686 { ac_try
='test -z "$ac_c_werror_flag"
8687 || test ! -s conftest.err'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; } &&
8693 { ac_try
='test -s conftest$ac_exeext'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_cv_search_exc_resume
="none required"
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.
$ac_ext >&5
8705 rm -f conftest.err conftest.
$ac_objext \
8706 conftest
$ac_exeext conftest.
$ac_ext
8707 if test "$ac_cv_search_exc_resume" = no
; then
8708 for ac_lib
in exc
; do
8709 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8710 cat >conftest.
$ac_ext <<_ACEOF
8713 cat confdefs.h
>>conftest.
$ac_ext
8714 cat >>conftest.
$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8717 /* Override any gcc2 internal prototype to avoid an error. */
8721 /* We use char because int might match the return type of a gcc2
8722 builtin and then its argument prototype would still apply. */
8732 rm -f conftest.
$ac_objext conftest
$ac_exeext
8733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8734 (eval $ac_link) 2>conftest.er1
8736 grep -v '^ *+' conftest.er1
>conftest.err
8738 cat conftest.err
>&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } &&
8741 { ac_try
='test -z "$ac_c_werror_flag"
8742 || test ! -s conftest.err'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; } &&
8748 { ac_try
='test -s conftest$ac_exeext'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
8754 ac_cv_search_exc_resume
="-l$ac_lib"
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.
$ac_ext >&5
8761 rm -f conftest.err conftest.
$ac_objext \
8762 conftest
$ac_exeext conftest.
$ac_ext
8765 LIBS
=$ac_func_search_save_LIBS
8767 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8768 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8769 if test "$ac_cv_search_exc_resume" != no
; then
8770 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8778 # Some systems put ldexp and frexp in libm instead of libc; assume
8779 # they're both in the same place. jcf-dump needs them.
8782 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8783 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8784 if test "${ac_cv_search_ldexp+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 ac_func_search_save_LIBS
=$LIBS
8788 ac_cv_search_ldexp
=no
8789 cat >conftest.
$ac_ext <<_ACEOF
8792 cat confdefs.h
>>conftest.
$ac_ext
8793 cat >>conftest.
$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8796 /* Override any gcc2 internal prototype to avoid an error. */
8800 /* We use char because int might match the return type of a gcc2
8801 builtin and then its argument prototype would still apply. */
8811 rm -f conftest.
$ac_objext conftest
$ac_exeext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8813 (eval $ac_link) 2>conftest.er1
8815 grep -v '^ *+' conftest.er1
>conftest.err
8817 cat conftest.err
>&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8820 { ac_try
='test -z "$ac_c_werror_flag"
8821 || test ! -s conftest.err'
8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; } &&
8827 { ac_try
='test -s conftest$ac_exeext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 ac_cv_search_ldexp
="none required"
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.
$ac_ext >&5
8839 rm -f conftest.err conftest.
$ac_objext \
8840 conftest
$ac_exeext conftest.
$ac_ext
8841 if test "$ac_cv_search_ldexp" = no
; then
8843 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8844 cat >conftest.
$ac_ext <<_ACEOF
8847 cat confdefs.h
>>conftest.
$ac_ext
8848 cat >>conftest.
$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8851 /* Override any gcc2 internal prototype to avoid an error. */
8855 /* We use char because int might match the return type of a gcc2
8856 builtin and then its argument prototype would still apply. */
8866 rm -f conftest.
$ac_objext conftest
$ac_exeext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868 (eval $ac_link) 2>conftest.er1
8870 grep -v '^ *+' conftest.er1
>conftest.err
8872 cat conftest.err
>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try
='test -z "$ac_c_werror_flag"
8876 || test ! -s conftest.err'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try
='test -s conftest$ac_exeext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_cv_search_ldexp
="-l$ac_lib"
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.
$ac_ext >&5
8895 rm -f conftest.err conftest.
$ac_objext \
8896 conftest
$ac_exeext conftest.
$ac_ext
8899 LIBS
=$ac_func_search_save_LIBS
8901 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8902 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8903 if test "$ac_cv_search_ldexp" != no
; then
8904 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
8912 # Use <inttypes.h> only if it exists,
8913 # doesn't clash with <sys/types.h>, and declares intmax_t.
8914 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8915 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8916 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 cat >conftest.
$ac_ext <<_ACEOF
8922 cat confdefs.h
>>conftest.
$ac_ext
8923 cat >>conftest.
$ac_ext <<_ACEOF
8924 /* end confdefs.h. */
8925 #include <sys/types.h>
8926 #include <inttypes.h>
8935 rm -f conftest.
$ac_objext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8937 (eval $ac_compile) 2>conftest.er1
8939 grep -v '^ *+' conftest.er1
>conftest.err
8941 cat conftest.err
>&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try
='test -z "$ac_c_werror_flag"
8945 || test ! -s conftest.err'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try
='test -s conftest.$ac_objext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 gcc_cv_header_inttypes_h
=yes
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.
$ac_ext >&5
8962 gcc_cv_header_inttypes_h
=no
8964 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8967 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8968 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8969 if test $gcc_cv_header_inttypes_h = yes; then
8971 cat >>confdefs.h
<<\_ACEOF
8972 #define HAVE_INTTYPES_H 1
9003 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
9004 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
9005 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
9006 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
9009 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9010 echo "$as_me:$LINENO: checking for $ac_func" >&5
9011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9012 if eval "test \"\${$as_ac_var+set}\" = set"; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 cat >conftest.
$ac_ext <<_ACEOF
9018 cat confdefs.h
>>conftest.
$ac_ext
9019 cat >>conftest.
$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9023 #define $ac_func innocuous_$ac_func
9025 /* System header to define __stub macros and hopefully few prototypes,
9026 which can conflict with char $ac_func (); below.
9027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9028 <limits.h> exists even on freestanding compilers. */
9031 # include <limits.h>
9033 # include <assert.h>
9038 /* Override any gcc2 internal prototype to avoid an error. */
9043 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9046 /* The GNU C library defines this for functions which it implements
9047 to always fail with ENOSYS. Some functions are actually named
9048 something starting with __ and the normal name is an alias. */
9049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9052 char (*f) () = $ac_func;
9061 return f != $ac_func;
9066 rm -f conftest.
$ac_objext conftest
$ac_exeext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9068 (eval $ac_link) 2>conftest.er1
9070 grep -v '^ *+' conftest.er1
>conftest.err
9072 cat conftest.err
>&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); } &&
9075 { ac_try
='test -z "$ac_c_werror_flag"
9076 || test ! -s conftest.err'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; } &&
9082 { ac_try
='test -s conftest$ac_exeext'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; }; then
9088 eval "$as_ac_var=yes"
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.
$ac_ext >&5
9093 eval "$as_ac_var=no"
9095 rm -f conftest.err conftest.
$ac_objext \
9096 conftest
$ac_exeext conftest.
$ac_ext
9098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9100 if test `eval echo '${'$as_ac_var'}'` = yes; then
9101 cat >>confdefs.h
<<_ACEOF
9102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9109 if test x
$ac_cv_func_mbstowcs = xyes
; then
9110 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9111 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9112 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 if test "$cross_compiling" = yes; then
9116 gcc_cv_func_mbstowcs_works
=yes
9118 cat >conftest.
$ac_ext <<_ACEOF
9121 cat confdefs.h
>>conftest.
$ac_ext
9122 cat >>conftest.
$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9131 rm -f conftest
$ac_exeext
9132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9133 (eval $ac_link) 2>&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9142 gcc_cv_func_mbstowcs_works
=yes
9144 echo "$as_me: program exited with status $ac_status" >&5
9145 echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.
$ac_ext >&5
9149 gcc_cv_func_mbstowcs_works
=no
9151 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9154 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9155 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9156 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9158 cat >>confdefs.h
<<\_ACEOF
9159 #define HAVE_WORKING_MBSTOWCS 1
9165 echo "$as_me:$LINENO: checking for ssize_t" >&5
9166 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9167 if test "${ac_cv_type_ssize_t+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 cat >conftest.
$ac_ext <<_ACEOF
9173 cat confdefs.h
>>conftest.
$ac_ext
9174 cat >>conftest.
$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9176 $ac_includes_default
9182 if (sizeof (ssize_t))
9188 rm -f conftest.
$ac_objext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9190 (eval $ac_compile) 2>conftest.er1
9192 grep -v '^ *+' conftest.er1
>conftest.err
9194 cat conftest.err
>&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try
='test -z "$ac_c_werror_flag"
9198 || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try
='test -s conftest.$ac_objext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_type_ssize_t
=yes
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.
$ac_ext >&5
9215 ac_cv_type_ssize_t
=no
9217 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9219 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9220 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9221 if test $ac_cv_type_ssize_t = yes; then
9225 cat >>confdefs.h
<<_ACEOF
9232 # Try to determine the array type of the second argument of getgroups
9233 # for the target system (int or gid_t).
9234 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9235 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9236 if test "${ac_cv_type_uid_t+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 cat >conftest.
$ac_ext <<_ACEOF
9242 cat confdefs.h
>>conftest.
$ac_ext
9243 cat >>conftest.
$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 #include <sys/types.h>
9248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9249 $EGREP "uid_t" >/dev
/null
2>&1; then
9250 ac_cv_type_uid_t
=yes
9257 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9258 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9259 if test $ac_cv_type_uid_t = no
; then
9261 cat >>confdefs.h
<<\_ACEOF
9266 cat >>confdefs.h
<<\_ACEOF
9272 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9273 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9274 if test "${ac_cv_type_getgroups+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 if test "$cross_compiling" = yes; then
9278 ac_cv_type_getgroups
=cross
9280 cat >conftest.
$ac_ext <<_ACEOF
9283 cat confdefs.h
>>conftest.
$ac_ext
9284 cat >>conftest.
$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286 /* Thanks to Mike Rendell for this test. */
9287 #include <sys/types.h>
9290 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9297 union { gid_t gval; long lval; } val;
9300 for (i = 0; i < NGID; i++)
9301 gidset[i] = val.gval;
9302 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9304 /* Exit non-zero if getgroups seems to require an array of ints. This
9305 happens when gid_t is short but getgroups modifies an array of ints. */
9306 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9309 rm -f conftest
$ac_exeext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9311 (eval $ac_link) 2>&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; }; then
9320 ac_cv_type_getgroups
=gid_t
9322 echo "$as_me: program exited with status $ac_status" >&5
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.
$ac_ext >&5
9327 ac_cv_type_getgroups
=int
9329 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9331 if test $ac_cv_type_getgroups = cross
; then
9332 cat >conftest.
$ac_ext <<_ACEOF
9335 cat confdefs.h
>>conftest.
$ac_ext
9336 cat >>conftest.
$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9342 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9343 ac_cv_type_getgroups
=gid_t
9345 ac_cv_type_getgroups
=int
9351 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9352 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9354 cat >>confdefs.h
<<_ACEOF
9355 #define GETGROUPS_T $ac_cv_type_getgroups
9359 if test "${target}" = "${build}"; then
9360 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9363 # This condition may need some tweaking. It should include all
9364 # targets where the array type of the second argument of getgroups
9365 # is int and the type of gid_t is not equivalent to int.
9366 *-*-sunos* |
*-*-ultrix*)
9367 TARGET_GETGROUPS_T
=int
9370 TARGET_GETGROUPS_T
=gid_t
9376 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9377 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9378 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9381 if test "$cross_compiling" = yes; then
9382 gcc_cv_func_printf_ptr
=no
9384 cat >conftest.
$ac_ext <<_ACEOF
9387 cat confdefs.h
>>conftest.
$ac_ext
9388 cat >>conftest.
$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9395 char *p = buf, *q = NULL;
9396 sprintf(buf, "%p", p);
9397 sscanf(buf, "%p", &q);
9401 rm -f conftest
$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403 (eval $ac_link) 2>&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 gcc_cv_func_printf_ptr
=yes
9414 echo "$as_me: program exited with status $ac_status" >&5
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.
$ac_ext >&5
9419 gcc_cv_func_printf_ptr
=no
9421 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9423 rm -f core core.
* *.core
9425 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9426 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9427 if test $gcc_cv_func_printf_ptr = yes ; then
9429 cat >>confdefs.h
<<\_ACEOF
9430 #define HAVE_PRINTF_PTR 1
9436 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9437 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9438 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 cat >conftest.
$ac_ext <<_ACEOF
9444 cat confdefs.h
>>conftest.
$ac_ext
9445 cat >>conftest.
$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9447 #include <sys/mman.h>
9449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9450 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9452 grep -v '^ *+' conftest.er1
>conftest.err
9454 cat conftest.err
>&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } >/dev
/null
; then
9457 if test -s conftest.err
; then
9458 ac_cpp_err
=$ac_c_preproc_warn_flag
9459 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9466 if test -z "$ac_cpp_err"; then
9467 ac_cv_header_sys_mman_h
=yes
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.
$ac_ext >&5
9472 ac_cv_header_sys_mman_h
=no
9474 rm -f conftest.err conftest.
$ac_ext
9476 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9477 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9478 if test $ac_cv_header_sys_mman_h = yes; then
9479 gcc_header_sys_mman_h
=yes
9481 gcc_header_sys_mman_h
=no
9484 echo "$as_me:$LINENO: checking for mmap" >&5
9485 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9486 if test "${ac_cv_func_mmap+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 cat >conftest.
$ac_ext <<_ACEOF
9492 cat confdefs.h
>>conftest.
$ac_ext
9493 cat >>conftest.
$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9495 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9497 #define mmap innocuous_mmap
9499 /* System header to define __stub macros and hopefully few prototypes,
9500 which can conflict with char mmap (); below.
9501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502 <limits.h> exists even on freestanding compilers. */
9505 # include <limits.h>
9507 # include <assert.h>
9512 /* Override any gcc2 internal prototype to avoid an error. */
9517 /* We use char because int might match the return type of a gcc2
9518 builtin and then its argument prototype would still apply. */
9520 /* The GNU C library defines this for functions which it implements
9521 to always fail with ENOSYS. Some functions are actually named
9522 something starting with __ and the normal name is an alias. */
9523 #if defined (__stub_mmap) || defined (__stub___mmap)
9526 char (*f) () = mmap;
9540 rm -f conftest.
$ac_objext conftest
$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>conftest.er1
9544 grep -v '^ *+' conftest.er1
>conftest.err
9546 cat conftest.err
>&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
9549 { ac_try
='test -z "$ac_c_werror_flag"
9550 || test ! -s conftest.err'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; } &&
9556 { ac_try
='test -s conftest$ac_exeext'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.
$ac_ext >&5
9569 rm -f conftest.err conftest.
$ac_objext \
9570 conftest
$ac_exeext conftest.
$ac_ext
9572 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9573 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9574 if test $ac_cv_func_mmap = yes; then
9580 if test "$gcc_header_sys_mman_h" != yes \
9581 ||
test "$gcc_func_mmap" != yes; then
9582 gcc_cv_func_mmap_file
=no
9583 gcc_cv_func_mmap_dev_zero
=no
9584 gcc_cv_func_mmap_anon
=no
9586 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9587 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9588 if test "${gcc_cv_func_mmap_file+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 # Add a system to this blacklist if
9592 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9593 # memory area containing the same data that you'd get if you applied
9594 # read() to the same fd. The only system known to have a problem here
9595 # is VMS, where text files have record structure.
9598 gcc_cv_func_mmap_file
=no
;;
9600 gcc_cv_func_mmap_file
=yes;;
9603 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9604 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9605 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9606 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9607 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 # Add a system to this blacklist if it has mmap() but /dev/zero
9611 # does not exist, or if mmapping /dev/zero does not give anonymous
9612 # zeroed pages with both the following properties:
9613 # 1. If you map N consecutive pages in with one call, and then
9614 # unmap any subset of those pages, the pages that were not
9615 # explicitly unmapped remain accessible.
9616 # 2. If you map two adjacent blocks of memory and then unmap them
9617 # both at once, they must both go away.
9618 # Systems known to be in this category are Windows (all variants),
9621 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9622 gcc_cv_func_mmap_dev_zero
=no
;;
9624 gcc_cv_func_mmap_dev_zero
=yes;;
9627 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9628 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9630 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9631 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9632 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9633 if test "${gcc_cv_decl_map_anon+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 cat >conftest.
$ac_ext <<_ACEOF
9639 cat confdefs.h
>>conftest.
$ac_ext
9640 cat >>conftest.
$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9642 #include <sys/types.h>
9643 #include <sys/mman.h>
9646 #ifndef MAP_ANONYMOUS
9647 #define MAP_ANONYMOUS MAP_ANON
9653 int n = MAP_ANONYMOUS;
9658 rm -f conftest.
$ac_objext
9659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9660 (eval $ac_compile) 2>conftest.er1
9662 grep -v '^ *+' conftest.er1
>conftest.err
9664 cat conftest.err
>&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } &&
9667 { ac_try
='test -z "$ac_c_werror_flag"
9668 || test ! -s conftest.err'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; } &&
9674 { ac_try
='test -s conftest.$ac_objext'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9680 gcc_cv_decl_map_anon
=yes
9682 echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.
$ac_ext >&5
9685 gcc_cv_decl_map_anon
=no
9687 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9689 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9690 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9692 if test $gcc_cv_decl_map_anon = no
; then
9693 gcc_cv_func_mmap_anon
=no
9695 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9696 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9697 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9701 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9702 # doesn't give anonymous zeroed pages with the same properties listed
9703 # above for use of /dev/zero.
9704 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9706 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9707 gcc_cv_func_mmap_anon
=no
;;
9709 gcc_cv_func_mmap_anon
=yes;;
9712 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9713 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9717 if test $gcc_cv_func_mmap_file = yes; then
9719 cat >>confdefs.h
<<\_ACEOF
9720 #define HAVE_MMAP_FILE 1
9724 if test $gcc_cv_func_mmap_dev_zero = yes; then
9726 cat >>confdefs.h
<<\_ACEOF
9727 #define HAVE_MMAP_DEV_ZERO 1
9731 if test $gcc_cv_func_mmap_anon = yes; then
9733 cat >>confdefs.h
<<\_ACEOF
9734 #define HAVE_MMAP_ANON 1
9742 # Under VMS, vfork works very differently than on Unix. The standard test
9743 # won't work, and it isn't easily adaptable. It makes more sense to
9745 ac_cv_func_vfork_works
=yes
9748 echo "$as_me:$LINENO: checking for pid_t" >&5
9749 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9750 if test "${ac_cv_type_pid_t+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 cat >conftest.
$ac_ext <<_ACEOF
9756 cat confdefs.h
>>conftest.
$ac_ext
9757 cat >>conftest.
$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9759 $ac_includes_default
9771 rm -f conftest.
$ac_objext
9772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9773 (eval $ac_compile) 2>conftest.er1
9775 grep -v '^ *+' conftest.er1
>conftest.err
9777 cat conftest.err
>&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } &&
9780 { ac_try
='test -z "$ac_c_werror_flag"
9781 || test ! -s conftest.err'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; } &&
9787 { ac_try
='test -s conftest.$ac_objext'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9793 ac_cv_type_pid_t
=yes
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.
$ac_ext >&5
9800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9802 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9803 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9804 if test $ac_cv_type_pid_t = yes; then
9808 cat >>confdefs.h
<<_ACEOF
9816 for ac_header
in unistd.h vfork.h
9818 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9819 echo "$as_me:$LINENO: checking for $ac_header" >&5
9820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 cat >conftest.
$ac_ext <<_ACEOF
9827 cat confdefs.h
>>conftest.
$ac_ext
9828 cat >>conftest.
$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9830 #include <$ac_header>
9832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9833 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9835 grep -v '^ *+' conftest.er1
>conftest.err
9837 cat conftest.err
>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } >/dev
/null
; then
9840 if test -s conftest.err
; then
9841 ac_cpp_err
=$ac_c_preproc_warn_flag
9842 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9849 if test -z "$ac_cpp_err"; then
9850 eval "$as_ac_Header=yes"
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.
$ac_ext >&5
9855 eval "$as_ac_Header=no"
9857 rm -f conftest.err conftest.
$ac_ext
9859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9862 cat >>confdefs.h
<<_ACEOF
9863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9871 for ac_func
in fork vfork
9873 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9874 echo "$as_me:$LINENO: checking for $ac_func" >&5
9875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9876 if eval "test \"\${$as_ac_var+set}\" = set"; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 cat >conftest.
$ac_ext <<_ACEOF
9882 cat confdefs.h
>>conftest.
$ac_ext
9883 cat >>conftest.
$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9887 #define $ac_func innocuous_$ac_func
9889 /* System header to define __stub macros and hopefully few prototypes,
9890 which can conflict with char $ac_func (); below.
9891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9892 <limits.h> exists even on freestanding compilers. */
9895 # include <limits.h>
9897 # include <assert.h>
9902 /* Override any gcc2 internal prototype to avoid an error. */
9907 /* We use char because int might match the return type of a gcc2
9908 builtin and then its argument prototype would still apply. */
9910 /* The GNU C library defines this for functions which it implements
9911 to always fail with ENOSYS. Some functions are actually named
9912 something starting with __ and the normal name is an alias. */
9913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9916 char (*f) () = $ac_func;
9925 return f != $ac_func;
9930 rm -f conftest.
$ac_objext conftest
$ac_exeext
9931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9932 (eval $ac_link) 2>conftest.er1
9934 grep -v '^ *+' conftest.er1
>conftest.err
9936 cat conftest.err
>&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try
='test -z "$ac_c_werror_flag"
9940 || test ! -s conftest.err'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; } &&
9946 { ac_try
='test -s conftest$ac_exeext'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9952 eval "$as_ac_var=yes"
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.
$ac_ext >&5
9957 eval "$as_ac_var=no"
9959 rm -f conftest.err conftest.
$ac_objext \
9960 conftest
$ac_exeext conftest.
$ac_ext
9962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9964 if test `eval echo '${'$as_ac_var'}'` = yes; then
9965 cat >>confdefs.h
<<_ACEOF
9966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9972 if test "x$ac_cv_func_fork" = xyes
; then
9973 echo "$as_me:$LINENO: checking for working fork" >&5
9974 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9975 if test "${ac_cv_func_fork_works+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 if test "$cross_compiling" = yes; then
9979 ac_cv_func_fork_works
=cross
9981 cat >conftest.
$ac_ext <<_ACEOF
9982 /* By Ruediger Kuhlmann. */
9983 #include <sys/types.h>
9985 # include <unistd.h>
9987 /* Some systems only have a dummy stub for fork() */
9995 rm -f conftest
$ac_exeext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9997 (eval $ac_link) 2>&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
10006 ac_cv_func_fork_works
=yes
10008 echo "$as_me: program exited with status $ac_status" >&5
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.
$ac_ext >&5
10012 ( exit $ac_status )
10013 ac_cv_func_fork_works
=no
10015 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10018 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10019 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10022 ac_cv_func_fork_works
=$ac_cv_func_fork
10024 if test "x$ac_cv_func_fork_works" = xcross
; then
10026 *-*-amigaos* |
*-*-msdosdjgpp*)
10027 # Override, as these systems have only a dummy fork() stub
10028 ac_cv_func_fork_works
=no
10031 ac_cv_func_fork_works
=yes
10034 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10035 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10037 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10038 if test "x$ac_cv_func_vfork" = xyes
; then
10039 echo "$as_me:$LINENO: checking for working vfork" >&5
10040 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10041 if test "${ac_cv_func_vfork_works+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10044 if test "$cross_compiling" = yes; then
10045 ac_cv_func_vfork_works
=cross
10047 cat >conftest.
$ac_ext <<_ACEOF
10050 cat confdefs.h
>>conftest.
$ac_ext
10051 cat >>conftest.
$ac_ext <<_ACEOF
10052 /* end confdefs.h. */
10053 /* Thanks to Paul Eggert for this test. */
10055 #include <stdlib.h>
10056 #include <sys/types.h>
10057 #include <sys/stat.h>
10058 #include <sys/wait.h>
10060 # include <unistd.h>
10063 # include <vfork.h>
10065 /* On some sparc systems, changes by the child to local and incoming
10066 argument registers are propagated back to the parent. The compiler
10067 is told about this with #include <vfork.h>, but some compilers
10068 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10069 static variable whose address is put into a register that is
10070 clobbered by the vfork. */
10073 sparc_address_test (int arg)
10075 sparc_address_test (arg) int arg;
10078 static pid_t child;
10096 pid_t parent = getpid ();
10099 sparc_address_test (0);
10104 /* Here is another test for sparc vfork register problems. This
10105 test uses lots of local variables, at least as many local
10106 variables as main has allocated so far including compiler
10107 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10108 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10109 reuse the register of parent for one of the local variables,
10110 since it will think that parent can't possibly be used any more
10111 in this routine. Assigning to the local variable will thus
10112 munge parent in the parent process. */
10114 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10115 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10116 /* Convince the compiler that p..p7 are live; otherwise, it might
10117 use the same hardware register for all 8 local variables. */
10118 if (p != p1 || p != p2 || p != p3 || p != p4
10119 || p != p5 || p != p6 || p != p7)
10122 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10123 from child file descriptors. If the child closes a descriptor
10124 before it execs or exits, this munges the parent's descriptor
10125 as well. Test for this by closing stdout in the child. */
10126 _exit(close(fileno(stdout)) != 0);
10131 while (wait(&status) != child)
10134 /* Was there some problem with vforking? */
10137 /* Did the child fail? (This shouldn't happen.) */
10140 /* Did the vfork/compiler bug occur? */
10141 || parent != getpid()
10143 /* Did the file descriptor bug occur? */
10144 || fstat(fileno(stdout), &st) != 0
10149 rm -f conftest
$ac_exeext
10150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10151 (eval $ac_link) 2>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_func_vfork_works
=yes
10162 echo "$as_me: program exited with status $ac_status" >&5
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.
$ac_ext >&5
10166 ( exit $ac_status )
10167 ac_cv_func_vfork_works
=no
10169 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10172 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10173 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10176 if test "x$ac_cv_func_fork_works" = xcross
; then
10177 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10178 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10179 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10182 if test "x$ac_cv_func_vfork_works" = xyes
; then
10184 cat >>confdefs.h
<<\_ACEOF
10185 #define HAVE_WORKING_VFORK 1
10190 cat >>confdefs.h
<<\_ACEOF
10195 if test "x$ac_cv_func_fork_works" = xyes
; then
10197 cat >>confdefs.h
<<\_ACEOF
10198 #define HAVE_WORKING_FORK 1
10205 if test "X$prefix" = "XNONE"; then
10206 acl_final_prefix
="$ac_default_prefix"
10208 acl_final_prefix
="$prefix"
10210 if test "X$exec_prefix" = "XNONE"; then
10211 acl_final_exec_prefix
='${prefix}'
10213 acl_final_exec_prefix
="$exec_prefix"
10215 acl_save_prefix
="$prefix"
10216 prefix
="$acl_final_prefix"
10217 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10218 prefix
="$acl_save_prefix"
10221 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10222 if test "${with_gnu_ld+set}" = set; then
10223 withval
="$with_gnu_ld"
10224 test "$withval" = no || with_gnu_ld
=yes
10228 # Prepare PATH_SEPARATOR.
10229 # The user is always right.
10230 if test "${PATH_SEPARATOR+set}" != set; then
10231 echo "#! /bin/sh" >conf$$.sh
10232 echo "exit 0" >>conf$$.sh
10234 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10242 if test "$GCC" = yes; then
10243 # Check if gcc -print-prog-name=ld gives a path.
10244 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10245 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10248 # gcc leaves a trailing carriage return which upsets mingw
10249 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10251 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10254 # Accept absolute paths.
10255 [\\/]* |
[A-Za-z
]:[\\/]*)
10256 re_direlt
='/[^/][^/]*/\.\./'
10257 # Canonicalize the path of ld
10258 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10259 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10260 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10262 test -z "$LD" && LD
="$ac_prog"
10265 # If it fails, then pretend we aren't using GCC.
10269 # If it is relative, then search for the first ld in PATH.
10270 with_gnu_ld
=unknown
10273 elif test "$with_gnu_ld" = yes; then
10274 echo "$as_me:$LINENO: checking for GNU ld" >&5
10275 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10277 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10278 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10280 if test "${acl_cv_path_LD+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 if test -z "$LD"; then
10284 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10285 for ac_dir
in $PATH; do
10286 test -z "$ac_dir" && ac_dir
=.
10287 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10288 acl_cv_path_LD
="$ac_dir/$ac_prog"
10289 # Check to see if the program is GNU ld. I'd rather use --version,
10290 # but apparently some GNU ld's only accept -v.
10291 # Break only if it was the GNU/non-GNU ld that we prefer.
10292 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10293 test "$with_gnu_ld" != no
&& break
10295 test "$with_gnu_ld" != yes && break
10301 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10305 LD
="$acl_cv_path_LD"
10306 if test -n "$LD"; then
10307 echo "$as_me:$LINENO: result: $LD" >&5
10308 echo "${ECHO_T}$LD" >&6
10310 echo "$as_me:$LINENO: result: no" >&5
10311 echo "${ECHO_T}no" >&6
10313 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10314 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10315 { (exit 1); exit 1; }; }
10316 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10317 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10318 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10322 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10323 acl_cv_prog_gnu_ld
=yes
10325 acl_cv_prog_gnu_ld
=no
10328 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10329 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10330 with_gnu_ld
=$acl_cv_prog_gnu_ld
10334 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10335 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10336 if test "${acl_cv_rpath+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10341 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10343 rm -f .
/conftest.sh
10347 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10348 echo "${ECHO_T}$acl_cv_rpath" >&6
10350 libext
="$acl_cv_libext"
10351 shlibext
="$acl_cv_shlibext"
10352 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10353 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10354 hardcode_direct
="$acl_cv_hardcode_direct"
10355 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10356 # Check whether --enable-rpath or --disable-rpath was given.
10357 if test "${enable_rpath+set}" = set; then
10358 enableval
="$enable_rpath"
10372 acl_save_prefix
="$prefix"
10373 prefix
="$acl_final_prefix"
10374 acl_save_exec_prefix
="$exec_prefix"
10375 exec_prefix
="$acl_final_exec_prefix"
10377 eval additional_includedir
=\"$includedir\"
10378 eval additional_libdir
=\"$libdir\"
10380 exec_prefix
="$acl_save_exec_prefix"
10381 prefix
="$acl_save_prefix"
10384 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10385 if test "${with_libiconv_prefix+set}" = set; then
10386 withval
="$with_libiconv_prefix"
10388 if test "X$withval" = "Xno"; then
10391 if test "X$withval" = "X"; then
10393 acl_save_prefix
="$prefix"
10394 prefix
="$acl_final_prefix"
10395 acl_save_exec_prefix
="$exec_prefix"
10396 exec_prefix
="$acl_final_exec_prefix"
10398 eval additional_includedir
=\"$includedir\"
10399 eval additional_libdir
=\"$libdir\"
10401 exec_prefix
="$acl_save_exec_prefix"
10402 prefix
="$acl_save_prefix"
10405 additional_includedir
="$withval/include"
10406 additional_libdir
="$withval/lib"
10416 names_already_handled
=
10417 names_next_round
='iconv '
10418 while test -n "$names_next_round"; do
10419 names_this_round
="$names_next_round"
10421 for name
in $names_this_round; do
10423 for n
in $names_already_handled; do
10424 if test "$n" = "$name"; then
10425 already_handled
=yes
10429 if test -z "$already_handled"; then
10430 names_already_handled
="$names_already_handled $name"
10431 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10432 eval value
=\"\
$HAVE_LIB$uppername\"
10433 if test -n "$value"; then
10434 if test "$value" = yes; then
10435 eval value
=\"\
$LIB$uppername\"
10436 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10437 eval value
=\"\
$LTLIB$uppername\"
10438 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10447 if test $use_additional = yes; then
10448 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10449 found_dir
="$additional_libdir"
10450 found_so
="$additional_libdir/lib$name.$shlibext"
10451 if test -f "$additional_libdir/lib$name.la"; then
10452 found_la
="$additional_libdir/lib$name.la"
10455 if test -f "$additional_libdir/lib$name.$libext"; then
10456 found_dir
="$additional_libdir"
10457 found_a
="$additional_libdir/lib$name.$libext"
10458 if test -f "$additional_libdir/lib$name.la"; then
10459 found_la
="$additional_libdir/lib$name.la"
10464 if test "X$found_dir" = "X"; then
10465 for x
in $LDFLAGS $LTLIBICONV; do
10467 acl_save_prefix
="$prefix"
10468 prefix
="$acl_final_prefix"
10469 acl_save_exec_prefix
="$exec_prefix"
10470 exec_prefix
="$acl_final_exec_prefix"
10472 exec_prefix
="$acl_save_exec_prefix"
10473 prefix
="$acl_save_prefix"
10477 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10478 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10480 found_so
="$dir/lib$name.$shlibext"
10481 if test -f "$dir/lib$name.la"; then
10482 found_la
="$dir/lib$name.la"
10485 if test -f "$dir/lib$name.$libext"; then
10487 found_a
="$dir/lib$name.$libext"
10488 if test -f "$dir/lib$name.la"; then
10489 found_la
="$dir/lib$name.la"
10495 if test "X$found_dir" != "X"; then
10500 if test "X$found_dir" != "X"; then
10501 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10502 if test "X$found_so" != "X"; then
10503 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10504 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10507 for x
in $ltrpathdirs; do
10508 if test "X$x" = "X$found_dir"; then
10513 if test -z "$haveit"; then
10514 ltrpathdirs
="$ltrpathdirs $found_dir"
10516 if test "$hardcode_direct" = yes; then
10517 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10519 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10520 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10522 for x
in $rpathdirs; do
10523 if test "X$x" = "X$found_dir"; then
10528 if test -z "$haveit"; then
10529 rpathdirs
="$rpathdirs $found_dir"
10533 for x
in $LDFLAGS $LIBICONV; do
10535 acl_save_prefix
="$prefix"
10536 prefix
="$acl_final_prefix"
10537 acl_save_exec_prefix
="$exec_prefix"
10538 exec_prefix
="$acl_final_exec_prefix"
10540 exec_prefix
="$acl_save_exec_prefix"
10541 prefix
="$acl_save_prefix"
10543 if test "X$x" = "X-L$found_dir"; then
10548 if test -z "$haveit"; then
10549 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10551 if test "$hardcode_minus_L" != no
; then
10552 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10554 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10560 if test "X$found_a" != "X"; then
10561 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10563 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10566 additional_includedir
=
10567 case "$found_dir" in
10569 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10570 additional_includedir
="$basedir/include"
10573 if test "X$additional_includedir" != "X"; then
10574 if test "X$additional_includedir" != "X/usr/include"; then
10576 if test "X$additional_includedir" = "X/usr/local/include"; then
10577 if test -n "$GCC"; then
10579 linux
*) haveit
=yes;;
10583 if test -z "$haveit"; then
10584 for x
in $CPPFLAGS $INCICONV; 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-I$additional_includedir"; then
10599 if test -z "$haveit"; then
10600 if test -d "$additional_includedir"; then
10601 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10607 if test -n "$found_la"; then
10608 save_libdir
="$libdir"
10609 case "$found_la" in
10610 */* |
*\\*) .
"$found_la" ;;
10611 *) .
"./$found_la" ;;
10613 libdir
="$save_libdir"
10614 for dep
in $dependency_libs; do
10617 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10618 if test "X$additional_libdir" != "X/usr/lib"; then
10620 if test "X$additional_libdir" = "X/usr/local/lib"; then
10621 if test -n "$GCC"; then
10623 linux
*) haveit
=yes;;
10627 if test -z "$haveit"; then
10629 for x
in $LDFLAGS $LIBICONV; do
10631 acl_save_prefix
="$prefix"
10632 prefix
="$acl_final_prefix"
10633 acl_save_exec_prefix
="$exec_prefix"
10634 exec_prefix
="$acl_final_exec_prefix"
10636 exec_prefix
="$acl_save_exec_prefix"
10637 prefix
="$acl_save_prefix"
10639 if test "X$x" = "X-L$additional_libdir"; then
10644 if test -z "$haveit"; then
10645 if test -d "$additional_libdir"; then
10646 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10650 for x
in $LDFLAGS $LTLIBICONV; do
10652 acl_save_prefix
="$prefix"
10653 prefix
="$acl_final_prefix"
10654 acl_save_exec_prefix
="$exec_prefix"
10655 exec_prefix
="$acl_final_exec_prefix"
10657 exec_prefix
="$acl_save_exec_prefix"
10658 prefix
="$acl_save_prefix"
10660 if test "X$x" = "X-L$additional_libdir"; then
10665 if test -z "$haveit"; then
10666 if test -d "$additional_libdir"; then
10667 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10674 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10675 if test "$enable_rpath" != no
; then
10677 for x
in $rpathdirs; do
10678 if test "X$x" = "X$dir"; then
10683 if test -z "$haveit"; then
10684 rpathdirs
="$rpathdirs $dir"
10687 for x
in $ltrpathdirs; do
10688 if test "X$x" = "X$dir"; then
10693 if test -z "$haveit"; then
10694 ltrpathdirs
="$ltrpathdirs $dir"
10699 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10702 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10705 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10706 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10712 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10713 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10719 if test "X$rpathdirs" != "X"; then
10720 if test -n "$hardcode_libdir_separator"; then
10722 for found_dir
in $rpathdirs; do
10723 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10725 acl_save_libdir
="$libdir"
10727 eval flag
=\"$hardcode_libdir_flag_spec\"
10728 libdir
="$acl_save_libdir"
10729 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10731 for found_dir
in $rpathdirs; do
10732 acl_save_libdir
="$libdir"
10733 libdir
="$found_dir"
10734 eval flag
=\"$hardcode_libdir_flag_spec\"
10735 libdir
="$acl_save_libdir"
10736 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10740 if test "X$ltrpathdirs" != "X"; then
10741 for found_dir
in $ltrpathdirs; do
10742 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10752 am_save_CPPFLAGS
="$CPPFLAGS"
10754 for element
in $INCICONV; do
10756 for x
in $CPPFLAGS; do
10758 acl_save_prefix
="$prefix"
10759 prefix
="$acl_final_prefix"
10760 acl_save_exec_prefix
="$exec_prefix"
10761 exec_prefix
="$acl_final_exec_prefix"
10763 exec_prefix
="$acl_save_exec_prefix"
10764 prefix
="$acl_save_prefix"
10766 if test "X$x" = "X$element"; then
10771 if test -z "$haveit"; then
10772 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10777 echo "$as_me:$LINENO: checking for iconv" >&5
10778 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10779 if test "${am_cv_func_iconv+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 am_cv_func_iconv
="no, consider installing GNU libiconv"
10785 cat >conftest.
$ac_ext <<_ACEOF
10788 cat confdefs.h
>>conftest.
$ac_ext
10789 cat >>conftest.
$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10791 #include <stdlib.h>
10796 iconv_t cd = iconv_open("","");
10797 iconv(cd,NULL,NULL,NULL,NULL);
10803 rm -f conftest.
$ac_objext conftest
$ac_exeext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10805 (eval $ac_link) 2>conftest.er1
10807 grep -v '^ *+' conftest.er1
>conftest.err
10809 cat conftest.err
>&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
10812 { ac_try
='test -z "$ac_c_werror_flag"
10813 || test ! -s conftest.err'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; } &&
10819 { ac_try
='test -s conftest$ac_exeext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 am_cv_func_iconv
=yes
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.
$ac_ext >&5
10831 rm -f conftest.err conftest.
$ac_objext \
10832 conftest
$ac_exeext conftest.
$ac_ext
10833 if test "$am_cv_func_iconv" != yes; then
10834 am_save_LIBS
="$LIBS"
10835 LIBS
="$LIBS $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_lib_iconv
=yes
10877 am_cv_func_iconv
=yes
10879 echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.
$ac_ext >&5
10883 rm -f conftest.err conftest.
$ac_objext \
10884 conftest
$ac_exeext conftest.
$ac_ext
10885 LIBS
="$am_save_LIBS"
10889 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10890 echo "${ECHO_T}$am_cv_func_iconv" >&6
10891 if test "$am_cv_func_iconv" = yes; then
10893 cat >>confdefs.h
<<\_ACEOF
10894 #define HAVE_ICONV 1
10898 if test "$am_cv_lib_iconv" = yes; then
10899 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10900 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10901 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10902 echo "${ECHO_T}$LIBICONV" >&6
10904 CPPFLAGS
="$am_save_CPPFLAGS"
10911 if test "$am_cv_func_iconv" = yes; then
10912 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10913 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10914 if test "${am_cv_proto_iconv+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10918 cat >conftest.
$ac_ext <<_ACEOF
10921 cat confdefs.h
>>conftest.
$ac_ext
10922 cat >>conftest.
$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10925 #include <stdlib.h>
10931 #if defined(__STDC__) || defined(__cplusplus)
10932 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10945 rm -f conftest.
$ac_objext
10946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10947 (eval $ac_compile) 2>conftest.er1
10949 grep -v '^ *+' conftest.er1
>conftest.err
10951 cat conftest.err
>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } &&
10954 { ac_try
='test -z "$ac_c_werror_flag"
10955 || test ! -s conftest.err'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; } &&
10961 { ac_try
='test -s conftest.$ac_objext'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 am_cv_proto_iconv_arg1
=""
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.
$ac_ext >&5
10972 am_cv_proto_iconv_arg1
="const"
10974 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10975 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);"
10978 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10979 echo "$as_me:$LINENO: result: ${ac_t:-
10980 }$am_cv_proto_iconv" >&5
10981 echo "${ECHO_T}${ac_t:-
10982 }$am_cv_proto_iconv" >&6
10984 cat >>confdefs.h
<<_ACEOF
10985 #define ICONV_CONST $am_cv_proto_iconv_arg1
10990 # Until we have in-tree GNU iconv:
10995 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10996 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10997 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 cat >conftest.
$ac_ext <<_ACEOF
11003 cat confdefs.h
>>conftest.
$ac_ext
11004 cat >>conftest.
$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 #include <locale.h>
11015 rm -f conftest.
$ac_objext conftest
$ac_exeext
11016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11017 (eval $ac_link) 2>conftest.er1
11019 grep -v '^ *+' conftest.er1
>conftest.err
11021 cat conftest.err
>&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
11024 { ac_try
='test -z "$ac_c_werror_flag"
11025 || test ! -s conftest.err'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; } &&
11031 { ac_try
='test -s conftest$ac_exeext'
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; }; then
11037 am_cv_val_LC_MESSAGES
=yes
11039 echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.
$ac_ext >&5
11042 am_cv_val_LC_MESSAGES
=no
11044 rm -f conftest.err conftest.
$ac_objext \
11045 conftest
$ac_exeext conftest.
$ac_ext
11047 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11048 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11049 if test $am_cv_val_LC_MESSAGES = yes; then
11051 cat >>confdefs.h
<<\_ACEOF
11052 #define HAVE_LC_MESSAGES 1
11059 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11060 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11061 if test "${am_cv_langinfo_codeset+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 cat >conftest.
$ac_ext <<_ACEOF
11067 cat confdefs.h
>>conftest.
$ac_ext
11068 cat >>conftest.
$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 #include <langinfo.h>
11074 char* cs = nl_langinfo(CODESET);
11079 rm -f conftest.
$ac_objext conftest
$ac_exeext
11080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11081 (eval $ac_link) 2>conftest.er1
11083 grep -v '^ *+' conftest.er1
>conftest.err
11085 cat conftest.err
>&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try
='test -z "$ac_c_werror_flag"
11089 || test ! -s conftest.err'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; } &&
11095 { ac_try
='test -s conftest$ac_exeext'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
11101 am_cv_langinfo_codeset
=yes
11103 echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.
$ac_ext >&5
11106 am_cv_langinfo_codeset
=no
11108 rm -f conftest.err conftest.
$ac_objext \
11109 conftest
$ac_exeext conftest.
$ac_ext
11112 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11113 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11114 if test $am_cv_langinfo_codeset = yes; then
11116 cat >>confdefs.h
<<\_ACEOF
11117 #define HAVE_LANGINFO_CODESET 1
11123 # We will need to find libiberty.h and ansidecl.h
11124 saved_CFLAGS
="$CFLAGS"
11125 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11150 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
11151 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11152 fprintf_unlocked strstr errno snprintf vasprintf \
11153 malloc realloc calloc free
basename getopt
clock getpagesize
11155 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11156 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11157 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11158 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 cat >conftest.
$ac_ext <<_ACEOF
11164 cat confdefs.h
>>conftest.
$ac_ext
11165 cat >>conftest.
$ac_ext <<_ACEOF
11166 /* end confdefs.h. */
11168 #define $ac_tr_decl 1
11170 #include "ansidecl.h"
11171 #include "system.h"
11177 char *(*pfn) = (char *(*)) $ac_func ;
11183 rm -f conftest.
$ac_objext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185 (eval $ac_compile) 2>conftest.er1
11187 grep -v '^ *+' conftest.er1
>conftest.err
11189 cat conftest.err
>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try
='test -z "$ac_c_werror_flag"
11193 || test ! -s conftest.err'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; } &&
11199 { ac_try
='test -s conftest.$ac_objext'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 eval "gcc_cv_have_decl_$ac_func=yes"
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.
$ac_ext >&5
11210 eval "gcc_cv_have_decl_$ac_func=no"
11212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11215 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11216 echo "$as_me:$LINENO: result: yes" >&5
11217 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11218 #define $ac_tr_decl 1
11222 echo "$as_me:$LINENO: result: no" >&5
11223 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11224 #define $ac_tr_decl 0
11235 for ac_func
in getrlimit setrlimit getrusage
11237 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11238 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11239 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11240 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 cat >conftest.
$ac_ext <<_ACEOF
11246 cat confdefs.h
>>conftest.
$ac_ext
11247 cat >>conftest.
$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11250 #define $ac_tr_decl 1
11252 #include "ansidecl.h"
11253 #include "system.h"
11254 #ifdef HAVE_SYS_RESOURCE_H
11255 #include <sys/resource.h>
11263 char *(*pfn) = (char *(*)) $ac_func ;
11269 rm -f conftest.
$ac_objext
11270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11271 (eval $ac_compile) 2>conftest.er1
11273 grep -v '^ *+' conftest.er1
>conftest.err
11275 cat conftest.err
>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } &&
11278 { ac_try
='test -z "$ac_c_werror_flag"
11279 || test ! -s conftest.err'
11280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281 (eval $ac_try) 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; } &&
11285 { ac_try
='test -s conftest.$ac_objext'
11286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 eval "gcc_cv_have_decl_$ac_func=yes"
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.
$ac_ext >&5
11296 eval "gcc_cv_have_decl_$ac_func=no"
11298 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11301 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11302 echo "$as_me:$LINENO: result: yes" >&5
11303 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11304 #define $ac_tr_decl 1
11308 echo "$as_me:$LINENO: result: no" >&5
11309 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11310 #define $ac_tr_decl 0
11318 cat >conftest.
$ac_ext <<_ACEOF
11321 cat confdefs.h
>>conftest.
$ac_ext
11322 cat >>conftest.
$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11325 #include "ansidecl.h"
11326 #include "system.h"
11327 #ifdef HAVE_SYS_RESOURCE_H
11328 #include <sys/resource.h>
11339 rm -f conftest.
$ac_objext
11340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11341 (eval $ac_compile) 2>conftest.er1
11343 grep -v '^ *+' conftest.er1
>conftest.err
11345 cat conftest.err
>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } &&
11348 { ac_try
='test -z "$ac_c_werror_flag"
11349 || test ! -s conftest.err'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; } &&
11355 { ac_try
='test -s conftest.$ac_objext'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.
$ac_ext >&5
11367 cat >>confdefs.h
<<\_ACEOF
11368 #define rlim_t long
11372 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11374 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11375 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11376 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11377 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11379 for ac_func
in ldgetname
11381 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11382 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11383 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11384 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 cat >conftest.
$ac_ext <<_ACEOF
11390 cat confdefs.h
>>conftest.
$ac_ext
11391 cat >>conftest.
$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11394 #define $ac_tr_decl 1
11396 #include "ansidecl.h"
11397 #include "system.h"
11398 #ifdef HAVE_LDFCN_H
11409 char *(*pfn) = (char *(*)) $ac_func ;
11415 rm -f conftest.
$ac_objext
11416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11417 (eval $ac_compile) 2>conftest.er1
11419 grep -v '^ *+' conftest.er1
>conftest.err
11421 cat conftest.err
>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } &&
11424 { ac_try
='test -z "$ac_c_werror_flag"
11425 || test ! -s conftest.err'
11426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427 (eval $ac_try) 2>&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; } &&
11431 { ac_try
='test -s conftest.$ac_objext'
11432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433 (eval $ac_try) 2>&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; }; then
11437 eval "gcc_cv_have_decl_$ac_func=yes"
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.
$ac_ext >&5
11442 eval "gcc_cv_have_decl_$ac_func=no"
11444 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11447 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11448 echo "$as_me:$LINENO: result: yes" >&5
11449 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11450 #define $ac_tr_decl 1
11454 echo "$as_me:$LINENO: result: no" >&5
11455 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11456 #define $ac_tr_decl 0
11465 for ac_func
in times
11467 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11468 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11469 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11470 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 cat >conftest.
$ac_ext <<_ACEOF
11476 cat confdefs.h
>>conftest.
$ac_ext
11477 cat >>conftest.
$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11480 #define $ac_tr_decl 1
11482 #include "ansidecl.h"
11483 #include "system.h"
11484 #ifdef HAVE_SYS_TIMES_H
11485 #include <sys/times.h>
11493 char *(*pfn) = (char *(*)) $ac_func ;
11499 rm -f conftest.
$ac_objext
11500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11501 (eval $ac_compile) 2>conftest.er1
11503 grep -v '^ *+' conftest.er1
>conftest.err
11505 cat conftest.err
>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try
='test -z "$ac_c_werror_flag"
11509 || test ! -s conftest.err'
11510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; } &&
11515 { ac_try
='test -s conftest.$ac_objext'
11516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517 (eval $ac_try) 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 eval "gcc_cv_have_decl_$ac_func=yes"
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.
$ac_ext >&5
11526 eval "gcc_cv_have_decl_$ac_func=no"
11528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11531 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11532 echo "$as_me:$LINENO: result: yes" >&5
11533 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11534 #define $ac_tr_decl 1
11538 echo "$as_me:$LINENO: result: no" >&5
11539 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11540 #define $ac_tr_decl 0
11548 # More time-related stuff.
11549 echo "$as_me:$LINENO: checking for struct tms" >&5
11550 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11551 if test "${ac_cv_struct_tms+set}" = set; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 cat >conftest.
$ac_ext <<_ACEOF
11558 cat confdefs.h
>>conftest.
$ac_ext
11559 cat >>conftest.
$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11562 #include "ansidecl.h"
11563 #include "system.h"
11564 #ifdef HAVE_SYS_TIMES_H
11565 #include <sys/times.h>
11576 rm -f conftest.
$ac_objext
11577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11578 (eval $ac_compile) 2>conftest.er1
11580 grep -v '^ *+' conftest.er1
>conftest.err
11582 cat conftest.err
>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } &&
11585 { ac_try
='test -z "$ac_c_werror_flag"
11586 || test ! -s conftest.err'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; } &&
11592 { ac_try
='test -s conftest.$ac_objext'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598 ac_cv_struct_tms
=yes
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.
$ac_ext >&5
11603 ac_cv_struct_tms
=no
11605 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11607 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11608 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11609 if test $ac_cv_struct_tms = yes; then
11611 cat >>confdefs.h
<<\_ACEOF
11612 #define HAVE_STRUCT_TMS 1
11617 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11618 # revisit after autoconf 2.50.
11619 echo "$as_me:$LINENO: checking for clock_t" >&5
11620 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11621 if test "${gcc_cv_type_clock_t+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 cat >conftest.
$ac_ext <<_ACEOF
11628 cat confdefs.h
>>conftest.
$ac_ext
11629 cat >>conftest.
$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11632 #include "ansidecl.h"
11633 #include "system.h"
11643 rm -f conftest.
$ac_objext
11644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11645 (eval $ac_compile) 2>conftest.er1
11647 grep -v '^ *+' conftest.er1
>conftest.err
11649 cat conftest.err
>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } &&
11652 { ac_try
='test -z "$ac_c_werror_flag"
11653 || test ! -s conftest.err'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; } &&
11659 { ac_try
='test -s conftest.$ac_objext'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 gcc_cv_type_clock_t
=yes
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.
$ac_ext >&5
11670 gcc_cv_type_clock_t
=no
11672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11674 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11675 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11676 if test $gcc_cv_type_clock_t = yes; then
11678 cat >>confdefs.h
<<\_ACEOF
11679 #define HAVE_CLOCK_T 1
11684 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11685 CFLAGS
="$saved_CFLAGS"
11687 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11688 if test "${enable_initfini_array+set}" = set; then
11689 enableval
="$enable_initfini_array"
11693 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11694 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11695 if test "${gcc_cv_initfini_array+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 if test "$cross_compiling" = yes; then
11699 gcc_cv_initfini_array
=no
11701 cat >conftest.
$ac_ext <<_ACEOF
11704 cat confdefs.h
>>conftest.
$ac_ext
11705 cat >>conftest.
$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11709 int main (void) { return x; }
11710 int foo (void) { x = 0; }
11711 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11713 rm -f conftest
$ac_exeext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11715 (eval $ac_link) 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724 gcc_cv_initfini_array
=yes
11726 echo "$as_me: program exited with status $ac_status" >&5
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.
$ac_ext >&5
11730 ( exit $ac_status )
11731 gcc_cv_initfini_array
=no
11733 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11736 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11737 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11738 enable_initfini_array
=$gcc_cv_initfini_array
11741 if test $enable_initfini_array = yes; then
11743 cat >>confdefs.h
<<\_ACEOF
11744 #define HAVE_INITFINI_ARRAY 1
11749 # mkdir takes a single argument on some systems.
11750 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11751 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11752 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 cat >conftest.
$ac_ext <<_ACEOF
11758 cat confdefs.h
>>conftest.
$ac_ext
11759 cat >>conftest.
$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11762 #include <sys/types.h>
11763 #ifdef HAVE_SYS_STAT_H
11764 # include <sys/stat.h>
11766 #ifdef HAVE_UNISTD_H
11767 # include <unistd.h>
11769 #ifdef HAVE_DIRECT_H
11770 # include <direct.h>
11780 rm -f conftest.
$ac_objext
11781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11782 (eval $ac_compile) 2>conftest.er1
11784 grep -v '^ *+' conftest.er1
>conftest.err
11786 cat conftest.err
>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try
='test -z "$ac_c_werror_flag"
11790 || test ! -s conftest.err'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; } &&
11796 { ac_try
='test -s conftest.$ac_objext'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 gcc_cv_mkdir_takes_one_arg
=no
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.
$ac_ext >&5
11807 gcc_cv_mkdir_takes_one_arg
=yes
11809 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11811 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11812 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11813 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11815 cat >>confdefs.h
<<\_ACEOF
11816 #define MKDIR_TAKES_ONE_ARG 1
11828 # With Setjmp/Longjmp based exception handling.
11829 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11830 if test "${enable_sjlj_exceptions+set}" = set; then
11831 enableval
="$enable_sjlj_exceptions"
11832 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11834 cat >>confdefs.h
<<_ACEOF
11835 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11840 # For platforms with the unwind ABI which includes an unwind library,
11841 # libunwind, we can choose to use the system libunwind.
11843 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11844 if test "${with_system_libunwind+set}" = set; then
11845 withval
="$with_system_libunwind"
11849 # --------------------------------------------------------
11850 # Build, host, and target specific configuration fragments
11851 # --------------------------------------------------------
11853 # Collect build-machine-specific information.
11854 .
${srcdir}/config.build
11856 # Collect host-machine-specific information.
11857 .
${srcdir}/config.
host
11861 # Collect target-machine-specific information.
11862 .
${srcdir}/config.gcc
11864 extra_objs
="${host_extra_objs} ${extra_objs}"
11865 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11867 # Default the target-machine variables that were not explicitly set.
11868 if test x
"$tm_file" = x
11869 then tm_file
=$cpu_type/$cpu_type.h
; fi
11871 if test x
"$extra_headers" = x
11872 then extra_headers
=; fi
11874 if test x
$md_file = x
11875 then md_file
=$cpu_type/$cpu_type.md
; fi
11877 if test x
$out_file = x
11878 then out_file
=$cpu_type/$cpu_type.c
; fi
11880 if test x
"$tmake_file" = x
11881 then tmake_file
=$cpu_type/t-
$cpu_type
11884 if test x
"$dwarf2" = xyes
11885 then tm_file
="$tm_file tm-dwarf2.h"
11888 # Say what files are being used for the output code and MD file.
11889 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11890 echo "Using \`$srcdir/config/$md_file' as machine description file."
11892 # If any of the xm_file variables contain nonexistent files, warn
11893 # about them and drop them.
11896 for x
in $build_xm_file; do
11897 if test -f $srcdir/config
/$x
11899 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11900 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11903 build_xm_file
="$bx"
11906 for x
in $host_xm_file; do
11907 if test -f $srcdir/config
/$x
11909 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11910 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11916 for x
in $xm_file; do
11917 if test -f $srcdir/config
/$x
11919 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11920 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11926 for f
in $tm_file; do
11929 if test $count = ax
; then
11930 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11932 echo "Using the following target machine macro files:"
11933 for f
in $tm_file; do
11934 echo " $srcdir/config/$f"
11938 if test x
$need_64bit_hwint = xyes
; then
11940 cat >>confdefs.h
<<\_ACEOF
11941 #define NEED_64BIT_HOST_WIDE_INT 1
11946 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11948 cat >>confdefs.h
<<\_ACEOF
11949 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11955 for f
in $host_xm_file; do
11958 if test $count = a
; then
11960 elif test $count = ax
; then
11961 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11963 echo "Using the following host machine macro files:"
11964 for f
in $host_xm_file; do
11965 echo " $srcdir/config/$f"
11968 echo "Using ${out_host_hook_obj} for host machine hooks."
11970 if test "$host_xm_file" != "$build_xm_file"; then
11972 for f
in $build_xm_file; do
11975 if test $count = a
; then
11977 elif test $count = ax
; then
11978 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11980 echo "Using the following build machine macro files:"
11981 for f
in $build_xm_file; do
11982 echo " $srcdir/config/$f"
11991 # Check if a valid thread package
11992 case ${enable_threads} in
11995 target_thread_file
='single'
11999 target_thread_file
='single'
12001 aix | dce | gnat | irix | posix | posix95 | rtems | \
12002 single | solaris | vxworks | win32
)
12003 target_thread_file
=${enable_threads}
12006 echo "${enable_threads} is an unknown thread package" 1>&2
12011 if test x
${thread_file} = x
; then
12012 # No thread file set by target-specific clauses in config.gcc,
12013 # so use file chosen by default logic above
12014 thread_file
=${target_thread_file}
12017 # Make gthr-default.h if we have a thread file.
12019 if test $thread_file != single
; then
12020 rm -f gthr-default.h
12021 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12022 gthread_flags
=-DHAVE_GTHR_DEFAULT
12031 if test x
$enable___cxa_atexit = xyes || \
12032 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12033 if test x
$host = x
$target; then
12034 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12035 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12036 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12039 cat >conftest.
$ac_ext <<_ACEOF
12042 cat confdefs.h
>>conftest.
$ac_ext
12043 cat >>conftest.
$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12045 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12047 #define __cxa_atexit innocuous___cxa_atexit
12049 /* System header to define __stub macros and hopefully few prototypes,
12050 which can conflict with char __cxa_atexit (); below.
12051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12052 <limits.h> exists even on freestanding compilers. */
12055 # include <limits.h>
12057 # include <assert.h>
12060 #undef __cxa_atexit
12062 /* Override any gcc2 internal prototype to avoid an error. */
12067 /* We use char because int might match the return type of a gcc2
12068 builtin and then its argument prototype would still apply. */
12069 char __cxa_atexit ();
12070 /* The GNU C library defines this for functions which it implements
12071 to always fail with ENOSYS. Some functions are actually named
12072 something starting with __ and the normal name is an alias. */
12073 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12076 char (*f) () = __cxa_atexit;
12085 return f != __cxa_atexit;
12090 rm -f conftest.
$ac_objext conftest
$ac_exeext
12091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12092 (eval $ac_link) 2>conftest.er1
12094 grep -v '^ *+' conftest.er1
>conftest.err
12096 cat conftest.err
>&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } &&
12099 { ac_try
='test -z "$ac_c_werror_flag"
12100 || test ! -s conftest.err'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; } &&
12106 { ac_try
='test -s conftest$ac_exeext'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
12112 ac_cv_func___cxa_atexit
=yes
12114 echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.
$ac_ext >&5
12117 ac_cv_func___cxa_atexit
=no
12119 rm -f conftest.err conftest.
$ac_objext \
12120 conftest
$ac_exeext conftest.
$ac_ext
12122 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12123 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12124 if test $ac_cv_func___cxa_atexit = yes; then
12127 echo "__cxa_atexit can't be enabled on this target"
12131 # We can't check for __cxa_atexit when building a cross, so assume
12135 if test x
$use_cxa_atexit = xyes
; then
12137 cat >>confdefs.h
<<\_ACEOF
12138 #define DEFAULT_USE_CXA_ATEXIT 1
12144 # Look for a file containing extra machine modes.
12145 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12146 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12149 cat >>confdefs.h
<<_ACEOF
12150 #define EXTRA_MODES_FILE "config/$extra_modes"
12155 # Convert extra_options into a form suitable for Makefile use.
12157 for f
in $extra_options; do
12158 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12162 # auto-host.h is the file containing items generated by autoconf and is
12163 # the first file included by config.h.
12164 # If host=build, it is correct to have bconfig include auto-host.h
12165 # as well. If host!=build, we are in error and need to do more
12166 # work to find out the build config parameters.
12167 if test x
$host = x
$build
12169 build_auto
=auto-host.h
12171 # We create a subdir, then run autoconf in the subdir.
12172 # To prevent recursion we set host and build for the new
12173 # invocation of configure to the build for this invocation
12180 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12181 *) realsrcdir
=..
/${srcdir};;
12183 saved_CFLAGS
="${CFLAGS}"
12184 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12185 ${realsrcdir}/configure \
12186 --enable-languages=${enable_languages-all} \
12187 --target=$target_alias --host=$build_alias --build=$build_alias
12188 CFLAGS
="${saved_CFLAGS}"
12190 # We just finished tests for the build machine, so rename
12191 # the file auto-build.h in the gcc directory.
12192 mv auto-host.h ..
/auto-build.h
12195 build_auto
=auto-build.h
12199 tm_file
="${tm_file} defaults.h"
12200 tm_p_file
="${tm_p_file} tm-preds.h"
12201 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12202 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12203 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12204 # put this back in temporarily.
12205 xm_file
="ansidecl.h ${xm_file}"
12211 # Compile in configure arguments.
12212 if test -f configargs.h
; then
12213 # Being re-configured.
12214 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12215 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12217 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12220 # Double all backslashes and backslash all quotes to turn
12221 # gcc_config_arguments into a C string.
12222 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12223 $gcc_config_arguments
12225 gcc_config_arguments_str
=`cat conftest.out`
12228 cat > configargs.h
<<EOF
12229 /* Generated automatically. */
12230 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12231 static const char thread_model[] = "$thread_file";
12233 static const struct {
12234 const char *name, *value;
12235 } configure_default_options[] = $configure_default_options;
12238 # Internationalization
12239 # If we haven't got the data from the intl directory,
12240 # assume NLS is disabled.
12248 if test -f ..
/intl
/config.intl
; then
12249 . ..
/intl
/config.intl
12251 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12252 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12253 if test x
"$USE_NLS" != xyes
; then
12254 echo "$as_me:$LINENO: result: no" >&5
12255 echo "${ECHO_T}no" >&6
12257 echo "$as_me:$LINENO: result: yes" >&5
12258 echo "${ECHO_T}yes" >&6
12260 cat >>confdefs.h
<<\_ACEOF
12261 #define ENABLE_NLS 1
12265 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12266 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12267 # Look for .po and .gmo files in the source directory.
12270 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12271 # If there aren't any .gmo files the shell will give us the
12272 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12274 case "$cat" in *\
**)
12277 # The quadruple backslash is collapsed to a double backslash
12278 # by the backticks, then collapsed again by the double quotes,
12279 # leaving us with one backslash in the sed expression (right
12280 # before the dot that mustn't act as a wildcard).
12281 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12282 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12283 # The user is allowed to set LINGUAS to a list of languages to
12284 # install catalogs for. If it's empty that means "all of them."
12285 if test "x$LINGUAS" = x
; then
12286 CATALOGS
="$CATALOGS $cat"
12287 XLINGUAS
="$XLINGUAS $lang"
12289 case "$LINGUAS" in *$lang*)
12290 CATALOGS
="$CATALOGS $cat"
12291 XLINGUAS
="$XLINGUAS $lang"
12296 LINGUAS
="$XLINGUAS"
12297 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12298 echo "${ECHO_T}$LINGUAS" >&6
12301 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12302 # -liconv on the link line twice.
12303 case "$LIBINTL" in *$LIBICONV*)
12307 # Windows32 Registry support for specifying GCC installation paths.
12308 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12309 if test "${enable_win32_registry+set}" = set; then
12310 enableval
="$enable_win32_registry"
12315 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12316 if test "x$enable_win32_registry" != xno
; then
12317 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12318 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12319 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 ac_func_search_save_LIBS
=$LIBS
12323 ac_cv_search_RegOpenKeyExA
=no
12324 cat >conftest.
$ac_ext <<_ACEOF
12327 cat confdefs.h
>>conftest.
$ac_ext
12328 cat >>conftest.
$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12331 /* Override any gcc2 internal prototype to avoid an error. */
12335 /* We use char because int might match the return type of a gcc2
12336 builtin and then its argument prototype would still apply. */
12337 char RegOpenKeyExA ();
12346 rm -f conftest.
$ac_objext conftest
$ac_exeext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12348 (eval $ac_link) 2>conftest.er1
12350 grep -v '^ *+' conftest.er1
>conftest.err
12352 cat conftest.err
>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try
='test -z "$ac_c_werror_flag"
12356 || test ! -s conftest.err'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; } &&
12362 { ac_try
='test -s conftest$ac_exeext'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; }; then
12368 ac_cv_search_RegOpenKeyExA
="none required"
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.
$ac_ext >&5
12374 rm -f conftest.err conftest.
$ac_objext \
12375 conftest
$ac_exeext conftest.
$ac_ext
12376 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12377 for ac_lib
in advapi32
; do
12378 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12379 cat >conftest.
$ac_ext <<_ACEOF
12382 cat confdefs.h
>>conftest.
$ac_ext
12383 cat >>conftest.
$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12386 /* Override any gcc2 internal prototype to avoid an error. */
12390 /* We use char because int might match the return type of a gcc2
12391 builtin and then its argument prototype would still apply. */
12392 char RegOpenKeyExA ();
12401 rm -f conftest.
$ac_objext conftest
$ac_exeext
12402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12403 (eval $ac_link) 2>conftest.er1
12405 grep -v '^ *+' conftest.er1
>conftest.err
12407 cat conftest.err
>&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } &&
12410 { ac_try
='test -z "$ac_c_werror_flag"
12411 || test ! -s conftest.err'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; } &&
12417 { ac_try
='test -s conftest$ac_exeext'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; }; then
12423 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.
$ac_ext >&5
12430 rm -f conftest.err conftest.
$ac_objext \
12431 conftest
$ac_exeext conftest.
$ac_ext
12434 LIBS
=$ac_func_search_save_LIBS
12436 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12437 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12438 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12439 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12442 enable_win32_registry
=no
12447 if test "x$enable_win32_registry" != xno
; then
12449 cat >>confdefs.h
<<\_ACEOF
12450 #define ENABLE_WIN32_REGISTRY 1
12454 if test "x$enable_win32_registry" != xyes \
12455 && test "x$enable_win32_registry" != x
; then
12457 cat >>confdefs.h
<<_ACEOF
12458 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12466 # Get an absolute path to the GCC top-level source directory
12467 holddir
=`${PWDCMD-pwd}`
12469 topdir
=`${PWDCMD-pwd}`
12472 # Conditionalize the makefile for this host machine.
12474 for f
in ${host_xmake_file}
12476 if test -f ${srcdir}/config
/$f
12478 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12482 # Conditionalize the makefile for this target machine.
12484 for f
in ${tmake_file}
12486 if test -f ${srcdir}/config
/$f
12488 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12491 tmake_file
="${tmake_file_}"
12493 # If the host doesn't support symlinks, modify CC in
12494 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12495 # Otherwise, we can use "CC=$(CC)".
12499 cc_set_by_configure
="\$(CC)"
12500 quoted_cc_set_by_configure
="\$(CC)"
12501 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12502 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12505 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12506 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12507 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12508 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12512 # This is a terrible hack which will go away some day.
12513 host_cc_for_libada
=${CC}
12516 out_object_file
=`basename $out_file .c`.o
12518 tm_file_list
="options.h"
12519 tm_include_list
="options.h"
12520 for f
in $tm_file; do
12523 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12524 tm_include_list
="${tm_include_list} $f"
12527 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12528 tm_include_list
="${tm_include_list} config/$f"
12535 for f
in $tm_p_file; do
12538 tm_p_file_list
="${tm_p_file_list} $f"
12539 tm_p_include_list
="${tm_p_include_list} $f"
12542 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12543 tm_p_include_list
="${tm_p_include_list} config/$f"
12549 for f
in $xm_file; do
12552 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12553 xm_include_list
="${xm_include_list} $f"
12556 xm_file_list
="${xm_file_list} $f"
12557 xm_include_list
="${xm_include_list} $f"
12560 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12561 xm_include_list
="${xm_include_list} config/$f"
12567 host_xm_include_list
=
12568 for f
in $host_xm_file; do
12571 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12572 host_xm_include_list
="${host_xm_include_list} $f"
12575 host_xm_file_list
="${host_xm_file_list} $f"
12576 host_xm_include_list
="${host_xm_include_list} $f"
12579 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12580 host_xm_include_list
="${host_xm_include_list} config/$f"
12585 build_xm_file_list
=
12586 for f
in $build_xm_file; do
12589 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12590 build_xm_include_list
="${build_xm_include_list} $f"
12592 auto-build.h | auto-host.h
)
12593 build_xm_file_list
="${build_xm_file_list} $f"
12594 build_xm_include_list
="${build_xm_include_list} $f"
12597 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12598 build_xm_include_list
="${build_xm_include_list} config/$f"
12603 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12604 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12607 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12608 if test x
$host != x
$target
12610 CROSS
="-DCROSS_COMPILE"
12612 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12613 case "$host","$target" in
12614 # Darwin crosses can use the host system's libraries and headers,
12615 # because of the fat library support. Of course, it must be the
12616 # same version of Darwin on both sides. Allow the user to
12617 # just say --target=foo-darwin without a version number to mean
12618 # "the version on this system".
12619 *-*-darwin*,*-*-darwin*)
12620 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12621 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12622 if test $hostos = $targetos -o $targetos = darwin
; then
12624 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12629 i?
86-*-*,x86_64-
*-* \
12630 | powerpc
*-*-*,powerpc64
*-*-*)
12631 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12633 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12634 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12635 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12638 # If this is a cross-compiler that does not
12639 # have its own set of headers then define
12642 # If this is using newlib, without having the headers available now,
12643 # then define inhibit_libc in LIBGCC2_CFLAGS.
12644 # This prevents libgcc2 from containing any code which requires libc
12647 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12648 test x
$with_newlib = xyes
; } &&
12649 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12650 inhibit_libc
=-Dinhibit_libc
12654 # When building gcc with a cross-compiler, we need to adjust things so
12655 # that the generator programs are still built with the native compiler.
12656 # Also, we cannot run fixincludes or fix-header.
12658 # These are the normal (build=host) settings:
12659 CC_FOR_BUILD
='$(CC)'
12660 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12661 STMP_FIXINC
=stmp-fixinc
12663 # Possibly disable fixproto, on a per-target basis.
12664 case ${use_fixproto} in
12669 STMP_FIXPROTO
=stmp-fixproto
12674 # And these apply if build != host, or we are generating coverage data
12675 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12677 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12679 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12680 if "x$STMP_FIXPROTO" != x
; then
12681 STMP_FIXPROTO
=stmp-install-fixproto
12686 # Expand extra_headers to include complete path.
12687 # This substitutes for lots of t-* files.
12688 extra_headers_list
=
12689 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12690 for file in ${extra_headers} ; do
12691 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12694 # Define collect2 in Makefile.
12695 case $host_can_use_collect2 in
12697 *) collect2
='collect2$(exeext)' ;;
12701 # Add a definition of USE_COLLECT2 if system wants one.
12702 case $use_collect2 in
12703 no
) use_collect2
= ;;
12706 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12707 xm_defines
="${xm_defines} USE_COLLECT2"
12708 case $host_can_use_collect2 in
12710 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12711 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12712 { (exit 1); exit 1; }; }
12718 # ---------------------------
12719 # Assembler & linker features
12720 # ---------------------------
12722 # Identify the assembler which will work hand-in-glove with the newly
12723 # built GCC, so that we can examine its features. This is the assembler
12724 # which will be driven by the driver program.
12726 # If build != host, and we aren't building gas in-tree, we identify a
12727 # build->target assembler and hope that it will have the same features
12728 # as the host->target assembler we'll be using.
12729 echo "$as_me:$LINENO: checking what assembler to use" >&5
12730 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12733 gcc_cv_gas_major_version
=
12734 gcc_cv_gas_minor_version
=
12735 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12736 if test -x "$DEFAULT_ASSEMBLER"; then
12737 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12738 elif test -x as
$build_exeext; then
12739 # Build using assembler in the current directory.
12740 gcc_cv_as
=.
/as
$build_exeext
12741 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12742 && test -f ..
/gas
/Makefile \
12743 && test x
$build = x
$host; then
12744 # Single tree build which includes gas. We want to prefer it
12745 # over whatever linker top-level may have detected, since
12746 # we'll use what we're building after installation anyway.
12748 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12749 for f
in $gcc_cv_as_bfd_srcdir/configure \
12750 $gcc_cv_as_gas_srcdir/configure \
12751 $gcc_cv_as_gas_srcdir/configure.
in \
12752 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12753 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12754 if test x
$gcc_cv_gas_version != x
; then
12758 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12759 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12760 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12761 case $gcc_cv_gas_patch_version in
12762 "") gcc_cv_gas_patch_version
="0" ;;
12764 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12765 + $gcc_cv_gas_minor_version \) \* 1000 \
12766 + $gcc_cv_gas_patch_version`
12768 rm -f as
$build_exeext
12769 $LN_S ..
/gas
/as-new
$build_exeext as
$build_exeext 2>/dev
/null
12770 in_tree_gas_is_elf
=no
12771 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12772 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12773 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12775 in_tree_gas_is_elf
=yes
12777 elif test -x "$AS_FOR_TARGET"; then
12778 gcc_cv_as
="$AS_FOR_TARGET"
12779 elif test -x "$AS" && test x
$host = x
$target; then
12783 gcc_version
=`cat $srcdir/BASE-VER`
12785 if test "x$gcc_cv_as" = x
; then
12786 # Search the same directories that the installed compiler will
12787 # search. Else we may find the wrong assembler and lose. If we
12788 # do not find a suitable assembler binary, then try the user's
12791 # Also note we have to check MD_EXEC_PREFIX before checking the
12792 # user's path. Unfortunately, there is no good way to get at the
12793 # value of MD_EXEC_PREFIX here. So we do a brute force search
12794 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12795 # to be fixed as part of the make/configure rewrite too.
12797 if test "x$exec_prefix" = xNONE
; then
12798 if test "x$prefix" = xNONE
; then
12799 test_prefix
=/usr
/local
12801 test_prefix
=$prefix
12804 test_prefix
=$exec_prefix
12807 # If the loop below does not find an assembler, then use whatever
12808 # one we can find in the users's path. We are looking for a
12809 # ${build} -> ${target} assembler.
12810 if test "x$program_prefix" != xNONE
; then
12811 gcc_cv_as
=${program_prefix}as
$build_exeext
12812 elif test x
$build != x
$host && test x
$build != x
$target; then
12813 gcc_cv_as
=${target_noncanonical}-as$build_exeext
12815 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$build_exeext
12818 if test x
$host = x
$build; then
12819 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12820 $test_prefix/libexec/gcc/$target_noncanonical \
12821 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12822 /usr/lib/gcc/$target_noncanonical \
12823 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12824 $test_prefix/$target_noncanonical/bin"
12829 if test x
$build = x
$target; then
12830 test_dirs
="$test_dirs \
12835 /bsd43/usr/lib/cmplrs/cc \
12836 /usr/cross64/usr/bin \
12837 /usr/lib/cmplrs/cc \
12838 /sysv/usr/lib/cmplrs/cc \
12839 /svr4/usr/lib/cmplrs/cc \
12843 for dir
in $test_dirs; do
12844 if test -x $dir/as
$build_exeext; then
12845 gcc_cv_as
=$dir/as
$build_exeext
12850 case $in_tree_gas in
12852 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12853 echo "${ECHO_T}\"newly built gas\"" >&6
12856 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12857 echo "${ECHO_T}$gcc_cv_as" >&6
12861 # Identify the linker which will work hand-in-glove with the newly
12862 # built GCC, so that we can examine its features. This is the linker
12863 # which will be driven by the driver program.
12865 # If build != host, and we aren't building gas in-tree, we identify a
12866 # build->target linker and hope that it will have the same features
12867 # as the host->target linker we'll be using.
12868 echo "$as_me:$LINENO: checking what linker to use" >&5
12869 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12872 gcc_cv_gld_major_version
=
12873 gcc_cv_gld_minor_version
=
12874 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12875 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12876 if test -x "$DEFAULT_LINKER"; then
12877 gcc_cv_ld
="$DEFAULT_LINKER"
12878 elif test -x collect-ld
$build_exeext; then
12879 # Build using linker in the current directory.
12880 gcc_cv_ld
=.
/collect-ld
$build_exeext
12881 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
12882 && test -f ..
/ld
/Makefile \
12883 && test x
$build = x
$host; then
12884 # Single tree build which includes ld. We want to prefer it
12885 # over whatever linker top-level may have detected, since
12886 # we'll use what we're building after installation anyway.
12888 in_tree_ld_is_elf
=no
12889 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
12890 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
12891 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
12892 in_tree_ld_is_elf
=yes
12894 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
12896 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12897 if test x
$gcc_cv_gld_version != x
; then
12901 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12902 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12903 rm -f collect-ld
$build_exeext
12904 $LN_S ..
/ld
/ld-new
$build_exeext collect-ld
$build_exeext 2>/dev
/null
12905 elif test -x "$LD_FOR_TARGET"; then
12906 gcc_cv_ld
="$LD_FOR_TARGET"
12907 elif test -x "$LD" && test x
$host = x
$target; then
12911 if test "x$gcc_cv_ld" = x
; then
12912 # Search the same directories that the installed compiler will
12913 # search. Else we may find the wrong linker and lose. If we
12914 # do not find a suitable linker binary, then try the user's
12917 # Also note we have to check MD_EXEC_PREFIX before checking the
12918 # user's path. Unfortunately, there is no good way to get at the
12919 # value of MD_EXEC_PREFIX here. So we do a brute force search
12920 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12921 # to be fixed as part of the make/configure rewrite too.
12923 if test "x$exec_prefix" = xNONE
; then
12924 if test "x$prefix" = xNONE
; then
12925 test_prefix
=/usr
/local
12927 test_prefix
=$prefix
12930 test_prefix
=$exec_prefix
12933 # If the loop below does not find a linker, then use whatever
12934 # one we can find in the users's path. We are looking for a
12935 # ${build} -> ${target} linker.
12936 if test "x$program_prefix" != xNONE
; then
12937 gcc_cv_ld
=${program_prefix}ld
$build_exeext
12938 elif test x
$build != x
$host && test x
$build != x
$target; then
12939 gcc_cv_ld
=${target_noncanonical}-ld$build_exeext
12941 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$build_exeext
12944 if test x
$host = x
$build; then
12945 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12946 $test_prefix/libexec/gcc/$target_noncanonical \
12947 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12948 /usr/lib/gcc/$target_noncanonical \
12949 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12950 $test_prefix/$target_noncanonical/bin"
12955 if test x
$build = x
$target; then
12956 test_dirs
="$test_dirs \
12961 /bsd43/usr/lib/cmplrs/cc \
12962 /usr/cross64/usr/bin \
12963 /usr/lib/cmplrs/cc \
12964 /sysv/usr/lib/cmplrs/cc \
12965 /svr4/usr/lib/cmplrs/cc \
12969 for dir
in $test_dirs; do
12970 if test -x $dir/ld
$build_exeext; then
12971 gcc_cv_ld
=$dir/ld
$build_exeext
12976 case $in_tree_ld in
12978 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12979 echo "${ECHO_T}\"newly built ld\"" >&6
12982 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12983 echo "${ECHO_T}$gcc_cv_ld" >&6
12987 # Figure out what nm we will be using.
12988 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12989 echo "$as_me:$LINENO: checking what nm to use" >&5
12990 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12992 if test -x nm
$build_exeext; then
12993 gcc_cv_nm
=.
/nm
$build_exeext
12994 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
12995 && test -f ..
/binutils
/Makefile
; then
12996 # Single tree build which includes binutils.
12998 gcc_cv_nm
=.
/nm
$build_exeext
12999 rm -f nm
$build_exeext
13000 $LN_S ..
/binutils
/nm-new
$build_exeext nm
$build_exeext 2>/dev
/null
13001 elif test "x$program_prefix" != xNONE
; then
13002 gcc_cv_nm
=${program_prefix}nm
$build_exeext
13003 elif test x
$build != x
$host && test x
$build != x
$target; then
13004 gcc_cv_nm
=${target_noncanonical}-nm$build_exeext
13006 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$build_exeext
13008 case $in_tree_nm in
13009 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13010 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13011 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13012 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13015 # Figure out what objdump we will be using.
13016 echo "$as_me:$LINENO: checking what objdump to use" >&5
13017 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13019 if test -x objdump
$build_exeext; then
13020 gcc_cv_objdump
=.
/objdump
$build_exeext
13021 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13022 && test -f ..
/binutils
/Makefile
; then
13023 # Single tree build which includes binutils.
13024 in_tree_objdump
=yes
13025 gcc_cv_objdump
=.
/objdump
$build_exeext
13026 rm -f objdump
$build_exeext
13027 $LN_S ..
/binutils
/objdump
$build_exeext objdump
$build_exeext 2>/dev
/null
13028 elif test "x$program_prefix" != xNONE
; then
13029 gcc_cv_objdump
=${program_prefix}objdump
$build_exeext
13030 elif test x
$build != x
$host && test x
$build != x
$target; then
13031 gcc_cv_objdump
=${target_noncanonical}-objdump$build_exeext
13033 gcc_cv_objdump
=`echo objdump | \
13034 sed "${program_transform_name}"`$build_exeext
13036 case $in_tree_objdump in
13037 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13038 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13039 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13040 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13043 # Figure out what assembler alignment features are present.
13044 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13045 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13046 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 gcc_cv_as_balign_and_p2align
=no
13050 if test $in_tree_gas = yes; then
13051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13052 then gcc_cv_as_balign_and_p2align
=yes
13054 elif test x
$gcc_cv_as != x
; then
13056 .p2align 2' > conftest.s
13057 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }
13064 gcc_cv_as_balign_and_p2align
=yes
13066 echo "configure: failed program was" >&5
13069 rm -f conftest.o conftest.s
13072 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13073 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13074 if test $gcc_cv_as_balign_and_p2align = yes; then
13076 cat >>confdefs.h
<<\_ACEOF
13077 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13082 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13083 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13084 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 gcc_cv_as_max_skip_p2align
=no
13088 if test $in_tree_gas = yes; then
13089 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13090 then gcc_cv_as_max_skip_p2align
=yes
13092 elif test x
$gcc_cv_as != x
; then
13093 echo '.p2align 4,,7' > conftest.s
13094 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; }
13101 gcc_cv_as_max_skip_p2align
=yes
13103 echo "configure: failed program was" >&5
13106 rm -f conftest.o conftest.s
13109 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13110 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13111 if test $gcc_cv_as_max_skip_p2align = yes; then
13113 cat >>confdefs.h
<<\_ACEOF
13114 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13119 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13120 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13121 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13124 gcc_cv_as_subsection_m1
=no
13125 if test $in_tree_gas = yes; then
13126 if test $in_tree_gas_is_elf = yes \
13127 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13128 then gcc_cv_as_subsection_m1
=yes
13130 elif test x
$gcc_cv_as != x
; then
13131 echo 'conftest_label1: .word 0
13133 conftest_label2: .word 0
13134 .previous' > conftest.s
13135 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }
13142 if test x
$gcc_cv_nm != x
; then
13143 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13144 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13145 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13147 else gcc_cv_as_subsection_m1
=yes
13149 rm -f conftest.nm1 conftest.nm2
13152 echo "configure: failed program was" >&5
13155 rm -f conftest.o conftest.s
13158 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13159 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13160 if test $gcc_cv_as_subsection_m1 = yes; then
13162 cat >>confdefs.h
<<\_ACEOF
13163 #define HAVE_GAS_SUBSECTION_ORDERING 1
13168 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13169 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13170 if test "${gcc_cv_as_weak+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 if test $in_tree_gas = yes; then
13175 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13176 then gcc_cv_as_weak
=yes
13178 elif test x
$gcc_cv_as != x
; then
13179 echo ' .weak foobar' > conftest.s
13180 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }
13189 echo "configure: failed program was" >&5
13192 rm -f conftest.o conftest.s
13195 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13196 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13197 if test $gcc_cv_as_weak = yes; then
13199 cat >>confdefs.h
<<\_ACEOF
13200 #define HAVE_GAS_WEAK 1
13205 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13206 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13207 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13210 gcc_cv_as_nsubspa_comdat
=no
13211 if test $in_tree_gas = yes; then
13212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13213 then gcc_cv_as_nsubspa_comdat
=yes
13215 elif test x
$gcc_cv_as != x
; then
13216 echo ' .SPACE $TEXT$
13217 .NSUBSPA $CODE$,COMDAT' > conftest.s
13218 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }
13225 gcc_cv_as_nsubspa_comdat
=yes
13227 echo "configure: failed program was" >&5
13230 rm -f conftest.o conftest.s
13233 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13234 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13235 if test $gcc_cv_as_nsubspa_comdat = yes; then
13237 cat >>confdefs.h
<<\_ACEOF
13238 #define HAVE_GAS_NSUBSPA_COMDAT 1
13243 # .hidden needs to be supported in both the assembler and the linker,
13244 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13245 # This is irritatingly difficult to feature test for; we have to check the
13246 # date string after the version number. If we've got an in-tree
13247 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13249 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13250 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13251 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13252 if test "${gcc_cv_as_hidden+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 gcc_cv_as_hidden
=no
13256 if test $in_tree_gas = yes; then
13257 if test $in_tree_gas_is_elf = yes \
13258 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13259 then gcc_cv_as_hidden
=yes
13261 elif test x
$gcc_cv_as != x
; then
13262 echo ' .hidden foobar
13263 foobar:' > conftest.s
13264 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; }
13271 gcc_cv_as_hidden
=yes
13273 echo "configure: failed program was" >&5
13276 rm -f conftest.o conftest.s
13279 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13280 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13283 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13284 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13285 if test "${gcc_cv_ld_hidden+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 if test $in_tree_ld = yes ; then
13289 gcc_cv_ld_hidden
=no
13290 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 \
13291 && test $in_tree_ld_is_elf = yes; then
13292 gcc_cv_ld_hidden
=yes
13295 gcc_cv_ld_hidden
=yes
13296 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13297 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13298 ld_vers
=`echo $ld_ver | sed -n \
13299 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13300 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13301 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13302 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13303 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13304 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13305 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'`
13306 if test 0"$ld_date" -lt 20020404; then
13307 if test -n "$ld_date"; then
13308 # If there was date string, but was earlier than 2002-04-04, fail
13309 gcc_cv_ld_hidden
=no
13310 elif test -z "$ld_vers"; then
13311 # If there was no date string nor ld version number, something is wrong
13312 gcc_cv_ld_hidden
=no
13314 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13315 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13316 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13317 test -z "$ld_vers_patch" && ld_vers_patch
=0
13318 if test "$ld_vers_major" -lt 2; then
13319 gcc_cv_ld_hidden
=no
13320 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13321 gcc_cv_ld_hidden
="no"
13322 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13323 gcc_cv_ld_hidden
=no
13328 case "${target}" in
13329 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13330 gcc_cv_ld_hidden
=yes
13333 gcc_cv_ld_hidden
=no
13339 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13340 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13341 libgcc_visibility
=no
13343 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13344 libgcc_visibility
=yes
13346 cat >>confdefs.h
<<\_ACEOF
13347 #define HAVE_GAS_HIDDEN 1
13352 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13353 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13354 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13355 if test "${gcc_cv_as_leb128+set}" = set; then
13356 echo $ECHO_N "(cached) $ECHO_C" >&6
13358 gcc_cv_as_leb128
=no
13359 if test $in_tree_gas = yes; then
13360 if test $in_tree_gas_is_elf = yes \
13361 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13362 then gcc_cv_as_leb128
=yes
13364 elif test x
$gcc_cv_as != x
; then
13371 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }
13378 # GAS versions before 2.11 do not support uleb128,
13379 # despite appearing to.
13380 # ??? There exists an elf-specific test that will crash
13381 # the assembler. Perhaps it's better to figure out whether
13382 # arbitrary sections are supported and try the test.
13383 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13384 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13385 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13386 as_major
=`echo $as_ver | sed 's/\..*//'`
13387 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13388 if test $as_major -eq 2 && test $as_minor -lt 11
13390 else gcc_cv_as_leb128
=yes
13394 echo "configure: failed program was" >&5
13397 rm -f conftest.o conftest.s
13400 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13401 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13402 if test $gcc_cv_as_leb128 = yes; then
13404 cat >>confdefs.h
<<\_ACEOF
13405 #define HAVE_AS_LEB128 1
13410 # GAS versions up to and including 2.11.0 may mis-optimize
13412 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13413 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13414 if test "${gcc_cv_as_eh_frame+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13417 gcc_cv_as_eh_frame
=no
13418 if test $in_tree_gas = yes; then
13419 if test $in_tree_gas_is_elf = yes \
13420 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13421 then gcc_cv_as_eh_frame
=yes
13423 elif test x
$gcc_cv_as != x
; then
13430 .section .eh_frame,"aw",@progbits
13432 .4byte .LECIE1-.LSCIE1
13446 .4byte .LEFDE1-.LASFDE1
13448 .4byte .LASFDE1-__FRAME_BEGIN__
13455 .LEFDE1:' > conftest.s
13456 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }
13463 cat > conftest.lit
<<EOF
13464 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13465 0010 01000000 12000000 18000000 00000000 ................
13466 0020 08000000 04080000 0044 .........D
13468 cat > conftest.big
<<EOF
13469 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13470 0010 00000001 00000012 00000018 00000000 ................
13471 0020 00000008 04000000 0844 .........D
13473 # If the assembler didn't choke, and we can objdump,
13474 # and we got the correct data, then succeed.
13475 if test x
$gcc_cv_objdump != x \
13476 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13477 |
tail -3 > conftest.got \
13478 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13479 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13481 gcc_cv_as_eh_frame
=yes
13482 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
13488 gcc_cv_as_eh_frame
=buggy
13490 # Uh oh, what do we do now?
13491 gcc_cv_as_eh_frame
=no
13494 echo "configure: failed program was" >&5
13497 rm -f conftest.o conftest.s
13500 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13501 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13504 if test $gcc_cv_as_eh_frame = buggy
; then
13506 cat >>confdefs.h
<<\_ACEOF
13507 #define USE_AS_TRADITIONAL_FORMAT 1
13512 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13513 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13514 if test "${gcc_cv_as_shf_merge+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13517 gcc_cv_as_shf_merge
=no
13518 if test $in_tree_gas = yes; then
13519 if test $in_tree_gas_is_elf = yes \
13520 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13521 then gcc_cv_as_shf_merge
=yes
13523 elif test x
$gcc_cv_as != x
; then
13524 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13525 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }
13532 gcc_cv_as_shf_merge
=yes
13534 echo "configure: failed program was" >&5
13537 rm -f conftest.o conftest.s
13540 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13541 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13543 if test $gcc_cv_as_shf_merge = no
; then
13544 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13545 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13546 if test "${gcc_cv_as_shf_merge+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 gcc_cv_as_shf_merge
=no
13550 if test $in_tree_gas = yes; then
13551 if test $in_tree_gas_is_elf = yes \
13552 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13553 then gcc_cv_as_shf_merge
=yes
13555 elif test x
$gcc_cv_as != x
; then
13556 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13557 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }
13564 gcc_cv_as_shf_merge
=yes
13566 echo "configure: failed program was" >&5
13569 rm -f conftest.o conftest.s
13572 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13573 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13577 cat >>confdefs.h
<<_ACEOF
13578 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13582 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13583 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13584 if test "${gcc_cv_as_comdat_group+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 gcc_cv_as_comdat_group
=no
13588 if test $in_tree_gas = yes; then
13589 if test $in_tree_gas_is_elf = yes \
13590 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13591 then gcc_cv_as_comdat_group
=yes
13593 elif test x
$gcc_cv_as != x
; then
13594 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13595 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; }
13602 gcc_cv_as_comdat_group
=yes
13604 echo "configure: failed program was" >&5
13607 rm -f conftest.o conftest.s
13610 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13611 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13613 if test $gcc_cv_as_comdat_group = yes; then
13614 gcc_cv_as_comdat_group_percent
=no
13616 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13617 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13618 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13621 gcc_cv_as_comdat_group_percent
=no
13622 if test $in_tree_gas = yes; then
13623 if test $in_tree_gas_is_elf = yes \
13624 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13625 then gcc_cv_as_comdat_group_percent
=yes
13627 elif test x
$gcc_cv_as != x
; then
13628 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13629 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }
13636 gcc_cv_as_comdat_group_percent
=yes
13638 echo "configure: failed program was" >&5
13641 rm -f conftest.o conftest.s
13644 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13645 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13649 cat >>confdefs.h
<<_ACEOF
13650 #define HAVE_GAS_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
13654 # Thread-local storage - the check is heavily parametrized.
13662 .section ".tdata","awT",@progbits
13665 ldq $27,__tls_get_addr($29) !literal!1
13666 lda $16,foo($29) !tlsgd!1
13667 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13668 ldq $27,__tls_get_addr($29) !literal!2
13669 lda $16,foo($29) !tlsldm!2
13670 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13671 ldq $1,foo($29) !gotdtprel
13672 ldah $2,foo($29) !dtprelhi
13673 lda $3,foo($2) !dtprello
13674 lda $4,foo($29) !dtprel
13675 ldq $1,foo($29) !gottprel
13676 ldah $2,foo($29) !tprelhi
13677 lda $3,foo($2) !tprello
13678 lda $4,foo($29) !tprel'
13681 tls_as_opt
=--fatal-warnings
13685 .section ".tdata","awT",@progbits
13688 call #gettlsoff(x)'
13694 .section ".tdata","awT",@progbits
13698 leal foo@TLSGD(,%ebx,1), %eax
13699 leal foo@TLSLDM(%ebx), %eax
13700 leal foo@DTPOFF(%eax), %edx
13701 movl foo@GOTTPOFF(%ebx), %eax
13702 subl foo@GOTTPOFF(%ebx), %eax
13703 addl foo@GOTNTPOFF(%ebx), %eax
13704 movl foo@INDNTPOFF, %eax
13705 movl $foo@TPOFF, %eax
13706 subl $foo@TPOFF, %eax
13707 leal foo@NTPOFF(%ecx), %eax'
13710 tls_as_opt
=--fatal-warnings
13714 .section ".tdata","awT",@progbits
13718 leaq foo@TLSGD(%rip), %rdi
13719 leaq foo@TLSLD(%rip), %rdi
13720 leaq foo@DTPOFF(%rax), %rdx
13721 movq foo@GOTTPOFF(%rip), %rax
13722 movq $foo@TPOFF, %rax'
13725 tls_as_opt
=--fatal-warnings
13729 .section ".tdata","awT",@progbits
13732 addl r16 = @ltoff(@dtpmod(foo#)), gp
13733 addl r17 = @ltoff(@dtprel(foo#)), gp
13734 addl r18 = @ltoff(@tprel(foo#)), gp
13735 addl r19 = @dtprel(foo#), gp
13736 adds r21 = @dtprel(foo#), r13
13737 movl r23 = @dtprel(foo#)
13738 addl r20 = @tprel(foo#), gp
13739 adds r22 = @tprel(foo#), r13
13740 movl r24 = @tprel(foo#)'
13743 tls_as_opt
=--fatal-warnings
13747 .section .tdata,"awT",@progbits
13751 addiu $4, $28, %tlsgd(x)
13752 addiu $4, $28, %tlsldm(x)
13753 lui $4, %dtprel_hi(x)
13754 addiu $4, $4, %dtprel_lo(x)
13755 lw $4, %gottprel(x)($28)
13756 lui $4, %tprel_hi(x)
13757 addiu $4, $4, %tprel_lo(x)'
13760 tls_as_opt
='-32 --fatal-warnings'
13764 .section ".tdata","awT",@progbits
13772 addi 3,31,ld0@got@tlsgd
13774 addi 3,31,x1@got@tlsld
13777 addis 9,3,x2@dtprel@ha
13778 addi 9,9,x2@dtprel@l
13779 lwz 9,x3@got@tprel(31)
13782 addis 9,2,x2@tprel@ha
13783 addi 9,9,x2@tprel@l'
13786 tls_as_opt
="-a32 --fatal-warnings"
13790 .section ".tdata","awT",@progbits
13798 addi 3,2,ld0@got@tlsgd
13804 addi 3,2,x1@got@tlsld
13810 addis 9,3,x2@dtprel@ha
13811 addi 9,9,x2@dtprel@l
13814 ld 9,x3@got@dtprel(2)
13820 tls_as_opt
="-a64 --fatal-warnings"
13824 .section ".tdata","awT",@progbits
13831 .long foo@GOTNTPOFF
13832 .long foo@INDNTPOFF
13833 l %r1,foo@GOTNTPOFF(%r12)
13834 l %r1,0(%r1):tls_load:foo
13835 bas %r14,0(%r1,%r13):tls_gdcall:foo
13836 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13839 tls_as_opt
="-m31 --fatal-warnings"
13843 .section ".tdata","awT",@progbits
13850 .quad foo@GOTNTPOFF
13851 lg %r1,foo@GOTNTPOFF(%r12)
13852 larl %r1,foo@INDNTPOFF
13853 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13854 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13857 tls_as_opt
="-m64 -Aesame --fatal-warnings"
13859 sh-
*-* | sh
[34]-*-*)
13861 .section ".tdata","awT",@progbits
13871 tls_as_opt
=--fatal-warnings
13875 sparc
*-sun-solaris2.
*)
13882 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
13884 .section ".tdata",#alloc,#write,#tls
13887 sethi %tgd_hi22(foo), %o0
13888 add %o0, %tgd_lo10(foo), %o1
13889 add %l7, %o1, %o0, %tgd_add(foo)
13890 call __tls_get_addr, %tgd_call(foo)
13891 sethi %tldm_hi22(foo), %l1
13892 add %l1, %tldm_lo10(foo), %l2
13893 add %l7, %l2, %o0, %tldm_add(foo)
13894 call __tls_get_addr, %tldm_call(foo)
13895 sethi %tldo_hix22(foo), %l3
13896 xor %l3, %tldo_lox10(foo), %l4
13897 add %o0, %l4, %l5, %tldo_add(foo)
13898 sethi %tie_hi22(foo), %o3
13899 add %o3, %tie_lo10(foo), %o3
13900 ld [%l7 + %o3], %o2, %tie_ld(foo)
13901 add %g7, %o2, %o4, %tie_add(foo)
13902 sethi %tle_hix22(foo), %l1
13903 xor %l1, %tle_lox10(foo), %o5
13904 ld [%g7 + %o5], %o1'
13909 .section ".tdata","awT",@progbits
13912 sethi %tgd_hi22(foo), %o0
13913 add %o0, %tgd_lo10(foo), %o1
13914 add %l7, %o1, %o0, %tgd_add(foo)
13915 call __tls_get_addr, %tgd_call(foo)
13916 sethi %tldm_hi22(foo), %l1
13917 add %l1, %tldm_lo10(foo), %l2
13918 add %l7, %l2, %o0, %tldm_add(foo)
13919 call __tls_get_addr, %tldm_call(foo)
13920 sethi %tldo_hix22(foo), %l3
13921 xor %l3, %tldo_lox10(foo), %l4
13922 add %o0, %l4, %l5, %tldo_add(foo)
13923 sethi %tie_hi22(foo), %o3
13924 add %o3, %tie_lo10(foo), %o3
13925 ld [%l7 + %o3], %o2, %tie_ld(foo)
13926 add %g7, %o2, %o4, %tie_add(foo)
13927 sethi %tle_hix22(foo), %l1
13928 xor %l1, %tle_lox10(foo), %o5
13929 ld [%g7 + %o5], %o1'
13932 tls_as_opt
="-32 --fatal-warnings"
13936 if test -z "$tls_first_major"; then
13937 : # If we don't have a check, assume no support.
13939 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13940 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13941 if test "${gcc_cv_as_tls+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 if test $in_tree_gas = yes; then
13946 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13947 then gcc_cv_as_tls
=yes
13949 elif test x
$gcc_cv_as != x
; then
13950 echo "$conftest_s" > conftest.s
13951 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }
13960 echo "configure: failed program was" >&5
13963 rm -f conftest.o conftest.s
13966 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13967 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13968 if test $gcc_cv_as_tls = yes; then
13970 cat >>confdefs.h
<<\_ACEOF
13971 #define HAVE_AS_TLS 1
13977 # Target-specific assembler checks.
13979 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13980 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13981 gcc_cv_ld_static_dynamic
=no
13982 if test $in_tree_ld = yes ; then
13983 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13984 gcc_cv_ld_static_dynamic
=yes
13986 elif test x
$gcc_cv_ld != x
; then
13987 # Check if linker supports -Bstatic/-Bdynamic option
13988 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
13989 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
13990 gcc_cv_ld_static_dynamic
=yes
13993 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
13995 cat >>confdefs.h
<<\_ACEOF
13996 #define HAVE_LD_STATIC_DYNAMIC 1
14000 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14001 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14003 if test x
"$demangler_in_ld" = xyes
; then
14004 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14005 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14006 gcc_cv_ld_demangle
=no
14007 if test $in_tree_ld = yes; then
14008 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 \
14009 gcc_cv_ld_demangle
=yes
14011 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14012 # Check if the GNU linker supports --demangle option
14013 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14014 gcc_cv_ld_demangle
=yes
14017 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14019 cat >>confdefs.h
<<\_ACEOF
14020 #define HAVE_LD_DEMANGLE 1
14024 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14025 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14029 # All TARGET_ABI_OSF targets.
14030 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14031 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14032 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14033 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 gcc_cv_as_alpha_explicit_relocs
=no
14037 if test $in_tree_gas = yes; then
14038 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14039 then gcc_cv_as_alpha_explicit_relocs
=yes
14041 elif test x
$gcc_cv_as != x
; then
14042 echo ' .set nomacro
14044 extbl $3, $2, $3 !lituse_bytoff!1
14045 ldq $2, a($29) !literal!1
14046 ldq $4, b($29) !literal!2
14047 ldq_u $3, 0($2) !lituse_base!1
14048 ldq $27, f($29) !literal!5
14049 jsr $26, ($27), f !lituse_jsr!5
14050 ldah $29, 0($26) !gpdisp!3
14051 lda $0, c($29) !gprel
14052 ldah $1, d($29) !gprelhigh
14053 lda $1, d($1) !gprellow
14054 lda $29, 0($29) !gpdisp!3' > conftest.s
14055 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }
14062 gcc_cv_as_alpha_explicit_relocs
=yes
14064 echo "configure: failed program was" >&5
14067 rm -f conftest.o conftest.s
14070 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14071 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14072 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14074 cat >>confdefs.h
<<\_ACEOF
14075 #define HAVE_AS_EXPLICIT_RELOCS 1
14082 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14083 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14084 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 gcc_cv_as_cris_no_mul_bug
=no
14088 if test $in_tree_gas = yes; then
14089 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14090 then gcc_cv_as_cris_no_mul_bug
=yes
14092 elif test x
$gcc_cv_as != x
; then
14093 echo '.text' > conftest.s
14094 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }
14101 gcc_cv_as_cris_no_mul_bug
=yes
14103 echo "configure: failed program was" >&5
14106 rm -f conftest.o conftest.s
14109 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14110 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14111 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14113 cat >>confdefs.h
<<\_ACEOF
14114 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14121 echo "$as_me:$LINENO: checking assembler for .register" >&5
14122 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14123 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 gcc_cv_as_sparc_register_op
=no
14127 if test x
$gcc_cv_as != x
; then
14128 echo '.register %g2, #scratch' > conftest.s
14129 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; }
14136 gcc_cv_as_sparc_register_op
=yes
14138 echo "configure: failed program was" >&5
14141 rm -f conftest.o conftest.s
14144 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14145 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14146 if test $gcc_cv_as_sparc_register_op = yes; then
14148 cat >>confdefs.h
<<\_ACEOF
14149 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14154 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14155 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14156 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 gcc_cv_as_sparc_relax
=no
14160 if test x
$gcc_cv_as != x
; then
14161 echo '.text' > conftest.s
14162 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }
14169 gcc_cv_as_sparc_relax
=yes
14171 echo "configure: failed program was" >&5
14174 rm -f conftest.o conftest.s
14177 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14178 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14179 if test $gcc_cv_as_sparc_relax = yes; then
14181 cat >>confdefs.h
<<\_ACEOF
14182 #define HAVE_AS_RELAX_OPTION 1
14187 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14188 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14189 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 gcc_cv_as_sparc_ua_pcrel
=no
14193 if test x
$gcc_cv_as != x
; then
14200 .uaword %r_disp32(foo)' > conftest.s
14201 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }
14208 if test x
$gcc_cv_ld != x \
14209 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14210 gcc_cv_as_sparc_ua_pcrel
=yes
14214 echo "configure: failed program was" >&5
14217 rm -f conftest.o conftest.s
14220 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14221 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14222 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14224 cat >>confdefs.h
<<\_ACEOF
14225 #define HAVE_AS_SPARC_UA_PCREL 1
14229 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14230 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14231 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14235 if test x
$gcc_cv_as != x
; then
14239 .uaword %r_disp32(foo)
14240 .byte 0x32, 0x33, 0x34
14244 .skip 4' > conftest.s
14245 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }
14252 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14253 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14254 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14255 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14256 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14257 |
grep 'DISP32' > /dev
/null
2>&1; then
14260 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14265 echo "configure: failed program was" >&5
14268 rm -f conftest.o conftest.s
14271 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14272 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14273 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14275 cat >>confdefs.h
<<\_ACEOF
14276 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14281 fi # unaligned pcrel relocs
14283 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14284 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14285 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 gcc_cv_as_sparc_offsetable_lo10
=no
14289 if test x
$gcc_cv_as != x
; then
14291 or %g1, %lo(ab) + 12, %g1
14292 or %g1, %lo(ab + 12), %g1' > conftest.s
14293 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }
14300 if test x
$gcc_cv_objdump != x \
14301 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14302 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14303 gcc_cv_as_sparc_offsetable_lo10
=yes
14306 echo "configure: failed program was" >&5
14309 rm -f conftest.o conftest.s
14312 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14313 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14314 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14316 cat >>confdefs.h
<<\_ACEOF
14317 #define HAVE_AS_OFFSETABLE_LO10 1
14323 i
[34567]86-*-* | x86_64-
*-*)
14325 cygwin
* | pe | mingw32
*)
14326 # Used for DWARF 2 in PE
14327 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14328 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14329 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 gcc_cv_as_ix86_pe_secrel32
=no
14333 if test $in_tree_gas = yes; then
14334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14335 then gcc_cv_as_ix86_pe_secrel32
=yes
14337 elif test x
$gcc_cv_as != x
; then
14341 .secrel32 foo' > conftest.s
14342 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }
14349 if test x
$gcc_cv_ld != x \
14350 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14351 gcc_cv_as_ix86_pe_secrel32
=yes
14355 echo "configure: failed program was" >&5
14358 rm -f conftest.o conftest.s
14361 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14362 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14363 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14365 cat >>confdefs.h
<<\_ACEOF
14366 #define HAVE_GAS_PE_SECREL32_RELOC 1
14373 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14374 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14375 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 gcc_cv_as_ix86_filds_fists
=no
14379 if test $in_tree_gas = yes; then
14380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14381 then gcc_cv_as_ix86_filds_fists
=yes
14383 elif test x
$gcc_cv_as != x
; then
14384 echo 'filds mem; fists mem' > conftest.s
14385 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }
14392 gcc_cv_as_ix86_filds_fists
=yes
14394 echo "configure: failed program was" >&5
14397 rm -f conftest.o conftest.s
14400 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14401 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14402 if test $gcc_cv_as_ix86_filds_fists = yes; then
14404 cat >>confdefs.h
<<\_ACEOF
14405 #define HAVE_GAS_FILDS_FISTS 1
14410 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14411 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14412 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14415 gcc_cv_as_ix86_cmov_sun_syntax
=no
14416 if test x
$gcc_cv_as != x
; then
14417 echo 'cmovl.l %edx, %eax' > conftest.s
14418 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }
14425 gcc_cv_as_ix86_cmov_sun_syntax
=yes
14427 echo "configure: failed program was" >&5
14430 rm -f conftest.o conftest.s
14433 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14434 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14435 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14437 cat >>confdefs.h
<<\_ACEOF
14438 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14443 # This one is used unconditionally by i386.[ch]; it is to be defined
14444 # to 1 if the feature is present, 0 otherwise.
14445 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14446 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14447 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 gcc_cv_as_ix86_gotoff_in_data
=no
14451 if test $in_tree_gas = yes; then
14452 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14453 then gcc_cv_as_ix86_gotoff_in_data
=yes
14455 elif test x
$gcc_cv_as != x
; then
14460 .long .L0@GOTOFF' > conftest.s
14461 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }
14468 gcc_cv_as_ix86_gotoff_in_data
=yes
14470 echo "configure: failed program was" >&5
14473 rm -f conftest.o conftest.s
14476 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14477 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14480 cat >>confdefs.h
<<_ACEOF
14481 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14487 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14488 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14489 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
14493 if test $in_tree_gas = yes; then
14494 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14495 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14497 elif test x
$gcc_cv_as != x
; then
14499 addl r15 = @ltoffx(x#), gp
14501 ld8.mov r16 = [r15], x#' > conftest.s
14502 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; }
14509 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14511 echo "configure: failed program was" >&5
14514 rm -f conftest.o conftest.s
14517 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14518 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14519 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14521 cat >>confdefs.h
<<\_ACEOF
14522 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14531 *-*-aix*) conftest_s
=' .csect .text[PR]
14534 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14535 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14536 if test "${gcc_cv_as_machine_directive+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 gcc_cv_as_machine_directive
=no
14540 if test x
$gcc_cv_as != x
; then
14541 echo ' .machine ppc7400' > conftest.s
14542 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }
14549 gcc_cv_as_machine_directive
=yes
14551 echo "configure: failed program was" >&5
14554 rm -f conftest.o conftest.s
14557 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14558 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14560 if test x
$gcc_cv_as_machine_directive != xyes
; then
14561 echo "*** This target requires an assembler supporting \".machine\"" >&2
14562 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
14563 test x
$build = x
$target && exit 1
14567 *) conftest_s
=' .machine power4
14572 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14573 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14574 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 gcc_cv_as_powerpc_mfcrf
=no
14578 if test $in_tree_gas = yes; then
14579 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14580 then gcc_cv_as_powerpc_mfcrf
=yes
14582 elif test x
$gcc_cv_as != x
; then
14583 echo "$conftest_s" > conftest.s
14584 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }
14591 gcc_cv_as_powerpc_mfcrf
=yes
14593 echo "configure: failed program was" >&5
14596 rm -f conftest.o conftest.s
14599 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14600 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14601 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14603 cat >>confdefs.h
<<\_ACEOF
14604 #define HAVE_AS_MFCRF 1
14611 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14612 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14613 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 gcc_cv_as_mips_explicit_relocs
=no
14617 if test $in_tree_gas = yes; then
14618 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14619 then gcc_cv_as_mips_explicit_relocs
=yes
14621 elif test x
$gcc_cv_as != x
; then
14622 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14623 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }
14630 gcc_cv_as_mips_explicit_relocs
=yes
14632 echo "configure: failed program was" >&5
14635 rm -f conftest.o conftest.s
14638 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14639 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14640 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14641 if test x
$target_cpu_default = x
14642 then target_cpu_default
=MASK_EXPLICIT_RELOCS
14643 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14647 if test x
$gas_flag = xyes \
14648 ||
test x
"$host" != x
"$build" \
14649 ||
test ! -x "$gcc_cv_as" \
14650 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
14653 echo "*** This configuration requires the GNU assembler" >&2
14658 # ??? Not all targets support dwarf2 debug_line, even within a version
14659 # of gas. Moreover, we need to emit a valid instruction to trigger any
14660 # info to the output file. So, as supported targets are added to gas 2.11,
14661 # add some instruction here to (also) show we expect this might work.
14662 # ??? Once 2.11 is released, probably need to add first known working
14663 # version to the per-target configury.
14665 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
14666 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
14667 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
14670 ia64
*-*-* | s390
*-*-*)
14677 if test x
"$insn" != x
; then
14679 .file 1 \"conftest.s\"
14682 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14683 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14684 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 gcc_cv_as_dwarf2_debug_line
=no
14688 if test $in_tree_gas = yes; then
14689 if test $in_tree_gas_is_elf = yes \
14690 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14691 then gcc_cv_as_dwarf2_debug_line
=yes
14693 elif test x
$gcc_cv_as != x
; then
14694 echo "$conftest_s" > conftest.s
14695 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }
14702 if test x
$gcc_cv_objdump != x \
14703 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
14704 |
grep debug_line
> /dev
/null
2>&1; then
14705 gcc_cv_as_dwarf2_debug_line
=yes
14708 echo "configure: failed program was" >&5
14711 rm -f conftest.o conftest.s
14714 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14715 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14718 # The .debug_line file table must be in the exact order that
14719 # we specified the files, since these indices are also used
14720 # by DW_AT_decl_file. Approximate this test by testing if
14721 # the assembler bitches if the same index is assigned twice.
14722 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14723 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14724 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 gcc_cv_as_dwarf2_file_buggy
=no
14728 if test x
$gcc_cv_as != x
; then
14729 echo ' .file 1 "foo.s"
14730 .file 1 "bar.s"' > conftest.s
14731 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }
14738 gcc_cv_as_dwarf2_file_buggy
=yes
14740 echo "configure: failed program was" >&5
14743 rm -f conftest.o conftest.s
14746 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14747 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14750 if test $gcc_cv_as_dwarf2_debug_line = yes \
14751 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
14753 cat >>confdefs.h
<<\_ACEOF
14754 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14759 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14760 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14761 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 gcc_cv_as_gdwarf2_flag
=no
14765 if test $in_tree_gas = yes; then
14766 if test $in_tree_gas_is_elf = yes \
14767 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14768 then gcc_cv_as_gdwarf2_flag
=yes
14770 elif test x
$gcc_cv_as != x
; then
14771 echo "$insn" > conftest.s
14772 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }
14779 gcc_cv_as_gdwarf2_flag
=yes
14781 echo "configure: failed program was" >&5
14784 rm -f conftest.o conftest.s
14787 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14788 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14789 if test $gcc_cv_as_gdwarf2_flag = yes; then
14791 cat >>confdefs.h
<<\_ACEOF
14792 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14797 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14798 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14799 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 gcc_cv_as_gstabs_flag
=no
14803 if test $in_tree_gas = yes; then
14804 if test $in_tree_gas_is_elf = yes \
14805 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14806 then gcc_cv_as_gstabs_flag
=yes
14808 elif test x
$gcc_cv_as != x
; then
14809 echo "$insn" > conftest.s
14810 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; }
14817 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14818 # and warns about it, but still exits successfully. So check for
14820 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; }
14827 else gcc_cv_as_gstabs_flag
=yes
14830 echo "configure: failed program was" >&5
14833 rm -f conftest.o conftest.s
14836 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14837 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14838 if test $gcc_cv_as_gstabs_flag = yes; then
14840 cat >>confdefs.h
<<\_ACEOF
14841 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14847 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14848 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14849 gcc_cv_ld_ro_rw_mix
=unknown
14850 if test $in_tree_ld = yes ; then
14851 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 \
14852 && test $in_tree_ld_is_elf = yes; then
14853 gcc_cv_ld_ro_rw_mix
=read-write
14855 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
14856 echo '.section myfoosect, "a"' > conftest1.s
14857 echo '.section myfoosect, "aw"' > conftest2.s
14858 echo '.byte 1' >> conftest2.s
14859 echo '.section myfoosect, "a"' > conftest3.s
14860 echo '.byte 0' >> conftest3.s
14861 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14862 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14863 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
14864 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14865 conftest2.o conftest3.o
> /dev
/null
2>&1; then
14866 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
14867 | sed -e '/myfoosect/!d' -e N`
14868 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
14869 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
14870 gcc_cv_ld_ro_rw_mix
=read-only
14872 gcc_cv_ld_ro_rw_mix
=read-write
14876 rm -f conftest.
* conftest
[123].
*
14878 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
14880 cat >>confdefs.h
<<\_ACEOF
14881 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14885 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14886 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14888 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14889 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14890 gcc_cv_ld_eh_frame_hdr
=no
14891 if test $in_tree_ld = yes ; then
14892 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 \
14893 && test $in_tree_ld_is_elf = yes; then
14894 gcc_cv_ld_eh_frame_hdr
=yes
14896 elif test x
$gcc_cv_ld != x
; then
14897 # Check if linker supports --eh-frame-hdr option
14898 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
14899 gcc_cv_ld_eh_frame_hdr
=yes
14902 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
14904 cat >>confdefs.h
<<\_ACEOF
14905 #define HAVE_LD_EH_FRAME_HDR 1
14909 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14910 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14912 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14913 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14915 if test $in_tree_ld = yes ; then
14916 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 \
14917 && test $in_tree_ld_is_elf = yes; then
14920 elif test x
$gcc_cv_ld != x
; then
14921 # Check if linker supports -pie option
14922 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
14926 if test x
"$gcc_cv_ld_pie" = xyes
; then
14928 cat >>confdefs.h
<<\_ACEOF
14929 #define HAVE_LD_PIE 1
14933 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14934 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14940 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14941 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14942 if test "${gcc_cv_ld_as_needed+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 gcc_cv_ld_as_needed
=no
14946 if test $in_tree_ld = yes ; then
14947 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 \
14948 && test $in_tree_ld_is_elf = yes; then
14949 gcc_cv_ld_as_needed
=yes
14951 elif test x
$gcc_cv_ld != x
; then
14952 # Check if linker supports --as-needed and --no-as-needed options
14953 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
14954 gcc_cv_ld_as_needed
=yes
14959 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14960 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14961 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
14963 cat >>confdefs.h
<<\_ACEOF
14964 #define HAVE_LD_AS_NEEDED 1
14970 powerpc64
*-*-linux*)
14971 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14972 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14973 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
14976 gcc_cv_ld_no_dot_syms
=no
14977 if test $in_tree_ld = yes ; then
14978 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
14979 gcc_cv_ld_no_dot_syms
=yes
14981 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
14982 cat > conftest1.s
<<EOF
14986 cat > conftest2.s
<<EOF
14987 .section ".opd","aw"
14990 .type foo,@function
14992 .quad .LEfoo,.TOC.@tocbase,0
14998 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14999 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15000 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
15001 gcc_cv_ld_no_dot_syms
=yes
15003 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15007 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15008 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15009 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15011 cat >>confdefs.h
<<\_ACEOF
15012 #define HAVE_LD_NO_DOT_SYMS 1
15019 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15020 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15022 cat >>confdefs.h
<<_ACEOF
15023 #define PREFIX_INCLUDE_DIR "$prefix/include"
15028 # Find out what GC implementation we want, or may, use.
15030 # Check whether --with-gc or --without-gc was given.
15031 if test "${with_gc+set}" = set; then
15040 cat >>confdefs.h
<<\_ACEOF
15046 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15047 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15048 { (exit 1); exit 1; }; }
15055 echo "Using $GGC for garbage collection."
15057 # Use the system's zlib library.
15059 zlibinc
="-I\$(srcdir)/../zlib"
15061 # Check whether --with-system-zlib or --without-system-zlib was given.
15062 if test "${with_system_zlib+set}" = set; then
15063 withval
="$with_system_zlib"
15072 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15073 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15074 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15075 if test "${enable_maintainer_mode+set}" = set; then
15076 enableval
="$enable_maintainer_mode"
15077 maintainer_mode
=$enableval
15082 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15083 echo "${ECHO_T}$maintainer_mode" >&6
15085 if test "$maintainer_mode" = "yes"; then
15095 # Make empty files to contain the specs and options for each language.
15096 # Then add #include lines to for a compiler that has specs and/or options.
15101 for subdir
in .
$subdirs
15103 if test -f $srcdir/$subdir/lang.opt
; then
15104 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
15106 if test -f $srcdir/$subdir/lang-specs.h
; then
15107 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15109 if test -f $srcdir/$subdir/$subdir-tree.def
; then
15110 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15114 # These (without "all_") are set in each config-lang.in.
15115 # `language' must be a single word so is spelled singularly.
15117 all_boot_languages
=
15120 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15121 # List of language makefile fragments.
15122 all_lang_makefrags
=
15123 # List of language subdirectory makefiles. Deprecated.
15124 all_lang_makefiles
=
15125 # Files for gengtype
15126 all_gtfiles
="$target_gtfiles"
15127 # Files for gengtype with language
15128 all_gtfiles_files_langs
=
15129 all_gtfiles_files_files
=
15131 # Add the language fragments.
15132 # Languages are added via two mechanisms. Some information must be
15133 # recorded in makefile variables, these are defined in config-lang.in.
15134 # We accumulate them and plug them into the main Makefile.
15135 # The other mechanism is a set of hooks for each of the main targets
15136 # like `clean', `install', etc.
15138 language_hooks
="Make-hooks"
15148 .
${srcdir}/$s/config-lang.
in
15149 if test "x$language" = x
15151 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15154 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15155 if test -f ${srcdir}/$s/Makefile.
in
15156 then all_lang_makefiles
="$s/Makefile"
15158 all_languages
="$all_languages $language"
15159 if test "x$boot_language" = xyes
15161 all_boot_languages
="$all_boot_languages $language"
15163 all_compilers
="$all_compilers $compilers"
15164 all_stagestuff
="$all_stagestuff $stagestuff"
15165 all_outputs
="$all_outputs $outputs"
15166 all_gtfiles
="$all_gtfiles $gtfiles"
15169 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15170 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15174 # Pick up gtfiles for c
15177 .
${srcdir}/c-config-lang.
in
15178 all_gtfiles
="$all_gtfiles $gtfiles"
15181 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15182 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15186 for language
in $all_languages
15188 check_languages
="$check_languages check-$language"
15191 # We link each language in with a set of hooks, reached indirectly via
15196 target_list
="all.build all.cross start.encap rest.encap tags \
15197 install-normal install-common install-man \
15198 uninstall info man srcextra srcman srcinfo \
15199 mostlyclean clean distclean maintainer-clean \
15200 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15201 for t
in $target_list
15204 for lang
in $all_languages
15208 echo "lang.$t: $x" >> Make-hooks
15217 echo "dir ." > .gdbinit
15218 echo "dir ${srcdir}" >> .gdbinit
15219 if test x
$gdb_needs_out_file_path = xyes
15221 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15223 if test "x$subdirs" != x
; then
15226 echo "dir ${srcdir}/$s" >> .gdbinit
15229 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15231 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15232 # absolute path for gcc_tooldir based on inserting the number of up-directory
15233 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15234 # $(libsubdir)/@(unlibsubdir) based path.
15235 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15236 # make and thus we'd get different behavior depending on where we built the
15238 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
15239 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15241 # An explanation of the sed strings:
15242 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15243 # -e 's|/$||' match a trailing forward slash and eliminates it
15244 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15245 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15247 # (*) Note this pattern overwrites the first character of the string
15248 # with a forward slash if one is not already present. This is not a
15249 # problem because the exact names of the sub-directories concerned is
15250 # unimportant, just the number of them matters.
15252 # The practical upshot of these patterns is like this:
15254 # prefix exec_prefix result
15255 # ------ ----------- ------
15256 # /foo /foo/bar ../
15257 # /foo/ /foo/bar ../
15258 # /foo /foo/bar/ ../
15259 # /foo/ /foo/bar/ ../
15260 # /foo /foo/bar/ugg ../../
15263 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15268 # Find a directory in which to install a shared libgcc.
15270 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15271 if test "${enable_version_specific_runtime_libs+set}" = set; then
15272 enableval
="$enable_version_specific_runtime_libs"
15277 # Check whether --with-slibdir or --without-slibdir was given.
15278 if test "${with_slibdir+set}" = set; then
15279 withval
="$with_slibdir"
15280 slibdir
="$with_slibdir"
15282 if test "${enable_version_specific_runtime_libs+set}" = set; then
15283 slibdir
='$(libsubdir)'
15284 elif test "$host" != "$target"; then
15285 slibdir
='$(build_tooldir)/lib'
15287 slibdir
='$(libdir)'
15292 objdir
=`${PWDCMD-pwd}`
15295 # Substitute configuration variables
15360 if test x
${build} = x
${host} ; then
15361 if test x
${host} = x
${target} ; then
15362 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15364 echo "Links are now set up to build a cross-compiler" 1>&2
15365 echo " from ${host} to ${target}." 1>&2
15368 if test x
${host} = x
${target} ; then
15369 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15370 echo " for ${target}." 1>&2
15372 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15373 echo " from ${host} to ${target}." 1>&2
15380 # Configure the subdirectories
15381 # AC_CONFIG_SUBDIRS($subdirs)
15383 # Create the Makefile
15384 # and configure language subdirectories
15385 ac_config_files
="$ac_config_files $all_outputs"
15388 ac_config_commands
="$ac_config_commands default"
15390 cat >confcache
<<\_ACEOF
15391 # This file is a shell script that caches the results of configure
15392 # tests run on this system so they can be shared between configure
15393 # scripts and configure runs, see configure's option --config-cache.
15394 # It is not useful on other systems. If it contains results you don't
15395 # want to keep, you may remove or edit it.
15397 # config.status only pays attention to the cache file if you give it
15398 # the --recheck option to rerun configure.
15400 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15401 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15402 # following values.
15406 # The following way of writing the cache mishandles newlines in values,
15407 # but we know of no workaround that is simple, portable, and efficient.
15408 # So, don't put newlines in cache variables' values.
15409 # Ultrix sh set writes to stderr and can't be redirected directly,
15410 # and sets the high bit in the cache file unless we assign to the vars.
15413 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15415 # `set' does not quote correctly, so add quotes (double-quote
15416 # substitution turns \\\\ into \\, and sed turns \\ into \).
15419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15422 # `set' quotes correctly as required by POSIX, so do not add quotes.
15424 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15431 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15433 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15435 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15436 if test -w $cache_file; then
15437 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15438 cat confcache
>$cache_file
15440 echo "not updating unwritable cache $cache_file"
15445 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15446 # Let make expand exec_prefix.
15447 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15449 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15450 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15451 # trailing colons and then remove the whole line if VPATH becomes empty
15452 # (actually we leave an empty line to preserve line numbers).
15453 if test "x$srcdir" = x.
; then
15454 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15455 s/:*\$(srcdir):*/:/;
15456 s/:*\${srcdir}:*/:/;
15458 s/^\([^=]*=[ ]*\):*/\1/;
15464 DEFS
=-DHAVE_CONFIG_H
15468 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15469 # 1. Remove the extension, and $U if already installed.
15470 ac_i
=`echo "$ac_i" |
15471 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15473 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15474 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15476 LIBOBJS
=$ac_libobjs
15478 LTLIBOBJS
=$ac_ltlibobjs
15482 : ${CONFIG_STATUS=./config.status}
15483 ac_clean_files_save
=$ac_clean_files
15484 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15485 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15486 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15487 cat >$CONFIG_STATUS <<_ACEOF
15489 # Generated by $as_me.
15490 # Run this file to recreate the current configuration.
15491 # Compiler output produced by configure, useful for debugging
15492 # configure, is in config.log if it exists.
15495 ac_cs_recheck=false
15497 SHELL=\${CONFIG_SHELL-$SHELL}
15500 cat >>$CONFIG_STATUS <<\_ACEOF
15501 ## --------------------- ##
15502 ## M4sh Initialization. ##
15503 ## --------------------- ##
15505 # Be Bourne compatible
15506 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15509 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15510 # is contrary to our usage. Disable this feature.
15511 alias -g '${1+"$@"}'='"$@"'
15512 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
15515 DUALCASE
=1; export DUALCASE
# for MKS sh
15517 # Support unset when possible.
15518 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15525 # Work around bugs in pre-3.0 UWIN ksh.
15526 $as_unset ENV MAIL MAILPATH
15533 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15534 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15535 LC_TELEPHONE LC_TIME
15537 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15538 eval $as_var=C
; export $as_var
15544 # Required to use basename.
15545 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15551 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15552 as_basename
=basename
15558 # Name of the executable.
15559 as_me
=`$as_basename "$0" ||
15560 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15561 X"$0" : 'X\(//\)$' \| \
15562 X"$0" : 'X\(/\)$' \| \
15563 . : '\(.\)' 2>/dev/null ||
15565 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15566 /^X\/\(\/\/\)$/{ s//\1/; q; }
15567 /^X\/\(\/\).*/{ s//\1/; q; }
15571 # PATH needs CR, and LINENO needs CR and PATH.
15572 # Avoid depending upon Character Ranges.
15573 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15574 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15575 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15576 as_cr_digits
='0123456789'
15577 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15579 # The user is always right.
15580 if test "${PATH_SEPARATOR+set}" != set; then
15581 echo "#! /bin/sh" >conf$$.sh
15582 echo "exit 0" >>conf$$.sh
15584 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15593 as_lineno_1
=$LINENO
15594 as_lineno_2
=$LINENO
15595 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15596 test "x$as_lineno_1" != "x$as_lineno_2" &&
15597 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
15598 # Find who we are. Look in the path if we contain no path at all
15601 *[\\/]* ) as_myself
=$0 ;;
15602 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15603 for as_dir
in $PATH
15606 test -z "$as_dir" && as_dir
=.
15607 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15612 # We did not find ourselves, most probably we were run as `sh COMMAND'
15613 # in which case we are not to be found in the path.
15614 if test "x$as_myself" = x
; then
15617 if test ! -f "$as_myself"; then
15618 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15619 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15620 { (exit 1); exit 1; }; }
15622 case $CONFIG_SHELL in
15624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15625 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
15628 test -z "$as_dir" && as_dir
=.
15629 for as_base
in sh bash ksh sh5
; do
15632 if ("$as_dir/$as_base" -c '
15633 as_lineno_1=$LINENO
15634 as_lineno_2=$LINENO
15635 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15636 test "x$as_lineno_1" != "x$as_lineno_2" &&
15637 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
15638 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
15639 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
15640 CONFIG_SHELL
=$as_dir/$as_base
15641 export CONFIG_SHELL
15642 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15650 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15651 # uniformly replaced by the line number. The first 'sed' inserts a
15652 # line-number line before each line; the second 'sed' does the real
15653 # work. The second script uses 'N' to pair each line-number line
15654 # with the numbered line, and appends trailing '-' during
15655 # substitution so that $LINENO is not a special case at line end.
15656 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15657 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15658 sed '=' <$as_myself |
15663 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15666 s,^['$as_cr_digits']*\n,,
15667 ' >$as_me.lineno
&&
15668 chmod +x
$as_me.lineno ||
15669 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15670 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15671 { (exit 1); exit 1; }; }
15673 # Don't try to exec as it changes $[0], causing all sort of problems
15674 # (the dirname of $[0] is not the place where we might find the
15675 # original and so on. Autoconf is especially sensible to this).
15677 # Exit status is that of the last command.
15682 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15683 *c
*,-n*) ECHO_N
= ECHO_C
='
15685 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15686 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15689 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15695 rm -f conf$$ conf$$.exe conf$$.
file
15697 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15698 # We could just check for DJGPP; but this test a) works b) is more generic
15699 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15700 if test -f conf$$.exe
; then
15701 # Don't use ln at all; we don't have any links
15706 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15711 rm -f conf$$ conf$$.exe conf$$.
file
15713 if mkdir
-p .
2>/dev
/null
; then
15716 test -d .
/-p && rmdir .
/-p
15720 as_executable_p
="test -f"
15722 # Sed expression to map a string onto a valid CPP name.
15723 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15725 # Sed expression to map a string onto a valid variable name.
15726 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15730 # We need space, tab and new line, in precisely that order.
15740 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15741 # report actual input values of CONFIG_FILES etc. instead of their
15742 # values after options handling. Logging --version etc. is OK.
15746 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15747 ## Running $as_me. ##
15752 This file was extended by $as_me, which was
15753 generated by GNU Autoconf 2.59. Invocation command line was
15755 CONFIG_FILES = $CONFIG_FILES
15756 CONFIG_HEADERS = $CONFIG_HEADERS
15757 CONFIG_LINKS = $CONFIG_LINKS
15758 CONFIG_COMMANDS = $CONFIG_COMMANDS
15762 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15766 # Files that config.status was made for.
15767 if test -n "$ac_config_files"; then
15768 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15771 if test -n "$ac_config_headers"; then
15772 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15775 if test -n "$ac_config_links"; then
15776 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15779 if test -n "$ac_config_commands"; then
15780 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15783 cat >>$CONFIG_STATUS <<\_ACEOF
15786 \`$as_me' instantiates files from templates according to the
15787 current configuration.
15789 Usage: $0 [OPTIONS] [FILE]...
15791 -h, --help print this help, then exit
15792 -V, --version print version number, then exit
15793 -q, --quiet do not print progress messages
15794 -d, --debug don't remove temporary files
15795 --recheck update $as_me by reconfiguring in the same conditions
15796 --file=FILE[:TEMPLATE]
15797 instantiate the configuration file FILE
15798 --header=FILE[:TEMPLATE]
15799 instantiate the configuration header FILE
15801 Configuration files:
15804 Configuration headers:
15807 Configuration commands:
15810 Report bugs to <bug-autoconf@gnu.org>."
15813 cat >>$CONFIG_STATUS <<_ACEOF
15816 configured by $0, generated by GNU Autoconf 2.59,
15817 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15819 Copyright (C) 2003 Free Software Foundation, Inc.
15820 This config.status script is free software; the Free Software Foundation
15821 gives unlimited permission to copy, distribute and modify it."
15825 cat >>$CONFIG_STATUS <<\_ACEOF
15826 # If no file are specified by the user, then we need to provide default
15827 # value. By we need to know if files were specified by the user.
15833 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
15834 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
15842 *) # This is not an option, so the user has probably given explicit
15845 ac_need_defaults
=false
;;
15849 # Handling of the options.
15851 cat >>$CONFIG_STATUS <<\_ACEOF
15852 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15854 --version |
--vers* |
-V )
15855 echo "$ac_cs_version"; exit 0 ;;
15857 # Conflict between --help and --header
15858 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15859 Try \`$0 --help' for more information." >&5
15860 echo "$as_me: error: ambiguous option: $1
15861 Try \`$0 --help' for more information." >&2;}
15862 { (exit 1); exit 1; }; };;
15863 --help |
--hel |
-h )
15864 echo "$ac_cs_usage"; exit 0 ;;
15865 --debug |
--d* |
-d )
15867 --file |
--fil |
--fi |
--f )
15869 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
15870 ac_need_defaults
=false
;;
15871 --header |
--heade |
--head |
--hea )
15873 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
15874 ac_need_defaults
=false
;;
15875 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15876 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15879 # This is an error.
15880 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15881 Try \`$0 --help' for more information." >&5
15882 echo "$as_me: error: unrecognized option: $1
15883 Try \`$0 --help' for more information." >&2;}
15884 { (exit 1); exit 1; }; } ;;
15886 *) ac_config_targets
="$ac_config_targets $1" ;;
15892 ac_configure_extra_args
=
15894 if $ac_cs_silent; then
15896 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15900 cat >>$CONFIG_STATUS <<_ACEOF
15901 if \$ac_cs_recheck; then
15902 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15903 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15908 cat >>$CONFIG_STATUS <<_ACEOF
15910 # INIT-COMMANDS section.
15919 cat >>$CONFIG_STATUS <<\_ACEOF
15920 for ac_config_target
in $ac_config_targets
15922 case "$ac_config_target" in
15923 # Handling of arguments.
15924 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
15925 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15926 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
15927 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15928 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15929 { (exit 1); exit 1; }; };;
15933 # If the user did not use the arguments to specify the items to instantiate,
15934 # then the envvar interface is used. Set only those that are not.
15935 # We use the long form for the default assignment because of an extremely
15936 # bizarre bug on SunOS 4.1.3.
15937 if $ac_need_defaults; then
15938 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15939 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15940 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15943 # Have a temporary directory for convenience. Make it in the build tree
15944 # simply because there is no reason to put it here, and in addition,
15945 # creating and moving files from /tmp can sometimes cause problems.
15946 # Create a temporary directory, and hook for its removal unless debugging.
15949 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15950 trap '{ (exit 1); exit 1; }' 1 2 13 15
15953 # Create a (secure) tmp directory for tmp files.
15956 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15957 test -n "$tmp" && test -d "$tmp"
15960 tmp
=.
/confstat$$
-$RANDOM
15961 (umask 077 && mkdir
$tmp)
15964 echo "$me: cannot create a temporary directory in ." >&2
15965 { (exit 1); exit 1; }
15970 cat >>$CONFIG_STATUS <<_ACEOF
15973 # CONFIG_FILES section.
15976 # No need to generate the scripts if there are no CONFIG_FILES.
15977 # This happens for instance when ./config.status config.h
15978 if test -n "\$CONFIG_FILES"; then
15979 # Protect against being on the right side of a sed subst in config.status.
15980 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15981 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15982 s,@SHELL@,$SHELL,;t t
15983 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15984 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15985 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15986 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15987 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15988 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15989 s,@exec_prefix@,$exec_prefix,;t t
15990 s,@prefix@,$prefix,;t t
15991 s,@program_transform_name@,$program_transform_name,;t t
15992 s,@bindir@,$bindir,;t t
15993 s,@sbindir@,$sbindir,;t t
15994 s,@libexecdir@,$libexecdir,;t t
15995 s,@datadir@,$datadir,;t t
15996 s,@sysconfdir@,$sysconfdir,;t t
15997 s,@sharedstatedir@,$sharedstatedir,;t t
15998 s,@localstatedir@,$localstatedir,;t t
15999 s,@libdir@,$libdir,;t t
16000 s,@includedir@,$includedir,;t t
16001 s,@oldincludedir@,$oldincludedir,;t t
16002 s,@infodir@,$infodir,;t t
16003 s,@mandir@,$mandir,;t t
16004 s,@build_alias@,$build_alias,;t t
16005 s,@host_alias@,$host_alias,;t t
16006 s,@target_alias@,$target_alias,;t t
16007 s,@DEFS@,$DEFS,;t t
16008 s,@ECHO_C@,$ECHO_C,;t t
16009 s,@ECHO_N@,$ECHO_N,;t t
16010 s,@ECHO_T@,$ECHO_T,;t t
16011 s,@LIBS@,$LIBS,;t t
16012 s,@build@,$build,;t t
16013 s,@build_cpu@,$build_cpu,;t t
16014 s,@build_vendor@,$build_vendor,;t t
16015 s,@build_os@,$build_os,;t t
16016 s,@host@,$host,;t t
16017 s,@host_cpu@,$host_cpu,;t t
16018 s,@host_vendor@,$host_vendor,;t t
16019 s,@host_os@,$host_os,;t t
16020 s,@target@,$target,;t t
16021 s,@target_cpu@,$target_cpu,;t t
16022 s,@target_vendor@,$target_vendor,;t t
16023 s,@target_os@,$target_os,;t t
16024 s,@target_noncanonical@,$target_noncanonical,;t t
16025 s,@build_subdir@,$build_subdir,;t t
16026 s,@host_subdir@,$host_subdir,;t t
16027 s,@target_subdir@,$target_subdir,;t t
16028 s,@GENINSRC@,$GENINSRC,;t t
16030 s,@CFLAGS@,$CFLAGS,;t t
16031 s,@LDFLAGS@,$LDFLAGS,;t t
16032 s,@CPPFLAGS@,$CPPFLAGS,;t t
16033 s,@ac_ct_CC@,$ac_ct_CC,;t t
16034 s,@EXEEXT@,$EXEEXT,;t t
16035 s,@OBJEXT@,$OBJEXT,;t t
16036 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16037 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16039 s,@EGREP@,$EGREP,;t t
16040 s,@strict1_warn@,$strict1_warn,;t t
16041 s,@warn_cflags@,$warn_cflags,;t t
16042 s,@WERROR@,$WERROR,;t t
16043 s,@nocommon_flag@,$nocommon_flag,;t t
16044 s,@TREEBROWSER@,$TREEBROWSER,;t t
16045 s,@valgrind_path@,$valgrind_path,;t t
16046 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16047 s,@valgrind_command@,$valgrind_command,;t t
16048 s,@coverage_flags@,$coverage_flags,;t t
16049 s,@enable_multilib@,$enable_multilib,;t t
16050 s,@enable_shared@,$enable_shared,;t t
16051 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16052 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16053 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16054 s,@onestep@,$onestep,;t t
16055 s,@SET_MAKE@,$SET_MAKE,;t t
16057 s,@LN_S@,$LN_S,;t t
16059 s,@RANLIB@,$RANLIB,;t t
16060 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16061 s,@ranlib_flags@,$ranlib_flags,;t t
16062 s,@INSTALL@,$INSTALL,;t t
16063 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16064 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16065 s,@make_compare_target@,$make_compare_target,;t t
16066 s,@have_mktemp_command@,$have_mktemp_command,;t t
16067 s,@MAKEINFO@,$MAKEINFO,;t t
16068 s,@BUILD_INFO@,$BUILD_INFO,;t t
16069 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16070 s,@FLEX@,$FLEX,;t t
16071 s,@BISON@,$BISON,;t t
16074 s,@stage1_cflags@,$stage1_cflags,;t t
16075 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16076 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16077 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16078 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16079 s,@LIBICONV@,$LIBICONV,;t t
16080 s,@LTLIBICONV@,$LTLIBICONV,;t t
16081 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16082 s,@manext@,$manext,;t t
16083 s,@objext@,$objext,;t t
16084 s,@gthread_flags@,$gthread_flags,;t t
16085 s,@extra_modes_file@,$extra_modes_file,;t t
16086 s,@extra_opt_files@,$extra_opt_files,;t t
16087 s,@USE_NLS@,$USE_NLS,;t t
16088 s,@LIBINTL@,$LIBINTL,;t t
16089 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16090 s,@INCINTL@,$INCINTL,;t t
16091 s,@XGETTEXT@,$XGETTEXT,;t t
16092 s,@GMSGFMT@,$GMSGFMT,;t t
16093 s,@POSUB@,$POSUB,;t t
16094 s,@CATALOGS@,$CATALOGS,;t t
16095 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16096 s,@CROSS@,$CROSS,;t t
16098 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16099 s,@inhibit_libc@,$inhibit_libc,;t t
16100 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16101 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16102 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16103 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16104 s,@collect2@,$collect2,;t t
16105 s,@libgcc_visibility@,$libgcc_visibility,;t t
16107 s,@zlibdir@,$zlibdir,;t t
16108 s,@zlibinc@,$zlibinc,;t t
16109 s,@MAINT@,$MAINT,;t t
16110 s,@gcc_tooldir@,$gcc_tooldir,;t t
16111 s,@dollar@,$dollar,;t t
16112 s,@slibdir@,$slibdir,;t t
16113 s,@objdir@,$objdir,;t t
16114 s,@subdirs@,$subdirs,;t t
16115 s,@srcdir@,$srcdir,;t t
16116 s,@all_boot_languages@,$all_boot_languages,;t t
16117 s,@all_compilers@,$all_compilers,;t t
16118 s,@all_gtfiles@,$all_gtfiles,;t t
16119 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16120 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16121 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16122 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16123 s,@all_languages@,$all_languages,;t t
16124 s,@all_stagestuff@,$all_stagestuff,;t t
16125 s,@build_exeext@,$build_exeext,;t t
16126 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16127 s,@build_xm_file_list@,$build_xm_file_list,;t t
16128 s,@build_xm_include_list@,$build_xm_include_list,;t t
16129 s,@build_xm_defines@,$build_xm_defines,;t t
16130 s,@check_languages@,$check_languages,;t t
16131 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16132 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16133 s,@cpp_install_dir@,$cpp_install_dir,;t t
16134 s,@xmake_file@,$xmake_file,;t t
16135 s,@tmake_file@,$tmake_file,;t t
16136 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16137 s,@extra_headers_list@,$extra_headers_list,;t t
16138 s,@extra_objs@,$extra_objs,;t t
16139 s,@extra_parts@,$extra_parts,;t t
16140 s,@extra_passes@,$extra_passes,;t t
16141 s,@extra_programs@,$extra_programs,;t t
16142 s,@float_h_file@,$float_h_file,;t t
16143 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16144 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16145 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16146 s,@host_exeext@,$host_exeext,;t t
16147 s,@host_xm_file_list@,$host_xm_file_list,;t t
16148 s,@host_xm_include_list@,$host_xm_include_list,;t t
16149 s,@host_xm_defines@,$host_xm_defines,;t t
16150 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16151 s,@install@,$install,;t t
16152 s,@lang_opt_files@,$lang_opt_files,;t t
16153 s,@lang_specs_files@,$lang_specs_files,;t t
16154 s,@lang_tree_files@,$lang_tree_files,;t t
16155 s,@local_prefix@,$local_prefix,;t t
16156 s,@md_file@,$md_file,;t t
16157 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16158 s,@out_file@,$out_file,;t t
16159 s,@out_object_file@,$out_object_file,;t t
16160 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16161 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16162 s,@thread_file@,$thread_file,;t t
16163 s,@tm_file_list@,$tm_file_list,;t t
16164 s,@tm_include_list@,$tm_include_list,;t t
16165 s,@tm_defines@,$tm_defines,;t t
16166 s,@tm_p_file_list@,$tm_p_file_list,;t t
16167 s,@tm_p_include_list@,$tm_p_include_list,;t t
16168 s,@xm_file_list@,$xm_file_list,;t t
16169 s,@xm_include_list@,$xm_include_list,;t t
16170 s,@xm_defines@,$xm_defines,;t t
16171 s,@c_target_objs@,$c_target_objs,;t t
16172 s,@cxx_target_objs@,$cxx_target_objs,;t t
16173 s,@target_cpu_default@,$target_cpu_default,;t t
16174 s,@GMPLIBS@,$GMPLIBS,;t t
16175 s,@GMPINC@,$GMPINC,;t t
16176 s,@LIBOBJS@,$LIBOBJS,;t t
16177 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16178 /@language_hooks@/r $language_hooks
16179 s,@language_hooks@,,;t t
16184 cat >>$CONFIG_STATUS <<\_ACEOF
16185 # Split the substitutions into bite-sized pieces for seds with
16186 # small command number limits, like on Digital OSF/1 and HP-UX.
16187 ac_max_sed_lines
=48
16188 ac_sed_frag
=1 # Number of current file.
16189 ac_beg
=1 # First line for current file.
16190 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16193 while $ac_more_lines; do
16194 if test $ac_beg -gt 1; then
16195 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16197 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16199 if test ! -s $tmp/subs.frag
; then
16200 ac_more_lines
=false
16202 # The purpose of the label and of the branching condition is to
16203 # speed up the sed processing (if there are no `@' at all, there
16204 # is no need to browse any of the substitutions).
16205 # These are the two extra sed commands mentioned above.
16207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16208 if test -z "$ac_sed_cmds"; then
16209 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16211 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16213 ac_sed_frag
=`expr $ac_sed_frag + 1`
16215 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16218 if test -z "$ac_sed_cmds"; then
16221 fi # test -n "$CONFIG_FILES"
16224 cat >>$CONFIG_STATUS <<\_ACEOF
16225 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16226 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16228 - |
*:- |
*:-:* ) # input from stdin
16230 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16231 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16232 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16233 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16234 * ) ac_file_in
=$ac_file.
in ;;
16237 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16238 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16239 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16240 X"$ac_file" : 'X\(//\)[^/]' \| \
16241 X"$ac_file" : 'X\(//\)$' \| \
16242 X"$ac_file" : 'X\(/\)' \| \
16243 . : '\(.\)' 2>/dev/null ||
16245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16247 /^X\(\/\/\)$/{ s//\1/; q; }
16248 /^X\(\/\).*/{ s//\1/; q; }
16250 { if $as_mkdir_p; then
16255 while test ! -d "$as_dir"; do
16256 as_dirs
="$as_dir $as_dirs"
16257 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16258 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16259 X"$as_dir" : 'X\(//\)[^/]' \| \
16260 X"$as_dir" : 'X\(//\)$' \| \
16261 X"$as_dir" : 'X\(/\)' \| \
16262 . : '\(.\)' 2>/dev/null ||
16264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16266 /^X\(\/\/\)$/{ s//\1/; q; }
16267 /^X\(\/\).*/{ s//\1/; q; }
16270 test ! -n "$as_dirs" || mkdir
$as_dirs
16271 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16272 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16273 { (exit 1); exit 1; }; }; }
16277 if test "$ac_dir" != .
; then
16278 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16279 # A "../" for each directory in $ac_dir_suffix.
16280 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16282 ac_dir_suffix
= ac_top_builddir
=
16286 .
) # No --srcdir option. We are building in place.
16288 if test -z "$ac_top_builddir"; then
16291 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16293 [\\/]* | ?
:[\\/]* ) # Absolute path.
16294 ac_srcdir
=$srcdir$ac_dir_suffix;
16295 ac_top_srcdir
=$srcdir ;;
16296 *) # Relative path.
16297 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16298 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16301 # Do not use `cd foo && pwd` to compute absolute paths, because
16302 # the directories may not exist.
16304 .
) ac_abs_builddir
="$ac_dir";;
16307 .
) ac_abs_builddir
=`pwd`;;
16308 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16309 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16312 case $ac_abs_builddir in
16313 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16315 case ${ac_top_builddir}.
in
16316 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16317 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16318 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16321 case $ac_abs_builddir in
16322 .
) ac_abs_srcdir
=$ac_srcdir;;
16325 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16326 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16327 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16330 case $ac_abs_builddir in
16331 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16333 case $ac_top_srcdir in
16334 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16335 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16336 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16342 if test x
"$ac_file" != x-
; then
16343 { echo "$as_me:$LINENO: creating $ac_file" >&5
16344 echo "$as_me: creating $ac_file" >&6;}
16347 # Let's still pretend it is `configure' which instantiates (i.e., don't
16348 # use $as_me), people would be surprised to read:
16349 # /* config.h. Generated by config.status. */
16350 if test x
"$ac_file" = x-
; then
16353 configure_input
="$ac_file. "
16355 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16356 sed 's,.*/,,'` by configure."
16358 # First look for the input files in the build tree, otherwise in the
16360 ac_file_inputs
=`IFS=:
16361 for f in $ac_file_in; do
16363 -) echo $tmp/stdin ;;
16365 # Absolute (can't be DOS-style, as IFS=:)
16366 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16367 echo "$as_me: error: cannot find input file: $f" >&2;}
16368 { (exit 1); exit 1; }; }
16371 if test -f "$f"; then
16374 elif test -f "$srcdir/$f"; then
16379 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16380 echo "$as_me: error: cannot find input file: $f" >&2;}
16381 { (exit 1); exit 1; }; }
16384 done` ||
{ (exit 1); exit 1; }
16386 cat >>$CONFIG_STATUS <<_ACEOF
16390 cat >>$CONFIG_STATUS <<\_ACEOF
16392 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16393 s
,@configure_input@
,$configure_input,;t t
16394 s
,@srcdir@
,$ac_srcdir,;t t
16395 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16396 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16397 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16398 s
,@builddir@
,$ac_builddir,;t t
16399 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16400 s
,@top_builddir@
,$ac_top_builddir,;t t
16401 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16402 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16404 if test x"$ac_file" != x-; then
16405 mv $tmp/out $ac_file
16413 cat >>$CONFIG_STATUS <<\_ACEOF
16416 # CONFIG_HEADER section.
16419 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16420 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16422 # ac_d sets the value in "#define NAME VALUE" lines.
16423 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16424 ac_dB
='[ ].*$,\1#\2'
16427 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16428 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16429 ac_uB
='$,\1#\2define\3'
16433 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16434 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16436 - |
*:- |
*:-:* ) # input from stdin
16438 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16439 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16440 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16441 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16442 * ) ac_file_in
=$ac_file.
in ;;
16445 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16446 echo "$as_me: creating $ac_file" >&6;}
16448 # First look for the input files in the build tree, otherwise in the
16450 ac_file_inputs
=`IFS=:
16451 for f in $ac_file_in; do
16453 -) echo $tmp/stdin ;;
16455 # Absolute (can't be DOS-style, as IFS=:)
16456 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16457 echo "$as_me: error: cannot find input file: $f" >&2;}
16458 { (exit 1); exit 1; }; }
16459 # Do quote $f, to prevent DOS paths from being IFS'd.
16462 if test -f "$f"; then
16465 elif test -f "$srcdir/$f"; then
16470 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16471 echo "$as_me: error: cannot find input file: $f" >&2;}
16472 { (exit 1); exit 1; }; }
16475 done` ||
{ (exit 1); exit 1; }
16476 # Remove the trailing spaces.
16477 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16481 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16482 # `conftest.undefs', that substitutes the proper values into
16483 # config.h.in to produce config.h. The first handles `#define'
16484 # templates, and the second `#undef' templates.
16485 # And first: Protect against being on the right side of a sed subst in
16486 # config.status. Protect against being in an unquoted here document
16487 # in config.status.
16488 rm -f conftest.defines conftest.undefs
16489 # Using a here document instead of a string reduces the quoting nightmare.
16490 # Putting comments in sed scripts is not portable.
16492 # `end' is used to avoid that the second main sed command (meant for
16493 # 0-ary CPP macros) applies to n-ary macro definitions.
16494 # See the Autoconf documentation for `clear'.
16495 cat >confdef2sed.
sed <<\_ACEOF
16500 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16502 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16505 # If some macros were called several times there might be several times
16506 # the same #defines, which is useless. Nevertheless, we may not want to
16507 # sort them, since we want the *last* AC-DEFINE to be honored.
16508 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16509 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16510 rm -f confdef2sed.sed
16512 # This sed command replaces #undef with comments. This is necessary, for
16513 # example, in the case of _POSIX_SOURCE, which is predefined and required
16514 # on some systems where configure will not decide to define it.
16515 cat >>conftest.undefs <<\_ACEOF
16516 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16519 # Break up conftest.defines because some shells have a limit on the size
16520 # of here documents, and old seds have small limits too (100 cmds).
16521 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16522 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16523 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16524 echo ' :' >>$CONFIG_STATUS
16525 rm -f conftest.tail
16526 while grep . conftest.defines >/dev/null
16528 # Write a limited-size here document to $tmp/defines.sed.
16529 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16530 # Speed up: don't consider the non `#define' lines.
16531 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16532 # Work around the forget-to-reset-the-flag bug.
16533 echo 't clr' >>$CONFIG_STATUS
16534 echo ': clr' >>$CONFIG_STATUS
16535 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16537 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16539 mv $tmp/out $tmp/in
16541 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16542 rm -f conftest.defines
16543 mv conftest.
tail conftest.defines
16545 rm -f conftest.defines
16546 echo ' fi # grep' >>$CONFIG_STATUS
16547 echo >>$CONFIG_STATUS
16549 # Break up conftest.undefs because some shells have a limit on the size
16550 # of here documents, and old seds have small limits too (100 cmds).
16551 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16552 rm -f conftest.
tail
16553 while grep . conftest.undefs
>/dev
/null
16555 # Write a limited-size here document to $tmp/undefs.sed.
16556 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16557 # Speed up: don't consider the non
`#undef'
16558 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16559 # Work around the forget-to-reset-the-flag bug.
16560 echo 't clr' >>$CONFIG_STATUS
16561 echo ': clr' >>$CONFIG_STATUS
16562 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16564 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16566 mv $tmp/out $tmp/in
16568 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16569 rm -f conftest.undefs
16570 mv conftest.tail conftest.undefs
16572 rm -f conftest.undefs
16574 cat >>$CONFIG_STATUS <<\_ACEOF
16575 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16576 # use $as_me), people would be surprised to read:
16577 # /* config.h. Generated by config.status. */
16578 if test x
"$ac_file" = x-
; then
16579 echo "/* Generated by configure. */" >$tmp/config.h
16581 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16583 cat $tmp/in >>$tmp/config.h
16585 if test x
"$ac_file" != x-
; then
16586 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
16587 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16588 echo "$as_me: $ac_file is unchanged" >&6;}
16590 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16591 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16592 X"$ac_file" : 'X\(//\)[^/]' \| \
16593 X"$ac_file" : 'X\(//\)$' \| \
16594 X"$ac_file" : 'X\(/\)' \| \
16595 . : '\(.\)' 2>/dev/null ||
16597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16598 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16599 /^X\(\/\/\)$/{ s//\1/; q; }
16600 /^X\(\/\).*/{ s//\1/; q; }
16602 { if $as_mkdir_p; then
16607 while test ! -d "$as_dir"; do
16608 as_dirs
="$as_dir $as_dirs"
16609 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16611 X"$as_dir" : 'X\(//\)[^/]' \| \
16612 X"$as_dir" : 'X\(//\)$' \| \
16613 X"$as_dir" : 'X\(/\)' \| \
16614 . : '\(.\)' 2>/dev/null ||
16616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16618 /^X\(\/\/\)$/{ s//\1/; q; }
16619 /^X\(\/\).*/{ s//\1/; q; }
16622 test ! -n "$as_dirs" || mkdir
$as_dirs
16623 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16624 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16625 { (exit 1); exit 1; }; }; }
16628 mv $tmp/config.h
$ac_file
16632 rm -f $tmp/config.h
16636 cat >>$CONFIG_STATUS <<\_ACEOF
16639 # CONFIG_COMMANDS section.
16641 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
16642 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16643 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16644 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16645 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16646 X"$ac_dest" : 'X\(//\)[^/]' \| \
16647 X"$ac_dest" : 'X\(//\)$' \| \
16648 X"$ac_dest" : 'X\(/\)' \| \
16649 . : '\(.\)' 2>/dev/null ||
16651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16652 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16653 /^X\(\/\/\)$/{ s//\1/; q; }
16654 /^X\(\/\).*/{ s//\1/; q; }
16656 { if $as_mkdir_p; then
16661 while test ! -d "$as_dir"; do
16662 as_dirs
="$as_dir $as_dirs"
16663 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16665 X"$as_dir" : 'X\(//\)[^/]' \| \
16666 X"$as_dir" : 'X\(//\)$' \| \
16667 X"$as_dir" : 'X\(/\)' \| \
16668 . : '\(.\)' 2>/dev/null ||
16670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16671 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16672 /^X\(\/\/\)$/{ s//\1/; q; }
16673 /^X\(\/\).*/{ s//\1/; q; }
16676 test ! -n "$as_dirs" || mkdir
$as_dirs
16677 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16678 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16679 { (exit 1); exit 1; }; }; }
16683 if test "$ac_dir" != .
; then
16684 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16685 # A "../" for each directory in $ac_dir_suffix.
16686 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16688 ac_dir_suffix
= ac_top_builddir
=
16692 .
) # No --srcdir option. We are building in place.
16694 if test -z "$ac_top_builddir"; then
16697 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16699 [\\/]* | ?
:[\\/]* ) # Absolute path.
16700 ac_srcdir
=$srcdir$ac_dir_suffix;
16701 ac_top_srcdir
=$srcdir ;;
16702 *) # Relative path.
16703 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16704 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16707 # Do not use `cd foo && pwd` to compute absolute paths, because
16708 # the directories may not exist.
16710 .
) ac_abs_builddir
="$ac_dir";;
16713 .
) ac_abs_builddir
=`pwd`;;
16714 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16715 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16718 case $ac_abs_builddir in
16719 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16721 case ${ac_top_builddir}.
in
16722 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16723 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16724 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16727 case $ac_abs_builddir in
16728 .
) ac_abs_srcdir
=$ac_srcdir;;
16731 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16732 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16733 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16736 case $ac_abs_builddir in
16737 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16739 case $ac_top_srcdir in
16740 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16741 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16742 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16747 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16748 echo "$as_me: executing $ac_dest commands" >&6;}
16751 case ${CONFIG_HEADERS} in
16752 *auto-host.h
:config.
in*)
16755 # Make sure all the subdirs exist.
16756 for d
in $subdirs doc build
16758 test -d $d || mkdir
$d
16760 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16761 # bootstrapping and the installation procedure can still use
16762 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16763 # FLAGS_TO_PASS has been modified to solve the problem there.
16764 # This is virtually a duplicate of what happens in configure.lang; we do
16765 # an extra check to make sure this only happens if ln -s can be used.
16768 for d
in ${subdirs} ; do
16769 STARTDIR
=`${PWDCMD-pwd}`
16771 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16774 $LN_S ..
/$t $t 2>/dev
/null
16785 cat >>$CONFIG_STATUS <<\_ACEOF
16787 { (exit 0); exit 0; }
16789 chmod +x
$CONFIG_STATUS
16790 ac_clean_files
=$ac_clean_files_save
16793 # configure is writing to config.log, and then calls config.status.
16794 # config.status does its own redirection, appending to config.log.
16795 # Unfortunately, on DOS this fails, as config.log is still kept open
16796 # by configure, so config.status won't be able to write to it; its
16797 # output is simply discarded. So we exec the FD to /dev/null,
16798 # effectively closing config.log, so it can be properly (re)opened and
16799 # appended to by config.status. When coming back to configure, we
16800 # need to make the FD available again.
16801 if test "$no_create" != yes; then
16803 ac_config_status_args
=
16804 test "$silent" = yes &&
16805 ac_config_status_args
="$ac_config_status_args --quiet"
16807 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16809 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16810 # would make configure fail if this is the last instruction.
16811 $ac_cs_success ||
{ (exit 1); exit 1; }