2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="tree.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 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 build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP GNATBIND ac_ct_GNATBIND strict1_warn warn_cflags WERROR nocommon_flag EGREP 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 LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO libgcc_visibility gthread_flags GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir docobjdir parsedir 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_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_extra_gcc_objs 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 symbolic_link 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 target_noncanonical c_target_objs cxx_target_objs target_cpu_default LIBOBJS LTLIBOBJS'
312 ac_subst_files='language_hooks'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 --target=TARGET configure for building compilers for TARGET [HOST]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-generated-files-in-srcdir Put generated files in source dir
853 --enable-werror enable -Werror in bootstrap stage2 and later
854 --enable-checking=LIST
855 enable expensive run-time checks. With LIST,
856 enable only specific categories of checks.
857 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
858 default is misc,tree,gc,rtlflag
859 --enable-coverage=LEVEL
860 enable compiler\'s code coverage collection.
861 Use to measure compiler performance and locate
862 unused parts of the compiler. With LEVEL, specify
863 optimization. Values are opt, noopt,
865 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
866 --enable-multilib enable library support for multiple ABIs
867 --enable-__cxa_atexit enable __cxa_atexit for C++
868 --enable-threads enable thread usage for target GCC
869 --enable-threads=LIB use LIB thread package for target GCC
870 --enable-objc-gc enable the use of Boehm's garbage collector with
871 the GNU Objective-C runtime
872 --disable-shared don't provide a shared libgcc
873 --enable-intermodule build the compiler in one step
874 --enable-initfini-array use .init_array/.fini_array sections
875 --enable-sjlj-exceptions
876 arrange to use setjmp/longjmp exception handling
877 --enable-libunwind-exceptions force use libunwind for exceptions
878 --disable-win32-registry
879 disable lookup of installation paths in the
880 Registry on Windows hosts
881 --enable-win32-registry enable registry lookup (default)
882 --enable-win32-registry=KEY
883 use KEY instead of GCC version as the last portion
885 --enable-maintainer-mode
886 enable make rules and dependencies not useful
887 (and sometimes confusing) to the casual installer
888 --enable-version-specific-runtime-libs
889 specify that runtime libraries should be
890 installed in a compiler-specific directory
893 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
894 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
895 --with-local-prefix=DIR specifies directory to put local include
896 --with-gxx-include-dir=DIR
897 specifies directory to put g++ header files
898 --with-cpp-install-dir=DIR
899 install the user visible C preprocessor in DIR
900 (relative to PREFIX) as well as PREFIX/bin
901 --with-gnu-ld arrange to work with GNU ld.
902 --with-ld arrange to use the specified ld (full pathname)
903 --with-gnu-as arrange to work with GNU as
904 --with-as arrange to use the specified as (full pathname)
905 --with-stabs arrange to use stabs instead of host debug format
906 --with-dwarf2 force the default debug format to be DWARF 2
907 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
908 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
909 --with-gc={simple,page,zone} choose the garbage collection mechanism to use
911 --with-system-zlib use installed libz
912 --with-slibdir=DIR shared libraries in DIR LIBDIR
914 Some influential environment variables:
915 CC C compiler command
916 CFLAGS C compiler flags
917 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
918 nonstandard directory <lib dir>
919 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
920 headers in a nonstandard directory <include dir>
923 Use these variables to override the choices made by `configure' or to help
924 it to find libraries and programs with nonstandard names/locations.
929 if test "$ac_init_help" = "recursive"; then
930 # If there are subdirs, report their specific --help.
932 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
933 test -d $ac_dir || continue
936 if test "$ac_dir" != .; then
937 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
938 # A "../" for each directory in $ac_dir_suffix.
939 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
941 ac_dir_suffix= ac_top_builddir=
945 .) # No --srcdir option. We are building in place.
947 if test -z "$ac_top_builddir"; then
950 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
952 [\\/]* | ?:[\\/]* ) # Absolute path.
953 ac_srcdir=$srcdir$ac_dir_suffix;
954 ac_top_srcdir=$srcdir ;;
956 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
957 ac_top_srcdir=$ac_top_builddir$srcdir ;;
959 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
961 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
962 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
963 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
964 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
989 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
990 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1001 It was created by $as_me, which was
1002 generated by GNU Autoconf 2.57. Invocation command line was
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 test -z "$as_dir" && as_dir=.
1037 echo "PATH: $as_dir"
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1061 ac_must_keep_next=false
1067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078 if test $ac_must_keep_next = true; then
1079 ac_must_keep_next=false # Got value, back to normal.
1082 *=* | --config-cache | -C | -disable-* | --disable-* \
1083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085 | -with-* | --with-* | -without-* | --without-* | --x)
1086 case "$ac_configure_args0 " in
1087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 -* ) ac_must_keep_next=true ;;
1093 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094 # Get rid of the leading space.
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log. We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109 # Save into config.log some information that might help in debugging.
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1119 # The following way of writing the cache mishandles newlines in values,
1122 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1142 for ac_var in $ac_subst_vars
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1149 if test -n "$ac_subst_files"; then
1156 for ac_var in $ac_subst_files
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1164 if test -s confdefs.h; then
1171 sed "/^$/d" confdefs.h | sort
1174 test "$ac_signal" != 0 &&
1175 echo "$as_me: caught signal $ac_signal"
1176 echo "$as_me: exit $exit_status"
1178 rm -f core *.core &&
1179 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 for ac_signal in 1 2 13 15; do
1183 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 # Predefined preprocessor variables.
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222 if test "x$prefix" != xNONE; then
1223 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228 for ac_site_file in $CONFIG_SITE; do
1229 if test -r "$ac_site_file"; then
1230 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232 sed 's/^/| /' "$ac_site_file" >&5
1237 if test -r "$cache_file"; then
1238 # Some versions of bash will fail to source /dev/null (special
1239 # files actually), so we avoid doing that.
1240 if test -f "$cache_file"; then
1241 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1244 [\\/]* | ?:[\\/]* ) . $cache_file;;
1245 *) . ./$cache_file;;
1249 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1254 # Check that the precious variables saved in the cache have kept the same
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260 eval ac_new_set=\$ac_env_${ac_var}_set
1261 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262 eval ac_new_val="\$ac_env_${ac_var}_value"
1263 case $ac_old_set,$ac_new_set in
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1274 if test "x$ac_old_val" != "x$ac_new_val"; then
1275 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1278 echo "$as_me: former value: $ac_old_val" >&2;}
1279 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1280 echo "$as_me: current value: $ac_new_val" >&2;}
1281 ac_cache_corrupted=:
1284 # Pass precious variables to config.status.
1285 if test "$ac_new_set" = set; then
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 *) ac_arg=$ac_var=$ac_new_val ;;
1291 case " $ac_configure_args " in
1292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1293 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297 if $ac_cache_corrupted; then
1298 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302 { (exit 1); exit 1; }; }
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1333 # Determine the host, build, and target systems
1335 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1336 if test -f $ac_dir/install-sh; then
1338 ac_install_sh="$ac_aux_dir/install-sh -c"
1340 elif test -f $ac_dir/install.sh; then
1342 ac_install_sh="$ac_aux_dir/install.sh -c"
1344 elif test -f $ac_dir/shtool; then
1346 ac_install_sh="$ac_aux_dir/shtool install -c"
1350 if test -z "$ac_aux_dir"; then
1351 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1352 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1353 { (exit 1); exit 1; }; }
1355 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1356 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1357 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359 # Make sure we can run config.sub.
1360 $ac_config_sub sun4 >/dev/null 2>&1 ||
1361 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1362 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1363 { (exit 1); exit 1; }; }
1365 echo "$as_me:$LINENO: checking build system type" >&5
1366 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1367 if test "${ac_cv_build+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 ac_cv_build_alias=$build_alias
1371 test -z "$ac_cv_build_alias" &&
1372 ac_cv_build_alias=`$ac_config_guess`
1373 test -z "$ac_cv_build_alias" &&
1374 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1375 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1376 { (exit 1); exit 1; }; }
1377 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1378 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1379 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1380 { (exit 1); exit 1; }; }
1383 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1384 echo "${ECHO_T}$ac_cv_build" >&6
1386 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1387 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1388 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391 echo "$as_me:$LINENO: checking host system type" >&5
1392 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1393 if test "${ac_cv_host+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 ac_cv_host_alias=$host_alias
1397 test -z "$ac_cv_host_alias" &&
1398 ac_cv_host_alias=$ac_cv_build_alias
1399 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1400 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1401 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1402 { (exit 1); exit 1; }; }
1405 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1406 echo "${ECHO_T}$ac_cv_host" >&6
1408 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1409 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1410 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413 echo "$as_me:$LINENO: checking target system type" >&5
1414 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1415 if test "${ac_cv_target+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1418 ac_cv_target_alias=$target_alias
1419 test "x$ac_cv_target_alias" = "x" &&
1420 ac_cv_target_alias=$ac_cv_host_alias
1421 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1423 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1427 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1428 echo "${ECHO_T}$ac_cv_target" >&6
1429 target=$ac_cv_target
1430 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435 # The aliases save the names the user supplied, while $host etc.
1436 # will get canonicalized.
1437 test -n "$target_alias" &&
1438 test "$program_prefix$program_suffix$program_transform_name" = \
1440 program_prefix=${target_alias}-
1442 # Determine the noncanonical target name, for directory use.
1443 case ${build_alias} in
1444 "") build_noncanonical=${build} ;;
1445 *) build_noncanonical=${build_alias} ;;
1448 case ${host_alias} in
1449 "") host_noncanonical=${build_noncanonical} ;;
1450 *) host_noncanonical=${host_alias} ;;
1453 case ${target_alias} in
1454 "") target_noncanonical=${host_noncanonical} ;;
1455 *) target_noncanonical=${target_alias} ;;
1459 # Determine the target- and build-specific subdirectories
1460 # Prefix 'build-' so this never conflicts with target_subdir.
1461 build_subdir="build-${build_noncanonical}"
1462 # Not really a subdirectory, but here for completeness.
1465 target_subdir=${target_noncanonical}
1468 # Set program_transform_name
1469 test "$program_prefix" != NONE &&
1470 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1471 # Use a double $ so make ignores it.
1472 test "$program_suffix" != NONE &&
1473 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1474 # Double any \ or $. echo might interpret backslashes.
1475 # By default was `s,x,x', remove it if useless.
1476 cat <<\_ACEOF >conftest.sed
1477 s/[\\$]/&&/g;s/;s,x,x,$//
1479 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1483 # Check for bogus environment variables.
1484 # Test if LIBRARY_PATH contains the notation for the current directory
1485 # since this would lead to problems installing/building glibc.
1486 # LIBRARY_PATH contains the current directory if one of the following
1488 # - one of the terminals (":" and ";") is the first or last sign
1489 # - two terminals occur directly after each other
1490 # - the path contains an element with a dot in it
1491 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1492 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1493 case ${LIBRARY_PATH} in
1494 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1495 library_path_setting="contains current directory"
1498 library_path_setting="ok"
1501 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1502 echo "${ECHO_T}$library_path_setting" >&6
1503 if test "$library_path_setting" != "ok"; then
1504 { { echo "$as_me:$LINENO: error:
1505 *** LIBRARY_PATH shouldn't contain the current directory when
1506 *** building gcc. Please change the environment variable
1507 *** and run configure again." >&5
1508 echo "$as_me: error:
1509 *** LIBRARY_PATH shouldn't contain the current directory when
1510 *** building gcc. Please change the environment variable
1511 *** and run configure again." >&2;}
1512 { (exit 1); exit 1; }; }
1515 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1516 # since this would lead to problems installing/building glibc.
1517 # GCC_EXEC_PREFIX contains the current directory if one of the following
1519 # - one of the terminals (":" and ";") is the first or last sign
1520 # - two terminals occur directly after each other
1521 # - the path contains an element with a dot in it
1522 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1523 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1524 case ${GCC_EXEC_PREFIX} in
1525 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1526 gcc_exec_prefix_setting="contains current directory"
1529 gcc_exec_prefix_setting="ok"
1532 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1533 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1534 if test "$gcc_exec_prefix_setting" != "ok"; then
1535 { { echo "$as_me:$LINENO: error:
1536 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1537 *** building gcc. Please change the environment variable
1538 *** and run configure again." >&5
1539 echo "$as_me: error:
1540 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1541 *** building gcc. Please change the environment variable
1542 *** and run configure again." >&2;}
1543 { (exit 1); exit 1; }; }
1550 # Specify the local prefix
1553 # Check whether --with-local-prefix or --without-local-prefix was given.
1554 if test "${with_local_prefix+set}" = set; then
1555 withval="$with_local_prefix"
1556 case "${withval}" in
1557 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1558 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1559 { (exit 1); exit 1; }; } ;;
1561 *) local_prefix=$with_local_prefix ;;
1565 # Default local prefix if it is empty
1566 if test x$local_prefix = x; then
1567 local_prefix=/usr/local
1570 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1571 # passed in by the toplevel make and thus we'd get different behavior
1572 # depending on where we built the sources.
1573 gcc_gxx_include_dir=
1574 # Specify the g++ header file directory
1576 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1577 if test "${with_gxx_include_dir+set}" = set; then
1578 withval="$with_gxx_include_dir"
1579 case "${withval}" in
1580 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1581 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1582 { (exit 1); exit 1; }; } ;;
1584 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1588 if test x${gcc_gxx_include_dir} = x; then
1589 if test x${enable_version_specific_runtime_libs} = xyes; then
1590 gcc_gxx_include_dir='${libsubdir}/include/c++'
1592 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1593 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1598 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1599 if test "${with_cpp_install_dir+set}" = set; then
1600 withval="$with_cpp_install_dir"
1601 if test x$withval = xyes; then
1602 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1603 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1604 { (exit 1); exit 1; }; }
1605 elif test x$withval != xno; then
1606 cpp_install_dir=$withval
1610 # We would like to our source tree to be readonly. However when releases or
1611 # pre-releases are generated, the flex/bison generated files as well as the
1612 # various formats of manuals need to be included along with the rest of the
1613 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1616 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1617 if test "${enable_generated_files_in_srcdir+set}" = set; then
1618 enableval="$enable_generated_files_in_srcdir"
1619 case ${enableval} in
1620 no) parsedir='$(objdir)'; docobjdir='$(objdir)/doc';;
1621 *) parsedir='$(srcdir)'; docobjdir='$(srcdir)/doc';;
1624 parsedir='$(objdir)'; docobjdir='$(objdir)/doc';
1627 # -------------------
1628 # Find default linker
1629 # -------------------
1633 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1634 if test "${with_gnu_ld+set}" = set; then
1635 withval="$with_gnu_ld"
1636 gnu_ld_flag="$with_gnu_ld"
1641 # With pre-defined ld
1643 # Check whether --with-ld or --without-ld was given.
1644 if test "${with_ld+set}" = set; then
1646 DEFAULT_LINKER="$with_ld"
1648 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1649 if test ! -x "$DEFAULT_LINKER"; then
1650 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1651 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1652 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1656 cat >>confdefs.h <<_ACEOF
1657 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1662 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1663 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1664 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1665 if test x"$gnu_ld_flag" = x"no"; then
1666 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1667 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1669 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1670 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1677 # ----------------------
1678 # Find default assembler
1679 # ----------------------
1683 # Check whether --with-gnu-as or --without-gnu-as was given.
1684 if test "${with_gnu_as+set}" = set; then
1685 withval="$with_gnu_as"
1686 gas_flag="$with_gnu_as"
1692 # Check whether --with-as or --without-as was given.
1693 if test "${with_as+set}" = set; then
1695 DEFAULT_ASSEMBLER="$with_as"
1697 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1698 if test ! -x "$DEFAULT_ASSEMBLER"; then
1699 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1700 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1701 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1705 cat >>confdefs.h <<_ACEOF
1706 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1711 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1712 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1713 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1714 if test x"$gas_flag" = x"no"; then
1715 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1716 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1718 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1719 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1730 # Find the native compiler
1732 ac_cpp='$CPP $CPPFLAGS'
1733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1736 if test -n "$ac_tool_prefix"; then
1737 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1738 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 if test -n "$CC"; then
1745 ac_cv_prog_CC="$CC" # Let the user override the test.
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764 if test -n "$CC"; then
1765 echo "$as_me:$LINENO: result: $CC" >&5
1766 echo "${ECHO_T}$CC" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1773 if test -z "$ac_cv_prog_CC"; then
1775 # Extract the first word of "gcc", so it can be a program name with args.
1776 set dummy gcc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC="gcc"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1815 if test -z "$CC"; then
1816 if test -n "$ac_tool_prefix"; then
1817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1818 set dummy ${ac_tool_prefix}cc; ac_word=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC="${ac_tool_prefix}cc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1853 if test -z "$ac_cv_prog_CC"; then
1855 # Extract the first word of "cc", so it can be a program name with args.
1856 set dummy cc; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 if test -n "$ac_ct_CC"; then
1863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_CC="cc"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882 if test -n "$ac_ct_CC"; then
1883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884 echo "${ECHO_T}$ac_ct_CC" >&6
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1896 if test -z "$CC"; then
1897 # Extract the first word of "cc", so it can be a program name with args.
1898 set dummy cc; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1916 ac_prog_rejected=yes
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 if test $ac_prog_rejected = yes; then
1927 # We found a bogon in the path, so make sure we never use it.
1928 set dummy $ac_cv_prog_CC
1930 if test $# != 0; then
1931 # We chose a different compiler from the bogus one.
1932 # However, it has the same basename, so the bogon will be chosen
1933 # first if we set CC to just the basename; use the full file name.
1935 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1941 if test -n "$CC"; then
1942 echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1950 if test -z "$CC"; then
1951 if test -n "$ac_tool_prefix"; then
1954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$CC"; then
1962 ac_cv_prog_CC="$CC" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1989 test -n "$CC" && break
1992 if test -z "$CC"; then
1996 # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy $ac_prog; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$ac_ct_CC"; then
2004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_ac_ct_CC="$ac_prog"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2031 test -n "$ac_ct_CC" && break
2040 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2041 See \`config.log' for more details." >&5
2042 echo "$as_me: error: no acceptable C compiler found in \$PATH
2043 See \`config.log' for more details." >&2;}
2044 { (exit 1); exit 1; }; }
2046 # Provide some information about the compiler.
2047 echo "$as_me:$LINENO:" \
2048 "checking for C compiler version" >&5
2049 ac_compiler=`set X $ac_compile; echo $2`
2050 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2051 (eval $ac_compiler --version </dev/null >&5) 2>&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }
2055 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2056 (eval $ac_compiler -v </dev/null >&5) 2>&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }
2060 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2061 (eval $ac_compiler -V </dev/null >&5) 2>&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }
2066 cat >conftest.$ac_ext <<_ACEOF
2067 #line $LINENO "configure"
2070 cat confdefs.h >>conftest.$ac_ext
2071 cat >>conftest.$ac_ext <<_ACEOF
2072 /* end confdefs.h. */
2082 ac_clean_files_save=$ac_clean_files
2083 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2084 # Try to create an executable without -o first, disregard a.out.
2085 # It will help us diagnose broken compilers, and finding out an intuition
2087 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2088 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2089 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2091 (eval $ac_link_default) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 # Find the output, starting from the most likely. This scheme is
2096 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2099 # Be careful to initialize this variable, since it used to be cached.
2100 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2102 # b.out is created by i960 compilers.
2103 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2105 test -f "$ac_file" || continue
2107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2110 # This is the source file.
2113 # We found the default executable, but exeext='' is most
2117 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118 # FIXME: I believe we export ac_cv_exeext for Libtool,
2119 # but it would be cool to find out if it's true. Does anybody
2120 # maintain Libtool? --akim.
2128 echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2131 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: C compiler cannot create executables
2134 See \`config.log' for more details." >&2;}
2135 { (exit 77); exit 77; }; }
2138 ac_exeext=$ac_cv_exeext
2139 echo "$as_me:$LINENO: result: $ac_file" >&5
2140 echo "${ECHO_T}$ac_file" >&6
2142 # Check the compiler produces executables we can run. If not, either
2143 # the compiler is broken, or we cross compile.
2144 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2145 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2146 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2147 # If not cross compiling, check that we can run a simple program.
2148 if test "$cross_compiling" != yes; then
2149 if { ac_try='./$ac_file'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2157 if test "$cross_compiling" = maybe; then
2160 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2161 If you meant to cross compile, use \`--host'.
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'.
2165 See \`config.log' for more details." >&2;}
2166 { (exit 1); exit 1; }; }
2170 echo "$as_me:$LINENO: result: yes" >&5
2171 echo "${ECHO_T}yes" >&6
2173 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2174 ac_clean_files=$ac_clean_files_save
2175 # Check the compiler produces executables we can run. If not, either
2176 # the compiler is broken, or we cross compile.
2177 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2178 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2179 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2180 echo "${ECHO_T}$cross_compiling" >&6
2182 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2183 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2185 (eval $ac_link) 2>&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; then
2189 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2190 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2191 # work properly (i.e., refer to `conftest.exe'), while it won't with
2193 for ac_file in conftest.exe conftest conftest.*; do
2194 test -f "$ac_file" || continue
2196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2204 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2207 See \`config.log' for more details." >&2;}
2208 { (exit 1); exit 1; }; }
2211 rm -f conftest$ac_cv_exeext
2212 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2213 echo "${ECHO_T}$ac_cv_exeext" >&6
2215 rm -f conftest.$ac_ext
2216 EXEEXT=$ac_cv_exeext
2218 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2219 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2220 if test "${ac_cv_objext+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 cat >conftest.$ac_ext <<_ACEOF
2224 #line $LINENO "configure"
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h. */
2239 rm -f conftest.o conftest.obj
2240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241 (eval $ac_compile) 2>&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; then
2245 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2248 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2253 echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2256 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2259 See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2265 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2266 echo "${ECHO_T}$ac_cv_objext" >&6
2267 OBJEXT=$ac_cv_objext
2269 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2270 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2271 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 cat >conftest.$ac_ext <<_ACEOF
2275 #line $LINENO "configure"
2278 cat confdefs.h >>conftest.$ac_ext
2279 cat >>conftest.$ac_ext <<_ACEOF
2280 /* end confdefs.h. */
2293 rm -f conftest.$ac_objext
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 (eval $ac_compile) 2>&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2312 rm -f conftest.$ac_objext conftest.$ac_ext
2313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2316 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2317 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2318 GCC=`test $ac_compiler_gnu = yes && echo yes`
2319 ac_test_CFLAGS=${CFLAGS+set}
2320 ac_save_CFLAGS=$CFLAGS
2322 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2323 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2324 if test "${ac_cv_prog_cc_g+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 cat >conftest.$ac_ext <<_ACEOF
2328 #line $LINENO "configure"
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h. */
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); } &&
2349 { ac_try='test -s conftest.$ac_objext'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; }; then
2357 echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2362 rm -f conftest.$ac_objext conftest.$ac_ext
2364 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2365 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2366 if test "$ac_test_CFLAGS" = set; then
2367 CFLAGS=$ac_save_CFLAGS
2368 elif test $ac_cv_prog_cc_g = yes; then
2369 if test "$GCC" = yes; then
2375 if test "$GCC" = yes; then
2381 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2382 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2383 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 ac_cv_prog_cc_stdc=no
2388 cat >conftest.$ac_ext <<_ACEOF
2389 #line $LINENO "configure"
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2397 #include <sys/types.h>
2398 #include <sys/stat.h>
2399 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2400 struct buf { int x; };
2401 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2402 static char *e (p, i)
2408 static char *f (char * (*g) (char **, int), char **p, ...)
2413 s = g (p, va_arg (v,int));
2417 int test (int i, double x);
2418 struct s1 {int (*f) (int a);};
2419 struct s2 {int (*f) (double a);};
2420 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2426 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2431 # Don't try gcc -ansi; that turns off useful extensions and
2432 # breaks some systems' header files.
2433 # AIX -qlanglvl=ansi
2434 # Ultrix and OSF/1 -std1
2435 # HP-UX 10.20 and later -Ae
2436 # HP-UX older versions -Aa -D_HPUX_SOURCE
2437 # SVR4 -Xc -D__EXTENSIONS__
2438 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2440 CC="$ac_save_CC $ac_arg"
2441 rm -f conftest.$ac_objext
2442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443 (eval $ac_compile) 2>&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } &&
2447 { ac_try='test -s conftest.$ac_objext'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; }; then
2453 ac_cv_prog_cc_stdc=$ac_arg
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2460 rm -f conftest.$ac_objext
2462 rm -f conftest.$ac_ext conftest.$ac_objext
2467 case "x$ac_cv_prog_cc_stdc" in
2469 echo "$as_me:$LINENO: result: none needed" >&5
2470 echo "${ECHO_T}none needed" >&6 ;;
2472 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2473 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2474 CC="$CC $ac_cv_prog_cc_stdc" ;;
2477 # Some people use a C++ compiler to compile C. Since we use `exit',
2478 # in C++ we need to declare it. In case someone uses the same compiler
2479 # for both compiling C and C++ we need to have the C++ compiler decide
2480 # the declaration of exit, since it's the most demanding environment.
2481 cat >conftest.$ac_ext <<_ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); } &&
2492 { ac_try='test -s conftest.$ac_objext'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2498 for ac_declaration in \
2500 'extern "C" void std::exit (int) throw (); using std::exit;' \
2501 'extern "C" void std::exit (int); using std::exit;' \
2502 'extern "C" void exit (int) throw ();' \
2503 'extern "C" void exit (int);' \
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525 (eval $ac_compile) 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543 cat >conftest.$ac_ext <<_ACEOF
2544 #line $LINENO "configure"
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2573 echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2577 rm -f conftest.$ac_objext conftest.$ac_ext
2580 if test -n "$ac_declaration"; then
2581 echo '#ifdef __cplusplus' >>confdefs.h
2582 echo $ac_declaration >>confdefs.h
2583 echo '#endif' >>confdefs.h
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2591 rm -f conftest.$ac_objext conftest.$ac_ext
2593 ac_cpp='$CPP $CPPFLAGS'
2594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598 if test "x$CC" != xcc; then
2599 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2600 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2602 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2603 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2605 set dummy $CC; ac_cc=`echo $2 |
2606 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2607 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2626 # Make sure it works both with $CC and with simple cc.
2627 # We do the test twice because some compilers refuse to overwrite an
2628 # existing .o file with -o, though they will create one.
2629 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2630 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); };
2641 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2642 if test "x$CC" != xcc; then
2643 # Test first that cc exists at all.
2644 if { ac_try='cc -c conftest.$ac_ext >&5'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; }; then
2650 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2651 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); };
2665 # cc exists but doesn't like -o.
2666 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2671 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2676 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2677 echo "$as_me:$LINENO: result: yes" >&5
2678 echo "${ECHO_T}yes" >&6
2680 echo "$as_me:$LINENO: result: no" >&5
2681 echo "${ECHO_T}no" >&6
2683 cat >>confdefs.h <<\_ACEOF
2684 #define NO_MINUS_C_MINUS_O 1
2689 # autoconf is lame and doesn't give us any substitution variable for this.
2690 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2691 NO_MINUS_C_MINUS_O=yes
2693 OUTPUT_OPTION='-o $@'
2698 # -------------------------
2699 # Check C compiler features
2700 # -------------------------
2703 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2704 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2705 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 save_CFLAGS="$CFLAGS"
2709 CFLAGS="-Wno-long-long"
2710 cat >conftest.$ac_ext <<_ACEOF
2711 #line $LINENO "configure"
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2726 rm -f conftest.$ac_objext
2727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728 (eval $ac_compile) 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_prog_cc_no_long_long=yes
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2743 ac_cv_prog_cc_no_long_long=no
2745 rm -f conftest.$ac_objext conftest.$ac_ext
2746 CFLAGS="$save_CFLAGS"
2748 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2749 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2758 # On Suns, sometimes $CPP names a directory.
2759 if test -n "$CPP" && test -d "$CPP"; then
2762 if test -z "$CPP"; then
2763 if test "${ac_cv_prog_CPP+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 # Double quotes because CPP needs to be expanded
2767 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2770 for ac_c_preproc_warn_flag in '' yes
2772 # Use a header file that comes with gcc, so configuring glibc
2773 # with a fresh cross-compiler works.
2774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2775 # <limits.h> exists even on freestanding compilers.
2776 # On the NeXT, cc -E runs the code through the compiler's parser,
2777 # not just through cpp. "Syntax error" is here to catch this case.
2778 cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2786 # include <limits.h>
2788 # include <assert.h>
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2795 grep -v '^ *+' conftest.er1 >conftest.err
2797 cat conftest.err >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } >/dev/null; then
2800 if test -s conftest.err; then
2801 ac_cpp_err=$ac_c_preproc_warn_flag
2808 if test -z "$ac_cpp_err"; then
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2814 # Broken: fails on valid input.
2817 rm -f conftest.err conftest.$ac_ext
2819 # OK, works on sane cases. Now check whether non-existent headers
2820 # can be detected and how.
2821 cat >conftest.$ac_ext <<_ACEOF
2822 #line $LINENO "configure"
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2828 #include <ac_nonexistent.h>
2830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2833 grep -v '^ *+' conftest.er1 >conftest.err
2835 cat conftest.err >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } >/dev/null; then
2838 if test -s conftest.err; then
2839 ac_cpp_err=$ac_c_preproc_warn_flag
2846 if test -z "$ac_cpp_err"; then
2847 # Broken: success on invalid input.
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2853 # Passes both tests.
2857 rm -f conftest.err conftest.$ac_ext
2860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2861 rm -f conftest.err conftest.$ac_ext
2862 if $ac_preproc_ok; then
2874 echo "$as_me:$LINENO: result: $CPP" >&5
2875 echo "${ECHO_T}$CPP" >&6
2877 for ac_c_preproc_warn_flag in '' yes
2879 # Use a header file that comes with gcc, so configuring glibc
2880 # with a fresh cross-compiler works.
2881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2882 # <limits.h> exists even on freestanding compilers.
2883 # On the NeXT, cc -E runs the code through the compiler's parser,
2884 # not just through cpp. "Syntax error" is here to catch this case.
2885 cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2893 # include <limits.h>
2895 # include <assert.h>
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } >/dev/null; then
2907 if test -s conftest.err; then
2908 ac_cpp_err=$ac_c_preproc_warn_flag
2915 if test -z "$ac_cpp_err"; then
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2921 # Broken: fails on valid input.
2924 rm -f conftest.err conftest.$ac_ext
2926 # OK, works on sane cases. Now check whether non-existent headers
2927 # can be detected and how.
2928 cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2935 #include <ac_nonexistent.h>
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2940 grep -v '^ *+' conftest.er1 >conftest.err
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } >/dev/null; then
2945 if test -s conftest.err; then
2946 ac_cpp_err=$ac_c_preproc_warn_flag
2953 if test -z "$ac_cpp_err"; then
2954 # Broken: success on invalid input.
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 # Passes both tests.
2964 rm -f conftest.err conftest.$ac_ext
2967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2968 rm -f conftest.err conftest.$ac_ext
2969 if $ac_preproc_ok; then
2972 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2975 See \`config.log' for more details." >&2;}
2976 { (exit 1); exit 1; }; }
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2985 echo "$as_me:$LINENO: checking for inline" >&5
2986 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2987 if test "${ac_cv_c_inline+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 for ac_kw in inline __inline__ __inline; do
2992 cat >conftest.$ac_ext <<_ACEOF
2993 #line $LINENO "configure"
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
3001 static $ac_kw foo_t static_foo () {return 0; }
3002 $ac_kw foo_t foo () {return 0; }
3006 rm -f conftest.$ac_objext
3007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3008 (eval $ac_compile) 2>&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } &&
3012 { ac_try='test -s conftest.$ac_objext'
3013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3018 ac_cv_c_inline=$ac_kw; break
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3024 rm -f conftest.$ac_objext conftest.$ac_ext
3028 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3029 echo "${ECHO_T}$ac_cv_c_inline" >&6
3030 case $ac_cv_c_inline in
3033 cat >>confdefs.h <<\_ACEOF
3037 *) cat >>confdefs.h <<_ACEOF
3038 #define inline $ac_cv_c_inline
3044 echo "$as_me:$LINENO: checking for long long int" >&5
3045 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3046 if test "${ac_cv_c_long_long+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 cat >conftest.$ac_ext <<_ACEOF
3050 #line $LINENO "configure"
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3065 rm -f conftest.$ac_objext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067 (eval $ac_compile) 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -s conftest.$ac_objext'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
3077 ac_cv_c_long_long=yes
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3082 ac_cv_c_long_long=no
3084 rm -f conftest.$ac_objext conftest.$ac_ext
3086 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3087 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3088 if test $ac_cv_c_long_long = yes; then
3090 cat >>confdefs.h <<\_ACEOF
3091 #define HAVE_LONG_LONG 1
3095 echo "$as_me:$LINENO: checking for __int64" >&5
3096 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3097 if test "${ac_cv_c___int64+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 cat >conftest.$ac_ext <<_ACEOF
3101 #line $LINENO "configure"
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.$ac_objext
3117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3118 (eval $ac_compile) 2>&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -s conftest.$ac_objext'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3135 rm -f conftest.$ac_objext conftest.$ac_ext
3137 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3138 echo "${ECHO_T}$ac_cv_c___int64" >&6
3139 if test $ac_cv_c___int64 = yes; then
3141 cat >>confdefs.h <<\_ACEOF
3142 #define HAVE___INT64 1
3147 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3148 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3149 if test "${gcc_cv_c__bool+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 cat >conftest.$ac_ext <<_ACEOF
3153 #line $LINENO "configure"
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3168 rm -f conftest.$ac_objext
3169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170 (eval $ac_compile) 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -s conftest.$ac_objext'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3187 rm -f conftest.$ac_objext conftest.$ac_ext
3190 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3191 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3192 if test $gcc_cv_c__bool = yes; then
3194 cat >>confdefs.h <<\_ACEOF
3195 #define HAVE__BOOL 1
3201 # sizeof(char) is 1 by definition.
3202 echo "$as_me:$LINENO: checking size of void *" >&5
3203 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3204 if test "${ac_cv_sizeof_void_p+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3208 cat >conftest.$ac_ext <<_ACEOF
3209 #line $LINENO "configure"
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3215 #include "confdefs.h"
3216 #include <sys/types.h>
3222 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3227 rm -f conftest.$ac_objext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229 (eval $ac_compile) 2>&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -s conftest.$ac_objext'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_cv_sizeof_void_p=$ac_size
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3245 rm -f conftest.$ac_objext conftest.$ac_ext
3246 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3251 if test x$ac_cv_sizeof_void_p = x ; then
3252 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3253 echo "$as_me: error: cannot determine a size for void *" >&2;}
3254 { (exit 1); exit 1; }; }
3256 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3257 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3259 cat >>confdefs.h <<_ACEOF
3260 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3264 echo "$as_me:$LINENO: checking size of short" >&5
3265 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3266 if test "${ac_cv_sizeof_short+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3270 cat >conftest.$ac_ext <<_ACEOF
3271 #line $LINENO "configure"
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3277 #include "confdefs.h"
3278 #include <sys/types.h>
3284 switch (0) case 0: case (sizeof (short) == $ac_size):;
3289 rm -f conftest.$ac_objext
3290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291 (eval $ac_compile) 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } &&
3295 { ac_try='test -s conftest.$ac_objext'
3296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; }; then
3301 ac_cv_sizeof_short=$ac_size
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3307 rm -f conftest.$ac_objext conftest.$ac_ext
3308 if test x$ac_cv_sizeof_short != x ; then break; fi
3313 if test x$ac_cv_sizeof_short = x ; then
3314 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3315 echo "$as_me: error: cannot determine a size for short" >&2;}
3316 { (exit 1); exit 1; }; }
3318 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3319 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3321 cat >>confdefs.h <<_ACEOF
3322 #define SIZEOF_SHORT $ac_cv_sizeof_short
3326 echo "$as_me:$LINENO: checking size of int" >&5
3327 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3328 if test "${ac_cv_sizeof_int+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3332 cat >conftest.$ac_ext <<_ACEOF
3333 #line $LINENO "configure"
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include "confdefs.h"
3340 #include <sys/types.h>
3346 switch (0) case 0: case (sizeof (int) == $ac_size):;
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 ac_cv_sizeof_int=$ac_size
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3369 rm -f conftest.$ac_objext conftest.$ac_ext
3370 if test x$ac_cv_sizeof_int != x ; then break; fi
3375 if test x$ac_cv_sizeof_int = x ; then
3376 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3377 echo "$as_me: error: cannot determine a size for int" >&2;}
3378 { (exit 1); exit 1; }; }
3380 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3381 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3383 cat >>confdefs.h <<_ACEOF
3384 #define SIZEOF_INT $ac_cv_sizeof_int
3388 echo "$as_me:$LINENO: checking size of long" >&5
3389 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3390 if test "${ac_cv_sizeof_long+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3394 cat >conftest.$ac_ext <<_ACEOF
3395 #line $LINENO "configure"
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3401 #include "confdefs.h"
3402 #include <sys/types.h>
3408 switch (0) case 0: case (sizeof (long) == $ac_size):;
3413 rm -f conftest.$ac_objext
3414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3415 (eval $ac_compile) 2>&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 ac_cv_sizeof_long=$ac_size
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3431 rm -f conftest.$ac_objext conftest.$ac_ext
3432 if test x$ac_cv_sizeof_long != x ; then break; fi
3437 if test x$ac_cv_sizeof_long = x ; then
3438 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3439 echo "$as_me: error: cannot determine a size for long" >&2;}
3440 { (exit 1); exit 1; }; }
3442 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3443 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3445 cat >>confdefs.h <<_ACEOF
3446 #define SIZEOF_LONG $ac_cv_sizeof_long
3450 if test $ac_cv_c_long_long = yes; then
3451 echo "$as_me:$LINENO: checking size of long long" >&5
3452 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3453 if test "${ac_cv_sizeof_long_long+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3457 cat >conftest.$ac_ext <<_ACEOF
3458 #line $LINENO "configure"
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464 #include "confdefs.h"
3465 #include <sys/types.h>
3471 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3476 rm -f conftest.$ac_objext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478 (eval $ac_compile) 2>&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } &&
3482 { ac_try='test -s conftest.$ac_objext'
3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
3488 ac_cv_sizeof_long_long=$ac_size
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3494 rm -f conftest.$ac_objext conftest.$ac_ext
3495 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3500 if test x$ac_cv_sizeof_long_long = x ; then
3501 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3502 echo "$as_me: error: cannot determine a size for long long" >&2;}
3503 { (exit 1); exit 1; }; }
3505 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3506 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3508 cat >>confdefs.h <<_ACEOF
3509 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3514 if test $ac_cv_c___int64 = yes; then
3515 echo "$as_me:$LINENO: checking size of __int64" >&5
3516 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3517 if test "${ac_cv_sizeof___int64+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3521 cat >conftest.$ac_ext <<_ACEOF
3522 #line $LINENO "configure"
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #include "confdefs.h"
3529 #include <sys/types.h>
3535 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3540 rm -f conftest.$ac_objext
3541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3542 (eval $ac_compile) 2>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3552 ac_cv_sizeof___int64=$ac_size
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3558 rm -f conftest.$ac_objext conftest.$ac_ext
3559 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3564 if test x$ac_cv_sizeof___int64 = x ; then
3565 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3566 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3567 { (exit 1); exit 1; }; }
3569 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3570 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3572 cat >>confdefs.h <<_ACEOF
3573 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3583 # See if GNAT has been installed
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3590 echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 if test -n "$GNATBIND"; then
3596 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 GNATBIND=$ac_cv_prog_GNATBIND
3615 if test -n "$GNATBIND"; then
3616 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3617 echo "${ECHO_T}$GNATBIND" >&6
3619 echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6
3624 if test -z "$ac_cv_prog_GNATBIND"; then
3625 ac_ct_GNATBIND=$GNATBIND
3626 # Extract the first word of "gnatbind", so it can be a program name with args.
3627 set dummy gnatbind; ac_word=$2
3628 echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3630 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 if test -n "$ac_ct_GNATBIND"; then
3634 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3653 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3654 if test -n "$ac_ct_GNATBIND"; then
3655 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3656 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3658 echo "$as_me:$LINENO: result: no" >&5
3659 echo "${ECHO_T}no" >&6
3662 GNATBIND=$ac_ct_GNATBIND
3664 GNATBIND="$ac_cv_prog_GNATBIND"
3667 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3668 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3669 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 cat >conftest.adb <<EOF
3673 procedure conftest is begin null; end conftest;
3675 gcc_cv_cc_supports_ada=no
3676 # There is a bug in old released versions of GCC which causes the
3677 # driver to exit successfully when the appropriate language module
3678 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3679 # Therefore we must check for the error message as well as an
3680 # unsuccessful exit.
3681 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3682 if test x"$errors" = x; then
3683 gcc_cv_cc_supports_ada=yes
3688 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3689 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3691 if test x$GNATBIND != xno && test x$gcc_cv_supports_ada != xno; then
3698 # ---------------------
3699 # Warnings and checking
3700 # ---------------------
3703 if test $ac_cv_prog_cc_no_long_long = yes ; then
3704 strict1_warn="-pedantic -Wno-long-long"
3708 # If the native compiler is GCC, we can enable warnings even in stage1.
3709 # That's useful for people building cross-compilers, or just running a
3712 if test "x$GCC" = "xyes"; then
3713 warn_cflags='$(GCC_WARN_CFLAGS)'
3717 # Enable -Werror in bootstrap stage2 and later.
3718 # Change the default to "no" on release branches.
3719 # Check whether --enable-werror or --disable-werror was given.
3720 if test "${enable_werror+set}" = set; then
3721 enableval="$enable_werror"
3726 if test x$enable_werror = xyes ; then
3731 # Enable expensive internal checks
3732 # Check whether --enable-checking or --disable-checking was given.
3733 if test "${enable_checking+set}" = set; then
3734 enableval="$enable_checking"
3738 ac_rtlflag_checking=
3740 ac_gc_always_collect=
3742 case "${enableval}" in
3743 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3744 ac_rtlflag_checking=1 ;;
3746 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3747 set fnord $enableval; shift
3752 misc) ac_checking=1 ;;
3753 tree) ac_tree_checking=1 ;;
3754 rtlflag) ac_rtlflag_checking=1 ;;
3755 rtl) ac_rtl_checking=1 ;;
3756 gc) ac_gc_checking=1 ;;
3757 gcac) ac_gc_always_collect=1 ;;
3758 fold) ac_fold_checking=1 ;;
3759 valgrind) ac_checking_valgrind=1 ;;
3760 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3761 echo "$as_me: error: unknown check category $check" >&2;}
3762 { (exit 1); exit 1; }; } ;;
3769 # Enable some checks by default for development versions of GCC
3770 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3773 if test x$ac_checking != x ; then
3775 cat >>confdefs.h <<\_ACEOF
3776 #define ENABLE_CHECKING 1
3779 nocommon_flag=-fno-common
3782 if test x$ac_tree_checking != x ; then
3784 cat >>confdefs.h <<\_ACEOF
3785 #define ENABLE_TREE_CHECKING 1
3789 if test x$ac_rtl_checking != x ; then
3791 cat >>confdefs.h <<\_ACEOF
3792 #define ENABLE_RTL_CHECKING 1
3796 if test x$ac_rtlflag_checking != x ; then
3798 cat >>confdefs.h <<\_ACEOF
3799 #define ENABLE_RTL_FLAG_CHECKING 1
3803 if test x$ac_gc_checking != x ; then
3805 cat >>confdefs.h <<\_ACEOF
3806 #define ENABLE_GC_CHECKING 1
3810 if test x$ac_gc_always_collect != x ; then
3812 cat >>confdefs.h <<\_ACEOF
3813 #define ENABLE_GC_ALWAYS_COLLECT 1
3817 if test x$ac_fold_checking != x ; then
3819 cat >>confdefs.h <<\_ACEOF
3820 #define ENABLE_FOLD_CHECKING 1
3824 valgrind_path_defines=
3828 echo "$as_me:$LINENO: checking for egrep" >&5
3829 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3830 if test "${ac_cv_prog_egrep+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3834 then ac_cv_prog_egrep='grep -E'
3835 else ac_cv_prog_egrep='egrep'
3838 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3839 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3840 EGREP=$ac_cv_prog_egrep
3843 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3844 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3845 if test "${ac_cv_header_stdc+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 cat >conftest.$ac_ext <<_ACEOF
3849 #line $LINENO "configure"
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3868 rm -f conftest.$ac_objext
3869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3870 (eval $ac_compile) 2>&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } &&
3874 { ac_try='test -s conftest.$ac_objext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ac_cv_header_stdc=yes
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 ac_cv_header_stdc=no
3887 rm -f conftest.$ac_objext conftest.$ac_ext
3889 if test $ac_cv_header_stdc = yes; then
3890 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3891 cat >conftest.$ac_ext <<_ACEOF
3892 #line $LINENO "configure"
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3902 $EGREP "memchr" >/dev/null 2>&1; then
3905 ac_cv_header_stdc=no
3911 if test $ac_cv_header_stdc = yes; then
3912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3913 cat >conftest.$ac_ext <<_ACEOF
3914 #line $LINENO "configure"
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "free" >/dev/null 2>&1; then
3927 ac_cv_header_stdc=no
3933 if test $ac_cv_header_stdc = yes; then
3934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3935 if test "$cross_compiling" = yes; then
3938 cat >conftest.$ac_ext <<_ACEOF
3939 #line $LINENO "configure"
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3946 #if ((' ' & 0x0FF) == 0x020)
3947 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3948 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3950 # define ISLOWER(c) \
3951 (('a' <= (c) && (c) <= 'i') \
3952 || ('j' <= (c) && (c) <= 'r') \
3953 || ('s' <= (c) && (c) <= 'z'))
3954 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3962 for (i = 0; i < 256; i++)
3963 if (XOR (islower (i), ISLOWER (i))
3964 || toupper (i) != TOUPPER (i))
3969 rm -f conftest$ac_exeext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3971 (eval $ac_link) 2>&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3982 echo "$as_me: program exited with status $ac_status" >&5
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3987 ac_cv_header_stdc=no
3989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3993 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3994 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3995 if test $ac_cv_header_stdc = yes; then
3997 cat >>confdefs.h <<\_ACEOF
3998 #define STDC_HEADERS 1
4003 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4013 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4014 inttypes.h stdint.h unistd.h
4016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4017 echo "$as_me:$LINENO: checking for $ac_header" >&5
4018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 cat >conftest.$ac_ext <<_ACEOF
4023 #line $LINENO "configure"
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4029 $ac_includes_default
4031 #include <$ac_header>
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } &&
4039 { ac_try='test -s conftest.$ac_objext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 eval "$as_ac_Header=yes"
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 eval "$as_ac_Header=no"
4052 rm -f conftest.$ac_objext conftest.$ac_ext
4054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4057 cat >>confdefs.h <<_ACEOF
4058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4066 if test "${ac_cv_header_valgrind_h+set}" = set; then
4067 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4068 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4069 if test "${ac_cv_header_valgrind_h+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4073 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4075 # Is the header compilable?
4076 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4077 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4078 cat >conftest.$ac_ext <<_ACEOF
4079 #line $LINENO "configure"
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 $ac_includes_default
4086 #include <valgrind.h>
4088 rm -f conftest.$ac_objext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try='test -s conftest.$ac_objext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 ac_header_compiler=yes
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4105 ac_header_compiler=no
4107 rm -f conftest.$ac_objext conftest.$ac_ext
4108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4109 echo "${ECHO_T}$ac_header_compiler" >&6
4111 # Is the header present?
4112 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4113 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4114 cat >conftest.$ac_ext <<_ACEOF
4115 #line $LINENO "configure"
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4121 #include <valgrind.h>
4123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4126 grep -v '^ *+' conftest.er1 >conftest.err
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } >/dev/null; then
4131 if test -s conftest.err; then
4132 ac_cpp_err=$ac_c_preproc_warn_flag
4139 if test -z "$ac_cpp_err"; then
4140 ac_header_preproc=yes
4142 echo "$as_me: failed program was:" >&5
4143 sed 's/^/| /' conftest.$ac_ext >&5
4145 ac_header_preproc=no
4147 rm -f conftest.err conftest.$ac_ext
4148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4149 echo "${ECHO_T}$ac_header_preproc" >&6
4151 # So? What about this header?
4152 case $ac_header_compiler:$ac_header_preproc in
4154 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4155 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4156 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4157 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4160 ## ------------------------------------ ##
4161 ## Report this to bug-autoconf@gnu.org. ##
4162 ## ------------------------------------ ##
4165 sed "s/^/$as_me: WARNING: /" >&2
4168 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4169 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4170 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4171 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4172 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4173 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4176 ## ------------------------------------ ##
4177 ## Report this to bug-autoconf@gnu.org. ##
4178 ## ------------------------------------ ##
4181 sed "s/^/$as_me: WARNING: /" >&2
4184 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4185 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4186 if test "${ac_cv_header_valgrind_h+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 ac_cv_header_valgrind_h=$ac_header_preproc
4191 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4192 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4195 if test $ac_cv_header_valgrind_h = yes; then
4203 if test x$ac_checking_valgrind != x ; then
4204 # It is certainly possible that there's valgrind but no valgrind.h.
4205 # GCC relies on making annotations so we must have both.
4206 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4207 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4208 cat >conftest.$ac_ext <<_ACEOF
4209 #line $LINENO "configure"
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #include <valgrind/memcheck.h>
4216 #ifndef VALGRIND_DISCARD
4217 #error VALGRIND_DISCARD not defined
4220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4223 grep -v '^ *+' conftest.er1 >conftest.err
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } >/dev/null; then
4228 if test -s conftest.err; then
4229 ac_cpp_err=$ac_c_preproc_warn_flag
4236 if test -z "$ac_cpp_err"; then
4237 gcc_cv_header_valgrind_memcheck_h=yes
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 gcc_cv_header_valgrind_memcheck_h=no
4244 rm -f conftest.err conftest.$ac_ext
4245 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4246 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4247 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4248 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4249 cat >conftest.$ac_ext <<_ACEOF
4250 #line $LINENO "configure"
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 #include <memcheck.h>
4257 #ifndef VALGRIND_DISCARD
4258 #error VALGRIND_DISCARD not defined
4261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4264 grep -v '^ *+' conftest.er1 >conftest.err
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } >/dev/null; then
4269 if test -s conftest.err; then
4270 ac_cpp_err=$ac_c_preproc_warn_flag
4277 if test -z "$ac_cpp_err"; then
4278 gcc_cv_header_memcheck_h=yes
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 gcc_cv_header_memcheck_h=no
4285 rm -f conftest.err conftest.$ac_ext
4286 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4287 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4289 # Prepare PATH_SEPARATOR.
4290 # The user is always right.
4291 if test "${PATH_SEPARATOR+set}" != set; then
4292 echo "#! /bin/sh" >conf$$.sh
4293 echo "exit 0" >>conf$$.sh
4295 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4303 # Find out how to test for executable files. Don't use a zero-byte file,
4304 # as systems may use methods other than mode bits to determine executability.
4305 cat >conf$$.file <<_ASEOF
4309 chmod +x conf$$.file
4310 if test -x conf$$.file >/dev/null 2>&1; then
4311 ac_executable_p="test -x"
4313 ac_executable_p="test -f"
4317 # Extract the first word of "valgrind", so it can be a program name with args.
4318 set dummy valgrind; ac_word=$2
4319 echo "$as_me:$LINENO: checking for $ac_word" >&5
4320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4321 if test "${ac_cv_path_valgrind_path+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 case "$valgrind_path" in
4326 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4329 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4330 for ac_dir in $PATH; do
4332 test -z "$ac_dir" && ac_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4335 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4336 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4346 valgrind_path="$ac_cv_path_valgrind_path"
4347 if test -n "$valgrind_path"; then
4348 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4349 echo "${ECHO_T}$valgrind_path" >&6
4351 echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6
4355 if test "x$valgrind_path" = "x" \
4356 || (test $have_valgrind_h = no \
4357 && test $gcc_cv_header_memcheck_h = no \
4358 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4359 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4360 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4361 { (exit 1); exit 1; }; }
4363 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4364 valgrind_command="$valgrind_path -q"
4366 cat >>confdefs.h <<\_ACEOF
4367 #define ENABLE_VALGRIND_CHECKING 1
4370 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4372 cat >>confdefs.h <<\_ACEOF
4373 #define HAVE_VALGRIND_MEMCHECK_H 1
4377 if test $gcc_cv_header_memcheck_h = yes; then
4379 cat >>confdefs.h <<\_ACEOF
4380 #define HAVE_MEMCHECK_H 1
4388 # Enable code coverage collection
4389 # Check whether --enable-coverage or --disable-coverage was given.
4390 if test "${enable_coverage+set}" = set; then
4391 enableval="$enable_coverage"
4392 case "${enableval}" in
4394 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4397 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4400 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4401 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4402 { (exit 1); exit 1; }; }
4410 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4411 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4412 enableval="$enable_gather_detailed_mem_stats"
4415 enable_gather_detailed_mem_stats=no
4417 if test x$enable_gather_detailed_mem_stats = xyes ; then
4419 cat >>confdefs.h <<\_ACEOF
4420 #define GATHER_STATISTICS 1
4425 # -------------------------------
4426 # Miscenalleous configure options
4427 # -------------------------------
4431 # Check whether --with-stabs or --without-stabs was given.
4432 if test "${with_stabs+set}" = set; then
4433 withval="$with_stabs"
4439 # Determine whether or not multilibs are enabled.
4440 # Check whether --enable-multilib or --disable-multilib was given.
4441 if test "${enable_multilib+set}" = set; then
4442 enableval="$enable_multilib"
4449 # Enable __cxa_atexit for C++.
4450 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4451 if test "${enable___cxa_atexit+set}" = set; then
4452 enableval="$enable___cxa_atexit"
4457 # Pass with no value to take the default
4458 # Pass with a value to specify a thread package
4459 # Check whether --enable-threads or --disable-threads was given.
4460 if test "${enable_threads+set}" = set; then
4461 enableval="$enable_threads"
4466 # Save in case it gets overwritten in config.gcc
4467 enable_threads_flag=$enable_threads
4469 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4470 if test "${enable_objc_gc+set}" = set; then
4471 enableval="$enable_objc_gc"
4472 if test x$enable_objc_gc = xno; then
4482 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4483 if test "${with_dwarf2+set}" = set; then
4484 withval="$with_dwarf2"
4485 dwarf2="$with_dwarf2"
4490 # Check whether --enable-shared or --disable-shared was given.
4491 if test "${enable_shared+set}" = set; then
4492 enableval="$enable_shared"
4494 case $enable_shared in
4498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4499 for pkg in $enableval; do
4500 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4514 # Check whether --with-sysroot or --without-sysroot was given.
4515 if test "${with_sysroot+set}" = set; then
4516 withval="$with_sysroot"
4518 case ${with_sysroot} in
4519 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4520 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4523 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4524 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4526 if test "x$exec_prefix" = xNONE; then
4527 if test "x$prefix" = xNONE; then
4528 test_prefix=/usr/local
4533 test_prefix=$exec_prefix
4535 case ${TARGET_SYSTEM_ROOT} in
4536 "${test_prefix}"|"${test_prefix}/"*|\
4537 '${exec_prefix}'|'${exec_prefix}/'*)
4538 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4539 TARGET_SYSTEM_ROOT_DEFINE="$t"
4546 TARGET_SYSTEM_ROOT_DEFINE=
4547 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4554 # Build with intermodule optimisations
4555 # Check whether --enable-intermodule or --disable-intermodule was given.
4556 if test "${enable_intermodule+set}" = set; then
4557 enableval="$enable_intermodule"
4558 case ${enable_intermodule} in
4559 yes) onestep="-onestep";;
4567 # -------------------------
4568 # Checks for other programs
4569 # -------------------------
4571 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4572 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4573 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4574 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 cat >conftest.make <<\_ACEOF
4579 @echo 'ac_maketemp="$(MAKE)"'
4581 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4582 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4583 if test -n "$ac_maketemp"; then
4584 eval ac_cv_prog_make_${ac_make}_set=yes
4586 eval ac_cv_prog_make_${ac_make}_set=no
4590 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4591 echo "$as_me:$LINENO: result: yes" >&5
4592 echo "${ECHO_T}yes" >&6
4595 echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6
4597 SET_MAKE="MAKE=${MAKE-make}"
4601 # Find some useful tools
4602 for ac_prog in gawk mawk nawk awk
4604 # Extract the first word of "$ac_prog", so it can be a program name with args.
4605 set dummy $ac_prog; ac_word=$2
4606 echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4608 if test "${ac_cv_prog_AWK+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 if test -n "$AWK"; then
4612 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_AWK="$ac_prog"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 if test -n "$AWK"; then
4632 echo "$as_me:$LINENO: result: $AWK" >&5
4633 echo "${ECHO_T}$AWK" >&6
4635 echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4639 test -n "$AWK" && break
4642 # We need awk to run opts.sh (to create options.c and options.h).
4643 # Bail out if it's missing.
4645 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4646 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4647 { (exit 1); exit 1; }; } ;;
4650 echo "$as_me:$LINENO: checking whether ln works" >&5
4651 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4652 if test "${gcc_cv_prog_LN+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 rm -f conftestdata_t
4656 echo >conftestdata_f
4657 if ln conftestdata_f conftestdata_t 2>/dev/null
4661 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4663 gcc_cv_prog_LN="ln -s"
4668 rm -f conftestdata_f conftestdata_t
4671 LN="$gcc_cv_prog_LN"
4672 if test "$gcc_cv_prog_LN" = "ln"; then
4673 echo "$as_me:$LINENO: result: yes" >&5
4674 echo "${ECHO_T}yes" >&6
4676 if test "$gcc_cv_prog_LN" = "ln -s"; then
4677 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4678 echo "${ECHO_T}no, using ln -s" >&6
4680 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4681 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4685 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4686 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4687 if test "${gcc_cv_prog_LN_S+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 rm -f conftestdata_t
4691 echo >conftestdata_f
4692 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4694 gcc_cv_prog_LN_S="ln -s"
4696 if ln conftestdata_f conftestdata_t 2>/dev/null
4703 rm -f conftestdata_f conftestdata_t
4706 LN_S="$gcc_cv_prog_LN_S"
4707 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4708 echo "$as_me:$LINENO: result: yes" >&5
4709 echo "${ECHO_T}yes" >&6
4711 if test "$gcc_cv_prog_LN_S" = "ln"; then
4712 echo "$as_me:$LINENO: result: no, using ln" >&5
4713 echo "${ECHO_T}no, using ln" >&6
4715 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4716 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4720 if test -n "$ac_tool_prefix"; then
4721 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4723 echo "$as_me:$LINENO: checking for $ac_word" >&5
4724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4725 if test "${ac_cv_prog_RANLIB+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 if test -n "$RANLIB"; then
4729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 RANLIB=$ac_cv_prog_RANLIB
4748 if test -n "$RANLIB"; then
4749 echo "$as_me:$LINENO: result: $RANLIB" >&5
4750 echo "${ECHO_T}$RANLIB" >&6
4752 echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6
4757 if test -z "$ac_cv_prog_RANLIB"; then
4758 ac_ct_RANLIB=$RANLIB
4759 # Extract the first word of "ranlib", so it can be a program name with args.
4760 set dummy ranlib; ac_word=$2
4761 echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 if test -n "$ac_ct_RANLIB"; then
4767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4776 ac_cv_prog_ac_ct_RANLIB="ranlib"
4777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4787 if test -n "$ac_ct_RANLIB"; then
4788 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4789 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4791 echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6
4795 RANLIB=$ac_ct_RANLIB
4797 RANLIB="$ac_cv_prog_RANLIB"
4800 # Find a good install program. We prefer a C program (faster),
4801 # so one script is as good as another. But avoid the broken or
4802 # incompatible versions:
4803 # SysV /etc/install, /usr/sbin/install
4804 # SunOS /usr/etc/install
4805 # IRIX /sbin/install
4807 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4808 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4809 # ./install, which can be erroneously created by make from ./install.sh.
4810 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4811 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4812 if test -z "$INSTALL"; then
4813 if test "${ac_cv_path_install+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4817 for ac_dir in $PATH; do
4818 # Account for people who put trailing slashes in PATH elements.
4820 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4822 # OSF1 and SCO ODT 3.0 have their own names for install.
4823 for ac_prog in ginstall scoinst install; do
4824 if test -f $ac_dir/$ac_prog; then
4825 if test $ac_prog = install &&
4826 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4827 # AIX install. It has an incompatible calling convention.
4828 # OSF/1 installbsd also uses dspmsg, but is usable.
4831 ac_cv_path_install="$ac_dir/$ac_prog -c"
4842 if test "${ac_cv_path_install+set}" = set; then
4843 INSTALL="$ac_cv_path_install"
4845 # As a last resort, use the slow shell script. We don't cache a
4846 # path for INSTALL within a source directory, because that will
4847 # break other packages using the cache if that directory is
4848 # removed, or if the path is relative.
4849 INSTALL="$ac_install_sh"
4852 echo "$as_me:$LINENO: result: $INSTALL" >&5
4853 echo "${ECHO_T}$INSTALL" >&6
4855 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4856 # It thinks the first close brace ends the variable substitution.
4857 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4859 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4862 # See if cmp has --ignore-initial.
4863 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
4864 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
4865 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 gcc_cv_prog_cmp_skip=slowcompare
4871 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4872 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4875 gcc_cv_prog_cmp_skip=gnucompare
4878 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
4879 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4880 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4883 gcc_cv_prog_cmp_skip=fastcompare
4890 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4891 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4892 make_compare_target=$gcc_cv_prog_cmp_skip
4896 # See if we have the mktemp command.
4897 # Extract the first word of "mktemp", so it can be a program name with args.
4898 set dummy mktemp; ac_word=$2
4899 echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4901 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 if test -n "$have_mktemp_command"; then
4905 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914 ac_cv_prog_have_mktemp_command="yes"
4915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
4924 have_mktemp_command=$ac_cv_prog_have_mktemp_command
4925 if test -n "$have_mktemp_command"; then
4926 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4927 echo "${ECHO_T}$have_mktemp_command" >&6
4929 echo "$as_me:$LINENO: result: no" >&5
4930 echo "${ECHO_T}no" >&6
4934 # Do we have a single-tree copy of texinfo?
4935 if test -f $srcdir/../texinfo/Makefile.in; then
4936 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
4937 gcc_cv_prog_makeinfo_modern=yes
4938 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4939 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4941 # See if makeinfo has been installed and is modern enough
4942 # that we can use it.
4943 # Extract the first word of "makeinfo", so it can be a program name with args.
4944 set dummy makeinfo; ac_word=$2
4945 echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4947 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 if test -n "$MAKEINFO"; then
4951 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960 ac_cv_prog_MAKEINFO="makeinfo"
4961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 MAKEINFO=$ac_cv_prog_MAKEINFO
4970 if test -n "$MAKEINFO"; then
4971 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4972 echo "${ECHO_T}$MAKEINFO" >&6
4974 echo "$as_me:$LINENO: result: no" >&5
4975 echo "${ECHO_T}no" >&6
4978 if test -n "$MAKEINFO"; then
4979 # Found it, now check the version.
4980 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
4981 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
4982 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 ac_prog_version=`$MAKEINFO --version 2>&1 |
4986 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4987 echo "configure:4987: version of makeinfo is $ac_prog_version" >&5
4988 case $ac_prog_version in
4989 '') gcc_cv_prog_makeinfo_modern=no;;
4991 gcc_cv_prog_makeinfo_modern=yes;;
4992 *) gcc_cv_prog_makeinfo_modern=no;;
4996 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
4997 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
4999 gcc_cv_prog_makeinfo_modern=no
5004 if test $gcc_cv_prog_makeinfo_modern = no; then
5005 { echo "$as_me:$LINENO: WARNING:
5006 *** Makeinfo is missing or too old.
5007 *** Info documentation will not be built." >&5
5008 echo "$as_me: WARNING:
5009 *** Makeinfo is missing or too old.
5010 *** Info documentation will not be built." >&2;}
5016 # Is pod2man recent enough to regenerate manpages?
5017 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5018 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5019 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5020 echo "$as_me:$LINENO: result: yes" >&5
5021 echo "${ECHO_T}yes" >&6
5022 GENERATED_MANPAGES=generated-manpages
5024 echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6
5030 if test -f $srcdir/../flex/skel.c; then
5031 FLEX='$(objdir)/../flex/flex'
5033 # Extract the first word of "flex", so it can be a program name with args.
5034 set dummy flex; ac_word=$2
5035 echo "$as_me:$LINENO: checking for $ac_word" >&5
5036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5037 if test "${ac_cv_prog_FLEX+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 if test -n "$FLEX"; then
5041 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_prog_FLEX="flex"
5051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5060 FLEX=$ac_cv_prog_FLEX
5061 if test -n "$FLEX"; then
5062 echo "$as_me:$LINENO: result: $FLEX" >&5
5063 echo "${ECHO_T}$FLEX" >&6
5065 echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6
5072 # The -L switch is so bison can find its skeleton file.
5073 if test -f $srcdir/../bison/bison.simple; then
5074 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5076 # Extract the first word of "bison", so it can be a program name with args.
5077 set dummy bison; ac_word=$2
5078 echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5080 if test "${ac_cv_prog_BISON+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 if test -n "$BISON"; then
5084 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093 ac_cv_prog_BISON="bison"
5094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5103 BISON=$ac_cv_prog_BISON
5104 if test -n "$BISON"; then
5105 echo "$as_me:$LINENO: result: $BISON" >&5
5106 echo "${ECHO_T}$BISON" >&6
5108 echo "$as_me:$LINENO: result: no" >&5
5109 echo "${ECHO_T}no" >&6
5114 # --------------------
5115 # Checks for C headers
5116 # --------------------
5118 echo "$as_me:$LINENO: checking for GNU C library" >&5
5119 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5120 if test "${gcc_cv_glibc+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 cat >conftest.$ac_ext <<_ACEOF
5124 #line $LINENO "configure"
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5130 #include <features.h>
5135 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5136 #error Not a GNU C library system
5142 rm -f conftest.$ac_objext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5144 (eval $ac_compile) 2>&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } &&
5148 { ac_try='test -s conftest.$ac_objext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5161 rm -f conftest.$ac_objext conftest.$ac_ext
5164 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5165 echo "${ECHO_T}$gcc_cv_glibc" >&6
5166 if test $gcc_cv_glibc = yes; then
5168 cat >>confdefs.h <<\_ACEOF
5169 #define _GNU_SOURCE 1
5174 # Need to reject headers which give warnings, so that the -Werror bootstrap
5175 # works later. *sigh* This needs to come before all header checks.
5177 ac_c_preproc_warn_flag=yes
5179 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5180 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5181 if test "${ac_cv_header_stdc+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 cat >conftest.$ac_ext <<_ACEOF
5185 #line $LINENO "configure"
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5204 rm -f conftest.$ac_objext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206 (eval $ac_compile) 2>&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } &&
5210 { ac_try='test -s conftest.$ac_objext'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5216 ac_cv_header_stdc=yes
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 ac_cv_header_stdc=no
5223 rm -f conftest.$ac_objext conftest.$ac_ext
5225 if test $ac_cv_header_stdc = yes; then
5226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5227 cat >conftest.$ac_ext <<_ACEOF
5228 #line $LINENO "configure"
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5238 $EGREP "memchr" >/dev/null 2>&1; then
5241 ac_cv_header_stdc=no
5247 if test $ac_cv_header_stdc = yes; then
5248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5249 cat >conftest.$ac_ext <<_ACEOF
5250 #line $LINENO "configure"
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5260 $EGREP "free" >/dev/null 2>&1; then
5263 ac_cv_header_stdc=no
5269 if test $ac_cv_header_stdc = yes; then
5270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5271 if test "$cross_compiling" = yes; then
5274 cat >conftest.$ac_ext <<_ACEOF
5275 #line $LINENO "configure"
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5282 #if ((' ' & 0x0FF) == 0x020)
5283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5286 # define ISLOWER(c) \
5287 (('a' <= (c) && (c) <= 'i') \
5288 || ('j' <= (c) && (c) <= 'r') \
5289 || ('s' <= (c) && (c) <= 'z'))
5290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5298 for (i = 0; i < 256; i++)
5299 if (XOR (islower (i), ISLOWER (i))
5300 || toupper (i) != TOUPPER (i))
5305 rm -f conftest$ac_exeext
5306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5307 (eval $ac_link) 2>&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5318 echo "$as_me: program exited with status $ac_status" >&5
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5323 ac_cv_header_stdc=no
5325 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5329 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5330 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5331 if test $ac_cv_header_stdc = yes; then
5333 cat >>confdefs.h <<\_ACEOF
5334 #define STDC_HEADERS 1
5339 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5340 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5341 if test "${ac_cv_header_time+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 cat >conftest.$ac_ext <<_ACEOF
5345 #line $LINENO "configure"
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5351 #include <sys/types.h>
5352 #include <sys/time.h>
5358 if ((struct tm *) 0)
5364 rm -f conftest.$ac_objext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366 (eval $ac_compile) 2>&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 ac_cv_header_time=yes
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5381 ac_cv_header_time=no
5383 rm -f conftest.$ac_objext conftest.$ac_ext
5385 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5386 echo "${ECHO_T}$ac_cv_header_time" >&6
5387 if test $ac_cv_header_time = yes; then
5389 cat >>confdefs.h <<\_ACEOF
5390 #define TIME_WITH_SYS_TIME 1
5395 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5396 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5397 if test "${ac_cv_header_stdbool_h+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 cat >conftest.$ac_ext <<_ACEOF
5401 #line $LINENO "configure"
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 #include <stdbool.h>
5416 rm -f conftest.$ac_objext
5417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5418 (eval $ac_compile) 2>&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } &&
5422 { ac_try='test -s conftest.$ac_objext'
5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
5428 ac_cv_header_stdbool_h=yes
5430 echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5433 ac_cv_header_stdbool_h=no
5435 rm -f conftest.$ac_objext conftest.$ac_ext
5437 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5438 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5439 if test $ac_cv_header_stdbool_h = yes; then
5441 cat >>confdefs.h <<\_ACEOF
5442 #define HAVE_STDBOOL_H 1
5447 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5448 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5449 if test "${gcc_cv_header_string+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 cat >conftest.$ac_ext <<_ACEOF
5453 #line $LINENO "configure"
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5460 #include <strings.h>
5469 rm -f conftest.$ac_objext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471 (eval $ac_compile) 2>&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } &&
5475 { ac_try='test -s conftest.$ac_objext'
5476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }; }; then
5481 gcc_cv_header_string=yes
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5486 gcc_cv_header_string=no
5488 rm -f conftest.$ac_objext conftest.$ac_ext
5490 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5491 echo "${ECHO_T}$gcc_cv_header_string" >&6
5492 if test $gcc_cv_header_string = yes; then
5494 cat >>confdefs.h <<\_ACEOF
5495 #define STRING_WITH_STRINGS 1
5500 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5501 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5502 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 cat >conftest.$ac_ext <<_ACEOF
5506 #line $LINENO "configure"
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5512 #include <sys/types.h>
5513 #include <sys/wait.h>
5515 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5518 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5526 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5531 rm -f conftest.$ac_objext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_cv_header_sys_wait_h=yes
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5548 ac_cv_header_sys_wait_h=no
5550 rm -f conftest.$ac_objext conftest.$ac_ext
5552 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5553 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5554 if test $ac_cv_header_sys_wait_h = yes; then
5556 cat >>confdefs.h <<\_ACEOF
5557 #define HAVE_SYS_WAIT_H 1
5583 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5584 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5585 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5586 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5589 echo "$as_me:$LINENO: checking for $ac_header" >&5
5590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 cat >conftest.$ac_ext <<_ACEOF
5595 #line $LINENO "configure"
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5601 #include <$ac_header>
5603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5606 grep -v '^ *+' conftest.er1 >conftest.err
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } >/dev/null; then
5611 if test -s conftest.err; then
5612 ac_cpp_err=$ac_c_preproc_warn_flag
5619 if test -z "$ac_cpp_err"; then
5620 eval "$as_ac_Header=yes"
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5625 eval "$as_ac_Header=no"
5627 rm -f conftest.err conftest.$ac_ext
5629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5632 cat >>confdefs.h <<_ACEOF
5633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5640 # Check for thread headers.
5641 echo "$as_me:$LINENO: checking for thread.h" >&5
5642 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5643 if test "${ac_cv_header_thread_h+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 cat >conftest.$ac_ext <<_ACEOF
5647 #line $LINENO "configure"
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5658 grep -v '^ *+' conftest.er1 >conftest.err
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } >/dev/null; then
5663 if test -s conftest.err; then
5664 ac_cpp_err=$ac_c_preproc_warn_flag
5671 if test -z "$ac_cpp_err"; then
5672 ac_cv_header_thread_h=yes
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 ac_cv_header_thread_h=no
5679 rm -f conftest.err conftest.$ac_ext
5681 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5682 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5683 if test $ac_cv_header_thread_h = yes; then
5689 echo "$as_me:$LINENO: checking for pthread.h" >&5
5690 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5691 if test "${ac_cv_header_pthread_h+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 cat >conftest.$ac_ext <<_ACEOF
5695 #line $LINENO "configure"
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 #include <pthread.h>
5703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5706 grep -v '^ *+' conftest.er1 >conftest.err
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } >/dev/null; then
5711 if test -s conftest.err; then
5712 ac_cpp_err=$ac_c_preproc_warn_flag
5719 if test -z "$ac_cpp_err"; then
5720 ac_cv_header_pthread_h=yes
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 ac_cv_header_pthread_h=no
5727 rm -f conftest.err conftest.$ac_ext
5729 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5730 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5731 if test $ac_cv_header_pthread_h = yes; then
5738 # These tests can't be done till we know if we have limits.h.
5739 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5740 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5741 if test "${gcc_cv_decl_char_bit+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 cat >conftest.$ac_ext <<_ACEOF
5745 #line $LINENO "configure"
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 #ifdef HAVE_LIMITS_H
5758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5759 $EGREP "found" >/dev/null 2>&1; then
5760 gcc_cv_decl_char_bit=yes
5762 gcc_cv_decl_char_bit=no
5768 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5769 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
5770 if test $gcc_cv_decl_char_bit = no; then
5771 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5772 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
5773 if test "${gcc_cv_c_nbby+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 while test $i -lt 65; do
5779 cat >conftest.$ac_ext <<_ACEOF
5780 #line $LINENO "configure"
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5791 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5792 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5798 rm -f conftest.$ac_objext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5800 (eval $ac_compile) 2>&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try='test -s conftest.$ac_objext'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
5810 gcc_cv_c_nbby=$i; break
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5816 rm -f conftest.$ac_objext conftest.$ac_ext
5819 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
5822 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
5823 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
5824 if test $gcc_cv_c_nbby = failed; then
5825 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
5826 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
5827 { (exit 1); exit 1; }; }
5830 cat >>confdefs.h <<_ACEOF
5831 #define CHAR_BIT $gcc_cv_c_nbby
5836 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5837 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5838 if test "${ac_cv_c_bigendian+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 ac_cv_c_bigendian=unknown
5842 # See if sys/param.h defines the BYTE_ORDER macro.
5843 cat >conftest.$ac_ext <<_ACEOF
5844 #line $LINENO "configure"
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 #include <sys/types.h>
5851 #include <sys/param.h>
5856 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5863 rm -f conftest.$ac_objext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865 (eval $ac_compile) 2>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try='test -s conftest.$ac_objext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 # It does; now see whether it defined to BIG_ENDIAN or not.
5876 cat >conftest.$ac_ext <<_ACEOF
5877 #line $LINENO "configure"
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 #include <sys/types.h>
5884 #include <sys/param.h>
5889 #if BYTE_ORDER != BIG_ENDIAN
5896 rm -f conftest.$ac_objext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } &&
5902 { ac_try='test -s conftest.$ac_objext'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
5908 ac_cv_c_bigendian=yes
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5913 ac_cv_c_bigendian=no
5915 rm -f conftest.$ac_objext conftest.$ac_ext
5917 echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5921 rm -f conftest.$ac_objext conftest.$ac_ext
5922 if test $ac_cv_c_bigendian = unknown; then
5923 if test "$cross_compiling" = yes; then
5924 echo $ac_n "cross-compiling... " 2>&6
5926 cat >conftest.$ac_ext <<_ACEOF
5927 #line $LINENO "configure"
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5934 /* Are we little or big endian? From Harbison&Steele. */
5938 char c[sizeof (long)];
5941 exit (u.c[sizeof (long) - 1] == 1);
5944 rm -f conftest$ac_exeext
5945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5946 (eval $ac_link) 2>&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 ac_cv_c_bigendian=no
5957 echo "$as_me: program exited with status $ac_status" >&5
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5962 ac_cv_c_bigendian=yes
5964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5968 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5969 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5970 if test $ac_cv_c_bigendian = unknown; then
5971 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
5972 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
5974 cat >conftest.c <<EOF
5975 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5976 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5977 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
5978 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5979 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5980 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
5981 int main() { _ascii (); _ebcdic (); return 0; }
5983 if test -f conftest.c ; then
5984 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
5985 if test `grep -l BIGenDianSyS conftest.o` ; then
5986 echo $ac_n ' big endian probe OK, ' 1>&6
5987 ac_cv_c_bigendian=yes
5989 if test `grep -l LiTTleEnDian conftest.o` ; then
5990 echo $ac_n ' little endian probe OK, ' 1>&6
5991 if test $ac_cv_c_bigendian = yes ; then
5992 ac_cv_c_bigendian=unknown;
5994 ac_cv_c_bigendian=no
5997 echo $ac_n 'guessing bigendian ... ' >&6
6000 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6001 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6003 if test $ac_cv_c_bigendian = yes; then
6005 cat >>confdefs.h <<\_ACEOF
6006 #define WORDS_BIGENDIAN 1
6010 cat >>confdefs.h <<\_ACEOF
6011 #define HOST_WORDS_BIG_ENDIAN 1
6019 cat >>confdefs.h <<_ACEOF
6020 #define BYTEORDER $BYTEORDER
6023 if test $ac_cv_c_bigendian = unknown; then
6024 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6025 echo "$as_me: error: unknown endianess - sorry" >&2;}
6026 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6034 # Stage specific cflags for build.
6038 if test x$GCC = xyes
6040 stage1_cflags="-Wa,-J"
6046 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6047 # sources; use -no-cpp-precomp to get to GNU cpp.
6048 # Apple's GCC has bugs in designated initializer handling, so disable
6050 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6055 # These libraries may be used by collect2.
6056 # We may need a special search path to get them linked.
6057 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6058 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6059 if test "${gcc_cv_collect2_libs+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 for libs in '' -lld -lmld \
6064 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6065 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6068 cat >conftest.$ac_ext <<_ACEOF
6069 #line $LINENO "configure"
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6076 /* Override any gcc2 internal prototype to avoid an error. */
6080 /* We use char because int might match the return type of a gcc2
6081 builtin and then its argument prototype would still apply. */
6091 rm -f conftest.$ac_objext conftest$ac_exeext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6093 (eval $ac_link) 2>&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } &&
6097 { ac_try='test -s conftest$ac_exeext'
6098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; }; then
6103 gcc_cv_collect2_libs="$libs"; break
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6112 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6114 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6115 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6116 case $gcc_cv_collect2_libs in
6118 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6122 # When building Ada code on Alpha, we need exc_resume which is usually in
6123 # -lexc. So test for it.
6126 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6127 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6128 if test "${ac_cv_search_exc_resume+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 ac_func_search_save_LIBS=$LIBS
6132 ac_cv_search_exc_resume=no
6133 cat >conftest.$ac_ext <<_ACEOF
6134 #line $LINENO "configure"
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h. */
6141 /* Override any gcc2 internal prototype to avoid an error. */
6145 /* We use char because int might match the return type of a gcc2
6146 builtin and then its argument prototype would still apply. */
6156 rm -f conftest.$ac_objext conftest$ac_exeext
6157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6158 (eval $ac_link) 2>&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } &&
6162 { ac_try='test -s conftest$ac_exeext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 ac_cv_search_exc_resume="none required"
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6175 if test "$ac_cv_search_exc_resume" = no; then
6176 for ac_lib in exc; do
6177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6178 cat >conftest.$ac_ext <<_ACEOF
6179 #line $LINENO "configure"
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6186 /* Override any gcc2 internal prototype to avoid an error. */
6190 /* We use char because int might match the return type of a gcc2
6191 builtin and then its argument prototype would still apply. */
6201 rm -f conftest.$ac_objext conftest$ac_exeext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6203 (eval $ac_link) 2>&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } &&
6207 { ac_try='test -s conftest$ac_exeext'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6213 ac_cv_search_exc_resume="-l$ac_lib"
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6223 LIBS=$ac_func_search_save_LIBS
6225 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6226 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6227 if test "$ac_cv_search_exc_resume" != no; then
6228 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6236 # Some systems put ldexp and frexp in libm instead of libc; assume
6237 # they're both in the same place. jcf-dump needs them.
6240 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6241 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6242 if test "${ac_cv_search_ldexp+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 ac_func_search_save_LIBS=$LIBS
6246 ac_cv_search_ldexp=no
6247 cat >conftest.$ac_ext <<_ACEOF
6248 #line $LINENO "configure"
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6255 /* Override any gcc2 internal prototype to avoid an error. */
6259 /* We use char because int might match the return type of a gcc2
6260 builtin and then its argument prototype would still apply. */
6270 rm -f conftest.$ac_objext conftest$ac_exeext
6271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6272 (eval $ac_link) 2>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } &&
6276 { ac_try='test -s conftest$ac_exeext'
6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; }; then
6282 ac_cv_search_ldexp="none required"
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6289 if test "$ac_cv_search_ldexp" = no; then
6291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6292 cat >conftest.$ac_ext <<_ACEOF
6293 #line $LINENO "configure"
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6300 /* Override any gcc2 internal prototype to avoid an error. */
6304 /* We use char because int might match the return type of a gcc2
6305 builtin and then its argument prototype would still apply. */
6315 rm -f conftest.$ac_objext conftest$ac_exeext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6317 (eval $ac_link) 2>&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } &&
6321 { ac_try='test -s conftest$ac_exeext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6327 ac_cv_search_ldexp="-l$ac_lib"
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6337 LIBS=$ac_func_search_save_LIBS
6339 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6340 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6341 if test "$ac_cv_search_ldexp" != no; then
6342 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6350 # Use <inttypes.h> only if it exists,
6351 # doesn't clash with <sys/types.h>, and declares intmax_t.
6352 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6353 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6354 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 cat >conftest.$ac_ext <<_ACEOF
6358 #line $LINENO "configure"
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6364 #include <sys/types.h>
6365 #include <inttypes.h>
6374 rm -f conftest.$ac_objext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6376 (eval $ac_compile) 2>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -s conftest.$ac_objext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 gcc_cv_header_inttypes_h=yes
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6391 gcc_cv_header_inttypes_h=no
6393 rm -f conftest.$ac_objext conftest.$ac_ext
6396 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6397 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6398 if test $gcc_cv_header_inttypes_h = yes; then
6400 cat >>confdefs.h <<\_ACEOF
6401 #define HAVE_INTTYPES_H 1
6432 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6433 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6434 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6435 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6439 echo "$as_me:$LINENO: checking for $ac_func" >&5
6440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6441 if eval "test \"\${$as_ac_var+set}\" = set"; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 cat >conftest.$ac_ext <<_ACEOF
6445 #line $LINENO "configure"
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6451 /* System header to define __stub macros and hopefully few prototypes,
6452 which can conflict with char $ac_func (); below.
6453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6454 <limits.h> exists even on freestanding compilers. */
6456 # include <limits.h>
6458 # include <assert.h>
6460 /* Override any gcc2 internal prototype to avoid an error. */
6465 /* We use char because int might match the return type of a gcc2
6466 builtin and then its argument prototype would still apply. */
6468 /* The GNU C library defines this for functions which it implements
6469 to always fail with ENOSYS. Some functions are actually named
6470 something starting with __ and the normal name is an alias. */
6471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6474 char (*f) () = $ac_func;
6483 return f != $ac_func;
6488 rm -f conftest.$ac_objext conftest$ac_exeext
6489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6490 (eval $ac_link) 2>&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } &&
6494 { ac_try='test -s conftest$ac_exeext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 eval "$as_ac_var=yes"
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6505 eval "$as_ac_var=no"
6507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6511 if test `eval echo '${'$as_ac_var'}'` = yes; then
6512 cat >>confdefs.h <<_ACEOF
6513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6520 if test x$ac_cv_func_mbstowcs = xyes; then
6521 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6522 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6523 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 if test "$cross_compiling" = yes; then
6527 gcc_cv_func_mbstowcs_works=yes
6529 cat >conftest.$ac_ext <<_ACEOF
6530 #line $LINENO "configure"
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6543 rm -f conftest$ac_exeext
6544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6545 (eval $ac_link) 2>&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; }; then
6554 gcc_cv_func_mbstowcs_works=yes
6556 echo "$as_me: program exited with status $ac_status" >&5
6557 echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6561 gcc_cv_func_mbstowcs_works=no
6563 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6566 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6567 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6568 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6570 cat >>confdefs.h <<\_ACEOF
6571 #define HAVE_WORKING_MBSTOWCS 1
6577 echo "$as_me:$LINENO: checking for ssize_t" >&5
6578 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6579 if test "${ac_cv_type_ssize_t+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6583 #line $LINENO "configure"
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6589 $ac_includes_default
6595 if (sizeof (ssize_t))
6601 rm -f conftest.$ac_objext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6603 (eval $ac_compile) 2>&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } &&
6607 { ac_try='test -s conftest.$ac_objext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 ac_cv_type_ssize_t=yes
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6618 ac_cv_type_ssize_t=no
6620 rm -f conftest.$ac_objext conftest.$ac_ext
6622 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6623 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6624 if test $ac_cv_type_ssize_t = yes; then
6628 cat >>confdefs.h <<_ACEOF
6635 # Try to determine the array type of the second argument of getgroups
6636 # for the target system (int or gid_t).
6637 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6638 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6639 if test "${ac_cv_type_uid_t+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 cat >conftest.$ac_ext <<_ACEOF
6643 #line $LINENO "configure"
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6649 #include <sys/types.h>
6652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6653 $EGREP "uid_t" >/dev/null 2>&1; then
6654 ac_cv_type_uid_t=yes
6661 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6662 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6663 if test $ac_cv_type_uid_t = no; then
6665 cat >>confdefs.h <<\_ACEOF
6670 cat >>confdefs.h <<\_ACEOF
6676 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6677 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6678 if test "${ac_cv_type_getgroups+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 if test "$cross_compiling" = yes; then
6682 ac_cv_type_getgroups=cross
6684 cat >conftest.$ac_ext <<_ACEOF
6685 #line $LINENO "configure"
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 /* Thanks to Mike Rendell for this test. */
6692 #include <sys/types.h>
6695 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6702 union { gid_t gval; long lval; } val;
6705 for (i = 0; i < NGID; i++)
6706 gidset[i] = val.gval;
6707 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6709 /* Exit non-zero if getgroups seems to require an array of ints. This
6710 happens when gid_t is short but getgroups modifies an array of ints. */
6711 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6714 rm -f conftest$ac_exeext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6716 (eval $ac_link) 2>&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 ac_cv_type_getgroups=gid_t
6727 echo "$as_me: program exited with status $ac_status" >&5
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6732 ac_cv_type_getgroups=int
6734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6736 if test $ac_cv_type_getgroups = cross; then
6737 cat >conftest.$ac_ext <<_ACEOF
6738 #line $LINENO "configure"
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6748 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6749 ac_cv_type_getgroups=gid_t
6751 ac_cv_type_getgroups=int
6757 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6758 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6760 cat >>confdefs.h <<_ACEOF
6761 #define GETGROUPS_T $ac_cv_type_getgroups
6765 if test "${target}" = "${build}"; then
6766 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
6769 # This condition may need some tweaking. It should include all
6770 # targets where the array type of the second argument of getgroups
6771 # is int and the type of gid_t is not equivalent to int.
6772 *-*-sunos* | *-*-ultrix*)
6773 TARGET_GETGROUPS_T=int
6776 TARGET_GETGROUPS_T=gid_t
6782 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
6783 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
6784 if test "${gcc_cv_func_printf_ptr+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 if test "$cross_compiling" = yes; then
6788 gcc_cv_func_printf_ptr=no
6790 cat >conftest.$ac_ext <<_ACEOF
6791 #line $LINENO "configure"
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6802 char *p = buf, *q = NULL;
6803 sprintf(buf, "%p", p);
6804 sscanf(buf, "%p", &q);
6808 rm -f conftest$ac_exeext
6809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6810 (eval $ac_link) 2>&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 gcc_cv_func_printf_ptr=yes
6821 echo "$as_me: program exited with status $ac_status" >&5
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6826 gcc_cv_func_printf_ptr=no
6828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6830 rm -f core core.* *.core
6832 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
6833 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
6834 if test $gcc_cv_func_printf_ptr = yes ; then
6836 cat >>confdefs.h <<\_ACEOF
6837 #define HAVE_PRINTF_PTR 1
6842 if test $ac_cv_header_sys_mman_h != yes \
6843 || test $ac_cv_func_mmap != yes; then
6844 gcc_cv_func_mmap_file=no
6845 gcc_cv_func_mmap_dev_zero=no
6846 gcc_cv_func_mmap_anon=no
6848 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
6849 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
6850 if test "${gcc_cv_func_mmap_file+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 # Add a system to this blacklist if
6854 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
6855 # memory area containing the same data that you'd get if you applied
6856 # read() to the same fd. The only system known to have a problem here
6857 # is VMS, where text files have record structure.
6860 gcc_cv_func_mmap_file=no ;;
6862 gcc_cv_func_mmap_file=yes;;
6865 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
6866 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
6867 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
6868 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
6869 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 # Add a system to this blacklist if it has mmap() but /dev/zero
6873 # does not exist, or if mmapping /dev/zero does not give anonymous
6874 # zeroed pages with both the following properties:
6875 # 1. If you map N consecutive pages in with one call, and then
6876 # unmap any subset of those pages, the pages that were not
6877 # explicitly unmapped remain accessible.
6878 # 2. If you map two adjacent blocks of memory and then unmap them
6879 # both at once, they must both go away.
6880 # Systems known to be in this category are Windows (all variants),
6883 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
6884 gcc_cv_func_mmap_dev_zero=no ;;
6886 gcc_cv_func_mmap_dev_zero=yes;;
6889 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
6890 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
6892 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
6893 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
6894 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
6895 if test "${gcc_cv_decl_map_anon+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 cat >conftest.$ac_ext <<_ACEOF
6899 #line $LINENO "configure"
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6905 #include <sys/types.h>
6906 #include <sys/mman.h>
6909 #ifndef MAP_ANONYMOUS
6910 #define MAP_ANONYMOUS MAP_ANON
6916 int n = MAP_ANONYMOUS;
6921 rm -f conftest.$ac_objext
6922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6923 (eval $ac_compile) 2>&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } &&
6927 { ac_try='test -s conftest.$ac_objext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 gcc_cv_decl_map_anon=yes
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6938 gcc_cv_decl_map_anon=no
6940 rm -f conftest.$ac_objext conftest.$ac_ext
6942 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
6943 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
6945 if test $gcc_cv_decl_map_anon = no; then
6946 gcc_cv_func_mmap_anon=no
6948 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
6949 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
6950 if test "${gcc_cv_func_mmap_anon+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 # Add a system to this blacklist if it has mmap() and MAP_ANON or
6954 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
6955 # doesn't give anonymous zeroed pages with the same properties listed
6956 # above for use of /dev/zero.
6957 # Systems known to be in this category are Windows, VMS, and SCO Unix.
6959 vms* | cygwin* | pe | mingw* | sco* | udk* )
6960 gcc_cv_func_mmap_anon=no ;;
6962 gcc_cv_func_mmap_anon=yes;;
6965 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
6966 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
6970 if test $gcc_cv_func_mmap_file = yes; then
6972 cat >>confdefs.h <<\_ACEOF
6973 #define HAVE_MMAP_FILE 1
6977 if test $gcc_cv_func_mmap_dev_zero = yes; then
6979 cat >>confdefs.h <<\_ACEOF
6980 #define HAVE_MMAP_DEV_ZERO 1
6984 if test $gcc_cv_func_mmap_anon = yes; then
6986 cat >>confdefs.h <<\_ACEOF
6987 #define HAVE_MMAP_ANON 1
6995 # Under VMS, vfork works very differently than on Unix. The standard test
6996 # won't work, and it isn't easily adaptable. It makes more sense to
6998 ac_cv_func_vfork_works=yes
7001 echo "$as_me:$LINENO: checking for pid_t" >&5
7002 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7003 if test "${ac_cv_type_pid_t+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 cat >conftest.$ac_ext <<_ACEOF
7007 #line $LINENO "configure"
7010 cat confdefs.h >>conftest.$ac_ext
7011 cat >>conftest.$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7013 $ac_includes_default
7025 rm -f conftest.$ac_objext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027 (eval $ac_compile) 2>&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try='test -s conftest.$ac_objext'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; }; then
7037 ac_cv_type_pid_t=yes
7039 echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7044 rm -f conftest.$ac_objext conftest.$ac_ext
7046 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7047 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7048 if test $ac_cv_type_pid_t = yes; then
7052 cat >>confdefs.h <<_ACEOF
7060 for ac_header in unistd.h vfork.h
7062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7063 echo "$as_me:$LINENO: checking for $ac_header" >&5
7064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 cat >conftest.$ac_ext <<_ACEOF
7069 #line $LINENO "configure"
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 #include <$ac_header>
7077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7080 grep -v '^ *+' conftest.er1 >conftest.err
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } >/dev/null; then
7085 if test -s conftest.err; then
7086 ac_cpp_err=$ac_c_preproc_warn_flag
7093 if test -z "$ac_cpp_err"; then
7094 eval "$as_ac_Header=yes"
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 eval "$as_ac_Header=no"
7101 rm -f conftest.err conftest.$ac_ext
7103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7106 cat >>confdefs.h <<_ACEOF
7107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7115 for ac_func in fork vfork
7117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7118 echo "$as_me:$LINENO: checking for $ac_func" >&5
7119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7120 if eval "test \"\${$as_ac_var+set}\" = set"; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 cat >conftest.$ac_ext <<_ACEOF
7124 #line $LINENO "configure"
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7130 /* System header to define __stub macros and hopefully few prototypes,
7131 which can conflict with char $ac_func (); below.
7132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7133 <limits.h> exists even on freestanding compilers. */
7135 # include <limits.h>
7137 # include <assert.h>
7139 /* Override any gcc2 internal prototype to avoid an error. */
7144 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */
7147 /* The GNU C library defines this for functions which it implements
7148 to always fail with ENOSYS. Some functions are actually named
7149 something starting with __ and the normal name is an alias. */
7150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7153 char (*f) () = $ac_func;
7162 return f != $ac_func;
7167 rm -f conftest.$ac_objext conftest$ac_exeext
7168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7169 (eval $ac_link) 2>&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } &&
7173 { ac_try='test -s conftest$ac_exeext'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; }; then
7179 eval "$as_ac_var=yes"
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7184 eval "$as_ac_var=no"
7186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7190 if test `eval echo '${'$as_ac_var'}'` = yes; then
7191 cat >>confdefs.h <<_ACEOF
7192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7198 if test "x$ac_cv_func_fork" = xyes; then
7199 echo "$as_me:$LINENO: checking for working fork" >&5
7200 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7201 if test "${ac_cv_func_fork_works+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 if test "$cross_compiling" = yes; then
7205 ac_cv_func_fork_works=cross
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* By Ruediger Kuhlmann. */
7209 #include <sys/types.h>
7211 # include <unistd.h>
7213 /* Some systems only have a dummy stub for fork() */
7221 rm -f conftest$ac_exeext
7222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7223 (eval $ac_link) 2>&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232 ac_cv_func_fork_works=yes
7234 echo "$as_me: program exited with status $ac_status" >&5
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7239 ac_cv_func_fork_works=no
7241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7244 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7245 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7248 ac_cv_func_fork_works=$ac_cv_func_fork
7250 if test "x$ac_cv_func_fork_works" = xcross; then
7252 *-*-amigaos* | *-*-msdosdjgpp*)
7253 # Override, as these systems have only a dummy fork() stub
7254 ac_cv_func_fork_works=no
7257 ac_cv_func_fork_works=yes
7260 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7261 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7263 ac_cv_func_vfork_works=$ac_cv_func_vfork
7264 if test "x$ac_cv_func_vfork" = xyes; then
7265 echo "$as_me:$LINENO: checking for working vfork" >&5
7266 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7267 if test "${ac_cv_func_vfork_works+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 if test "$cross_compiling" = yes; then
7271 ac_cv_func_vfork_works=cross
7273 cat >conftest.$ac_ext <<_ACEOF
7274 #line $LINENO "configure"
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 /* Thanks to Paul Eggert for this test. */
7283 #include <sys/types.h>
7284 #include <sys/stat.h>
7285 #include <sys/wait.h>
7287 # include <unistd.h>
7292 /* On some sparc systems, changes by the child to local and incoming
7293 argument registers are propagated back to the parent. The compiler
7294 is told about this with #include <vfork.h>, but some compilers
7295 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7296 static variable whose address is put into a register that is
7297 clobbered by the vfork. */
7300 sparc_address_test (int arg)
7302 sparc_address_test (arg) int arg;
7323 pid_t parent = getpid ();
7326 sparc_address_test (0);
7331 /* Here is another test for sparc vfork register problems. This
7332 test uses lots of local variables, at least as many local
7333 variables as main has allocated so far including compiler
7334 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7335 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7336 reuse the register of parent for one of the local variables,
7337 since it will think that parent can't possibly be used any more
7338 in this routine. Assigning to the local variable will thus
7339 munge parent in the parent process. */
7341 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7342 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7343 /* Convince the compiler that p..p7 are live; otherwise, it might
7344 use the same hardware register for all 8 local variables. */
7345 if (p != p1 || p != p2 || p != p3 || p != p4
7346 || p != p5 || p != p6 || p != p7)
7349 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7350 from child file descriptors. If the child closes a descriptor
7351 before it execs or exits, this munges the parent's descriptor
7352 as well. Test for this by closing stdout in the child. */
7353 _exit(close(fileno(stdout)) != 0);
7358 while (wait(&status) != child)
7361 /* Was there some problem with vforking? */
7364 /* Did the child fail? (This shouldn't happen.) */
7367 /* Did the vfork/compiler bug occur? */
7368 || parent != getpid()
7370 /* Did the file descriptor bug occur? */
7371 || fstat(fileno(stdout), &st) != 0
7376 rm -f conftest$ac_exeext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7378 (eval $ac_link) 2>&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; }; then
7387 ac_cv_func_vfork_works=yes
7389 echo "$as_me: program exited with status $ac_status" >&5
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7394 ac_cv_func_vfork_works=no
7396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7399 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7400 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7403 if test "x$ac_cv_func_fork_works" = xcross; then
7404 ac_cv_func_vfork_works=ac_cv_func_vfork
7405 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7406 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7409 if test "x$ac_cv_func_vfork_works" = xyes; then
7411 cat >>confdefs.h <<\_ACEOF
7412 #define HAVE_WORKING_VFORK 1
7417 cat >>confdefs.h <<\_ACEOF
7422 if test "x$ac_cv_func_fork_works" = xyes; then
7424 cat >>confdefs.h <<\_ACEOF
7425 #define HAVE_WORKING_FORK 1
7433 am_cv_lib_iconv_ldpath=
7435 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7436 if test "${with_libiconv_prefix+set}" = set; then
7437 withval="$with_libiconv_prefix"
7439 for dir in `echo "$withval" | tr : ' '`; do
7440 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7441 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7447 for ac_header in iconv.h
7449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7450 echo "$as_me:$LINENO: checking for $ac_header" >&5
7451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 cat >conftest.$ac_ext <<_ACEOF
7456 #line $LINENO "configure"
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 #include <$ac_header>
7464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7467 grep -v '^ *+' conftest.er1 >conftest.err
7469 cat conftest.err >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } >/dev/null; then
7472 if test -s conftest.err; then
7473 ac_cpp_err=$ac_c_preproc_warn_flag
7480 if test -z "$ac_cpp_err"; then
7481 eval "$as_ac_Header=yes"
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7486 eval "$as_ac_Header=no"
7488 rm -f conftest.err conftest.$ac_ext
7490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7493 cat >>confdefs.h <<_ACEOF
7494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7501 echo "$as_me:$LINENO: checking for iconv" >&5
7502 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7503 if test "${am_cv_func_iconv+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 am_cv_func_iconv="no, consider installing GNU libiconv"
7509 cat >conftest.$ac_ext <<_ACEOF
7510 #line $LINENO "configure"
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7521 iconv_t cd = iconv_open("","");
7522 iconv(cd,NULL,NULL,NULL,NULL);
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530 (eval $ac_link) 2>&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try='test -s conftest$ac_exeext'
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; }; then
7540 am_cv_func_iconv=yes
7542 echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7547 if test "$am_cv_func_iconv" != yes; then
7548 am_save_LIBS="$LIBS"
7549 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7550 cat >conftest.$ac_ext <<_ACEOF
7551 #line $LINENO "configure"
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7562 iconv_t cd = iconv_open("","");
7563 iconv(cd,NULL,NULL,NULL,NULL);
7569 rm -f conftest.$ac_objext conftest$ac_exeext
7570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7571 (eval $ac_link) 2>&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
7575 { ac_try='test -s conftest$ac_exeext'
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; }; then
7582 am_cv_func_iconv=yes
7584 echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7589 LIBS="$am_save_LIBS"
7593 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7594 echo "${ECHO_T}$am_cv_func_iconv" >&6
7595 if test "$am_cv_func_iconv" = yes; then
7597 cat >>confdefs.h <<\_ACEOF
7598 #define HAVE_ICONV 1
7601 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7602 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7603 if test "${am_cv_proto_iconv+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 cat >conftest.$ac_ext <<_ACEOF
7608 #line $LINENO "configure"
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7621 #if defined(__STDC__) || defined(__cplusplus)
7622 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7635 rm -f conftest.$ac_objext
7636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7637 (eval $ac_compile) 2>&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } &&
7641 { ac_try='test -s conftest.$ac_objext'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7647 am_cv_proto_iconv_arg1=""
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7652 am_cv_proto_iconv_arg1="const"
7654 rm -f conftest.$ac_objext conftest.$ac_ext
7655 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);"
7658 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7659 echo "$as_me:$LINENO: result: ${ac_t:-
7660 }$am_cv_proto_iconv" >&5
7661 echo "${ECHO_T}${ac_t:-
7662 }$am_cv_proto_iconv" >&6
7664 cat >>confdefs.h <<_ACEOF
7665 #define ICONV_CONST $am_cv_proto_iconv_arg1
7670 if test "$am_cv_lib_iconv" = yes; then
7671 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
7675 # Until we have in-tree GNU iconv:
7680 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7681 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7682 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 cat >conftest.$ac_ext <<_ACEOF
7686 #line $LINENO "configure"
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7701 rm -f conftest.$ac_objext conftest$ac_exeext
7702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7703 (eval $ac_link) 2>&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try='test -s conftest$ac_exeext'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
7713 am_cv_val_LC_MESSAGES=yes
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 am_cv_val_LC_MESSAGES=no
7720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7722 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7723 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7724 if test $am_cv_val_LC_MESSAGES = yes; then
7726 cat >>confdefs.h <<\_ACEOF
7727 #define HAVE_LC_MESSAGES 1
7733 # We will need to find libiberty.h and ansidecl.h
7734 saved_CFLAGS="$CFLAGS"
7735 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
7736 for ac_func in getenv atol sbrk abort atof getcwd getwd \
7737 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
7738 fprintf_unlocked strstr errno snprintf vasprintf \
7739 malloc realloc calloc free basename getopt clock
7741 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7742 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7743 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7744 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 cat >conftest.$ac_ext <<_ACEOF
7748 #line $LINENO "configure"
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7755 #define $ac_tr_decl 1
7757 #include "ansidecl.h"
7764 char *(*pfn) = (char *(*)) $ac_func ;
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772 (eval $ac_compile) 2>&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } &&
7776 { ac_try='test -s conftest.$ac_objext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782 eval "gcc_cv_have_decl_$ac_func=yes"
7784 echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7787 eval "gcc_cv_have_decl_$ac_func=no"
7789 rm -f conftest.$ac_objext conftest.$ac_ext
7792 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7793 echo "$as_me:$LINENO: result: yes" >&5
7794 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
7795 #define $ac_tr_decl 1
7799 echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
7801 #define $ac_tr_decl 0
7807 if test x = y ; then
7809 cat >>confdefs.h <<\_ACEOF
7810 #define HAVE_DECL_GETENV 1
7813 cat >>confdefs.h <<\_ACEOF
7814 #define HAVE_DECL_ATOL 1
7817 cat >>confdefs.h <<\_ACEOF
7818 #define HAVE_DECL_SBRK 1
7821 cat >>confdefs.h <<\_ACEOF
7822 #define HAVE_DECL_ABORT 1
7825 cat >>confdefs.h <<\_ACEOF
7826 #define HAVE_DECL_ATOF 1
7829 cat >>confdefs.h <<\_ACEOF
7830 #define HAVE_DECL_GETCWD 1
7833 cat >>confdefs.h <<\_ACEOF
7834 #define HAVE_DECL_GETWD 1
7838 cat >>confdefs.h <<\_ACEOF
7839 #define HAVE_DECL_STRSIGNAL 1
7842 cat >>confdefs.h <<\_ACEOF
7843 #define HAVE_DECL_PUTC_UNLOCKED 1
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_DECL_FPUTS_UNLOCKED 1
7850 cat >>confdefs.h <<\_ACEOF
7851 #define HAVE_DECL_FWRITE_UNLOCKED 1
7855 cat >>confdefs.h <<\_ACEOF
7856 #define HAVE_DECL_FPRINTF_UNLOCKED 1
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_DECL_STRSTR 1
7863 cat >>confdefs.h <<\_ACEOF
7864 #define HAVE_DECL_ERRNO 1
7867 cat >>confdefs.h <<\_ACEOF
7868 #define HAVE_DECL_SNPRINTF 1
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_DECL_VASPRINTF 1
7876 cat >>confdefs.h <<\_ACEOF
7877 #define HAVE_DECL_MALLOC 1
7880 cat >>confdefs.h <<\_ACEOF
7881 #define HAVE_DECL_REALLOC 1
7884 cat >>confdefs.h <<\_ACEOF
7885 #define HAVE_DECL_CALLOC 1
7888 cat >>confdefs.h <<\_ACEOF
7889 #define HAVE_DECL_FREE 1
7892 cat >>confdefs.h <<\_ACEOF
7893 #define HAVE_DECL_BASENAME 1
7896 cat >>confdefs.h <<\_ACEOF
7897 #define HAVE_DECL_GETOPT 1
7900 cat >>confdefs.h <<\_ACEOF
7901 #define HAVE_DECL_CLOCK 1
7906 for ac_func in getrlimit setrlimit getrusage
7908 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7909 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7910 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7911 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 cat >conftest.$ac_ext <<_ACEOF
7915 #line $LINENO "configure"
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7922 #define $ac_tr_decl 1
7924 #include "ansidecl.h"
7926 #ifdef HAVE_SYS_RESOURCE_H
7927 #include <sys/resource.h>
7935 char *(*pfn) = (char *(*)) $ac_func ;
7941 rm -f conftest.$ac_objext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7943 (eval $ac_compile) 2>&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -s conftest.$ac_objext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 eval "gcc_cv_have_decl_$ac_func=yes"
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 eval "gcc_cv_have_decl_$ac_func=no"
7960 rm -f conftest.$ac_objext conftest.$ac_ext
7963 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7964 echo "$as_me:$LINENO: result: yes" >&5
7965 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
7966 #define $ac_tr_decl 1
7970 echo "$as_me:$LINENO: result: no" >&5
7971 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
7972 #define $ac_tr_decl 0
7978 if test x = y ; then
7980 cat >>confdefs.h <<\_ACEOF
7981 #define HAVE_DECL_GETRLIMIT 1
7984 cat >>confdefs.h <<\_ACEOF
7985 #define HAVE_DECL_SETRLIMIT 1
7988 cat >>confdefs.h <<\_ACEOF
7989 #define HAVE_DECL_GETRUSAGE 1
7994 cat >conftest.$ac_ext <<_ACEOF
7995 #line $LINENO "configure"
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8002 #include "ansidecl.h"
8004 #ifdef HAVE_SYS_RESOURCE_H
8005 #include <sys/resource.h>
8016 rm -f conftest.$ac_objext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8018 (eval $ac_compile) 2>&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try='test -s conftest.$ac_objext'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8034 cat >>confdefs.h <<\_ACEOF
8039 rm -f conftest.$ac_objext conftest.$ac_ext
8041 for ac_func in ldgetname
8043 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8044 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8045 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8046 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 cat >conftest.$ac_ext <<_ACEOF
8050 #line $LINENO "configure"
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8057 #define $ac_tr_decl 1
8059 #include "ansidecl.h"
8070 char *(*pfn) = (char *(*)) $ac_func ;
8076 rm -f conftest.$ac_objext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8078 (eval $ac_compile) 2>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -s conftest.$ac_objext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 eval "gcc_cv_have_decl_$ac_func=yes"
8090 echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8093 eval "gcc_cv_have_decl_$ac_func=no"
8095 rm -f conftest.$ac_objext conftest.$ac_ext
8098 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8099 echo "$as_me:$LINENO: result: yes" >&5
8100 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8101 #define $ac_tr_decl 1
8105 echo "$as_me:$LINENO: result: no" >&5
8106 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8107 #define $ac_tr_decl 0
8113 if test x = y ; then
8115 cat >>confdefs.h <<\_ACEOF
8116 #define HAVE_DECL_LDGETNAME 1
8121 for ac_func in times
8123 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8124 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8125 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8126 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 cat >conftest.$ac_ext <<_ACEOF
8130 #line $LINENO "configure"
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8137 #define $ac_tr_decl 1
8139 #include "ansidecl.h"
8141 #ifdef HAVE_SYS_TIMES_H
8142 #include <sys/times.h>
8150 char *(*pfn) = (char *(*)) $ac_func ;
8156 rm -f conftest.$ac_objext
8157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8158 (eval $ac_compile) 2>&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } &&
8162 { ac_try='test -s conftest.$ac_objext'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; }; then
8168 eval "gcc_cv_have_decl_$ac_func=yes"
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8173 eval "gcc_cv_have_decl_$ac_func=no"
8175 rm -f conftest.$ac_objext conftest.$ac_ext
8178 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8179 echo "$as_me:$LINENO: result: yes" >&5
8180 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8181 #define $ac_tr_decl 1
8185 echo "$as_me:$LINENO: result: no" >&5
8186 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8187 #define $ac_tr_decl 0
8193 if test x = y ; then
8195 cat >>confdefs.h <<\_ACEOF
8196 #define HAVE_DECL_TIMES 1
8201 # More time-related stuff.
8202 echo "$as_me:$LINENO: checking for struct tms" >&5
8203 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8204 if test "${ac_cv_struct_tms+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8208 cat >conftest.$ac_ext <<_ACEOF
8209 #line $LINENO "configure"
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8216 #include "ansidecl.h"
8218 #ifdef HAVE_SYS_TIMES_H
8219 #include <sys/times.h>
8230 rm -f conftest.$ac_objext
8231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8232 (eval $ac_compile) 2>&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } &&
8236 { ac_try='test -s conftest.$ac_objext'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; }; then
8242 ac_cv_struct_tms=yes
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8249 rm -f conftest.$ac_objext conftest.$ac_ext
8251 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8252 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8253 if test $ac_cv_struct_tms = yes; then
8255 cat >>confdefs.h <<\_ACEOF
8256 #define HAVE_STRUCT_TMS 1
8261 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8262 # revisit after autoconf 2.50.
8263 echo "$as_me:$LINENO: checking for clock_t" >&5
8264 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8265 if test "${gcc_cv_type_clock_t+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 cat >conftest.$ac_ext <<_ACEOF
8270 #line $LINENO "configure"
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8277 #include "ansidecl.h"
8288 rm -f conftest.$ac_objext
8289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8290 (eval $ac_compile) 2>&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -s conftest.$ac_objext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 gcc_cv_type_clock_t=yes
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8305 gcc_cv_type_clock_t=no
8307 rm -f conftest.$ac_objext conftest.$ac_ext
8309 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8310 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8311 if test $gcc_cv_type_clock_t = yes; then
8313 cat >>confdefs.h <<\_ACEOF
8314 #define HAVE_CLOCK_T 1
8319 echo "$as_me:$LINENO: checking for uchar" >&5
8320 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8321 if test "${gcc_cv_type_uchar+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 cat >conftest.$ac_ext <<_ACEOF
8325 #line $LINENO "configure"
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8332 #include "ansidecl.h"
8338 if ((uchar *)0) return 0;
8339 if (sizeof(uchar)) return 0;
8344 rm -f conftest.$ac_objext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8346 (eval $ac_compile) 2>&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_cv_type_uchar=yes
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8363 rm -f conftest.$ac_objext conftest.$ac_ext
8365 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8366 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8367 if test $ac_cv_type_uchar = yes; then
8369 cat >>confdefs.h <<\_ACEOF
8370 #define HAVE_UCHAR 1
8375 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8376 CFLAGS="$saved_CFLAGS"
8378 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8379 if test "${enable_initfini_array+set}" = set; then
8380 enableval="$enable_initfini_array"
8384 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8385 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8386 if test "${gcc_cv_initfini_array+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 if test "$cross_compiling" = yes; then
8390 gcc_cv_initfini_array=no
8392 cat >conftest.$ac_ext <<_ACEOF
8393 #line $LINENO "configure"
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h. */
8401 int main (void) { return x; }
8402 int foo (void) { x = 0; }
8403 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8405 rm -f conftest$ac_exeext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8407 (eval $ac_link) 2>&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 gcc_cv_initfini_array=yes
8418 echo "$as_me: program exited with status $ac_status" >&5
8419 echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8423 gcc_cv_initfini_array=no
8425 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8428 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8429 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8430 enable_initfini_array=$gcc_cv_initfini_array
8433 if test $enable_initfini_array = yes; then
8435 cat >>confdefs.h <<\_ACEOF
8436 #define HAVE_INITFINI_ARRAY 1
8441 # mkdir takes a single argument on some systems.
8442 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8443 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8444 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 cat >conftest.$ac_ext <<_ACEOF
8448 #line $LINENO "configure"
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8455 #include <sys/types.h>
8456 #ifdef HAVE_SYS_STAT_H
8457 # include <sys/stat.h>
8459 #ifdef HAVE_UNISTD_H
8460 # include <unistd.h>
8462 #ifdef HAVE_DIRECT_H
8463 # include <direct.h>
8473 rm -f conftest.$ac_objext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8475 (eval $ac_compile) 2>&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } &&
8479 { ac_try='test -s conftest.$ac_objext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8485 gcc_cv_mkdir_takes_one_arg=no
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8490 gcc_cv_mkdir_takes_one_arg=yes
8492 rm -f conftest.$ac_objext conftest.$ac_ext
8494 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8495 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8496 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8498 cat >>confdefs.h <<\_ACEOF
8499 #define MKDIR_TAKES_ONE_ARG 1
8511 # With Setjmp/Longjmp based exception handling.
8512 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8513 if test "${enable_sjlj_exceptions+set}" = set; then
8514 enableval="$enable_sjlj_exceptions"
8515 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8517 cat >>confdefs.h <<_ACEOF
8518 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8523 if test x$host = x$target; then
8524 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8525 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8526 if test "${ac_cv_lib_unwind_main+set}" = set; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 ac_check_lib_save_LIBS=$LIBS
8530 LIBS="-lunwind $LIBS"
8531 cat >conftest.$ac_ext <<_ACEOF
8532 #line $LINENO "configure"
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h. */
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -s conftest$ac_exeext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 ac_cv_lib_unwind_main=yes
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8565 ac_cv_lib_unwind_main=no
8567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8568 LIBS=$ac_check_lib_save_LIBS
8570 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8571 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8572 if test $ac_cv_lib_unwind_main = yes; then
8573 use_libunwind_default=yes
8575 use_libunwind_default=no
8579 use_libunwind_default=no
8581 # Use libunwind based exception handling.
8582 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8583 if test "${enable_libunwind_exceptions+set}" = set; then
8584 enableval="$enable_libunwind_exceptions"
8585 use_libunwind_exceptions=$enableval
8587 use_libunwind_exceptions=$use_libunwind_default
8589 if test x"$use_libunwind_exceptions" = xyes; then
8591 cat >>confdefs.h <<\_ACEOF
8592 #define USE_LIBUNWIND_EXCEPTIONS 1
8597 # --------------------------------------------------------
8598 # Build, host, and target specific configuration fragments
8599 # --------------------------------------------------------
8601 # Collect build-machine-specific information.
8602 . ${srcdir}/config.build
8604 # Collect host-machine-specific information.
8605 . ${srcdir}/config.host
8609 # Collect target-machine-specific information.
8610 . ${srcdir}/config.gcc
8612 extra_objs="${host_extra_objs} ${extra_objs}"
8614 # Default the target-machine variables that were not explicitly set.
8615 if test x"$tm_file" = x
8616 then tm_file=$cpu_type/$cpu_type.h; fi
8618 if test x"$extra_headers" = x
8619 then extra_headers=; fi
8621 if test x$md_file = x
8622 then md_file=$cpu_type/$cpu_type.md; fi
8624 if test x$out_file = x
8625 then out_file=$cpu_type/$cpu_type.c; fi
8627 if test x"$tmake_file" = x
8628 then tmake_file=$cpu_type/t-$cpu_type
8631 if test x"$dwarf2" = xyes
8632 then tm_file="$tm_file tm-dwarf2.h"
8635 # Say what files are being used for the output code and MD file.
8636 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
8637 echo "Using \`$srcdir/config/$md_file' as machine description file."
8639 # If any of the xm_file variables contain nonexistent files, warn
8640 # about them and drop them.
8643 for x in $build_xm_file; do
8644 if test -f $srcdir/config/$x
8646 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8647 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8653 for x in $host_xm_file; do
8654 if test -f $srcdir/config/$x
8656 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8657 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8663 for x in $xm_file; do
8664 if test -f $srcdir/config/$x
8666 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8667 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8673 for f in $tm_file; do
8676 if test $count = ax; then
8677 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
8679 echo "Using the following target machine macro files:"
8680 for f in $tm_file; do
8681 echo " $srcdir/config/$f"
8685 if test x$need_64bit_hwint = xyes; then
8687 cat >>confdefs.h <<\_ACEOF
8688 #define NEED_64BIT_HOST_WIDE_INT 1
8694 for f in $host_xm_file; do
8697 if test $count = a; then
8699 elif test $count = ax; then
8700 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
8702 echo "Using the following host machine macro files:"
8703 for f in $host_xm_file; do
8704 echo " $srcdir/config/$f"
8707 echo "Using ${out_host_hook_obj} for host machine hooks."
8709 if test "$host_xm_file" != "$build_xm_file"; then
8711 for f in $build_xm_file; do
8714 if test $count = a; then
8716 elif test $count = ax; then
8717 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
8719 echo "Using the following build machine macro files:"
8720 for f in $build_xm_file; do
8721 echo " $srcdir/config/$f"
8726 # Check if a valid thread package
8727 case ${enable_threads_flag} in
8730 target_thread_file='single'
8734 target_thread_file='single'
8736 aix | dce | gnat | irix | posix | rtems | \
8737 single | solaris | vxworks | win32 )
8738 target_thread_file=${enable_threads_flag}
8741 echo "${enable_threads_flag} is an unknown thread package" 1>&2
8746 if test x${thread_file} = x; then
8747 # No thread file set by target-specific clauses in config.gcc,
8748 # so use file chosen by default logic above
8749 thread_file=${target_thread_file}
8752 if test x$enable___cxa_atexit = xyes || \
8753 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
8755 cat >>confdefs.h <<\_ACEOF
8756 #define DEFAULT_USE_CXA_ATEXIT 1
8761 # Look for a file containing extra machine modes.
8762 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
8763 extra_modes_file='$(srcdir)'/config/${extra_modes}
8766 cat >>confdefs.h <<_ACEOF
8767 #define EXTRA_MODES_FILE "config/$extra_modes"
8772 # auto-host.h is the file containing items generated by autoconf and is
8773 # the first file included by config.h.
8774 # If host=build, it is correct to have bconfig include auto-host.h
8775 # as well. If host!=build, we are in error and need to do more
8776 # work to find out the build config parameters.
8777 if test x$host = x$build
8779 build_auto=auto-host.h
8782 # We create a subdir, then run autoconf in the subdir.
8783 # To prevent recursion we set host and build for the new
8784 # invocation of configure to the build for this invocation
8791 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
8792 *) realsrcdir=../${srcdir};;
8794 saved_CFLAGS="${CFLAGS}"
8795 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
8796 ${realsrcdir}/configure \
8797 --target=$target_alias --host=$build_alias --build=$build_alias
8798 CFLAGS="${saved_CFLAGS}"
8800 # We just finished tests for the build machine, so rename
8801 # the file auto-build.h in the gcc directory.
8802 mv auto-host.h ../auto-build.h
8805 build_auto=auto-build.h
8806 FORBUILD=../${build_subdir}
8810 tm_file="${tm_file} defaults.h"
8811 tm_p_file="${tm_p_file} tm-preds.h"
8812 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
8813 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
8814 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
8815 # put this back in temporarily.
8816 xm_file="ansidecl.h ${xm_file}"
8822 # Get the version trigger filename from the toplevel
8823 if test "${with_gcc_version_trigger+set}" = set; then
8824 gcc_version_trigger=$with_gcc_version_trigger
8826 gcc_version_trigger=${srcdir}/version.c
8828 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
8829 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8831 # Compile in configure arguments.
8832 if test -f configargs.h ; then
8833 # Being re-configured.
8834 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
8835 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
8837 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
8840 # Double all backslashes and backslash all quotes to turn
8841 # gcc_config_arguments into a C string.
8842 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
8843 $gcc_config_arguments
8845 gcc_config_arguments_str=`cat conftest.out`
8848 cat > configargs.h <<EOF
8849 /* Generated automatically. */
8850 static const char configuration_arguments[] = "$gcc_config_arguments_str";
8851 static const char thread_model[] = "$thread_file";
8853 static const struct {
8854 const char *name, *value;
8855 } configure_default_options[] = $configure_default_options;
8858 # Internationalization
8860 VERSION="$gcc_version"
8864 # If we haven't got the data from the intl directory,
8865 # assume NLS is disabled.
8873 if test -f ../intl/config.intl; then
8874 . ../intl/config.intl
8876 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8877 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8878 if test x"$USE_NLS" != xyes; then
8879 echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6
8882 echo "$as_me:$LINENO: result: yes" >&5
8883 echo "${ECHO_T}yes" >&6
8885 cat >>confdefs.h <<\_ACEOF
8886 #define ENABLE_NLS 1
8890 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8891 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8892 # Look for .po and .gmo files in the source directory.
8895 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8896 # If there aren't any .gmo files the shell will give us the
8897 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8899 case "$cat" in *\**)
8902 # The quadruple backslash is collapsed to a double backslash
8903 # by the backticks, then collapsed again by the double quotes,
8904 # leaving us with one backslash in the sed expression (right
8905 # before the dot that mustn't act as a wildcard).
8906 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
8907 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
8908 # The user is allowed to set LINGUAS to a list of languages to
8909 # install catalogs for. If it's empty that means "all of them."
8910 if test "x$LINGUAS" = x; then
8911 CATALOGS="$CATALOGS $cat"
8912 XLINGUAS="$XLINGUAS $lang"
8914 case "$LINGUAS" in *$lang*)
8915 CATALOGS="$CATALOGS $cat"
8916 XLINGUAS="$XLINGUAS $lang"
8922 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8923 echo "${ECHO_T}$LINGUAS" >&6
8926 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
8927 # -liconv on the link line twice.
8928 case "$LIBINTL" in *$LIBICONV*)
8932 # Windows32 Registry support for specifying GCC installation paths.
8933 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8934 if test "${enable_win32_registry+set}" = set; then
8935 enableval="$enable_win32_registry"
8939 win32 | pe | cygwin* | mingw32* | uwin*)
8940 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
8941 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
8942 if test "x$enable_win32_registry" != xno; then
8944 cat >>confdefs.h <<\_ACEOF
8945 #define ENABLE_WIN32_REGISTRY 1
8948 echo "$as_me:$LINENO: result: yes" >&5
8949 echo "${ECHO_T}yes" >&6
8950 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
8951 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
8952 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 ac_func_search_save_LIBS=$LIBS
8956 ac_cv_search_RegOpenKeyExA=no
8957 cat >conftest.$ac_ext <<_ACEOF
8958 #line $LINENO "configure"
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8965 /* Override any gcc2 internal prototype to avoid an error. */
8969 /* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8971 char RegOpenKeyExA ();
8980 rm -f conftest.$ac_objext conftest$ac_exeext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982 (eval $ac_link) 2>&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -s conftest$ac_exeext'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_cv_search_RegOpenKeyExA="none required"
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8999 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9000 for ac_lib in advapi32; do
9001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9002 cat >conftest.$ac_ext <<_ACEOF
9003 #line $LINENO "configure"
9006 cat confdefs.h >>conftest.$ac_ext
9007 cat >>conftest.$ac_ext <<_ACEOF
9008 /* end confdefs.h. */
9010 /* Override any gcc2 internal prototype to avoid an error. */
9014 /* We use char because int might match the return type of a gcc2
9015 builtin and then its argument prototype would still apply. */
9016 char RegOpenKeyExA ();
9025 rm -f conftest.$ac_objext conftest$ac_exeext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027 (eval $ac_link) 2>&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try='test -s conftest$ac_exeext'
9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; }; then
9037 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9047 LIBS=$ac_func_search_save_LIBS
9049 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9050 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9051 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9052 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9057 echo "$as_me:$LINENO: result: no" >&5
9058 echo "${ECHO_T}no" >&6
9061 # Check if user specified a different registry key.
9062 case "x${enable_win32_registry}" in
9065 gcc_cv_win32_registry_key="$VERSION"
9068 # no registry lookup.
9069 gcc_cv_win32_registry_key=''
9072 # user-specified key.
9073 gcc_cv_win32_registry_key="$enable_win32_registry"
9077 if test "x$enable_win32_registry" != xno; then
9078 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9079 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9081 cat >>confdefs.h <<_ACEOF
9082 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9085 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9086 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9091 # Get an absolute path to the GCC top-level source directory
9092 holddir=`${PWDCMD-pwd}`
9094 topdir=`${PWDCMD-pwd}`
9097 # Conditionalize the makefile for this host machine.
9099 for f in ${host_xmake_file}
9101 if test -f ${srcdir}/config/$f
9103 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9107 # Conditionalize the makefile for this target machine.
9109 for f in ${tmake_file}
9111 if test -f ${srcdir}/config/$f
9113 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9116 tmake_file="${tmake_file_}"
9118 symbolic_link='ln -s'
9120 # If the host doesn't support symlinks, modify CC in
9121 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9122 # Otherwise, we can use "CC=$(CC)".
9124 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9126 cc_set_by_configure="\$(CC)"
9127 quoted_cc_set_by_configure="\$(CC)"
9128 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9129 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9132 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9134 symbolic_link="cp -p"
9138 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9139 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9140 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9141 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9145 out_object_file=`basename $out_file .c`.o
9149 for f in $tm_file; do
9152 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9153 tm_include_list="${tm_include_list} $f"
9156 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9157 tm_include_list="${tm_include_list} config/$f"
9164 for f in $tm_p_file; do
9167 tm_p_file_list="${tm_p_file_list} $f"
9168 tm_p_include_list="${tm_p_include_list} $f"
9171 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9172 tm_p_include_list="${tm_p_include_list} config/$f"
9178 for f in $xm_file; do
9181 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9182 xm_include_list="${xm_include_list} $f"
9185 xm_file_list="${xm_file_list} $f"
9186 xm_include_list="${xm_include_list} $f"
9189 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9190 xm_include_list="${xm_include_list} config/$f"
9196 host_xm_include_list=
9197 for f in $host_xm_file; do
9200 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9201 host_xm_include_list="${host_xm_include_list} $f"
9204 host_xm_file_list="${host_xm_file_list} $f"
9205 host_xm_include_list="${host_xm_include_list} $f"
9208 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9209 host_xm_include_list="${host_xm_include_list} config/$f"
9215 for f in $build_xm_file; do
9218 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9219 build_xm_include_list="${build_xm_include_list} $f"
9221 auto-build.h | auto-host.h )
9222 build_xm_file_list="${build_xm_file_list} $f"
9223 build_xm_include_list="${build_xm_include_list} $f"
9226 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9227 build_xm_include_list="${build_xm_include_list} config/$f"
9232 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9233 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9236 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9237 if test x$host != x$target
9239 CROSS="-DCROSS_COMPILE"
9241 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9242 case "$host","$target" in
9243 # Darwin crosses can use the host system's libraries and headers,
9244 # because of the fat library support. Of course, it must be the
9245 # same version of Darwin on both sides. Allow the user to
9246 # just say --target=foo-darwin without a version number to mean
9247 # "the version on this system".
9248 *-*-darwin*,*-*-darwin*)
9249 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9250 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9251 if test $hostos = $targetos -o $targetos = darwin ; then
9253 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9258 i?86-*-*,x86_64-*-* \
9259 | powerpc*-*-*,powerpc64*-*-*)
9260 CROSS="$CROSS -DNATIVE_CROSS" ;;
9262 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9263 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9264 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9267 # If this is a cross-compiler that does not
9268 # have its own set of headers then define
9271 # If this is using newlib, without having the headers available now,
9272 # then define inhibit_libc in LIBGCC2_CFLAGS.
9273 # This prevents libgcc2 from containing any code which requires libc
9276 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9277 test x$with_newlib = xyes ; } &&
9278 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9279 inhibit_libc=-Dinhibit_libc
9283 # When building gcc with a cross-compiler, we need to adjust things so
9284 # that the generator programs are still built with the native compiler.
9285 # Also, we cannot run fixincludes or fix-header.
9287 # These are the normal (build=host) settings:
9289 BUILD_PREFIX_1=ignore-
9290 CC_FOR_BUILD='$(CC)'
9291 BUILD_CFLAGS='$(ALL_CFLAGS)'
9293 STMP_FIXINC=stmp-fixinc
9295 # Possibly disable fixproto, on a per-target basis.
9296 case ${use_fixproto} in
9301 STMP_FIXPROTO=stmp-fixproto
9306 # And these apply if build != host, or we are generating coverage data
9307 if test x$build != x$host || test "x$coverage_flags" != x
9310 BUILD_PREFIX_1=build-
9311 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9313 if test "x$TARGET_SYSTEM_ROOT" = x; then
9319 # Expand extra_headers to include complete path.
9320 # This substitutes for lots of t-* files.
9322 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9323 for file in ${extra_headers} ; do
9324 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9327 # Add a definition of USE_COLLECT2 if system wants one.
9328 case $use_collect2 in
9329 no) use_collect2= ;;
9332 host_xm_defines="${host_xm_defines} USE_COLLECT2"
9333 xm_defines="${xm_defines} USE_COLLECT2"
9337 # Identify the assembler which will work hand-in-glove with the newly
9338 # built GCC, so that we can examine its features. This is the assembler
9339 # which will be driven by the driver program.
9341 # If build != host, and we aren't building gas in-tree, we identify a
9342 # build->target assembler and hope that it will have the same features
9343 # as the host->target assembler we'll be using.
9344 echo "$as_me:$LINENO: checking what assembler to use" >&5
9345 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9348 gcc_cv_gas_major_version=
9349 gcc_cv_gas_minor_version=
9350 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9351 if test -x "$DEFAULT_ASSEMBLER"; then
9352 gcc_cv_as="$DEFAULT_ASSEMBLER"
9353 elif test -x "$AS"; then
9355 elif test -x as$host_exeext; then
9356 # Build using assembler in the current directory.
9357 gcc_cv_as=./as$host_exeext
9358 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9359 && test -f ../gas/Makefile; then
9360 # Single tree build which includes gas.
9362 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9363 for f in $gcc_cv_as_bfd_srcdir/configure \
9364 $gcc_cv_as_gas_srcdir/configure \
9365 $gcc_cv_as_gas_srcdir/configure.in \
9366 $gcc_cv_as_gas_srcdir/Makefile.in ; do
9367 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9368 if test x$gcc_cv_gas_version != x; then
9372 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9373 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9374 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9375 case $gcc_cv_gas_patch_version in
9376 "") gcc_cv_gas_patch_version="0" ;;
9378 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9379 + $gcc_cv_gas_minor_version \) \* 1000 \
9380 + $gcc_cv_gas_patch_version`
9382 rm -f as$host_exeext
9383 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9384 in_tree_gas_is_elf=no
9385 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9386 || (grep 'obj_format = multi' ../gas/Makefile \
9387 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9389 in_tree_gas_is_elf=yes
9393 if test "x$gcc_cv_as" = x; then
9394 # Search the same directories that the installed compiler will
9395 # search. Else we may find the wrong assembler and lose. If we
9396 # do not find a suitable assembler binary, then try the user's
9399 # Also note we have to check MD_EXEC_PREFIX before checking the
9400 # user's path. Unfortunately, there is no good way to get at the
9401 # value of MD_EXEC_PREFIX here. So we do a brute force search
9402 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9403 # to be fixed as part of the make/configure rewrite too.
9405 if test "x$exec_prefix" = xNONE; then
9406 if test "x$prefix" = xNONE; then
9407 test_prefix=/usr/local
9412 test_prefix=$exec_prefix
9415 # If the loop below does not find an assembler, then use whatever
9416 # one we can find in the users's path.
9418 if test "x$program_prefix" != xNONE; then
9419 gcc_cv_as=${program_prefix}as$host_exeext
9421 gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
9424 test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9425 $test_prefix/lib/gcc-lib/$target_noncanonical \
9426 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9427 /usr/lib/gcc/$target_noncanonical \
9428 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9429 $test_prefix/$target_noncanonical/bin"
9431 if test x$host = x$target; then
9432 test_dirs="$test_dirs \
9437 /bsd43/usr/lib/cmplrs/cc \
9438 /usr/cross64/usr/bin \
9439 /usr/lib/cmplrs/cc \
9440 /sysv/usr/lib/cmplrs/cc \
9441 /svr4/usr/lib/cmplrs/cc \
9445 for dir in $test_dirs; do
9446 if test -x $dir/as$host_exeext; then
9447 gcc_cv_as=$dir/as$host_exeext
9452 case $in_tree_gas in
9454 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9455 echo "${ECHO_T}\"newly built gas\"" >&6
9458 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9459 echo "${ECHO_T}$gcc_cv_as" >&6
9463 # Identify the linker which will work hand-in-glove with the newly
9464 # built GCC, so that we can examine its features. This is the linker
9465 # which will be driven by the driver program.
9467 # If build != host, and we aren't building gas in-tree, we identify a
9468 # build->target linker and hope that it will have the same features
9469 # as the host->target linker we'll be using.
9470 echo "$as_me:$LINENO: checking what linker to use" >&5
9471 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9474 gcc_cv_gld_major_version=
9475 gcc_cv_gld_minor_version=
9476 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9477 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9478 if test -x "$DEFAULT_LINKER"; then
9479 gcc_cv_ld="$DEFAULT_LINKER"
9480 elif test -x "$LD"; then
9482 elif test -x collect-ld$host_exeext; then
9483 # Build using linker in the current directory.
9484 gcc_cv_ld=./collect-ld$host_exeext
9485 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
9486 && test -f ../ld/Makefile; then
9487 # Single tree build which includes ld.
9489 in_tree_ld_is_elf=no
9490 if (grep 'EMUL = .*elf' ../ld/Makefile \
9491 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
9492 in_tree_ld_is_elf=yes
9494 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
9496 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9497 if test x$gcc_cv_gld_version != x; then
9501 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9502 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9503 rm -f collect-ld$host_exeext
9504 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
9508 if test "x$gcc_cv_ld" = x; then
9509 # Search the same directories that the installed compiler will
9510 # search. Else we may find the wrong linker and lose. If we
9511 # do not find a suitable linker binary, then try the user's
9514 # Also note we have to check MD_EXEC_PREFIX before checking the
9515 # user's path. Unfortunately, there is no good way to get at the
9516 # value of MD_EXEC_PREFIX here. So we do a brute force search
9517 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9518 # to be fixed as part of the make/configure rewrite too.
9520 if test "x$exec_prefix" = xNONE; then
9521 if test "x$prefix" = xNONE; then
9522 test_prefix=/usr/local
9527 test_prefix=$exec_prefix
9530 # If the loop below does not find an linker, then use whatever
9531 # one we can find in the users's path.
9533 if test "x$program_prefix" != xNONE; then
9534 gcc_cv_ld=${program_prefix}ld$host_exeext
9536 gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
9539 test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9540 $test_prefix/lib/gcc-lib/$target_noncanonical \
9541 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9542 /usr/lib/gcc/$target_noncanonical \
9543 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9544 $test_prefix/$target_noncanonical/bin"
9546 if test x$host = x$target; then
9547 test_dirs="$test_dirs \
9552 /bsd43/usr/lib/cmplrs/cc \
9553 /usr/cross64/usr/bin \
9554 /usr/lib/cmplrs/cc \
9555 /sysv/usr/lib/cmplrs/cc \
9556 /svr4/usr/lib/cmplrs/cc \
9560 for dir in $test_dirs; do
9561 if test -x $dir/ld$host_exeext; then
9562 gcc_cv_ld=$dir/ld$host_exeext
9569 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
9570 echo "${ECHO_T}\"newly built ld\"" >&6
9573 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
9574 echo "${ECHO_T}$gcc_cv_ld" >&6
9578 # Figure out what nm we will be using.
9579 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
9580 echo "$as_me:$LINENO: checking what nm to use" >&5
9581 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
9583 if test -x nm$host_exeext; then
9584 gcc_cv_nm=./nm$host_exeext
9585 elif test -f $gcc_cv_binutils_srcdir/configure.in \
9586 && test -f ../binutils/Makefile; then
9587 # Single tree build which includes binutils.
9589 gcc_cv_nm=./nm$host_exeext
9590 rm -f nm$host_exeext
9591 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
9592 elif test "x$program_prefix" != xNONE; then
9593 gcc_cv_nm=${program_prefix}nm$host_exeext
9595 gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
9598 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
9599 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
9600 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
9601 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
9604 # Figure out what objdump we will be using.
9605 echo "$as_me:$LINENO: checking what objdump to use" >&5
9606 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
9608 if test -x objdump$host_exeext; then
9609 gcc_cv_objdump=./objdump$host_exeext
9610 elif test -f $gcc_cv_binutils_srcdir/configure.in \
9611 && test -f ../binutils/Makefile; then
9612 # Single tree build which includes binutils.
9614 gcc_cv_objdump=./objdump$host_exeext
9615 rm -f objdump$host_exeext
9616 $symbolic_link ../binutils/objdump$host_exeext \
9617 objdump$host_exeext 2>/dev/null
9618 elif test "x$program_prefix" != xNONE; then
9619 gcc_cv_objdump=${program_prefix}objdump$host_exeext
9621 gcc_cv_objdump=`echo objdump | \
9622 sed ${program_transform_name}`$host_exeext
9624 case $in_tree_objdump in
9625 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
9626 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
9627 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
9628 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
9631 # Figure out what assembler alignment features are present.
9632 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
9633 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
9634 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 gcc_cv_as_balign_and_p2align=no
9638 if test $in_tree_gas = yes; then
9639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
9640 then gcc_cv_as_balign_and_p2align=yes
9642 elif test x$gcc_cv_as != x; then
9644 .p2align 2' > conftest.s
9645 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }
9652 gcc_cv_as_balign_and_p2align=yes
9654 echo "configure: failed program was" >&5
9657 rm -f conftest.o conftest.s
9660 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
9661 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
9662 if test $gcc_cv_as_balign_and_p2align = yes; then
9664 cat >>confdefs.h <<\_ACEOF
9665 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9670 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
9671 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
9672 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 gcc_cv_as_max_skip_p2align=no
9676 if test $in_tree_gas = yes; then
9677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
9678 then gcc_cv_as_max_skip_p2align=yes
9680 elif test x$gcc_cv_as != x; then
9681 echo '.p2align 4,,7' > conftest.s
9682 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }
9689 gcc_cv_as_max_skip_p2align=yes
9691 echo "configure: failed program was" >&5
9694 rm -f conftest.o conftest.s
9697 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
9698 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
9699 if test $gcc_cv_as_max_skip_p2align = yes; then
9701 cat >>confdefs.h <<\_ACEOF
9702 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9707 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
9708 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
9709 if test "${gcc_cv_as_subsection_m1+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 gcc_cv_as_subsection_m1=no
9713 if test $in_tree_gas = yes; then
9714 if test $in_tree_gas_is_elf = yes \
9715 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
9716 then gcc_cv_as_subsection_m1=yes
9718 elif test x$gcc_cv_as != x; then
9719 echo 'conftest_label1: .word 0
9721 conftest_label2: .word 0
9722 .previous' > conftest.s
9723 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }
9730 if test x$gcc_cv_nm != x; then
9731 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
9732 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
9733 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
9735 else gcc_cv_as_subsection_m1=yes
9737 rm -f conftest.nm1 conftest.nm2
9740 echo "configure: failed program was" >&5
9743 rm -f conftest.o conftest.s
9746 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
9747 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
9748 if test $gcc_cv_as_subsection_m1 = yes; then
9750 cat >>confdefs.h <<\_ACEOF
9751 #define HAVE_GAS_SUBSECTION_ORDERING 1
9756 echo "$as_me:$LINENO: checking assembler for .weak" >&5
9757 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
9758 if test "${gcc_cv_as_weak+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 if test $in_tree_gas = yes; then
9763 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
9764 then gcc_cv_as_weak=yes
9766 elif test x$gcc_cv_as != x; then
9767 echo ' .weak foobar' > conftest.s
9768 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; }
9777 echo "configure: failed program was" >&5
9780 rm -f conftest.o conftest.s
9783 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
9784 echo "${ECHO_T}$gcc_cv_as_weak" >&6
9785 if test $gcc_cv_as_weak = yes; then
9787 cat >>confdefs.h <<\_ACEOF
9788 #define HAVE_GAS_WEAK 1
9793 # .hidden needs to be supported in both the assembler and the linker,
9794 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
9795 # This is irritatingly difficult to feature test for; we have to check the
9796 # date string after the version number. If we've got an in-tree
9797 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
9799 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
9800 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
9801 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
9802 if test "${gcc_cv_as_hidden+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 if test $in_tree_gas = yes; then
9807 if test $in_tree_gas_is_elf = yes \
9808 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
9809 then gcc_cv_as_hidden=yes
9811 elif test x$gcc_cv_as != x; then
9812 echo ' .hidden foobar
9813 foobar:' > conftest.s
9814 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }
9821 gcc_cv_as_hidden=yes
9823 echo "configure: failed program was" >&5
9826 rm -f conftest.o conftest.s
9829 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
9830 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
9833 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
9834 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
9835 if test "${gcc_cv_ld_hidden+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 if test $in_tree_ld = yes ; then
9840 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 \
9841 && test $in_tree_ld_is_elf = yes; then
9842 gcc_cv_ld_hidden=yes
9845 gcc_cv_ld_hidden=yes
9846 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
9847 if echo "$ld_ver" | grep GNU > /dev/null; then
9848 ld_vers=`echo $ld_ver | sed -n \
9849 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9850 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9851 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9852 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9853 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9854 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
9855 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'`
9856 if test 0"$ld_date" -lt 20020404; then
9857 if test -n "$ld_date"; then
9858 # If there was date string, but was earlier than 2002-04-04, fail
9860 elif test -z "$ld_vers"; then
9861 # If there was no date string nor ld version number, something is wrong
9864 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
9865 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
9866 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9867 test -z "$ld_vers_patch" && ld_vers_patch=0
9868 if test "$ld_vers_major" -lt 2; then
9870 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
9871 gcc_cv_ld_hidden="no"
9872 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
9880 gcc_cv_ld_hidden=yes
9889 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
9890 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
9891 libgcc_visibility=no
9893 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
9894 libgcc_visibility=yes
9896 cat >>confdefs.h <<\_ACEOF
9897 #define HAVE_GAS_HIDDEN 1
9902 # Check if we have .[us]leb128, and support symbol arithmetic with it.
9903 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
9904 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
9905 if test "${gcc_cv_as_leb128+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 if test $in_tree_gas = yes; then
9910 if test $in_tree_gas_is_elf = yes \
9911 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
9912 then gcc_cv_as_leb128=yes
9914 elif test x$gcc_cv_as != x; then
9921 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }
9928 # GAS versions before 2.11 do not support uleb128,
9929 # despite appearing to.
9930 # ??? There exists an elf-specific test that will crash
9931 # the assembler. Perhaps it's better to figure out whether
9932 # arbitrary sections are supported and try the test.
9933 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
9934 if echo "$as_ver" | grep GNU > /dev/null; then
9935 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
9936 as_major=`echo $as_ver | sed 's/\..*//'`
9937 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
9938 if test $as_major -eq 2 && test $as_minor -lt 11
9940 else gcc_cv_as_leb128=yes
9944 echo "configure: failed program was" >&5
9947 rm -f conftest.o conftest.s
9950 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
9951 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
9952 if test $gcc_cv_as_leb128 = yes; then
9954 cat >>confdefs.h <<\_ACEOF
9955 #define HAVE_AS_LEB128 1
9960 # GAS versions up to and including 2.11.0 may mis-optimize
9962 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
9963 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
9964 if test "${gcc_cv_as_eh_frame+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 gcc_cv_as_eh_frame=no
9968 if test $in_tree_gas = yes; then
9969 if test $in_tree_gas_is_elf = yes \
9970 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
9971 then gcc_cv_as_eh_frame=yes
9973 elif test x$gcc_cv_as != x; then
9980 .section .eh_frame,"aw",@progbits
9982 .4byte .LECIE1-.LSCIE1
9996 .4byte .LEFDE1-.LASFDE1
9998 .4byte .LASFDE1-__FRAME_BEGIN__
10005 .LEFDE1:' > conftest.s
10006 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }
10013 cat > conftest.lit <<EOF
10014 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10015 0010 01000000 12000000 18000000 00000000 ................
10016 0020 08000000 04080000 0044 .........D
10018 cat > conftest.big <<EOF
10019 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10020 0010 00000001 00000012 00000018 00000000 ................
10021 0020 00000008 04000000 0844 .........D
10023 # If the assembler didn't choke, and we can objdump,
10024 # and we got the correct data, then succeed.
10025 if test x$gcc_cv_objdump != x \
10026 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10027 | tail -3 > conftest.got \
10028 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10029 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10031 gcc_cv_as_eh_frame=yes
10032 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 gcc_cv_as_eh_frame=buggy
10040 # Uh oh, what do we do now?
10041 gcc_cv_as_eh_frame=no
10044 echo "configure: failed program was" >&5
10047 rm -f conftest.o conftest.s
10050 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10051 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10054 if test $gcc_cv_as_eh_frame = buggy; then
10056 cat >>confdefs.h <<\_ACEOF
10057 #define USE_AS_TRADITIONAL_FORMAT 1
10062 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10063 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10064 if test "${gcc_cv_as_shf_merge+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 gcc_cv_as_shf_merge=no
10068 if test $in_tree_gas = yes; then
10069 if test $in_tree_gas_is_elf = yes \
10070 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10071 then gcc_cv_as_shf_merge=yes
10073 elif test x$gcc_cv_as != x; then
10074 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10075 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }
10082 gcc_cv_as_shf_merge=yes
10084 echo "configure: failed program was" >&5
10087 rm -f conftest.o conftest.s
10090 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10091 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10094 cat >>confdefs.h <<_ACEOF
10095 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10099 # Thread-local storage - the check is heavily parametrized.
10107 .section ".tdata","awT",@progbits
10110 ldq $27,__tls_get_addr($29) !literal!1
10111 lda $16,foo($29) !tlsgd!1
10112 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10113 ldq $27,__tls_get_addr($29) !literal!2
10114 lda $16,foo($29) !tlsldm!2
10115 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10116 ldq $1,foo($29) !gotdtprel
10117 ldah $2,foo($29) !dtprelhi
10118 lda $3,foo($2) !dtprello
10119 lda $4,foo($29) !dtprel
10120 ldq $1,foo($29) !gottprel
10121 ldah $2,foo($29) !tprelhi
10122 lda $3,foo($2) !tprello
10123 lda $4,foo($29) !tprel'
10129 .section ".tdata","awT",@progbits
10133 leal foo@TLSGD(,%ebx,1), %eax
10134 leal foo@TLSLDM(%ebx), %eax
10135 leal foo@DTPOFF(%eax), %edx
10136 movl foo@GOTTPOFF(%ebx), %eax
10137 subl foo@GOTTPOFF(%ebx), %eax
10138 addl foo@GOTNTPOFF(%ebx), %eax
10139 movl foo@INDNTPOFF, %eax
10140 movl $foo@TPOFF, %eax
10141 subl $foo@TPOFF, %eax
10142 leal foo@NTPOFF(%ecx), %eax'
10148 .section ".tdata","awT",@progbits
10152 leaq foo@TLSGD(%rip), %rdi
10153 leaq foo@TLSLD(%rip), %rdi
10154 leaq foo@DTPOFF(%rax), %rdx
10155 movq foo@GOTTPOFF(%rip), %rax
10156 movq $foo@TPOFF, %rax'
10162 .section ".tdata","awT",@progbits
10165 addl r16 = @ltoff(@dtpmod(foo#)), gp
10166 addl r17 = @ltoff(@dtprel(foo#)), gp
10167 addl r18 = @ltoff(@tprel(foo#)), gp
10168 addl r19 = @dtprel(foo#), gp
10169 adds r21 = @dtprel(foo#), r13
10170 movl r23 = @dtprel(foo#)
10171 addl r20 = @tprel(foo#), gp
10172 adds r22 = @tprel(foo#), r13
10173 movl r24 = @tprel(foo#)'
10179 .section ".tdata","awT",@progbits
10187 addi 3,31,ld0@got@tlsgd
10189 addi 3,31,x1@got@tlsld
10192 addis 9,3,x2@dtprel@ha
10193 addi 9,9,x2@dtprel@l
10194 lwz 9,x3@got@tprel(31)
10197 addis 9,2,x2@tprel@ha
10198 addi 9,9,x2@tprel@l'
10205 .section ".tdata","awT",@progbits
10213 addi 3,2,ld0@got@tlsgd
10219 addi 3,2,x1@got@tlsld
10225 addis 9,3,x2@dtprel@ha
10226 addi 9,9,x2@dtprel@l
10229 ld 9,x3@got@dtprel(2)
10239 .section ".tdata","awT",@progbits
10246 .long foo@GOTNTPOFF
10247 .long foo@INDNTPOFF
10248 l %r1,foo@GOTNTPOFF(%r12)
10249 l %r1,0(%r1):tls_load:foo
10250 bas %r14,0(%r1,%r13):tls_gdcall:foo
10251 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10258 .section ".tdata","awT",@progbits
10265 .quad foo@GOTNTPOFF
10266 lg %r1,foo@GOTNTPOFF(%r12)
10267 larl %r1,foo@INDNTPOFF
10268 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10269 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10272 tls_as_opt="-m64 -Aesame"
10274 sh-*-* | sh[34]-*-*)
10276 .section ".tdata","awT",@progbits
10289 .section ".tdata","awT",@progbits
10292 sethi %tgd_hi22(foo), %o0
10293 add %o0, %tgd_lo10(foo), %o1
10294 add %l7, %o1, %o0, %tgd_add(foo)
10295 call __tls_get_addr, %tgd_call(foo)
10296 sethi %tldm_hi22(foo), %l1
10297 add %l1, %tldm_lo10(foo), %l2
10298 add %l7, %l2, %o0, %tldm_add(foo)
10299 call __tls_get_addr, %tldm_call(foo)
10300 sethi %tldo_hix22(foo), %l3
10301 xor %l3, %tldo_lox10(foo), %l4
10302 add %o0, %l4, %l5, %tldo_add(foo)
10303 sethi %tie_hi22(foo), %o3
10304 add %o3, %tie_lo10(foo), %o3
10305 ld [%l7 + %o3], %o2, %tie_ld(foo)
10306 add %g7, %o2, %o4, %tie_add(foo)
10307 sethi %tle_hix22(foo), %l1
10308 xor %l1, %tle_lox10(foo), %o5
10309 ld [%g7 + %o5], %o1'
10315 if test -z "$tls_first_major"; then
10316 : # If we don't have a check, assume no support.
10318 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10319 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10320 if test "${gcc_cv_as_tls+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 if test $in_tree_gas = yes; then
10325 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10326 then gcc_cv_as_tls=yes
10328 elif test x$gcc_cv_as != x; then
10329 echo "$conftest_s" > conftest.s
10330 if { ac_try='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; }
10339 echo "configure: failed program was" >&5
10342 rm -f conftest.o conftest.s
10345 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10346 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10347 if test $gcc_cv_as_tls = yes; then
10349 cat >>confdefs.h <<\_ACEOF
10350 #define HAVE_AS_TLS 1
10356 # Target-specific assembler checks.
10359 # All TARGET_ABI_OSF targets.
10360 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10361 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10362 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10363 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 gcc_cv_as_alpha_explicit_relocs=no
10367 if test $in_tree_gas = yes; then
10368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10369 then gcc_cv_as_alpha_explicit_relocs=yes
10371 elif test x$gcc_cv_as != x; then
10372 echo ' .set nomacro
10374 extbl $3, $2, $3 !lituse_bytoff!1
10375 ldq $2, a($29) !literal!1
10376 ldq $4, b($29) !literal!2
10377 ldq_u $3, 0($2) !lituse_base!1
10378 ldq $27, f($29) !literal!5
10379 jsr $26, ($27), f !lituse_jsr!5
10380 ldah $29, 0($26) !gpdisp!3
10381 lda $0, c($29) !gprel
10382 ldah $1, d($29) !gprelhigh
10383 lda $1, d($1) !gprellow
10384 lda $29, 0($29) !gpdisp!3' > conftest.s
10385 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; }
10392 gcc_cv_as_alpha_explicit_relocs=yes
10394 echo "configure: failed program was" >&5
10397 rm -f conftest.o conftest.s
10400 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10401 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10402 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_AS_EXPLICIT_RELOCS 1
10412 echo "$as_me:$LINENO: checking assembler for .register" >&5
10413 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10414 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 gcc_cv_as_sparc_register_op=no
10418 if test x$gcc_cv_as != x; then
10419 echo '.register %g2, #scratch' > conftest.s
10420 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422 (eval $ac_try) 2>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; }
10427 gcc_cv_as_sparc_register_op=yes
10429 echo "configure: failed program was" >&5
10432 rm -f conftest.o conftest.s
10435 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10436 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10437 if test $gcc_cv_as_sparc_register_op = yes; then
10439 cat >>confdefs.h <<\_ACEOF
10440 #define HAVE_AS_REGISTER_PSEUDO_OP 1
10445 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
10446 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
10447 if test "${gcc_cv_as_sparc_relax+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 gcc_cv_as_sparc_relax=no
10451 if test x$gcc_cv_as != x; then
10452 echo '.text' > conftest.s
10453 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; }
10460 gcc_cv_as_sparc_relax=yes
10462 echo "configure: failed program was" >&5
10465 rm -f conftest.o conftest.s
10468 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
10469 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
10470 if test $gcc_cv_as_sparc_relax = yes; then
10472 cat >>confdefs.h <<\_ACEOF
10473 #define HAVE_AS_RELAX_OPTION 1
10478 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
10479 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
10480 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 gcc_cv_as_sparc_ua_pcrel=no
10484 if test x$gcc_cv_as != x; then
10491 .uaword %r_disp32(foo)' > conftest.s
10492 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494 (eval $ac_try) 2>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; }
10499 if test x$gcc_cv_ld != x \
10500 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
10501 gcc_cv_as_sparc_ua_pcrel=yes
10505 echo "configure: failed program was" >&5
10508 rm -f conftest.o conftest.s
10511 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
10512 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
10513 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
10515 cat >>confdefs.h <<\_ACEOF
10516 #define HAVE_AS_SPARC_UA_PCREL 1
10520 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
10521 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
10522 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 gcc_cv_as_sparc_ua_pcrel_hidden=no
10526 if test x$gcc_cv_as != x; then
10530 .uaword %r_disp32(foo)
10531 .byte 0x32, 0x33, 0x34
10535 .skip 4' > conftest.s
10536 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }
10543 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
10544 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
10545 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
10546 | grep ' 31000000 07323334' > /dev/null 2>&1; then
10547 if $gcc_cv_objdump -R conftest 2> /dev/null \
10548 | grep 'DISP32' > /dev/null 2>&1; then
10551 gcc_cv_as_sparc_ua_pcrel_hidden=yes
10556 echo "configure: failed program was" >&5
10559 rm -f conftest.o conftest.s
10562 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
10563 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
10564 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
10566 cat >>confdefs.h <<\_ACEOF
10567 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
10572 fi # unaligned pcrel relocs
10574 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
10575 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
10576 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 gcc_cv_as_sparc_offsetable_lo10=no
10580 if test x$gcc_cv_as != x; then
10582 or %g1, %lo(ab) + 12, %g1
10583 or %g1, %lo(ab + 12), %g1' > conftest.s
10584 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }
10591 if test x$gcc_cv_objdump != x \
10592 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
10593 | grep ' 82106000 82106000' > /dev/null 2>&1; then
10594 gcc_cv_as_offsetable_lo10=yes
10597 echo "configure: failed program was" >&5
10600 rm -f conftest.o conftest.s
10603 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
10604 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
10605 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
10607 cat >>confdefs.h <<\_ACEOF
10608 #define HAVE_AS_OFFSETABLE_LO10 1
10614 i[34567]86-*-* | x86_64-*-*)
10615 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
10616 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
10617 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10620 gcc_cv_as_ix86_filds_fists=no
10621 if test $in_tree_gas = yes; then
10622 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10623 then gcc_cv_as_ix86_filds_fists=yes
10625 elif test x$gcc_cv_as != x; then
10626 echo 'filds mem; fists mem' > conftest.s
10627 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; }
10634 gcc_cv_as_ix86_filds_fists=yes
10636 echo "configure: failed program was" >&5
10639 rm -f conftest.o conftest.s
10642 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
10643 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
10644 if test $gcc_cv_as_ix86_filds_fists = yes; then
10646 cat >>confdefs.h <<\_ACEOF
10647 #define HAVE_GAS_FILDS_FISTS 1
10652 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
10653 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
10654 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10657 gcc_cv_as_ix86_cmov_sun_syntax=no
10658 if test x$gcc_cv_as != x; then
10659 echo 'cmovl.l %edx, %eax' > conftest.s
10660 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }
10667 gcc_cv_as_ix86_cmov_sun_syntax=yes
10669 echo "configure: failed program was" >&5
10672 rm -f conftest.o conftest.s
10675 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
10676 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
10677 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
10679 cat >>confdefs.h <<\_ACEOF
10680 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
10685 # This one is used unconditionally by i386.[ch]; it is to be defined
10686 # to 1 if the feature is present, 0 otherwise.
10687 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
10688 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
10689 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 gcc_cv_as_ix86_gotoff_in_data=no
10693 if test $in_tree_gas = yes; then
10694 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10695 then gcc_cv_as_ix86_gotoff_in_data=yes
10697 elif test x$gcc_cv_as != x; then
10702 .long .L0@GOTOFF' > conftest.s
10703 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; }
10710 gcc_cv_as_ix86_gotoff_in_data=yes
10712 echo "configure: failed program was" >&5
10715 rm -f conftest.o conftest.s
10718 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
10719 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
10722 cat >>confdefs.h <<_ACEOF
10723 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
10729 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
10730 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
10731 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
10735 if test $in_tree_gas = yes; then
10736 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10737 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
10739 elif test x$gcc_cv_as != x; then
10741 addl r15 = @ltoffx(x#), gp
10743 ld8.mov r16 = [r15], x#' > conftest.s
10744 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }
10751 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
10753 echo "configure: failed program was" >&5
10756 rm -f conftest.o conftest.s
10759 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
10760 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
10761 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
10763 cat >>confdefs.h <<\_ACEOF
10764 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
10773 *-*-aix) conftest_s=' .csect .textPR';;
10774 *) conftest_s=' .text';;
10776 conftest_s="$conftest_s
10779 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
10780 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
10781 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 gcc_cv_as_powerpc_mfcrf=no
10785 if test $in_tree_gas = yes; then
10786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10787 then gcc_cv_as_powerpc_mfcrf=yes
10789 elif test x$gcc_cv_as != x; then
10790 echo "$conftest_s" > conftest.s
10791 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }
10798 gcc_cv_as_powerpc_mfcrf=yes
10800 echo "configure: failed program was" >&5
10803 rm -f conftest.o conftest.s
10806 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
10807 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
10808 if test $gcc_cv_as_powerpc_mfcrf = yes; then
10810 cat >>confdefs.h <<\_ACEOF
10811 #define HAVE_AS_MFCRF 1
10818 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10819 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10820 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 gcc_cv_as_mips_explicit_relocs=no
10824 if test $in_tree_gas = yes; then
10825 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10826 then gcc_cv_as_mips_explicit_relocs=yes
10828 elif test x$gcc_cv_as != x; then
10829 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
10830 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }
10837 gcc_cv_as_mips_explicit_relocs=yes
10839 echo "configure: failed program was" >&5
10842 rm -f conftest.o conftest.s
10845 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
10846 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
10847 if test $gcc_cv_as_mips_explicit_relocs = yes; then
10848 if test x$target_cpu_default = x
10849 then target_cpu_default=MASK_EXPLICIT_RELOCS
10850 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
10856 # ??? Not all targets support dwarf2 debug_line, even within a version
10857 # of gas. Moreover, we need to emit a valid instruction to trigger any
10858 # info to the output file. So, as supported targets are added to gas 2.11,
10859 # add some instruction here to (also) show we expect this might work.
10860 # ??? Once 2.11 is released, probably need to add first known working
10861 # version to the per-target configury.
10863 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
10864 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
10865 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
10875 if test x"$insn" != x; then
10877 .file 1 \"conftest.s\"
10880 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
10881 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
10882 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 gcc_cv_as_dwarf2_debug_line=no
10886 if test $in_tree_gas = yes; then
10887 if test $in_tree_gas_is_elf = yes \
10888 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10889 then gcc_cv_as_dwarf2_debug_line=yes
10891 elif test x$gcc_cv_as != x; then
10892 echo "$conftest_s" > conftest.s
10893 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }
10900 # ??? This fails with non-gnu grep. Maybe use objdump?
10901 if grep debug_line conftest.o > /dev/null 2>&1; then
10902 gcc_cv_as_dwarf2_debug_line=yes
10905 echo "configure: failed program was" >&5
10908 rm -f conftest.o conftest.s
10911 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
10912 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
10915 # The .debug_line file table must be in the exact order that
10916 # we specified the files, since these indices are also used
10917 # by DW_AT_decl_file. Approximate this test by testing if
10918 # the assembler bitches if the same index is assigned twice.
10919 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
10920 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
10921 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 gcc_cv_as_dwarf2_file_buggy=no
10925 if test x$gcc_cv_as != x; then
10926 echo ' .file 1 "foo.s"
10927 .file 1 "bar.s"' > conftest.s
10928 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }
10935 gcc_cv_as_dwarf2_file_buggy=yes
10937 echo "configure: failed program was" >&5
10940 rm -f conftest.o conftest.s
10943 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
10944 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
10947 if test $gcc_cv_as_dwarf2_debug_line = yes \
10948 && test $gcc_cv_as_dwarf2_file_buggy = no; then
10950 cat >>confdefs.h <<\_ACEOF
10951 #define HAVE_AS_DWARF2_DEBUG_LINE 1
10956 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
10957 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
10958 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 gcc_cv_as_gdwarf2_flag=no
10962 if test $in_tree_gas = yes; then
10963 if test $in_tree_gas_is_elf = yes \
10964 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10965 then gcc_cv_as_gdwarf2_flag=yes
10967 elif test x$gcc_cv_as != x; then
10968 echo "$insn" > conftest.s
10969 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; }
10976 gcc_cv_as_gdwarf2_flag=yes
10978 echo "configure: failed program was" >&5
10981 rm -f conftest.o conftest.s
10984 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
10985 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
10986 if test $gcc_cv_as_gdwarf2_flag = yes; then
10988 cat >>confdefs.h <<\_ACEOF
10989 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
10994 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
10995 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
10996 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10999 gcc_cv_as_gstabs_flag=no
11000 if test $in_tree_gas = yes; then
11001 if test $in_tree_gas_is_elf = yes \
11002 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11003 then gcc_cv_as_gstabs_flag=yes
11005 elif test x$gcc_cv_as != x; then
11006 echo "$insn" > conftest.s
11007 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; }
11014 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11015 # and warns about it, but still exits successfully. So check for
11017 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }
11024 else gcc_cv_as_gstabs_flag=yes
11027 echo "configure: failed program was" >&5
11030 rm -f conftest.o conftest.s
11033 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11034 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11035 if test $gcc_cv_as_gstabs_flag = yes; then
11037 cat >>confdefs.h <<\_ACEOF
11038 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11044 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11045 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11046 gcc_cv_ld_ro_rw_mix=unknown
11047 if test $in_tree_ld = yes ; then
11048 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 \
11049 && test $in_tree_ld_is_elf = yes; then
11050 gcc_cv_ld_ro_rw_mix=read-write
11052 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11053 echo '.section myfoosect, "a"' > conftest1.s
11054 echo '.section myfoosect, "aw"' > conftest2.s
11055 echo '.byte 1' >> conftest2.s
11056 echo '.section myfoosect, "a"' > conftest3.s
11057 echo '.byte 0' >> conftest3.s
11058 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11059 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11060 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11061 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11062 conftest2.o conftest3.o > /dev/null 2>&1; then
11063 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11064 | sed -e '/myfoosect/!d' -e N`
11065 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11066 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11067 gcc_cv_ld_ro_rw_mix=read-only
11069 gcc_cv_ld_ro_rw_mix=read-write
11073 rm -f conftest.* conftest[123].*
11075 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11077 cat >>confdefs.h <<\_ACEOF
11078 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11082 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11083 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11085 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11086 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11087 gcc_cv_ld_eh_frame_hdr=no
11088 if test $in_tree_ld = yes ; then
11089 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 \
11090 && test $in_tree_ld_is_elf = yes; then
11091 gcc_cv_ld_eh_frame_hdr=yes
11093 elif test x$gcc_cv_ld != x; then
11094 # Check if linker supports --eh-frame-hdr option
11095 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11096 gcc_cv_ld_eh_frame_hdr=yes
11099 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11101 cat >>confdefs.h <<\_ACEOF
11102 #define HAVE_LD_EH_FRAME_HDR 1
11106 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11107 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11109 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11110 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11112 if test $in_tree_ld = yes ; then
11113 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 \
11114 && test $in_tree_ld_is_elf = yes; then
11117 elif test x$gcc_cv_ld != x; then
11118 # Check if linker supports -pie option
11119 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11123 if test x"$gcc_cv_ld_pie" = xyes; then
11125 cat >>confdefs.h <<\_ACEOF
11126 #define HAVE_LD_PIE 1
11130 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11131 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11133 if test x$with_sysroot = x && test x$host = x$target \
11134 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11136 cat >>confdefs.h <<_ACEOF
11137 #define PREFIX_INCLUDE_DIR "$prefix/include"
11142 # Figure out what language subdirectories are present.
11143 # Look if the user specified --enable-languages="..."; if not, use
11144 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11145 # go away some day.
11146 # NB: embedded tabs in this IF block -- do not untabify
11147 if test x"${enable_languages+set}" != xset; then
11148 if test x"${LANGUAGES+set}" = xset; then
11149 enable_languages="${LANGUAGES}"
11150 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11151 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11154 enable_languages=all
11157 if test x"${enable_languages}" = x \
11158 || test x"${enable_languages}" = xyes;
11160 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11161 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11162 { (exit 1); exit 1; }; }
11165 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
11167 # First scan to see if an enabled language requires some other language.
11168 # We assume that a given config-lang.in will list all the language
11169 # front ends it requires, even if some are required indirectly.
11170 for lang in ${srcdir}/*/config-lang.in
11173 # The odd quoting in the next line works around
11174 # an apparent bug in bash 1.12 on linux.
11175 ${srcdir}/[*]/config-lang.in)
11178 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11179 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
11180 for other in $this_lang_requires
11182 case ,${enable_languages}, in
11188 enable_languages="$enable_languages,$other"
11196 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
11199 for lang in ${srcdir}/*/config-lang.in
11202 # The odd quoting in the next line works around
11203 # an apparent bug in bash 1.12 on linux.
11204 ${srcdir}/[*]/config-lang.in) ;;
11206 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11207 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
11208 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
11209 if test "x$lang_alias" = x
11211 echo "$lang doesn't set \$language." 1>&2
11214 case ${build_by_default},${enable_languages}, in
11215 *,$lang_alias,*) add_this_lang=yes ;;
11216 no,*) add_this_lang=no ;;
11217 *,all,*) add_this_lang=yes ;;
11218 *) add_this_lang=no ;;
11220 found_languages="${found_languages} ${lang_alias}"
11221 if test x"${add_this_lang}" = xyes; then
11223 ${srcdir}/ada/config-lang.in)
11224 if test x$have_gnat = xyes ; then
11225 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11229 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11238 for expected_language in ${expected_languages} ..
11240 if test "${expected_language}" != ..; then
11241 missing_language="${expected_language}"
11242 if test "${expected_language}" = "c" \
11243 || test "${expected_language}" = "all"; then
11246 for found_language in ${found_languages} ..
11248 if test "${found_language}" != ..; then
11249 if test "${expected_language}" = "${found_language}"; then
11254 if test "x${missing_language}" != x; then
11255 missing_languages="${missing_languages} ${missing_language}"
11260 if test "x$missing_languages" != x; then
11261 { { echo "$as_me:$LINENO: error:
11262 The following requested languages were not found:${missing_languages}
11263 The following languages were available: c${found_languages}" >&5
11264 echo "$as_me: error:
11265 The following requested languages were not found:${missing_languages}
11266 The following languages were available: c${found_languages}" >&2;}
11267 { (exit 1); exit 1; }; }
11270 # Make gthr-default.h if we have a thread file.
11272 if test $thread_file != single; then
11273 rm -f gthr-default.h
11274 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11275 gthread_flags=-DHAVE_GTHR_DEFAULT
11279 # Find out what GC implementation we want, or may, use.
11281 # Check whether --with-gc or --without-gc was given.
11282 if test "${with_gc+set}" = set; then
11285 simple | page | zone)
11289 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11290 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11291 { (exit 1); exit 1; }; }
11298 echo "Using $GGC for garbage collection."
11300 # Use the system's zlib library.
11302 zlibinc="-I\$(srcdir)/../zlib"
11304 # Check whether --with-system-zlib or --without-system-zlib was given.
11305 if test "${with_system_zlib+set}" = set; then
11306 withval="$with_system_zlib"
11315 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11316 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11317 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11318 if test "${enable_maintainer_mode+set}" = set; then
11319 enableval="$enable_maintainer_mode"
11320 maintainer_mode=$enableval
11325 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11326 echo "${ECHO_T}$maintainer_mode" >&6
11328 if test "$maintainer_mode" = "yes"; then
11334 # Make empty files to contain the specs and options for each language.
11335 # Then add #include lines to for a compiler that has specs and/or options.
11340 for subdir in . $subdirs
11342 if test -f $srcdir/$subdir/lang.opt; then
11343 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11345 if test -f $srcdir/$subdir/lang-specs.h; then
11346 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11348 if test -f $srcdir/$subdir/$subdir-tree.def; then
11349 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11353 # These (without "all_") are set in each config-lang.in.
11354 # `language' must be a single word so is spelled singularly.
11356 all_boot_languages=
11359 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11360 # List of language makefile fragments.
11361 all_lang_makefrags=
11362 # List of language subdirectory makefiles. Deprecated.
11363 all_lang_makefiles=
11364 # Files for gengtype
11365 all_gtfiles="$target_gtfiles"
11366 # Files for gengtype with language
11367 all_gtfiles_files_langs=
11368 all_gtfiles_files_files=
11370 # Add the language fragments.
11371 # Languages are added via two mechanisms. Some information must be
11372 # recorded in makefile variables, these are defined in config-lang.in.
11373 # We accumulate them and plug them into the main Makefile.
11374 # The other mechanism is a set of hooks for each of the main targets
11375 # like `clean', `install', etc.
11377 language_hooks="Make-hooks"
11387 . ${srcdir}/$s/config-lang.in
11388 if test "x$language" = x
11390 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11393 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11394 if test -f ${srcdir}/$s/Makefile.in
11395 then all_lang_makefiles="$s/Makefile"
11397 all_languages="$all_languages $language"
11398 if test "x$boot_language" = xyes
11400 all_boot_languages="$all_boot_languages $language"
11402 all_compilers="$all_compilers $compilers"
11403 all_stagestuff="$all_stagestuff $stagestuff"
11404 all_outputs="$all_outputs $outputs"
11405 all_gtfiles="$all_gtfiles $gtfiles"
11408 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11409 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11413 # Pick up gtfiles for c
11416 . ${srcdir}/c-config-lang.in
11417 all_gtfiles="$all_gtfiles $gtfiles"
11420 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11421 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11425 for language in $all_languages
11427 check_languages="$check_languages check-$language"
11430 # We link each language in with a set of hooks, reached indirectly via
11435 target_list="all.build all.cross start.encap rest.encap tags \
11436 install-normal install-common install-man \
11438 mostlyclean clean distclean maintainer-clean \
11439 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11440 for t in $target_list
11443 for lang in $all_languages
11447 echo "lang.$t: $x" >> Make-hooks
11452 echo "dir ." > .gdbinit
11453 echo "dir ${srcdir}" >> .gdbinit
11454 if test x$gdb_needs_out_file_path = xyes
11456 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11458 if test "x$subdirs" != x; then
11461 echo "dir ${srcdir}/$s" >> .gdbinit
11464 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11466 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
11467 # absolute path for gcc_tooldir based on inserting the number of up-directory
11468 # movements required to get from $(exec_prefix) to $(prefix) into the basic
11469 # $(libsubdir)/@(unlibsubdir) based path.
11470 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
11471 # make and thus we'd get different behavior depending on where we built the
11473 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
11474 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
11476 # An explanation of the sed strings:
11477 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
11478 # -e 's|/$||' match a trailing forward slash and eliminates it
11479 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
11480 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
11482 # (*) Note this pattern overwrites the first character of the string
11483 # with a forward slash if one is not already present. This is not a
11484 # problem because the exact names of the sub-directories concerned is
11485 # unimportant, just the number of them matters.
11487 # The practical upshot of these patterns is like this:
11489 # prefix exec_prefix result
11490 # ------ ----------- ------
11491 # /foo /foo/bar ../
11492 # /foo/ /foo/bar ../
11493 # /foo /foo/bar/ ../
11494 # /foo/ /foo/bar/ ../
11495 # /foo /foo/bar/ugg ../../
11498 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
11503 # Find a directory in which to install a shared libgcc.
11505 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
11506 if test "${enable_version_specific_runtime_libs+set}" = set; then
11507 enableval="$enable_version_specific_runtime_libs"
11512 # Check whether --with-slibdir or --without-slibdir was given.
11513 if test "${with_slibdir+set}" = set; then
11514 withval="$with_slibdir"
11515 slibdir="$with_slibdir"
11517 if test "${enable_version_specific_runtime_libs+set}" = set; then
11518 slibdir='$(libsubdir)'
11519 elif test "$host" != "$target"; then
11520 slibdir='$(build_tooldir)/lib'
11522 slibdir='$(libdir)'
11527 objdir=`${PWDCMD-pwd}`
11530 # Substitute configuration variables
11602 if test x${build} = x${host} ; then
11603 if test x${host} = x${target} ; then
11604 echo "Links are now set up to build a native compiler for ${target}." 1>&2
11606 echo "Links are now set up to build a cross-compiler" 1>&2
11607 echo " from ${host} to ${target}." 1>&2
11610 if test x${host} = x${target} ; then
11611 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
11612 echo " for ${target}." 1>&2
11614 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
11615 echo " from ${host} to ${target}." 1>&2
11619 # Configure the subdirectories
11620 # AC_CONFIG_SUBDIRS($subdirs)
11622 # Create the Makefile
11623 # and configure language subdirectories
11624 ac_config_files="$ac_config_files $all_outputs"
11627 ac_config_commands="$ac_config_commands default"
11629 cat >confcache <<\_ACEOF
11630 # This file is a shell script that caches the results of configure
11631 # tests run on this system so they can be shared between configure
11632 # scripts and configure runs, see configure's option --config-cache.
11633 # It is not useful on other systems. If it contains results you don't
11634 # want to keep, you may remove or edit it.
11636 # config.status only pays attention to the cache file if you give it
11637 # the --recheck option to rerun configure.
11639 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11640 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11641 # following values.
11645 # The following way of writing the cache mishandles newlines in values,
11646 # but we know of no workaround that is simple, portable, and efficient.
11647 # So, don't put newlines in cache variables' values.
11648 # Ultrix sh set writes to stderr and can't be redirected directly,
11649 # and sets the high bit in the cache file unless we assign to the vars.
11652 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11654 # `set' does not quote correctly, so add quotes (double-quote
11655 # substitution turns \\\\ into \\, and sed turns \\ into \).
11658 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11661 # `set' quotes correctly as required by POSIX, so do not add quotes.
11663 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11670 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11672 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11674 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11675 if test -w $cache_file; then
11676 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11677 cat confcache >$cache_file
11679 echo "not updating unwritable cache $cache_file"
11684 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11685 # Let make expand exec_prefix.
11686 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11688 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11689 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11690 # trailing colons and then remove the whole line if VPATH becomes empty
11691 # (actually we leave an empty line to preserve line numbers).
11692 if test "x$srcdir" = x.; then
11693 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11694 s/:*\$(srcdir):*/:/;
11695 s/:*\${srcdir}:*/:/;
11697 s/^\([^=]*=[ ]*\):*/\1/;
11703 DEFS=-DHAVE_CONFIG_H
11707 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11708 # 1. Remove the extension, and $U if already installed.
11709 ac_i=`echo "$ac_i" |
11710 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11712 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11713 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11715 LIBOBJS=$ac_libobjs
11717 LTLIBOBJS=$ac_ltlibobjs
11721 : ${CONFIG_STATUS=./config.status}
11722 ac_clean_files_save=$ac_clean_files
11723 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11724 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11725 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11726 cat >$CONFIG_STATUS <<_ACEOF
11728 # Generated by $as_me.
11729 # Run this file to recreate the current configuration.
11730 # Compiler output produced by configure, useful for debugging
11731 # configure, is in config.log if it exists.
11734 ac_cs_recheck=false
11736 SHELL=\${CONFIG_SHELL-$SHELL}
11739 cat >>$CONFIG_STATUS <<\_ACEOF
11740 ## --------------------- ##
11741 ## M4sh Initialization. ##
11742 ## --------------------- ##
11744 # Be Bourne compatible
11745 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11748 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11749 # is contrary to our usage. Disable this feature.
11750 alias -g '${1+"$@"}'='"$@"'
11751 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11755 # Support unset when possible.
11756 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11763 # Work around bugs in pre-3.0 UWIN ksh.
11764 $as_unset ENV MAIL MAILPATH
11771 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11772 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11773 LC_TELEPHONE LC_TIME
11775 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11776 eval $as_var=C; export $as_var
11782 # Required to use basename.
11783 if expr a : '\(a\)' >/dev/null 2>&1; then
11789 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11790 as_basename=basename
11796 # Name of the executable.
11797 as_me=`$as_basename "$0" ||
11798 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11799 X"$0" : 'X\(//\)$' \| \
11800 X"$0" : 'X\(/\)$' \| \
11801 . : '\(.\)' 2>/dev/null ||
11803 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11804 /^X\/\(\/\/\)$/{ s//\1/; q; }
11805 /^X\/\(\/\).*/{ s//\1/; q; }
11809 # PATH needs CR, and LINENO needs CR and PATH.
11810 # Avoid depending upon Character Ranges.
11811 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11812 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11813 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11814 as_cr_digits='0123456789'
11815 as_cr_alnum=$as_cr_Letters$as_cr_digits
11817 # The user is always right.
11818 if test "${PATH_SEPARATOR+set}" != set; then
11819 echo "#! /bin/sh" >conf$$.sh
11820 echo "exit 0" >>conf$$.sh
11822 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11831 as_lineno_1=$LINENO
11832 as_lineno_2=$LINENO
11833 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11834 test "x$as_lineno_1" != "x$as_lineno_2" &&
11835 test "x$as_lineno_3" = "x$as_lineno_2" || {
11836 # Find who we are. Look in the path if we contain no path at all
11839 *[\\/]* ) as_myself=$0 ;;
11840 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $PATH
11844 test -z "$as_dir" && as_dir=.
11845 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11850 # We did not find ourselves, most probably we were run as `sh COMMAND'
11851 # in which case we are not to be found in the path.
11852 if test "x$as_myself" = x; then
11855 if test ! -f "$as_myself"; then
11856 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11857 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11858 { (exit 1); exit 1; }; }
11860 case $CONFIG_SHELL in
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11866 test -z "$as_dir" && as_dir=.
11867 for as_base in sh bash ksh sh5; do
11870 if ("$as_dir/$as_base" -c '
11871 as_lineno_1=$LINENO
11872 as_lineno_2=$LINENO
11873 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11874 test "x$as_lineno_1" != "x$as_lineno_2" &&
11875 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11876 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11877 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11878 CONFIG_SHELL=$as_dir/$as_base
11879 export CONFIG_SHELL
11880 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11888 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11889 # uniformly replaced by the line number. The first 'sed' inserts a
11890 # line-number line before each line; the second 'sed' does the real
11891 # work. The second script uses 'N' to pair each line-number line
11892 # with the numbered line, and appends trailing '-' during
11893 # substitution so that $LINENO is not a special case at line end.
11894 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11895 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11896 sed '=' <$as_myself |
11901 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11904 s,^['$as_cr_digits']*\n,,
11905 ' >$as_me.lineno &&
11906 chmod +x $as_me.lineno ||
11907 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11908 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11909 { (exit 1); exit 1; }; }
11911 # Don't try to exec as it changes $[0], causing all sort of problems
11912 # (the dirname of $[0] is not the place where we might find the
11913 # original and so on. Autoconf is especially sensible to this).
11915 # Exit status is that of the last command.
11920 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11921 *c*,-n*) ECHO_N= ECHO_C='
11923 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11924 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11927 if expr a : '\(a\)' >/dev/null 2>&1; then
11933 rm -f conf$$ conf$$.exe conf$$.file
11935 if ln -s conf$$.file conf$$ 2>/dev/null; then
11936 # We could just check for DJGPP; but this test a) works b) is more generic
11937 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11938 if test -f conf$$.exe; then
11939 # Don't use ln at all; we don't have any links
11944 elif ln conf$$.file conf$$ 2>/dev/null; then
11949 rm -f conf$$ conf$$.exe conf$$.file
11951 if mkdir -p . 2>/dev/null; then
11957 as_executable_p="test -f"
11959 # Sed expression to map a string onto a valid CPP name.
11960 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11962 # Sed expression to map a string onto a valid variable name.
11963 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11967 # We need space, tab and new line, in precisely that order.
11977 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11978 # report actual input values of CONFIG_FILES etc. instead of their
11979 # values after options handling. Logging --version etc. is OK.
11983 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11984 ## Running $as_me. ##
11989 This file was extended by $as_me, which was
11990 generated by GNU Autoconf 2.57. Invocation command line was
11992 CONFIG_FILES = $CONFIG_FILES
11993 CONFIG_HEADERS = $CONFIG_HEADERS
11994 CONFIG_LINKS = $CONFIG_LINKS
11995 CONFIG_COMMANDS = $CONFIG_COMMANDS
11999 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12003 # Files that config.status was made for.
12004 if test -n "$ac_config_files"; then
12005 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12008 if test -n "$ac_config_headers"; then
12009 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12012 if test -n "$ac_config_links"; then
12013 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12016 if test -n "$ac_config_commands"; then
12017 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12020 cat >>$CONFIG_STATUS <<\_ACEOF
12023 \`$as_me' instantiates files from templates according to the
12024 current configuration.
12026 Usage: $0 [OPTIONS] [FILE]...
12028 -h, --help print this help, then exit
12029 -V, --version print version number, then exit
12030 -q, --quiet do not print progress messages
12031 -d, --debug don't remove temporary files
12032 --recheck update $as_me by reconfiguring in the same conditions
12033 --file=FILE[:TEMPLATE]
12034 instantiate the configuration file FILE
12035 --header=FILE[:TEMPLATE]
12036 instantiate the configuration header FILE
12038 Configuration files:
12041 Configuration headers:
12044 Configuration commands:
12047 Report bugs to <bug-autoconf@gnu.org>."
12050 cat >>$CONFIG_STATUS <<_ACEOF
12053 configured by $0, generated by GNU Autoconf 2.57,
12054 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12056 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12057 Free Software Foundation, Inc.
12058 This config.status script is free software; the Free Software Foundation
12059 gives unlimited permission to copy, distribute and modify it."
12063 cat >>$CONFIG_STATUS <<\_ACEOF
12064 # If no file are specified by the user, then we need to provide default
12065 # value. By we need to know if files were specified by the user.
12071 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12072 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12080 *) # This is not an option, so the user has probably given explicit
12083 ac_need_defaults=false;;
12087 # Handling of the options.
12089 cat >>$CONFIG_STATUS <<\_ACEOF
12090 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12092 --version | --vers* | -V )
12093 echo "$ac_cs_version"; exit 0 ;;
12095 # Conflict between --help and --header
12096 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12097 Try \`$0 --help' for more information." >&5
12098 echo "$as_me: error: ambiguous option: $1
12099 Try \`$0 --help' for more information." >&2;}
12100 { (exit 1); exit 1; }; };;
12101 --help | --hel | -h )
12102 echo "$ac_cs_usage"; exit 0 ;;
12103 --debug | --d* | -d )
12105 --file | --fil | --fi | --f )
12107 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12108 ac_need_defaults=false;;
12109 --header | --heade | --head | --hea )
12111 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12112 ac_need_defaults=false;;
12113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12114 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12117 # This is an error.
12118 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12119 Try \`$0 --help' for more information." >&5
12120 echo "$as_me: error: unrecognized option: $1
12121 Try \`$0 --help' for more information." >&2;}
12122 { (exit 1); exit 1; }; } ;;
12124 *) ac_config_targets="$ac_config_targets $1" ;;
12130 ac_configure_extra_args=
12132 if $ac_cs_silent; then
12134 ac_configure_extra_args="$ac_configure_extra_args --silent"
12138 cat >>$CONFIG_STATUS <<_ACEOF
12139 if \$ac_cs_recheck; then
12140 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12141 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12146 cat >>$CONFIG_STATUS <<_ACEOF
12148 # INIT-COMMANDS section.
12152 symbolic_link='$symbolic_link'
12159 cat >>$CONFIG_STATUS <<\_ACEOF
12160 for ac_config_target in $ac_config_targets
12162 case "$ac_config_target" in
12163 # Handling of arguments.
12164 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12165 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12166 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12167 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12168 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12169 { (exit 1); exit 1; }; };;
12173 # If the user did not use the arguments to specify the items to instantiate,
12174 # then the envvar interface is used. Set only those that are not.
12175 # We use the long form for the default assignment because of an extremely
12176 # bizarre bug on SunOS 4.1.3.
12177 if $ac_need_defaults; then
12178 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12179 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12180 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12183 # Have a temporary directory for convenience. Make it in the build tree
12184 # simply because there is no reason to put it here, and in addition,
12185 # creating and moving files from /tmp can sometimes cause problems.
12186 # Create a temporary directory, and hook for its removal unless debugging.
12189 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12190 trap '{ (exit 1); exit 1; }' 1 2 13 15
12193 # Create a (secure) tmp directory for tmp files.
12196 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12197 test -n "$tmp" && test -d "$tmp"
12200 tmp=./confstat$$-$RANDOM
12201 (umask 077 && mkdir $tmp)
12204 echo "$me: cannot create a temporary directory in ." >&2
12205 { (exit 1); exit 1; }
12210 cat >>$CONFIG_STATUS <<_ACEOF
12213 # CONFIG_FILES section.
12216 # No need to generate the scripts if there are no CONFIG_FILES.
12217 # This happens for instance when ./config.status config.h
12218 if test -n "\$CONFIG_FILES"; then
12219 # Protect against being on the right side of a sed subst in config.status.
12220 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12221 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12222 s,@SHELL@,$SHELL,;t t
12223 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12224 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12225 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12226 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12227 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12228 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12229 s,@exec_prefix@,$exec_prefix,;t t
12230 s,@prefix@,$prefix,;t t
12231 s,@program_transform_name@,$program_transform_name,;t t
12232 s,@bindir@,$bindir,;t t
12233 s,@sbindir@,$sbindir,;t t
12234 s,@libexecdir@,$libexecdir,;t t
12235 s,@datadir@,$datadir,;t t
12236 s,@sysconfdir@,$sysconfdir,;t t
12237 s,@sharedstatedir@,$sharedstatedir,;t t
12238 s,@localstatedir@,$localstatedir,;t t
12239 s,@libdir@,$libdir,;t t
12240 s,@includedir@,$includedir,;t t
12241 s,@oldincludedir@,$oldincludedir,;t t
12242 s,@infodir@,$infodir,;t t
12243 s,@mandir@,$mandir,;t t
12244 s,@build_alias@,$build_alias,;t t
12245 s,@host_alias@,$host_alias,;t t
12246 s,@target_alias@,$target_alias,;t t
12247 s,@DEFS@,$DEFS,;t t
12248 s,@ECHO_C@,$ECHO_C,;t t
12249 s,@ECHO_N@,$ECHO_N,;t t
12250 s,@ECHO_T@,$ECHO_T,;t t
12251 s,@LIBS@,$LIBS,;t t
12252 s,@build@,$build,;t t
12253 s,@build_cpu@,$build_cpu,;t t
12254 s,@build_vendor@,$build_vendor,;t t
12255 s,@build_os@,$build_os,;t t
12256 s,@host@,$host,;t t
12257 s,@host_cpu@,$host_cpu,;t t
12258 s,@host_vendor@,$host_vendor,;t t
12259 s,@host_os@,$host_os,;t t
12260 s,@target@,$target,;t t
12261 s,@target_cpu@,$target_cpu,;t t
12262 s,@target_vendor@,$target_vendor,;t t
12263 s,@target_os@,$target_os,;t t
12264 s,@build_subdir@,$build_subdir,;t t
12265 s,@host_subdir@,$host_subdir,;t t
12266 s,@target_subdir@,$target_subdir,;t t
12268 s,@CFLAGS@,$CFLAGS,;t t
12269 s,@LDFLAGS@,$LDFLAGS,;t t
12270 s,@CPPFLAGS@,$CPPFLAGS,;t t
12271 s,@ac_ct_CC@,$ac_ct_CC,;t t
12272 s,@EXEEXT@,$EXEEXT,;t t
12273 s,@OBJEXT@,$OBJEXT,;t t
12274 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12275 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12277 s,@GNATBIND@,$GNATBIND,;t t
12278 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12279 s,@strict1_warn@,$strict1_warn,;t t
12280 s,@warn_cflags@,$warn_cflags,;t t
12281 s,@WERROR@,$WERROR,;t t
12282 s,@nocommon_flag@,$nocommon_flag,;t t
12283 s,@EGREP@,$EGREP,;t t
12284 s,@valgrind_path@,$valgrind_path,;t t
12285 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12286 s,@valgrind_command@,$valgrind_command,;t t
12287 s,@coverage_flags@,$coverage_flags,;t t
12288 s,@enable_multilib@,$enable_multilib,;t t
12289 s,@enable_shared@,$enable_shared,;t t
12290 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12291 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12292 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12293 s,@onestep@,$onestep,;t t
12294 s,@SET_MAKE@,$SET_MAKE,;t t
12297 s,@LN_S@,$LN_S,;t t
12298 s,@RANLIB@,$RANLIB,;t t
12299 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12300 s,@INSTALL@,$INSTALL,;t t
12301 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12302 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12303 s,@make_compare_target@,$make_compare_target,;t t
12304 s,@have_mktemp_command@,$have_mktemp_command,;t t
12305 s,@MAKEINFO@,$MAKEINFO,;t t
12306 s,@BUILD_INFO@,$BUILD_INFO,;t t
12307 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12308 s,@FLEX@,$FLEX,;t t
12309 s,@BISON@,$BISON,;t t
12310 s,@stage1_cflags@,$stage1_cflags,;t t
12311 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12312 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12313 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12314 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12315 s,@LIBICONV@,$LIBICONV,;t t
12316 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12317 s,@manext@,$manext,;t t
12318 s,@objext@,$objext,;t t
12319 s,@extra_modes_file@,$extra_modes_file,;t t
12320 s,@FORBUILD@,$FORBUILD,;t t
12321 s,@PACKAGE@,$PACKAGE,;t t
12322 s,@VERSION@,$VERSION,;t t
12323 s,@USE_NLS@,$USE_NLS,;t t
12324 s,@LIBINTL@,$LIBINTL,;t t
12325 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12326 s,@INCINTL@,$INCINTL,;t t
12327 s,@XGETTEXT@,$XGETTEXT,;t t
12328 s,@GMSGFMT@,$GMSGFMT,;t t
12329 s,@POSUB@,$POSUB,;t t
12330 s,@CATALOGS@,$CATALOGS,;t t
12331 s,@CROSS@,$CROSS,;t t
12333 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12334 s,@inhibit_libc@,$inhibit_libc,;t t
12335 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12336 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12337 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12338 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12339 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12340 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12341 s,@libgcc_visibility@,$libgcc_visibility,;t t
12342 s,@gthread_flags@,$gthread_flags,;t t
12344 s,@zlibdir@,$zlibdir,;t t
12345 s,@zlibinc@,$zlibinc,;t t
12346 s,@MAINT@,$MAINT,;t t
12347 s,@gcc_tooldir@,$gcc_tooldir,;t t
12348 s,@dollar@,$dollar,;t t
12349 s,@slibdir@,$slibdir,;t t
12350 s,@objdir@,$objdir,;t t
12351 s,@subdirs@,$subdirs,;t t
12352 s,@srcdir@,$srcdir,;t t
12353 s,@docobjdir@,$docobjdir,;t t
12354 s,@parsedir@,$parsedir,;t t
12355 s,@all_boot_languages@,$all_boot_languages,;t t
12356 s,@all_compilers@,$all_compilers,;t t
12357 s,@all_gtfiles@,$all_gtfiles,;t t
12358 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12359 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12360 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12361 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12362 s,@all_languages@,$all_languages,;t t
12363 s,@all_stagestuff@,$all_stagestuff,;t t
12364 s,@build_exeext@,$build_exeext,;t t
12365 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12366 s,@build_xm_file_list@,$build_xm_file_list,;t t
12367 s,@build_xm_include_list@,$build_xm_include_list,;t t
12368 s,@build_xm_defines@,$build_xm_defines,;t t
12369 s,@check_languages@,$check_languages,;t t
12370 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12371 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12372 s,@cpp_install_dir@,$cpp_install_dir,;t t
12373 s,@xmake_file@,$xmake_file,;t t
12374 s,@tmake_file@,$tmake_file,;t t
12375 s,@extra_headers_list@,$extra_headers_list,;t t
12376 s,@extra_objs@,$extra_objs,;t t
12377 s,@extra_parts@,$extra_parts,;t t
12378 s,@extra_passes@,$extra_passes,;t t
12379 s,@extra_programs@,$extra_programs,;t t
12380 s,@float_h_file@,$float_h_file,;t t
12381 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12382 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12383 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12384 s,@gcc_version@,$gcc_version,;t t
12385 s,@gcc_version_full@,$gcc_version_full,;t t
12386 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12387 s,@host_exeext@,$host_exeext,;t t
12388 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
12389 s,@host_xm_file_list@,$host_xm_file_list,;t t
12390 s,@host_xm_include_list@,$host_xm_include_list,;t t
12391 s,@host_xm_defines@,$host_xm_defines,;t t
12392 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12393 s,@install@,$install,;t t
12394 s,@lang_opt_files@,$lang_opt_files,;t t
12395 s,@lang_specs_files@,$lang_specs_files,;t t
12396 s,@lang_tree_files@,$lang_tree_files,;t t
12397 s,@local_prefix@,$local_prefix,;t t
12398 s,@md_file@,$md_file,;t t
12399 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12400 s,@out_file@,$out_file,;t t
12401 s,@out_object_file@,$out_object_file,;t t
12402 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12403 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12404 s,@symbolic_link@,$symbolic_link,;t t
12405 s,@thread_file@,$thread_file,;t t
12406 s,@tm_file_list@,$tm_file_list,;t t
12407 s,@tm_include_list@,$tm_include_list,;t t
12408 s,@tm_defines@,$tm_defines,;t t
12409 s,@tm_p_file_list@,$tm_p_file_list,;t t
12410 s,@tm_p_include_list@,$tm_p_include_list,;t t
12411 s,@xm_file_list@,$xm_file_list,;t t
12412 s,@xm_include_list@,$xm_include_list,;t t
12413 s,@xm_defines@,$xm_defines,;t t
12414 s,@target_noncanonical@,$target_noncanonical,;t t
12415 s,@c_target_objs@,$c_target_objs,;t t
12416 s,@cxx_target_objs@,$cxx_target_objs,;t t
12417 s,@target_cpu_default@,$target_cpu_default,;t t
12418 s,@LIBOBJS@,$LIBOBJS,;t t
12419 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12420 /@language_hooks@/r $language_hooks
12421 s,@language_hooks@,,;t t
12426 cat >>$CONFIG_STATUS <<\_ACEOF
12427 # Split the substitutions into bite-sized pieces for seds with
12428 # small command number limits, like on Digital OSF/1 and HP-UX.
12429 ac_max_sed_lines=48
12430 ac_sed_frag=1 # Number of current file.
12431 ac_beg=1 # First line for current file.
12432 ac_end=$ac_max_sed_lines # Line after last line for current file.
12435 while $ac_more_lines; do
12436 if test $ac_beg -gt 1; then
12437 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12439 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12441 if test ! -s $tmp/subs.frag; then
12442 ac_more_lines=false
12444 # The purpose of the label and of the branching condition is to
12445 # speed up the sed processing (if there are no `@' at all, there
12446 # is no need to browse any of the substitutions).
12447 # These are the two extra sed commands mentioned above.
12449 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12450 if test -z "$ac_sed_cmds"; then
12451 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12453 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12455 ac_sed_frag=`expr $ac_sed_frag + 1`
12457 ac_end=`expr $ac_end + $ac_max_sed_lines`
12460 if test -z "$ac_sed_cmds"; then
12463 fi # test -n "$CONFIG_FILES"
12466 cat >>$CONFIG_STATUS <<\_ACEOF
12467 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12468 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12470 - | *:- | *:-:* ) # input from stdin
12472 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12473 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12474 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12476 * ) ac_file_in=$ac_file.in ;;
12479 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12480 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12482 X"$ac_file" : 'X\(//\)[^/]' \| \
12483 X"$ac_file" : 'X\(//\)$' \| \
12484 X"$ac_file" : 'X\(/\)' \| \
12485 . : '\(.\)' 2>/dev/null ||
12487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12489 /^X\(\/\/\)$/{ s//\1/; q; }
12490 /^X\(\/\).*/{ s//\1/; q; }
12492 { if $as_mkdir_p; then
12497 while test ! -d "$as_dir"; do
12498 as_dirs="$as_dir $as_dirs"
12499 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12501 X"$as_dir" : 'X\(//\)[^/]' \| \
12502 X"$as_dir" : 'X\(//\)$' \| \
12503 X"$as_dir" : 'X\(/\)' \| \
12504 . : '\(.\)' 2>/dev/null ||
12506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12508 /^X\(\/\/\)$/{ s//\1/; q; }
12509 /^X\(\/\).*/{ s//\1/; q; }
12512 test ! -n "$as_dirs" || mkdir $as_dirs
12513 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12514 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12515 { (exit 1); exit 1; }; }; }
12519 if test "$ac_dir" != .; then
12520 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12521 # A "../" for each directory in $ac_dir_suffix.
12522 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12524 ac_dir_suffix= ac_top_builddir=
12528 .) # No --srcdir option. We are building in place.
12530 if test -z "$ac_top_builddir"; then
12533 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12535 [\\/]* | ?:[\\/]* ) # Absolute path.
12536 ac_srcdir=$srcdir$ac_dir_suffix;
12537 ac_top_srcdir=$srcdir ;;
12538 *) # Relative path.
12539 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12540 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12542 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12544 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12545 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12546 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12547 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12551 if test x"$ac_file" != x-; then
12552 { echo "$as_me:$LINENO: creating $ac_file" >&5
12553 echo "$as_me: creating $ac_file" >&6;}
12556 # Let's still pretend it is `configure' which instantiates (i.e., don't
12557 # use $as_me), people would be surprised to read:
12558 # /* config.h. Generated by config.status. */
12559 if test x"$ac_file" = x-; then
12562 configure_input="$ac_file. "
12564 configure_input=$configure_input"Generated from `echo $ac_file_in |
12565 sed 's,.*/,,'` by configure."
12567 # First look for the input files in the build tree, otherwise in the
12569 ac_file_inputs=`IFS=:
12570 for f in $ac_file_in; do
12572 -) echo $tmp/stdin ;;
12574 # Absolute (can't be DOS-style, as IFS=:)
12575 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12576 echo "$as_me: error: cannot find input file: $f" >&2;}
12577 { (exit 1); exit 1; }; }
12580 if test -f "$f"; then
12583 elif test -f "$srcdir/$f"; then
12588 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12589 echo "$as_me: error: cannot find input file: $f" >&2;}
12590 { (exit 1); exit 1; }; }
12593 done` || { (exit 1); exit 1; }
12595 cat >>$CONFIG_STATUS <<_ACEOF
12599 cat >>$CONFIG_STATUS <<\_ACEOF
12601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12602 s,@configure_input@,$configure_input,;t t
12603 s,@srcdir@,$ac_srcdir,;t t
12604 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12605 s,@top_srcdir@,$ac_top_srcdir,;t t
12606 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12607 s,@builddir@,$ac_builddir,;t t
12608 s,@abs_builddir@,$ac_abs_builddir,;t t
12609 s,@top_builddir@,$ac_top_builddir,;t t
12610 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12611 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12613 if test x"$ac_file" != x-; then
12614 mv $tmp/out $ac_file
12622 cat >>$CONFIG_STATUS <<\_ACEOF
12625 # CONFIG_HEADER section.
12628 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12629 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12631 # ac_d sets the value in "#define NAME VALUE" lines.
12632 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12633 ac_dB='[ ].*$,\1#\2'
12636 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12637 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12638 ac_uB='$,\1#\2define\3'
12642 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12643 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12645 - | *:- | *:-:* ) # input from stdin
12647 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12648 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12649 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12650 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12651 * ) ac_file_in=$ac_file.in ;;
12654 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12655 echo "$as_me: creating $ac_file" >&6;}
12657 # First look for the input files in the build tree, otherwise in the
12659 ac_file_inputs=`IFS=:
12660 for f in $ac_file_in; do
12662 -) echo $tmp/stdin ;;
12664 # Absolute (can't be DOS-style, as IFS=:)
12665 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12666 echo "$as_me: error: cannot find input file: $f" >&2;}
12667 { (exit 1); exit 1; }; }
12670 if test -f "$f"; then
12673 elif test -f "$srcdir/$f"; then
12678 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12679 echo "$as_me: error: cannot find input file: $f" >&2;}
12680 { (exit 1); exit 1; }; }
12683 done` || { (exit 1); exit 1; }
12684 # Remove the trailing spaces.
12685 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12689 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12690 # `conftest.undefs', that substitutes the proper values into
12691 # config.h.in to produce config.h. The first handles `#define'
12692 # templates, and the second `#undef' templates.
12693 # And first: Protect against being on the right side of a sed subst in
12694 # config.status. Protect against being in an unquoted here document
12695 # in config.status.
12696 rm -f conftest.defines conftest.undefs
12697 # Using a here document instead of a string reduces the quoting nightmare.
12698 # Putting comments in sed scripts is not portable.
12700 # `end' is used to avoid that the second main sed command (meant for
12701 # 0-ary CPP macros) applies to n-ary macro definitions.
12702 # See the Autoconf documentation for `clear'.
12703 cat >confdef2sed.sed <<\_ACEOF
12708 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12710 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12713 # If some macros were called several times there might be several times
12714 # the same #defines, which is useless. Nevertheless, we may not want to
12715 # sort them, since we want the *last* AC-DEFINE to be honored.
12716 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12717 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12718 rm -f confdef2sed.sed
12720 # This sed command replaces #undef with comments. This is necessary, for
12721 # example, in the case of _POSIX_SOURCE, which is predefined and required
12722 # on some systems where configure will not decide to define it.
12723 cat >>conftest.undefs <<\_ACEOF
12724 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12727 # Break up conftest.defines because some shells have a limit on the size
12728 # of here documents, and old seds have small limits too (100 cmds).
12729 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12730 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12731 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12732 echo ' :' >>$CONFIG_STATUS
12733 rm -f conftest.tail
12734 while grep . conftest.defines >/dev/null
12736 # Write a limited-size here document to $tmp/defines.sed.
12737 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12738 # Speed up: don't consider the non `#define' lines.
12739 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12740 # Work around the forget-to-reset-the-flag bug.
12741 echo 't clr' >>$CONFIG_STATUS
12742 echo ': clr' >>$CONFIG_STATUS
12743 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12745 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12747 mv $tmp/out $tmp/in
12749 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12750 rm -f conftest.defines
12751 mv conftest.tail conftest.defines
12753 rm -f conftest.defines
12754 echo ' fi # grep' >>$CONFIG_STATUS
12755 echo >>$CONFIG_STATUS
12757 # Break up conftest.undefs because some shells have a limit on the size
12758 # of here documents, and old seds have small limits too (100 cmds).
12759 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12760 rm -f conftest.tail
12761 while grep . conftest.undefs >/dev/null
12763 # Write a limited-size here document to $tmp/undefs.sed.
12764 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12765 # Speed up: don't consider the non `#undef'
12766 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12767 # Work around the forget-to-reset-the-flag bug.
12768 echo 't clr' >>$CONFIG_STATUS
12769 echo ': clr' >>$CONFIG_STATUS
12770 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12772 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12774 mv $tmp/out $tmp/in
12776 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12777 rm -f conftest.undefs
12778 mv conftest.tail conftest.undefs
12780 rm -f conftest.undefs
12782 cat >>$CONFIG_STATUS <<\_ACEOF
12783 # Let's still pretend it is `configure' which instantiates (i.e., don't
12784 # use $as_me), people would be surprised to read:
12785 # /* config.h. Generated by config.status. */
12786 if test x"$ac_file" = x-; then
12787 echo "/* Generated by configure. */" >$tmp/config.h
12789 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12791 cat $tmp/in >>$tmp/config.h
12793 if test x"$ac_file" != x-; then
12794 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12795 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12796 echo "$as_me: $ac_file is unchanged" >&6;}
12798 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12799 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12800 X"$ac_file" : 'X\(//\)[^/]' \| \
12801 X"$ac_file" : 'X\(//\)$' \| \
12802 X"$ac_file" : 'X\(/\)' \| \
12803 . : '\(.\)' 2>/dev/null ||
12805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12806 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12807 /^X\(\/\/\)$/{ s//\1/; q; }
12808 /^X\(\/\).*/{ s//\1/; q; }
12810 { if $as_mkdir_p; then
12815 while test ! -d "$as_dir"; do
12816 as_dirs="$as_dir $as_dirs"
12817 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12818 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12819 X"$as_dir" : 'X\(//\)[^/]' \| \
12820 X"$as_dir" : 'X\(//\)$' \| \
12821 X"$as_dir" : 'X\(/\)' \| \
12822 . : '\(.\)' 2>/dev/null ||
12824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12826 /^X\(\/\/\)$/{ s//\1/; q; }
12827 /^X\(\/\).*/{ s//\1/; q; }
12830 test ! -n "$as_dirs" || mkdir $as_dirs
12831 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12832 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12833 { (exit 1); exit 1; }; }; }
12836 mv $tmp/config.h $ac_file
12840 rm -f $tmp/config.h
12844 cat >>$CONFIG_STATUS <<\_ACEOF
12847 # CONFIG_COMMANDS section.
12849 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12850 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12851 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12852 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12853 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12854 X"$ac_dest" : 'X\(//\)[^/]' \| \
12855 X"$ac_dest" : 'X\(//\)$' \| \
12856 X"$ac_dest" : 'X\(/\)' \| \
12857 . : '\(.\)' 2>/dev/null ||
12859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12860 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12861 /^X\(\/\/\)$/{ s//\1/; q; }
12862 /^X\(\/\).*/{ s//\1/; q; }
12866 if test "$ac_dir" != .; then
12867 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12868 # A "../" for each directory in $ac_dir_suffix.
12869 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12871 ac_dir_suffix= ac_top_builddir=
12875 .) # No --srcdir option. We are building in place.
12877 if test -z "$ac_top_builddir"; then
12880 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12882 [\\/]* | ?:[\\/]* ) # Absolute path.
12883 ac_srcdir=$srcdir$ac_dir_suffix;
12884 ac_top_srcdir=$srcdir ;;
12885 *) # Relative path.
12886 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12887 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12889 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12891 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12892 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12893 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12894 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12897 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12898 echo "$as_me: executing $ac_dest commands" >&6;}
12901 case ${CONFIG_HEADERS} in
12902 *auto-host.h:config.in*)
12905 # Make sure all the subdirs exist.
12908 test -d $d || mkdir $d
12910 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
12911 # bootstrapping and the installation procedure can still use
12912 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
12913 # FLAGS_TO_PASS has been modified to solve the problem there.
12914 # This is virtually a duplicate of what happens in configure.lang; we do
12915 # an extra check to make sure this only happens if ln -s can be used.
12916 if test "$symbolic_link" = "ln -s"; then
12917 for d in ${subdirs} fixinc ; do
12918 STARTDIR=`${PWDCMD-pwd}`
12920 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
12923 $symbolic_link ../$t $t 2>/dev/null
12933 cat >>$CONFIG_STATUS <<\_ACEOF
12935 { (exit 0); exit 0; }
12937 chmod +x $CONFIG_STATUS
12938 ac_clean_files=$ac_clean_files_save
12941 # configure is writing to config.log, and then calls config.status.
12942 # config.status does its own redirection, appending to config.log.
12943 # Unfortunately, on DOS this fails, as config.log is still kept open
12944 # by configure, so config.status won't be able to write to it; its
12945 # output is simply discarded. So we exec the FD to /dev/null,
12946 # effectively closing config.log, so it can be properly (re)opened and
12947 # appended to by config.status. When coming back to configure, we
12948 # need to make the FD available again.
12949 if test "$no_create" != yes; then
12951 ac_config_status_args=
12952 test "$silent" = yes &&
12953 ac_config_status_args="$ac_config_status_args --quiet"
12955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12958 # would make configure fail if this is the last instruction.
12959 $ac_cs_success || { (exit 1); exit 1; }