2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump ORIGINAL_OBJDUMP_FOR_TARGET libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: yes,no,all,none,release.
871 Flags are: assert,fold,gc,gcac,misc,
872 rtlflag,rtl,runtime,tree,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-threads enable thread usage for target GCC
884 --enable-threads=LIB use LIB thread package for target GCC
885 --enable-objc-gc enable the use of Boehm's garbage collector with
886 the GNU Objective-C runtime
887 --disable-shared don't provide a shared libgcc
888 --enable-intermodule build the compiler in one step
889 --enable-languages=LIST specify which front-ends to build
890 --disable-rpath do not hardcode runtime library paths
891 --enable-initfini-array use .init_array/.fini_array sections
892 --enable-sjlj-exceptions
893 arrange to use setjmp/longjmp exception handling
894 --enable-secureplt enable -msecure-plt by default for PowerPC
895 --disable-win32-registry
896 disable lookup of installation paths in the
897 Registry on Windows hosts
898 --enable-win32-registry enable registry lookup (default)
899 --enable-win32-registry=KEY
900 use KEY instead of GCC version as the last portion
902 --enable-maintainer-mode
903 enable make rules and dependencies not useful
904 (and sometimes confusing) to the casual installer
905 --enable-version-specific-runtime-libs
906 specify that runtime libraries should be
907 installed in a compiler-specific directory
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 --with-local-prefix=DIR specifies directory to put local include
913 --with-gxx-include-dir=DIR
914 specifies directory to put g++ header files
915 --with-cpp-install-dir=DIR
916 install the user visible C preprocessor in DIR
917 (relative to PREFIX) as well as PREFIX/bin
918 --with-gnu-ld arrange to work with GNU ld.
919 --with-ld arrange to use the specified ld (full pathname)
920 --with-demangler-in-ld try to use demangler in GNU ld.
921 --with-gnu-as arrange to work with GNU as
922 --with-as arrange to use the specified as (full pathname)
923 --with-stabs arrange to use stabs instead of host debug format
924 --with-dwarf2 force the default debug format to be DWARF 2
925 --with-build-sysroot=sysroot
926 use sysroot as the system root during the build
927 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
928 --with-gnu-ld assume the C compiler uses GNU ld default=no
929 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
930 --without-libiconv-prefix don't search for libiconv in includedir and libdir
931 --with-system-libunwind use installed libunwind
932 --with-gc={page,zone} choose the garbage collection mechanism to use
934 --with-system-zlib use installed libz
935 --with-slibdir=DIR shared libraries in DIR LIBDIR
937 Some influential environment variables:
938 CC C compiler command
939 CFLAGS C compiler flags
940 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
941 nonstandard directory <lib dir>
942 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
943 headers in a nonstandard directory <include dir>
945 GMPLIBS How to link GMP
946 GMPINC How to find GMP include files
948 Use these variables to override the choices made by `configure' or to help
949 it to find libraries and programs with nonstandard names/locations.
954 if test "$ac_init_help" = "recursive"; then
955 # If there are subdirs, report their specific --help.
957 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
958 test -d $ac_dir || continue
961 if test "$ac_dir" != .; then
962 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
963 # A "../" for each directory in $ac_dir_suffix.
964 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
966 ac_dir_suffix= ac_top_builddir=
970 .) # No --srcdir option. We are building in place.
972 if test -z "$ac_top_builddir"; then
975 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
977 [\\/]* | ?:[\\/]* ) # Absolute path.
978 ac_srcdir=$srcdir$ac_dir_suffix;
979 ac_top_srcdir=$srcdir ;;
981 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
982 ac_top_srcdir=$ac_top_builddir$srcdir ;;
985 # Do not use `cd foo && pwd` to compute absolute paths, because
986 # the directories may not exist.
988 .) ac_abs_builddir="$ac_dir";;
991 .) ac_abs_builddir=`pwd`;;
992 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
993 *) ac_abs_builddir=`pwd`/"$ac_dir";;
996 case $ac_abs_builddir in
997 .) ac_abs_top_builddir=${ac_top_builddir}.;;
999 case ${ac_top_builddir}. in
1000 .) ac_abs_top_builddir=$ac_abs_builddir;;
1001 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1002 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1005 case $ac_abs_builddir in
1006 .) ac_abs_srcdir=$ac_srcdir;;
1009 .) ac_abs_srcdir=$ac_abs_builddir;;
1010 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1011 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1014 case $ac_abs_builddir in
1015 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1017 case $ac_top_srcdir in
1018 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1019 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1020 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1025 # Check for guested configure; otherwise get Cygnus style configure.
1026 if test -f $ac_srcdir/configure.gnu; then
1028 $SHELL $ac_srcdir/configure.gnu --help=recursive
1029 elif test -f $ac_srcdir/configure; then
1031 $SHELL $ac_srcdir/configure --help=recursive
1032 elif test -f $ac_srcdir/configure.ac ||
1033 test -f $ac_srcdir/configure.in; then
1035 $ac_configure --help
1037 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1043 test -n "$ac_init_help" && exit 0
1044 if $ac_init_version; then
1047 Copyright (C) 2003 Free Software Foundation, Inc.
1048 This configure script is free software; the Free Software Foundation
1049 gives unlimited permission to copy, distribute and modify it.
1055 This file contains any messages produced by compilers while
1056 running configure, to aid debugging if configure makes a mistake.
1058 It was created by $as_me, which was
1059 generated by GNU Autoconf 2.59. Invocation command line was
1070 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1071 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1072 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1073 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1074 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1076 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1077 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1079 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1080 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1081 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1082 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1083 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1084 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1085 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1093 test -z "$as_dir" && as_dir=.
1094 echo "PATH: $as_dir"
1109 # Keep a trace of the command line.
1110 # Strip out --no-create and --no-recursion so they do not pile up.
1111 # Strip out --silent because we don't want to record it for future runs.
1112 # Also quote any args containing shell meta-characters.
1113 # Make two passes to allow for proper duplicate-argument suppression.
1118 ac_must_keep_next=false
1124 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1128 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1129 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1132 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1134 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1135 if test $ac_must_keep_next = true; then
1136 ac_must_keep_next=false # Got value, back to normal.
1139 *=* | --config-cache | -C | -disable-* | --disable-* \
1140 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1141 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1142 | -with-* | --with-* | -without-* | --without-* | --x)
1143 case "$ac_configure_args0 " in
1144 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1147 -* ) ac_must_keep_next=true ;;
1150 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1151 # Get rid of the leading space.
1157 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1158 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1160 # When interrupted or exit'd, cleanup temporary files, and complete
1161 # config.log. We remove comments because anyway the quotes in there
1162 # would cause problems or look ugly.
1163 # WARNING: Be sure not to use single quotes in there, as some shells,
1164 # such as our DU 5.0 friend, will then `close' the trap.
1165 trap 'exit_status=$?
1166 # Save into config.log some information that might help in debugging.
1171 ## ---------------- ##
1172 ## Cache variables. ##
1173 ## ---------------- ##
1176 # The following way of writing the cache mishandles newlines in values,
1179 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1182 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1187 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1194 ## ----------------- ##
1195 ## Output variables. ##
1196 ## ----------------- ##
1199 for ac_var in $ac_subst_vars
1201 eval ac_val=$`echo $ac_var`
1202 echo "$ac_var='"'"'$ac_val'"'"'"
1206 if test -n "$ac_subst_files"; then
1213 for ac_var in $ac_subst_files
1215 eval ac_val=$`echo $ac_var`
1216 echo "$ac_var='"'"'$ac_val'"'"'"
1221 if test -s confdefs.h; then
1228 sed "/^$/d" confdefs.h | sort
1231 test "$ac_signal" != 0 &&
1232 echo "$as_me: caught signal $ac_signal"
1233 echo "$as_me: exit $exit_status"
1235 rm -f core *.core &&
1236 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1239 for ac_signal in 1 2 13 15; do
1240 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1244 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1245 rm -rf conftest* confdefs.h
1246 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1249 # Predefined preprocessor variables.
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_NAME "$PACKAGE_NAME"
1256 cat >>confdefs.h <<_ACEOF
1257 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_STRING "$PACKAGE_STRING"
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1276 # Let the site file select an alternate cache file if it wants to.
1277 # Prefer explicitly selected file to automatically selected ones.
1278 if test -z "$CONFIG_SITE"; then
1279 if test "x$prefix" != xNONE; then
1280 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1282 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1285 for ac_site_file in $CONFIG_SITE; do
1286 if test -r "$ac_site_file"; then
1287 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1288 echo "$as_me: loading site script $ac_site_file" >&6;}
1289 sed 's/^/| /' "$ac_site_file" >&5
1294 if test -r "$cache_file"; then
1295 # Some versions of bash will fail to source /dev/null (special
1296 # files actually), so we avoid doing that.
1297 if test -f "$cache_file"; then
1298 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1299 echo "$as_me: loading cache $cache_file" >&6;}
1301 [\\/]* | ?:[\\/]* ) . $cache_file;;
1302 *) . ./$cache_file;;
1306 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1307 echo "$as_me: creating cache $cache_file" >&6;}
1311 # Check that the precious variables saved in the cache have kept the same
1313 ac_cache_corrupted=false
1314 for ac_var in `(set) 2>&1 |
1315 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1316 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1317 eval ac_new_set=\$ac_env_${ac_var}_set
1318 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1319 eval ac_new_val="\$ac_env_${ac_var}_value"
1320 case $ac_old_set,$ac_new_set in
1322 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1326 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1327 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1328 ac_cache_corrupted=: ;;
1331 if test "x$ac_old_val" != "x$ac_new_val"; then
1332 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1333 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1334 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1335 echo "$as_me: former value: $ac_old_val" >&2;}
1336 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1337 echo "$as_me: current value: $ac_new_val" >&2;}
1338 ac_cache_corrupted=:
1341 # Pass precious variables to config.status.
1342 if test "$ac_new_set" = set; then
1344 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1345 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1346 *) ac_arg=$ac_var=$ac_new_val ;;
1348 case " $ac_configure_args " in
1349 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1350 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1354 if $ac_cache_corrupted; then
1355 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1356 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1357 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1358 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1359 { (exit 1); exit 1; }; }
1363 ac_cpp='$CPP $CPPFLAGS'
1364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1387 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1390 gcc_version=`cat $srcdir/BASE-VER`
1392 # Determine the host, build, and target systems
1394 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1395 if test -f $ac_dir/install-sh; then
1397 ac_install_sh="$ac_aux_dir/install-sh -c"
1399 elif test -f $ac_dir/install.sh; then
1401 ac_install_sh="$ac_aux_dir/install.sh -c"
1403 elif test -f $ac_dir/shtool; then
1405 ac_install_sh="$ac_aux_dir/shtool install -c"
1409 if test -z "$ac_aux_dir"; then
1410 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1411 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1412 { (exit 1); exit 1; }; }
1414 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1415 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1416 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1418 # Make sure we can run config.sub.
1419 $ac_config_sub sun4 >/dev/null 2>&1 ||
1420 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1421 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1422 { (exit 1); exit 1; }; }
1424 echo "$as_me:$LINENO: checking build system type" >&5
1425 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1426 if test "${ac_cv_build+set}" = set; then
1427 echo $ECHO_N "(cached) $ECHO_C" >&6
1429 ac_cv_build_alias=$build_alias
1430 test -z "$ac_cv_build_alias" &&
1431 ac_cv_build_alias=`$ac_config_guess`
1432 test -z "$ac_cv_build_alias" &&
1433 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1434 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1435 { (exit 1); exit 1; }; }
1436 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1442 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1443 echo "${ECHO_T}$ac_cv_build" >&6
1445 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450 echo "$as_me:$LINENO: checking host system type" >&5
1451 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1452 if test "${ac_cv_host+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 ac_cv_host_alias=$host_alias
1456 test -z "$ac_cv_host_alias" &&
1457 ac_cv_host_alias=$ac_cv_build_alias
1458 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1465 echo "${ECHO_T}$ac_cv_host" >&6
1467 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472 echo "$as_me:$LINENO: checking target system type" >&5
1473 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1474 if test "${ac_cv_target+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 ac_cv_target_alias=$target_alias
1478 test "x$ac_cv_target_alias" = "x" &&
1479 ac_cv_target_alias=$ac_cv_host_alias
1480 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1481 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1482 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1483 { (exit 1); exit 1; }; }
1486 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1487 echo "${ECHO_T}$ac_cv_target" >&6
1488 target=$ac_cv_target
1489 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1490 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1491 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494 # The aliases save the names the user supplied, while $host etc.
1495 # will get canonicalized.
1496 test -n "$target_alias" &&
1497 test "$program_prefix$program_suffix$program_transform_name" = \
1499 program_prefix=${target_alias}-
1501 # Determine the noncanonical target name, for directory use.
1502 case ${build_alias} in
1503 "") build_noncanonical=${build} ;;
1504 *) build_noncanonical=${build_alias} ;;
1507 case ${host_alias} in
1508 "") host_noncanonical=${build_noncanonical} ;;
1509 *) host_noncanonical=${host_alias} ;;
1512 case ${target_alias} in
1513 "") target_noncanonical=${host_noncanonical} ;;
1514 *) target_noncanonical=${target_alias} ;;
1520 # Determine the target- and build-specific subdirectories
1521 # Prefix 'build-' so this never conflicts with target_subdir.
1522 build_subdir="build-${build_noncanonical}"
1523 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1524 if ( test $srcdir = . && test -d gcc ) \
1525 || test -d $srcdir/../host-${host_noncanonical}; then
1526 host_subdir="host-${host_noncanonical}"
1531 target_subdir=${target_noncanonical}
1534 # Set program_transform_name
1535 test "$program_prefix" != NONE &&
1536 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1537 # Use a double $ so make ignores it.
1538 test "$program_suffix" != NONE &&
1539 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1540 # Double any \ or $. echo might interpret backslashes.
1541 # By default was `s,x,x', remove it if useless.
1542 cat <<\_ACEOF >conftest.sed
1543 s/[\\$]/&&/g;s/;s,x,x,$//
1545 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1549 # Check for bogus environment variables.
1550 # Test if LIBRARY_PATH contains the notation for the current directory
1551 # since this would lead to problems installing/building glibc.
1552 # LIBRARY_PATH contains the current directory if one of the following
1554 # - one of the terminals (":" and ";") is the first or last sign
1555 # - two terminals occur directly after each other
1556 # - the path contains an element with a dot in it
1557 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1558 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1559 case ${LIBRARY_PATH} in
1560 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1561 library_path_setting="contains current directory"
1564 library_path_setting="ok"
1567 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1568 echo "${ECHO_T}$library_path_setting" >&6
1569 if test "$library_path_setting" != "ok"; then
1570 { { echo "$as_me:$LINENO: error:
1571 *** LIBRARY_PATH shouldn't contain the current directory when
1572 *** building gcc. Please change the environment variable
1573 *** and run configure again." >&5
1574 echo "$as_me: error:
1575 *** LIBRARY_PATH shouldn't contain the current directory when
1576 *** building gcc. Please change the environment variable
1577 *** and run configure again." >&2;}
1578 { (exit 1); exit 1; }; }
1581 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1582 # since this would lead to problems installing/building glibc.
1583 # GCC_EXEC_PREFIX contains the current directory if one of the following
1585 # - one of the terminals (":" and ";") is the first or last sign
1586 # - two terminals occur directly after each other
1587 # - the path contains an element with a dot in it
1588 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1589 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1590 case ${GCC_EXEC_PREFIX} in
1591 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1592 gcc_exec_prefix_setting="contains current directory"
1595 gcc_exec_prefix_setting="ok"
1598 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1599 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1600 if test "$gcc_exec_prefix_setting" != "ok"; then
1601 { { echo "$as_me:$LINENO: error:
1602 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1603 *** building gcc. Please change the environment variable
1604 *** and run configure again." >&5
1605 echo "$as_me: error:
1606 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1607 *** building gcc. Please change the environment variable
1608 *** and run configure again." >&2;}
1609 { (exit 1); exit 1; }; }
1616 # Specify the local prefix
1619 # Check whether --with-local-prefix or --without-local-prefix was given.
1620 if test "${with_local_prefix+set}" = set; then
1621 withval="$with_local_prefix"
1622 case "${withval}" in
1623 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1624 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1625 { (exit 1); exit 1; }; } ;;
1627 *) local_prefix=$with_local_prefix ;;
1631 # Default local prefix if it is empty
1632 if test x$local_prefix = x; then
1633 local_prefix=/usr/local
1636 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1637 # passed in by the toplevel make and thus we'd get different behavior
1638 # depending on where we built the sources.
1639 gcc_gxx_include_dir=
1640 # Specify the g++ header file directory
1642 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1643 if test "${with_gxx_include_dir+set}" = set; then
1644 withval="$with_gxx_include_dir"
1645 case "${withval}" in
1646 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1647 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1648 { (exit 1); exit 1; }; } ;;
1650 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1654 if test x${gcc_gxx_include_dir} = x; then
1655 if test x${enable_version_specific_runtime_libs} = xyes; then
1656 gcc_gxx_include_dir='${libsubdir}/include/c++'
1658 libstdcxx_incdir='c++/$(version)'
1659 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1664 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1665 if test "${with_cpp_install_dir+set}" = set; then
1666 withval="$with_cpp_install_dir"
1667 if test x$withval = xyes; then
1668 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1669 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1670 { (exit 1); exit 1; }; }
1671 elif test x$withval != xno; then
1672 cpp_install_dir=$withval
1676 # We would like to our source tree to be readonly. However when releases or
1677 # pre-releases are generated, the flex/bison generated files as well as the
1678 # various formats of manuals need to be included along with the rest of the
1679 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1682 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1683 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1684 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1685 if test "${enable_generated_files_in_srcdir+set}" = set; then
1686 enableval="$enable_generated_files_in_srcdir"
1687 generated_files_in_srcdir=$enableval
1689 generated_files_in_srcdir=no
1692 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1693 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1695 if test "$generated_files_in_srcdir" = "yes"; then
1702 # -------------------
1703 # Find default linker
1704 # -------------------
1708 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1709 if test "${with_gnu_ld+set}" = set; then
1710 withval="$with_gnu_ld"
1711 gnu_ld_flag="$with_gnu_ld"
1716 # With pre-defined ld
1718 # Check whether --with-ld or --without-ld was given.
1719 if test "${with_ld+set}" = set; then
1721 DEFAULT_LINKER="$with_ld"
1723 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1724 if test ! -x "$DEFAULT_LINKER"; then
1725 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1726 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1727 { (exit 1); exit 1; }; }
1728 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1732 cat >>confdefs.h <<_ACEOF
1733 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1738 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1739 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1740 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1741 if test x"$gnu_ld_flag" = x"no"; then
1742 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1743 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1745 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1746 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1749 echo "$as_me:$LINENO: result: no" >&5
1750 echo "${ECHO_T}no" >&6
1753 # With demangler in GNU ld
1755 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1756 if test "${with_demangler_in_ld+set}" = set; then
1757 withval="$with_demangler_in_ld"
1758 demangler_in_ld="$with_demangler_in_ld"
1763 # ----------------------
1764 # Find default assembler
1765 # ----------------------
1769 # Check whether --with-gnu-as or --without-gnu-as was given.
1770 if test "${with_gnu_as+set}" = set; then
1771 withval="$with_gnu_as"
1772 gas_flag="$with_gnu_as"
1778 # Check whether --with-as or --without-as was given.
1779 if test "${with_as+set}" = set; then
1781 DEFAULT_ASSEMBLER="$with_as"
1783 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1784 if test ! -x "$DEFAULT_ASSEMBLER"; then
1785 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1786 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1787 { (exit 1); exit 1; }; }
1788 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1792 cat >>confdefs.h <<_ACEOF
1793 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1798 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1799 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1800 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1801 if test x"$gas_flag" = x"no"; then
1802 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1803 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1805 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1806 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1809 echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6
1817 # If a non-executable a.out is present (e.g. created by GNU as above even if
1818 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1819 # file, even when creating an executable, so an execution test fails.
1820 # Remove possible default executable files to avoid this.
1822 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1823 # Autoconf includes it.
1824 rm -f a.out a.exe b.out
1826 # Find the native compiler
1828 ac_cpp='$CPP $CPPFLAGS'
1829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 if test -n "$ac_tool_prefix"; then
1833 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1834 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 test -z "$as_dir" && as_dir=.
1848 for ac_exec_ext in '' $ac_executable_extensions; do
1849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 if test -n "$CC"; then
1861 echo "$as_me:$LINENO: result: $CC" >&5
1862 echo "${ECHO_T}$CC" >&6
1864 echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1869 if test -z "$ac_cv_prog_CC"; then
1871 # Extract the first word of "gcc", so it can be a program name with args.
1872 set dummy gcc; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 if test -n "$ac_ct_CC"; then
1879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 ac_cv_prog_ac_ct_CC="gcc"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1898 if test -n "$ac_ct_CC"; then
1899 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1900 echo "${ECHO_T}$ac_ct_CC" >&6
1902 echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1911 if test -z "$CC"; then
1912 if test -n "$ac_tool_prefix"; then
1913 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1914 set dummy ${ac_tool_prefix}cc; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$CC"; then
1921 ac_cv_prog_CC="$CC" # Let the user override the test.
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930 ac_cv_prog_CC="${ac_tool_prefix}cc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 if test -n "$CC"; then
1941 echo "$as_me:$LINENO: result: $CC" >&5
1942 echo "${ECHO_T}$CC" >&6
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1949 if test -z "$ac_cv_prog_CC"; then
1951 # Extract the first word of "cc", so it can be a program name with args.
1952 set dummy cc; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 if test -n "$ac_ct_CC"; then
1959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 test -z "$as_dir" && as_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968 ac_cv_prog_ac_ct_CC="cc"
1969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1978 if test -n "$ac_ct_CC"; then
1979 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1980 echo "${ECHO_T}$ac_ct_CC" >&6
1982 echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6
1992 if test -z "$CC"; then
1993 # Extract the first word of "cc", so it can be a program name with args.
1994 set dummy cc; ac_word=$2
1995 echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997 if test "${ac_cv_prog_CC+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 if test -n "$CC"; then
2001 ac_cv_prog_CC="$CC" # Let the user override the test.
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2012 ac_prog_rejected=yes
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 if test $ac_prog_rejected = yes; then
2023 # We found a bogon in the path, so make sure we never use it.
2024 set dummy $ac_cv_prog_CC
2026 if test $# != 0; then
2027 # We chose a different compiler from the bogus one.
2028 # However, it has the same basename, so the bogon will be chosen
2029 # first if we set CC to just the basename; use the full file name.
2031 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2037 if test -n "$CC"; then
2038 echo "$as_me:$LINENO: result: $CC" >&5
2039 echo "${ECHO_T}$CC" >&6
2041 echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2046 if test -z "$CC"; then
2047 if test -n "$ac_tool_prefix"; then
2050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC="$CC" # Let the user override the test.
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 if test -n "$CC"; then
2078 echo "$as_me:$LINENO: result: $CC" >&5
2079 echo "${ECHO_T}$CC" >&6
2081 echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2085 test -n "$CC" && break
2088 if test -z "$CC"; then
2092 # Extract the first word of "$ac_prog", so it can be a program name with args.
2093 set dummy $ac_prog; ac_word=$2
2094 echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 if test -n "$ac_ct_CC"; then
2100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109 ac_cv_prog_ac_ct_CC="$ac_prog"
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2119 if test -n "$ac_ct_CC"; then
2120 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2121 echo "${ECHO_T}$ac_ct_CC" >&6
2123 echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6
2127 test -n "$ac_ct_CC" && break
2136 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2137 See \`config.log' for more details." >&5
2138 echo "$as_me: error: no acceptable C compiler found in \$PATH
2139 See \`config.log' for more details." >&2;}
2140 { (exit 1); exit 1; }; }
2142 # Provide some information about the compiler.
2143 echo "$as_me:$LINENO:" \
2144 "checking for C compiler version" >&5
2145 ac_compiler=`set X $ac_compile; echo $2`
2146 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2147 (eval $ac_compiler --version </dev/null >&5) 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }
2151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2152 (eval $ac_compiler -v </dev/null >&5) 2>&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }
2156 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2157 (eval $ac_compiler -V </dev/null >&5) 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }
2162 cat >conftest.$ac_ext <<_ACEOF
2165 cat confdefs.h >>conftest.$ac_ext
2166 cat >>conftest.$ac_ext <<_ACEOF
2167 /* end confdefs.h. */
2177 ac_clean_files_save=$ac_clean_files
2178 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2179 # Try to create an executable without -o first, disregard a.out.
2180 # It will help us diagnose broken compilers, and finding out an intuition
2182 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2183 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2184 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2185 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2186 (eval $ac_link_default) 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; then
2190 # Find the output, starting from the most likely. This scheme is
2191 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2194 # Be careful to initialize this variable, since it used to be cached.
2195 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2197 # b.out is created by i960 compilers.
2198 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2200 test -f "$ac_file" || continue
2202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2205 # This is the source file.
2208 # We found the default executable, but exeext='' is most
2212 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2213 # FIXME: I believe we export ac_cv_exeext for Libtool,
2214 # but it would be cool to find out if it's true. Does anybody
2215 # maintain Libtool? --akim.
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2226 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: C compiler cannot create executables
2229 See \`config.log' for more details." >&2;}
2230 { (exit 77); exit 77; }; }
2233 ac_exeext=$ac_cv_exeext
2234 echo "$as_me:$LINENO: result: $ac_file" >&5
2235 echo "${ECHO_T}$ac_file" >&6
2237 # Check the compiler produces executables we can run. If not, either
2238 # the compiler is broken, or we cross compile.
2239 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2240 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2241 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2242 # If not cross compiling, check that we can run a simple program.
2243 if test "$cross_compiling" != yes; then
2244 if { ac_try='./$ac_file'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2252 if test "$cross_compiling" = maybe; then
2255 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2256 If you meant to cross compile, use \`--host'.
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&2;}
2261 { (exit 1); exit 1; }; }
2265 echo "$as_me:$LINENO: result: yes" >&5
2266 echo "${ECHO_T}yes" >&6
2268 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2269 ac_clean_files=$ac_clean_files_save
2270 # Check the compiler produces executables we can run. If not, either
2271 # the compiler is broken, or we cross compile.
2272 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2273 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2274 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2275 echo "${ECHO_T}$cross_compiling" >&6
2277 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2278 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2280 (eval $ac_link) 2>&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; then
2284 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2285 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2286 # work properly (i.e., refer to `conftest.exe'), while it won't with
2288 for ac_file in conftest.exe conftest conftest.*; do
2289 test -f "$ac_file" || continue
2291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2292 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2299 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2300 See \`config.log' for more details." >&5
2301 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2302 See \`config.log' for more details." >&2;}
2303 { (exit 1); exit 1; }; }
2306 rm -f conftest$ac_cv_exeext
2307 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2308 echo "${ECHO_T}$ac_cv_exeext" >&6
2310 rm -f conftest.$ac_ext
2311 EXEEXT=$ac_cv_exeext
2313 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2314 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2315 if test "${ac_cv_objext+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 cat >conftest.$ac_ext <<_ACEOF
2321 cat confdefs.h >>conftest.$ac_ext
2322 cat >>conftest.$ac_ext <<_ACEOF
2323 /* end confdefs.h. */
2333 rm -f conftest.o conftest.obj
2334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335 (eval $ac_compile) 2>&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; then
2339 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2350 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }
2357 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2359 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360 echo "${ECHO_T}$ac_cv_objext" >&6
2361 OBJEXT=$ac_cv_objext
2363 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2365 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 cat >conftest.$ac_ext <<_ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>conftest.er1
2390 grep -v '^ *+' conftest.er1 >conftest.err
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2415 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2418 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2419 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2420 GCC=`test $ac_compiler_gnu = yes && echo yes`
2421 ac_test_CFLAGS=${CFLAGS+set}
2422 ac_save_CFLAGS=$CFLAGS
2424 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2425 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2426 if test "${ac_cv_prog_cc_g+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 cat >conftest.$ac_ext <<_ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2444 rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446 (eval $ac_compile) 2>conftest.er1
2448 grep -v '^ *+' conftest.er1 >conftest.err
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest.$ac_objext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2474 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2475 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2476 if test "$ac_test_CFLAGS" = set; then
2477 CFLAGS=$ac_save_CFLAGS
2478 elif test $ac_cv_prog_cc_g = yes; then
2479 if test "$GCC" = yes; then
2485 if test "$GCC" = yes; then
2491 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2492 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2493 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 ac_cv_prog_cc_stdc=no
2498 cat >conftest.$ac_ext <<_ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2506 #include <sys/types.h>
2507 #include <sys/stat.h>
2508 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2509 struct buf { int x; };
2510 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2511 static char *e (p, i)
2517 static char *f (char * (*g) (char **, int), char **p, ...)
2522 s = g (p, va_arg (v,int));
2527 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2528 function prototypes and stuff, but not '\xHH' hex character constants.
2529 These don't provoke an error unfortunately, instead are silently treated
2530 as 'x'. The following induces an error, until -std1 is added to get
2531 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2532 array size at least. It's necessary to write '\x00'==0 to get something
2533 that's true only with -std1. */
2534 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2536 int test (int i, double x);
2537 struct s1 {int (*f) (int a);};
2538 struct s2 {int (*f) (double a);};
2539 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2545 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2550 # Don't try gcc -ansi; that turns off useful extensions and
2551 # breaks some systems' header files.
2552 # AIX -qlanglvl=ansi
2553 # Ultrix and OSF/1 -std1
2554 # HP-UX 10.20 and later -Ae
2555 # HP-UX older versions -Aa -D_HPUX_SOURCE
2556 # SVR4 -Xc -D__EXTENSIONS__
2557 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2559 CC="$ac_save_CC $ac_arg"
2560 rm -f conftest.$ac_objext
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562 (eval $ac_compile) 2>conftest.er1
2564 grep -v '^ *+' conftest.er1 >conftest.err
2566 cat conftest.err >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } &&
2569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 ac_cv_prog_cc_stdc=$ac_arg
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2588 rm -f conftest.err conftest.$ac_objext
2590 rm -f conftest.$ac_ext conftest.$ac_objext
2595 case "x$ac_cv_prog_cc_stdc" in
2597 echo "$as_me:$LINENO: result: none needed" >&5
2598 echo "${ECHO_T}none needed" >&6 ;;
2600 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2601 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2602 CC="$CC $ac_cv_prog_cc_stdc" ;;
2605 # Some people use a C++ compiler to compile C. Since we use `exit',
2606 # in C++ we need to declare it. In case someone uses the same compiler
2607 # for both compiling C and C++ we need to have the C++ compiler decide
2608 # the declaration of exit, since it's the most demanding environment.
2609 cat >conftest.$ac_ext <<_ACEOF
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>conftest.er1
2618 grep -v '^ *+' conftest.er1 >conftest.err
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try='test -s conftest.$ac_objext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 for ac_declaration in \
2637 'extern "C" void std::exit (int) throw (); using std::exit;' \
2638 'extern "C" void std::exit (int); using std::exit;' \
2639 'extern "C" void exit (int) throw ();' \
2640 'extern "C" void exit (int);' \
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2659 rm -f conftest.$ac_objext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661 (eval $ac_compile) 2>conftest.er1
2663 grep -v '^ *+' conftest.er1 >conftest.err
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } &&
2668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; } &&
2674 { ac_try='test -s conftest.$ac_objext'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; }; then
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 cat >conftest.$ac_ext <<_ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>conftest.er1
2707 grep -v '^ *+' conftest.er1 >conftest.err
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 if test -n "$ac_declaration"; then
2734 echo '#ifdef __cplusplus' >>confdefs.h
2735 echo $ac_declaration >>confdefs.h
2736 echo '#endif' >>confdefs.h
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 ac_cpp='$CPP $CPPFLAGS'
2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751 if test "x$CC" != xcc; then
2752 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2753 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2755 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2756 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2758 set dummy $CC; ac_cc=`echo $2 |
2759 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2760 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 cat >conftest.$ac_ext <<_ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2778 # Make sure it works both with $CC and with simple cc.
2779 # We do the test twice because some compilers refuse to overwrite an
2780 # existing .o file with -o, though they will create one.
2781 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2782 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); };
2793 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2794 if test "x$CC" != xcc; then
2795 # Test first that cc exists at all.
2796 if { ac_try='cc -c conftest.$ac_ext >&5'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2803 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); };
2817 # cc exists but doesn't like -o.
2818 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2823 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2828 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2829 echo "$as_me:$LINENO: result: yes" >&5
2830 echo "${ECHO_T}yes" >&6
2832 echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6
2835 cat >>confdefs.h <<\_ACEOF
2836 #define NO_MINUS_C_MINUS_O 1
2841 # expand $ac_aux_dir to an absolute path
2842 am_aux_dir=`cd $ac_aux_dir && pwd`
2844 # FIXME: we rely on the cache variable name because
2845 # there is no other way.
2847 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2848 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2849 # Losing compiler, so override with the script.
2850 # FIXME: It is wrong to rewrite CC.
2851 # But if we don't then we get into trouble of one sort or another.
2852 # A longer-term fix would be to have automake use am__CC in this case,
2853 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2854 CC="$am_aux_dir/compile $CC"
2857 # autoconf is lame and doesn't give us any substitution variable for this.
2858 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2859 NO_MINUS_C_MINUS_O=yes
2861 OUTPUT_OPTION='-o $@'
2866 # -------------------------
2867 # Check C compiler features
2868 # -------------------------
2871 ac_cpp='$CPP $CPPFLAGS'
2872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2876 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2877 # On Suns, sometimes $CPP names a directory.
2878 if test -n "$CPP" && test -d "$CPP"; then
2881 if test -z "$CPP"; then
2882 if test "${ac_cv_prog_CPP+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 # Double quotes because CPP needs to be expanded
2886 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2889 for ac_c_preproc_warn_flag in '' yes
2891 # Use a header file that comes with gcc, so configuring glibc
2892 # with a fresh cross-compiler works.
2893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2894 # <limits.h> exists even on freestanding compilers.
2895 # On the NeXT, cc -E runs the code through the compiler's parser,
2896 # not just through cpp. "Syntax error" is here to catch this case.
2897 cat >conftest.$ac_ext <<_ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2904 # include <limits.h>
2906 # include <assert.h>
2910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2913 grep -v '^ *+' conftest.er1 >conftest.err
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } >/dev/null; then
2918 if test -s conftest.err; then
2919 ac_cpp_err=$ac_c_preproc_warn_flag
2920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2927 if test -z "$ac_cpp_err"; then
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2933 # Broken: fails on valid input.
2936 rm -f conftest.err conftest.$ac_ext
2938 # OK, works on sane cases. Now check whether non-existent headers
2939 # can be detected and how.
2940 cat >conftest.$ac_ext <<_ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #include <ac_nonexistent.h>
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951 grep -v '^ *+' conftest.er1 >conftest.err
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } >/dev/null; then
2956 if test -s conftest.err; then
2957 ac_cpp_err=$ac_c_preproc_warn_flag
2958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2965 if test -z "$ac_cpp_err"; then
2966 # Broken: success on invalid input.
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 # Passes both tests.
2976 rm -f conftest.err conftest.$ac_ext
2979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2980 rm -f conftest.err conftest.$ac_ext
2981 if $ac_preproc_ok; then
2993 echo "$as_me:$LINENO: result: $CPP" >&5
2994 echo "${ECHO_T}$CPP" >&6
2996 for ac_c_preproc_warn_flag in '' yes
2998 # Use a header file that comes with gcc, so configuring glibc
2999 # with a fresh cross-compiler works.
3000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001 # <limits.h> exists even on freestanding compilers.
3002 # On the NeXT, cc -E runs the code through the compiler's parser,
3003 # not just through cpp. "Syntax error" is here to catch this case.
3004 cat >conftest.$ac_ext <<_ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3011 # include <limits.h>
3013 # include <assert.h>
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3020 grep -v '^ *+' conftest.er1 >conftest.err
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } >/dev/null; then
3025 if test -s conftest.err; then
3026 ac_cpp_err=$ac_c_preproc_warn_flag
3027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3034 if test -z "$ac_cpp_err"; then
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3040 # Broken: fails on valid input.
3043 rm -f conftest.err conftest.$ac_ext
3045 # OK, works on sane cases. Now check whether non-existent headers
3046 # can be detected and how.
3047 cat >conftest.$ac_ext <<_ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #include <ac_nonexistent.h>
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058 grep -v '^ *+' conftest.er1 >conftest.err
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } >/dev/null; then
3063 if test -s conftest.err; then
3064 ac_cpp_err=$ac_c_preproc_warn_flag
3065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3072 if test -z "$ac_cpp_err"; then
3073 # Broken: success on invalid input.
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 # Passes both tests.
3083 rm -f conftest.err conftest.$ac_ext
3086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087 rm -f conftest.err conftest.$ac_ext
3088 if $ac_preproc_ok; then
3091 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&5
3093 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3094 See \`config.log' for more details." >&2;}
3095 { (exit 1); exit 1; }; }
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105 echo "$as_me:$LINENO: checking for inline" >&5
3106 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3107 if test "${ac_cv_c_inline+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 for ac_kw in inline __inline__ __inline; do
3112 cat >conftest.$ac_ext <<_ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3120 static $ac_kw foo_t static_foo () {return 0; }
3121 $ac_kw foo_t foo () {return 0; }
3125 rm -f conftest.$ac_objext
3126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3127 (eval $ac_compile) 2>conftest.er1
3129 grep -v '^ *+' conftest.er1 >conftest.err
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } &&
3134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 ac_cv_c_inline=$ac_kw; break
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3156 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3157 echo "${ECHO_T}$ac_cv_c_inline" >&6
3160 case $ac_cv_c_inline in
3163 case $ac_cv_c_inline in
3165 *) ac_val=$ac_cv_c_inline;;
3167 cat >>confdefs.h <<_ACEOF
3169 #define inline $ac_val
3176 # sizeof(char) is 1 by definition.
3178 echo "$as_me:$LINENO: checking for egrep" >&5
3179 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3180 if test "${ac_cv_prog_egrep+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3184 then ac_cv_prog_egrep='grep -E'
3185 else ac_cv_prog_egrep='egrep'
3188 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3189 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3190 EGREP=$ac_cv_prog_egrep
3193 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3194 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3195 if test "${ac_cv_header_stdc+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 cat >conftest.$ac_ext <<_ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3217 rm -f conftest.$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>conftest.er1
3221 grep -v '^ *+' conftest.er1 >conftest.err
3223 cat conftest.err >&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } &&
3226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; } &&
3232 { ac_try='test -s conftest.$ac_objext'
3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; }; then
3238 ac_cv_header_stdc=yes
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 ac_cv_header_stdc=no
3245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3247 if test $ac_cv_header_stdc = yes; then
3248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3259 $EGREP "memchr" >/dev/null 2>&1; then
3262 ac_cv_header_stdc=no
3268 if test $ac_cv_header_stdc = yes; then
3269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3270 cat >conftest.$ac_ext <<_ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3280 $EGREP "free" >/dev/null 2>&1; then
3283 ac_cv_header_stdc=no
3289 if test $ac_cv_header_stdc = yes; then
3290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3291 if test "$cross_compiling" = yes; then
3294 cat >conftest.$ac_ext <<_ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3301 #if ((' ' & 0x0FF) == 0x020)
3302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3305 # define ISLOWER(c) \
3306 (('a' <= (c) && (c) <= 'i') \
3307 || ('j' <= (c) && (c) <= 'r') \
3308 || ('s' <= (c) && (c) <= 'z'))
3309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3317 for (i = 0; i < 256; i++)
3318 if (XOR (islower (i), ISLOWER (i))
3319 || toupper (i) != TOUPPER (i))
3324 rm -f conftest$ac_exeext
3325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3326 (eval $ac_link) 2>&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; }; then
3337 echo "$as_me: program exited with status $ac_status" >&5
3338 echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3342 ac_cv_header_stdc=no
3344 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3348 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3349 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3350 if test $ac_cv_header_stdc = yes; then
3352 cat >>confdefs.h <<\_ACEOF
3353 #define STDC_HEADERS 1
3358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3369 inttypes.h stdint.h unistd.h
3371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3372 echo "$as_me:$LINENO: checking for $ac_header" >&5
3373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383 $ac_includes_default
3385 #include <$ac_header>
3387 rm -f conftest.$ac_objext
3388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3389 (eval $ac_compile) 2>conftest.er1
3391 grep -v '^ *+' conftest.er1 >conftest.err
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
3396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; } &&
3402 { ac_try='test -s conftest.$ac_objext'
3403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; }; then
3408 eval "$as_ac_Header=yes"
3410 echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3413 eval "$as_ac_Header=no"
3415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3420 cat >>confdefs.h <<_ACEOF
3421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3429 echo "$as_me:$LINENO: checking for void *" >&5
3430 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3431 if test "${ac_cv_type_void_p+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 $ac_includes_default
3446 if (sizeof (void *))
3452 rm -f conftest.$ac_objext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454 (eval $ac_compile) 2>conftest.er1
3456 grep -v '^ *+' conftest.er1 >conftest.err
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } &&
3461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; } &&
3467 { ac_try='test -s conftest.$ac_objext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_cv_type_void_p=yes
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 ac_cv_type_void_p=no
3480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3482 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3483 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3485 echo "$as_me:$LINENO: checking size of void *" >&5
3486 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3487 if test "${ac_cv_sizeof_void_p+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 if test "$ac_cv_type_void_p" = yes; then
3491 # The cast to unsigned long works around a bug in the HP C Compiler
3492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3494 # This bug is HP SR number 8606223364.
3495 if test "$cross_compiling" = yes; then
3496 # Depending upon the size, compute the lo and hi bounds.
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 $ac_includes_default
3507 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3514 rm -f conftest.$ac_objext
3515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3516 (eval $ac_compile) 2>conftest.er1
3518 grep -v '^ *+' conftest.er1 >conftest.err
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } &&
3523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; } &&
3529 { ac_try='test -s conftest.$ac_objext'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; }; then
3537 cat >conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 $ac_includes_default
3547 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3554 rm -f conftest.$ac_objext
3555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556 (eval $ac_compile) 2>conftest.er1
3558 grep -v '^ *+' conftest.er1 >conftest.err
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; } &&
3569 { ac_try='test -s conftest.$ac_objext'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; }; then
3575 ac_hi=$ac_mid; break
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 ac_lo=`expr $ac_mid + 1`
3581 if test $ac_lo -le $ac_mid; then
3585 ac_mid=`expr 2 '*' $ac_mid + 1`
3587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 cat >conftest.$ac_ext <<_ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599 $ac_includes_default
3603 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3610 rm -f conftest.$ac_objext
3611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>conftest.er1
3614 grep -v '^ *+' conftest.er1 >conftest.err
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } &&
3619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; } &&
3625 { ac_try='test -s conftest.$ac_objext'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; }; then
3633 cat >conftest.$ac_ext <<_ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3639 $ac_includes_default
3643 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3650 rm -f conftest.$ac_objext
3651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652 (eval $ac_compile) 2>conftest.er1
3654 grep -v '^ *+' conftest.er1 >conftest.err
3656 cat conftest.err >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; } &&
3665 { ac_try='test -s conftest.$ac_objext'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; }; then
3671 ac_lo=$ac_mid; break
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 ac_hi=`expr '(' $ac_mid ')' - 1`
3677 if test $ac_mid -le $ac_hi; then
3681 ac_mid=`expr 2 '*' $ac_mid`
3683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3694 # Binary search between lo and hi bounds.
3695 while test "x$ac_lo" != "x$ac_hi"; do
3696 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3697 cat >conftest.$ac_ext <<_ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 $ac_includes_default
3707 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716 (eval $ac_compile) 2>conftest.er1
3718 grep -v '^ *+' conftest.er1 >conftest.err
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; } &&
3729 { ac_try='test -s conftest.$ac_objext'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3740 ac_lo=`expr '(' $ac_mid ')' + 1`
3742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3746 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3747 See \`config.log' for more details." >&5
3748 echo "$as_me: error: cannot compute sizeof (void *), 77
3749 See \`config.log' for more details." >&2;}
3750 { (exit 1); exit 1; }; } ;;
3753 if test "$cross_compiling" = yes; then
3754 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3755 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3756 { (exit 1); exit 1; }; }
3758 cat >conftest.$ac_ext <<_ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 $ac_includes_default
3765 long longval () { return (long) (sizeof (void *)); }
3766 unsigned long ulongval () { return (long) (sizeof (void *)); }
3773 FILE *f = fopen ("conftest.val", "w");
3776 if (((long) (sizeof (void *))) < 0)
3778 long i = longval ();
3779 if (i != ((long) (sizeof (void *))))
3781 fprintf (f, "%ld\n", i);
3785 unsigned long i = ulongval ();
3786 if (i != ((long) (sizeof (void *))))
3788 fprintf (f, "%lu\n", i);
3790 exit (ferror (f) || fclose (f) != 0);
3796 rm -f conftest$ac_exeext
3797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3798 (eval $ac_link) 2>&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 ac_cv_sizeof_void_p=`cat conftest.val`
3809 echo "$as_me: program exited with status $ac_status" >&5
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3814 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3815 See \`config.log' for more details." >&5
3816 echo "$as_me: error: cannot compute sizeof (void *), 77
3817 See \`config.log' for more details." >&2;}
3818 { (exit 1); exit 1; }; }
3820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3825 ac_cv_sizeof_void_p=0
3828 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3829 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3830 cat >>confdefs.h <<_ACEOF
3831 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3835 echo "$as_me:$LINENO: checking for short" >&5
3836 echo $ECHO_N "checking for short... $ECHO_C" >&6
3837 if test "${ac_cv_type_short+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 cat >conftest.$ac_ext <<_ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 $ac_includes_default
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 ac_cv_type_short=yes
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3888 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3889 echo "${ECHO_T}$ac_cv_type_short" >&6
3891 echo "$as_me:$LINENO: checking size of short" >&5
3892 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3893 if test "${ac_cv_sizeof_short+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 if test "$ac_cv_type_short" = yes; then
3897 # The cast to unsigned long works around a bug in the HP C Compiler
3898 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3899 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3900 # This bug is HP SR number 8606223364.
3901 if test "$cross_compiling" = yes; then
3902 # Depending upon the size, compute the lo and hi bounds.
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 $ac_includes_default
3913 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3920 rm -f conftest.$ac_objext
3921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922 (eval $ac_compile) 2>conftest.er1
3924 grep -v '^ *+' conftest.er1 >conftest.err
3926 cat conftest.err >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; } &&
3935 { ac_try='test -s conftest.$ac_objext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 $ac_includes_default
3953 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3960 rm -f conftest.$ac_objext
3961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962 (eval $ac_compile) 2>conftest.er1
3964 grep -v '^ *+' conftest.er1 >conftest.err
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } &&
3969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; } &&
3975 { ac_try='test -s conftest.$ac_objext'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; }; then
3981 ac_hi=$ac_mid; break
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 ac_lo=`expr $ac_mid + 1`
3987 if test $ac_lo -le $ac_mid; then
3991 ac_mid=`expr 2 '*' $ac_mid + 1`
3993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
3999 cat >conftest.$ac_ext <<_ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 $ac_includes_default
4009 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
4020 grep -v '^ *+' conftest.er1 >conftest.err
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; } &&
4031 { ac_try='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 $ac_includes_default
4049 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
4060 grep -v '^ *+' conftest.er1 >conftest.err
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; } &&
4071 { ac_try='test -s conftest.$ac_objext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4077 ac_lo=$ac_mid; break
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4082 ac_hi=`expr '(' $ac_mid ')' - 1`
4083 if test $ac_mid -le $ac_hi; then
4087 ac_mid=`expr 2 '*' $ac_mid`
4089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4100 # Binary search between lo and hi bounds.
4101 while test "x$ac_lo" != "x$ac_hi"; do
4102 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 $ac_includes_default
4113 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4120 rm -f conftest.$ac_objext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>conftest.er1
4124 grep -v '^ *+' conftest.er1 >conftest.err
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } &&
4129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; }; then
4143 echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4146 ac_lo=`expr '(' $ac_mid ')' + 1`
4148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4151 ?*) ac_cv_sizeof_short=$ac_lo;;
4152 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4153 See \`config.log' for more details." >&5
4154 echo "$as_me: error: cannot compute sizeof (short), 77
4155 See \`config.log' for more details." >&2;}
4156 { (exit 1); exit 1; }; } ;;
4159 if test "$cross_compiling" = yes; then
4160 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4161 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4162 { (exit 1); exit 1; }; }
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4170 $ac_includes_default
4171 long longval () { return (long) (sizeof (short)); }
4172 unsigned long ulongval () { return (long) (sizeof (short)); }
4179 FILE *f = fopen ("conftest.val", "w");
4182 if (((long) (sizeof (short))) < 0)
4184 long i = longval ();
4185 if (i != ((long) (sizeof (short))))
4187 fprintf (f, "%ld\n", i);
4191 unsigned long i = ulongval ();
4192 if (i != ((long) (sizeof (short))))
4194 fprintf (f, "%lu\n", i);
4196 exit (ferror (f) || fclose (f) != 0);
4202 rm -f conftest$ac_exeext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204 (eval $ac_link) 2>&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 ac_cv_sizeof_short=`cat conftest.val`
4215 echo "$as_me: program exited with status $ac_status" >&5
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4221 See \`config.log' for more details." >&5
4222 echo "$as_me: error: cannot compute sizeof (short), 77
4223 See \`config.log' for more details." >&2;}
4224 { (exit 1); exit 1; }; }
4226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4231 ac_cv_sizeof_short=0
4234 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4235 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4236 cat >>confdefs.h <<_ACEOF
4237 #define SIZEOF_SHORT $ac_cv_sizeof_short
4241 echo "$as_me:$LINENO: checking for int" >&5
4242 echo $ECHO_N "checking for int... $ECHO_C" >&6
4243 if test "${ac_cv_type_int+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 cat >conftest.$ac_ext <<_ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 $ac_includes_default
4264 rm -f conftest.$ac_objext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4266 (eval $ac_compile) 2>conftest.er1
4268 grep -v '^ *+' conftest.er1 >conftest.err
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } &&
4273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; } &&
4279 { ac_try='test -s conftest.$ac_objext'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4294 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4295 echo "${ECHO_T}$ac_cv_type_int" >&6
4297 echo "$as_me:$LINENO: checking size of int" >&5
4298 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4299 if test "${ac_cv_sizeof_int+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 if test "$ac_cv_type_int" = yes; then
4303 # The cast to unsigned long works around a bug in the HP C Compiler
4304 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4305 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4306 # This bug is HP SR number 8606223364.
4307 if test "$cross_compiling" = yes; then
4308 # Depending upon the size, compute the lo and hi bounds.
4309 cat >conftest.$ac_ext <<_ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4315 $ac_includes_default
4319 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest.$ac_objext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4349 cat >conftest.$ac_ext <<_ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4355 $ac_includes_default
4359 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4366 rm -f conftest.$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>conftest.er1
4370 grep -v '^ *+' conftest.er1 >conftest.err
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } &&
4375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; } &&
4381 { ac_try='test -s conftest.$ac_objext'
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 ac_hi=$ac_mid; break
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 ac_lo=`expr $ac_mid + 1`
4393 if test $ac_lo -le $ac_mid; then
4397 ac_mid=`expr 2 '*' $ac_mid + 1`
4399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4405 cat >conftest.$ac_ext <<_ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 $ac_includes_default
4415 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4422 rm -f conftest.$ac_objext
4423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>conftest.er1
4426 grep -v '^ *+' conftest.er1 >conftest.err
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } &&
4431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 $ac_includes_default
4455 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4462 rm -f conftest.$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try='test -s conftest.$ac_objext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_lo=$ac_mid; break
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4488 ac_hi=`expr '(' $ac_mid ')' - 1`
4489 if test $ac_mid -le $ac_hi; then
4493 ac_mid=`expr 2 '*' $ac_mid`
4495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4498 echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4506 # Binary search between lo and hi bounds.
4507 while test "x$ac_lo" != "x$ac_hi"; do
4508 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4509 cat >conftest.$ac_ext <<_ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 $ac_includes_default
4519 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4526 rm -f conftest.$ac_objext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528 (eval $ac_compile) 2>conftest.er1
4530 grep -v '^ *+' conftest.er1 >conftest.err
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; } &&
4541 { ac_try='test -s conftest.$ac_objext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4552 ac_lo=`expr '(' $ac_mid ')' + 1`
4554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4557 ?*) ac_cv_sizeof_int=$ac_lo;;
4558 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4559 See \`config.log' for more details." >&5
4560 echo "$as_me: error: cannot compute sizeof (int), 77
4561 See \`config.log' for more details." >&2;}
4562 { (exit 1); exit 1; }; } ;;
4565 if test "$cross_compiling" = yes; then
4566 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4567 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4568 { (exit 1); exit 1; }; }
4570 cat >conftest.$ac_ext <<_ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4576 $ac_includes_default
4577 long longval () { return (long) (sizeof (int)); }
4578 unsigned long ulongval () { return (long) (sizeof (int)); }
4585 FILE *f = fopen ("conftest.val", "w");
4588 if (((long) (sizeof (int))) < 0)
4590 long i = longval ();
4591 if (i != ((long) (sizeof (int))))
4593 fprintf (f, "%ld\n", i);
4597 unsigned long i = ulongval ();
4598 if (i != ((long) (sizeof (int))))
4600 fprintf (f, "%lu\n", i);
4602 exit (ferror (f) || fclose (f) != 0);
4608 rm -f conftest$ac_exeext
4609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4610 (eval $ac_link) 2>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 ac_cv_sizeof_int=`cat conftest.val`
4621 echo "$as_me: program exited with status $ac_status" >&5
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4626 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4627 See \`config.log' for more details." >&5
4628 echo "$as_me: error: cannot compute sizeof (int), 77
4629 See \`config.log' for more details." >&2;}
4630 { (exit 1); exit 1; }; }
4632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4640 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4641 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4642 cat >>confdefs.h <<_ACEOF
4643 #define SIZEOF_INT $ac_cv_sizeof_int
4647 echo "$as_me:$LINENO: checking for long" >&5
4648 echo $ECHO_N "checking for long... $ECHO_C" >&6
4649 if test "${ac_cv_type_long+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 cat >conftest.$ac_ext <<_ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 $ac_includes_default
4670 rm -f conftest.$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>conftest.er1
4674 grep -v '^ *+' conftest.er1 >conftest.err
4676 cat conftest.err >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } &&
4679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; } &&
4685 { ac_try='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4701 echo "${ECHO_T}$ac_cv_type_long" >&6
4703 echo "$as_me:$LINENO: checking size of long" >&5
4704 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4705 if test "${ac_cv_sizeof_long+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 if test "$ac_cv_type_long" = yes; then
4709 # The cast to unsigned long works around a bug in the HP C Compiler
4710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4712 # This bug is HP SR number 8606223364.
4713 if test "$cross_compiling" = yes; then
4714 # Depending upon the size, compute the lo and hi bounds.
4715 cat >conftest.$ac_ext <<_ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 $ac_includes_default
4725 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4732 rm -f conftest.$ac_objext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734 (eval $ac_compile) 2>conftest.er1
4736 grep -v '^ *+' conftest.er1 >conftest.err
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } &&
4741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try='test -s conftest.$ac_objext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4755 cat >conftest.$ac_ext <<_ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 $ac_includes_default
4765 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>conftest.er1
4776 grep -v '^ *+' conftest.er1 >conftest.err
4778 cat conftest.err >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } &&
4781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; } &&
4787 { ac_try='test -s conftest.$ac_objext'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; }; then
4793 ac_hi=$ac_mid; break
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4798 ac_lo=`expr $ac_mid + 1`
4799 if test $ac_lo -le $ac_mid; then
4803 ac_mid=`expr 2 '*' $ac_mid + 1`
4805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4811 cat >conftest.$ac_ext <<_ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 $ac_includes_default
4821 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4828 rm -f conftest.$ac_objext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830 (eval $ac_compile) 2>conftest.er1
4832 grep -v '^ *+' conftest.er1 >conftest.err
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
4837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4851 cat >conftest.$ac_ext <<_ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4857 $ac_includes_default
4861 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4868 rm -f conftest.$ac_objext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870 (eval $ac_compile) 2>conftest.er1
4872 grep -v '^ *+' conftest.er1 >conftest.err
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } &&
4877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; } &&
4883 { ac_try='test -s conftest.$ac_objext'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; }; then
4889 ac_lo=$ac_mid; break
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4894 ac_hi=`expr '(' $ac_mid ')' - 1`
4895 if test $ac_mid -le $ac_hi; then
4899 ac_mid=`expr 2 '*' $ac_mid`
4901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912 # Binary search between lo and hi bounds.
4913 while test "x$ac_lo" != "x$ac_hi"; do
4914 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4915 cat >conftest.$ac_ext <<_ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 $ac_includes_default
4925 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4932 rm -f conftest.$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934 (eval $ac_compile) 2>conftest.er1
4936 grep -v '^ *+' conftest.er1 >conftest.err
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } &&
4941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; } &&
4947 { ac_try='test -s conftest.$ac_objext'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; }; then
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4958 ac_lo=`expr '(' $ac_mid ')' + 1`
4960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963 ?*) ac_cv_sizeof_long=$ac_lo;;
4964 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4965 See \`config.log' for more details." >&5
4966 echo "$as_me: error: cannot compute sizeof (long), 77
4967 See \`config.log' for more details." >&2;}
4968 { (exit 1); exit 1; }; } ;;
4971 if test "$cross_compiling" = yes; then
4972 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4973 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4974 { (exit 1); exit 1; }; }
4976 cat >conftest.$ac_ext <<_ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 $ac_includes_default
4983 long longval () { return (long) (sizeof (long)); }
4984 unsigned long ulongval () { return (long) (sizeof (long)); }
4991 FILE *f = fopen ("conftest.val", "w");
4994 if (((long) (sizeof (long))) < 0)
4996 long i = longval ();
4997 if (i != ((long) (sizeof (long))))
4999 fprintf (f, "%ld\n", i);
5003 unsigned long i = ulongval ();
5004 if (i != ((long) (sizeof (long))))
5006 fprintf (f, "%lu\n", i);
5008 exit (ferror (f) || fclose (f) != 0);
5014 rm -f conftest$ac_exeext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5016 (eval $ac_link) 2>&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 ac_cv_sizeof_long=`cat conftest.val`
5027 echo "$as_me: program exited with status $ac_status" >&5
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5032 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5033 See \`config.log' for more details." >&5
5034 echo "$as_me: error: cannot compute sizeof (long), 77
5035 See \`config.log' for more details." >&2;}
5036 { (exit 1); exit 1; }; }
5038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5046 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5047 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5048 cat >>confdefs.h <<_ACEOF
5049 #define SIZEOF_LONG $ac_cv_sizeof_long
5053 echo "$as_me:$LINENO: checking for long long" >&5
5054 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5055 if test "${ac_cv_type_long_long+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 cat >conftest.$ac_ext <<_ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 $ac_includes_default
5068 if ((long long *) 0)
5070 if (sizeof (long long))
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078 (eval $ac_compile) 2>conftest.er1
5080 grep -v '^ *+' conftest.er1 >conftest.err
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
5085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; } &&
5091 { ac_try='test -s conftest.$ac_objext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 ac_cv_type_long_long=yes
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5102 ac_cv_type_long_long=no
5104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5106 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5107 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5108 if test $ac_cv_type_long_long = yes; then
5110 cat >>confdefs.h <<_ACEOF
5111 #define HAVE_LONG_LONG 1
5114 echo "$as_me:$LINENO: checking for long long" >&5
5115 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5116 if test "${ac_cv_type_long_long+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 cat >conftest.$ac_ext <<_ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 $ac_includes_default
5129 if ((long long *) 0)
5131 if (sizeof (long long))
5137 rm -f conftest.$ac_objext
5138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5139 (eval $ac_compile) 2>conftest.er1
5141 grep -v '^ *+' conftest.er1 >conftest.err
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } &&
5146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; } &&
5152 { ac_try='test -s conftest.$ac_objext'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5158 ac_cv_type_long_long=yes
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5163 ac_cv_type_long_long=no
5165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5167 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5168 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5170 echo "$as_me:$LINENO: checking size of long long" >&5
5171 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5172 if test "${ac_cv_sizeof_long_long+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 if test "$ac_cv_type_long_long" = yes; then
5176 # The cast to unsigned long works around a bug in the HP C Compiler
5177 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5178 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5179 # This bug is HP SR number 8606223364.
5180 if test "$cross_compiling" = yes; then
5181 # Depending upon the size, compute the lo and hi bounds.
5182 cat >conftest.$ac_ext <<_ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 $ac_includes_default
5192 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201 (eval $ac_compile) 2>conftest.er1
5203 grep -v '^ *+' conftest.er1 >conftest.err
5205 cat conftest.err >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } &&
5208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; } &&
5214 { ac_try='test -s conftest.$ac_objext'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; }; then
5222 cat >conftest.$ac_ext <<_ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5228 $ac_includes_default
5232 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5239 rm -f conftest.$ac_objext
5240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241 (eval $ac_compile) 2>conftest.er1
5243 grep -v '^ *+' conftest.er1 >conftest.err
5245 cat conftest.err >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } &&
5248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; } &&
5254 { ac_try='test -s conftest.$ac_objext'
5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; }; then
5260 ac_hi=$ac_mid; break
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5265 ac_lo=`expr $ac_mid + 1`
5266 if test $ac_lo -le $ac_mid; then
5270 ac_mid=`expr 2 '*' $ac_mid + 1`
5272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5278 cat >conftest.$ac_ext <<_ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 $ac_includes_default
5288 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5295 rm -f conftest.$ac_objext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297 (eval $ac_compile) 2>conftest.er1
5299 grep -v '^ *+' conftest.er1 >conftest.err
5301 cat conftest.err >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } &&
5304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; } &&
5310 { ac_try='test -s conftest.$ac_objext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5318 cat >conftest.$ac_ext <<_ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 $ac_includes_default
5328 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5335 rm -f conftest.$ac_objext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337 (eval $ac_compile) 2>conftest.er1
5339 grep -v '^ *+' conftest.er1 >conftest.err
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
5344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; } &&
5350 { ac_try='test -s conftest.$ac_objext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_lo=$ac_mid; break
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 ac_hi=`expr '(' $ac_mid ')' - 1`
5362 if test $ac_mid -le $ac_hi; then
5366 ac_mid=`expr 2 '*' $ac_mid`
5368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5371 echo "$as_me: failed program was:" >&5
5372 sed 's/^/| /' conftest.$ac_ext >&5
5376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5379 # Binary search between lo and hi bounds.
5380 while test "x$ac_lo" != "x$ac_hi"; do
5381 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5382 cat >conftest.$ac_ext <<_ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 $ac_includes_default
5392 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5399 rm -f conftest.$ac_objext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401 (eval $ac_compile) 2>conftest.er1
5403 grep -v '^ *+' conftest.er1 >conftest.err
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } &&
5408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; } &&
5414 { ac_try='test -s conftest.$ac_objext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5425 ac_lo=`expr '(' $ac_mid ')' + 1`
5427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5430 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5431 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5432 See \`config.log' for more details." >&5
5433 echo "$as_me: error: cannot compute sizeof (long long), 77
5434 See \`config.log' for more details." >&2;}
5435 { (exit 1); exit 1; }; } ;;
5438 if test "$cross_compiling" = yes; then
5439 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5440 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5441 { (exit 1); exit 1; }; }
5443 cat >conftest.$ac_ext <<_ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 $ac_includes_default
5450 long longval () { return (long) (sizeof (long long)); }
5451 unsigned long ulongval () { return (long) (sizeof (long long)); }
5458 FILE *f = fopen ("conftest.val", "w");
5461 if (((long) (sizeof (long long))) < 0)
5463 long i = longval ();
5464 if (i != ((long) (sizeof (long long))))
5466 fprintf (f, "%ld\n", i);
5470 unsigned long i = ulongval ();
5471 if (i != ((long) (sizeof (long long))))
5473 fprintf (f, "%lu\n", i);
5475 exit (ferror (f) || fclose (f) != 0);
5481 rm -f conftest$ac_exeext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483 (eval $ac_link) 2>&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5492 ac_cv_sizeof_long_long=`cat conftest.val`
5494 echo "$as_me: program exited with status $ac_status" >&5
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5499 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5500 See \`config.log' for more details." >&5
5501 echo "$as_me: error: cannot compute sizeof (long long), 77
5502 See \`config.log' for more details." >&2;}
5503 { (exit 1); exit 1; }; }
5505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5510 ac_cv_sizeof_long_long=0
5513 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5514 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5515 cat >>confdefs.h <<_ACEOF
5516 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5522 echo "$as_me:$LINENO: checking for __int64" >&5
5523 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5524 if test "${ac_cv_type___int64+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 cat >conftest.$ac_ext <<_ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 $ac_includes_default
5539 if (sizeof (__int64))
5545 rm -f conftest.$ac_objext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5547 (eval $ac_compile) 2>conftest.er1
5549 grep -v '^ *+' conftest.er1 >conftest.err
5551 cat conftest.err >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } &&
5554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; } &&
5560 { ac_try='test -s conftest.$ac_objext'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
5566 ac_cv_type___int64=yes
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5571 ac_cv_type___int64=no
5573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5575 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5576 echo "${ECHO_T}$ac_cv_type___int64" >&6
5577 if test $ac_cv_type___int64 = yes; then
5579 cat >>confdefs.h <<_ACEOF
5580 #define HAVE___INT64 1
5583 echo "$as_me:$LINENO: checking for __int64" >&5
5584 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5585 if test "${ac_cv_type___int64+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 cat >conftest.$ac_ext <<_ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594 $ac_includes_default
5600 if (sizeof (__int64))
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>conftest.er1
5610 grep -v '^ *+' conftest.er1 >conftest.err
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; } &&
5621 { ac_try='test -s conftest.$ac_objext'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; }; then
5627 ac_cv_type___int64=yes
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5632 ac_cv_type___int64=no
5634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5636 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5637 echo "${ECHO_T}$ac_cv_type___int64" >&6
5639 echo "$as_me:$LINENO: checking size of __int64" >&5
5640 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5641 if test "${ac_cv_sizeof___int64+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 if test "$ac_cv_type___int64" = yes; then
5645 # The cast to unsigned long works around a bug in the HP C Compiler
5646 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5647 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5648 # This bug is HP SR number 8606223364.
5649 if test "$cross_compiling" = yes; then
5650 # Depending upon the size, compute the lo and hi bounds.
5651 cat >conftest.$ac_ext <<_ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 $ac_includes_default
5661 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5668 rm -f conftest.$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>conftest.er1
5672 grep -v '^ *+' conftest.er1 >conftest.err
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; } &&
5683 { ac_try='test -s conftest.$ac_objext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5691 cat >conftest.$ac_ext <<_ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 $ac_includes_default
5701 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5708 rm -f conftest.$ac_objext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710 (eval $ac_compile) 2>conftest.er1
5712 grep -v '^ *+' conftest.er1 >conftest.err
5714 cat conftest.err >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; } &&
5723 { ac_try='test -s conftest.$ac_objext'
5724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; }; then
5729 ac_hi=$ac_mid; break
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5734 ac_lo=`expr $ac_mid + 1`
5735 if test $ac_lo -le $ac_mid; then
5739 ac_mid=`expr 2 '*' $ac_mid + 1`
5741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5747 cat >conftest.$ac_ext <<_ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 $ac_includes_default
5757 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>conftest.er1
5768 grep -v '^ *+' conftest.er1 >conftest.err
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; } &&
5779 { ac_try='test -s conftest.$ac_objext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5787 cat >conftest.$ac_ext <<_ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 $ac_includes_default
5797 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5804 rm -f conftest.$ac_objext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806 (eval $ac_compile) 2>conftest.er1
5808 grep -v '^ *+' conftest.er1 >conftest.err
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; } &&
5819 { ac_try='test -s conftest.$ac_objext'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; }; then
5825 ac_lo=$ac_mid; break
5827 echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5830 ac_hi=`expr '(' $ac_mid ')' - 1`
5831 if test $ac_mid -le $ac_hi; then
5835 ac_mid=`expr 2 '*' $ac_mid`
5837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5848 # Binary search between lo and hi bounds.
5849 while test "x$ac_lo" != "x$ac_hi"; do
5850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5851 cat >conftest.$ac_ext <<_ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 $ac_includes_default
5861 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5868 rm -f conftest.$ac_objext
5869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5870 (eval $ac_compile) 2>conftest.er1
5872 grep -v '^ *+' conftest.er1 >conftest.err
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } &&
5877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; } &&
5883 { ac_try='test -s conftest.$ac_objext'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5894 ac_lo=`expr '(' $ac_mid ')' + 1`
5896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5899 ?*) ac_cv_sizeof___int64=$ac_lo;;
5900 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5901 See \`config.log' for more details." >&5
5902 echo "$as_me: error: cannot compute sizeof (__int64), 77
5903 See \`config.log' for more details." >&2;}
5904 { (exit 1); exit 1; }; } ;;
5907 if test "$cross_compiling" = yes; then
5908 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5909 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5910 { (exit 1); exit 1; }; }
5912 cat >conftest.$ac_ext <<_ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5919 long longval () { return (long) (sizeof (__int64)); }
5920 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5927 FILE *f = fopen ("conftest.val", "w");
5930 if (((long) (sizeof (__int64))) < 0)
5932 long i = longval ();
5933 if (i != ((long) (sizeof (__int64))))
5935 fprintf (f, "%ld\n", i);
5939 unsigned long i = ulongval ();
5940 if (i != ((long) (sizeof (__int64))))
5942 fprintf (f, "%lu\n", i);
5944 exit (ferror (f) || fclose (f) != 0);
5950 rm -f conftest$ac_exeext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5952 (eval $ac_link) 2>&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
5961 ac_cv_sizeof___int64=`cat conftest.val`
5963 echo "$as_me: program exited with status $ac_status" >&5
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5968 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5969 See \`config.log' for more details." >&5
5970 echo "$as_me: error: cannot compute sizeof (__int64), 77
5971 See \`config.log' for more details." >&2;}
5972 { (exit 1); exit 1; }; }
5974 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5979 ac_cv_sizeof___int64=0
5982 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5983 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5984 cat >>confdefs.h <<_ACEOF
5985 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5992 # ---------------------
5993 # Warnings and checking
5994 # ---------------------
5996 # Check $CC warning features (if it's GCC).
5997 # We want to use -pedantic, but we don't want warnings about
6000 # So, we only use -pedantic if we can disable those warnings.
6002 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6003 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6004 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 save_CFLAGS="$CFLAGS"
6008 CFLAGS="-Wno-long-long"
6009 cat >conftest.$ac_ext <<_ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6017 rm -f conftest.$ac_objext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019 (eval $ac_compile) 2>conftest.er1
6021 grep -v '^ *+' conftest.er1 >conftest.err
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; } &&
6032 { ac_try='test -s conftest.$ac_objext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6038 ac_cv_prog_cc_w_no_long_long=yes
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6043 ac_cv_prog_cc_w_no_long_long=no
6045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6046 CFLAGS="$save_CFLAGS"
6049 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6050 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6052 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6053 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6054 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 save_CFLAGS="$CFLAGS"
6058 CFLAGS="-Wno-variadic-macros"
6059 cat >conftest.$ac_ext <<_ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6067 rm -f conftest.$ac_objext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6069 (eval $ac_compile) 2>conftest.er1
6071 grep -v '^ *+' conftest.er1 >conftest.err
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } &&
6076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; } &&
6082 { ac_try='test -s conftest.$ac_objext'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 ac_cv_prog_cc_w_no_variadic_macros=yes
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6093 ac_cv_prog_cc_w_no_variadic_macros=no
6095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6096 CFLAGS="$save_CFLAGS"
6099 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6100 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6103 if test $ac_cv_prog_cc_w_no_long_long = yes \
6104 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6105 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6108 # Add -Wold-style-definition if it's accepted
6109 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6110 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6111 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 save_CFLAGS="$CFLAGS"
6115 CFLAGS="-Wold-style-definition"
6116 cat >conftest.$ac_ext <<_ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6124 rm -f conftest.$ac_objext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6126 (eval $ac_compile) 2>conftest.er1
6128 grep -v '^ *+' conftest.er1 >conftest.err
6130 cat conftest.err >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } &&
6133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; } &&
6139 { ac_try='test -s conftest.$ac_objext'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6145 ac_cv_prog_cc_w_old_style_definition=yes
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6150 ac_cv_prog_cc_w_old_style_definition=no
6152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6153 CFLAGS="$save_CFLAGS"
6156 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6157 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6158 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6159 strict1_warn="${strict1_warn} -Wold-style-definition"
6162 # Add -Wmissing-format-attribute if it's accepted
6163 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6164 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6165 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 save_CFLAGS="$CFLAGS"
6169 CFLAGS="-Wmissing-format-attribute"
6170 cat >conftest.$ac_ext <<_ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6178 rm -f conftest.$ac_objext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180 (eval $ac_compile) 2>conftest.er1
6182 grep -v '^ *+' conftest.er1 >conftest.err
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; } &&
6193 { ac_try='test -s conftest.$ac_objext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 ac_cv_prog_cc_w_missing_format_attribute=yes
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 ac_cv_prog_cc_w_missing_format_attribute=no
6206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6207 CFLAGS="$save_CFLAGS"
6210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6211 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6212 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6213 strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6216 # Enable -Werror, period.
6217 # Check whether --enable-werror_always or --disable-werror_always was given.
6218 if test "${enable_werror_always+set}" = set; then
6219 enableval="$enable_werror_always"
6222 enable_werror_always=no
6224 if test x${enable_werror_always} = xyes ; then
6225 strict1_warn="${strict1_warn} -Werror"
6231 # If the native compiler is GCC, we can enable warnings even in stage1.
6232 # That's useful for people building cross-compilers, or just running a
6235 if test "x$GCC" = "xyes"; then
6236 warn_cflags='$(GCC_WARN_CFLAGS)'
6240 # Enable -Werror in bootstrap stage2 and later.
6242 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6245 # Check whether --enable-werror or --disable-werror was given.
6246 if test "${enable_werror+set}" = set; then
6247 enableval="$enable_werror"
6250 if test x$is_release = x ; then
6251 # Default to "yes" on development branches.
6254 # Default to "no" on release branches.
6258 if test x$enable_werror = xyes ; then
6263 # Enable expensive internal checks
6264 # Check whether --enable-checking or --disable-checking was given.
6265 if test "${enable_checking+set}" = set; then
6266 enableval="$enable_checking"
6267 ac_checking_flags="${enableval}"
6270 # Determine the default checks.
6271 if test x$is_release = x ; then
6272 ac_checking_flags=yes
6274 ac_checking_flags=release
6277 ac_assert_checking=1
6281 ac_gc_always_collect=
6283 ac_rtlflag_checking=
6284 ac_runtime_checking=1
6286 ac_valgrind_checking=
6287 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6288 for check in $ac_checking_flags
6291 # these set all the flags to specific states
6292 yes) ac_assert_checking=1 ; ac_checking=1 ;
6293 ac_fold_checking= ; ac_gc_checking=1 ;
6294 ac_gc_always_collect= ; ac_rtl_checking= ;
6295 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6296 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6297 no|none) ac_assert_checking= ; ac_checking= ;
6298 ac_fold_checking= ; ac_gc_checking= ;
6299 ac_gc_always_collect= ; ac_rtl_checking= ;
6300 ac_rtlflag_checking= ; ac_runtime_checking= ;
6301 ac_tree_checking= ; ac_valgrind_checking= ;;
6302 all) ac_assert_checking=1 ; ac_checking=1 ;
6303 ac_fold_checking=1 ; ac_gc_checking=1 ;
6304 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6305 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6306 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6307 release) ac_assert_checking=1 ; ac_checking= ;
6308 ac_fold_checking= ; ac_gc_checking= ;
6309 ac_gc_always_collect= ; ac_rtl_checking= ;
6310 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6311 ac_tree_checking= ; ac_valgrind_checking= ;;
6312 # these enable particular checks
6313 assert) ac_assert_checking=1 ;;
6314 fold) ac_fold_checking=1 ;;
6315 gc) ac_gc_checking=1 ;;
6316 gcac) ac_gc_always_collect=1 ;;
6317 misc) ac_checking=1 ;;
6318 rtl) ac_rtl_checking=1 ;;
6319 rtlflag) ac_rtlflag_checking=1 ;;
6320 runtime) ac_runtime_checking=1 ;;
6321 tree) ac_tree_checking=1 ;;
6322 valgrind) ac_valgrind_checking=1 ;;
6323 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6324 echo "$as_me: error: unknown check category $check" >&2;}
6325 { (exit 1); exit 1; }; } ;;
6331 if test x$ac_checking != x ; then
6333 cat >>confdefs.h <<\_ACEOF
6334 #define ENABLE_CHECKING 1
6337 nocommon_flag=-fno-common
6340 if test x$ac_assert_checking != x ; then
6342 cat >>confdefs.h <<\_ACEOF
6343 #define ENABLE_ASSERT_CHECKING 1
6348 if test x$ac_runtime_checking != x ; then
6350 cat >>confdefs.h <<\_ACEOF
6351 #define ENABLE_RUNTIME_CHECKING 1
6355 if test x$ac_tree_checking != x ; then
6357 cat >>confdefs.h <<\_ACEOF
6358 #define ENABLE_TREE_CHECKING 1
6361 TREEBROWSER=tree-browser.o
6364 if test x$ac_rtl_checking != x ; then
6366 cat >>confdefs.h <<\_ACEOF
6367 #define ENABLE_RTL_CHECKING 1
6371 if test x$ac_rtlflag_checking != x ; then
6373 cat >>confdefs.h <<\_ACEOF
6374 #define ENABLE_RTL_FLAG_CHECKING 1
6378 if test x$ac_gc_checking != x ; then
6380 cat >>confdefs.h <<\_ACEOF
6381 #define ENABLE_GC_CHECKING 1
6385 if test x$ac_gc_always_collect != x ; then
6387 cat >>confdefs.h <<\_ACEOF
6388 #define ENABLE_GC_ALWAYS_COLLECT 1
6392 if test x$ac_fold_checking != x ; then
6394 cat >>confdefs.h <<\_ACEOF
6395 #define ENABLE_FOLD_CHECKING 1
6399 valgrind_path_defines=
6402 if test "${ac_cv_header_valgrind_h+set}" = set; then
6403 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6404 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6405 if test "${ac_cv_header_valgrind_h+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6409 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6411 # Is the header compilable?
6412 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6413 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6414 cat >conftest.$ac_ext <<_ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h. */
6420 $ac_includes_default
6421 #include <valgrind.h>
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425 (eval $ac_compile) 2>conftest.er1
6427 grep -v '^ *+' conftest.er1 >conftest.err
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; } &&
6438 { ac_try='test -s conftest.$ac_objext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_header_compiler=yes
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 ac_header_compiler=no
6451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453 echo "${ECHO_T}$ac_header_compiler" >&6
6455 # Is the header present?
6456 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6457 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6458 cat >conftest.$ac_ext <<_ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 #include <valgrind.h>
6466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6469 grep -v '^ *+' conftest.er1 >conftest.err
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev/null; then
6474 if test -s conftest.err; then
6475 ac_cpp_err=$ac_c_preproc_warn_flag
6476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6483 if test -z "$ac_cpp_err"; then
6484 ac_header_preproc=yes
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 ac_header_preproc=no
6491 rm -f conftest.err conftest.$ac_ext
6492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493 echo "${ECHO_T}$ac_header_preproc" >&6
6495 # So? What about this header?
6496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6498 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6499 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6501 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6502 ac_header_preproc=yes
6505 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6510 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6512 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6516 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6519 ## ------------------------------------------ ##
6520 ## Report this to the AC_PACKAGE_NAME lists. ##
6521 ## ------------------------------------------ ##
6524 sed "s/^/$as_me: WARNING: /" >&2
6527 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6528 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6529 if test "${ac_cv_header_valgrind_h+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 ac_cv_header_valgrind_h=$ac_header_preproc
6534 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6535 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6538 if test $ac_cv_header_valgrind_h = yes; then
6546 if test x$ac_valgrind_checking != x ; then
6547 # It is certainly possible that there's valgrind but no valgrind.h.
6548 # GCC relies on making annotations so we must have both.
6549 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6550 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6551 cat >conftest.$ac_ext <<_ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <valgrind/memcheck.h>
6558 #ifndef VALGRIND_DISCARD
6559 #error VALGRIND_DISCARD not defined
6562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6565 grep -v '^ *+' conftest.er1 >conftest.err
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } >/dev/null; then
6570 if test -s conftest.err; then
6571 ac_cpp_err=$ac_c_preproc_warn_flag
6572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6579 if test -z "$ac_cpp_err"; then
6580 gcc_cv_header_valgrind_memcheck_h=yes
6582 echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6585 gcc_cv_header_valgrind_memcheck_h=no
6587 rm -f conftest.err conftest.$ac_ext
6588 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6589 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6590 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6591 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6592 cat >conftest.$ac_ext <<_ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6598 #include <memcheck.h>
6599 #ifndef VALGRIND_DISCARD
6600 #error VALGRIND_DISCARD not defined
6603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6606 grep -v '^ *+' conftest.er1 >conftest.err
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } >/dev/null; then
6611 if test -s conftest.err; then
6612 ac_cpp_err=$ac_c_preproc_warn_flag
6613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6620 if test -z "$ac_cpp_err"; then
6621 gcc_cv_header_memcheck_h=yes
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6626 gcc_cv_header_memcheck_h=no
6628 rm -f conftest.err conftest.$ac_ext
6629 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6630 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6632 # Prepare PATH_SEPARATOR.
6633 # The user is always right.
6634 if test "${PATH_SEPARATOR+set}" != set; then
6635 echo "#! /bin/sh" >conf$$.sh
6636 echo "exit 0" >>conf$$.sh
6638 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6646 # Find out how to test for executable files. Don't use a zero-byte file,
6647 # as systems may use methods other than mode bits to determine executability.
6648 cat >conf$$.file <<_ASEOF
6652 chmod +x conf$$.file
6653 if test -x conf$$.file >/dev/null 2>&1; then
6654 ac_executable_p="test -x"
6656 ac_executable_p="test -f"
6660 # Extract the first word of "valgrind", so it can be a program name with args.
6661 set dummy valgrind; ac_word=$2
6662 echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6664 if test "${ac_cv_path_valgrind_path+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 case "$valgrind_path" in
6669 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6672 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6673 for ac_dir in $PATH; do
6675 test -z "$ac_dir" && ac_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6678 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6679 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6689 valgrind_path="$ac_cv_path_valgrind_path"
6690 if test -n "$valgrind_path"; then
6691 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6692 echo "${ECHO_T}$valgrind_path" >&6
6694 echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6
6698 if test "x$valgrind_path" = "x" \
6699 || (test $have_valgrind_h = no \
6700 && test $gcc_cv_header_memcheck_h = no \
6701 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6702 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6703 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6704 { (exit 1); exit 1; }; }
6706 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6707 valgrind_command="$valgrind_path -q"
6709 cat >>confdefs.h <<\_ACEOF
6710 #define ENABLE_VALGRIND_CHECKING 1
6713 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6715 cat >>confdefs.h <<\_ACEOF
6716 #define HAVE_VALGRIND_MEMCHECK_H 1
6720 if test $gcc_cv_header_memcheck_h = yes; then
6722 cat >>confdefs.h <<\_ACEOF
6723 #define HAVE_MEMCHECK_H 1
6731 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6732 if test "${enable_mapped_location+set}" = set; then
6733 enableval="$enable_mapped_location"
6736 enable_mapped_location=no
6739 if test "$enable_mapped_location" = yes ; then
6741 cat >>confdefs.h <<\_ACEOF
6742 #define USE_MAPPED_LOCATION 1
6747 # Enable code coverage collection
6748 # Check whether --enable-coverage or --disable-coverage was given.
6749 if test "${enable_coverage+set}" = set; then
6750 enableval="$enable_coverage"
6751 case "${enableval}" in
6753 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6756 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6759 # a.k.a. --disable-coverage
6763 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6764 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6765 { (exit 1); exit 1; }; }
6773 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6774 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6775 enableval="$enable_gather_detailed_mem_stats"
6778 enable_gather_detailed_mem_stats=no
6780 if test x$enable_gather_detailed_mem_stats = xyes ; then
6782 cat >>confdefs.h <<\_ACEOF
6783 #define GATHER_STATISTICS 1
6788 # -------------------------------
6789 # Miscenalleous configure options
6790 # -------------------------------
6794 # Check whether --with-stabs or --without-stabs was given.
6795 if test "${with_stabs+set}" = set; then
6796 withval="$with_stabs"
6802 # Determine whether or not multilibs are enabled.
6803 # Check whether --enable-multilib or --disable-multilib was given.
6804 if test "${enable_multilib+set}" = set; then
6805 enableval="$enable_multilib"
6812 # Enable __cxa_atexit for C++.
6813 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6814 if test "${enable___cxa_atexit+set}" = set; then
6815 enableval="$enable___cxa_atexit"
6820 # Pass with no value to take the default
6821 # Pass with a value to specify a thread package
6822 # Check whether --enable-threads or --disable-threads was given.
6823 if test "${enable_threads+set}" = set; then
6824 enableval="$enable_threads"
6830 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6831 if test "${enable_objc_gc+set}" = set; then
6832 enableval="$enable_objc_gc"
6833 if test x$enable_objc_gc = xno; then
6843 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6844 if test "${with_dwarf2+set}" = set; then
6845 withval="$with_dwarf2"
6846 dwarf2="$with_dwarf2"
6851 # Check whether --enable-shared or --disable-shared was given.
6852 if test "${enable_shared+set}" = set; then
6853 enableval="$enable_shared"
6855 case $enable_shared in
6859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6860 for pkg in $enableval; do
6861 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6875 # Check whether --with-build-sysroot or --without-build-sysroot was given.
6876 if test "${with_build_sysroot+set}" = set; then
6877 withval="$with_build_sysroot"
6882 # Check whether --with-sysroot or --without-sysroot was given.
6883 if test "${with_sysroot+set}" = set; then
6884 withval="$with_sysroot"
6886 case ${with_sysroot} in
6887 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6888 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6891 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6892 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6894 if test "x$exec_prefix" = xNONE; then
6895 if test "x$prefix" = xNONE; then
6896 test_prefix=/usr/local
6901 test_prefix=$exec_prefix
6903 case ${TARGET_SYSTEM_ROOT} in
6904 "${test_prefix}"|"${test_prefix}/"*|\
6905 '${exec_prefix}'|'${exec_prefix}/'*)
6906 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6907 TARGET_SYSTEM_ROOT_DEFINE="$t"
6914 TARGET_SYSTEM_ROOT_DEFINE=
6915 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6922 # Build with intermodule optimisations
6923 # Check whether --enable-intermodule or --disable-intermodule was given.
6924 if test "${enable_intermodule+set}" = set; then
6925 enableval="$enable_intermodule"
6926 case ${enable_intermodule} in
6927 yes) onestep="-onestep";;
6935 # Sanity check enable_languages in case someone does not run the toplevel
6936 # configure # script.
6937 # Check whether --enable-languages or --disable-languages was given.
6938 if test "${enable_languages+set}" = set; then
6939 enableval="$enable_languages"
6940 case ,${enable_languages}, in
6942 # go safe -- we cannot be much sure without the toplevel
6944 # analysis of which target libs are present and usable
6948 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6949 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6950 { (exit 1); exit 1; }; }
6955 enable_languages=c,${enable_languages}
6963 for lang in ${srcdir}/*/config-lang.in
6966 # The odd quoting in the next line works around
6967 # an apparent bug in bash 1.12 on linux.
6968 ${srcdir}/[*]/config-lang.in) ;;
6970 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6971 if test "x$lang_alias" = x
6973 echo "$lang doesn't set \$language." 1>&2
6976 case ",$enable_languages," in
6978 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6985 # -------------------------
6986 # Checks for other programs
6987 # -------------------------
6989 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6990 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6991 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6992 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 cat >conftest.make <<\_ACEOF
6997 @echo 'ac_maketemp="$(MAKE)"'
6999 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7000 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7001 if test -n "$ac_maketemp"; then
7002 eval ac_cv_prog_make_${ac_make}_set=yes
7004 eval ac_cv_prog_make_${ac_make}_set=no
7008 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7009 echo "$as_me:$LINENO: result: yes" >&5
7010 echo "${ECHO_T}yes" >&6
7013 echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6
7015 SET_MAKE="MAKE=${MAKE-make}"
7019 # Find some useful tools
7020 for ac_prog in gawk mawk nawk awk
7022 # Extract the first word of "$ac_prog", so it can be a program name with args.
7023 set dummy $ac_prog; ac_word=$2
7024 echo "$as_me:$LINENO: checking for $ac_word" >&5
7025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7026 if test "${ac_cv_prog_AWK+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 if test -n "$AWK"; then
7030 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_AWK="$ac_prog"
7040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 if test -n "$AWK"; then
7050 echo "$as_me:$LINENO: result: $AWK" >&5
7051 echo "${ECHO_T}$AWK" >&6
7053 echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6
7057 test -n "$AWK" && break
7060 # We need awk to create options.c and options.h.
7061 # Bail out if it's missing.
7063 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7064 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7065 { (exit 1); exit 1; }; } ;;
7068 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7069 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7070 if test "${gcc_cv_prog_LN_S+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 rm -f conftestdata_t
7074 echo >conftestdata_f
7075 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7077 gcc_cv_prog_LN_S="ln -s"
7079 if ln conftestdata_f conftestdata_t 2>/dev/null
7083 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7085 gcc_cv_prog_LN_S="cp -p"
7091 rm -f conftestdata_f conftestdata_t
7094 LN_S="$gcc_cv_prog_LN_S"
7095 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7096 echo "$as_me:$LINENO: result: yes" >&5
7097 echo "${ECHO_T}yes" >&6
7099 if test "$gcc_cv_prog_LN_S" = "ln"; then
7100 echo "$as_me:$LINENO: result: no, using ln" >&5
7101 echo "${ECHO_T}no, using ln" >&6
7103 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7104 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7108 echo "$as_me:$LINENO: checking whether ln works" >&5
7109 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7110 if test "${acx_cv_prog_LN+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 rm -f conftestdata_t
7114 echo >conftestdata_f
7115 if ln conftestdata_f conftestdata_t 2>/dev/null
7121 rm -f conftestdata_f conftestdata_t
7124 if test $acx_cv_prog_LN = no; then
7126 echo "$as_me:$LINENO: result: no, using $LN" >&5
7127 echo "${ECHO_T}no, using $LN" >&6
7129 LN="$acx_cv_prog_LN"
7130 echo "$as_me:$LINENO: result: yes" >&5
7131 echo "${ECHO_T}yes" >&6
7134 if test -n "$ac_tool_prefix"; then
7135 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7137 echo "$as_me:$LINENO: checking for $ac_word" >&5
7138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7139 if test "${ac_cv_prog_RANLIB+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 if test -n "$RANLIB"; then
7143 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 RANLIB=$ac_cv_prog_RANLIB
7162 if test -n "$RANLIB"; then
7163 echo "$as_me:$LINENO: result: $RANLIB" >&5
7164 echo "${ECHO_T}$RANLIB" >&6
7166 echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6
7171 if test -z "$ac_cv_prog_RANLIB"; then
7172 ac_ct_RANLIB=$RANLIB
7173 # Extract the first word of "ranlib", so it can be a program name with args.
7174 set dummy ranlib; ac_word=$2
7175 echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 if test -n "$ac_ct_RANLIB"; then
7181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190 ac_cv_prog_ac_ct_RANLIB="ranlib"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7201 if test -n "$ac_ct_RANLIB"; then
7202 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7205 echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6
7209 RANLIB=$ac_ct_RANLIB
7211 RANLIB="$ac_cv_prog_RANLIB"
7216 # By default, the Darwin ranlib will not treat common symbols as
7217 # definitions when building the archive table of contents. Other
7218 # ranlibs do that; pass an option to the Darwin ranlib that makes
7219 # it behave similarly.
7227 # Find a good install program. We prefer a C program (faster),
7228 # so one script is as good as another. But avoid the broken or
7229 # incompatible versions:
7230 # SysV /etc/install, /usr/sbin/install
7231 # SunOS /usr/etc/install
7232 # IRIX /sbin/install
7234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7236 # ./install, which can be erroneously created by make from ./install.sh.
7237 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7238 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7239 if test -z "$INSTALL"; then
7240 if test "${ac_cv_path_install+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7244 for ac_dir in $PATH; do
7245 # Account for people who put trailing slashes in PATH elements.
7247 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7249 # OSF1 and SCO ODT 3.0 have their own names for install.
7250 for ac_prog in ginstall scoinst install; do
7251 if test -f $ac_dir/$ac_prog; then
7252 if test $ac_prog = install &&
7253 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7254 # AIX install. It has an incompatible calling convention.
7255 # OSF/1 installbsd also uses dspmsg, but is usable.
7258 ac_cv_path_install="$ac_dir/$ac_prog -c"
7269 if test "${ac_cv_path_install+set}" = set; then
7270 INSTALL="$ac_cv_path_install"
7272 # As a last resort, use the slow shell script. We don't cache a
7273 # path for INSTALL within a source directory, because that will
7274 # break other packages using the cache if that directory is
7275 # removed, or if the path is relative.
7276 INSTALL="$ac_install_sh"
7279 echo "$as_me:$LINENO: result: $INSTALL" >&5
7280 echo "${ECHO_T}$INSTALL" >&6
7282 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7283 # It thinks the first close brace ends the variable substitution.
7284 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7286 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7289 # See if cmp has --ignore-initial.
7290 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7291 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7292 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 gcc_cv_prog_cmp_skip=slowcompare
7298 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7299 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7302 gcc_cv_prog_cmp_skip=gnucompare
7305 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7306 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7307 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7310 gcc_cv_prog_cmp_skip=fastcompare
7317 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7318 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7319 make_compare_target=$gcc_cv_prog_cmp_skip
7323 # See if we have the mktemp command.
7324 # Extract the first word of "mktemp", so it can be a program name with args.
7325 set dummy mktemp; ac_word=$2
7326 echo "$as_me:$LINENO: checking for $ac_word" >&5
7327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7328 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 if test -n "$have_mktemp_command"; then
7332 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341 ac_cv_prog_have_mktemp_command="yes"
7342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7351 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7352 if test -n "$have_mktemp_command"; then
7353 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7354 echo "${ECHO_T}$have_mktemp_command" >&6
7356 echo "$as_me:$LINENO: result: no" >&5
7357 echo "${ECHO_T}no" >&6
7361 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7363 # See if makeinfo has been installed and is modern enough
7364 # that we can use it.
7366 ac_executable_extensions="$build_exeext"
7368 # Extract the first word of "makeinfo", so it can be a program name with args.
7369 set dummy makeinfo; ac_word=$2
7370 echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7372 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 if test -n "$MAKEINFO"; then
7376 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_MAKEINFO="makeinfo"
7386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 MAKEINFO=$ac_cv_prog_MAKEINFO
7395 if test -n "$MAKEINFO"; then
7396 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7397 echo "${ECHO_T}$MAKEINFO" >&6
7399 echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6
7403 if test -n "$MAKEINFO"; then
7404 # Found it, now check the version.
7405 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7406 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7407 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 ac_prog_version=`$MAKEINFO --version 2>&1 |
7411 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7412 echo "configure:7412: version of makeinfo is $ac_prog_version" >&5
7413 case $ac_prog_version in
7414 '') gcc_cv_prog_makeinfo_modern=no;;
7416 gcc_cv_prog_makeinfo_modern=yes;;
7417 *) gcc_cv_prog_makeinfo_modern=no;;
7421 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7422 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7424 gcc_cv_prog_makeinfo_modern=no
7427 if test $gcc_cv_prog_makeinfo_modern = no; then
7428 MAKEINFO="$MISSING makeinfo"
7429 { echo "$as_me:$LINENO: WARNING:
7430 *** Makeinfo is missing or too old.
7431 *** Info documentation will not be built." >&5
7432 echo "$as_me: WARNING:
7433 *** Makeinfo is missing or too old.
7434 *** Info documentation will not be built." >&2;}
7441 # Is pod2man recent enough to regenerate manpages?
7442 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7443 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7444 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7445 echo "$as_me:$LINENO: result: yes" >&5
7446 echo "${ECHO_T}yes" >&6
7447 GENERATED_MANPAGES=generated-manpages
7449 echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7458 # Extract the first word of "$ac_prog", so it can be a program name with args.
7459 set dummy $ac_prog; ac_word=$2
7460 echo "$as_me:$LINENO: checking for $ac_word" >&5
7461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7462 if test "${ac_cv_prog_FLEX+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 if test -n "$FLEX"; then
7466 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475 ac_cv_prog_FLEX="$ac_prog"
7476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 FLEX=$ac_cv_prog_FLEX
7485 if test -n "$FLEX"; then
7486 echo "$as_me:$LINENO: result: $FLEX" >&5
7487 echo "${ECHO_T}$FLEX" >&6
7489 echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6
7493 test -n "$FLEX" && break
7495 test -n "$FLEX" || FLEX="$MISSING flex"
7499 for ac_prog in bison
7501 # Extract the first word of "$ac_prog", so it can be a program name with args.
7502 set dummy $ac_prog; ac_word=$2
7503 echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7505 if test "${ac_cv_prog_BISON+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 if test -n "$BISON"; then
7509 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518 ac_cv_prog_BISON="$ac_prog"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 BISON=$ac_cv_prog_BISON
7528 if test -n "$BISON"; then
7529 echo "$as_me:$LINENO: result: $BISON" >&5
7530 echo "${ECHO_T}$BISON" >&6
7532 echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6
7536 test -n "$BISON" && break
7538 test -n "$BISON" || BISON="$MISSING bison"
7541 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7542 # check for build == host before using them.
7545 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7546 && test -d ../binutils ; then
7547 NM='$(objdir)/../binutils/nm-new'
7549 # Extract the first word of "nm", so it can be a program name with args.
7550 set dummy nm; ac_word=$2
7551 echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7553 if test "${ac_cv_prog_NM+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 if test -n "$NM"; then
7557 ac_cv_prog_NM="$NM" # Let the user override the test.
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7577 if test -n "$NM"; then
7578 echo "$as_me:$LINENO: result: $NM" >&5
7579 echo "${ECHO_T}$NM" >&6
7581 echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6
7588 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7589 && test -d ../binutils ; then
7590 AR='$(objdir)/../binutils/ar'
7592 # Extract the first word of "ar", so it can be a program name with args.
7593 set dummy ar; ac_word=$2
7594 echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7596 if test "${ac_cv_prog_AR+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 if test -n "$AR"; then
7600 ac_cv_prog_AR="$AR" # Let the user override the test.
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7620 if test -n "$AR"; then
7621 echo "$as_me:$LINENO: result: $AR" >&5
7622 echo "${ECHO_T}$AR" >&6
7624 echo "$as_me:$LINENO: result: no" >&5
7625 echo "${ECHO_T}no" >&6
7631 # --------------------
7632 # Checks for C headers
7633 # --------------------
7635 echo "$as_me:$LINENO: checking for GNU C library" >&5
7636 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7637 if test "${gcc_cv_glibc+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 cat >conftest.$ac_ext <<_ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 #include <features.h>
7651 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7652 #error Not a GNU C library system
7658 rm -f conftest.$ac_objext
7659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7660 (eval $ac_compile) 2>conftest.er1
7662 grep -v '^ *+' conftest.er1 >conftest.err
7664 cat conftest.err >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; } &&
7673 { ac_try='test -s conftest.$ac_objext'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7689 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7690 echo "${ECHO_T}$gcc_cv_glibc" >&6
7691 if test $gcc_cv_glibc = yes; then
7693 cat >>confdefs.h <<\_ACEOF
7694 #define _GNU_SOURCE 1
7699 # Need to reject headers which give warnings, so that the -Werror bootstrap
7700 # works later. *sigh* This needs to come before all header checks.
7702 ac_c_preproc_warn_flag=yes
7704 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7705 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7706 if test "${ac_cv_header_stdc+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 cat >conftest.$ac_ext <<_ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7728 rm -f conftest.$ac_objext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730 (eval $ac_compile) 2>conftest.er1
7732 grep -v '^ *+' conftest.er1 >conftest.err
7734 cat conftest.err >&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } &&
7737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; } &&
7743 { ac_try='test -s conftest.$ac_objext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 ac_cv_header_stdc=yes
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7754 ac_cv_header_stdc=no
7756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7758 if test $ac_cv_header_stdc = yes; then
7759 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7760 cat >conftest.$ac_ext <<_ACEOF
7763 cat confdefs.h >>conftest.$ac_ext
7764 cat >>conftest.$ac_ext <<_ACEOF
7765 /* end confdefs.h. */
7769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7770 $EGREP "memchr" >/dev/null 2>&1; then
7773 ac_cv_header_stdc=no
7779 if test $ac_cv_header_stdc = yes; then
7780 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7781 cat >conftest.$ac_ext <<_ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7791 $EGREP "free" >/dev/null 2>&1; then
7794 ac_cv_header_stdc=no
7800 if test $ac_cv_header_stdc = yes; then
7801 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7802 if test "$cross_compiling" = yes; then
7805 cat >conftest.$ac_ext <<_ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7812 #if ((' ' & 0x0FF) == 0x020)
7813 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7814 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7816 # define ISLOWER(c) \
7817 (('a' <= (c) && (c) <= 'i') \
7818 || ('j' <= (c) && (c) <= 'r') \
7819 || ('s' <= (c) && (c) <= 'z'))
7820 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7823 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7828 for (i = 0; i < 256; i++)
7829 if (XOR (islower (i), ISLOWER (i))
7830 || toupper (i) != TOUPPER (i))
7835 rm -f conftest$ac_exeext
7836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7837 (eval $ac_link) 2>&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7848 echo "$as_me: program exited with status $ac_status" >&5
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7853 ac_cv_header_stdc=no
7855 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7859 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7860 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7861 if test $ac_cv_header_stdc = yes; then
7863 cat >>confdefs.h <<\_ACEOF
7864 #define STDC_HEADERS 1
7869 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7870 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7871 if test "${ac_cv_header_time+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 cat >conftest.$ac_ext <<_ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 #include <sys/types.h>
7881 #include <sys/time.h>
7887 if ((struct tm *) 0)
7893 rm -f conftest.$ac_objext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895 (eval $ac_compile) 2>conftest.er1
7897 grep -v '^ *+' conftest.er1 >conftest.err
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; } &&
7908 { ac_try='test -s conftest.$ac_objext'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 ac_cv_header_time=yes
7916 echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7919 ac_cv_header_time=no
7921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7923 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7924 echo "${ECHO_T}$ac_cv_header_time" >&6
7925 if test $ac_cv_header_time = yes; then
7927 cat >>confdefs.h <<\_ACEOF
7928 #define TIME_WITH_SYS_TIME 1
7933 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7934 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7935 if test "${gcc_cv_header_string+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 cat >conftest.$ac_ext <<_ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7945 #include <strings.h>
7954 rm -f conftest.$ac_objext
7955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7956 (eval $ac_compile) 2>conftest.er1
7958 grep -v '^ *+' conftest.er1 >conftest.err
7960 cat conftest.err >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } &&
7963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest.$ac_objext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 gcc_cv_header_string=yes
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7980 gcc_cv_header_string=no
7982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7984 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7985 echo "${ECHO_T}$gcc_cv_header_string" >&6
7986 if test $gcc_cv_header_string = yes; then
7988 cat >>confdefs.h <<\_ACEOF
7989 #define STRING_WITH_STRINGS 1
7994 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7995 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7996 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 cat >conftest.$ac_ext <<_ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8005 #include <sys/types.h>
8006 #include <sys/wait.h>
8008 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8011 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8019 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8024 rm -f conftest.$ac_objext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8026 (eval $ac_compile) 2>conftest.er1
8028 grep -v '^ *+' conftest.er1 >conftest.err
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; } &&
8039 { ac_try='test -s conftest.$ac_objext'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; }; then
8045 ac_cv_header_sys_wait_h=yes
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 ac_cv_header_sys_wait_h=no
8052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8054 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8055 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8056 if test $ac_cv_header_sys_wait_h = yes; then
8058 cat >>confdefs.h <<\_ACEOF
8059 #define HAVE_SYS_WAIT_H 1
8086 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8087 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8088 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8089 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8092 echo "$as_me:$LINENO: checking for $ac_header" >&5
8093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 #include <$ac_header>
8105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8108 grep -v '^ *+' conftest.er1 >conftest.err
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } >/dev/null; then
8113 if test -s conftest.err; then
8114 ac_cpp_err=$ac_c_preproc_warn_flag
8115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8122 if test -z "$ac_cpp_err"; then
8123 eval "$as_ac_Header=yes"
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 eval "$as_ac_Header=no"
8130 rm -f conftest.err conftest.$ac_ext
8132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8135 cat >>confdefs.h <<_ACEOF
8136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8143 # Check for thread headers.
8144 echo "$as_me:$LINENO: checking for thread.h" >&5
8145 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8146 if test "${ac_cv_header_thread_h+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 cat >conftest.$ac_ext <<_ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8160 grep -v '^ *+' conftest.er1 >conftest.err
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } >/dev/null; then
8165 if test -s conftest.err; then
8166 ac_cpp_err=$ac_c_preproc_warn_flag
8167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8174 if test -z "$ac_cpp_err"; then
8175 ac_cv_header_thread_h=yes
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 ac_cv_header_thread_h=no
8182 rm -f conftest.err conftest.$ac_ext
8184 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8185 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8186 if test $ac_cv_header_thread_h = yes; then
8192 echo "$as_me:$LINENO: checking for pthread.h" >&5
8193 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8194 if test "${ac_cv_header_pthread_h+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 cat >conftest.$ac_ext <<_ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8203 #include <pthread.h>
8205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8208 grep -v '^ *+' conftest.er1 >conftest.err
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } >/dev/null; then
8213 if test -s conftest.err; then
8214 ac_cpp_err=$ac_c_preproc_warn_flag
8215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8222 if test -z "$ac_cpp_err"; then
8223 ac_cv_header_pthread_h=yes
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 ac_cv_header_pthread_h=no
8230 rm -f conftest.err conftest.$ac_ext
8232 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8233 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8234 if test $ac_cv_header_pthread_h = yes; then
8241 # These tests can't be done till we know if we have limits.h.
8242 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8243 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8244 if test "${gcc_cv_decl_char_bit+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 cat >conftest.$ac_ext <<_ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 #ifdef HAVE_LIMITS_H
8260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8261 $EGREP "found" >/dev/null 2>&1; then
8262 gcc_cv_decl_char_bit=yes
8264 gcc_cv_decl_char_bit=no
8270 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8271 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8272 if test $gcc_cv_decl_char_bit = no; then
8273 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8274 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8275 if test "${gcc_cv_c_nbby+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 while test $i -lt 65; do
8281 cat >conftest.$ac_ext <<_ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8292 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8293 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8299 rm -f conftest.$ac_objext
8300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8301 (eval $ac_compile) 2>conftest.er1
8303 grep -v '^ *+' conftest.er1 >conftest.err
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } &&
8308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try='test -s conftest.$ac_objext'
8315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 gcc_cv_c_nbby=$i; break
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8329 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8332 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8333 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8334 if test $gcc_cv_c_nbby = failed; then
8335 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8336 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8337 { (exit 1); exit 1; }; }
8340 cat >>confdefs.h <<_ACEOF
8341 #define CHAR_BIT $gcc_cv_c_nbby
8346 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8347 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8348 if test "${ac_cv_c_bigendian+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 # See if sys/param.h defines the BYTE_ORDER macro.
8352 cat >conftest.$ac_ext <<_ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 #include <sys/types.h>
8359 #include <sys/param.h>
8364 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8372 rm -f conftest.$ac_objext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8374 (eval $ac_compile) 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; } &&
8387 { ac_try='test -s conftest.$ac_objext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 # It does; now see whether it defined to BIG_ENDIAN or not.
8394 cat >conftest.$ac_ext <<_ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8400 #include <sys/types.h>
8401 #include <sys/param.h>
8406 #if BYTE_ORDER != BIG_ENDIAN
8414 rm -f conftest.$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416 (eval $ac_compile) 2>conftest.er1
8418 grep -v '^ *+' conftest.er1 >conftest.err
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); }; } &&
8429 { ac_try='test -s conftest.$ac_objext'
8430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; }; then
8435 ac_cv_c_bigendian=yes
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8440 ac_cv_c_bigendian=no
8442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8444 echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8447 # It does not; compile a test program.
8448 if test "$cross_compiling" = yes; then
8449 # try to guess the endianness by grepping values into an object file
8450 ac_cv_c_bigendian=unknown
8451 cat >conftest.$ac_ext <<_ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8458 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8459 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8460 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8461 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8462 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8466 _ascii (); _ebcdic ();
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473 (eval $ac_compile) 2>conftest.er1
8475 grep -v '^ *+' conftest.er1 >conftest.err
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; } &&
8486 { ac_try='test -s conftest.$ac_objext'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8492 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8493 ac_cv_c_bigendian=yes
8495 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8496 if test "$ac_cv_c_bigendian" = unknown; then
8497 ac_cv_c_bigendian=no
8499 # finding both strings is unlikely to happen, but who knows?
8500 ac_cv_c_bigendian=unknown
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8510 cat >conftest.$ac_ext <<_ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8519 /* Are we little or big endian? From Harbison&Steele. */
8523 char c[sizeof (long)];
8526 exit (u.c[sizeof (long) - 1] == 1);
8529 rm -f conftest$ac_exeext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8531 (eval $ac_link) 2>&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; }; then
8540 ac_cv_c_bigendian=no
8542 echo "$as_me: program exited with status $ac_status" >&5
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8547 ac_cv_c_bigendian=yes
8549 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8554 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8555 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8556 case $ac_cv_c_bigendian in
8559 cat >>confdefs.h <<\_ACEOF
8560 #define WORDS_BIGENDIAN 1
8566 { { echo "$as_me:$LINENO: error: unknown endianness
8567 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8568 echo "$as_me: error: unknown endianness
8569 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8570 { (exit 1); exit 1; }; } ;;
8578 # Stage specific cflags for build.
8582 if test x$GCC = xyes
8584 stage1_cflags="-Wa,-J"
8590 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8591 # sources; use -no-cpp-precomp to get to GNU cpp.
8592 # Apple's GCC has bugs in designated initializer handling, so disable
8594 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8599 # These libraries may be used by collect2.
8600 # We may need a special search path to get them linked.
8601 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8602 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8603 if test "${gcc_cv_collect2_libs+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 for libs in '' -lld -lmld \
8608 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8609 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8612 cat >conftest.$ac_ext <<_ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8619 /* Override any gcc2 internal prototype to avoid an error. */
8623 /* We use char because int might match the return type of a gcc2
8624 builtin and then its argument prototype would still apply. */
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636 (eval $ac_link) 2>conftest.er1
8638 grep -v '^ *+' conftest.er1 >conftest.err
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; } &&
8649 { ac_try='test -s conftest$ac_exeext'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; }; then
8655 gcc_cv_collect2_libs="$libs"; break
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8661 rm -f conftest.err conftest.$ac_objext \
8662 conftest$ac_exeext conftest.$ac_ext
8665 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8667 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8668 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8669 case $gcc_cv_collect2_libs in
8671 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8675 # When building Ada code on Alpha, we need exc_resume which is usually in
8676 # -lexc. So test for it.
8679 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8680 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8681 if test "${ac_cv_search_exc_resume+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 ac_func_search_save_LIBS=$LIBS
8685 ac_cv_search_exc_resume=no
8686 cat >conftest.$ac_ext <<_ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8693 /* Override any gcc2 internal prototype to avoid an error. */
8697 /* We use char because int might match the return type of a gcc2
8698 builtin and then its argument prototype would still apply. */
8708 rm -f conftest.$ac_objext conftest$ac_exeext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710 (eval $ac_link) 2>conftest.er1
8712 grep -v '^ *+' conftest.er1 >conftest.err
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } &&
8717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest$ac_exeext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 ac_cv_search_exc_resume="none required"
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8735 rm -f conftest.err conftest.$ac_objext \
8736 conftest$ac_exeext conftest.$ac_ext
8737 if test "$ac_cv_search_exc_resume" = no; then
8738 for ac_lib in exc; do
8739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8740 cat >conftest.$ac_ext <<_ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8747 /* Override any gcc2 internal prototype to avoid an error. */
8751 /* We use char because int might match the return type of a gcc2
8752 builtin and then its argument prototype would still apply. */
8762 rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8764 (eval $ac_link) 2>conftest.er1
8766 grep -v '^ *+' conftest.er1 >conftest.err
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; } &&
8777 { ac_try='test -s conftest$ac_exeext'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; }; then
8783 ac_cv_search_exc_resume="-l$ac_lib"
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8790 rm -f conftest.err conftest.$ac_objext \
8791 conftest$ac_exeext conftest.$ac_ext
8794 LIBS=$ac_func_search_save_LIBS
8796 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8797 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8798 if test "$ac_cv_search_exc_resume" != no; then
8799 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8807 # Some systems put ldexp and frexp in libm instead of libc; assume
8808 # they're both in the same place. jcf-dump needs them.
8811 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8812 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8813 if test "${ac_cv_search_ldexp+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 ac_func_search_save_LIBS=$LIBS
8817 ac_cv_search_ldexp=no
8818 cat >conftest.$ac_ext <<_ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8825 /* Override any gcc2 internal prototype to avoid an error. */
8829 /* We use char because int might match the return type of a gcc2
8830 builtin and then its argument prototype would still apply. */
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842 (eval $ac_link) 2>conftest.er1
8844 grep -v '^ *+' conftest.er1 >conftest.err
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; } &&
8855 { ac_try='test -s conftest$ac_exeext'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; }; then
8861 ac_cv_search_ldexp="none required"
8863 echo "$as_me: failed program was:" >&5
8864 sed 's/^/| /' conftest.$ac_ext >&5
8867 rm -f conftest.err conftest.$ac_objext \
8868 conftest$ac_exeext conftest.$ac_ext
8869 if test "$ac_cv_search_ldexp" = no; then
8871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8872 cat >conftest.$ac_ext <<_ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8879 /* Override any gcc2 internal prototype to avoid an error. */
8883 /* We use char because int might match the return type of a gcc2
8884 builtin and then its argument prototype would still apply. */
8894 rm -f conftest.$ac_objext conftest$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896 (eval $ac_link) 2>conftest.er1
8898 grep -v '^ *+' conftest.er1 >conftest.err
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } &&
8903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest$ac_exeext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_search_ldexp="-l$ac_lib"
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8922 rm -f conftest.err conftest.$ac_objext \
8923 conftest$ac_exeext conftest.$ac_ext
8926 LIBS=$ac_func_search_save_LIBS
8928 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8929 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8930 if test "$ac_cv_search_ldexp" != no; then
8931 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8939 # Use <inttypes.h> only if it exists,
8940 # doesn't clash with <sys/types.h>, and declares intmax_t.
8941 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8942 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8943 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 cat >conftest.$ac_ext <<_ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 #include <sys/types.h>
8953 #include <inttypes.h>
8962 rm -f conftest.$ac_objext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964 (eval $ac_compile) 2>conftest.er1
8966 grep -v '^ *+' conftest.er1 >conftest.err
8968 cat conftest.err >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; } &&
8977 { ac_try='test -s conftest.$ac_objext'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; }; then
8983 gcc_cv_header_inttypes_h=yes
8985 echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8988 gcc_cv_header_inttypes_h=no
8990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8993 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8994 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8995 if test $gcc_cv_header_inttypes_h = yes; then
8997 cat >>confdefs.h <<\_ACEOF
8998 #define HAVE_INTTYPES_H 1
9040 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9041 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9042 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9043 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9046 echo "$as_me:$LINENO: checking for $ac_func" >&5
9047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9048 if eval "test \"\${$as_ac_var+set}\" = set"; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 cat >conftest.$ac_ext <<_ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9059 #define $ac_func innocuous_$ac_func
9061 /* System header to define __stub macros and hopefully few prototypes,
9062 which can conflict with char $ac_func (); below.
9063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9064 <limits.h> exists even on freestanding compilers. */
9067 # include <limits.h>
9069 # include <assert.h>
9074 /* Override any gcc2 internal prototype to avoid an error. */
9079 /* We use char because int might match the return type of a gcc2
9080 builtin and then its argument prototype would still apply. */
9082 /* The GNU C library defines this for functions which it implements
9083 to always fail with ENOSYS. Some functions are actually named
9084 something starting with __ and the normal name is an alias. */
9085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9088 char (*f) () = $ac_func;
9097 return f != $ac_func;
9102 rm -f conftest.$ac_objext conftest$ac_exeext
9103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104 (eval $ac_link) 2>conftest.er1
9106 grep -v '^ *+' conftest.er1 >conftest.err
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; } &&
9117 { ac_try='test -s conftest$ac_exeext'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; }; then
9123 eval "$as_ac_var=yes"
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 eval "$as_ac_var=no"
9130 rm -f conftest.err conftest.$ac_objext \
9131 conftest$ac_exeext conftest.$ac_ext
9133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9135 if test `eval echo '${'$as_ac_var'}'` = yes; then
9136 cat >>confdefs.h <<_ACEOF
9137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9144 if test x$ac_cv_func_mbstowcs = xyes; then
9145 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9146 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9147 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 if test "$cross_compiling" = yes; then
9151 gcc_cv_func_mbstowcs_works=yes
9153 cat >conftest.$ac_ext <<_ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9166 rm -f conftest$ac_exeext
9167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9168 (eval $ac_link) 2>&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177 gcc_cv_func_mbstowcs_works=yes
9179 echo "$as_me: program exited with status $ac_status" >&5
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9184 gcc_cv_func_mbstowcs_works=no
9186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9189 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9190 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9191 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9193 cat >>confdefs.h <<\_ACEOF
9194 #define HAVE_WORKING_MBSTOWCS 1
9200 echo "$as_me:$LINENO: checking for ssize_t" >&5
9201 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9202 if test "${ac_cv_type_ssize_t+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 cat >conftest.$ac_ext <<_ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 $ac_includes_default
9217 if (sizeof (ssize_t))
9223 rm -f conftest.$ac_objext
9224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9225 (eval $ac_compile) 2>conftest.er1
9227 grep -v '^ *+' conftest.er1 >conftest.err
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; } &&
9238 { ac_try='test -s conftest.$ac_objext'
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
9244 ac_cv_type_ssize_t=yes
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9249 ac_cv_type_ssize_t=no
9251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9253 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9254 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9255 if test $ac_cv_type_ssize_t = yes; then
9259 cat >>confdefs.h <<_ACEOF
9266 # Try to determine the array type of the second argument of getgroups
9267 # for the target system (int or gid_t).
9268 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9269 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9270 if test "${ac_cv_type_uid_t+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 cat >conftest.$ac_ext <<_ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279 #include <sys/types.h>
9282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9283 $EGREP "uid_t" >/dev/null 2>&1; then
9284 ac_cv_type_uid_t=yes
9291 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9292 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9293 if test $ac_cv_type_uid_t = no; then
9295 cat >>confdefs.h <<\_ACEOF
9300 cat >>confdefs.h <<\_ACEOF
9306 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9307 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9308 if test "${ac_cv_type_getgroups+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 if test "$cross_compiling" = yes; then
9312 ac_cv_type_getgroups=cross
9314 cat >conftest.$ac_ext <<_ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9320 /* Thanks to Mike Rendell for this test. */
9321 #include <sys/types.h>
9324 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9331 union { gid_t gval; long lval; } val;
9334 for (i = 0; i < NGID; i++)
9335 gidset[i] = val.gval;
9336 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9338 /* Exit non-zero if getgroups seems to require an array of ints. This
9339 happens when gid_t is short but getgroups modifies an array of ints. */
9340 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9343 rm -f conftest$ac_exeext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9345 (eval $ac_link) 2>&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; }; then
9354 ac_cv_type_getgroups=gid_t
9356 echo "$as_me: program exited with status $ac_status" >&5
9357 echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9361 ac_cv_type_getgroups=int
9363 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9365 if test $ac_cv_type_getgroups = cross; then
9366 cat >conftest.$ac_ext <<_ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h. */
9375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9376 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9377 ac_cv_type_getgroups=gid_t
9379 ac_cv_type_getgroups=int
9385 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9386 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9388 cat >>confdefs.h <<_ACEOF
9389 #define GETGROUPS_T $ac_cv_type_getgroups
9393 if test "${target}" = "${build}"; then
9394 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9397 # This condition may need some tweaking. It should include all
9398 # targets where the array type of the second argument of getgroups
9399 # is int and the type of gid_t is not equivalent to int.
9400 *-*-sunos* | *-*-ultrix*)
9401 TARGET_GETGROUPS_T=int
9404 TARGET_GETGROUPS_T=gid_t
9411 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9412 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9413 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 cat >conftest.$ac_ext <<_ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9422 #include <sys/mman.h>
9424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9427 grep -v '^ *+' conftest.er1 >conftest.err
9429 cat conftest.err >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } >/dev/null; then
9432 if test -s conftest.err; then
9433 ac_cpp_err=$ac_c_preproc_warn_flag
9434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9441 if test -z "$ac_cpp_err"; then
9442 ac_cv_header_sys_mman_h=yes
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 ac_cv_header_sys_mman_h=no
9449 rm -f conftest.err conftest.$ac_ext
9451 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9452 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9453 if test $ac_cv_header_sys_mman_h = yes; then
9454 gcc_header_sys_mman_h=yes
9456 gcc_header_sys_mman_h=no
9459 echo "$as_me:$LINENO: checking for mmap" >&5
9460 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9461 if test "${ac_cv_func_mmap+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 cat >conftest.$ac_ext <<_ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9472 #define mmap innocuous_mmap
9474 /* System header to define __stub macros and hopefully few prototypes,
9475 which can conflict with char mmap (); below.
9476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9477 <limits.h> exists even on freestanding compilers. */
9480 # include <limits.h>
9482 # include <assert.h>
9487 /* Override any gcc2 internal prototype to avoid an error. */
9492 /* We use char because int might match the return type of a gcc2
9493 builtin and then its argument prototype would still apply. */
9495 /* The GNU C library defines this for functions which it implements
9496 to always fail with ENOSYS. Some functions are actually named
9497 something starting with __ and the normal name is an alias. */
9498 #if defined (__stub_mmap) || defined (__stub___mmap)
9501 char (*f) () = mmap;
9515 rm -f conftest.$ac_objext conftest$ac_exeext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9517 (eval $ac_link) 2>conftest.er1
9519 grep -v '^ *+' conftest.er1 >conftest.err
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; } &&
9530 { ac_try='test -s conftest$ac_exeext'
9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9538 echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9543 rm -f conftest.err conftest.$ac_objext \
9544 conftest$ac_exeext conftest.$ac_ext
9546 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9547 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9548 if test $ac_cv_func_mmap = yes; then
9554 if test "$gcc_header_sys_mman_h" != yes \
9555 || test "$gcc_func_mmap" != yes; then
9556 gcc_cv_func_mmap_file=no
9557 gcc_cv_func_mmap_dev_zero=no
9558 gcc_cv_func_mmap_anon=no
9560 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9561 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9562 if test "${gcc_cv_func_mmap_file+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 # Add a system to this blacklist if
9566 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9567 # memory area containing the same data that you'd get if you applied
9568 # read() to the same fd. The only system known to have a problem here
9569 # is VMS, where text files have record structure.
9572 gcc_cv_func_mmap_file=no ;;
9574 gcc_cv_func_mmap_file=yes;;
9577 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9578 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9579 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9580 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9581 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 # Add a system to this blacklist if it has mmap() but /dev/zero
9585 # does not exist, or if mmapping /dev/zero does not give anonymous
9586 # zeroed pages with both the following properties:
9587 # 1. If you map N consecutive pages in with one call, and then
9588 # unmap any subset of those pages, the pages that were not
9589 # explicitly unmapped remain accessible.
9590 # 2. If you map two adjacent blocks of memory and then unmap them
9591 # both at once, they must both go away.
9592 # Systems known to be in this category are Windows (all variants),
9595 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9596 gcc_cv_func_mmap_dev_zero=no ;;
9598 gcc_cv_func_mmap_dev_zero=yes;;
9601 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9602 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9604 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9605 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9606 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9607 if test "${gcc_cv_decl_map_anon+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 cat >conftest.$ac_ext <<_ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 #include <sys/types.h>
9617 #include <sys/mman.h>
9620 #ifndef MAP_ANONYMOUS
9621 #define MAP_ANONYMOUS MAP_ANON
9627 int n = MAP_ANONYMOUS;
9632 rm -f conftest.$ac_objext
9633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9634 (eval $ac_compile) 2>conftest.er1
9636 grep -v '^ *+' conftest.er1 >conftest.err
9638 cat conftest.err >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } &&
9641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; } &&
9647 { ac_try='test -s conftest.$ac_objext'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9653 gcc_cv_decl_map_anon=yes
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9658 gcc_cv_decl_map_anon=no
9660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9662 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9663 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9665 if test $gcc_cv_decl_map_anon = no; then
9666 gcc_cv_func_mmap_anon=no
9668 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9669 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9670 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9674 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9675 # doesn't give anonymous zeroed pages with the same properties listed
9676 # above for use of /dev/zero.
9677 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9679 vms* | cygwin* | pe | mingw* | sco* | udk* )
9680 gcc_cv_func_mmap_anon=no ;;
9682 gcc_cv_func_mmap_anon=yes;;
9685 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9686 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9690 if test $gcc_cv_func_mmap_file = yes; then
9692 cat >>confdefs.h <<\_ACEOF
9693 #define HAVE_MMAP_FILE 1
9697 if test $gcc_cv_func_mmap_dev_zero = yes; then
9699 cat >>confdefs.h <<\_ACEOF
9700 #define HAVE_MMAP_DEV_ZERO 1
9704 if test $gcc_cv_func_mmap_anon = yes; then
9706 cat >>confdefs.h <<\_ACEOF
9707 #define HAVE_MMAP_ANON 1
9715 # Under VMS, vfork works very differently than on Unix. The standard test
9716 # won't work, and it isn't easily adaptable. It makes more sense to
9718 ac_cv_func_vfork_works=yes
9721 echo "$as_me:$LINENO: checking for pid_t" >&5
9722 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9723 if test "${ac_cv_type_pid_t+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 $ac_includes_default
9744 rm -f conftest.$ac_objext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9746 (eval $ac_compile) 2>conftest.er1
9748 grep -v '^ *+' conftest.er1 >conftest.err
9750 cat conftest.err >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); } &&
9753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest.$ac_objext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_cv_type_pid_t=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9774 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9775 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9776 if test $ac_cv_type_pid_t = yes; then
9780 cat >>confdefs.h <<_ACEOF
9788 for ac_header in unistd.h vfork.h
9790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9791 echo "$as_me:$LINENO: checking for $ac_header" >&5
9792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 cat >conftest.$ac_ext <<_ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802 #include <$ac_header>
9804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9807 grep -v '^ *+' conftest.er1 >conftest.err
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } >/dev/null; then
9812 if test -s conftest.err; then
9813 ac_cpp_err=$ac_c_preproc_warn_flag
9814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9821 if test -z "$ac_cpp_err"; then
9822 eval "$as_ac_Header=yes"
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 eval "$as_ac_Header=no"
9829 rm -f conftest.err conftest.$ac_ext
9831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9834 cat >>confdefs.h <<_ACEOF
9835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9843 for ac_func in fork vfork
9845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9846 echo "$as_me:$LINENO: checking for $ac_func" >&5
9847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9848 if eval "test \"\${$as_ac_var+set}\" = set"; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 cat >conftest.$ac_ext <<_ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9859 #define $ac_func innocuous_$ac_func
9861 /* System header to define __stub macros and hopefully few prototypes,
9862 which can conflict with char $ac_func (); below.
9863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9864 <limits.h> exists even on freestanding compilers. */
9867 # include <limits.h>
9869 # include <assert.h>
9874 /* Override any gcc2 internal prototype to avoid an error. */
9879 /* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9882 /* The GNU C library defines this for functions which it implements
9883 to always fail with ENOSYS. Some functions are actually named
9884 something starting with __ and the normal name is an alias. */
9885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9888 char (*f) () = $ac_func;
9897 return f != $ac_func;
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904 (eval $ac_link) 2>conftest.er1
9906 grep -v '^ *+' conftest.er1 >conftest.err
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } &&
9911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest$ac_exeext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 eval "$as_ac_var=yes"
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9928 eval "$as_ac_var=no"
9930 rm -f conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
9933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9935 if test `eval echo '${'$as_ac_var'}'` = yes; then
9936 cat >>confdefs.h <<_ACEOF
9937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9943 if test "x$ac_cv_func_fork" = xyes; then
9944 echo "$as_me:$LINENO: checking for working fork" >&5
9945 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9946 if test "${ac_cv_func_fork_works+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 if test "$cross_compiling" = yes; then
9950 ac_cv_func_fork_works=cross
9952 cat >conftest.$ac_ext <<_ACEOF
9953 /* By Ruediger Kuhlmann. */
9954 #include <sys/types.h>
9956 # include <unistd.h>
9958 /* Some systems only have a dummy stub for fork() */
9966 rm -f conftest$ac_exeext
9967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9968 (eval $ac_link) 2>&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; }; then
9977 ac_cv_func_fork_works=yes
9979 echo "$as_me: program exited with status $ac_status" >&5
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9984 ac_cv_func_fork_works=no
9986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9989 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9990 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
9993 ac_cv_func_fork_works=$ac_cv_func_fork
9995 if test "x$ac_cv_func_fork_works" = xcross; then
9997 *-*-amigaos* | *-*-msdosdjgpp*)
9998 # Override, as these systems have only a dummy fork() stub
9999 ac_cv_func_fork_works=no
10002 ac_cv_func_fork_works=yes
10005 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10006 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10008 ac_cv_func_vfork_works=$ac_cv_func_vfork
10009 if test "x$ac_cv_func_vfork" = xyes; then
10010 echo "$as_me:$LINENO: checking for working vfork" >&5
10011 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10012 if test "${ac_cv_func_vfork_works+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 if test "$cross_compiling" = yes; then
10016 ac_cv_func_vfork_works=cross
10018 cat >conftest.$ac_ext <<_ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 /* Thanks to Paul Eggert for this test. */
10026 #include <stdlib.h>
10027 #include <sys/types.h>
10028 #include <sys/stat.h>
10029 #include <sys/wait.h>
10031 # include <unistd.h>
10034 # include <vfork.h>
10036 /* On some sparc systems, changes by the child to local and incoming
10037 argument registers are propagated back to the parent. The compiler
10038 is told about this with #include <vfork.h>, but some compilers
10039 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10040 static variable whose address is put into a register that is
10041 clobbered by the vfork. */
10044 sparc_address_test (int arg)
10046 sparc_address_test (arg) int arg;
10049 static pid_t child;
10067 pid_t parent = getpid ();
10070 sparc_address_test (0);
10075 /* Here is another test for sparc vfork register problems. This
10076 test uses lots of local variables, at least as many local
10077 variables as main has allocated so far including compiler
10078 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10079 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10080 reuse the register of parent for one of the local variables,
10081 since it will think that parent can't possibly be used any more
10082 in this routine. Assigning to the local variable will thus
10083 munge parent in the parent process. */
10085 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10086 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10087 /* Convince the compiler that p..p7 are live; otherwise, it might
10088 use the same hardware register for all 8 local variables. */
10089 if (p != p1 || p != p2 || p != p3 || p != p4
10090 || p != p5 || p != p6 || p != p7)
10093 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10094 from child file descriptors. If the child closes a descriptor
10095 before it execs or exits, this munges the parent's descriptor
10096 as well. Test for this by closing stdout in the child. */
10097 _exit(close(fileno(stdout)) != 0);
10102 while (wait(&status) != child)
10105 /* Was there some problem with vforking? */
10108 /* Did the child fail? (This shouldn't happen.) */
10111 /* Did the vfork/compiler bug occur? */
10112 || parent != getpid()
10114 /* Did the file descriptor bug occur? */
10115 || fstat(fileno(stdout), &st) != 0
10120 rm -f conftest$ac_exeext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122 (eval $ac_link) 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
10131 ac_cv_func_vfork_works=yes
10133 echo "$as_me: program exited with status $ac_status" >&5
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ( exit $ac_status )
10138 ac_cv_func_vfork_works=no
10140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10143 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10144 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10147 if test "x$ac_cv_func_fork_works" = xcross; then
10148 ac_cv_func_vfork_works=$ac_cv_func_vfork
10149 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10150 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10153 if test "x$ac_cv_func_vfork_works" = xyes; then
10155 cat >>confdefs.h <<\_ACEOF
10156 #define HAVE_WORKING_VFORK 1
10161 cat >>confdefs.h <<\_ACEOF
10166 if test "x$ac_cv_func_fork_works" = xyes; then
10168 cat >>confdefs.h <<\_ACEOF
10169 #define HAVE_WORKING_FORK 1
10176 if test "X$prefix" = "XNONE"; then
10177 acl_final_prefix="$ac_default_prefix"
10179 acl_final_prefix="$prefix"
10181 if test "X$exec_prefix" = "XNONE"; then
10182 acl_final_exec_prefix='${prefix}'
10184 acl_final_exec_prefix="$exec_prefix"
10186 acl_save_prefix="$prefix"
10187 prefix="$acl_final_prefix"
10188 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10189 prefix="$acl_save_prefix"
10192 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10193 if test "${with_gnu_ld+set}" = set; then
10194 withval="$with_gnu_ld"
10195 test "$withval" = no || with_gnu_ld=yes
10199 # Prepare PATH_SEPARATOR.
10200 # The user is always right.
10201 if test "${PATH_SEPARATOR+set}" != set; then
10202 echo "#! /bin/sh" >conf$$.sh
10203 echo "exit 0" >>conf$$.sh
10205 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10213 if test "$GCC" = yes; then
10214 # Check if gcc -print-prog-name=ld gives a path.
10215 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10216 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10219 # gcc leaves a trailing carriage return which upsets mingw
10220 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10222 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10225 # Accept absolute paths.
10226 [\\/]* | [A-Za-z]:[\\/]*)
10227 re_direlt='/[^/][^/]*/\.\./'
10228 # Canonicalize the path of ld
10229 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10230 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10231 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10233 test -z "$LD" && LD="$ac_prog"
10236 # If it fails, then pretend we aren't using GCC.
10240 # If it is relative, then search for the first ld in PATH.
10241 with_gnu_ld=unknown
10244 elif test "$with_gnu_ld" = yes; then
10245 echo "$as_me:$LINENO: checking for GNU ld" >&5
10246 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10248 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10249 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10251 if test "${acl_cv_path_LD+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10254 if test -z "$LD"; then
10255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10256 for ac_dir in $PATH; do
10257 test -z "$ac_dir" && ac_dir=.
10258 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10259 acl_cv_path_LD="$ac_dir/$ac_prog"
10260 # Check to see if the program is GNU ld. I'd rather use --version,
10261 # but apparently some GNU ld's only accept -v.
10262 # Break only if it was the GNU/non-GNU ld that we prefer.
10263 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10264 test "$with_gnu_ld" != no && break
10266 test "$with_gnu_ld" != yes && break
10272 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10276 LD="$acl_cv_path_LD"
10277 if test -n "$LD"; then
10278 echo "$as_me:$LINENO: result: $LD" >&5
10279 echo "${ECHO_T}$LD" >&6
10281 echo "$as_me:$LINENO: result: no" >&5
10282 echo "${ECHO_T}no" >&6
10284 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10285 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10286 { (exit 1); exit 1; }; }
10287 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10288 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10289 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10293 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10294 acl_cv_prog_gnu_ld=yes
10296 acl_cv_prog_gnu_ld=no
10299 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10300 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10301 with_gnu_ld=$acl_cv_prog_gnu_ld
10305 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10306 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10307 if test "${acl_cv_rpath+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10312 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10314 rm -f ./conftest.sh
10318 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10319 echo "${ECHO_T}$acl_cv_rpath" >&6
10321 libext="$acl_cv_libext"
10322 shlibext="$acl_cv_shlibext"
10323 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10324 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10325 hardcode_direct="$acl_cv_hardcode_direct"
10326 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10327 # Check whether --enable-rpath or --disable-rpath was given.
10328 if test "${enable_rpath+set}" = set; then
10329 enableval="$enable_rpath"
10343 acl_save_prefix="$prefix"
10344 prefix="$acl_final_prefix"
10345 acl_save_exec_prefix="$exec_prefix"
10346 exec_prefix="$acl_final_exec_prefix"
10348 eval additional_includedir=\"$includedir\"
10349 eval additional_libdir=\"$libdir\"
10351 exec_prefix="$acl_save_exec_prefix"
10352 prefix="$acl_save_prefix"
10355 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10356 if test "${with_libiconv_prefix+set}" = set; then
10357 withval="$with_libiconv_prefix"
10359 if test "X$withval" = "Xno"; then
10362 if test "X$withval" = "X"; then
10364 acl_save_prefix="$prefix"
10365 prefix="$acl_final_prefix"
10366 acl_save_exec_prefix="$exec_prefix"
10367 exec_prefix="$acl_final_exec_prefix"
10369 eval additional_includedir=\"$includedir\"
10370 eval additional_libdir=\"$libdir\"
10372 exec_prefix="$acl_save_exec_prefix"
10373 prefix="$acl_save_prefix"
10376 additional_includedir="$withval/include"
10377 additional_libdir="$withval/lib"
10387 names_already_handled=
10388 names_next_round='iconv '
10389 while test -n "$names_next_round"; do
10390 names_this_round="$names_next_round"
10392 for name in $names_this_round; do
10394 for n in $names_already_handled; do
10395 if test "$n" = "$name"; then
10396 already_handled=yes
10400 if test -z "$already_handled"; then
10401 names_already_handled="$names_already_handled $name"
10402 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10403 eval value=\"\$HAVE_LIB$uppername\"
10404 if test -n "$value"; then
10405 if test "$value" = yes; then
10406 eval value=\"\$LIB$uppername\"
10407 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10408 eval value=\"\$LTLIB$uppername\"
10409 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10418 if test $use_additional = yes; then
10419 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10420 found_dir="$additional_libdir"
10421 found_so="$additional_libdir/lib$name.$shlibext"
10422 if test -f "$additional_libdir/lib$name.la"; then
10423 found_la="$additional_libdir/lib$name.la"
10426 if test -f "$additional_libdir/lib$name.$libext"; then
10427 found_dir="$additional_libdir"
10428 found_a="$additional_libdir/lib$name.$libext"
10429 if test -f "$additional_libdir/lib$name.la"; then
10430 found_la="$additional_libdir/lib$name.la"
10435 if test "X$found_dir" = "X"; then
10436 for x in $LDFLAGS $LTLIBICONV; do
10438 acl_save_prefix="$prefix"
10439 prefix="$acl_final_prefix"
10440 acl_save_exec_prefix="$exec_prefix"
10441 exec_prefix="$acl_final_exec_prefix"
10443 exec_prefix="$acl_save_exec_prefix"
10444 prefix="$acl_save_prefix"
10448 dir=`echo "X$x" | sed -e 's/^X-L//'`
10449 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10451 found_so="$dir/lib$name.$shlibext"
10452 if test -f "$dir/lib$name.la"; then
10453 found_la="$dir/lib$name.la"
10456 if test -f "$dir/lib$name.$libext"; then
10458 found_a="$dir/lib$name.$libext"
10459 if test -f "$dir/lib$name.la"; then
10460 found_la="$dir/lib$name.la"
10466 if test "X$found_dir" != "X"; then
10471 if test "X$found_dir" != "X"; then
10472 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10473 if test "X$found_so" != "X"; then
10474 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10475 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10478 for x in $ltrpathdirs; do
10479 if test "X$x" = "X$found_dir"; then
10484 if test -z "$haveit"; then
10485 ltrpathdirs="$ltrpathdirs $found_dir"
10487 if test "$hardcode_direct" = yes; then
10488 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10490 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10491 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10493 for x in $rpathdirs; do
10494 if test "X$x" = "X$found_dir"; then
10499 if test -z "$haveit"; then
10500 rpathdirs="$rpathdirs $found_dir"
10504 for x in $LDFLAGS $LIBICONV; do
10506 acl_save_prefix="$prefix"
10507 prefix="$acl_final_prefix"
10508 acl_save_exec_prefix="$exec_prefix"
10509 exec_prefix="$acl_final_exec_prefix"
10511 exec_prefix="$acl_save_exec_prefix"
10512 prefix="$acl_save_prefix"
10514 if test "X$x" = "X-L$found_dir"; then
10519 if test -z "$haveit"; then
10520 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10522 if test "$hardcode_minus_L" != no; then
10523 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10525 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10531 if test "X$found_a" != "X"; then
10532 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10534 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10537 additional_includedir=
10538 case "$found_dir" in
10540 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10541 additional_includedir="$basedir/include"
10544 if test "X$additional_includedir" != "X"; then
10545 if test "X$additional_includedir" != "X/usr/include"; then
10547 if test "X$additional_includedir" = "X/usr/local/include"; then
10548 if test -n "$GCC"; then
10550 linux*) haveit=yes;;
10554 if test -z "$haveit"; then
10555 for x in $CPPFLAGS $INCICONV; do
10557 acl_save_prefix="$prefix"
10558 prefix="$acl_final_prefix"
10559 acl_save_exec_prefix="$exec_prefix"
10560 exec_prefix="$acl_final_exec_prefix"
10562 exec_prefix="$acl_save_exec_prefix"
10563 prefix="$acl_save_prefix"
10565 if test "X$x" = "X-I$additional_includedir"; then
10570 if test -z "$haveit"; then
10571 if test -d "$additional_includedir"; then
10572 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10578 if test -n "$found_la"; then
10579 save_libdir="$libdir"
10580 case "$found_la" in
10581 */* | *\\*) . "$found_la" ;;
10582 *) . "./$found_la" ;;
10584 libdir="$save_libdir"
10585 for dep in $dependency_libs; do
10588 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10589 if test "X$additional_libdir" != "X/usr/lib"; then
10591 if test "X$additional_libdir" = "X/usr/local/lib"; then
10592 if test -n "$GCC"; then
10594 linux*) haveit=yes;;
10598 if test -z "$haveit"; then
10600 for x in $LDFLAGS $LIBICONV; do
10602 acl_save_prefix="$prefix"
10603 prefix="$acl_final_prefix"
10604 acl_save_exec_prefix="$exec_prefix"
10605 exec_prefix="$acl_final_exec_prefix"
10607 exec_prefix="$acl_save_exec_prefix"
10608 prefix="$acl_save_prefix"
10610 if test "X$x" = "X-L$additional_libdir"; then
10615 if test -z "$haveit"; then
10616 if test -d "$additional_libdir"; then
10617 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10621 for x in $LDFLAGS $LTLIBICONV; do
10623 acl_save_prefix="$prefix"
10624 prefix="$acl_final_prefix"
10625 acl_save_exec_prefix="$exec_prefix"
10626 exec_prefix="$acl_final_exec_prefix"
10628 exec_prefix="$acl_save_exec_prefix"
10629 prefix="$acl_save_prefix"
10631 if test "X$x" = "X-L$additional_libdir"; then
10636 if test -z "$haveit"; then
10637 if test -d "$additional_libdir"; then
10638 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10645 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10646 if test "$enable_rpath" != no; then
10648 for x in $rpathdirs; do
10649 if test "X$x" = "X$dir"; then
10654 if test -z "$haveit"; then
10655 rpathdirs="$rpathdirs $dir"
10658 for x in $ltrpathdirs; do
10659 if test "X$x" = "X$dir"; then
10664 if test -z "$haveit"; then
10665 ltrpathdirs="$ltrpathdirs $dir"
10670 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10673 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10676 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10677 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10683 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10684 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10690 if test "X$rpathdirs" != "X"; then
10691 if test -n "$hardcode_libdir_separator"; then
10693 for found_dir in $rpathdirs; do
10694 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10696 acl_save_libdir="$libdir"
10698 eval flag=\"$hardcode_libdir_flag_spec\"
10699 libdir="$acl_save_libdir"
10700 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10702 for found_dir in $rpathdirs; do
10703 acl_save_libdir="$libdir"
10704 libdir="$found_dir"
10705 eval flag=\"$hardcode_libdir_flag_spec\"
10706 libdir="$acl_save_libdir"
10707 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10711 if test "X$ltrpathdirs" != "X"; then
10712 for found_dir in $ltrpathdirs; do
10713 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10723 am_save_CPPFLAGS="$CPPFLAGS"
10725 for element in $INCICONV; do
10727 for x in $CPPFLAGS; do
10729 acl_save_prefix="$prefix"
10730 prefix="$acl_final_prefix"
10731 acl_save_exec_prefix="$exec_prefix"
10732 exec_prefix="$acl_final_exec_prefix"
10734 exec_prefix="$acl_save_exec_prefix"
10735 prefix="$acl_save_prefix"
10737 if test "X$x" = "X$element"; then
10742 if test -z "$haveit"; then
10743 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10748 echo "$as_me:$LINENO: checking for iconv" >&5
10749 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10750 if test "${am_cv_func_iconv+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 am_cv_func_iconv="no, consider installing GNU libiconv"
10756 cat >conftest.$ac_ext <<_ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10762 #include <stdlib.h>
10767 iconv_t cd = iconv_open("","");
10768 iconv(cd,NULL,NULL,NULL,NULL);
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10776 (eval $ac_link) 2>conftest.er1
10778 grep -v '^ *+' conftest.er1 >conftest.err
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } &&
10783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785 (eval $ac_try) 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; } &&
10789 { ac_try='test -s conftest$ac_exeext'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
10795 am_cv_func_iconv=yes
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10801 rm -f conftest.err conftest.$ac_objext \
10802 conftest$ac_exeext conftest.$ac_ext
10803 if test "$am_cv_func_iconv" != yes; then
10804 am_save_LIBS="$LIBS"
10805 LIBS="$LIBS $LIBICONV"
10806 cat >conftest.$ac_ext <<_ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10812 #include <stdlib.h>
10817 iconv_t cd = iconv_open("","");
10818 iconv(cd,NULL,NULL,NULL,NULL);
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10826 (eval $ac_link) 2>conftest.er1
10828 grep -v '^ *+' conftest.er1 >conftest.err
10830 cat conftest.err >&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } &&
10833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835 (eval $ac_try) 2>&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; } &&
10839 { ac_try='test -s conftest$ac_exeext'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; }; then
10845 am_cv_lib_iconv=yes
10846 am_cv_func_iconv=yes
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10852 rm -f conftest.err conftest.$ac_objext \
10853 conftest$ac_exeext conftest.$ac_ext
10854 LIBS="$am_save_LIBS"
10858 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10859 echo "${ECHO_T}$am_cv_func_iconv" >&6
10860 if test "$am_cv_func_iconv" = yes; then
10862 cat >>confdefs.h <<\_ACEOF
10863 #define HAVE_ICONV 1
10867 if test "$am_cv_lib_iconv" = yes; then
10868 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10869 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10870 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10871 echo "${ECHO_T}$LIBICONV" >&6
10873 CPPFLAGS="$am_save_CPPFLAGS"
10880 if test "$am_cv_func_iconv" = yes; then
10881 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10882 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10883 if test "${am_cv_proto_iconv+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 cat >conftest.$ac_ext <<_ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10894 #include <stdlib.h>
10900 #if defined(__STDC__) || defined(__cplusplus)
10901 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10914 rm -f conftest.$ac_objext
10915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10916 (eval $ac_compile) 2>conftest.er1
10918 grep -v '^ *+' conftest.er1 >conftest.err
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } &&
10923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; } &&
10929 { ac_try='test -s conftest.$ac_objext'
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }; then
10935 am_cv_proto_iconv_arg1=""
10937 echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10940 am_cv_proto_iconv_arg1="const"
10942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10943 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);"
10946 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10947 echo "$as_me:$LINENO: result: ${ac_t:-
10948 }$am_cv_proto_iconv" >&5
10949 echo "${ECHO_T}${ac_t:-
10950 }$am_cv_proto_iconv" >&6
10952 cat >>confdefs.h <<_ACEOF
10953 #define ICONV_CONST $am_cv_proto_iconv_arg1
10958 # Until we have in-tree GNU iconv:
10963 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10964 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10965 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 cat >conftest.$ac_ext <<_ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10974 #include <locale.h>
10983 rm -f conftest.$ac_objext conftest$ac_exeext
10984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10985 (eval $ac_link) 2>conftest.er1
10987 grep -v '^ *+' conftest.er1 >conftest.err
10989 cat conftest.err >&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } &&
10992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 (eval $ac_try) 2>&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; } &&
10998 { ac_try='test -s conftest$ac_exeext'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
11004 am_cv_val_LC_MESSAGES=yes
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 am_cv_val_LC_MESSAGES=no
11011 rm -f conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
11014 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11015 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11016 if test $am_cv_val_LC_MESSAGES = yes; then
11018 cat >>confdefs.h <<\_ACEOF
11019 #define HAVE_LC_MESSAGES 1
11026 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11027 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11028 if test "${am_cv_langinfo_codeset+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 cat >conftest.$ac_ext <<_ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11037 #include <langinfo.h>
11041 char* cs = nl_langinfo(CODESET);
11046 rm -f conftest.$ac_objext conftest$ac_exeext
11047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11048 (eval $ac_link) 2>conftest.er1
11050 grep -v '^ *+' conftest.er1 >conftest.err
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } &&
11055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; } &&
11061 { ac_try='test -s conftest$ac_exeext'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 am_cv_langinfo_codeset=yes
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11072 am_cv_langinfo_codeset=no
11074 rm -f conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext conftest.$ac_ext
11078 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11079 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11080 if test $am_cv_langinfo_codeset = yes; then
11082 cat >>confdefs.h <<\_ACEOF
11083 #define HAVE_LANGINFO_CODESET 1
11089 # We will need to find libiberty.h and ansidecl.h
11090 saved_CFLAGS="$CFLAGS"
11091 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11131 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11132 strsignal strstr strverscmp \
11133 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11134 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
11136 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11137 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11138 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11139 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 cat >conftest.$ac_ext <<_ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11149 #define $ac_tr_decl 1
11151 #include "ansidecl.h"
11152 #include "system.h"
11158 char *(*pfn) = (char *(*)) $ac_func ;
11164 rm -f conftest.$ac_objext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11166 (eval $ac_compile) 2>conftest.er1
11168 grep -v '^ *+' conftest.er1 >conftest.err
11170 cat conftest.err >&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } &&
11173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; } &&
11179 { ac_try='test -s conftest.$ac_objext'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 eval "gcc_cv_have_decl_$ac_func=yes"
11187 echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11190 eval "gcc_cv_have_decl_$ac_func=no"
11192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11195 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11196 echo "$as_me:$LINENO: result: yes" >&5
11197 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11198 #define $ac_tr_decl 1
11202 echo "$as_me:$LINENO: result: no" >&5
11203 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11204 #define $ac_tr_decl 0
11215 for ac_func in getrlimit setrlimit getrusage
11217 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11218 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11219 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11220 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 cat >conftest.$ac_ext <<_ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11230 #define $ac_tr_decl 1
11232 #include "ansidecl.h"
11233 #include "system.h"
11234 #ifdef HAVE_SYS_RESOURCE_H
11235 #include <sys/resource.h>
11243 char *(*pfn) = (char *(*)) $ac_func ;
11249 rm -f conftest.$ac_objext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251 (eval $ac_compile) 2>conftest.er1
11253 grep -v '^ *+' conftest.er1 >conftest.err
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; } &&
11264 { ac_try='test -s conftest.$ac_objext'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; }; then
11270 eval "gcc_cv_have_decl_$ac_func=yes"
11272 echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11275 eval "gcc_cv_have_decl_$ac_func=no"
11277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11280 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11281 echo "$as_me:$LINENO: result: yes" >&5
11282 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11283 #define $ac_tr_decl 1
11287 echo "$as_me:$LINENO: result: no" >&5
11288 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11289 #define $ac_tr_decl 0
11297 cat >conftest.$ac_ext <<_ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11304 #include "ansidecl.h"
11305 #include "system.h"
11306 #ifdef HAVE_SYS_RESOURCE_H
11307 #include <sys/resource.h>
11318 rm -f conftest.$ac_objext
11319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11320 (eval $ac_compile) 2>conftest.er1
11322 grep -v '^ *+' conftest.er1 >conftest.err
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
11327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try='test -s conftest.$ac_objext'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11345 cat >>confdefs.h <<\_ACEOF
11346 #define rlim_t long
11350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11352 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11353 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11354 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11355 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11357 for ac_func in ldgetname
11359 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11360 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11361 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11362 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 cat >conftest.$ac_ext <<_ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h. */
11372 #define $ac_tr_decl 1
11374 #include "ansidecl.h"
11375 #include "system.h"
11376 #ifdef HAVE_LDFCN_H
11387 char *(*pfn) = (char *(*)) $ac_func ;
11393 rm -f conftest.$ac_objext
11394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11395 (eval $ac_compile) 2>conftest.er1
11397 grep -v '^ *+' conftest.er1 >conftest.err
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } &&
11402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404 (eval $ac_try) 2>&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; } &&
11408 { ac_try='test -s conftest.$ac_objext'
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; }; then
11414 eval "gcc_cv_have_decl_$ac_func=yes"
11416 echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11419 eval "gcc_cv_have_decl_$ac_func=no"
11421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11424 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11425 echo "$as_me:$LINENO: result: yes" >&5
11426 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11427 #define $ac_tr_decl 1
11431 echo "$as_me:$LINENO: result: no" >&5
11432 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11433 #define $ac_tr_decl 0
11442 for ac_func in times
11444 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11445 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11446 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11447 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 cat >conftest.$ac_ext <<_ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h. */
11457 #define $ac_tr_decl 1
11459 #include "ansidecl.h"
11460 #include "system.h"
11461 #ifdef HAVE_SYS_TIMES_H
11462 #include <sys/times.h>
11470 char *(*pfn) = (char *(*)) $ac_func ;
11476 rm -f conftest.$ac_objext
11477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11478 (eval $ac_compile) 2>conftest.er1
11480 grep -v '^ *+' conftest.er1 >conftest.err
11482 cat conftest.err >&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } &&
11485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; } &&
11491 { ac_try='test -s conftest.$ac_objext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 eval "gcc_cv_have_decl_$ac_func=yes"
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11502 eval "gcc_cv_have_decl_$ac_func=no"
11504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11507 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11508 echo "$as_me:$LINENO: result: yes" >&5
11509 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11510 #define $ac_tr_decl 1
11514 echo "$as_me:$LINENO: result: no" >&5
11515 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11516 #define $ac_tr_decl 0
11524 # More time-related stuff.
11525 echo "$as_me:$LINENO: checking for struct tms" >&5
11526 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11527 if test "${ac_cv_struct_tms+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11531 cat >conftest.$ac_ext <<_ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11538 #include "ansidecl.h"
11539 #include "system.h"
11540 #ifdef HAVE_SYS_TIMES_H
11541 #include <sys/times.h>
11552 rm -f conftest.$ac_objext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11554 (eval $ac_compile) 2>conftest.er1
11556 grep -v '^ *+' conftest.er1 >conftest.err
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } &&
11561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; } &&
11567 { ac_try='test -s conftest.$ac_objext'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 ac_cv_struct_tms=yes
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11578 ac_cv_struct_tms=no
11580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11582 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11583 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11584 if test $ac_cv_struct_tms = yes; then
11586 cat >>confdefs.h <<\_ACEOF
11587 #define HAVE_STRUCT_TMS 1
11592 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11593 # revisit after autoconf 2.50.
11594 echo "$as_me:$LINENO: checking for clock_t" >&5
11595 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11596 if test "${gcc_cv_type_clock_t+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 cat >conftest.$ac_ext <<_ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11607 #include "ansidecl.h"
11608 #include "system.h"
11618 rm -f conftest.$ac_objext
11619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11620 (eval $ac_compile) 2>conftest.er1
11622 grep -v '^ *+' conftest.er1 >conftest.err
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; } &&
11633 { ac_try='test -s conftest.$ac_objext'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; }; then
11639 gcc_cv_type_clock_t=yes
11641 echo "$as_me: failed program was:" >&5
11642 sed 's/^/| /' conftest.$ac_ext >&5
11644 gcc_cv_type_clock_t=no
11646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11648 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11649 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11650 if test $gcc_cv_type_clock_t = yes; then
11652 cat >>confdefs.h <<\_ACEOF
11653 #define HAVE_CLOCK_T 1
11658 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11659 CFLAGS="$saved_CFLAGS"
11661 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11662 if test "${enable_initfini_array+set}" = set; then
11663 enableval="$enable_initfini_array"
11667 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11668 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11669 if test "${gcc_cv_initfini_array+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 if test "$cross_compiling" = yes; then
11673 gcc_cv_initfini_array=no
11675 cat >conftest.$ac_ext <<_ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11683 int main (void) { return x; }
11684 int foo (void) { x = 0; }
11685 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11687 rm -f conftest$ac_exeext
11688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11689 (eval $ac_link) 2>&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; }; then
11698 gcc_cv_initfini_array=yes
11700 echo "$as_me: program exited with status $ac_status" >&5
11701 echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11704 ( exit $ac_status )
11705 gcc_cv_initfini_array=no
11707 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11710 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11711 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11712 enable_initfini_array=$gcc_cv_initfini_array
11715 if test $enable_initfini_array = yes; then
11717 cat >>confdefs.h <<\_ACEOF
11718 #define HAVE_INITFINI_ARRAY 1
11723 # mkdir takes a single argument on some systems.
11724 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11725 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11726 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 cat >conftest.$ac_ext <<_ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11736 #include <sys/types.h>
11737 #ifdef HAVE_SYS_STAT_H
11738 # include <sys/stat.h>
11740 #ifdef HAVE_UNISTD_H
11741 # include <unistd.h>
11743 #ifdef HAVE_DIRECT_H
11744 # include <direct.h>
11754 rm -f conftest.$ac_objext
11755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11756 (eval $ac_compile) 2>conftest.er1
11758 grep -v '^ *+' conftest.er1 >conftest.err
11760 cat conftest.err >&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } &&
11763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; } &&
11769 { ac_try='test -s conftest.$ac_objext'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11775 gcc_cv_mkdir_takes_one_arg=no
11777 echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11780 gcc_cv_mkdir_takes_one_arg=yes
11782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11784 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11785 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11786 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11788 cat >>confdefs.h <<\_ACEOF
11789 #define MKDIR_TAKES_ONE_ARG 1
11801 # With Setjmp/Longjmp based exception handling.
11802 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11803 if test "${enable_sjlj_exceptions+set}" = set; then
11804 enableval="$enable_sjlj_exceptions"
11805 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11807 cat >>confdefs.h <<_ACEOF
11808 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11813 # For platforms with the unwind ABI which includes an unwind library,
11814 # libunwind, we can choose to use the system libunwind.
11816 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11817 if test "${with_system_libunwind+set}" = set; then
11818 withval="$with_system_libunwind"
11822 # --------------------------------------------------------
11823 # Build, host, and target specific configuration fragments
11824 # --------------------------------------------------------
11826 # Collect build-machine-specific information.
11827 . ${srcdir}/config.build
11829 # Collect host-machine-specific information.
11830 . ${srcdir}/config.host
11834 # Collect target-machine-specific information.
11835 . ${srcdir}/config.gcc
11837 extra_objs="${host_extra_objs} ${extra_objs}"
11838 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11840 # Default the target-machine variables that were not explicitly set.
11841 if test x"$tm_file" = x
11842 then tm_file=$cpu_type/$cpu_type.h; fi
11844 if test x"$extra_headers" = x
11845 then extra_headers=; fi
11847 if test x$md_file = x
11848 then md_file=$cpu_type/$cpu_type.md; fi
11850 if test x$out_file = x
11851 then out_file=$cpu_type/$cpu_type.c; fi
11853 if test x"$tmake_file" = x
11854 then tmake_file=$cpu_type/t-$cpu_type
11857 if test x"$dwarf2" = xyes
11858 then tm_file="$tm_file tm-dwarf2.h"
11861 # Say what files are being used for the output code and MD file.
11862 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11863 echo "Using \`$srcdir/config/$md_file' as machine description file."
11865 # If any of the xm_file variables contain nonexistent files, warn
11866 # about them and drop them.
11869 for x in $build_xm_file; do
11870 if test -f $srcdir/config/$x
11872 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11873 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11876 build_xm_file="$bx"
11879 for x in $host_xm_file; do
11880 if test -f $srcdir/config/$x
11882 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11883 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11889 for x in $xm_file; do
11890 if test -f $srcdir/config/$x
11892 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11893 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11899 for f in $tm_file; do
11902 if test $count = ax; then
11903 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11905 echo "Using the following target machine macro files:"
11906 for f in $tm_file; do
11907 echo " $srcdir/config/$f"
11911 if test x$need_64bit_hwint = xyes; then
11913 cat >>confdefs.h <<\_ACEOF
11914 #define NEED_64BIT_HOST_WIDE_INT 1
11919 if test x$use_long_long_for_widest_fast_int = xyes; then
11921 cat >>confdefs.h <<\_ACEOF
11922 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11928 for f in $host_xm_file; do
11931 if test $count = a; then
11933 elif test $count = ax; then
11934 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11936 echo "Using the following host machine macro files:"
11937 for f in $host_xm_file; do
11938 echo " $srcdir/config/$f"
11941 echo "Using ${out_host_hook_obj} for host machine hooks."
11943 if test "$host_xm_file" != "$build_xm_file"; then
11945 for f in $build_xm_file; do
11948 if test $count = a; then
11950 elif test $count = ax; then
11951 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11953 echo "Using the following build machine macro files:"
11954 for f in $build_xm_file; do
11955 echo " $srcdir/config/$f"
11964 # Check if a valid thread package
11965 case ${enable_threads} in
11968 target_thread_file='single'
11972 target_thread_file='single'
11974 aix | dce | gnat | irix | posix | posix95 | rtems | \
11975 single | solaris | vxworks | win32 )
11976 target_thread_file=${enable_threads}
11979 echo "${enable_threads} is an unknown thread package" 1>&2
11984 if test x${thread_file} = x; then
11985 # No thread file set by target-specific clauses in config.gcc,
11986 # so use file chosen by default logic above
11987 thread_file=${target_thread_file}
11990 # Make gthr-default.h if we have a thread file.
11992 if test $thread_file != single; then
11993 rm -f gthr-default.h
11994 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11995 gthread_flags=-DHAVE_GTHR_DEFAULT
12004 if test x$enable___cxa_atexit = xyes || \
12005 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12006 if test x$host = x$target; then
12007 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12008 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12009 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12012 cat >conftest.$ac_ext <<_ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h. */
12018 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12020 #define __cxa_atexit innocuous___cxa_atexit
12022 /* System header to define __stub macros and hopefully few prototypes,
12023 which can conflict with char __cxa_atexit (); below.
12024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12025 <limits.h> exists even on freestanding compilers. */
12028 # include <limits.h>
12030 # include <assert.h>
12033 #undef __cxa_atexit
12035 /* Override any gcc2 internal prototype to avoid an error. */
12040 /* We use char because int might match the return type of a gcc2
12041 builtin and then its argument prototype would still apply. */
12042 char __cxa_atexit ();
12043 /* The GNU C library defines this for functions which it implements
12044 to always fail with ENOSYS. Some functions are actually named
12045 something starting with __ and the normal name is an alias. */
12046 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12049 char (*f) () = __cxa_atexit;
12058 return f != __cxa_atexit;
12063 rm -f conftest.$ac_objext conftest$ac_exeext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12065 (eval $ac_link) 2>conftest.er1
12067 grep -v '^ *+' conftest.er1 >conftest.err
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } &&
12072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; } &&
12078 { ac_try='test -s conftest$ac_exeext'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084 ac_cv_func___cxa_atexit=yes
12086 echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12089 ac_cv_func___cxa_atexit=no
12091 rm -f conftest.err conftest.$ac_objext \
12092 conftest$ac_exeext conftest.$ac_ext
12094 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12095 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12096 if test $ac_cv_func___cxa_atexit = yes; then
12099 echo "__cxa_atexit can't be enabled on this target"
12103 # We can't check for __cxa_atexit when building a cross, so assume
12107 if test x$use_cxa_atexit = xyes; then
12109 cat >>confdefs.h <<\_ACEOF
12110 #define DEFAULT_USE_CXA_ATEXIT 1
12116 # Look for a file containing extra machine modes.
12117 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12118 extra_modes_file='$(srcdir)'/config/${extra_modes}
12121 cat >>confdefs.h <<_ACEOF
12122 #define EXTRA_MODES_FILE "config/$extra_modes"
12127 # Convert extra_options into a form suitable for Makefile use.
12129 for f in $extra_options; do
12130 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12134 # auto-host.h is the file containing items generated by autoconf and is
12135 # the first file included by config.h.
12136 # If host=build, it is correct to have bconfig include auto-host.h
12137 # as well. If host!=build, we are in error and need to do more
12138 # work to find out the build config parameters.
12139 if test x$host = x$build
12141 build_auto=auto-host.h
12143 # We create a subdir, then run autoconf in the subdir.
12144 # To prevent recursion we set host and build for the new
12145 # invocation of configure to the build for this invocation
12152 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12153 *) realsrcdir=../${srcdir};;
12155 saved_CFLAGS="${CFLAGS}"
12156 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12157 ${realsrcdir}/configure \
12158 --enable-languages=${enable_languages-all} \
12159 --target=$target_alias --host=$build_alias --build=$build_alias
12160 CFLAGS="${saved_CFLAGS}"
12162 # We just finished tests for the build machine, so rename
12163 # the file auto-build.h in the gcc directory.
12164 mv auto-host.h ../auto-build.h
12167 build_auto=auto-build.h
12171 tm_file="${tm_file} defaults.h"
12172 tm_p_file="${tm_p_file} tm-preds.h"
12173 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12174 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12175 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12176 # put this back in temporarily.
12177 xm_file="auto-host.h ansidecl.h ${xm_file}"
12183 # Compile in configure arguments.
12184 if test -f configargs.h ; then
12185 # Being re-configured.
12186 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12187 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12189 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12192 # Double all backslashes and backslash all quotes to turn
12193 # gcc_config_arguments into a C string.
12194 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12195 $gcc_config_arguments
12197 gcc_config_arguments_str=`cat conftest.out`
12200 cat > configargs.h <<EOF
12201 /* Generated automatically. */
12202 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12203 static const char thread_model[] = "$thread_file";
12205 static const struct {
12206 const char *name, *value;
12207 } configure_default_options[] = $configure_default_options;
12210 # Internationalization
12211 # If we haven't got the data from the intl directory,
12212 # assume NLS is disabled.
12220 if test -f ../intl/config.intl; then
12221 . ../intl/config.intl
12223 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12224 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12225 if test x"$USE_NLS" != xyes; then
12226 echo "$as_me:$LINENO: result: no" >&5
12227 echo "${ECHO_T}no" >&6
12229 echo "$as_me:$LINENO: result: yes" >&5
12230 echo "${ECHO_T}yes" >&6
12232 cat >>confdefs.h <<\_ACEOF
12233 #define ENABLE_NLS 1
12237 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12238 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12239 # Look for .po and .gmo files in the source directory.
12242 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12243 # If there aren't any .gmo files the shell will give us the
12244 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12246 case "$cat" in *\**)
12249 # The quadruple backslash is collapsed to a double backslash
12250 # by the backticks, then collapsed again by the double quotes,
12251 # leaving us with one backslash in the sed expression (right
12252 # before the dot that mustn't act as a wildcard).
12253 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12254 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12255 # The user is allowed to set LINGUAS to a list of languages to
12256 # install catalogs for. If it's empty that means "all of them."
12257 if test "x$LINGUAS" = x; then
12258 CATALOGS="$CATALOGS $cat"
12259 XLINGUAS="$XLINGUAS $lang"
12261 case "$LINGUAS" in *$lang*)
12262 CATALOGS="$CATALOGS $cat"
12263 XLINGUAS="$XLINGUAS $lang"
12268 LINGUAS="$XLINGUAS"
12269 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12270 echo "${ECHO_T}$LINGUAS" >&6
12273 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12274 # -liconv on the link line twice.
12275 case "$LIBINTL" in *$LIBICONV*)
12279 # Check whether --enable-secureplt or --disable-secureplt was given.
12280 if test "${enable_secureplt+set}" = set; then
12281 enableval="$enable_secureplt"
12285 # Windows32 Registry support for specifying GCC installation paths.
12286 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12287 if test "${enable_win32_registry+set}" = set; then
12288 enableval="$enable_win32_registry"
12293 win32 | pe | cygwin* | mingw32* | uwin*)
12294 if test "x$enable_win32_registry" != xno; then
12295 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12296 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12297 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 ac_func_search_save_LIBS=$LIBS
12301 ac_cv_search_RegOpenKeyExA=no
12302 cat >conftest.$ac_ext <<_ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12309 /* Override any gcc2 internal prototype to avoid an error. */
12313 /* We use char because int might match the return type of a gcc2
12314 builtin and then its argument prototype would still apply. */
12315 char RegOpenKeyExA ();
12324 rm -f conftest.$ac_objext conftest$ac_exeext
12325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12326 (eval $ac_link) 2>conftest.er1
12328 grep -v '^ *+' conftest.er1 >conftest.err
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
12333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; } &&
12339 { ac_try='test -s conftest$ac_exeext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 ac_cv_search_RegOpenKeyExA="none required"
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12351 rm -f conftest.err conftest.$ac_objext \
12352 conftest$ac_exeext conftest.$ac_ext
12353 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12354 for ac_lib in advapi32; do
12355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12356 cat >conftest.$ac_ext <<_ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12363 /* Override any gcc2 internal prototype to avoid an error. */
12367 /* We use char because int might match the return type of a gcc2
12368 builtin and then its argument prototype would still apply. */
12369 char RegOpenKeyExA ();
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380 (eval $ac_link) 2>conftest.er1
12382 grep -v '^ *+' conftest.er1 >conftest.err
12384 cat conftest.err >&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } &&
12387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest$ac_exeext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12402 echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12406 rm -f conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12410 LIBS=$ac_func_search_save_LIBS
12412 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12413 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12414 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12415 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12418 enable_win32_registry=no
12423 if test "x$enable_win32_registry" != xno; then
12425 cat >>confdefs.h <<\_ACEOF
12426 #define ENABLE_WIN32_REGISTRY 1
12430 if test "x$enable_win32_registry" != xyes \
12431 && test "x$enable_win32_registry" != x; then
12433 cat >>confdefs.h <<_ACEOF
12434 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12442 # Get an absolute path to the GCC top-level source directory
12443 holddir=`${PWDCMD-pwd}`
12445 topdir=`${PWDCMD-pwd}`
12448 # Conditionalize the makefile for this host machine.
12450 for f in ${host_xmake_file}
12452 if test -f ${srcdir}/config/$f
12454 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12458 # Conditionalize the makefile for this target machine.
12460 for f in ${tmake_file}
12462 if test -f ${srcdir}/config/$f
12464 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12467 tmake_file="${tmake_file_}"
12469 # If the host doesn't support symlinks, modify CC in
12470 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12471 # Otherwise, we can use "CC=$(CC)".
12475 cc_set_by_configure="\$(CC)"
12476 quoted_cc_set_by_configure="\$(CC)"
12477 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12478 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12481 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12482 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12483 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12484 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12488 # This is a terrible hack which will go away some day.
12489 host_cc_for_libada=${CC}
12492 out_object_file=`basename $out_file .c`.o
12494 tm_file_list="options.h"
12495 tm_include_list="options.h"
12496 for f in $tm_file; do
12499 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12500 tm_include_list="${tm_include_list} $f"
12503 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12504 tm_include_list="${tm_include_list} config/$f"
12511 for f in $tm_p_file; do
12514 tm_p_file_list="${tm_p_file_list} $f"
12515 tm_p_include_list="${tm_p_include_list} $f"
12518 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12519 tm_p_include_list="${tm_p_include_list} config/$f"
12525 for f in $xm_file; do
12528 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12529 xm_include_list="${xm_include_list} $f"
12532 xm_file_list="${xm_file_list} $f"
12533 xm_include_list="${xm_include_list} $f"
12536 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12537 xm_include_list="${xm_include_list} config/$f"
12543 host_xm_include_list=
12544 for f in $host_xm_file; do
12547 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12548 host_xm_include_list="${host_xm_include_list} $f"
12551 host_xm_file_list="${host_xm_file_list} $f"
12552 host_xm_include_list="${host_xm_include_list} $f"
12555 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12556 host_xm_include_list="${host_xm_include_list} config/$f"
12561 build_xm_file_list=
12562 for f in $build_xm_file; do
12565 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12566 build_xm_include_list="${build_xm_include_list} $f"
12568 auto-build.h | auto-host.h )
12569 build_xm_file_list="${build_xm_file_list} $f"
12570 build_xm_include_list="${build_xm_include_list} $f"
12573 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12574 build_xm_include_list="${build_xm_include_list} config/$f"
12579 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12580 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12583 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12585 if test "x$with_build_sysroot" != x; then
12586 build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12588 # This value is used, even on a native system, because
12589 # CROSS_SYSTEM_HEADER_DIR is just
12590 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12591 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12594 if test x$host != x$target
12596 CROSS="-DCROSS_COMPILE"
12598 SYSTEM_HEADER_DIR=$build_system_header_dir
12599 case "$host","$target" in
12600 # Darwin crosses can use the host system's libraries and headers,
12601 # because of the fat library support. Of course, it must be the
12602 # same version of Darwin on both sides. Allow the user to
12603 # just say --target=foo-darwin without a version number to mean
12604 # "the version on this system".
12605 *-*-darwin*,*-*-darwin*)
12606 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12607 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12608 if test $hostos = $targetos -o $targetos = darwin ; then
12610 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12615 i?86-*-*,x86_64-*-* \
12616 | powerpc*-*-*,powerpc64*-*-*)
12617 CROSS="$CROSS -DNATIVE_CROSS" ;;
12619 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12620 SYSTEM_HEADER_DIR=$build_system_header_dir
12623 # If this is a cross-compiler that does not
12624 # have its own set of headers then define
12627 # If this is using newlib, without having the headers available now,
12628 # then define inhibit_libc in LIBGCC2_CFLAGS.
12629 # This prevents libgcc2 from containing any code which requires libc
12632 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12633 test x$with_newlib = xyes ; } &&
12634 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12639 # When building gcc with a cross-compiler, we need to adjust things so
12640 # that the generator programs are still built with the native compiler.
12641 # Also, we cannot run fixincludes or fix-header.
12643 # These are the normal (build=host) settings:
12644 CC_FOR_BUILD='$(CC)'
12645 BUILD_CFLAGS='$(ALL_CFLAGS)'
12646 STMP_FIXINC=stmp-fixinc
12648 # Possibly disable fixproto, on a per-target basis.
12649 case ${use_fixproto} in
12654 STMP_FIXPROTO=stmp-fixproto
12659 # And these apply if build != host, or we are generating coverage data
12660 if test x$build != x$host || test "x$coverage_flags" != x
12662 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12664 if test "x$TARGET_SYSTEM_ROOT" = x; then
12665 if test "x$STMP_FIXPROTO" != x; then
12666 STMP_FIXPROTO=stmp-install-fixproto
12671 # Expand extra_headers to include complete path.
12672 # This substitutes for lots of t-* files.
12673 extra_headers_list=
12674 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12675 for file in ${extra_headers} ; do
12676 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12679 # Define collect2 in Makefile.
12680 case $host_can_use_collect2 in
12682 *) collect2='collect2$(exeext)' ;;
12686 # Add a definition of USE_COLLECT2 if system wants one.
12687 case $use_collect2 in
12688 no) use_collect2= ;;
12691 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12692 xm_defines="${xm_defines} USE_COLLECT2"
12693 case $host_can_use_collect2 in
12695 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12696 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12697 { (exit 1); exit 1; }; }
12703 # ---------------------------
12704 # Assembler & linker features
12705 # ---------------------------
12707 # Identify the assembler which will work hand-in-glove with the newly
12708 # built GCC, so that we can examine its features. This is the assembler
12709 # which will be driven by the driver program.
12711 # If build != host, and we aren't building gas in-tree, we identify a
12712 # build->target assembler and hope that it will have the same features
12713 # as the host->target assembler we'll be using.
12716 gcc_cv_gas_major_version=
12717 gcc_cv_gas_minor_version=
12718 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12719 if test -x "$DEFAULT_ASSEMBLER"; then
12720 gcc_cv_as="$DEFAULT_ASSEMBLER"
12721 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12722 && test -f ../gas/Makefile \
12723 && test x$build = x$host; then
12724 # Single tree build which includes gas. We want to prefer it
12725 # over whatever linker top-level may have detected, since
12726 # we'll use what we're building after installation anyway.
12728 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12729 for f in $gcc_cv_as_bfd_srcdir/configure \
12730 $gcc_cv_as_gas_srcdir/configure \
12731 $gcc_cv_as_gas_srcdir/configure.in \
12732 $gcc_cv_as_gas_srcdir/Makefile.in ; do
12733 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12734 if test x$gcc_cv_gas_version != x; then
12738 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12739 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12740 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12741 case $gcc_cv_gas_patch_version in
12742 "") gcc_cv_gas_patch_version="0" ;;
12744 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12745 + $gcc_cv_gas_minor_version \) \* 1000 \
12746 + $gcc_cv_gas_patch_version`
12748 gcc_cv_as=../gas/as-new$build_exeext
12749 in_tree_gas_is_elf=no
12750 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12751 || (grep 'obj_format = multi' ../gas/Makefile \
12752 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12754 in_tree_gas_is_elf=yes
12756 elif test -x as$build_exeext; then
12757 # Build using assembler in the current directory.
12758 gcc_cv_as=./as$build_exeext
12762 # When searching for the assembler or linker, search the same directories
12763 # that the installed compiler will search. Else we may find the wrong
12764 # assembler or linker and lose. If we do not find a suitable binary,
12765 # then try the user's path.
12767 # Also note we have to check MD_EXEC_PREFIX before checking the user's path.
12768 if test "x$exec_prefix" = xNONE; then
12769 if test "x$prefix" = xNONE; then
12770 gcc_cv_tool_prefix=/usr/local
12772 gcc_cv_tool_prefix=$prefix
12775 gcc_cv_tool_prefix=$exec_prefix
12778 if test x$host = x$build; then
12779 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version"
12780 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical"
12781 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical/$gcc_version"
12782 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical"
12783 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version"
12784 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin"
12789 if test x$build = x$target; then
12790 # Rummage through tm_files looking for MD_EXEC_PREFIX
12792 for f in ${tm_file_list}; do
12793 if test -f $f; then
12794 if grep '^#[ ]*undef[ ]*MD_EXEC_PREFIX' $f > /dev/null; then
12797 md_dirs="$md_dirs "`sed -n -e 's@^#[ ]*define[ ]*MD_EXEC_PREFIX[ ]*"\(.*\)/"@\1@p' < $f`
12800 for f in ${md_dirs}; do
12801 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$f"
12810 # First try the environment variables. Handle full paths or basenames.
12811 if test "x$gcc_cv_as" = x && test -n "$AS_FOR_TARGET"; then
12812 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
12813 set dummy $AS_FOR_TARGET; ac_word=$2
12814 echo "$as_me:$LINENO: checking for $ac_word" >&5
12815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12816 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825 for as_dir in $PATH
12828 test -z "$as_dir" && as_dir=.
12829 for ac_exec_ext in '' $ac_executable_extensions; do
12830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12831 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12841 gcc_cv_as=$ac_cv_path_gcc_cv_as
12843 if test -n "$gcc_cv_as"; then
12844 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12845 echo "${ECHO_T}$gcc_cv_as" >&6
12847 echo "$as_me:$LINENO: result: no" >&5
12848 echo "${ECHO_T}no" >&6
12852 if test "x$gcc_cv_as" = x && test -n "$AS" && test x$host = x$target; then
12853 # Extract the first word of "$AS", so it can be a program name with args.
12854 set dummy $AS; ac_word=$2
12855 echo "$as_me:$LINENO: checking for $ac_word" >&5
12856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12857 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12862 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866 for as_dir in $PATH
12869 test -z "$as_dir" && as_dir=.
12870 for ac_exec_ext in '' $ac_executable_extensions; do
12871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12872 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12882 gcc_cv_as=$ac_cv_path_gcc_cv_as
12884 if test -n "$gcc_cv_as"; then
12885 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12886 echo "${ECHO_T}$gcc_cv_as" >&6
12888 echo "$as_me:$LINENO: result: no" >&5
12889 echo "${ECHO_T}no" >&6
12894 if test "x$gcc_cv_as" = x; then
12895 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
12897 if test "x$gcc_cv_tool_dirs" = x; then
12902 # Extract the first word of "$ac_prog", so it can be a program name with args.
12903 set dummy $ac_prog; ac_word=$2
12904 echo "$as_me:$LINENO: checking for $ac_word" >&5
12905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12906 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12911 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $gcc_cv_tool_dirs
12918 test -z "$as_dir" && as_dir=.
12919 for ac_exec_ext in '' $ac_executable_extensions; do
12920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12921 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12931 gcc_cv_as=$ac_cv_path_gcc_cv_as
12933 if test -n "$gcc_cv_as"; then
12934 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12935 echo "${ECHO_T}$gcc_cv_as" >&6
12937 echo "$as_me:$LINENO: result: no" >&5
12938 echo "${ECHO_T}no" >&6
12941 test -n "$gcc_cv_as" && break
12946 if test "x$gcc_cv_as" = x; then
12947 # If the loop above did not find a tool, then use whatever
12948 # one we can find in the users's path. We are looking for a
12949 # ${build} -> ${target} tool.
12950 if test "x$program_prefix" != xNONE; then
12951 default_tool_name=${program_prefix}as
12952 elif test x$build != x$host && test x$build != x$target; then
12953 default_tool_name=${target_noncanonical}-as
12955 default_tool_name=`echo as | sed "${program_transform_name}"`
12957 for ac_prog in $default_tool_name
12959 # Extract the first word of "$ac_prog", so it can be a program name with args.
12960 set dummy $ac_prog; ac_word=$2
12961 echo "$as_me:$LINENO: checking for $ac_word" >&5
12962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12963 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12968 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972 for as_dir in $PATH
12975 test -z "$as_dir" && as_dir=.
12976 for ac_exec_ext in '' $ac_executable_extensions; do
12977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12978 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12988 gcc_cv_as=$ac_cv_path_gcc_cv_as
12990 if test -n "$gcc_cv_as"; then
12991 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12992 echo "${ECHO_T}$gcc_cv_as" >&6
12994 echo "$as_me:$LINENO: result: no" >&5
12995 echo "${ECHO_T}no" >&6
12998 test -n "$gcc_cv_as" && break
13000 test -n "$gcc_cv_as" || gcc_cv_as="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13003 test "$silent" != yes && exec 6>&1
13005 ORIGINAL_AS_FOR_TARGET="$gcc_cv_as"
13007 echo "$as_me:$LINENO: checking what assembler to use" >&5
13008 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13009 case $in_tree_gas in
13011 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
13012 echo "${ECHO_T}\"newly built gas\"" >&6
13015 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13016 echo "${ECHO_T}$gcc_cv_as" >&6
13020 # Identify the linker which will work hand-in-glove with the newly
13021 # built GCC, so that we can examine its features. This is the linker
13022 # which will be driven by the driver program.
13024 # If build != host, and we aren't building gas in-tree, we identify a
13025 # build->target linker and hope that it will have the same features
13026 # as the host->target linker we'll be using.
13029 gcc_cv_gld_major_version=
13030 gcc_cv_gld_minor_version=
13031 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13032 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13033 if test -x "$DEFAULT_LINKER"; then
13034 gcc_cv_ld="$DEFAULT_LINKER"
13035 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13036 && test -f ../ld/Makefile \
13037 && test x$build = x$host; then
13038 # Single tree build which includes ld. We want to prefer it
13039 # over whatever linker top-level may have detected, since
13040 # we'll use what we're building after installation anyway.
13042 in_tree_ld_is_elf=no
13043 if (grep 'EMUL = .*elf' ../ld/Makefile \
13044 || grep 'EMUL = .*linux' ../ld/Makefile \
13045 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13046 in_tree_ld_is_elf=yes
13048 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
13050 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13051 if test x$gcc_cv_gld_version != x; then
13055 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13056 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13057 gcc_cv_ld=../ld/ld-new$build_exeext
13058 elif test -x collect-ld$build_exeext; then
13059 # Build using linker in the current directory.
13060 gcc_cv_ld=./collect-ld$build_exeext
13069 # First try the environment variables. Handle full paths or basenames.
13070 if test "x$gcc_cv_ld" = x && test -n "$LD_FOR_TARGET"; then
13071 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13072 set dummy $LD_FOR_TARGET; ac_word=$2
13073 echo "$as_me:$LINENO: checking for $ac_word" >&5
13074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13075 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13084 for as_dir in $PATH
13087 test -z "$as_dir" && as_dir=.
13088 for ac_exec_ext in '' $ac_executable_extensions; do
13089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13090 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13100 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13102 if test -n "$gcc_cv_ld"; then
13103 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13104 echo "${ECHO_T}$gcc_cv_ld" >&6
13106 echo "$as_me:$LINENO: result: no" >&5
13107 echo "${ECHO_T}no" >&6
13111 if test "x$gcc_cv_ld" = x && test -n "$LD" && test x$host = x$target; then
13112 # Extract the first word of "$LD", so it can be a program name with args.
13113 set dummy $LD; ac_word=$2
13114 echo "$as_me:$LINENO: checking for $ac_word" >&5
13115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13116 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13121 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 for as_dir in $PATH
13128 test -z "$as_dir" && as_dir=.
13129 for ac_exec_ext in '' $ac_executable_extensions; do
13130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13131 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13141 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13143 if test -n "$gcc_cv_ld"; then
13144 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13145 echo "${ECHO_T}$gcc_cv_ld" >&6
13147 echo "$as_me:$LINENO: result: no" >&5
13148 echo "${ECHO_T}no" >&6
13153 if test "x$gcc_cv_ld" = x; then
13154 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13156 if test "x$gcc_cv_tool_dirs" = x; then
13161 # Extract the first word of "$ac_prog", so it can be a program name with args.
13162 set dummy $ac_prog; ac_word=$2
13163 echo "$as_me:$LINENO: checking for $ac_word" >&5
13164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13165 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
13170 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174 for as_dir in $gcc_cv_tool_dirs
13177 test -z "$as_dir" && as_dir=.
13178 for ac_exec_ext in '' $ac_executable_extensions; do
13179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13180 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13190 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13192 if test -n "$gcc_cv_ld"; then
13193 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13194 echo "${ECHO_T}$gcc_cv_ld" >&6
13196 echo "$as_me:$LINENO: result: no" >&5
13197 echo "${ECHO_T}no" >&6
13200 test -n "$gcc_cv_ld" && break
13205 if test "x$gcc_cv_ld" = x; then
13206 # If the loop above did not find a tool, then use whatever
13207 # one we can find in the users's path. We are looking for a
13208 # ${build} -> ${target} tool.
13209 if test "x$program_prefix" != xNONE; then
13210 default_tool_name=${program_prefix}ld
13211 elif test x$build != x$host && test x$build != x$target; then
13212 default_tool_name=${target_noncanonical}-ld
13214 default_tool_name=`echo ld | sed "${program_transform_name}"`
13216 for ac_prog in $default_tool_name
13218 # Extract the first word of "$ac_prog", so it can be a program name with args.
13219 set dummy $ac_prog; ac_word=$2
13220 echo "$as_me:$LINENO: checking for $ac_word" >&5
13221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13222 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13223 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231 for as_dir in $PATH
13234 test -z "$as_dir" && as_dir=.
13235 for ac_exec_ext in '' $ac_executable_extensions; do
13236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13237 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13247 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13249 if test -n "$gcc_cv_ld"; then
13250 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13251 echo "${ECHO_T}$gcc_cv_ld" >&6
13253 echo "$as_me:$LINENO: result: no" >&5
13254 echo "${ECHO_T}no" >&6
13257 test -n "$gcc_cv_ld" && break
13259 test -n "$gcc_cv_ld" || gcc_cv_ld="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13262 test "$silent" != yes && exec 6>&1
13264 ORIGINAL_LD_FOR_TARGET="$gcc_cv_ld"
13266 echo "$as_me:$LINENO: checking what linker to use" >&5
13267 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13268 case $in_tree_ld in
13270 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13271 echo "${ECHO_T}\"newly built ld\"" >&6
13274 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13275 echo "${ECHO_T}$gcc_cv_ld" >&6
13279 # Figure out what nm we will be using.
13280 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13283 if test -f $gcc_cv_binutils_srcdir/configure.in \
13284 && test -f ../binutils/Makefile; then
13285 # Single tree build which includes binutils.
13287 gcc_cv_nm=../binutils/nm-new$build_exeext
13288 elif test -x nm$build_exeext; then
13289 gcc_cv_nm=./nm$build_exeext
13298 # First try the environment variables. Handle full paths or basenames.
13299 if test "x$gcc_cv_nm" = x && test -n "$NM_FOR_TARGET"; then
13300 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13301 set dummy $NM_FOR_TARGET; ac_word=$2
13302 echo "$as_me:$LINENO: checking for $ac_word" >&5
13303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13304 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13319 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13329 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13331 if test -n "$gcc_cv_nm"; then
13332 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13333 echo "${ECHO_T}$gcc_cv_nm" >&6
13335 echo "$as_me:$LINENO: result: no" >&5
13336 echo "${ECHO_T}no" >&6
13340 if test "x$gcc_cv_nm" = x && test -n "$NM" && test x$host = x$target; then
13341 # Extract the first word of "$NM", so it can be a program name with args.
13342 set dummy $NM; ac_word=$2
13343 echo "$as_me:$LINENO: checking for $ac_word" >&5
13344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13345 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13354 for as_dir in $PATH
13357 test -z "$as_dir" && as_dir=.
13358 for ac_exec_ext in '' $ac_executable_extensions; do
13359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13360 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13370 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13372 if test -n "$gcc_cv_nm"; then
13373 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13374 echo "${ECHO_T}$gcc_cv_nm" >&6
13376 echo "$as_me:$LINENO: result: no" >&5
13377 echo "${ECHO_T}no" >&6
13382 if test "x$gcc_cv_nm" = x; then
13383 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13385 if test "x$gcc_cv_tool_dirs" = x; then
13390 # Extract the first word of "$ac_prog", so it can be a program name with args.
13391 set dummy $ac_prog; ac_word=$2
13392 echo "$as_me:$LINENO: checking for $ac_word" >&5
13393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13394 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13403 for as_dir in $gcc_cv_tool_dirs
13406 test -z "$as_dir" && as_dir=.
13407 for ac_exec_ext in '' $ac_executable_extensions; do
13408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13409 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13419 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13421 if test -n "$gcc_cv_nm"; then
13422 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13423 echo "${ECHO_T}$gcc_cv_nm" >&6
13425 echo "$as_me:$LINENO: result: no" >&5
13426 echo "${ECHO_T}no" >&6
13429 test -n "$gcc_cv_nm" && break
13434 if test "x$gcc_cv_nm" = x; then
13435 # If the loop above did not find a tool, then use whatever
13436 # one we can find in the users's path. We are looking for a
13437 # ${build} -> ${target} tool.
13438 if test "x$program_prefix" != xNONE; then
13439 default_tool_name=${program_prefix}nm
13440 elif test x$build != x$host && test x$build != x$target; then
13441 default_tool_name=${target_noncanonical}-nm
13443 default_tool_name=`echo nm | sed "${program_transform_name}"`
13445 for ac_prog in $default_tool_name
13447 # Extract the first word of "$ac_prog", so it can be a program name with args.
13448 set dummy $ac_prog; ac_word=$2
13449 echo "$as_me:$LINENO: checking for $ac_word" >&5
13450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13451 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13456 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13460 for as_dir in $PATH
13463 test -z "$as_dir" && as_dir=.
13464 for ac_exec_ext in '' $ac_executable_extensions; do
13465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13466 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13476 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13478 if test -n "$gcc_cv_nm"; then
13479 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13480 echo "${ECHO_T}$gcc_cv_nm" >&6
13482 echo "$as_me:$LINENO: result: no" >&5
13483 echo "${ECHO_T}no" >&6
13486 test -n "$gcc_cv_nm" && break
13488 test -n "$gcc_cv_nm" || gcc_cv_nm="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13491 test "$silent" != yes && exec 6>&1
13493 ORIGINAL_NM_FOR_TARGET="$gcc_cv_nm"
13495 echo "$as_me:$LINENO: checking what nm to use" >&5
13496 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13497 case $in_tree_nm in
13498 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13499 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13500 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13501 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13504 # Figure out what objdump we will be using.
13507 if test -f $gcc_cv_binutils_srcdir/configure.in \
13508 && test -f ../binutils/Makefile; then
13509 # Single tree build which includes binutils.
13510 in_tree_objdump=yes
13511 gcc_cv_objdump=../binutils/objdump$build_exeext
13512 elif test -x objdump$build_exeext; then
13513 gcc_cv_objdump=./objdump$build_exeext
13522 # First try the environment variables. Handle full paths or basenames.
13523 if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP_FOR_TARGET"; then
13524 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13525 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13526 echo "$as_me:$LINENO: checking for $ac_word" >&5
13527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13528 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 case $gcc_cv_objdump in
13533 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537 for as_dir in $PATH
13540 test -z "$as_dir" && as_dir=.
13541 for ac_exec_ext in '' $ac_executable_extensions; do
13542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13543 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13553 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13555 if test -n "$gcc_cv_objdump"; then
13556 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13557 echo "${ECHO_T}$gcc_cv_objdump" >&6
13559 echo "$as_me:$LINENO: result: no" >&5
13560 echo "${ECHO_T}no" >&6
13564 if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP" && test x$host = x$target; then
13565 # Extract the first word of "$OBJDUMP", so it can be a program name with args.
13566 set dummy $OBJDUMP; ac_word=$2
13567 echo "$as_me:$LINENO: checking for $ac_word" >&5
13568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13569 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 case $gcc_cv_objdump in
13574 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13581 test -z "$as_dir" && as_dir=.
13582 for ac_exec_ext in '' $ac_executable_extensions; do
13583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13584 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13594 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13596 if test -n "$gcc_cv_objdump"; then
13597 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13598 echo "${ECHO_T}$gcc_cv_objdump" >&6
13600 echo "$as_me:$LINENO: result: no" >&5
13601 echo "${ECHO_T}no" >&6
13606 if test "x$gcc_cv_objdump" = x; then
13607 # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13609 if test "x$gcc_cv_tool_dirs" = x; then
13612 for ac_prog in objdump
13614 # Extract the first word of "$ac_prog", so it can be a program name with args.
13615 set dummy $ac_prog; ac_word=$2
13616 echo "$as_me:$LINENO: checking for $ac_word" >&5
13617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13618 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13621 case $gcc_cv_objdump in
13623 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $gcc_cv_tool_dirs
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
13632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13633 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13643 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13645 if test -n "$gcc_cv_objdump"; then
13646 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13647 echo "${ECHO_T}$gcc_cv_objdump" >&6
13649 echo "$as_me:$LINENO: result: no" >&5
13650 echo "${ECHO_T}no" >&6
13653 test -n "$gcc_cv_objdump" && break
13658 if test "x$gcc_cv_objdump" = x; then
13659 # If the loop above did not find a tool, then use whatever
13660 # one we can find in the users's path. We are looking for a
13661 # ${build} -> ${target} tool.
13662 if test "x$program_prefix" != xNONE; then
13663 default_tool_name=${program_prefix}objdump
13664 elif test x$build != x$host && test x$build != x$target; then
13665 default_tool_name=${target_noncanonical}-objdump
13667 default_tool_name=`echo objdump | sed "${program_transform_name}"`
13669 for ac_prog in $default_tool_name
13671 # Extract the first word of "$ac_prog", so it can be a program name with args.
13672 set dummy $ac_prog; ac_word=$2
13673 echo "$as_me:$LINENO: checking for $ac_word" >&5
13674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13675 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 case $gcc_cv_objdump in
13680 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13684 for as_dir in $PATH
13687 test -z "$as_dir" && as_dir=.
13688 for ac_exec_ext in '' $ac_executable_extensions; do
13689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13690 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13700 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13702 if test -n "$gcc_cv_objdump"; then
13703 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13704 echo "${ECHO_T}$gcc_cv_objdump" >&6
13706 echo "$as_me:$LINENO: result: no" >&5
13707 echo "${ECHO_T}no" >&6
13710 test -n "$gcc_cv_objdump" && break
13712 test -n "$gcc_cv_objdump" || gcc_cv_objdump="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13715 test "$silent" != yes && exec 6>&1
13717 ORIGINAL_OBJDUMP_FOR_TARGET="$gcc_cv_objdump"
13719 echo "$as_me:$LINENO: checking what objdump to use" >&5
13720 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13721 case $in_tree_objdump in
13722 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13723 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13724 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13725 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13728 # Figure out what assembler alignment features are present.
13729 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13730 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13731 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 gcc_cv_as_balign_and_p2align=no
13735 if test $in_tree_gas = yes; then
13736 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13737 then gcc_cv_as_balign_and_p2align=yes
13739 elif test x$gcc_cv_as != x; then
13741 .p2align 2' > conftest.s
13742 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }
13749 gcc_cv_as_balign_and_p2align=yes
13751 echo "configure: failed program was" >&5
13754 rm -f conftest.o conftest.s
13757 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13758 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13759 if test $gcc_cv_as_balign_and_p2align = yes; then
13761 cat >>confdefs.h <<\_ACEOF
13762 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13767 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13768 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13769 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 gcc_cv_as_max_skip_p2align=no
13773 if test $in_tree_gas = yes; then
13774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13775 then gcc_cv_as_max_skip_p2align=yes
13777 elif test x$gcc_cv_as != x; then
13778 echo '.p2align 4,,7' > conftest.s
13779 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }
13786 gcc_cv_as_max_skip_p2align=yes
13788 echo "configure: failed program was" >&5
13791 rm -f conftest.o conftest.s
13794 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13795 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13796 if test $gcc_cv_as_max_skip_p2align = yes; then
13798 cat >>confdefs.h <<\_ACEOF
13799 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13804 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13805 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13806 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 gcc_cv_as_subsection_m1=no
13810 if test $in_tree_gas = yes; then
13811 if test $in_tree_gas_is_elf = yes \
13812 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13813 then gcc_cv_as_subsection_m1=yes
13815 elif test x$gcc_cv_as != x; then
13816 echo 'conftest_label1: .word 0
13818 conftest_label2: .word 0
13819 .previous' > conftest.s
13820 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }
13827 if test x$gcc_cv_nm != x; then
13828 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13829 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13830 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13832 else gcc_cv_as_subsection_m1=yes
13834 rm -f conftest.nm1 conftest.nm2
13837 echo "configure: failed program was" >&5
13840 rm -f conftest.o conftest.s
13843 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13844 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13845 if test $gcc_cv_as_subsection_m1 = yes; then
13847 cat >>confdefs.h <<\_ACEOF
13848 #define HAVE_GAS_SUBSECTION_ORDERING 1
13853 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13854 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13855 if test "${gcc_cv_as_weak+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 if test $in_tree_gas = yes; then
13860 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13861 then gcc_cv_as_weak=yes
13863 elif test x$gcc_cv_as != x; then
13864 echo ' .weak foobar' > conftest.s
13865 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867 (eval $ac_try) 2>&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }
13874 echo "configure: failed program was" >&5
13877 rm -f conftest.o conftest.s
13880 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13881 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13882 if test $gcc_cv_as_weak = yes; then
13884 cat >>confdefs.h <<\_ACEOF
13885 #define HAVE_GAS_WEAK 1
13890 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13891 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13892 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13893 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 gcc_cv_as_nsubspa_comdat=no
13896 if test $in_tree_gas = yes; then
13897 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13898 then gcc_cv_as_nsubspa_comdat=yes
13900 elif test x$gcc_cv_as != x; then
13901 echo ' .SPACE $TEXT$
13902 .NSUBSPA $CODE$,COMDAT' > conftest.s
13903 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }
13910 gcc_cv_as_nsubspa_comdat=yes
13912 echo "configure: failed program was" >&5
13915 rm -f conftest.o conftest.s
13918 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13919 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13920 if test $gcc_cv_as_nsubspa_comdat = yes; then
13922 cat >>confdefs.h <<\_ACEOF
13923 #define HAVE_GAS_NSUBSPA_COMDAT 1
13928 # .hidden needs to be supported in both the assembler and the linker,
13929 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13930 # This is irritatingly difficult to feature test for; we have to check the
13931 # date string after the version number. If we've got an in-tree
13932 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13934 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13935 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13936 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13937 if test "${gcc_cv_as_hidden+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13940 gcc_cv_as_hidden=no
13941 if test $in_tree_gas = yes; then
13942 if test $in_tree_gas_is_elf = yes \
13943 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13944 then gcc_cv_as_hidden=yes
13946 elif test x$gcc_cv_as != x; then
13947 echo ' .hidden foobar
13948 foobar:' > conftest.s
13949 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }
13956 gcc_cv_as_hidden=yes
13958 echo "configure: failed program was" >&5
13961 rm -f conftest.o conftest.s
13964 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13965 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13968 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13969 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13970 if test "${gcc_cv_ld_hidden+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13973 if test $in_tree_ld = yes ; then
13974 gcc_cv_ld_hidden=no
13975 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 \
13976 && test $in_tree_ld_is_elf = yes; then
13977 gcc_cv_ld_hidden=yes
13980 gcc_cv_ld_hidden=yes
13981 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13982 if echo "$ld_ver" | grep GNU > /dev/null; then
13983 ld_vers=`echo $ld_ver | sed -n \
13984 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13985 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13986 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13987 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13988 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13989 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13990 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13991 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'`
13992 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13993 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13994 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13995 if test 0"$ld_date" -lt 20020404; then
13996 if test -n "$ld_date"; then
13997 # If there was date string, but was earlier than 2002-04-04, fail
13998 gcc_cv_ld_hidden=no
13999 elif test -z "$ld_vers"; then
14000 # If there was no date string nor ld version number, something is wrong
14001 gcc_cv_ld_hidden=no
14003 test -z "$ld_vers_patch" && ld_vers_patch=0
14004 if test "$ld_vers_major" -lt 2; then
14005 gcc_cv_ld_hidden=no
14006 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14007 gcc_cv_ld_hidden="no"
14008 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14009 gcc_cv_ld_hidden=no
14014 case "${target}" in
14015 hppa64*-*-hpux* | ia64*-*-hpux*)
14016 gcc_cv_ld_hidden=yes
14019 gcc_cv_ld_hidden=no
14025 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14026 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14027 libgcc_visibility=no
14030 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14031 libgcc_visibility=yes
14033 cat >>confdefs.h <<\_ACEOF
14034 #define HAVE_GAS_HIDDEN 1
14039 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14040 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14041 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14042 if test "${gcc_cv_as_leb128+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 gcc_cv_as_leb128=no
14046 if test $in_tree_gas = yes; then
14047 if test $in_tree_gas_is_elf = yes \
14048 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14049 then gcc_cv_as_leb128=yes
14051 elif test x$gcc_cv_as != x; then
14058 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }
14065 # GAS versions before 2.11 do not support uleb128,
14066 # despite appearing to.
14067 # ??? There exists an elf-specific test that will crash
14068 # the assembler. Perhaps it's better to figure out whether
14069 # arbitrary sections are supported and try the test.
14070 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14071 if echo "$as_ver" | grep GNU > /dev/null; then
14072 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14073 as_major=`echo $as_ver | sed 's/\..*//'`
14074 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14075 if test $as_major -eq 2 && test $as_minor -lt 11
14077 else gcc_cv_as_leb128=yes
14081 echo "configure: failed program was" >&5
14084 rm -f conftest.o conftest.s
14087 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14088 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14089 if test $gcc_cv_as_leb128 = yes; then
14091 cat >>confdefs.h <<\_ACEOF
14092 #define HAVE_AS_LEB128 1
14097 # GAS versions up to and including 2.11.0 may mis-optimize
14099 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14100 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14101 if test "${gcc_cv_as_eh_frame+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 gcc_cv_as_eh_frame=no
14105 if test $in_tree_gas = yes; then
14106 if test $in_tree_gas_is_elf = yes \
14107 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14108 then gcc_cv_as_eh_frame=yes
14110 elif test x$gcc_cv_as != x; then
14117 .section .eh_frame,"aw",@progbits
14119 .4byte .LECIE1-.LSCIE1
14133 .4byte .LEFDE1-.LASFDE1
14135 .4byte .LASFDE1-__FRAME_BEGIN__
14142 .LEFDE1:' > conftest.s
14143 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145 (eval $ac_try) 2>&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; }
14150 cat > conftest.lit <<EOF
14151 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14152 0010 01000000 12000000 18000000 00000000 ................
14153 0020 08000000 04080000 0044 .........D
14155 cat > conftest.big <<EOF
14156 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14157 0010 00000001 00000012 00000018 00000000 ................
14158 0020 00000008 04000000 0844 .........D
14160 # If the assembler didn't choke, and we can objdump,
14161 # and we got the correct data, then succeed.
14162 if test x$gcc_cv_objdump != x \
14163 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14164 | tail -3 > conftest.got \
14165 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
14166 || cmp conftest.big conftest.got > /dev/null 2>&1; }
14168 gcc_cv_as_eh_frame=yes
14169 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 gcc_cv_as_eh_frame=buggy
14177 # Uh oh, what do we do now?
14178 gcc_cv_as_eh_frame=no
14181 echo "configure: failed program was" >&5
14184 rm -f conftest.o conftest.s
14187 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14188 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14191 if test $gcc_cv_as_eh_frame = buggy; then
14193 cat >>confdefs.h <<\_ACEOF
14194 #define USE_AS_TRADITIONAL_FORMAT 1
14199 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14200 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14201 if test "${gcc_cv_as_shf_merge+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14204 gcc_cv_as_shf_merge=no
14205 if test $in_tree_gas = yes; then
14206 if test $in_tree_gas_is_elf = yes \
14207 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14208 then gcc_cv_as_shf_merge=yes
14210 elif test x$gcc_cv_as != x; then
14211 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14212 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }
14219 gcc_cv_as_shf_merge=yes
14221 echo "configure: failed program was" >&5
14224 rm -f conftest.o conftest.s
14227 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14228 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14230 if test $gcc_cv_as_shf_merge = no; then
14231 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14232 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14233 if test "${gcc_cv_as_shf_merge+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 gcc_cv_as_shf_merge=no
14237 if test $in_tree_gas = yes; then
14238 if test $in_tree_gas_is_elf = yes \
14239 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14240 then gcc_cv_as_shf_merge=yes
14242 elif test x$gcc_cv_as != x; then
14243 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14244 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; }
14251 gcc_cv_as_shf_merge=yes
14253 echo "configure: failed program was" >&5
14256 rm -f conftest.o conftest.s
14259 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14260 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14264 cat >>confdefs.h <<_ACEOF
14265 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14269 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14270 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14271 if test "${gcc_cv_as_comdat_group+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 gcc_cv_as_comdat_group=no
14275 if test $in_tree_gas = yes; then
14276 if test $in_tree_gas_is_elf = yes \
14277 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14278 then gcc_cv_as_comdat_group=yes
14280 elif test x$gcc_cv_as != x; then
14281 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14282 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; }
14289 gcc_cv_as_comdat_group=yes
14291 echo "configure: failed program was" >&5
14294 rm -f conftest.o conftest.s
14297 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14298 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14300 if test $gcc_cv_as_comdat_group = yes; then
14301 gcc_cv_as_comdat_group_percent=no
14303 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14304 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14305 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 gcc_cv_as_comdat_group_percent=no
14309 if test $in_tree_gas = yes; then
14310 if test $in_tree_gas_is_elf = yes \
14311 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14312 then gcc_cv_as_comdat_group_percent=yes
14314 elif test x$gcc_cv_as != x; then
14315 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14316 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318 (eval $ac_try) 2>&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; }
14323 gcc_cv_as_comdat_group_percent=yes
14325 echo "configure: failed program was" >&5
14328 rm -f conftest.o conftest.s
14331 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14332 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14335 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14337 if test 0"$ld_date" -lt 20050308; then
14338 if test -n "$ld_date"; then
14339 # If there was date string, but was earlier than 2005-03-08, fail
14341 elif test "$ld_vers_major" -lt 2; then
14343 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14347 if test $comdat_group = no; then
14348 gcc_cv_as_comdat_group=no
14349 gcc_cv_as_comdat_group_percent=no
14353 cat >>confdefs.h <<_ACEOF
14354 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14358 # Thread-local storage - the check is heavily parametrized.
14366 .section ".tdata","awT",@progbits
14369 ldq $27,__tls_get_addr($29) !literal!1
14370 lda $16,foo($29) !tlsgd!1
14371 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14372 ldq $27,__tls_get_addr($29) !literal!2
14373 lda $16,foo($29) !tlsldm!2
14374 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14375 ldq $1,foo($29) !gotdtprel
14376 ldah $2,foo($29) !dtprelhi
14377 lda $3,foo($2) !dtprello
14378 lda $4,foo($29) !dtprel
14379 ldq $1,foo($29) !gottprel
14380 ldah $2,foo($29) !tprelhi
14381 lda $3,foo($2) !tprello
14382 lda $4,foo($29) !tprel'
14385 tls_as_opt=--fatal-warnings
14389 .section ".tdata","awT",@progbits
14392 call #gettlsoff(x)'
14401 .section ".tdata","awT",@progbits
14405 addil LT%foo-$tls_gdidx$,gp
14406 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14409 addil LT%foo-$tls_ldidx$,gp
14411 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14412 addil LR%foo-$tls_dtpoff$,%ret0
14413 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14415 addil LT%foo-$tls_ieoff$,gp
14416 ldw RT%foo-$tls_ieoff$(%r1),%t2
14419 addil LR%foo-$tls_leoff$,%t1
14420 ldo RR%foo-$tls_leoff$(%r1),%t2'
14423 tls_as_opt=--fatal-warnings
14427 .section ".tdata","awT",@progbits
14431 leal foo@TLSGD(,%ebx,1), %eax
14432 leal foo@TLSLDM(%ebx), %eax
14433 leal foo@DTPOFF(%eax), %edx
14434 movl foo@GOTTPOFF(%ebx), %eax
14435 subl foo@GOTTPOFF(%ebx), %eax
14436 addl foo@GOTNTPOFF(%ebx), %eax
14437 movl foo@INDNTPOFF, %eax
14438 movl $foo@TPOFF, %eax
14439 subl $foo@TPOFF, %eax
14440 leal foo@NTPOFF(%ecx), %eax'
14443 tls_as_opt=--fatal-warnings
14447 .section ".tdata","awT",@progbits
14451 leaq foo@TLSGD(%rip), %rdi
14452 leaq foo@TLSLD(%rip), %rdi
14453 leaq foo@DTPOFF(%rax), %rdx
14454 movq foo@GOTTPOFF(%rip), %rax
14455 movq $foo@TPOFF, %rax'
14458 tls_as_opt=--fatal-warnings
14462 .section ".tdata","awT",@progbits
14465 addl r16 = @ltoff(@dtpmod(foo#)), gp
14466 addl r17 = @ltoff(@dtprel(foo#)), gp
14467 addl r18 = @ltoff(@tprel(foo#)), gp
14468 addl r19 = @dtprel(foo#), gp
14469 adds r21 = @dtprel(foo#), r13
14470 movl r23 = @dtprel(foo#)
14471 addl r20 = @tprel(foo#), gp
14472 adds r22 = @tprel(foo#), r13
14473 movl r24 = @tprel(foo#)'
14476 tls_as_opt=--fatal-warnings
14480 .section .tdata,"awT",@progbits
14484 addiu $4, $28, %tlsgd(x)
14485 addiu $4, $28, %tlsldm(x)
14486 lui $4, %dtprel_hi(x)
14487 addiu $4, $4, %dtprel_lo(x)
14488 lw $4, %gottprel(x)($28)
14489 lui $4, %tprel_hi(x)
14490 addiu $4, $4, %tprel_lo(x)'
14493 tls_as_opt='-32 --fatal-warnings'
14497 .section ".tdata","awT",@progbits
14505 addi 3,31,ld0@got@tlsgd
14507 addi 3,31,x1@got@tlsld
14510 addis 9,3,x2@dtprel@ha
14511 addi 9,9,x2@dtprel@l
14512 lwz 9,x3@got@tprel(31)
14515 addis 9,2,x2@tprel@ha
14516 addi 9,9,x2@tprel@l'
14519 tls_as_opt="-a32 --fatal-warnings"
14523 .section ".tdata","awT",@progbits
14531 addi 3,2,ld0@got@tlsgd
14537 addi 3,2,x1@got@tlsld
14543 addis 9,3,x2@dtprel@ha
14544 addi 9,9,x2@dtprel@l
14547 ld 9,x3@got@dtprel(2)
14553 tls_as_opt="-a64 --fatal-warnings"
14557 .section ".tdata","awT",@progbits
14564 .long foo@GOTNTPOFF
14565 .long foo@INDNTPOFF
14566 l %r1,foo@GOTNTPOFF(%r12)
14567 l %r1,0(%r1):tls_load:foo
14568 bas %r14,0(%r1,%r13):tls_gdcall:foo
14569 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14572 tls_as_opt="-m31 --fatal-warnings"
14576 .section ".tdata","awT",@progbits
14583 .quad foo@GOTNTPOFF
14584 lg %r1,foo@GOTNTPOFF(%r12)
14585 larl %r1,foo@INDNTPOFF
14586 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14587 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14590 tls_as_opt="-m64 -Aesame --fatal-warnings"
14592 sh-*-* | sh[34]-*-*)
14594 .section ".tdata","awT",@progbits
14604 tls_as_opt=--fatal-warnings
14608 sparc*-sun-solaris2.*)
14615 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14617 .section ".tdata",#alloc,#write,#tls
14620 sethi %tgd_hi22(foo), %o0
14621 add %o0, %tgd_lo10(foo), %o1
14622 add %l7, %o1, %o0, %tgd_add(foo)
14623 call __tls_get_addr, %tgd_call(foo)
14624 sethi %tldm_hi22(foo), %l1
14625 add %l1, %tldm_lo10(foo), %l2
14626 add %l7, %l2, %o0, %tldm_add(foo)
14627 call __tls_get_addr, %tldm_call(foo)
14628 sethi %tldo_hix22(foo), %l3
14629 xor %l3, %tldo_lox10(foo), %l4
14630 add %o0, %l4, %l5, %tldo_add(foo)
14631 sethi %tie_hi22(foo), %o3
14632 add %o3, %tie_lo10(foo), %o3
14633 ld [%l7 + %o3], %o2, %tie_ld(foo)
14634 add %g7, %o2, %o4, %tie_add(foo)
14635 sethi %tle_hix22(foo), %l1
14636 xor %l1, %tle_lox10(foo), %o5
14637 ld [%g7 + %o5], %o1'
14642 .section ".tdata","awT",@progbits
14645 sethi %tgd_hi22(foo), %o0
14646 add %o0, %tgd_lo10(foo), %o1
14647 add %l7, %o1, %o0, %tgd_add(foo)
14648 call __tls_get_addr, %tgd_call(foo)
14649 sethi %tldm_hi22(foo), %l1
14650 add %l1, %tldm_lo10(foo), %l2
14651 add %l7, %l2, %o0, %tldm_add(foo)
14652 call __tls_get_addr, %tldm_call(foo)
14653 sethi %tldo_hix22(foo), %l3
14654 xor %l3, %tldo_lox10(foo), %l4
14655 add %o0, %l4, %l5, %tldo_add(foo)
14656 sethi %tie_hi22(foo), %o3
14657 add %o3, %tie_lo10(foo), %o3
14658 ld [%l7 + %o3], %o2, %tie_ld(foo)
14659 add %g7, %o2, %o4, %tie_add(foo)
14660 sethi %tle_hix22(foo), %l1
14661 xor %l1, %tle_lox10(foo), %o5
14662 ld [%g7 + %o5], %o1'
14665 tls_as_opt="-32 --fatal-warnings"
14669 if test -z "$tls_first_major"; then
14670 : # If we don't have a check, assume no support.
14672 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14673 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14674 if test "${gcc_cv_as_tls+set}" = set; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 if test $in_tree_gas = yes; then
14679 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14680 then gcc_cv_as_tls=yes
14682 elif test x$gcc_cv_as != x; then
14683 echo "$conftest_s" > conftest.s
14684 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; }
14693 echo "configure: failed program was" >&5
14696 rm -f conftest.o conftest.s
14699 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14700 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14701 if test $gcc_cv_as_tls = yes; then
14703 cat >>confdefs.h <<\_ACEOF
14704 #define HAVE_AS_TLS 1
14710 # Target-specific assembler checks.
14712 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14713 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14714 gcc_cv_ld_static_dynamic=no
14715 if test $in_tree_ld = yes ; then
14716 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14717 gcc_cv_ld_static_dynamic=yes
14719 elif test x$gcc_cv_ld != x; then
14720 # Check if linker supports -Bstatic/-Bdynamic option
14721 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14722 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14723 gcc_cv_ld_static_dynamic=yes
14726 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14728 cat >>confdefs.h <<\_ACEOF
14729 #define HAVE_LD_STATIC_DYNAMIC 1
14733 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14734 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14736 if test x"$demangler_in_ld" = xyes; then
14737 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14738 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14739 gcc_cv_ld_demangle=no
14740 if test $in_tree_ld = yes; then
14741 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
14742 gcc_cv_ld_demangle=yes
14744 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14745 # Check if the GNU linker supports --demangle option
14746 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14747 gcc_cv_ld_demangle=yes
14750 if test x"$gcc_cv_ld_demangle" = xyes; then
14752 cat >>confdefs.h <<\_ACEOF
14753 #define HAVE_LD_DEMANGLE 1
14757 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14758 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14762 # All TARGET_ABI_OSF targets.
14763 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14764 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14765 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14766 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 gcc_cv_as_alpha_explicit_relocs=no
14770 if test $in_tree_gas = yes; then
14771 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14772 then gcc_cv_as_alpha_explicit_relocs=yes
14774 elif test x$gcc_cv_as != x; then
14775 echo ' .set nomacro
14777 extbl $3, $2, $3 !lituse_bytoff!1
14778 ldq $2, a($29) !literal!1
14779 ldq $4, b($29) !literal!2
14780 ldq_u $3, 0($2) !lituse_base!1
14781 ldq $27, f($29) !literal!5
14782 jsr $26, ($27), f !lituse_jsr!5
14783 ldah $29, 0($26) !gpdisp!3
14784 lda $0, c($29) !gprel
14785 ldah $1, d($29) !gprelhigh
14786 lda $1, d($1) !gprellow
14787 lda $29, 0($29) !gpdisp!3' > conftest.s
14788 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }
14795 gcc_cv_as_alpha_explicit_relocs=yes
14797 echo "configure: failed program was" >&5
14800 rm -f conftest.o conftest.s
14803 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14804 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14805 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14807 cat >>confdefs.h <<\_ACEOF
14808 #define HAVE_AS_EXPLICIT_RELOCS 1
14812 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14813 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14814 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14817 gcc_cv_as_alpha_jsrdirect_relocs=no
14818 if test $in_tree_gas = yes; then
14819 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14820 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14822 elif test x$gcc_cv_as != x; then
14823 echo ' .set nomacro
14825 ldq $27, a($29) !literal!1
14826 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14827 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }
14834 gcc_cv_as_alpha_jsrdirect_relocs=yes
14836 echo "configure: failed program was" >&5
14839 rm -f conftest.o conftest.s
14842 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14843 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14844 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14846 cat >>confdefs.h <<\_ACEOF
14847 #define HAVE_AS_JSRDIRECT_RELOCS 1
14854 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14855 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14856 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14859 gcc_cv_as_cris_no_mul_bug=no
14860 if test $in_tree_gas = yes; then
14861 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14862 then gcc_cv_as_cris_no_mul_bug=yes
14864 elif test x$gcc_cv_as != x; then
14865 echo '.text' > conftest.s
14866 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }
14873 gcc_cv_as_cris_no_mul_bug=yes
14875 echo "configure: failed program was" >&5
14878 rm -f conftest.o conftest.s
14881 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14882 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14883 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14885 cat >>confdefs.h <<\_ACEOF
14886 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14893 echo "$as_me:$LINENO: checking assembler for .register" >&5
14894 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14895 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14898 gcc_cv_as_sparc_register_op=no
14899 if test x$gcc_cv_as != x; then
14900 echo '.register %g2, #scratch' > conftest.s
14901 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }
14908 gcc_cv_as_sparc_register_op=yes
14910 echo "configure: failed program was" >&5
14913 rm -f conftest.o conftest.s
14916 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14917 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14918 if test $gcc_cv_as_sparc_register_op = yes; then
14920 cat >>confdefs.h <<\_ACEOF
14921 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14926 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14927 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14928 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14931 gcc_cv_as_sparc_relax=no
14932 if test x$gcc_cv_as != x; then
14933 echo '.text' > conftest.s
14934 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }
14941 gcc_cv_as_sparc_relax=yes
14943 echo "configure: failed program was" >&5
14946 rm -f conftest.o conftest.s
14949 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14950 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14951 if test $gcc_cv_as_sparc_relax = yes; then
14953 cat >>confdefs.h <<\_ACEOF
14954 #define HAVE_AS_RELAX_OPTION 1
14959 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14960 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14961 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14962 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 gcc_cv_as_sparc_ua_pcrel=no
14965 if test x$gcc_cv_as != x; then
14972 .uaword %r_disp32(foo)' > conftest.s
14973 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; }
14980 if test x$gcc_cv_ld != x \
14981 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14982 gcc_cv_as_sparc_ua_pcrel=yes
14986 echo "configure: failed program was" >&5
14989 rm -f conftest.o conftest.s
14992 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14993 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14994 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14996 cat >>confdefs.h <<\_ACEOF
14997 #define HAVE_AS_SPARC_UA_PCREL 1
15001 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15002 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15003 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 gcc_cv_as_sparc_ua_pcrel_hidden=no
15007 if test x$gcc_cv_as != x; then
15011 .uaword %r_disp32(foo)
15012 .byte 0x32, 0x33, 0x34
15016 .skip 4' > conftest.s
15017 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; }
15024 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15025 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15026 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15027 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15028 if $gcc_cv_objdump -R conftest 2> /dev/null \
15029 | grep 'DISP32' > /dev/null 2>&1; then
15032 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15037 echo "configure: failed program was" >&5
15040 rm -f conftest.o conftest.s
15043 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15044 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15045 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15047 cat >>confdefs.h <<\_ACEOF
15048 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15053 fi # unaligned pcrel relocs
15055 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15056 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15057 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15060 gcc_cv_as_sparc_offsetable_lo10=no
15061 if test x$gcc_cv_as != x; then
15063 or %g1, %lo(ab) + 12, %g1
15064 or %g1, %lo(ab + 12), %g1' > conftest.s
15065 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }
15072 if test x$gcc_cv_objdump != x \
15073 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15074 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15075 gcc_cv_as_sparc_offsetable_lo10=yes
15078 echo "configure: failed program was" >&5
15081 rm -f conftest.o conftest.s
15084 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15085 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15086 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15088 cat >>confdefs.h <<\_ACEOF
15089 #define HAVE_AS_OFFSETABLE_LO10 1
15095 i[34567]86-*-* | x86_64-*-*)
15097 cygwin* | pe | mingw32*)
15098 # Used for DWARF 2 in PE
15099 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15100 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15101 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15102 echo $ECHO_N "(cached) $ECHO_C" >&6
15104 gcc_cv_as_ix86_pe_secrel32=no
15105 if test $in_tree_gas = yes; then
15106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15107 then gcc_cv_as_ix86_pe_secrel32=yes
15109 elif test x$gcc_cv_as != x; then
15113 .secrel32 foo' > conftest.s
15114 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }
15121 if test x$gcc_cv_ld != x \
15122 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15123 gcc_cv_as_ix86_pe_secrel32=yes
15127 echo "configure: failed program was" >&5
15130 rm -f conftest.o conftest.s
15133 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15134 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15135 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15137 cat >>confdefs.h <<\_ACEOF
15138 #define HAVE_GAS_PE_SECREL32_RELOC 1
15145 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15146 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15147 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15150 gcc_cv_as_ix86_filds_fists=no
15151 if test $in_tree_gas = yes; then
15152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15153 then gcc_cv_as_ix86_filds_fists=yes
15155 elif test x$gcc_cv_as != x; then
15156 echo 'filds mem; fists mem' > conftest.s
15157 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }
15164 gcc_cv_as_ix86_filds_fists=yes
15166 echo "configure: failed program was" >&5
15169 rm -f conftest.o conftest.s
15172 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15173 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15174 if test $gcc_cv_as_ix86_filds_fists = yes; then
15176 cat >>confdefs.h <<\_ACEOF
15177 #define HAVE_GAS_FILDS_FISTS 1
15182 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15183 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15184 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 gcc_cv_as_ix86_cmov_sun_syntax=no
15188 if test x$gcc_cv_as != x; then
15189 echo 'cmovl.l %edx, %eax' > conftest.s
15190 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }
15197 gcc_cv_as_ix86_cmov_sun_syntax=yes
15199 echo "configure: failed program was" >&5
15202 rm -f conftest.o conftest.s
15205 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15206 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15207 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15209 cat >>confdefs.h <<\_ACEOF
15210 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15215 # This one is used unconditionally by i386.[ch]; it is to be defined
15216 # to 1 if the feature is present, 0 otherwise.
15217 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15218 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15219 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15222 gcc_cv_as_ix86_gotoff_in_data=no
15223 if test $in_tree_gas = yes; then
15224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15225 then gcc_cv_as_ix86_gotoff_in_data=yes
15227 elif test x$gcc_cv_as != x; then
15232 .long .L0@GOTOFF' > conftest.s
15233 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15235 (eval $ac_try) 2>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; }
15240 gcc_cv_as_ix86_gotoff_in_data=yes
15242 echo "configure: failed program was" >&5
15245 rm -f conftest.o conftest.s
15248 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15249 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15252 cat >>confdefs.h <<_ACEOF
15253 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15259 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15260 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15261 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15262 echo $ECHO_N "(cached) $ECHO_C" >&6
15264 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15265 if test $in_tree_gas = yes; then
15266 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15267 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15269 elif test x$gcc_cv_as != x; then
15271 addl r15 = @ltoffx(x#), gp
15273 ld8.mov r16 = [r15], x#' > conftest.s
15274 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }
15281 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15283 echo "configure: failed program was" >&5
15286 rm -f conftest.o conftest.s
15289 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15290 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15291 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15293 cat >>confdefs.h <<\_ACEOF
15294 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15303 *-*-aix*) conftest_s=' .machine "pwr5"
15307 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15308 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15309 if test "${gcc_cv_as_machine_directive+set}" = set; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 gcc_cv_as_machine_directive=no
15313 if test x$gcc_cv_as != x; then
15314 echo ' .machine ppc7400' > conftest.s
15315 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; }
15322 gcc_cv_as_machine_directive=yes
15324 echo "configure: failed program was" >&5
15327 rm -f conftest.o conftest.s
15330 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15331 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15333 if test x$gcc_cv_as_machine_directive != xyes; then
15334 echo "*** This target requires an assembler supporting \".machine\"" >&2
15335 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15336 test x$build = x$target && exit 1
15340 *) conftest_s=' .machine power4
15345 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15346 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15347 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15350 gcc_cv_as_powerpc_mfcrf=no
15351 if test $in_tree_gas = yes; then
15352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15353 then gcc_cv_as_powerpc_mfcrf=yes
15355 elif test x$gcc_cv_as != x; then
15356 echo "$conftest_s" > conftest.s
15357 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15359 (eval $ac_try) 2>&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); }; }
15364 gcc_cv_as_powerpc_mfcrf=yes
15366 echo "configure: failed program was" >&5
15369 rm -f conftest.o conftest.s
15372 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15373 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15374 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15376 cat >>confdefs.h <<\_ACEOF
15377 #define HAVE_AS_MFCRF 1
15383 *-*-aix*) conftest_s=' .machine "pwr5"
15386 *) conftest_s=' .machine power5
15391 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15392 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15393 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15396 gcc_cv_as_powerpc_popcntb=no
15397 if test $in_tree_gas = yes; then
15398 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15399 then gcc_cv_as_powerpc_popcntb=yes
15401 elif test x$gcc_cv_as != x; then
15402 echo "$conftest_s" > conftest.s
15403 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }
15410 gcc_cv_as_powerpc_popcntb=yes
15412 echo "configure: failed program was" >&5
15415 rm -f conftest.o conftest.s
15418 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15419 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15420 if test $gcc_cv_as_powerpc_popcntb = yes; then
15422 cat >>confdefs.h <<\_ACEOF
15423 #define HAVE_AS_POPCNTB 1
15429 *-*-aix*) conftest_s=' .csect .text[PR]
15431 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15435 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15436 *) conftest_s=' .text
15438 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15441 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15442 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15443 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 gcc_cv_as_powerpc_rel16=no
15447 if test $in_tree_gas = yes; then
15448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15449 then gcc_cv_as_powerpc_rel16=yes
15451 elif test x$gcc_cv_as != x; then
15452 echo "$conftest_s" > conftest.s
15453 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }
15460 gcc_cv_as_powerpc_rel16=yes
15462 echo "configure: failed program was" >&5
15465 rm -f conftest.o conftest.s
15468 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15469 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15470 if test $gcc_cv_as_powerpc_rel16 = yes; then
15472 cat >>confdefs.h <<\_ACEOF
15473 #define HAVE_AS_REL16 1
15480 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15481 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15482 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 gcc_cv_as_mips_explicit_relocs=no
15486 if test $in_tree_gas = yes; then
15487 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15488 then gcc_cv_as_mips_explicit_relocs=yes
15490 elif test x$gcc_cv_as != x; then
15491 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15492 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }
15499 gcc_cv_as_mips_explicit_relocs=yes
15501 echo "configure: failed program was" >&5
15504 rm -f conftest.o conftest.s
15507 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15508 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15509 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15510 if test x$target_cpu_default = x
15511 then target_cpu_default=MASK_EXPLICIT_RELOCS
15512 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15516 if test x$gas_flag = xyes \
15517 || test x"$host" != x"$build" \
15518 || test ! -x "$gcc_cv_as" \
15519 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15522 echo "*** This configuration requires the GNU assembler" >&2
15527 # ??? Not all targets support dwarf2 debug_line, even within a version
15528 # of gas. Moreover, we need to emit a valid instruction to trigger any
15529 # info to the output file. So, as supported targets are added to gas 2.11,
15530 # add some instruction here to (also) show we expect this might work.
15531 # ??? Once 2.11 is released, probably need to add first known working
15532 # version to the per-target configury.
15534 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15535 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15536 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
15539 ia64*-*-* | s390*-*-*)
15546 if test x"$insn" != x; then
15548 .file 1 \"conftest.s\"
15551 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15552 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15553 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15556 gcc_cv_as_dwarf2_debug_line=no
15557 if test $in_tree_gas = yes; then
15558 if test $in_tree_gas_is_elf = yes \
15559 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15560 then gcc_cv_as_dwarf2_debug_line=yes
15562 elif test x$gcc_cv_as != x; then
15563 echo "$conftest_s" > conftest.s
15564 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }
15571 if test x$gcc_cv_objdump != x \
15572 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15573 | grep debug_line > /dev/null 2>&1; then
15574 gcc_cv_as_dwarf2_debug_line=yes
15577 echo "configure: failed program was" >&5
15580 rm -f conftest.o conftest.s
15583 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15584 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15587 # The .debug_line file table must be in the exact order that
15588 # we specified the files, since these indices are also used
15589 # by DW_AT_decl_file. Approximate this test by testing if
15590 # the assembler bitches if the same index is assigned twice.
15591 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15592 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15593 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15596 gcc_cv_as_dwarf2_file_buggy=no
15597 if test x$gcc_cv_as != x; then
15598 echo ' .file 1 "foo.s"
15599 .file 1 "bar.s"' > conftest.s
15600 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15602 (eval $ac_try) 2>&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); }; }
15607 gcc_cv_as_dwarf2_file_buggy=yes
15609 echo "configure: failed program was" >&5
15612 rm -f conftest.o conftest.s
15615 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15616 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15619 if test $gcc_cv_as_dwarf2_debug_line = yes \
15620 && test $gcc_cv_as_dwarf2_file_buggy = no; then
15622 cat >>confdefs.h <<\_ACEOF
15623 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15628 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15629 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15630 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15633 gcc_cv_as_gdwarf2_flag=no
15634 if test $in_tree_gas = yes; then
15635 if test $in_tree_gas_is_elf = yes \
15636 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15637 then gcc_cv_as_gdwarf2_flag=yes
15639 elif test x$gcc_cv_as != x; then
15640 echo "$insn" > conftest.s
15641 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }
15648 gcc_cv_as_gdwarf2_flag=yes
15650 echo "configure: failed program was" >&5
15653 rm -f conftest.o conftest.s
15656 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15657 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15658 if test $gcc_cv_as_gdwarf2_flag = yes; then
15660 cat >>confdefs.h <<\_ACEOF
15661 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15666 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15667 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15668 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15669 echo $ECHO_N "(cached) $ECHO_C" >&6
15671 gcc_cv_as_gstabs_flag=no
15672 if test $in_tree_gas = yes; then
15673 if test $in_tree_gas_is_elf = yes \
15674 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15675 then gcc_cv_as_gstabs_flag=yes
15677 elif test x$gcc_cv_as != x; then
15678 echo "$insn" > conftest.s
15679 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }
15686 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15687 # and warns about it, but still exits successfully. So check for
15689 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }
15696 else gcc_cv_as_gstabs_flag=yes
15699 echo "configure: failed program was" >&5
15702 rm -f conftest.o conftest.s
15705 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15706 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15707 if test $gcc_cv_as_gstabs_flag = yes; then
15709 cat >>confdefs.h <<\_ACEOF
15710 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15716 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15717 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15718 gcc_cv_ld_ro_rw_mix=unknown
15719 if test $in_tree_ld = yes ; then
15720 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 \
15721 && test $in_tree_ld_is_elf = yes; then
15722 gcc_cv_ld_ro_rw_mix=read-write
15724 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15725 echo '.section myfoosect, "a"' > conftest1.s
15726 echo '.section myfoosect, "aw"' > conftest2.s
15727 echo '.byte 1' >> conftest2.s
15728 echo '.section myfoosect, "a"' > conftest3.s
15729 echo '.byte 0' >> conftest3.s
15730 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15731 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15732 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15733 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15734 conftest2.o conftest3.o > /dev/null 2>&1; then
15735 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15736 | sed -e '/myfoosect/!d' -e N`
15737 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15738 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15739 gcc_cv_ld_ro_rw_mix=read-only
15741 gcc_cv_ld_ro_rw_mix=read-write
15745 rm -f conftest.* conftest[123].*
15747 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15749 cat >>confdefs.h <<\_ACEOF
15750 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15754 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15755 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15757 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15758 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15759 gcc_cv_ld_eh_frame_hdr=no
15760 if test $in_tree_ld = yes ; then
15761 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 \
15762 && test $in_tree_ld_is_elf = yes; then
15763 gcc_cv_ld_eh_frame_hdr=yes
15765 elif test x$gcc_cv_ld != x; then
15766 # Check if linker supports --eh-frame-hdr option
15767 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15768 gcc_cv_ld_eh_frame_hdr=yes
15772 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15774 cat >>confdefs.h <<\_ACEOF
15775 #define HAVE_LD_EH_FRAME_HDR 1
15779 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15780 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15782 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15783 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15785 if test $in_tree_ld = yes ; then
15786 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 \
15787 && test $in_tree_ld_is_elf = yes; then
15790 elif test x$gcc_cv_ld != x; then
15791 # Check if linker supports -pie option
15792 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15796 if test x"$gcc_cv_ld_pie" = xyes; then
15798 cat >>confdefs.h <<\_ACEOF
15799 #define HAVE_LD_PIE 1
15803 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15804 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15810 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15811 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15812 if test "${gcc_cv_ld_as_needed+set}" = set; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 gcc_cv_ld_as_needed=no
15816 if test $in_tree_ld = yes ; then
15817 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
15818 && test $in_tree_ld_is_elf = yes; then
15819 gcc_cv_ld_as_needed=yes
15821 elif test x$gcc_cv_ld != x; then
15822 # Check if linker supports --as-needed and --no-as-needed options
15823 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15824 gcc_cv_ld_as_needed=yes
15829 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15830 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15831 if test x"$gcc_cv_ld_as_needed" = xyes; then
15833 cat >>confdefs.h <<\_ACEOF
15834 #define HAVE_LD_AS_NEEDED 1
15839 case "$target:$tm_file" in
15840 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
15841 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15842 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15843 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15846 gcc_cv_ld_no_dot_syms=no
15847 if test $in_tree_ld = yes ; then
15848 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
15849 gcc_cv_ld_no_dot_syms=yes
15851 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15852 cat > conftest1.s <<EOF
15856 cat > conftest2.s <<EOF
15857 .section ".opd","aw"
15860 .type foo,@function
15862 .quad .LEfoo,.TOC.@tocbase,0
15868 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15869 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15870 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15871 gcc_cv_ld_no_dot_syms=yes
15873 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15877 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15878 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15879 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15881 cat >>confdefs.h <<\_ACEOF
15882 #define HAVE_LD_NO_DOT_SYMS 1
15889 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15890 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15891 if test "${gcc_cv_ld_sysroot+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 gcc_cv_ld_sysroot=no
15895 if test $in_tree_ld = yes ; then
15896 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
15897 gcc_cv_ld_sysroot=yes
15899 elif test x$gcc_cv_ld != x; then
15900 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15901 gcc_cv_ld_sysroot=yes
15905 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15906 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15907 if test x"$gcc_cv_ld_sysroot" = xyes; then
15909 cat >>confdefs.h <<\_ACEOF
15910 #define HAVE_LD_SYSROOT 1
15915 if test x$with_sysroot = x && test x$host = x$target \
15916 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15918 cat >>confdefs.h <<_ACEOF
15919 #define PREFIX_INCLUDE_DIR "$prefix/include"
15924 # Test for stack protector support in target C library.
15927 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15928 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15929 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 gcc_cv_libc_provides_ssp=no
15933 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
15934 if test "x$with_sysroot" = x; then
15935 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
15936 elif test "x$with_sysroot" = xyes; then
15937 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15939 glibc_header_dir="${with_sysroot}/usr/include"
15942 glibc_header_dir=/usr/include
15944 # glibc 2.4 and later provides __stack_chk_fail and
15945 # either __stack_chk_guard, or TLS access to stack guard canary.
15946 if test -f $glibc_header_dir/features.h \
15947 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
15948 $glibc_header_dir/features.h > /dev/null; then
15949 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
15950 $glibc_header_dir/features.h > /dev/null; then
15951 gcc_cv_libc_provides_ssp=yes
15952 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
15953 $glibc_header_dir/features.h > /dev/null \
15954 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
15955 $glibc_header_dir/features.h > /dev/null; then
15956 gcc_cv_libc_provides_ssp=yes
15960 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15961 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15962 *) gcc_cv_libc_provides_ssp=no ;;
15964 if test x$gcc_cv_libc_provides_ssp = xyes; then
15966 cat >>confdefs.h <<\_ACEOF
15967 #define TARGET_LIBC_PROVIDES_SSP 1
15972 # Find out what GC implementation we want, or may, use.
15974 # Check whether --with-gc or --without-gc was given.
15975 if test "${with_gc+set}" = set; then
15984 cat >>confdefs.h <<\_ACEOF
15990 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15991 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15992 { (exit 1); exit 1; }; }
15999 echo "Using $GGC for garbage collection."
16001 # Use the system's zlib library.
16003 zlibinc="-I\$(srcdir)/../zlib"
16005 # Check whether --with-system-zlib or --without-system-zlib was given.
16006 if test "${with_system_zlib+set}" = set; then
16007 withval="$with_system_zlib"
16016 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16017 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16018 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16019 if test "${enable_maintainer_mode+set}" = set; then
16020 enableval="$enable_maintainer_mode"
16021 maintainer_mode=$enableval
16026 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16027 echo "${ECHO_T}$maintainer_mode" >&6
16029 if test "$maintainer_mode" = "yes"; then
16039 # Make empty files to contain the specs and options for each language.
16040 # Then add #include lines to for a compiler that has specs and/or options.
16045 for subdir in . $subdirs
16047 if test -f $srcdir/$subdir/lang.opt; then
16048 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16050 if test -f $srcdir/$subdir/lang-specs.h; then
16051 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16053 if test -f $srcdir/$subdir/$subdir-tree.def; then
16054 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16058 # These (without "all_") are set in each config-lang.in.
16059 # `language' must be a single word so is spelled singularly.
16061 all_boot_languages=
16064 all_outputs='Makefile gccbug mklibgcc libada-mk'
16065 # List of language makefile fragments.
16066 all_lang_makefrags=
16067 # List of language subdirectory makefiles. Deprecated.
16068 all_lang_makefiles=
16069 # Files for gengtype
16070 all_gtfiles="$target_gtfiles"
16071 # Files for gengtype with language
16072 all_gtfiles_files_langs=
16073 all_gtfiles_files_files=
16075 # Add the language fragments.
16076 # Languages are added via two mechanisms. Some information must be
16077 # recorded in makefile variables, these are defined in config-lang.in.
16078 # We accumulate them and plug them into the main Makefile.
16079 # The other mechanism is a set of hooks for each of the main targets
16080 # like `clean', `install', etc.
16082 language_hooks="Make-hooks"
16092 . ${srcdir}/$s/config-lang.in
16093 if test "x$language" = x
16095 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
16098 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
16099 if test -f ${srcdir}/$s/Makefile.in
16100 then all_lang_makefiles="$s/Makefile"
16102 all_languages="$all_languages $language"
16103 if test "x$boot_language" = xyes
16105 all_boot_languages="$all_boot_languages $language"
16107 all_compilers="$all_compilers $compilers"
16108 all_stagestuff="$all_stagestuff $stagestuff"
16109 all_outputs="$all_outputs $outputs"
16110 all_gtfiles="$all_gtfiles $gtfiles"
16113 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
16114 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16118 # Pick up gtfiles for c
16121 . ${srcdir}/c-config-lang.in
16122 all_gtfiles="$all_gtfiles $gtfiles"
16125 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
16126 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16130 for language in $all_languages
16132 check_languages="$check_languages check-$language"
16135 # We link each language in with a set of hooks, reached indirectly via
16140 target_list="all.build all.cross start.encap rest.encap tags \
16141 install-normal install-common install-man \
16142 uninstall info man srcextra srcman srcinfo \
16143 mostlyclean clean distclean maintainer-clean \
16144 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16145 for t in $target_list
16148 for lang in $all_languages
16152 echo "lang.$t: $x" >> Make-hooks
16161 echo "dir ." > .gdbinit
16162 echo "dir ${srcdir}" >> .gdbinit
16163 if test x$gdb_needs_out_file_path = xyes
16165 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16167 if test "x$subdirs" != x; then
16170 echo "dir ${srcdir}/$s" >> .gdbinit
16173 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16175 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16176 # absolute path for gcc_tooldir based on inserting the number of up-directory
16177 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16178 # $(libsubdir)/@(unlibsubdir) based path.
16179 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16180 # make and thus we'd get different behavior depending on where we built the
16182 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
16183 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16185 # An explanation of the sed strings:
16186 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16187 # -e 's|/$||' match a trailing forward slash and eliminates it
16188 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16189 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16191 # (*) Note this pattern overwrites the first character of the string
16192 # with a forward slash if one is not already present. This is not a
16193 # problem because the exact names of the sub-directories concerned is
16194 # unimportant, just the number of them matters.
16196 # The practical upshot of these patterns is like this:
16198 # prefix exec_prefix result
16199 # ------ ----------- ------
16200 # /foo /foo/bar ../
16201 # /foo/ /foo/bar ../
16202 # /foo /foo/bar/ ../
16203 # /foo/ /foo/bar/ ../
16204 # /foo /foo/bar/ugg ../../
16207 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16212 # Find a directory in which to install a shared libgcc.
16214 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16215 if test "${enable_version_specific_runtime_libs+set}" = set; then
16216 enableval="$enable_version_specific_runtime_libs"
16221 # Check whether --with-slibdir or --without-slibdir was given.
16222 if test "${with_slibdir+set}" = set; then
16223 withval="$with_slibdir"
16224 slibdir="$with_slibdir"
16226 if test "${enable_version_specific_runtime_libs+set}" = set; then
16227 slibdir='$(libsubdir)'
16228 elif test "$host" != "$target"; then
16229 slibdir='$(build_tooldir)/lib'
16231 slibdir='$(libdir)'
16236 objdir=`${PWDCMD-pwd}`
16239 # Substitute configuration variables
16304 if test x${build} = x${host} ; then
16305 if test x${host} = x${target} ; then
16306 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16308 echo "Links are now set up to build a cross-compiler" 1>&2
16309 echo " from ${host} to ${target}." 1>&2
16312 if test x${host} = x${target} ; then
16313 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16314 echo " for ${target}." 1>&2
16316 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16317 echo " from ${host} to ${target}." 1>&2
16324 # Configure the subdirectories
16325 # AC_CONFIG_SUBDIRS($subdirs)
16327 # Create the Makefile
16328 # and configure language subdirectories
16329 ac_config_files="$ac_config_files $all_outputs"
16332 ac_config_commands="$ac_config_commands default"
16334 cat >confcache <<\_ACEOF
16335 # This file is a shell script that caches the results of configure
16336 # tests run on this system so they can be shared between configure
16337 # scripts and configure runs, see configure's option --config-cache.
16338 # It is not useful on other systems. If it contains results you don't
16339 # want to keep, you may remove or edit it.
16341 # config.status only pays attention to the cache file if you give it
16342 # the --recheck option to rerun configure.
16344 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16345 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16346 # following values.
16350 # The following way of writing the cache mishandles newlines in values,
16351 # but we know of no workaround that is simple, portable, and efficient.
16352 # So, don't put newlines in cache variables' values.
16353 # Ultrix sh set writes to stderr and can't be redirected directly,
16354 # and sets the high bit in the cache file unless we assign to the vars.
16357 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16359 # `set' does not quote correctly, so add quotes (double-quote
16360 # substitution turns \\\\ into \\, and sed turns \\ into \).
16363 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16366 # `set' quotes correctly as required by POSIX, so do not add quotes.
16368 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16375 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16377 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16379 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16380 if test -w $cache_file; then
16381 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16382 cat confcache >$cache_file
16384 echo "not updating unwritable cache $cache_file"
16389 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16390 # Let make expand exec_prefix.
16391 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16393 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16394 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16395 # trailing colons and then remove the whole line if VPATH becomes empty
16396 # (actually we leave an empty line to preserve line numbers).
16397 if test "x$srcdir" = x.; then
16398 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16399 s/:*\$(srcdir):*/:/;
16400 s/:*\${srcdir}:*/:/;
16402 s/^\([^=]*=[ ]*\):*/\1/;
16408 DEFS=-DHAVE_CONFIG_H
16412 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16413 # 1. Remove the extension, and $U if already installed.
16414 ac_i=`echo "$ac_i" |
16415 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16417 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16418 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16420 LIBOBJS=$ac_libobjs
16422 LTLIBOBJS=$ac_ltlibobjs
16426 : ${CONFIG_STATUS=./config.status}
16427 ac_clean_files_save=$ac_clean_files
16428 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16429 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16430 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16431 cat >$CONFIG_STATUS <<_ACEOF
16433 # Generated by $as_me.
16434 # Run this file to recreate the current configuration.
16435 # Compiler output produced by configure, useful for debugging
16436 # configure, is in config.log if it exists.
16439 ac_cs_recheck=false
16441 SHELL=\${CONFIG_SHELL-$SHELL}
16444 cat >>$CONFIG_STATUS <<\_ACEOF
16445 ## --------------------- ##
16446 ## M4sh Initialization. ##
16447 ## --------------------- ##
16449 # Be Bourne compatible
16450 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16453 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16454 # is contrary to our usage. Disable this feature.
16455 alias -g '${1+"$@"}'='"$@"'
16456 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16459 DUALCASE=1; export DUALCASE # for MKS sh
16461 # Support unset when possible.
16462 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16469 # Work around bugs in pre-3.0 UWIN ksh.
16470 $as_unset ENV MAIL MAILPATH
16477 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16478 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16479 LC_TELEPHONE LC_TIME
16481 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16482 eval $as_var=C; export $as_var
16488 # Required to use basename.
16489 if expr a : '\(a\)' >/dev/null 2>&1; then
16495 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16496 as_basename=basename
16502 # Name of the executable.
16503 as_me=`$as_basename "$0" ||
16504 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16505 X"$0" : 'X\(//\)$' \| \
16506 X"$0" : 'X\(/\)$' \| \
16507 . : '\(.\)' 2>/dev/null ||
16509 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16510 /^X\/\(\/\/\)$/{ s//\1/; q; }
16511 /^X\/\(\/\).*/{ s//\1/; q; }
16515 # PATH needs CR, and LINENO needs CR and PATH.
16516 # Avoid depending upon Character Ranges.
16517 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16518 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16519 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16520 as_cr_digits='0123456789'
16521 as_cr_alnum=$as_cr_Letters$as_cr_digits
16523 # The user is always right.
16524 if test "${PATH_SEPARATOR+set}" != set; then
16525 echo "#! /bin/sh" >conf$$.sh
16526 echo "exit 0" >>conf$$.sh
16528 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16537 as_lineno_1=$LINENO
16538 as_lineno_2=$LINENO
16539 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16540 test "x$as_lineno_1" != "x$as_lineno_2" &&
16541 test "x$as_lineno_3" = "x$as_lineno_2" || {
16542 # Find who we are. Look in the path if we contain no path at all
16545 *[\\/]* ) as_myself=$0 ;;
16546 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16547 for as_dir in $PATH
16550 test -z "$as_dir" && as_dir=.
16551 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16556 # We did not find ourselves, most probably we were run as `sh COMMAND'
16557 # in which case we are not to be found in the path.
16558 if test "x$as_myself" = x; then
16561 if test ! -f "$as_myself"; then
16562 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16563 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16564 { (exit 1); exit 1; }; }
16566 case $CONFIG_SHELL in
16568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16569 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16572 test -z "$as_dir" && as_dir=.
16573 for as_base in sh bash ksh sh5; do
16576 if ("$as_dir/$as_base" -c '
16577 as_lineno_1=$LINENO
16578 as_lineno_2=$LINENO
16579 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16580 test "x$as_lineno_1" != "x$as_lineno_2" &&
16581 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16582 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16583 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16584 CONFIG_SHELL=$as_dir/$as_base
16585 export CONFIG_SHELL
16586 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16594 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16595 # uniformly replaced by the line number. The first 'sed' inserts a
16596 # line-number line before each line; the second 'sed' does the real
16597 # work. The second script uses 'N' to pair each line-number line
16598 # with the numbered line, and appends trailing '-' during
16599 # substitution so that $LINENO is not a special case at line end.
16600 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16601 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16602 sed '=' <$as_myself |
16607 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16610 s,^['$as_cr_digits']*\n,,
16611 ' >$as_me.lineno &&
16612 chmod +x $as_me.lineno ||
16613 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16614 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16615 { (exit 1); exit 1; }; }
16617 # Don't try to exec as it changes $[0], causing all sort of problems
16618 # (the dirname of $[0] is not the place where we might find the
16619 # original and so on. Autoconf is especially sensible to this).
16621 # Exit status is that of the last command.
16626 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16627 *c*,-n*) ECHO_N= ECHO_C='
16629 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16630 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16633 if expr a : '\(a\)' >/dev/null 2>&1; then
16639 rm -f conf$$ conf$$.exe conf$$.file
16641 if ln -s conf$$.file conf$$ 2>/dev/null; then
16642 # We could just check for DJGPP; but this test a) works b) is more generic
16643 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16644 if test -f conf$$.exe; then
16645 # Don't use ln at all; we don't have any links
16650 elif ln conf$$.file conf$$ 2>/dev/null; then
16655 rm -f conf$$ conf$$.exe conf$$.file
16657 if mkdir -p . 2>/dev/null; then
16660 test -d ./-p && rmdir ./-p
16664 as_executable_p="test -f"
16666 # Sed expression to map a string onto a valid CPP name.
16667 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16669 # Sed expression to map a string onto a valid variable name.
16670 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16674 # We need space, tab and new line, in precisely that order.
16684 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16685 # report actual input values of CONFIG_FILES etc. instead of their
16686 # values after options handling. Logging --version etc. is OK.
16690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16691 ## Running $as_me. ##
16696 This file was extended by $as_me, which was
16697 generated by GNU Autoconf 2.59. Invocation command line was
16699 CONFIG_FILES = $CONFIG_FILES
16700 CONFIG_HEADERS = $CONFIG_HEADERS
16701 CONFIG_LINKS = $CONFIG_LINKS
16702 CONFIG_COMMANDS = $CONFIG_COMMANDS
16706 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16710 # Files that config.status was made for.
16711 if test -n "$ac_config_files"; then
16712 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16715 if test -n "$ac_config_headers"; then
16716 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16719 if test -n "$ac_config_links"; then
16720 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16723 if test -n "$ac_config_commands"; then
16724 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16727 cat >>$CONFIG_STATUS <<\_ACEOF
16730 \`$as_me' instantiates files from templates according to the
16731 current configuration.
16733 Usage: $0 [OPTIONS] [FILE]...
16735 -h, --help print this help, then exit
16736 -V, --version print version number, then exit
16737 -q, --quiet do not print progress messages
16738 -d, --debug don't remove temporary files
16739 --recheck update $as_me by reconfiguring in the same conditions
16740 --file=FILE[:TEMPLATE]
16741 instantiate the configuration file FILE
16742 --header=FILE[:TEMPLATE]
16743 instantiate the configuration header FILE
16745 Configuration files:
16748 Configuration headers:
16751 Configuration commands:
16754 Report bugs to <bug-autoconf@gnu.org>."
16757 cat >>$CONFIG_STATUS <<_ACEOF
16760 configured by $0, generated by GNU Autoconf 2.59,
16761 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16763 Copyright (C) 2003 Free Software Foundation, Inc.
16764 This config.status script is free software; the Free Software Foundation
16765 gives unlimited permission to copy, distribute and modify it."
16769 cat >>$CONFIG_STATUS <<\_ACEOF
16770 # If no file are specified by the user, then we need to provide default
16771 # value. By we need to know if files were specified by the user.
16777 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16778 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16786 *) # This is not an option, so the user has probably given explicit
16789 ac_need_defaults=false;;
16793 # Handling of the options.
16795 cat >>$CONFIG_STATUS <<\_ACEOF
16796 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16798 --version | --vers* | -V )
16799 echo "$ac_cs_version"; exit 0 ;;
16801 # Conflict between --help and --header
16802 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16803 Try \`$0 --help' for more information." >&5
16804 echo "$as_me: error: ambiguous option: $1
16805 Try \`$0 --help' for more information." >&2;}
16806 { (exit 1); exit 1; }; };;
16807 --help | --hel | -h )
16808 echo "$ac_cs_usage"; exit 0 ;;
16809 --debug | --d* | -d )
16811 --file | --fil | --fi | --f )
16813 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16814 ac_need_defaults=false;;
16815 --header | --heade | --head | --hea )
16817 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16818 ac_need_defaults=false;;
16819 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16820 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16823 # This is an error.
16824 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16825 Try \`$0 --help' for more information." >&5
16826 echo "$as_me: error: unrecognized option: $1
16827 Try \`$0 --help' for more information." >&2;}
16828 { (exit 1); exit 1; }; } ;;
16830 *) ac_config_targets="$ac_config_targets $1" ;;
16836 ac_configure_extra_args=
16838 if $ac_cs_silent; then
16840 ac_configure_extra_args="$ac_configure_extra_args --silent"
16844 cat >>$CONFIG_STATUS <<_ACEOF
16845 if \$ac_cs_recheck; then
16846 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16847 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16852 cat >>$CONFIG_STATUS <<_ACEOF
16854 # INIT-COMMANDS section.
16863 cat >>$CONFIG_STATUS <<\_ACEOF
16864 for ac_config_target in $ac_config_targets
16866 case "$ac_config_target" in
16867 # Handling of arguments.
16868 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
16869 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16870 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
16871 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16872 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16873 { (exit 1); exit 1; }; };;
16877 # If the user did not use the arguments to specify the items to instantiate,
16878 # then the envvar interface is used. Set only those that are not.
16879 # We use the long form for the default assignment because of an extremely
16880 # bizarre bug on SunOS 4.1.3.
16881 if $ac_need_defaults; then
16882 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16883 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16884 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16887 # Have a temporary directory for convenience. Make it in the build tree
16888 # simply because there is no reason to put it here, and in addition,
16889 # creating and moving files from /tmp can sometimes cause problems.
16890 # Create a temporary directory, and hook for its removal unless debugging.
16893 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16894 trap '{ (exit 1); exit 1; }' 1 2 13 15
16897 # Create a (secure) tmp directory for tmp files.
16900 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16901 test -n "$tmp" && test -d "$tmp"
16904 tmp=./confstat$$-$RANDOM
16905 (umask 077 && mkdir $tmp)
16908 echo "$me: cannot create a temporary directory in ." >&2
16909 { (exit 1); exit 1; }
16914 cat >>$CONFIG_STATUS <<_ACEOF
16917 # CONFIG_FILES section.
16920 # No need to generate the scripts if there are no CONFIG_FILES.
16921 # This happens for instance when ./config.status config.h
16922 if test -n "\$CONFIG_FILES"; then
16923 # Protect against being on the right side of a sed subst in config.status.
16924 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16925 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16926 s,@SHELL@,$SHELL,;t t
16927 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16928 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16929 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16930 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16931 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16932 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16933 s,@exec_prefix@,$exec_prefix,;t t
16934 s,@prefix@,$prefix,;t t
16935 s,@program_transform_name@,$program_transform_name,;t t
16936 s,@bindir@,$bindir,;t t
16937 s,@sbindir@,$sbindir,;t t
16938 s,@libexecdir@,$libexecdir,;t t
16939 s,@datadir@,$datadir,;t t
16940 s,@sysconfdir@,$sysconfdir,;t t
16941 s,@sharedstatedir@,$sharedstatedir,;t t
16942 s,@localstatedir@,$localstatedir,;t t
16943 s,@libdir@,$libdir,;t t
16944 s,@includedir@,$includedir,;t t
16945 s,@oldincludedir@,$oldincludedir,;t t
16946 s,@infodir@,$infodir,;t t
16947 s,@mandir@,$mandir,;t t
16948 s,@build_alias@,$build_alias,;t t
16949 s,@host_alias@,$host_alias,;t t
16950 s,@target_alias@,$target_alias,;t t
16951 s,@DEFS@,$DEFS,;t t
16952 s,@ECHO_C@,$ECHO_C,;t t
16953 s,@ECHO_N@,$ECHO_N,;t t
16954 s,@ECHO_T@,$ECHO_T,;t t
16955 s,@LIBS@,$LIBS,;t t
16956 s,@build@,$build,;t t
16957 s,@build_cpu@,$build_cpu,;t t
16958 s,@build_vendor@,$build_vendor,;t t
16959 s,@build_os@,$build_os,;t t
16960 s,@host@,$host,;t t
16961 s,@host_cpu@,$host_cpu,;t t
16962 s,@host_vendor@,$host_vendor,;t t
16963 s,@host_os@,$host_os,;t t
16964 s,@target@,$target,;t t
16965 s,@target_cpu@,$target_cpu,;t t
16966 s,@target_vendor@,$target_vendor,;t t
16967 s,@target_os@,$target_os,;t t
16968 s,@target_noncanonical@,$target_noncanonical,;t t
16969 s,@build_subdir@,$build_subdir,;t t
16970 s,@host_subdir@,$host_subdir,;t t
16971 s,@target_subdir@,$target_subdir,;t t
16972 s,@GENINSRC@,$GENINSRC,;t t
16974 s,@CFLAGS@,$CFLAGS,;t t
16975 s,@LDFLAGS@,$LDFLAGS,;t t
16976 s,@CPPFLAGS@,$CPPFLAGS,;t t
16977 s,@ac_ct_CC@,$ac_ct_CC,;t t
16978 s,@EXEEXT@,$EXEEXT,;t t
16979 s,@OBJEXT@,$OBJEXT,;t t
16980 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16981 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16983 s,@EGREP@,$EGREP,;t t
16984 s,@strict1_warn@,$strict1_warn,;t t
16985 s,@warn_cflags@,$warn_cflags,;t t
16986 s,@WERROR@,$WERROR,;t t
16987 s,@nocommon_flag@,$nocommon_flag,;t t
16988 s,@TREEBROWSER@,$TREEBROWSER,;t t
16989 s,@valgrind_path@,$valgrind_path,;t t
16990 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16991 s,@valgrind_command@,$valgrind_command,;t t
16992 s,@coverage_flags@,$coverage_flags,;t t
16993 s,@enable_multilib@,$enable_multilib,;t t
16994 s,@enable_shared@,$enable_shared,;t t
16995 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16996 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16997 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16998 s,@onestep@,$onestep,;t t
16999 s,@SET_MAKE@,$SET_MAKE,;t t
17001 s,@LN_S@,$LN_S,;t t
17003 s,@RANLIB@,$RANLIB,;t t
17004 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17005 s,@ranlib_flags@,$ranlib_flags,;t t
17006 s,@INSTALL@,$INSTALL,;t t
17007 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17008 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17009 s,@make_compare_target@,$make_compare_target,;t t
17010 s,@have_mktemp_command@,$have_mktemp_command,;t t
17011 s,@MAKEINFO@,$MAKEINFO,;t t
17012 s,@BUILD_INFO@,$BUILD_INFO,;t t
17013 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17014 s,@FLEX@,$FLEX,;t t
17015 s,@BISON@,$BISON,;t t
17018 s,@stage1_cflags@,$stage1_cflags,;t t
17019 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17020 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17021 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17022 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17023 s,@LIBICONV@,$LIBICONV,;t t
17024 s,@LTLIBICONV@,$LTLIBICONV,;t t
17025 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17026 s,@manext@,$manext,;t t
17027 s,@objext@,$objext,;t t
17028 s,@gthread_flags@,$gthread_flags,;t t
17029 s,@extra_modes_file@,$extra_modes_file,;t t
17030 s,@extra_opt_files@,$extra_opt_files,;t t
17031 s,@USE_NLS@,$USE_NLS,;t t
17032 s,@LIBINTL@,$LIBINTL,;t t
17033 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17034 s,@INCINTL@,$INCINTL,;t t
17035 s,@XGETTEXT@,$XGETTEXT,;t t
17036 s,@GMSGFMT@,$GMSGFMT,;t t
17037 s,@POSUB@,$POSUB,;t t
17038 s,@CATALOGS@,$CATALOGS,;t t
17039 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17040 s,@CROSS@,$CROSS,;t t
17042 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17043 s,@inhibit_libc@,$inhibit_libc,;t t
17044 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17045 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17046 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17047 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17048 s,@collect2@,$collect2,;t t
17049 s,@gcc_cv_as@,$gcc_cv_as,;t t
17050 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17051 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17052 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17053 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17054 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17055 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17056 s,@ORIGINAL_OBJDUMP_FOR_TARGET@,$ORIGINAL_OBJDUMP_FOR_TARGET,;t t
17057 s,@libgcc_visibility@,$libgcc_visibility,;t t
17059 s,@zlibdir@,$zlibdir,;t t
17060 s,@zlibinc@,$zlibinc,;t t
17061 s,@MAINT@,$MAINT,;t t
17062 s,@gcc_tooldir@,$gcc_tooldir,;t t
17063 s,@dollar@,$dollar,;t t
17064 s,@slibdir@,$slibdir,;t t
17065 s,@objdir@,$objdir,;t t
17066 s,@subdirs@,$subdirs,;t t
17067 s,@srcdir@,$srcdir,;t t
17068 s,@all_boot_languages@,$all_boot_languages,;t t
17069 s,@all_compilers@,$all_compilers,;t t
17070 s,@all_gtfiles@,$all_gtfiles,;t t
17071 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17072 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17073 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17074 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17075 s,@all_languages@,$all_languages,;t t
17076 s,@all_stagestuff@,$all_stagestuff,;t t
17077 s,@build_exeext@,$build_exeext,;t t
17078 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17079 s,@build_xm_file_list@,$build_xm_file_list,;t t
17080 s,@build_xm_include_list@,$build_xm_include_list,;t t
17081 s,@build_xm_defines@,$build_xm_defines,;t t
17082 s,@check_languages@,$check_languages,;t t
17083 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17084 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17085 s,@cpp_install_dir@,$cpp_install_dir,;t t
17086 s,@xmake_file@,$xmake_file,;t t
17087 s,@tmake_file@,$tmake_file,;t t
17088 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17089 s,@extra_headers_list@,$extra_headers_list,;t t
17090 s,@extra_objs@,$extra_objs,;t t
17091 s,@extra_parts@,$extra_parts,;t t
17092 s,@extra_passes@,$extra_passes,;t t
17093 s,@extra_programs@,$extra_programs,;t t
17094 s,@float_h_file@,$float_h_file,;t t
17095 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17096 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17097 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17098 s,@host_exeext@,$host_exeext,;t t
17099 s,@host_xm_file_list@,$host_xm_file_list,;t t
17100 s,@host_xm_include_list@,$host_xm_include_list,;t t
17101 s,@host_xm_defines@,$host_xm_defines,;t t
17102 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17103 s,@install@,$install,;t t
17104 s,@lang_opt_files@,$lang_opt_files,;t t
17105 s,@lang_specs_files@,$lang_specs_files,;t t
17106 s,@lang_tree_files@,$lang_tree_files,;t t
17107 s,@local_prefix@,$local_prefix,;t t
17108 s,@md_file@,$md_file,;t t
17109 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17110 s,@out_file@,$out_file,;t t
17111 s,@out_object_file@,$out_object_file,;t t
17112 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17113 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17114 s,@thread_file@,$thread_file,;t t
17115 s,@tm_file_list@,$tm_file_list,;t t
17116 s,@tm_include_list@,$tm_include_list,;t t
17117 s,@tm_defines@,$tm_defines,;t t
17118 s,@tm_p_file_list@,$tm_p_file_list,;t t
17119 s,@tm_p_include_list@,$tm_p_include_list,;t t
17120 s,@xm_file_list@,$xm_file_list,;t t
17121 s,@xm_include_list@,$xm_include_list,;t t
17122 s,@xm_defines@,$xm_defines,;t t
17123 s,@c_target_objs@,$c_target_objs,;t t
17124 s,@cxx_target_objs@,$cxx_target_objs,;t t
17125 s,@target_cpu_default@,$target_cpu_default,;t t
17126 s,@GMPLIBS@,$GMPLIBS,;t t
17127 s,@GMPINC@,$GMPINC,;t t
17128 s,@LIBOBJS@,$LIBOBJS,;t t
17129 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17130 /@language_hooks@/r $language_hooks
17131 s,@language_hooks@,,;t t
17136 cat >>$CONFIG_STATUS <<\_ACEOF
17137 # Split the substitutions into bite-sized pieces for seds with
17138 # small command number limits, like on Digital OSF/1 and HP-UX.
17139 ac_max_sed_lines=48
17140 ac_sed_frag=1 # Number of current file.
17141 ac_beg=1 # First line for current file.
17142 ac_end=$ac_max_sed_lines # Line after last line for current file.
17145 while $ac_more_lines; do
17146 if test $ac_beg -gt 1; then
17147 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17149 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17151 if test ! -s $tmp/subs.frag; then
17152 ac_more_lines=false
17154 # The purpose of the label and of the branching condition is to
17155 # speed up the sed processing (if there are no `@' at all, there
17156 # is no need to browse any of the substitutions).
17157 # These are the two extra sed commands mentioned above.
17159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17160 if test -z "$ac_sed_cmds"; then
17161 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17163 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17165 ac_sed_frag=`expr $ac_sed_frag + 1`
17167 ac_end=`expr $ac_end + $ac_max_sed_lines`
17170 if test -z "$ac_sed_cmds"; then
17173 fi # test -n "$CONFIG_FILES"
17176 cat >>$CONFIG_STATUS <<\_ACEOF
17177 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17178 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17180 - | *:- | *:-:* ) # input from stdin
17182 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17183 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17184 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17185 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17186 * ) ac_file_in=$ac_file.in ;;
17189 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17190 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17191 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17192 X"$ac_file" : 'X\(//\)[^/]' \| \
17193 X"$ac_file" : 'X\(//\)$' \| \
17194 X"$ac_file" : 'X\(/\)' \| \
17195 . : '\(.\)' 2>/dev/null ||
17197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17198 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17199 /^X\(\/\/\)$/{ s//\1/; q; }
17200 /^X\(\/\).*/{ s//\1/; q; }
17202 { if $as_mkdir_p; then
17207 while test ! -d "$as_dir"; do
17208 as_dirs="$as_dir $as_dirs"
17209 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17211 X"$as_dir" : 'X\(//\)[^/]' \| \
17212 X"$as_dir" : 'X\(//\)$' \| \
17213 X"$as_dir" : 'X\(/\)' \| \
17214 . : '\(.\)' 2>/dev/null ||
17216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17218 /^X\(\/\/\)$/{ s//\1/; q; }
17219 /^X\(\/\).*/{ s//\1/; q; }
17222 test ! -n "$as_dirs" || mkdir $as_dirs
17223 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17224 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17225 { (exit 1); exit 1; }; }; }
17229 if test "$ac_dir" != .; then
17230 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17231 # A "../" for each directory in $ac_dir_suffix.
17232 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17234 ac_dir_suffix= ac_top_builddir=
17238 .) # No --srcdir option. We are building in place.
17240 if test -z "$ac_top_builddir"; then
17243 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17245 [\\/]* | ?:[\\/]* ) # Absolute path.
17246 ac_srcdir=$srcdir$ac_dir_suffix;
17247 ac_top_srcdir=$srcdir ;;
17248 *) # Relative path.
17249 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17250 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17253 # Do not use `cd foo && pwd` to compute absolute paths, because
17254 # the directories may not exist.
17256 .) ac_abs_builddir="$ac_dir";;
17259 .) ac_abs_builddir=`pwd`;;
17260 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17261 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17264 case $ac_abs_builddir in
17265 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17267 case ${ac_top_builddir}. in
17268 .) ac_abs_top_builddir=$ac_abs_builddir;;
17269 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17270 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17273 case $ac_abs_builddir in
17274 .) ac_abs_srcdir=$ac_srcdir;;
17277 .) ac_abs_srcdir=$ac_abs_builddir;;
17278 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17279 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17282 case $ac_abs_builddir in
17283 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17285 case $ac_top_srcdir in
17286 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17287 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17288 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17294 # Let's still pretend it is `configure' which instantiates (i.e., don't
17295 # use $as_me), people would be surprised to read:
17296 # /* config.h. Generated by config.status. */
17297 if test x"$ac_file" = x-; then
17300 configure_input="$ac_file. "
17302 configure_input=$configure_input"Generated from `echo $ac_file_in |
17303 sed 's,.*/,,'` by configure."
17305 # First look for the input files in the build tree, otherwise in the
17307 ac_file_inputs=`IFS=:
17308 for f in $ac_file_in; do
17310 -) echo $tmp/stdin ;;
17312 # Absolute (can't be DOS-style, as IFS=:)
17313 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17314 echo "$as_me: error: cannot find input file: $f" >&2;}
17315 { (exit 1); exit 1; }; }
17318 if test -f "$f"; then
17321 elif test -f "$srcdir/$f"; then
17326 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17327 echo "$as_me: error: cannot find input file: $f" >&2;}
17328 { (exit 1); exit 1; }; }
17331 done` || { (exit 1); exit 1; }
17333 if test x"$ac_file" != x-; then
17334 { echo "$as_me:$LINENO: creating $ac_file" >&5
17335 echo "$as_me: creating $ac_file" >&6;}
17339 cat >>$CONFIG_STATUS <<_ACEOF
17343 cat >>$CONFIG_STATUS <<\_ACEOF
17345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17346 s,@configure_input@,$configure_input,;t t
17347 s,@srcdir@,$ac_srcdir,;t t
17348 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17349 s,@top_srcdir@,$ac_top_srcdir,;t t
17350 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17351 s,@builddir@,$ac_builddir,;t t
17352 s,@abs_builddir@,$ac_abs_builddir,;t t
17353 s,@top_builddir@,$ac_top_builddir,;t t
17354 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17355 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17357 if test x"$ac_file" != x-; then
17358 mv $tmp/out $ac_file
17366 cat >>$CONFIG_STATUS <<\_ACEOF
17369 # CONFIG_HEADER section.
17372 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17373 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17375 # ac_d sets the value in "#define NAME VALUE" lines.
17376 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17377 ac_dB='[ ].*$,\1#\2'
17380 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17381 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17382 ac_uB='$,\1#\2define\3'
17386 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17387 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17389 - | *:- | *:-:* ) # input from stdin
17391 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17392 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17393 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17394 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17395 * ) ac_file_in=$ac_file.in ;;
17398 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17399 echo "$as_me: creating $ac_file" >&6;}
17401 # First look for the input files in the build tree, otherwise in the
17403 ac_file_inputs=`IFS=:
17404 for f in $ac_file_in; do
17406 -) echo $tmp/stdin ;;
17408 # Absolute (can't be DOS-style, as IFS=:)
17409 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17410 echo "$as_me: error: cannot find input file: $f" >&2;}
17411 { (exit 1); exit 1; }; }
17412 # Do quote $f, to prevent DOS paths from being IFS'd.
17415 if test -f "$f"; then
17418 elif test -f "$srcdir/$f"; then
17423 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17424 echo "$as_me: error: cannot find input file: $f" >&2;}
17425 { (exit 1); exit 1; }; }
17428 done` || { (exit 1); exit 1; }
17429 # Remove the trailing spaces.
17430 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17434 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17435 # `conftest.undefs', that substitutes the proper values into
17436 # config.h.in to produce config.h. The first handles `#define'
17437 # templates, and the second `#undef' templates.
17438 # And first: Protect against being on the right side of a sed subst in
17439 # config.status. Protect against being in an unquoted here document
17440 # in config.status.
17441 rm -f conftest.defines conftest.undefs
17442 # Using a here document instead of a string reduces the quoting nightmare.
17443 # Putting comments in sed scripts is not portable.
17445 # `end' is used to avoid that the second main sed command (meant for
17446 # 0-ary CPP macros) applies to n-ary macro definitions.
17447 # See the Autoconf documentation for `clear'.
17448 cat >confdef2sed.sed <<\_ACEOF
17453 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17455 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17458 # If some macros were called several times there might be several times
17459 # the same #defines, which is useless. Nevertheless, we may not want to
17460 # sort them, since we want the *last* AC-DEFINE to be honored.
17461 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17462 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17463 rm -f confdef2sed.sed
17465 # This sed command replaces #undef with comments. This is necessary, for
17466 # example, in the case of _POSIX_SOURCE, which is predefined and required
17467 # on some systems where configure will not decide to define it.
17468 cat >>conftest.undefs <<\_ACEOF
17469 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17472 # Break up conftest.defines because some shells have a limit on the size
17473 # of here documents, and old seds have small limits too (100 cmds).
17474 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17475 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17476 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17477 echo ' :' >>$CONFIG_STATUS
17478 rm -f conftest.tail
17479 while grep . conftest.defines >/dev/null
17481 # Write a limited-size here document to $tmp/defines.sed.
17482 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17483 # Speed up: don't consider the non `#define' lines.
17484 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17485 # Work around the forget-to-reset-the-flag bug.
17486 echo 't clr' >>$CONFIG_STATUS
17487 echo ': clr' >>$CONFIG_STATUS
17488 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17490 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17492 mv $tmp/out $tmp/in
17494 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17495 rm -f conftest.defines
17496 mv conftest.tail conftest.defines
17498 rm -f conftest.defines
17499 echo ' fi # grep' >>$CONFIG_STATUS
17500 echo >>$CONFIG_STATUS
17502 # Break up conftest.undefs because some shells have a limit on the size
17503 # of here documents, and old seds have small limits too (100 cmds).
17504 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17505 rm -f conftest.tail
17506 while grep . conftest.undefs >/dev/null
17508 # Write a limited-size here document to $tmp/undefs.sed.
17509 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17510 # Speed up: don't consider the non `#undef'
17511 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17512 # Work around the forget-to-reset-the-flag bug.
17513 echo 't clr' >>$CONFIG_STATUS
17514 echo ': clr' >>$CONFIG_STATUS
17515 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17517 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17519 mv $tmp/out $tmp/in
17521 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17522 rm -f conftest.undefs
17523 mv conftest.tail conftest.undefs
17525 rm -f conftest.undefs
17527 cat >>$CONFIG_STATUS <<\_ACEOF
17528 # Let's still pretend it is `configure' which instantiates (i.e., don't
17529 # use $as_me), people would be surprised to read:
17530 # /* config.h. Generated by config.status. */
17531 if test x"$ac_file" = x-; then
17532 echo "/* Generated by configure. */" >$tmp/config.h
17534 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17536 cat $tmp/in >>$tmp/config.h
17538 if test x"$ac_file" != x-; then
17539 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17540 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17541 echo "$as_me: $ac_file is unchanged" >&6;}
17543 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17545 X"$ac_file" : 'X\(//\)[^/]' \| \
17546 X"$ac_file" : 'X\(//\)$' \| \
17547 X"$ac_file" : 'X\(/\)' \| \
17548 . : '\(.\)' 2>/dev/null ||
17550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17552 /^X\(\/\/\)$/{ s//\1/; q; }
17553 /^X\(\/\).*/{ s//\1/; q; }
17555 { if $as_mkdir_p; then
17560 while test ! -d "$as_dir"; do
17561 as_dirs="$as_dir $as_dirs"
17562 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17564 X"$as_dir" : 'X\(//\)[^/]' \| \
17565 X"$as_dir" : 'X\(//\)$' \| \
17566 X"$as_dir" : 'X\(/\)' \| \
17567 . : '\(.\)' 2>/dev/null ||
17569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17571 /^X\(\/\/\)$/{ s//\1/; q; }
17572 /^X\(\/\).*/{ s//\1/; q; }
17575 test ! -n "$as_dirs" || mkdir $as_dirs
17576 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17577 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17578 { (exit 1); exit 1; }; }; }
17581 mv $tmp/config.h $ac_file
17585 rm -f $tmp/config.h
17589 cat >>$CONFIG_STATUS <<\_ACEOF
17592 # CONFIG_COMMANDS section.
17594 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17595 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17596 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17597 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17598 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17599 X"$ac_dest" : 'X\(//\)[^/]' \| \
17600 X"$ac_dest" : 'X\(//\)$' \| \
17601 X"$ac_dest" : 'X\(/\)' \| \
17602 . : '\(.\)' 2>/dev/null ||
17604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17606 /^X\(\/\/\)$/{ s//\1/; q; }
17607 /^X\(\/\).*/{ s//\1/; q; }
17609 { if $as_mkdir_p; then
17614 while test ! -d "$as_dir"; do
17615 as_dirs="$as_dir $as_dirs"
17616 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17618 X"$as_dir" : 'X\(//\)[^/]' \| \
17619 X"$as_dir" : 'X\(//\)$' \| \
17620 X"$as_dir" : 'X\(/\)' \| \
17621 . : '\(.\)' 2>/dev/null ||
17623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17625 /^X\(\/\/\)$/{ s//\1/; q; }
17626 /^X\(\/\).*/{ s//\1/; q; }
17629 test ! -n "$as_dirs" || mkdir $as_dirs
17630 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17631 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17632 { (exit 1); exit 1; }; }; }
17636 if test "$ac_dir" != .; then
17637 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17638 # A "../" for each directory in $ac_dir_suffix.
17639 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17641 ac_dir_suffix= ac_top_builddir=
17645 .) # No --srcdir option. We are building in place.
17647 if test -z "$ac_top_builddir"; then
17650 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17652 [\\/]* | ?:[\\/]* ) # Absolute path.
17653 ac_srcdir=$srcdir$ac_dir_suffix;
17654 ac_top_srcdir=$srcdir ;;
17655 *) # Relative path.
17656 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17657 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17660 # Do not use `cd foo && pwd` to compute absolute paths, because
17661 # the directories may not exist.
17663 .) ac_abs_builddir="$ac_dir";;
17666 .) ac_abs_builddir=`pwd`;;
17667 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17668 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17671 case $ac_abs_builddir in
17672 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17674 case ${ac_top_builddir}. in
17675 .) ac_abs_top_builddir=$ac_abs_builddir;;
17676 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17677 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17680 case $ac_abs_builddir in
17681 .) ac_abs_srcdir=$ac_srcdir;;
17684 .) ac_abs_srcdir=$ac_abs_builddir;;
17685 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17686 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17689 case $ac_abs_builddir in
17690 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17692 case $ac_top_srcdir in
17693 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17694 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17695 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17700 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17701 echo "$as_me: executing $ac_dest commands" >&6;}
17704 case ${CONFIG_HEADERS} in
17705 *auto-host.h:config.in*)
17708 # Make sure all the subdirs exist.
17709 for d in $subdirs doc build
17711 test -d $d || mkdir $d
17713 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17714 # bootstrapping and the installation procedure can still use
17715 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17716 # FLAGS_TO_PASS has been modified to solve the problem there.
17717 # This is virtually a duplicate of what happens in configure.lang; we do
17718 # an extra check to make sure this only happens if ln -s can be used.
17721 for d in ${subdirs} ; do
17722 STARTDIR=`${PWDCMD-pwd}`
17724 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17727 $LN_S ../$t $t 2>/dev/null
17738 cat >>$CONFIG_STATUS <<\_ACEOF
17740 { (exit 0); exit 0; }
17742 chmod +x $CONFIG_STATUS
17743 ac_clean_files=$ac_clean_files_save
17746 # configure is writing to config.log, and then calls config.status.
17747 # config.status does its own redirection, appending to config.log.
17748 # Unfortunately, on DOS this fails, as config.log is still kept open
17749 # by configure, so config.status won't be able to write to it; its
17750 # output is simply discarded. So we exec the FD to /dev/null,
17751 # effectively closing config.log, so it can be properly (re)opened and
17752 # appended to by config.status. When coming back to configure, we
17753 # need to make the FD available again.
17754 if test "$no_create" != yes; then
17756 ac_config_status_args=
17757 test "$silent" = yes &&
17758 ac_config_status_args="$ac_config_status_args --quiet"
17760 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17762 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17763 # would make configure fail if this is the last instruction.
17764 $ac_cs_success || { (exit 1); exit 1; }