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_libsubdir 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 strict_warn cxx_compat_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep datarootdir docdir htmldir 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 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 DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT 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 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages 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 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 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-checking=LIST
867 enable expensive run-time checks. With LIST,
868 enable only specific categories of checks.
869 Categories are: yes,no,all,none,release.
870 Flags are: assert,fold,gc,gcac,misc,
871 rtlflag,rtl,runtime,tree,valgrind.
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-decimal-float={no,yes,bid,dpd}
883 enable decimal float extension to C. Selecting 'bid'
884 or 'dpd' choses which decimal floating point format
886 --enable-threads enable thread usage for target GCC
887 --enable-threads=LIB use LIB thread package for target GCC
888 --enable-tls enable or disable generation of tls code
889 overriding the assembler check for tls support
890 --enable-objc-gc enable the use of Boehm's garbage collector with
891 the GNU Objective-C runtime
892 --disable-shared don't provide a shared libgcc
893 --enable-intermodule build the compiler in one step
894 --enable-languages=LIST specify which front-ends to build
895 --disable-rpath do not hardcode runtime library paths
896 --enable-initfini-array use .init_array/.fini_array sections
897 --enable-sjlj-exceptions
898 arrange to use setjmp/longjmp exception handling
899 --enable-secureplt enable -msecure-plt by default for PowerPC
900 --disable-win32-registry
901 disable lookup of installation paths in the
902 Registry on Windows hosts
903 --enable-win32-registry enable registry lookup (default)
904 --enable-win32-registry=KEY
905 use KEY instead of GCC version as the last portion
907 --enable-maintainer-mode
908 enable make rules and dependencies not useful
909 (and sometimes confusing) to the casual installer
910 --enable-version-specific-runtime-libs
911 specify that runtime libraries should be
912 installed in a compiler-specific directory
915 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
916 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
917 --with-build-libsubdir=DIR Directory where to find libraries for build system
918 --with-local-prefix=DIR specifies directory to put local include
919 --with-gxx-include-dir=DIR
920 specifies directory to put g++ header files
921 --with-cpp-install-dir=DIR
922 install the user visible C preprocessor in DIR
923 (relative to PREFIX) as well as PREFIX/bin
924 --with-gnu-ld arrange to work with GNU ld.
925 --with-ld arrange to use the specified ld (full pathname)
926 --with-demangler-in-ld try to use demangler in GNU ld.
927 --with-gnu-as arrange to work with GNU as
928 --with-as arrange to use the specified as (full pathname)
929 --with-stabs arrange to use stabs instead of host debug format
930 --with-dwarf2 force the default debug format to be DWARF 2
931 --with-build-sysroot=sysroot
932 use sysroot as the system root during the build
933 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
934 --with-gnu-ld assume the C compiler uses GNU ld default=no
935 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
936 --without-libiconv-prefix don't search for libiconv in includedir and libdir
937 --with-system-libunwind use installed libunwind
938 --with-long-double-128 Use 128-bit long double by default.
939 --with-gc={page,zone} choose the garbage collection mechanism to use
941 --with-system-zlib use installed libz
942 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
943 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
944 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
945 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
947 Some influential environment variables:
948 CC C compiler command
949 CFLAGS C compiler flags
950 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
951 nonstandard directory <lib dir>
952 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
953 headers in a nonstandard directory <include dir>
955 GMPLIBS How to link GMP
956 GMPINC How to find GMP include files
958 Use these variables to override the choices made by `configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
964 if test "$ac_init_help" = "recursive"; then
965 # If there are subdirs, report their specific --help.
967 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968 test -d $ac_dir || continue
971 if test "$ac_dir" != .; then
972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
973 # A "../" for each directory in $ac_dir_suffix.
974 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
976 ac_dir_suffix= ac_top_builddir=
980 .) # No --srcdir option. We are building in place.
982 if test -z "$ac_top_builddir"; then
985 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
987 [\\/]* | ?:[\\/]* ) # Absolute path.
988 ac_srcdir=$srcdir$ac_dir_suffix;
989 ac_top_srcdir=$srcdir ;;
991 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992 ac_top_srcdir=$ac_top_builddir$srcdir ;;
995 # Do not use `cd foo && pwd` to compute absolute paths, because
996 # the directories may not exist.
998 .) ac_abs_builddir="$ac_dir";;
1001 .) ac_abs_builddir=`pwd`;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 case ${ac_top_builddir}. in
1010 .) ac_abs_top_builddir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1019 .) ac_abs_srcdir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 case $ac_top_srcdir in
1028 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1035 # Check for guested configure; otherwise get Cygnus style configure.
1036 if test -f $ac_srcdir/configure.gnu; then
1038 $SHELL $ac_srcdir/configure.gnu --help=recursive
1039 elif test -f $ac_srcdir/configure; then
1041 $SHELL $ac_srcdir/configure --help=recursive
1042 elif test -f $ac_srcdir/configure.ac ||
1043 test -f $ac_srcdir/configure.in; then
1045 $ac_configure --help
1047 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59. Invocation command line was
1080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1087 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1089 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1090 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1092 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1093 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1094 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1095 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1103 test -z "$as_dir" && as_dir=.
1104 echo "PATH: $as_dir"
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1128 ac_must_keep_next=false
1134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1138 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1142 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1144 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145 if test $ac_must_keep_next = true; then
1146 ac_must_keep_next=false # Got value, back to normal.
1149 *=* | --config-cache | -C | -disable-* | --disable-* \
1150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152 | -with-* | --with-* | -without-* | --without-* | --x)
1153 case "$ac_configure_args0 " in
1154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1157 -* ) ac_must_keep_next=true ;;
1160 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161 # Get rid of the leading space.
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log. We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close' the trap.
1175 trap 'exit_status=$?
1176 # Save into config.log some information that might help in debugging.
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1186 # The following way of writing the cache mishandles newlines in values,
1189 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1192 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1197 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1209 for ac_var in $ac_subst_vars
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1216 if test -n "$ac_subst_files"; then
1223 for ac_var in $ac_subst_files
1225 eval ac_val=$`echo $ac_var`
1226 echo "$ac_var='"'"'$ac_val'"'"'"
1231 if test -s confdefs.h; then
1238 sed "/^$/d" confdefs.h | sort
1241 test "$ac_signal" != 0 &&
1242 echo "$as_me: caught signal $ac_signal"
1243 echo "$as_me: exit $exit_status"
1245 rm -f core *.core &&
1246 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1249 for ac_signal in 1 2 13 15; do
1250 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1259 # Predefined preprocessor variables.
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289 if test "x$prefix" != xNONE; then
1290 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1292 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1295 for ac_site_file in $CONFIG_SITE; do
1296 if test -r "$ac_site_file"; then
1297 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299 sed 's/^/| /' "$ac_site_file" >&5
1304 if test -r "$cache_file"; then
1305 # Some versions of bash will fail to source /dev/null (special
1306 # files actually), so we avoid doing that.
1307 if test -f "$cache_file"; then
1308 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1311 [\\/]* | ?:[\\/]* ) . $cache_file;;
1312 *) . ./$cache_file;;
1316 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1321 # Check that the precious variables saved in the cache have kept the same
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1326 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327 eval ac_new_set=\$ac_env_${ac_var}_set
1328 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329 eval ac_new_val="\$ac_env_${ac_var}_value"
1330 case $ac_old_set,$ac_new_set in
1332 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1334 ac_cache_corrupted=: ;;
1336 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338 ac_cache_corrupted=: ;;
1341 if test "x$ac_old_val" != "x$ac_new_val"; then
1342 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1343 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1344 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1345 echo "$as_me: former value: $ac_old_val" >&2;}
1346 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1347 echo "$as_me: current value: $ac_new_val" >&2;}
1348 ac_cache_corrupted=:
1351 # Pass precious variables to config.status.
1352 if test "$ac_new_set" = set; then
1354 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1356 *) ac_arg=$ac_var=$ac_new_val ;;
1358 case " $ac_configure_args " in
1359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1360 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1364 if $ac_cache_corrupted; then
1365 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1368 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369 { (exit 1); exit 1; }; }
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1400 gcc_version=`cat $srcdir/BASE-VER`
1402 # Determine the host, build, and target systems
1404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405 if test -f $ac_dir/install-sh; then
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1409 elif test -f $ac_dir/install.sh; then
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1413 elif test -f $ac_dir/shtool; then
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1419 if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422 { (exit 1); exit 1; }; }
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441 ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445 { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449 { (exit 1); exit 1; }; }
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1455 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467 ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1477 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482 echo "$as_me:$LINENO: checking target system type" >&5
1483 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484 if test "${ac_cv_target+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 ac_cv_target_alias=$target_alias
1488 test "x$ac_cv_target_alias" = "x" &&
1489 ac_cv_target_alias=$ac_cv_host_alias
1490 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497 echo "${ECHO_T}$ac_cv_target" >&6
1498 target=$ac_cv_target
1499 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504 # The aliases save the names the user supplied, while $host etc.
1505 # will get canonicalized.
1506 test -n "$target_alias" &&
1507 test "$program_prefix$program_suffix$program_transform_name" = \
1509 program_prefix=${target_alias}-
1511 # Determine the noncanonical target name, for directory use.
1512 case ${build_alias} in
1513 "") build_noncanonical=${build} ;;
1514 *) build_noncanonical=${build_alias} ;;
1517 case ${host_alias} in
1518 "") host_noncanonical=${build_noncanonical} ;;
1519 *) host_noncanonical=${host_alias} ;;
1522 case ${target_alias} in
1523 "") target_noncanonical=${host_noncanonical} ;;
1524 *) target_noncanonical=${target_alias} ;;
1530 # Determine the target- and build-specific subdirectories
1532 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1533 # have matching libraries, they should use host libraries: Makefile.tpl
1534 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1535 # However, they still use the build modules, because the corresponding
1536 # host modules (e.g. bison) are only built for the host when bootstrap
1538 # - build_subdir is where we find build modules, and never changes.
1539 # - build_libsubdir is where we find build libraries, and can be overridden.
1541 # Prefix 'build-' so this never conflicts with target_subdir.
1542 build_subdir="build-${build_noncanonical}"
1544 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1545 if test "${with_build_libsubdir+set}" = set; then
1546 withval="$with_build_libsubdir"
1547 build_libsubdir="$withval"
1549 build_libsubdir="$build_subdir"
1551 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1552 if ( test $srcdir = . && test -d gcc ) \
1553 || test -d $srcdir/../host-${host_noncanonical}; then
1554 host_subdir="host-${host_noncanonical}"
1559 target_subdir=${target_noncanonical}
1562 # Set program_transform_name
1563 test "$program_prefix" != NONE &&
1564 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1565 # Use a double $ so make ignores it.
1566 test "$program_suffix" != NONE &&
1567 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1568 # Double any \ or $. echo might interpret backslashes.
1569 # By default was `s,x,x', remove it if useless.
1570 cat <<\_ACEOF >conftest.sed
1571 s/[\\$]/&&/g;s/;s,x,x,$//
1573 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1577 # Check for bogus environment variables.
1578 # Test if LIBRARY_PATH contains the notation for the current directory
1579 # since this would lead to problems installing/building glibc.
1580 # LIBRARY_PATH contains the current directory if one of the following
1582 # - one of the terminals (":" and ";") is the first or last sign
1583 # - two terminals occur directly after each other
1584 # - the path contains an element with a dot in it
1585 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1586 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1587 case ${LIBRARY_PATH} in
1588 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1589 library_path_setting="contains current directory"
1592 library_path_setting="ok"
1595 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1596 echo "${ECHO_T}$library_path_setting" >&6
1597 if test "$library_path_setting" != "ok"; then
1598 { { echo "$as_me:$LINENO: error:
1599 *** LIBRARY_PATH shouldn't contain the current directory when
1600 *** building gcc. Please change the environment variable
1601 *** and run configure again." >&5
1602 echo "$as_me: error:
1603 *** LIBRARY_PATH shouldn't contain the current directory when
1604 *** building gcc. Please change the environment variable
1605 *** and run configure again." >&2;}
1606 { (exit 1); exit 1; }; }
1609 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1610 # since this would lead to problems installing/building glibc.
1611 # GCC_EXEC_PREFIX contains the current directory if one of the following
1613 # - one of the terminals (":" and ";") is the first or last sign
1614 # - two terminals occur directly after each other
1615 # - the path contains an element with a dot in it
1616 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1617 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1618 case ${GCC_EXEC_PREFIX} in
1619 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1620 gcc_exec_prefix_setting="contains current directory"
1623 gcc_exec_prefix_setting="ok"
1626 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1627 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1628 if test "$gcc_exec_prefix_setting" != "ok"; then
1629 { { echo "$as_me:$LINENO: error:
1630 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1631 *** building gcc. Please change the environment variable
1632 *** and run configure again." >&5
1633 echo "$as_me: error:
1634 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1635 *** building gcc. Please change the environment variable
1636 *** and run configure again." >&2;}
1637 { (exit 1); exit 1; }; }
1644 # Specify the local prefix
1647 # Check whether --with-local-prefix or --without-local-prefix was given.
1648 if test "${with_local_prefix+set}" = set; then
1649 withval="$with_local_prefix"
1650 case "${withval}" in
1651 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1652 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1653 { (exit 1); exit 1; }; } ;;
1655 *) local_prefix=$with_local_prefix ;;
1659 # Default local prefix if it is empty
1660 if test x$local_prefix = x; then
1661 local_prefix=/usr/local
1664 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1665 # passed in by the toplevel make and thus we'd get different behavior
1666 # depending on where we built the sources.
1667 gcc_gxx_include_dir=
1668 # Specify the g++ header file directory
1670 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1671 if test "${with_gxx_include_dir+set}" = set; then
1672 withval="$with_gxx_include_dir"
1673 case "${withval}" in
1674 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1675 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1676 { (exit 1); exit 1; }; } ;;
1678 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1682 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1683 if test x${gcc_gxx_include_dir} = x; then
1684 if test x${enable_version_specific_runtime_libs} = xyes; then
1685 gcc_gxx_include_dir='${libsubdir}/include/c++'
1687 libstdcxx_incdir='include/c++/$(version)'
1688 if test x$host != x$target; then
1689 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1691 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1696 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1697 if test "${with_cpp_install_dir+set}" = set; then
1698 withval="$with_cpp_install_dir"
1699 if test x$withval = xyes; then
1700 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1701 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1702 { (exit 1); exit 1; }; }
1703 elif test x$withval != xno; then
1704 cpp_install_dir=$withval
1708 # We would like to our source tree to be readonly. However when releases or
1709 # pre-releases are generated, the flex/bison generated files as well as the
1710 # various formats of manuals need to be included along with the rest of the
1711 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1714 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1715 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1716 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1717 if test "${enable_generated_files_in_srcdir+set}" = set; then
1718 enableval="$enable_generated_files_in_srcdir"
1719 generated_files_in_srcdir=$enableval
1721 generated_files_in_srcdir=no
1724 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1725 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1727 if test "$generated_files_in_srcdir" = "yes"; then
1734 # -------------------
1735 # Find default linker
1736 # -------------------
1740 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1741 if test "${with_gnu_ld+set}" = set; then
1742 withval="$with_gnu_ld"
1743 gnu_ld_flag="$with_gnu_ld"
1748 # With pre-defined ld
1750 # Check whether --with-ld or --without-ld was given.
1751 if test "${with_ld+set}" = set; then
1753 DEFAULT_LINKER="$with_ld"
1755 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1756 if test ! -x "$DEFAULT_LINKER"; then
1757 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1758 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1759 { (exit 1); exit 1; }; }
1760 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1764 cat >>confdefs.h <<_ACEOF
1765 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1770 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1772 cat >>confdefs.h <<_ACEOF
1773 #define HAVE_GNU_LD $gnu_ld
1777 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1778 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1779 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1780 if test x"$gnu_ld_flag" = x"no"; then
1781 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1782 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1784 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1785 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1788 echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1792 # With demangler in GNU ld
1794 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1795 if test "${with_demangler_in_ld+set}" = set; then
1796 withval="$with_demangler_in_ld"
1797 demangler_in_ld="$with_demangler_in_ld"
1802 # ----------------------
1803 # Find default assembler
1804 # ----------------------
1808 # Check whether --with-gnu-as or --without-gnu-as was given.
1809 if test "${with_gnu_as+set}" = set; then
1810 withval="$with_gnu_as"
1811 gas_flag="$with_gnu_as"
1817 # Check whether --with-as or --without-as was given.
1818 if test "${with_as+set}" = set; then
1820 DEFAULT_ASSEMBLER="$with_as"
1822 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1823 if test ! -x "$DEFAULT_ASSEMBLER"; then
1824 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1825 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1826 { (exit 1); exit 1; }; }
1827 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1831 cat >>confdefs.h <<_ACEOF
1832 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1837 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1838 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1839 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1840 if test x"$gas_flag" = x"no"; then
1841 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1842 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1844 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1845 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1856 # If a non-executable a.out is present (e.g. created by GNU as above even if
1857 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1858 # file, even when creating an executable, so an execution test fails.
1859 # Remove possible default executable files to avoid this.
1861 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1862 # Autoconf includes it.
1863 rm -f a.out a.exe b.out
1865 # Find the native compiler
1867 ac_cpp='$CPP $CPPFLAGS'
1868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1871 if test -n "$ac_tool_prefix"; then
1872 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1873 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC="$CC" # Let the user override the test.
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 if test -n "$CC"; then
1900 echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1908 if test -z "$ac_cv_prog_CC"; then
1910 # Extract the first word of "gcc", so it can be a program name with args.
1911 set dummy gcc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 if test -n "$ac_ct_CC"; then
1918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 ac_cv_prog_ac_ct_CC="gcc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1937 if test -n "$ac_ct_CC"; then
1938 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1939 echo "${ECHO_T}$ac_ct_CC" >&6
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1950 if test -z "$CC"; then
1951 if test -n "$ac_tool_prefix"; then
1952 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1953 set dummy ${ac_tool_prefix}cc; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 if test -n "$CC"; then
1960 ac_cv_prog_CC="$CC" # Let the user override the test.
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog_CC="${ac_tool_prefix}cc"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 if test -n "$CC"; then
1980 echo "$as_me:$LINENO: result: $CC" >&5
1981 echo "${ECHO_T}$CC" >&6
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1988 if test -z "$ac_cv_prog_CC"; then
1990 # Extract the first word of "cc", so it can be a program name with args.
1991 set dummy cc; ac_word=$2
1992 echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 if test -n "$ac_ct_CC"; then
1998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007 ac_cv_prog_ac_ct_CC="cc"
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2017 if test -n "$ac_ct_CC"; then
2018 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2019 echo "${ECHO_T}$ac_ct_CC" >&6
2021 echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6
2031 if test -z "$CC"; then
2032 # Extract the first word of "cc", so it can be a program name with args.
2033 set dummy cc; ac_word=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2051 ac_prog_rejected=yes
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 if test $ac_prog_rejected = yes; then
2062 # We found a bogon in the path, so make sure we never use it.
2063 set dummy $ac_cv_prog_CC
2065 if test $# != 0; then
2066 # We chose a different compiler from the bogus one.
2067 # However, it has the same basename, so the bogon will be chosen
2068 # first if we set CC to just the basename; use the full file name.
2070 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2076 if test -n "$CC"; then
2077 echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6
2080 echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2085 if test -z "$CC"; then
2086 if test -n "$ac_tool_prefix"; then
2089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116 if test -n "$CC"; then
2117 echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2124 test -n "$CC" && break
2127 if test -z "$CC"; then
2131 # Extract the first word of "$ac_prog", so it can be a program name with args.
2132 set dummy $ac_prog; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 if test -n "$ac_ct_CC"; then
2139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_ac_ct_CC="$ac_prog"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158 if test -n "$ac_ct_CC"; then
2159 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160 echo "${ECHO_T}$ac_ct_CC" >&6
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2166 test -n "$ac_ct_CC" && break
2175 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2176 See \`config.log' for more details." >&5
2177 echo "$as_me: error: no acceptable C compiler found in \$PATH
2178 See \`config.log' for more details." >&2;}
2179 { (exit 1); exit 1; }; }
2181 # Provide some information about the compiler.
2182 echo "$as_me:$LINENO:" \
2183 "checking for C compiler version" >&5
2184 ac_compiler=`set X $ac_compile; echo $2`
2185 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2186 (eval $ac_compiler --version </dev/null >&5) 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }
2190 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2191 (eval $ac_compiler -v </dev/null >&5) 2>&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }
2195 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2196 (eval $ac_compiler -V </dev/null >&5) 2>&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2201 cat >conftest.$ac_ext <<_ACEOF
2204 cat confdefs.h >>conftest.$ac_ext
2205 cat >>conftest.$ac_ext <<_ACEOF
2206 /* end confdefs.h. */
2216 ac_clean_files_save=$ac_clean_files
2217 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2218 # Try to create an executable without -o first, disregard a.out.
2219 # It will help us diagnose broken compilers, and finding out an intuition
2221 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2222 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2223 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2224 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2225 (eval $ac_link_default) 2>&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; then
2229 # Find the output, starting from the most likely. This scheme is
2230 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2233 # Be careful to initialize this variable, since it used to be cached.
2234 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2236 # b.out is created by i960 compilers.
2237 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2239 test -f "$ac_file" || continue
2241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2244 # This is the source file.
2247 # We found the default executable, but exeext='' is most
2251 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2252 # FIXME: I believe we export ac_cv_exeext for Libtool,
2253 # but it would be cool to find out if it's true. Does anybody
2254 # maintain Libtool? --akim.
2262 echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2265 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: C compiler cannot create executables
2268 See \`config.log' for more details." >&2;}
2269 { (exit 77); exit 77; }; }
2272 ac_exeext=$ac_cv_exeext
2273 echo "$as_me:$LINENO: result: $ac_file" >&5
2274 echo "${ECHO_T}$ac_file" >&6
2276 # Check the compiler produces executables we can run. If not, either
2277 # the compiler is broken, or we cross compile.
2278 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2279 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2280 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2281 # If not cross compiling, check that we can run a simple program.
2282 if test "$cross_compiling" != yes; then
2283 if { ac_try='./$ac_file'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2291 if test "$cross_compiling" = maybe; then
2294 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2295 If you meant to cross compile, use \`--host'.
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot run C compiled programs.
2298 If you meant to cross compile, use \`--host'.
2299 See \`config.log' for more details." >&2;}
2300 { (exit 1); exit 1; }; }
2304 echo "$as_me:$LINENO: result: yes" >&5
2305 echo "${ECHO_T}yes" >&6
2307 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2308 ac_clean_files=$ac_clean_files_save
2309 # Check the compiler produces executables we can run. If not, either
2310 # the compiler is broken, or we cross compile.
2311 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2312 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2313 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2314 echo "${ECHO_T}$cross_compiling" >&6
2316 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2317 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2319 (eval $ac_link) 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2324 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2325 # work properly (i.e., refer to `conftest.exe'), while it won't with
2327 for ac_file in conftest.exe conftest conftest.*; do
2328 test -f "$ac_file" || continue
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2338 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2345 rm -f conftest$ac_cv_exeext
2346 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2347 echo "${ECHO_T}$ac_cv_exeext" >&6
2349 rm -f conftest.$ac_ext
2350 EXEEXT=$ac_cv_exeext
2352 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2353 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2354 if test "${ac_cv_objext+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 cat >conftest.$ac_ext <<_ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2372 rm -f conftest.o conftest.obj
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374 (eval $ac_compile) 2>&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; then
2378 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2381 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2389 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2399 echo "${ECHO_T}$ac_cv_objext" >&6
2400 OBJEXT=$ac_cv_objext
2402 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2403 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2404 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 cat >conftest.$ac_ext <<_ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2425 rm -f conftest.$ac_objext
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>conftest.er1
2429 grep -v '^ *+' conftest.er1 >conftest.err
2431 cat conftest.err >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
2434 { ac_try='test -z "$ac_c_werror_flag"
2435 || test ! -s conftest.err'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2458 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2459 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2460 GCC=`test $ac_compiler_gnu = yes && echo yes`
2461 ac_test_CFLAGS=${CFLAGS+set}
2462 ac_save_CFLAGS=$CFLAGS
2464 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2465 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2466 if test "${ac_cv_prog_cc_g+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 cat >conftest.$ac_ext <<_ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2484 rm -f conftest.$ac_objext
2485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2486 (eval $ac_compile) 2>conftest.er1
2488 grep -v '^ *+' conftest.er1 >conftest.err
2490 cat conftest.err >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } &&
2493 { ac_try='test -z "$ac_c_werror_flag"
2494 || test ! -s conftest.err'
2495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; } &&
2500 { ac_try='test -s conftest.$ac_objext'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2515 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2516 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2517 if test "$ac_test_CFLAGS" = set; then
2518 CFLAGS=$ac_save_CFLAGS
2519 elif test $ac_cv_prog_cc_g = yes; then
2520 if test "$GCC" = yes; then
2526 if test "$GCC" = yes; then
2532 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2533 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2534 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 ac_cv_prog_cc_stdc=no
2539 cat >conftest.$ac_ext <<_ACEOF
2542 cat confdefs.h >>conftest.$ac_ext
2543 cat >>conftest.$ac_ext <<_ACEOF
2544 /* end confdefs.h. */
2547 #include <sys/types.h>
2548 #include <sys/stat.h>
2549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2550 struct buf { int x; };
2551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2552 static char *e (p, i)
2558 static char *f (char * (*g) (char **, int), char **p, ...)
2563 s = g (p, va_arg (v,int));
2568 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2569 function prototypes and stuff, but not '\xHH' hex character constants.
2570 These don't provoke an error unfortunately, instead are silently treated
2571 as 'x'. The following induces an error, until -std1 is added to get
2572 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2573 array size at least. It's necessary to write '\x00'==0 to get something
2574 that's true only with -std1. */
2575 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2577 int test (int i, double x);
2578 struct s1 {int (*f) (int a);};
2579 struct s2 {int (*f) (double a);};
2580 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2586 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2591 # Don't try gcc -ansi; that turns off useful extensions and
2592 # breaks some systems' header files.
2593 # AIX -qlanglvl=ansi
2594 # Ultrix and OSF/1 -std1
2595 # HP-UX 10.20 and later -Ae
2596 # HP-UX older versions -Aa -D_HPUX_SOURCE
2597 # SVR4 -Xc -D__EXTENSIONS__
2598 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2600 CC="$ac_save_CC $ac_arg"
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2605 grep -v '^ *+' conftest.er1 >conftest.err
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_c_werror_flag"
2611 || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 ac_cv_prog_cc_stdc=$ac_arg
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2630 rm -f conftest.err conftest.$ac_objext
2632 rm -f conftest.$ac_ext conftest.$ac_objext
2637 case "x$ac_cv_prog_cc_stdc" in
2639 echo "$as_me:$LINENO: result: none needed" >&5
2640 echo "${ECHO_T}none needed" >&6 ;;
2642 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2644 CC="$CC $ac_cv_prog_cc_stdc" ;;
2647 # Some people use a C++ compiler to compile C. Since we use `exit',
2648 # in C++ we need to declare it. In case someone uses the same compiler
2649 # for both compiling C and C++ we need to have the C++ compiler decide
2650 # the declaration of exit, since it's the most demanding environment.
2651 cat >conftest.$ac_ext <<_ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>conftest.er1
2660 grep -v '^ *+' conftest.er1 >conftest.err
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_c_werror_flag"
2666 || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2678 for ac_declaration in \
2680 'extern "C" void std::exit (int) throw (); using std::exit;' \
2681 'extern "C" void std::exit (int); using std::exit;' \
2682 'extern "C" void exit (int) throw ();' \
2683 'extern "C" void exit (int);' \
2686 cat >conftest.$ac_ext <<_ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2702 rm -f conftest.$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2706 grep -v '^ *+' conftest.er1 >conftest.err
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -z "$ac_c_werror_flag"
2712 || test ! -s conftest.err'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2747 rm -f conftest.$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>conftest.er1
2751 grep -v '^ *+' conftest.er1 >conftest.err
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try='test -z "$ac_c_werror_flag"
2757 || test ! -s conftest.err'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2778 if test -n "$ac_declaration"; then
2779 echo '#ifdef __cplusplus' >>confdefs.h
2780 echo $ac_declaration >>confdefs.h
2781 echo '#endif' >>confdefs.h
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791 ac_cpp='$CPP $CPPFLAGS'
2792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 if test "x$CC" != xcc; then
2797 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2798 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2800 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2801 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2803 set dummy $CC; ac_cc=`echo $2 |
2804 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2805 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 cat >conftest.$ac_ext <<_ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2823 # Make sure it works both with $CC and with simple cc.
2824 # We do the test twice because some compilers refuse to overwrite an
2825 # existing .o file with -o, though they will create one.
2826 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2827 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
2832 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); };
2838 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2839 if test "x$CC" != xcc; then
2840 # Test first that cc exists at all.
2841 if { ac_try='cc -c conftest.$ac_ext >&5'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2848 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); };
2862 # cc exists but doesn't like -o.
2863 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2868 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2873 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2874 echo "$as_me:$LINENO: result: yes" >&5
2875 echo "${ECHO_T}yes" >&6
2877 echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2880 cat >>confdefs.h <<\_ACEOF
2881 #define NO_MINUS_C_MINUS_O 1
2886 # expand $ac_aux_dir to an absolute path
2887 am_aux_dir=`cd $ac_aux_dir && pwd`
2889 # FIXME: we rely on the cache variable name because
2890 # there is no other way.
2892 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2893 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2894 # Losing compiler, so override with the script.
2895 # FIXME: It is wrong to rewrite CC.
2896 # But if we don't then we get into trouble of one sort or another.
2897 # A longer-term fix would be to have automake use am__CC in this case,
2898 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2899 CC="$am_aux_dir/compile $CC"
2902 # autoconf is lame and doesn't give us any substitution variable for this.
2903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2904 NO_MINUS_C_MINUS_O=yes
2906 OUTPUT_OPTION='-o $@'
2911 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2912 # optimizations to be activated explicitly by the toplevel.
2914 */prev-gcc/xgcc*) ;;
2915 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2919 # -------------------------
2920 # Check C compiler features
2921 # -------------------------
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2929 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2930 # On Suns, sometimes $CPP names a directory.
2931 if test -n "$CPP" && test -d "$CPP"; then
2934 if test -z "$CPP"; then
2935 if test "${ac_cv_prog_CPP+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 # Double quotes because CPP needs to be expanded
2939 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2942 for ac_c_preproc_warn_flag in '' yes
2944 # Use a header file that comes with gcc, so configuring glibc
2945 # with a fresh cross-compiler works.
2946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2947 # <limits.h> exists even on freestanding compilers.
2948 # On the NeXT, cc -E runs the code through the compiler's parser,
2949 # not just through cpp. "Syntax error" is here to catch this case.
2950 cat >conftest.$ac_ext <<_ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2957 # include <limits.h>
2959 # include <assert.h>
2963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2966 grep -v '^ *+' conftest.er1 >conftest.err
2968 cat conftest.err >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } >/dev/null; then
2971 if test -s conftest.err; then
2972 ac_cpp_err=$ac_c_preproc_warn_flag
2973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2980 if test -z "$ac_cpp_err"; then
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2986 # Broken: fails on valid input.
2989 rm -f conftest.err conftest.$ac_ext
2991 # OK, works on sane cases. Now check whether non-existent headers
2992 # can be detected and how.
2993 cat >conftest.$ac_ext <<_ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
2999 #include <ac_nonexistent.h>
3001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3004 grep -v '^ *+' conftest.er1 >conftest.err
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } >/dev/null; then
3009 if test -s conftest.err; then
3010 ac_cpp_err=$ac_c_preproc_warn_flag
3011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3018 if test -z "$ac_cpp_err"; then
3019 # Broken: success on invalid input.
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3025 # Passes both tests.
3029 rm -f conftest.err conftest.$ac_ext
3032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3033 rm -f conftest.err conftest.$ac_ext
3034 if $ac_preproc_ok; then
3046 echo "$as_me:$LINENO: result: $CPP" >&5
3047 echo "${ECHO_T}$CPP" >&6
3049 for ac_c_preproc_warn_flag in '' yes
3051 # Use a header file that comes with gcc, so configuring glibc
3052 # with a fresh cross-compiler works.
3053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3054 # <limits.h> exists even on freestanding compilers.
3055 # On the NeXT, cc -E runs the code through the compiler's parser,
3056 # not just through cpp. "Syntax error" is here to catch this case.
3057 cat >conftest.$ac_ext <<_ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3064 # include <limits.h>
3066 # include <assert.h>
3070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3073 grep -v '^ *+' conftest.er1 >conftest.err
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } >/dev/null; then
3078 if test -s conftest.err; then
3079 ac_cpp_err=$ac_c_preproc_warn_flag
3080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3087 if test -z "$ac_cpp_err"; then
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3093 # Broken: fails on valid input.
3096 rm -f conftest.err conftest.$ac_ext
3098 # OK, works on sane cases. Now check whether non-existent headers
3099 # can be detected and how.
3100 cat >conftest.$ac_ext <<_ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3106 #include <ac_nonexistent.h>
3108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3111 grep -v '^ *+' conftest.er1 >conftest.err
3113 cat conftest.err >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } >/dev/null; then
3116 if test -s conftest.err; then
3117 ac_cpp_err=$ac_c_preproc_warn_flag
3118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3125 if test -z "$ac_cpp_err"; then
3126 # Broken: success on invalid input.
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3132 # Passes both tests.
3136 rm -f conftest.err conftest.$ac_ext
3139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3140 rm -f conftest.err conftest.$ac_ext
3141 if $ac_preproc_ok; then
3144 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3145 See \`config.log' for more details." >&5
3146 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3147 See \`config.log' for more details." >&2;}
3148 { (exit 1); exit 1; }; }
3152 ac_cpp='$CPP $CPPFLAGS'
3153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158 echo "$as_me:$LINENO: checking for inline" >&5
3159 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3160 if test "${ac_cv_c_inline+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 for ac_kw in inline __inline__ __inline; do
3165 cat >conftest.$ac_ext <<_ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3173 static $ac_kw foo_t static_foo () {return 0; }
3174 $ac_kw foo_t foo () {return 0; }
3178 rm -f conftest.$ac_objext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180 (eval $ac_compile) 2>conftest.er1
3182 grep -v '^ *+' conftest.er1 >conftest.err
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -z "$ac_c_werror_flag"
3188 || test ! -s conftest.err'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 ac_cv_c_inline=$ac_kw; break
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3210 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3211 echo "${ECHO_T}$ac_cv_c_inline" >&6
3214 case $ac_cv_c_inline in
3217 case $ac_cv_c_inline in
3219 *) ac_val=$ac_cv_c_inline;;
3221 cat >>confdefs.h <<_ACEOF
3223 #define inline $ac_val
3230 # sizeof(char) is 1 by definition.
3232 echo "$as_me:$LINENO: checking for egrep" >&5
3233 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3234 if test "${ac_cv_prog_egrep+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3238 then ac_cv_prog_egrep='grep -E'
3239 else ac_cv_prog_egrep='egrep'
3242 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3243 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3244 EGREP=$ac_cv_prog_egrep
3247 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3248 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3249 if test "${ac_cv_header_stdc+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 cat >conftest.$ac_ext <<_ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3271 rm -f conftest.$ac_objext
3272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3273 (eval $ac_compile) 2>conftest.er1
3275 grep -v '^ *+' conftest.er1 >conftest.err
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } &&
3280 { ac_try='test -z "$ac_c_werror_flag"
3281 || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_cv_header_stdc=yes
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 ac_cv_header_stdc=no
3300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3302 if test $ac_cv_header_stdc = yes; then
3303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3304 cat >conftest.$ac_ext <<_ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3314 $EGREP "memchr" >/dev/null 2>&1; then
3317 ac_cv_header_stdc=no
3323 if test $ac_cv_header_stdc = yes; then
3324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3325 cat >conftest.$ac_ext <<_ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335 $EGREP "free" >/dev/null 2>&1; then
3338 ac_cv_header_stdc=no
3344 if test $ac_cv_header_stdc = yes; then
3345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3346 if test "$cross_compiling" = yes; then
3349 cat >conftest.$ac_ext <<_ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3356 #if ((' ' & 0x0FF) == 0x020)
3357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3360 # define ISLOWER(c) \
3361 (('a' <= (c) && (c) <= 'i') \
3362 || ('j' <= (c) && (c) <= 'r') \
3363 || ('s' <= (c) && (c) <= 'z'))
3364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3372 for (i = 0; i < 256; i++)
3373 if (XOR (islower (i), ISLOWER (i))
3374 || toupper (i) != TOUPPER (i))
3379 rm -f conftest$ac_exeext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3381 (eval $ac_link) 2>&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3392 echo "$as_me: program exited with status $ac_status" >&5
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3397 ac_cv_header_stdc=no
3399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3403 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3404 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3405 if test $ac_cv_header_stdc = yes; then
3407 cat >>confdefs.h <<\_ACEOF
3408 #define STDC_HEADERS 1
3413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3423 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3424 inttypes.h stdint.h unistd.h
3426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3427 echo "$as_me:$LINENO: checking for $ac_header" >&5
3428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 cat >conftest.$ac_ext <<_ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 $ac_includes_default
3440 #include <$ac_header>
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>conftest.er1
3446 grep -v '^ *+' conftest.er1 >conftest.err
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -z "$ac_c_werror_flag"
3452 || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 eval "$as_ac_Header=yes"
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3469 eval "$as_ac_Header=no"
3471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3476 cat >>confdefs.h <<_ACEOF
3477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3485 echo "$as_me:$LINENO: checking for void *" >&5
3486 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3487 if test "${ac_cv_type_void_p+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 $ac_includes_default
3502 if (sizeof (void *))
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3512 grep -v '^ *+' conftest.er1 >conftest.err
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -z "$ac_c_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 ac_cv_type_void_p=yes
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3535 ac_cv_type_void_p=no
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3539 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3540 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3542 echo "$as_me:$LINENO: checking size of void *" >&5
3543 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3544 if test "${ac_cv_sizeof_void_p+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 if test "$ac_cv_type_void_p" = yes; then
3548 # The cast to unsigned long works around a bug in the HP C Compiler
3549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3551 # This bug is HP SR number 8606223364.
3552 if test "$cross_compiling" = yes; then
3553 # Depending upon the size, compute the lo and hi bounds.
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 $ac_includes_default
3564 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3571 rm -f conftest.$ac_objext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>conftest.er1
3575 grep -v '^ *+' conftest.er1 >conftest.err
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -z "$ac_c_werror_flag"
3581 || test ! -s conftest.err'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3595 cat >conftest.$ac_ext <<_ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601 $ac_includes_default
3605 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3612 rm -f conftest.$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>conftest.er1
3616 grep -v '^ *+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -z "$ac_c_werror_flag"
3622 || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 ac_hi=$ac_mid; break
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 ac_lo=`expr $ac_mid + 1`
3640 if test $ac_lo -le $ac_mid; then
3644 ac_mid=`expr 2 '*' $ac_mid + 1`
3646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3649 echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3652 cat >conftest.$ac_ext <<_ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658 $ac_includes_default
3662 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3669 rm -f conftest.$ac_objext
3670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>conftest.er1
3673 grep -v '^ *+' conftest.er1 >conftest.err
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try='test -z "$ac_c_werror_flag"
3679 || test ! -s conftest.err'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; } &&
3685 { ac_try='test -s conftest.$ac_objext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3693 cat >conftest.$ac_ext <<_ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3699 $ac_includes_default
3703 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>conftest.er1
3714 grep -v '^ *+' conftest.er1 >conftest.err
3716 cat conftest.err >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
3719 { ac_try='test -z "$ac_c_werror_flag"
3720 || test ! -s conftest.err'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; } &&
3726 { ac_try='test -s conftest.$ac_objext'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_lo=$ac_mid; break
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 ac_hi=`expr '(' $ac_mid ')' - 1`
3738 if test $ac_mid -le $ac_hi; then
3742 ac_mid=`expr 2 '*' $ac_mid`
3744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3755 # Binary search between lo and hi bounds.
3756 while test "x$ac_lo" != "x$ac_hi"; do
3757 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
3768 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3775 rm -f conftest.$ac_objext
3776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3777 (eval $ac_compile) 2>conftest.er1
3779 grep -v '^ *+' conftest.er1 >conftest.err
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try='test -z "$ac_c_werror_flag"
3785 || test ! -s conftest.err'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; } &&
3791 { ac_try='test -s conftest.$ac_objext'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3802 ac_lo=`expr '(' $ac_mid ')' + 1`
3804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3807 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3808 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3809 See \`config.log' for more details." >&5
3810 echo "$as_me: error: cannot compute sizeof (void *), 77
3811 See \`config.log' for more details." >&2;}
3812 { (exit 1); exit 1; }; } ;;
3815 if test "$cross_compiling" = yes; then
3816 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3817 See \`config.log' for more details." >&5
3818 echo "$as_me: error: cannot run test program while cross compiling
3819 See \`config.log' for more details." >&2;}
3820 { (exit 1); exit 1; }; }
3822 cat >conftest.$ac_ext <<_ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3828 $ac_includes_default
3829 long longval () { return (long) (sizeof (void *)); }
3830 unsigned long ulongval () { return (long) (sizeof (void *)); }
3837 FILE *f = fopen ("conftest.val", "w");
3840 if (((long) (sizeof (void *))) < 0)
3842 long i = longval ();
3843 if (i != ((long) (sizeof (void *))))
3845 fprintf (f, "%ld\n", i);
3849 unsigned long i = ulongval ();
3850 if (i != ((long) (sizeof (void *))))
3852 fprintf (f, "%lu\n", i);
3854 exit (ferror (f) || fclose (f) != 0);
3860 rm -f conftest$ac_exeext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3862 (eval $ac_link) 2>&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3871 ac_cv_sizeof_void_p=`cat conftest.val`
3873 echo "$as_me: program exited with status $ac_status" >&5
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3878 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3879 See \`config.log' for more details." >&5
3880 echo "$as_me: error: cannot compute sizeof (void *), 77
3881 See \`config.log' for more details." >&2;}
3882 { (exit 1); exit 1; }; }
3884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3889 ac_cv_sizeof_void_p=0
3892 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3893 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3894 cat >>confdefs.h <<_ACEOF
3895 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3899 echo "$as_me:$LINENO: checking for short" >&5
3900 echo $ECHO_N "checking for short... $ECHO_C" >&6
3901 if test "${ac_cv_type_short+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 cat >conftest.$ac_ext <<_ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910 $ac_includes_default
3922 rm -f conftest.$ac_objext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924 (eval $ac_compile) 2>conftest.er1
3926 grep -v '^ *+' conftest.er1 >conftest.err
3928 cat conftest.err >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try='test -z "$ac_c_werror_flag"
3932 || test ! -s conftest.err'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; } &&
3938 { ac_try='test -s conftest.$ac_objext'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3944 ac_cv_type_short=yes
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3953 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3954 echo "${ECHO_T}$ac_cv_type_short" >&6
3956 echo "$as_me:$LINENO: checking size of short" >&5
3957 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3958 if test "${ac_cv_sizeof_short+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if test "$ac_cv_type_short" = yes; then
3962 # The cast to unsigned long works around a bug in the HP C Compiler
3963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3965 # This bug is HP SR number 8606223364.
3966 if test "$cross_compiling" = yes; then
3967 # Depending upon the size, compute the lo and hi bounds.
3968 cat >conftest.$ac_ext <<_ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3974 $ac_includes_default
3978 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3985 rm -f conftest.$ac_objext
3986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>conftest.er1
3989 grep -v '^ *+' conftest.er1 >conftest.err
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try='test -z "$ac_c_werror_flag"
3995 || test ! -s conftest.err'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest.$ac_objext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 $ac_includes_default
4019 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4026 rm -f conftest.$ac_objext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>conftest.er1
4030 grep -v '^ *+' conftest.er1 >conftest.err
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -z "$ac_c_werror_flag"
4036 || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try='test -s conftest.$ac_objext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 ac_hi=$ac_mid; break
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4053 ac_lo=`expr $ac_mid + 1`
4054 if test $ac_lo -le $ac_mid; then
4058 ac_mid=`expr 2 '*' $ac_mid + 1`
4060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 cat >conftest.$ac_ext <<_ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 $ac_includes_default
4076 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4083 rm -f conftest.$ac_objext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>conftest.er1
4087 grep -v '^ *+' conftest.er1 >conftest.err
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag"
4093 || test ! -s conftest.err'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; } &&
4099 { ac_try='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 $ac_includes_default
4117 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4124 rm -f conftest.$ac_objext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126 (eval $ac_compile) 2>conftest.er1
4128 grep -v '^ *+' conftest.er1 >conftest.err
4130 cat conftest.err >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } &&
4133 { ac_try='test -z "$ac_c_werror_flag"
4134 || test ! -s conftest.err'
4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 ac_lo=$ac_mid; break
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4151 ac_hi=`expr '(' $ac_mid ')' - 1`
4152 if test $ac_mid -le $ac_hi; then
4156 ac_mid=`expr 2 '*' $ac_mid`
4158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4169 # Binary search between lo and hi bounds.
4170 while test "x$ac_lo" != "x$ac_hi"; do
4171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4172 cat >conftest.$ac_ext <<_ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 $ac_includes_default
4182 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4189 rm -f conftest.$ac_objext
4190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191 (eval $ac_compile) 2>conftest.er1
4193 grep -v '^ *+' conftest.er1 >conftest.err
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 { ac_try='test -z "$ac_c_werror_flag"
4199 || test ! -s conftest.err'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; } &&
4205 { ac_try='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 ac_lo=`expr '(' $ac_mid ')' + 1`
4218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4221 ?*) ac_cv_sizeof_short=$ac_lo;;
4222 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4223 See \`config.log' for more details." >&5
4224 echo "$as_me: error: cannot compute sizeof (short), 77
4225 See \`config.log' for more details." >&2;}
4226 { (exit 1); exit 1; }; } ;;
4229 if test "$cross_compiling" = yes; then
4230 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4231 See \`config.log' for more details." >&5
4232 echo "$as_me: error: cannot run test program while cross compiling
4233 See \`config.log' for more details." >&2;}
4234 { (exit 1); exit 1; }; }
4236 cat >conftest.$ac_ext <<_ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242 $ac_includes_default
4243 long longval () { return (long) (sizeof (short)); }
4244 unsigned long ulongval () { return (long) (sizeof (short)); }
4251 FILE *f = fopen ("conftest.val", "w");
4254 if (((long) (sizeof (short))) < 0)
4256 long i = longval ();
4257 if (i != ((long) (sizeof (short))))
4259 fprintf (f, "%ld\n", i);
4263 unsigned long i = ulongval ();
4264 if (i != ((long) (sizeof (short))))
4266 fprintf (f, "%lu\n", i);
4268 exit (ferror (f) || fclose (f) != 0);
4274 rm -f conftest$ac_exeext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4276 (eval $ac_link) 2>&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 ac_cv_sizeof_short=`cat conftest.val`
4287 echo "$as_me: program exited with status $ac_status" >&5
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4293 See \`config.log' for more details." >&5
4294 echo "$as_me: error: cannot compute sizeof (short), 77
4295 See \`config.log' for more details." >&2;}
4296 { (exit 1); exit 1; }; }
4298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4303 ac_cv_sizeof_short=0
4306 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4307 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4308 cat >>confdefs.h <<_ACEOF
4309 #define SIZEOF_SHORT $ac_cv_sizeof_short
4313 echo "$as_me:$LINENO: checking for int" >&5
4314 echo $ECHO_N "checking for int... $ECHO_C" >&6
4315 if test "${ac_cv_type_int+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4324 $ac_includes_default
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4367 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4368 echo "${ECHO_T}$ac_cv_type_int" >&6
4370 echo "$as_me:$LINENO: checking size of int" >&5
4371 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4372 if test "${ac_cv_sizeof_int+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 if test "$ac_cv_type_int" = yes; then
4376 # The cast to unsigned long works around a bug in the HP C Compiler
4377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4379 # This bug is HP SR number 8606223364.
4380 if test "$cross_compiling" = yes; then
4381 # Depending upon the size, compute the lo and hi bounds.
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 $ac_includes_default
4392 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4399 rm -f conftest.$ac_objext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401 (eval $ac_compile) 2>conftest.er1
4403 grep -v '^ *+' conftest.er1 >conftest.err
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -z "$ac_c_werror_flag"
4409 || test ! -s conftest.err'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; } &&
4415 { ac_try='test -s conftest.$ac_objext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4423 cat >conftest.$ac_ext <<_ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 $ac_includes_default
4433 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4440 rm -f conftest.$ac_objext
4441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4442 (eval $ac_compile) 2>conftest.er1
4444 grep -v '^ *+' conftest.er1 >conftest.err
4446 cat conftest.err >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } &&
4449 { ac_try='test -z "$ac_c_werror_flag"
4450 || test ! -s conftest.err'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; } &&
4456 { ac_try='test -s conftest.$ac_objext'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4462 ac_hi=$ac_mid; break
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_lo=`expr $ac_mid + 1`
4468 if test $ac_lo -le $ac_mid; then
4472 ac_mid=`expr 2 '*' $ac_mid + 1`
4474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 cat >conftest.$ac_ext <<_ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 $ac_includes_default
4490 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4497 rm -f conftest.$ac_objext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>conftest.er1
4501 grep -v '^ *+' conftest.er1 >conftest.err
4503 cat conftest.err >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } &&
4506 { ac_try='test -z "$ac_c_werror_flag"
4507 || test ! -s conftest.err'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; } &&
4513 { ac_try='test -s conftest.$ac_objext'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4521 cat >conftest.$ac_ext <<_ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 $ac_includes_default
4531 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4538 rm -f conftest.$ac_objext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>conftest.er1
4542 grep -v '^ *+' conftest.er1 >conftest.err
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_lo=$ac_mid; break
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 ac_hi=`expr '(' $ac_mid ')' - 1`
4566 if test $ac_mid -le $ac_hi; then
4570 ac_mid=`expr 2 '*' $ac_mid`
4572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583 # Binary search between lo and hi bounds.
4584 while test "x$ac_lo" != "x$ac_hi"; do
4585 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4586 cat >conftest.$ac_ext <<_ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 $ac_includes_default
4596 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4603 rm -f conftest.$ac_objext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>conftest.er1
4607 grep -v '^ *+' conftest.er1 >conftest.err
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } &&
4612 { ac_try='test -z "$ac_c_werror_flag"
4613 || test ! -s conftest.err'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; } &&
4619 { ac_try='test -s conftest.$ac_objext'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 ac_lo=`expr '(' $ac_mid ')' + 1`
4632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635 ?*) ac_cv_sizeof_int=$ac_lo;;
4636 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4637 See \`config.log' for more details." >&5
4638 echo "$as_me: error: cannot compute sizeof (int), 77
4639 See \`config.log' for more details." >&2;}
4640 { (exit 1); exit 1; }; } ;;
4643 if test "$cross_compiling" = yes; then
4644 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4645 See \`config.log' for more details." >&5
4646 echo "$as_me: error: cannot run test program while cross compiling
4647 See \`config.log' for more details." >&2;}
4648 { (exit 1); exit 1; }; }
4650 cat >conftest.$ac_ext <<_ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 $ac_includes_default
4657 long longval () { return (long) (sizeof (int)); }
4658 unsigned long ulongval () { return (long) (sizeof (int)); }
4665 FILE *f = fopen ("conftest.val", "w");
4668 if (((long) (sizeof (int))) < 0)
4670 long i = longval ();
4671 if (i != ((long) (sizeof (int))))
4673 fprintf (f, "%ld\n", i);
4677 unsigned long i = ulongval ();
4678 if (i != ((long) (sizeof (int))))
4680 fprintf (f, "%lu\n", i);
4682 exit (ferror (f) || fclose (f) != 0);
4688 rm -f conftest$ac_exeext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4690 (eval $ac_link) 2>&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4699 ac_cv_sizeof_int=`cat conftest.val`
4701 echo "$as_me: program exited with status $ac_status" >&5
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4706 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4707 See \`config.log' for more details." >&5
4708 echo "$as_me: error: cannot compute sizeof (int), 77
4709 See \`config.log' for more details." >&2;}
4710 { (exit 1); exit 1; }; }
4712 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4720 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4721 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4722 cat >>confdefs.h <<_ACEOF
4723 #define SIZEOF_INT $ac_cv_sizeof_int
4727 echo "$as_me:$LINENO: checking for long" >&5
4728 echo $ECHO_N "checking for long... $ECHO_C" >&6
4729 if test "${ac_cv_type_long+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 cat >conftest.$ac_ext <<_ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 $ac_includes_default
4750 rm -f conftest.$ac_objext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752 (eval $ac_compile) 2>conftest.er1
4754 grep -v '^ *+' conftest.er1 >conftest.err
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try='test -z "$ac_c_werror_flag"
4760 || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest.$ac_objext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4781 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4782 echo "${ECHO_T}$ac_cv_type_long" >&6
4784 echo "$as_me:$LINENO: checking size of long" >&5
4785 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4786 if test "${ac_cv_sizeof_long+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 if test "$ac_cv_type_long" = yes; then
4790 # The cast to unsigned long works around a bug in the HP C Compiler
4791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4793 # This bug is HP SR number 8606223364.
4794 if test "$cross_compiling" = yes; then
4795 # Depending upon the size, compute the lo and hi bounds.
4796 cat >conftest.$ac_ext <<_ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4802 $ac_includes_default
4806 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4813 rm -f conftest.$ac_objext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815 (eval $ac_compile) 2>conftest.er1
4817 grep -v '^ *+' conftest.er1 >conftest.err
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -z "$ac_c_werror_flag"
4823 || test ! -s conftest.err'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; } &&
4829 { ac_try='test -s conftest.$ac_objext'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; }; then
4837 cat >conftest.$ac_ext <<_ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 $ac_includes_default
4847 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>conftest.er1
4858 grep -v '^ *+' conftest.er1 >conftest.err
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -z "$ac_c_werror_flag"
4864 || test ! -s conftest.err'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; } &&
4870 { ac_try='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 ac_hi=$ac_mid; break
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 ac_lo=`expr $ac_mid + 1`
4882 if test $ac_lo -le $ac_mid; then
4886 ac_mid=`expr 2 '*' $ac_mid + 1`
4888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4894 cat >conftest.$ac_ext <<_ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 $ac_includes_default
4904 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913 (eval $ac_compile) 2>conftest.er1
4915 grep -v '^ *+' conftest.er1 >conftest.err
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } &&
4920 { ac_try='test -z "$ac_c_werror_flag"
4921 || test ! -s conftest.err'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; } &&
4927 { ac_try='test -s conftest.$ac_objext'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4935 cat >conftest.$ac_ext <<_ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 $ac_includes_default
4945 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4952 rm -f conftest.$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954 (eval $ac_compile) 2>conftest.er1
4956 grep -v '^ *+' conftest.er1 >conftest.err
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } &&
4961 { ac_try='test -z "$ac_c_werror_flag"
4962 || test ! -s conftest.err'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; } &&
4968 { ac_try='test -s conftest.$ac_objext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 ac_lo=$ac_mid; break
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4979 ac_hi=`expr '(' $ac_mid ')' - 1`
4980 if test $ac_mid -le $ac_hi; then
4984 ac_mid=`expr 2 '*' $ac_mid`
4986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4997 # Binary search between lo and hi bounds.
4998 while test "x$ac_lo" != "x$ac_hi"; do
4999 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5000 cat >conftest.$ac_ext <<_ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 $ac_includes_default
5010 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5017 rm -f conftest.$ac_objext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019 (eval $ac_compile) 2>conftest.er1
5021 grep -v '^ *+' conftest.er1 >conftest.err
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try='test -z "$ac_c_werror_flag"
5027 || test ! -s conftest.err'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; } &&
5033 { ac_try='test -s conftest.$ac_objext'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5044 ac_lo=`expr '(' $ac_mid ')' + 1`
5046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5049 ?*) ac_cv_sizeof_long=$ac_lo;;
5050 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5051 See \`config.log' for more details." >&5
5052 echo "$as_me: error: cannot compute sizeof (long), 77
5053 See \`config.log' for more details." >&2;}
5054 { (exit 1); exit 1; }; } ;;
5057 if test "$cross_compiling" = yes; then
5058 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5059 See \`config.log' for more details." >&5
5060 echo "$as_me: error: cannot run test program while cross compiling
5061 See \`config.log' for more details." >&2;}
5062 { (exit 1); exit 1; }; }
5064 cat >conftest.$ac_ext <<_ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 $ac_includes_default
5071 long longval () { return (long) (sizeof (long)); }
5072 unsigned long ulongval () { return (long) (sizeof (long)); }
5079 FILE *f = fopen ("conftest.val", "w");
5082 if (((long) (sizeof (long))) < 0)
5084 long i = longval ();
5085 if (i != ((long) (sizeof (long))))
5087 fprintf (f, "%ld\n", i);
5091 unsigned long i = ulongval ();
5092 if (i != ((long) (sizeof (long))))
5094 fprintf (f, "%lu\n", i);
5096 exit (ferror (f) || fclose (f) != 0);
5102 rm -f conftest$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 ac_cv_sizeof_long=`cat conftest.val`
5115 echo "$as_me: program exited with status $ac_status" >&5
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5120 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: cannot compute sizeof (long), 77
5123 See \`config.log' for more details." >&2;}
5124 { (exit 1); exit 1; }; }
5126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5134 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5135 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5136 cat >>confdefs.h <<_ACEOF
5137 #define SIZEOF_LONG $ac_cv_sizeof_long
5141 echo "$as_me:$LINENO: checking for long long" >&5
5142 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5143 if test "${ac_cv_type_long_long+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 cat >conftest.$ac_ext <<_ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5152 $ac_includes_default
5156 if ((long long *) 0)
5158 if (sizeof (long long))
5164 rm -f conftest.$ac_objext
5165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5166 (eval $ac_compile) 2>conftest.er1
5168 grep -v '^ *+' conftest.er1 >conftest.err
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } &&
5173 { ac_try='test -z "$ac_c_werror_flag"
5174 || test ! -s conftest.err'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; } &&
5180 { ac_try='test -s conftest.$ac_objext'
5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; }; then
5186 ac_cv_type_long_long=yes
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5191 ac_cv_type_long_long=no
5193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5195 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5196 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5197 if test $ac_cv_type_long_long = yes; then
5199 cat >>confdefs.h <<_ACEOF
5200 #define HAVE_LONG_LONG 1
5203 echo "$as_me:$LINENO: checking for long long" >&5
5204 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5205 if test "${ac_cv_type_long_long+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 cat >conftest.$ac_ext <<_ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 $ac_includes_default
5218 if ((long long *) 0)
5220 if (sizeof (long long))
5226 rm -f conftest.$ac_objext
5227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5228 (eval $ac_compile) 2>conftest.er1
5230 grep -v '^ *+' conftest.er1 >conftest.err
5232 cat conftest.err >&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } &&
5235 { ac_try='test -z "$ac_c_werror_flag"
5236 || test ! -s conftest.err'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; } &&
5242 { ac_try='test -s conftest.$ac_objext'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 ac_cv_type_long_long=yes
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5253 ac_cv_type_long_long=no
5255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5257 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5258 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5260 echo "$as_me:$LINENO: checking size of long long" >&5
5261 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5262 if test "${ac_cv_sizeof_long_long+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 if test "$ac_cv_type_long_long" = yes; then
5266 # The cast to unsigned long works around a bug in the HP C Compiler
5267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5269 # This bug is HP SR number 8606223364.
5270 if test "$cross_compiling" = yes; then
5271 # Depending upon the size, compute the lo and hi bounds.
5272 cat >conftest.$ac_ext <<_ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 $ac_includes_default
5282 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5289 rm -f conftest.$ac_objext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5291 (eval $ac_compile) 2>conftest.er1
5293 grep -v '^ *+' conftest.er1 >conftest.err
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try='test -z "$ac_c_werror_flag"
5299 || test ! -s conftest.err'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try='test -s conftest.$ac_objext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5313 cat >conftest.$ac_ext <<_ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 $ac_includes_default
5323 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5330 rm -f conftest.$ac_objext
5331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5332 (eval $ac_compile) 2>conftest.er1
5334 grep -v '^ *+' conftest.er1 >conftest.err
5336 cat conftest.err >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } &&
5339 { ac_try='test -z "$ac_c_werror_flag"
5340 || test ! -s conftest.err'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; } &&
5346 { ac_try='test -s conftest.$ac_objext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 ac_hi=$ac_mid; break
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5357 ac_lo=`expr $ac_mid + 1`
5358 if test $ac_lo -le $ac_mid; then
5362 ac_mid=`expr 2 '*' $ac_mid + 1`
5364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376 $ac_includes_default
5380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389 (eval $ac_compile) 2>conftest.er1
5391 grep -v '^ *+' conftest.er1 >conftest.err
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try='test -z "$ac_c_werror_flag"
5397 || test ! -s conftest.err'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; } &&
5403 { ac_try='test -s conftest.$ac_objext'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5411 cat >conftest.$ac_ext <<_ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 $ac_includes_default
5421 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5428 rm -f conftest.$ac_objext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430 (eval $ac_compile) 2>conftest.er1
5432 grep -v '^ *+' conftest.er1 >conftest.err
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } &&
5437 { ac_try='test -z "$ac_c_werror_flag"
5438 || test ! -s conftest.err'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; } &&
5444 { ac_try='test -s conftest.$ac_objext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 ac_lo=$ac_mid; break
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5455 ac_hi=`expr '(' $ac_mid ')' - 1`
5456 if test $ac_mid -le $ac_hi; then
5460 ac_mid=`expr 2 '*' $ac_mid`
5462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473 # Binary search between lo and hi bounds.
5474 while test "x$ac_lo" != "x$ac_hi"; do
5475 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5476 cat >conftest.$ac_ext <<_ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 $ac_includes_default
5486 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5493 rm -f conftest.$ac_objext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5495 (eval $ac_compile) 2>conftest.er1
5497 grep -v '^ *+' conftest.er1 >conftest.err
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -z "$ac_c_werror_flag"
5503 || test ! -s conftest.err'
5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; } &&
5509 { ac_try='test -s conftest.$ac_objext'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5520 ac_lo=`expr '(' $ac_mid ')' + 1`
5522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5525 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5526 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5527 See \`config.log' for more details." >&5
5528 echo "$as_me: error: cannot compute sizeof (long long), 77
5529 See \`config.log' for more details." >&2;}
5530 { (exit 1); exit 1; }; } ;;
5533 if test "$cross_compiling" = yes; then
5534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5535 See \`config.log' for more details." >&5
5536 echo "$as_me: error: cannot run test program while cross compiling
5537 See \`config.log' for more details." >&2;}
5538 { (exit 1); exit 1; }; }
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 $ac_includes_default
5547 long longval () { return (long) (sizeof (long long)); }
5548 unsigned long ulongval () { return (long) (sizeof (long long)); }
5555 FILE *f = fopen ("conftest.val", "w");
5558 if (((long) (sizeof (long long))) < 0)
5560 long i = longval ();
5561 if (i != ((long) (sizeof (long long))))
5563 fprintf (f, "%ld\n", i);
5567 unsigned long i = ulongval ();
5568 if (i != ((long) (sizeof (long long))))
5570 fprintf (f, "%lu\n", i);
5572 exit (ferror (f) || fclose (f) != 0);
5578 rm -f conftest$ac_exeext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580 (eval $ac_link) 2>&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5589 ac_cv_sizeof_long_long=`cat conftest.val`
5591 echo "$as_me: program exited with status $ac_status" >&5
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5597 See \`config.log' for more details." >&5
5598 echo "$as_me: error: cannot compute sizeof (long long), 77
5599 See \`config.log' for more details." >&2;}
5600 { (exit 1); exit 1; }; }
5602 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5607 ac_cv_sizeof_long_long=0
5610 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5611 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5612 cat >>confdefs.h <<_ACEOF
5613 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5619 echo "$as_me:$LINENO: checking for __int64" >&5
5620 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5621 if test "${ac_cv_type___int64+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 cat >conftest.$ac_ext <<_ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 $ac_includes_default
5636 if (sizeof (__int64))
5642 rm -f conftest.$ac_objext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>conftest.er1
5646 grep -v '^ *+' conftest.er1 >conftest.err
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } &&
5651 { ac_try='test -z "$ac_c_werror_flag"
5652 || test ! -s conftest.err'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; } &&
5658 { ac_try='test -s conftest.$ac_objext'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5664 ac_cv_type___int64=yes
5666 echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.$ac_ext >&5
5669 ac_cv_type___int64=no
5671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5673 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5674 echo "${ECHO_T}$ac_cv_type___int64" >&6
5675 if test $ac_cv_type___int64 = yes; then
5677 cat >>confdefs.h <<_ACEOF
5678 #define HAVE___INT64 1
5681 echo "$as_me:$LINENO: checking for __int64" >&5
5682 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5683 if test "${ac_cv_type___int64+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 cat >conftest.$ac_ext <<_ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 $ac_includes_default
5698 if (sizeof (__int64))
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>conftest.er1
5708 grep -v '^ *+' conftest.er1 >conftest.err
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -z "$ac_c_werror_flag"
5714 || test ! -s conftest.err'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try='test -s conftest.$ac_objext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_cv_type___int64=yes
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 ac_cv_type___int64=no
5733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5735 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5736 echo "${ECHO_T}$ac_cv_type___int64" >&6
5738 echo "$as_me:$LINENO: checking size of __int64" >&5
5739 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5740 if test "${ac_cv_sizeof___int64+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 if test "$ac_cv_type___int64" = yes; then
5744 # The cast to unsigned long works around a bug in the HP C Compiler
5745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5747 # This bug is HP SR number 8606223364.
5748 if test "$cross_compiling" = yes; then
5749 # Depending upon the size, compute the lo and hi bounds.
5750 cat >conftest.$ac_ext <<_ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 $ac_includes_default
5760 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>conftest.er1
5771 grep -v '^ *+' conftest.er1 >conftest.err
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -z "$ac_c_werror_flag"
5777 || test ! -s conftest.err'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try='test -s conftest.$ac_objext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5791 cat >conftest.$ac_ext <<_ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5797 $ac_includes_default
5801 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5808 rm -f conftest.$ac_objext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>conftest.er1
5812 grep -v '^ *+' conftest.er1 >conftest.err
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -z "$ac_c_werror_flag"
5818 || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_hi=$ac_mid; break
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5835 ac_lo=`expr $ac_mid + 1`
5836 if test $ac_lo -le $ac_mid; then
5840 ac_mid=`expr 2 '*' $ac_mid + 1`
5842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5848 cat >conftest.$ac_ext <<_ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 $ac_includes_default
5858 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5869 grep -v '^ *+' conftest.er1 >conftest.err
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5889 cat >conftest.$ac_ext <<_ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 $ac_includes_default
5899 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5906 rm -f conftest.$ac_objext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908 (eval $ac_compile) 2>conftest.er1
5910 grep -v '^ *+' conftest.er1 >conftest.err
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try='test -z "$ac_c_werror_flag"
5916 || test ! -s conftest.err'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; } &&
5922 { ac_try='test -s conftest.$ac_objext'
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; }; then
5928 ac_lo=$ac_mid; break
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5933 ac_hi=`expr '(' $ac_mid ')' - 1`
5934 if test $ac_mid -le $ac_hi; then
5938 ac_mid=`expr 2 '*' $ac_mid`
5940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5951 # Binary search between lo and hi bounds.
5952 while test "x$ac_lo" != "x$ac_hi"; do
5953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5954 cat >conftest.$ac_ext <<_ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 $ac_includes_default
5964 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5971 rm -f conftest.$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>conftest.er1
5975 grep -v '^ *+' conftest.er1 >conftest.err
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -z "$ac_c_werror_flag"
5981 || test ! -s conftest.err'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try='test -s conftest.$ac_objext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5998 ac_lo=`expr '(' $ac_mid ')' + 1`
6000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6003 ?*) ac_cv_sizeof___int64=$ac_lo;;
6004 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6005 See \`config.log' for more details." >&5
6006 echo "$as_me: error: cannot compute sizeof (__int64), 77
6007 See \`config.log' for more details." >&2;}
6008 { (exit 1); exit 1; }; } ;;
6011 if test "$cross_compiling" = yes; then
6012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6013 See \`config.log' for more details." >&5
6014 echo "$as_me: error: cannot run test program while cross compiling
6015 See \`config.log' for more details." >&2;}
6016 { (exit 1); exit 1; }; }
6018 cat >conftest.$ac_ext <<_ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 $ac_includes_default
6025 long longval () { return (long) (sizeof (__int64)); }
6026 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6033 FILE *f = fopen ("conftest.val", "w");
6036 if (((long) (sizeof (__int64))) < 0)
6038 long i = longval ();
6039 if (i != ((long) (sizeof (__int64))))
6041 fprintf (f, "%ld\n", i);
6045 unsigned long i = ulongval ();
6046 if (i != ((long) (sizeof (__int64))))
6048 fprintf (f, "%lu\n", i);
6050 exit (ferror (f) || fclose (f) != 0);
6056 rm -f conftest$ac_exeext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 ac_cv_sizeof___int64=`cat conftest.val`
6069 echo "$as_me: program exited with status $ac_status" >&5
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6075 See \`config.log' for more details." >&5
6076 echo "$as_me: error: cannot compute sizeof (__int64), 77
6077 See \`config.log' for more details." >&2;}
6078 { (exit 1); exit 1; }; }
6080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6085 ac_cv_sizeof___int64=0
6088 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6089 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6090 cat >>confdefs.h <<_ACEOF
6091 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6098 # ---------------------
6099 # Warnings and checking
6100 # ---------------------
6102 # Check $CC warning features (if it's GCC).
6103 # We want to use -pedantic, but we don't want warnings about
6106 # * overlong strings
6107 # So, we only use -pedantic if we can disable those warnings.
6109 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6110 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6111 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 save_CFLAGS="$CFLAGS"
6115 CFLAGS="-Wno-long-long"
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"
6134 || test ! -s conftest.err'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; } &&
6140 { ac_try='test -s conftest.$ac_objext'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; }; then
6146 ac_cv_prog_cc_w_no_long_long=yes
6148 echo "$as_me: failed program was:" >&5
6149 sed 's/^/| /' conftest.$ac_ext >&5
6151 ac_cv_prog_cc_w_no_long_long=no
6153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6154 CFLAGS="$save_CFLAGS"
6157 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6158 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6160 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6161 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6162 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 save_CFLAGS="$CFLAGS"
6166 CFLAGS="-Wno-variadic-macros"
6167 cat >conftest.$ac_ext <<_ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6175 rm -f conftest.$ac_objext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6177 (eval $ac_compile) 2>conftest.er1
6179 grep -v '^ *+' conftest.er1 >conftest.err
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } &&
6184 { ac_try='test -z "$ac_c_werror_flag"
6185 || test ! -s conftest.err'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; } &&
6191 { ac_try='test -s conftest.$ac_objext'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
6197 ac_cv_prog_cc_w_no_variadic_macros=yes
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6202 ac_cv_prog_cc_w_no_variadic_macros=no
6204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6205 CFLAGS="$save_CFLAGS"
6208 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6209 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6211 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6212 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6213 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 save_CFLAGS="$CFLAGS"
6217 CFLAGS="-Wno-overlength-strings"
6218 cat >conftest.$ac_ext <<_ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6226 rm -f conftest.$ac_objext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6228 (eval $ac_compile) 2>conftest.er1
6230 grep -v '^ *+' conftest.er1 >conftest.err
6232 cat conftest.err >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -z "$ac_c_werror_flag"
6236 || test ! -s conftest.err'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try='test -s conftest.$ac_objext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 ac_cv_prog_cc_w_no_overlength_strings=yes
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 ac_cv_prog_cc_w_no_overlength_strings=no
6255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6256 CFLAGS="$save_CFLAGS"
6259 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6260 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6263 if test $ac_cv_prog_cc_w_no_long_long = yes \
6264 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6265 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6266 strict_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6269 # Add -Wold-style-definition if it's accepted
6270 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6271 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6272 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 save_CFLAGS="$CFLAGS"
6276 CFLAGS="-Wold-style-definition"
6277 cat >conftest.$ac_ext <<_ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6285 rm -f conftest.$ac_objext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6287 (eval $ac_compile) 2>conftest.er1
6289 grep -v '^ *+' conftest.er1 >conftest.err
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } &&
6294 { ac_try='test -z "$ac_c_werror_flag"
6295 || test ! -s conftest.err'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; } &&
6301 { ac_try='test -s conftest.$ac_objext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_cv_prog_cc_w_old_style_definition=yes
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6312 ac_cv_prog_cc_w_old_style_definition=no
6314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6315 CFLAGS="$save_CFLAGS"
6318 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6319 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6320 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6321 strict_warn="${strict_warn} -Wold-style-definition"
6324 # Add -Wmissing-format-attribute if it's accepted
6325 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6326 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6327 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 save_CFLAGS="$CFLAGS"
6331 CFLAGS="-Wmissing-format-attribute"
6332 cat >conftest.$ac_ext <<_ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6340 rm -f conftest.$ac_objext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>conftest.er1
6344 grep -v '^ *+' conftest.er1 >conftest.err
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try='test -z "$ac_c_werror_flag"
6350 || test ! -s conftest.err'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; } &&
6356 { ac_try='test -s conftest.$ac_objext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6362 ac_cv_prog_cc_w_missing_format_attribute=yes
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6367 ac_cv_prog_cc_w_missing_format_attribute=no
6369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6370 CFLAGS="$save_CFLAGS"
6373 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6374 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6375 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6376 strict_warn="${strict_warn} -Wmissing-format-attribute"
6379 # Enable -Werror, period.
6380 # Check whether --enable-werror_always or --disable-werror_always was given.
6381 if test "${enable_werror_always+set}" = set; then
6382 enableval="$enable_werror_always"
6385 enable_werror_always=no
6387 if test x${enable_werror_always} = xyes ; then
6388 strict_warn="${strict_warn} -Werror"
6392 # Get C++ compatibility warning flag, if supported.
6393 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6394 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6395 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 save_CFLAGS="$CFLAGS"
6399 CFLAGS="-Wc++-compat"
6400 cat >conftest.$ac_ext <<_ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>conftest.er1
6412 grep -v '^ *+' conftest.er1 >conftest.err
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -z "$ac_c_werror_flag"
6418 || test ! -s conftest.err'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest.$ac_objext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 ac_cv_prog_cc_w_cxx_compat=yes
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 ac_cv_prog_cc_w_cxx_compat=no
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438 CFLAGS="$save_CFLAGS"
6441 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6442 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6443 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6444 cxx_compat_warn="-Wc++-compat"
6449 # If the native compiler is GCC, we can enable warnings even in stage1.
6450 # That's useful for people building cross-compilers, or just running a
6453 if test "x$GCC" = "xyes"; then
6454 warn_cflags='$(GCC_WARN_CFLAGS)'
6458 # Enable expensive internal checks
6460 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6464 # Check whether --enable-checking or --disable-checking was given.
6465 if test "${enable_checking+set}" = set; then
6466 enableval="$enable_checking"
6467 ac_checking_flags="${enableval}"
6470 # Determine the default checks.
6471 if test x$is_release = x ; then
6472 ac_checking_flags=yes
6474 ac_checking_flags=release
6477 ac_assert_checking=1
6481 ac_gc_always_collect=
6483 ac_rtlflag_checking=
6484 ac_runtime_checking=1
6486 ac_valgrind_checking=
6487 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6488 for check in $ac_checking_flags
6491 # these set all the flags to specific states
6492 yes) ac_assert_checking=1 ; ac_checking=1 ;
6493 ac_fold_checking= ; ac_gc_checking=1 ;
6494 ac_gc_always_collect= ; ac_rtl_checking= ;
6495 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6496 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6497 no|none) ac_assert_checking= ; ac_checking= ;
6498 ac_fold_checking= ; ac_gc_checking= ;
6499 ac_gc_always_collect= ; ac_rtl_checking= ;
6500 ac_rtlflag_checking= ; ac_runtime_checking= ;
6501 ac_tree_checking= ; ac_valgrind_checking= ;;
6502 all) ac_assert_checking=1 ; ac_checking=1 ;
6503 ac_fold_checking=1 ; ac_gc_checking=1 ;
6504 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6505 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6506 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6507 release) ac_assert_checking=1 ; ac_checking= ;
6508 ac_fold_checking= ; ac_gc_checking= ;
6509 ac_gc_always_collect= ; ac_rtl_checking= ;
6510 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6511 ac_tree_checking= ; ac_valgrind_checking= ;;
6512 # these enable particular checks
6513 assert) ac_assert_checking=1 ;;
6514 fold) ac_fold_checking=1 ;;
6515 gc) ac_gc_checking=1 ;;
6516 gcac) ac_gc_always_collect=1 ;;
6517 misc) ac_checking=1 ;;
6518 rtl) ac_rtl_checking=1 ;;
6519 rtlflag) ac_rtlflag_checking=1 ;;
6520 runtime) ac_runtime_checking=1 ;;
6521 tree) ac_tree_checking=1 ;;
6522 valgrind) ac_valgrind_checking=1 ;;
6523 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6524 echo "$as_me: error: unknown check category $check" >&2;}
6525 { (exit 1); exit 1; }; } ;;
6531 if test x$ac_checking != x ; then
6533 cat >>confdefs.h <<\_ACEOF
6534 #define ENABLE_CHECKING 1
6537 nocommon_flag=-fno-common
6540 if test x$ac_assert_checking != x ; then
6542 cat >>confdefs.h <<\_ACEOF
6543 #define ENABLE_ASSERT_CHECKING 1
6548 if test x$ac_runtime_checking != x ; then
6550 cat >>confdefs.h <<\_ACEOF
6551 #define ENABLE_RUNTIME_CHECKING 1
6555 if test x$ac_tree_checking != x ; then
6557 cat >>confdefs.h <<\_ACEOF
6558 #define ENABLE_TREE_CHECKING 1
6561 TREEBROWSER=tree-browser.o
6564 if test x$ac_rtl_checking != x ; then
6566 cat >>confdefs.h <<\_ACEOF
6567 #define ENABLE_RTL_CHECKING 1
6571 if test x$ac_rtlflag_checking != x ; then
6573 cat >>confdefs.h <<\_ACEOF
6574 #define ENABLE_RTL_FLAG_CHECKING 1
6578 if test x$ac_gc_checking != x ; then
6580 cat >>confdefs.h <<\_ACEOF
6581 #define ENABLE_GC_CHECKING 1
6585 if test x$ac_gc_always_collect != x ; then
6587 cat >>confdefs.h <<\_ACEOF
6588 #define ENABLE_GC_ALWAYS_COLLECT 1
6592 if test x$ac_fold_checking != x ; then
6594 cat >>confdefs.h <<\_ACEOF
6595 #define ENABLE_FOLD_CHECKING 1
6599 valgrind_path_defines=
6602 if test "${ac_cv_header_valgrind_h+set}" = set; then
6603 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6604 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6605 if test "${ac_cv_header_valgrind_h+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6609 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6611 # Is the header compilable?
6612 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6613 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6614 cat >conftest.$ac_ext <<_ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 $ac_includes_default
6621 #include <valgrind.h>
6623 rm -f conftest.$ac_objext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6625 (eval $ac_compile) 2>conftest.er1
6627 grep -v '^ *+' conftest.er1 >conftest.err
6629 cat conftest.err >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } &&
6632 { ac_try='test -z "$ac_c_werror_flag"
6633 || test ! -s conftest.err'
6634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); }; } &&
6639 { ac_try='test -s conftest.$ac_objext'
6640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; }; then
6645 ac_header_compiler=yes
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6650 ac_header_compiler=no
6652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6654 echo "${ECHO_T}$ac_header_compiler" >&6
6656 # Is the header present?
6657 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6658 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6659 cat >conftest.$ac_ext <<_ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6665 #include <valgrind.h>
6667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6670 grep -v '^ *+' conftest.er1 >conftest.err
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } >/dev/null; then
6675 if test -s conftest.err; then
6676 ac_cpp_err=$ac_c_preproc_warn_flag
6677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6684 if test -z "$ac_cpp_err"; then
6685 ac_header_preproc=yes
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6690 ac_header_preproc=no
6692 rm -f conftest.err conftest.$ac_ext
6693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6694 echo "${ECHO_T}$ac_header_preproc" >&6
6696 # So? What about this header?
6697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6699 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6700 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6701 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6702 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6703 ac_header_preproc=yes
6706 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6707 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6708 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6709 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6710 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6711 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6713 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6714 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6715 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6716 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6717 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6720 ## ------------------------------------------ ##
6721 ## Report this to the AC_PACKAGE_NAME lists. ##
6722 ## ------------------------------------------ ##
6725 sed "s/^/$as_me: WARNING: /" >&2
6728 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6729 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6730 if test "${ac_cv_header_valgrind_h+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 ac_cv_header_valgrind_h=$ac_header_preproc
6735 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6736 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6739 if test $ac_cv_header_valgrind_h = yes; then
6747 if test x$ac_valgrind_checking != x ; then
6748 # It is certainly possible that there's valgrind but no valgrind.h.
6749 # GCC relies on making annotations so we must have both.
6750 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6751 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6752 cat >conftest.$ac_ext <<_ACEOF
6755 cat confdefs.h >>conftest.$ac_ext
6756 cat >>conftest.$ac_ext <<_ACEOF
6757 /* end confdefs.h. */
6758 #include <valgrind/memcheck.h>
6759 #ifndef VALGRIND_DISCARD
6760 #error VALGRIND_DISCARD not defined
6763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6766 grep -v '^ *+' conftest.er1 >conftest.err
6768 cat conftest.err >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } >/dev/null; then
6771 if test -s conftest.err; then
6772 ac_cpp_err=$ac_c_preproc_warn_flag
6773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6780 if test -z "$ac_cpp_err"; then
6781 gcc_cv_header_valgrind_memcheck_h=yes
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6786 gcc_cv_header_valgrind_memcheck_h=no
6788 rm -f conftest.err conftest.$ac_ext
6789 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6790 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6791 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6792 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6793 cat >conftest.$ac_ext <<_ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h. */
6799 #include <memcheck.h>
6800 #ifndef VALGRIND_DISCARD
6801 #error VALGRIND_DISCARD not defined
6804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6807 grep -v '^ *+' conftest.er1 >conftest.err
6809 cat conftest.err >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } >/dev/null; then
6812 if test -s conftest.err; then
6813 ac_cpp_err=$ac_c_preproc_warn_flag
6814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6821 if test -z "$ac_cpp_err"; then
6822 gcc_cv_header_memcheck_h=yes
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6827 gcc_cv_header_memcheck_h=no
6829 rm -f conftest.err conftest.$ac_ext
6830 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6831 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6833 # Prepare PATH_SEPARATOR.
6834 # The user is always right.
6835 if test "${PATH_SEPARATOR+set}" != set; then
6836 echo "#! /bin/sh" >conf$$.sh
6837 echo "exit 0" >>conf$$.sh
6839 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6847 # Find out how to test for executable files. Don't use a zero-byte file,
6848 # as systems may use methods other than mode bits to determine executability.
6849 cat >conf$$.file <<_ASEOF
6853 chmod +x conf$$.file
6854 if test -x conf$$.file >/dev/null 2>&1; then
6855 ac_executable_p="test -x"
6857 ac_executable_p="test -f"
6861 # Extract the first word of "valgrind", so it can be a program name with args.
6862 set dummy valgrind; ac_word=$2
6863 echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6865 if test "${ac_cv_path_valgrind_path+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 case "$valgrind_path" in
6870 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6873 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6874 for ac_dir in $PATH; do
6876 test -z "$ac_dir" && ac_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6879 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6880 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6890 valgrind_path="$ac_cv_path_valgrind_path"
6891 if test -n "$valgrind_path"; then
6892 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6893 echo "${ECHO_T}$valgrind_path" >&6
6895 echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6
6899 if test "x$valgrind_path" = "x" \
6900 || (test $have_valgrind_h = no \
6901 && test $gcc_cv_header_memcheck_h = no \
6902 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6903 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6904 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6905 { (exit 1); exit 1; }; }
6907 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6908 valgrind_command="$valgrind_path -q"
6910 cat >>confdefs.h <<\_ACEOF
6911 #define ENABLE_VALGRIND_CHECKING 1
6914 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6916 cat >>confdefs.h <<\_ACEOF
6917 #define HAVE_VALGRIND_MEMCHECK_H 1
6921 if test $gcc_cv_header_memcheck_h = yes; then
6923 cat >>confdefs.h <<\_ACEOF
6924 #define HAVE_MEMCHECK_H 1
6932 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6933 if test "${enable_mapped_location+set}" = set; then
6934 enableval="$enable_mapped_location"
6937 enable_mapped_location=no
6940 if test "$enable_mapped_location" = yes ; then
6942 cat >>confdefs.h <<\_ACEOF
6943 #define USE_MAPPED_LOCATION 1
6948 # Enable code coverage collection
6949 # Check whether --enable-coverage or --disable-coverage was given.
6950 if test "${enable_coverage+set}" = set; then
6951 enableval="$enable_coverage"
6952 case "${enableval}" in
6954 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6957 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6960 # a.k.a. --disable-coverage
6964 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6965 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6966 { (exit 1); exit 1; }; }
6974 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6975 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6976 enableval="$enable_gather_detailed_mem_stats"
6979 enable_gather_detailed_mem_stats=no
6981 if test x$enable_gather_detailed_mem_stats = xyes ; then
6983 cat >>confdefs.h <<\_ACEOF
6984 #define GATHER_STATISTICS 1
6989 # -------------------------------
6990 # Miscenalleous configure options
6991 # -------------------------------
6995 # Check whether --with-stabs or --without-stabs was given.
6996 if test "${with_stabs+set}" = set; then
6997 withval="$with_stabs"
7003 # Determine whether or not multilibs are enabled.
7004 # Check whether --enable-multilib or --disable-multilib was given.
7005 if test "${enable_multilib+set}" = set; then
7006 enableval="$enable_multilib"
7013 # Enable __cxa_atexit for C++.
7014 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7015 if test "${enable___cxa_atexit+set}" = set; then
7016 enableval="$enable___cxa_atexit"
7020 # Enable C extension for decimal float if target supports it.
7021 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7022 if test "${enable_decimal_float+set}" = set; then
7023 enableval="$enable_decimal_float"
7025 case $enable_decimal_float in
7026 yes | no | bid | dpd) ;;
7027 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7028 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7029 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7030 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7031 { (exit 1); exit 1; }; } ;;
7037 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7038 enable_decimal_float=yes
7041 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7042 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7043 enable_decimal_float=no
7049 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7051 cat >>confdefs.h <<_ACEOF
7052 #define ENABLE_DECIMAL_FLOAT $dfp
7056 # x86's use BID format instead of DPD
7057 case x$enable_decimal_float in
7060 i?86*-*-linux* | x86_64*-*-linux*)
7061 enable_decimal_float=bid
7064 enable_decimal_float=dpd
7069 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7070 # dependency on libdecnumber.
7071 enable_decimal_float=dpd
7076 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7078 cat >>confdefs.h <<_ACEOF
7079 #define ENABLE_DECIMAL_BID_FORMAT $bid
7084 # Pass with no value to take the default
7085 # Pass with a value to specify a thread package
7086 # Check whether --enable-threads or --disable-threads was given.
7087 if test "${enable_threads+set}" = set; then
7088 enableval="$enable_threads"
7094 # Check whether --enable-tls or --disable-tls was given.
7095 if test "${enable_tls+set}" = set; then
7096 enableval="$enable_tls"
7100 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7101 Valid choices are 'yes' and 'no'." >&5
7102 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7103 Valid choices are 'yes' and 'no'." >&2;}
7104 { (exit 1); exit 1; }; } ;;
7111 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7112 if test "${enable_objc_gc+set}" = set; then
7113 enableval="$enable_objc_gc"
7114 if test x$enable_objc_gc = xno; then
7124 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7125 if test "${with_dwarf2+set}" = set; then
7126 withval="$with_dwarf2"
7127 dwarf2="$with_dwarf2"
7132 # Check whether --enable-shared or --disable-shared was given.
7133 if test "${enable_shared+set}" = set; then
7134 enableval="$enable_shared"
7136 case $enable_shared in
7140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7141 for pkg in $enableval; do
7142 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7156 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7157 if test "${with_build_sysroot+set}" = set; then
7158 withval="$with_build_sysroot"
7163 # Check whether --with-sysroot or --without-sysroot was given.
7164 if test "${with_sysroot+set}" = set; then
7165 withval="$with_sysroot"
7167 case ${with_sysroot} in
7168 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7169 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7172 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7173 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7175 if test "x$exec_prefix" = xNONE; then
7176 if test "x$prefix" = xNONE; then
7177 test_prefix=/usr/local
7182 test_prefix=$exec_prefix
7184 case ${TARGET_SYSTEM_ROOT} in
7185 "${test_prefix}"|"${test_prefix}/"*|\
7186 '${exec_prefix}'|'${exec_prefix}/'*)
7187 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7188 TARGET_SYSTEM_ROOT_DEFINE="$t"
7195 TARGET_SYSTEM_ROOT_DEFINE=
7196 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7203 # Build with intermodule optimisations
7204 # Check whether --enable-intermodule or --disable-intermodule was given.
7205 if test "${enable_intermodule+set}" = set; then
7206 enableval="$enable_intermodule"
7207 case ${enable_intermodule} in
7208 yes) onestep="-onestep";;
7216 # Sanity check enable_languages in case someone does not run the toplevel
7217 # configure # script.
7218 # Check whether --enable-languages or --disable-languages was given.
7219 if test "${enable_languages+set}" = set; then
7220 enableval="$enable_languages"
7221 case ,${enable_languages}, in
7223 # go safe -- we cannot be much sure without the toplevel
7225 # analysis of which target libs are present and usable
7229 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7230 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7231 { (exit 1); exit 1; }; }
7236 enable_languages=c,${enable_languages}
7243 # Used by documentation targets
7248 # -------------------------
7249 # Checks for other programs
7250 # -------------------------
7252 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7253 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7254 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7255 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 cat >conftest.make <<\_ACEOF
7260 @echo 'ac_maketemp="$(MAKE)"'
7262 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7263 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7264 if test -n "$ac_maketemp"; then
7265 eval ac_cv_prog_make_${ac_make}_set=yes
7267 eval ac_cv_prog_make_${ac_make}_set=no
7271 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7272 echo "$as_me:$LINENO: result: yes" >&5
7273 echo "${ECHO_T}yes" >&6
7276 echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6
7278 SET_MAKE="MAKE=${MAKE-make}"
7282 # Find some useful tools
7283 for ac_prog in gawk mawk nawk awk
7285 # Extract the first word of "$ac_prog", so it can be a program name with args.
7286 set dummy $ac_prog; ac_word=$2
7287 echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7289 if test "${ac_cv_prog_AWK+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 if test -n "$AWK"; then
7293 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_prog_AWK="$ac_prog"
7303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 if test -n "$AWK"; then
7313 echo "$as_me:$LINENO: result: $AWK" >&5
7314 echo "${ECHO_T}$AWK" >&6
7316 echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6
7320 test -n "$AWK" && break
7323 # We need awk to create options.c and options.h.
7324 # Bail out if it's missing.
7326 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7327 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7328 { (exit 1); exit 1; }; } ;;
7331 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7332 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7333 if test "${gcc_cv_prog_LN_S+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 rm -f conftestdata_t
7337 echo >conftestdata_f
7338 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7340 gcc_cv_prog_LN_S="ln -s"
7342 if ln conftestdata_f conftestdata_t 2>/dev/null
7346 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7348 gcc_cv_prog_LN_S="cp -p"
7354 rm -f conftestdata_f conftestdata_t
7357 LN_S="$gcc_cv_prog_LN_S"
7358 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7359 echo "$as_me:$LINENO: result: yes" >&5
7360 echo "${ECHO_T}yes" >&6
7362 if test "$gcc_cv_prog_LN_S" = "ln"; then
7363 echo "$as_me:$LINENO: result: no, using ln" >&5
7364 echo "${ECHO_T}no, using ln" >&6
7366 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7367 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7371 echo "$as_me:$LINENO: checking whether ln works" >&5
7372 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7373 if test "${acx_cv_prog_LN+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 rm -f conftestdata_t
7377 echo >conftestdata_f
7378 if ln conftestdata_f conftestdata_t 2>/dev/null
7384 rm -f conftestdata_f conftestdata_t
7387 if test $acx_cv_prog_LN = no; then
7389 echo "$as_me:$LINENO: result: no, using $LN" >&5
7390 echo "${ECHO_T}no, using $LN" >&6
7392 LN="$acx_cv_prog_LN"
7393 echo "$as_me:$LINENO: result: yes" >&5
7394 echo "${ECHO_T}yes" >&6
7397 if test -n "$ac_tool_prefix"; then
7398 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7399 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7400 echo "$as_me:$LINENO: checking for $ac_word" >&5
7401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7402 if test "${ac_cv_prog_RANLIB+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 if test -n "$RANLIB"; then
7406 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7415 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 RANLIB=$ac_cv_prog_RANLIB
7425 if test -n "$RANLIB"; then
7426 echo "$as_me:$LINENO: result: $RANLIB" >&5
7427 echo "${ECHO_T}$RANLIB" >&6
7429 echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7434 if test -z "$ac_cv_prog_RANLIB"; then
7435 ac_ct_RANLIB=$RANLIB
7436 # Extract the first word of "ranlib", so it can be a program name with args.
7437 set dummy ranlib; ac_word=$2
7438 echo "$as_me:$LINENO: checking for $ac_word" >&5
7439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7440 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 if test -n "$ac_ct_RANLIB"; then
7444 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_ac_ct_RANLIB="ranlib"
7454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7463 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7464 if test -n "$ac_ct_RANLIB"; then
7465 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7466 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7468 echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6
7472 RANLIB=$ac_ct_RANLIB
7474 RANLIB="$ac_cv_prog_RANLIB"
7479 # By default, the Darwin ranlib will not treat common symbols as
7480 # definitions when building the archive table of contents. Other
7481 # ranlibs do that; pass an option to the Darwin ranlib that makes
7482 # it behave similarly.
7490 # Find a good install program. We prefer a C program (faster),
7491 # so one script is as good as another. But avoid the broken or
7492 # incompatible versions:
7493 # SysV /etc/install, /usr/sbin/install
7494 # SunOS /usr/etc/install
7495 # IRIX /sbin/install
7497 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7498 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7499 # ./install, which can be erroneously created by make from ./install.sh.
7500 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7501 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7502 if test -z "$INSTALL"; then
7503 if test "${ac_cv_path_install+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7507 for ac_dir in $PATH; do
7508 # Account for people who put trailing slashes in PATH elements.
7510 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7512 # OSF1 and SCO ODT 3.0 have their own names for install.
7513 for ac_prog in ginstall scoinst install; do
7514 if test -f $ac_dir/$ac_prog; then
7515 if test $ac_prog = install &&
7516 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7517 # AIX install. It has an incompatible calling convention.
7518 # OSF/1 installbsd also uses dspmsg, but is usable.
7521 ac_cv_path_install="$ac_dir/$ac_prog -c"
7532 if test "${ac_cv_path_install+set}" = set; then
7533 INSTALL="$ac_cv_path_install"
7535 # As a last resort, use the slow shell script. We don't cache a
7536 # path for INSTALL within a source directory, because that will
7537 # break other packages using the cache if that directory is
7538 # removed, or if the path is relative.
7539 INSTALL="$ac_install_sh"
7542 echo "$as_me:$LINENO: result: $INSTALL" >&5
7543 echo "${ECHO_T}$INSTALL" >&6
7545 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7546 # It thinks the first close brace ends the variable substitution.
7547 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7549 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7552 # See if cmp has --ignore-initial.
7553 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7554 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7555 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 gcc_cv_prog_cmp_skip=slowcompare
7561 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7562 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7565 gcc_cv_prog_cmp_skip=gnucompare
7568 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7569 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7570 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7573 gcc_cv_prog_cmp_skip=fastcompare
7580 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7581 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7582 make_compare_target=$gcc_cv_prog_cmp_skip
7586 # See if we have the mktemp command.
7587 # Extract the first word of "mktemp", so it can be a program name with args.
7588 set dummy mktemp; ac_word=$2
7589 echo "$as_me:$LINENO: checking for $ac_word" >&5
7590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7591 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 if test -n "$have_mktemp_command"; then
7595 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604 ac_cv_prog_have_mktemp_command="yes"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7614 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7615 if test -n "$have_mktemp_command"; then
7616 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7617 echo "${ECHO_T}$have_mktemp_command" >&6
7619 echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6
7624 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7626 # See if makeinfo has been installed and is modern enough
7627 # that we can use it.
7629 ac_executable_extensions="$build_exeext"
7631 # Extract the first word of "makeinfo", so it can be a program name with args.
7632 set dummy makeinfo; ac_word=$2
7633 echo "$as_me:$LINENO: checking for $ac_word" >&5
7634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7635 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 if test -n "$MAKEINFO"; then
7639 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648 ac_cv_prog_MAKEINFO="makeinfo"
7649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 MAKEINFO=$ac_cv_prog_MAKEINFO
7658 if test -n "$MAKEINFO"; then
7659 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7660 echo "${ECHO_T}$MAKEINFO" >&6
7662 echo "$as_me:$LINENO: result: no" >&5
7663 echo "${ECHO_T}no" >&6
7666 if test -n "$MAKEINFO"; then
7667 # Found it, now check the version.
7668 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7669 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7670 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 ac_prog_version=`$MAKEINFO --version 2>&1 |
7674 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7675 echo "configure:7675: version of makeinfo is $ac_prog_version" >&5
7676 case $ac_prog_version in
7677 '') gcc_cv_prog_makeinfo_modern=no;;
7679 gcc_cv_prog_makeinfo_modern=yes;;
7680 *) gcc_cv_prog_makeinfo_modern=no;;
7684 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7685 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7687 gcc_cv_prog_makeinfo_modern=no
7690 if test $gcc_cv_prog_makeinfo_modern = no; then
7691 MAKEINFO="$MISSING makeinfo"
7692 { echo "$as_me:$LINENO: WARNING:
7693 *** Makeinfo is missing or too old.
7694 *** Info documentation will not be built." >&5
7695 echo "$as_me: WARNING:
7696 *** Makeinfo is missing or too old.
7697 *** Info documentation will not be built." >&2;}
7704 # Is pod2man recent enough to regenerate manpages?
7705 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7706 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7707 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7708 echo "$as_me:$LINENO: result: yes" >&5
7709 echo "${ECHO_T}yes" >&6
7710 GENERATED_MANPAGES=generated-manpages
7712 echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6
7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
7722 set dummy $ac_prog; ac_word=$2
7723 echo "$as_me:$LINENO: checking for $ac_word" >&5
7724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7725 if test "${ac_cv_prog_FLEX+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 if test -n "$FLEX"; then
7729 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7738 ac_cv_prog_FLEX="$ac_prog"
7739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 FLEX=$ac_cv_prog_FLEX
7748 if test -n "$FLEX"; then
7749 echo "$as_me:$LINENO: result: $FLEX" >&5
7750 echo "${ECHO_T}$FLEX" >&6
7752 echo "$as_me:$LINENO: result: no" >&5
7753 echo "${ECHO_T}no" >&6
7756 test -n "$FLEX" && break
7758 test -n "$FLEX" || FLEX="$MISSING flex"
7762 for ac_prog in bison
7764 # Extract the first word of "$ac_prog", so it can be a program name with args.
7765 set dummy $ac_prog; ac_word=$2
7766 echo "$as_me:$LINENO: checking for $ac_word" >&5
7767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7768 if test "${ac_cv_prog_BISON+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 if test -n "$BISON"; then
7772 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781 ac_cv_prog_BISON="$ac_prog"
7782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 BISON=$ac_cv_prog_BISON
7791 if test -n "$BISON"; then
7792 echo "$as_me:$LINENO: result: $BISON" >&5
7793 echo "${ECHO_T}$BISON" >&6
7795 echo "$as_me:$LINENO: result: no" >&5
7796 echo "${ECHO_T}no" >&6
7799 test -n "$BISON" && break
7801 test -n "$BISON" || BISON="$MISSING bison"
7804 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7805 # check for build == host before using them.
7808 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7809 && test -d ../binutils ; then
7810 NM='$(objdir)/../binutils/nm-new'
7812 # Extract the first word of "nm", so it can be a program name with args.
7813 set dummy nm; ac_word=$2
7814 echo "$as_me:$LINENO: checking for $ac_word" >&5
7815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7816 if test "${ac_cv_prog_NM+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 if test -n "$NM"; then
7820 ac_cv_prog_NM="$NM" # Let the user override the test.
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7840 if test -n "$NM"; then
7841 echo "$as_me:$LINENO: result: $NM" >&5
7842 echo "${ECHO_T}$NM" >&6
7844 echo "$as_me:$LINENO: result: no" >&5
7845 echo "${ECHO_T}no" >&6
7851 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7852 && test -d ../binutils ; then
7853 AR='$(objdir)/../binutils/ar'
7855 # Extract the first word of "ar", so it can be a program name with args.
7856 set dummy ar; ac_word=$2
7857 echo "$as_me:$LINENO: checking for $ac_word" >&5
7858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7859 if test "${ac_cv_prog_AR+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 if test -n "$AR"; then
7863 ac_cv_prog_AR="$AR" # Let the user override the test.
7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 test -z "$as_dir" && as_dir=.
7870 for ac_exec_ext in '' $ac_executable_extensions; do
7871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7883 if test -n "$AR"; then
7884 echo "$as_me:$LINENO: result: $AR" >&5
7885 echo "${ECHO_T}$AR" >&6
7887 echo "$as_me:$LINENO: result: no" >&5
7888 echo "${ECHO_T}no" >&6
7894 # --------------------
7895 # Checks for C headers
7896 # --------------------
7898 echo "$as_me:$LINENO: checking for GNU C library" >&5
7899 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7900 if test "${gcc_cv_glibc+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 cat >conftest.$ac_ext <<_ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7909 #include <features.h>
7914 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7915 #error Not a GNU C library system
7921 rm -f conftest.$ac_objext
7922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7923 (eval $ac_compile) 2>conftest.er1
7925 grep -v '^ *+' conftest.er1 >conftest.err
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } &&
7930 { ac_try='test -z "$ac_c_werror_flag"
7931 || test ! -s conftest.err'
7932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); }; } &&
7937 { ac_try='test -s conftest.$ac_objext'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; }; then
7945 echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7953 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7954 echo "${ECHO_T}$gcc_cv_glibc" >&6
7955 if test $gcc_cv_glibc = yes; then
7957 cat >>confdefs.h <<\_ACEOF
7958 #define _GNU_SOURCE 1
7963 # Need to reject headers which give warnings, so that the -Werror bootstrap
7964 # works later. *sigh* This needs to come before all header checks.
7966 ac_c_preproc_warn_flag=yes
7968 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7969 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7970 if test "${ac_cv_header_stdc+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 cat >conftest.$ac_ext <<_ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7992 rm -f conftest.$ac_objext
7993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7994 (eval $ac_compile) 2>conftest.er1
7996 grep -v '^ *+' conftest.er1 >conftest.err
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } &&
8001 { ac_try='test -z "$ac_c_werror_flag"
8002 || test ! -s conftest.err'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; } &&
8008 { ac_try='test -s conftest.$ac_objext'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 ac_cv_header_stdc=yes
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8019 ac_cv_header_stdc=no
8021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8023 if test $ac_cv_header_stdc = yes; then
8024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8025 cat >conftest.$ac_ext <<_ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8035 $EGREP "memchr" >/dev/null 2>&1; then
8038 ac_cv_header_stdc=no
8044 if test $ac_cv_header_stdc = yes; then
8045 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8046 cat >conftest.$ac_ext <<_ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8056 $EGREP "free" >/dev/null 2>&1; then
8059 ac_cv_header_stdc=no
8065 if test $ac_cv_header_stdc = yes; then
8066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8067 if test "$cross_compiling" = yes; then
8070 cat >conftest.$ac_ext <<_ACEOF
8073 cat confdefs.h >>conftest.$ac_ext
8074 cat >>conftest.$ac_ext <<_ACEOF
8075 /* end confdefs.h. */
8077 #if ((' ' & 0x0FF) == 0x020)
8078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8081 # define ISLOWER(c) \
8082 (('a' <= (c) && (c) <= 'i') \
8083 || ('j' <= (c) && (c) <= 'r') \
8084 || ('s' <= (c) && (c) <= 'z'))
8085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8093 for (i = 0; i < 256; i++)
8094 if (XOR (islower (i), ISLOWER (i))
8095 || toupper (i) != TOUPPER (i))
8100 rm -f conftest$ac_exeext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8102 (eval $ac_link) 2>&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; }; then
8113 echo "$as_me: program exited with status $ac_status" >&5
8114 echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8118 ac_cv_header_stdc=no
8120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8124 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8125 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8126 if test $ac_cv_header_stdc = yes; then
8128 cat >>confdefs.h <<\_ACEOF
8129 #define STDC_HEADERS 1
8134 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8135 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8136 if test "${ac_cv_header_time+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 cat >conftest.$ac_ext <<_ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8145 #include <sys/types.h>
8146 #include <sys/time.h>
8152 if ((struct tm *) 0)
8158 rm -f conftest.$ac_objext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8160 (eval $ac_compile) 2>conftest.er1
8162 grep -v '^ *+' conftest.er1 >conftest.err
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } &&
8167 { ac_try='test -z "$ac_c_werror_flag"
8168 || test ! -s conftest.err'
8169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; } &&
8174 { ac_try='test -s conftest.$ac_objext'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8180 ac_cv_header_time=yes
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8185 ac_cv_header_time=no
8187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8189 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8190 echo "${ECHO_T}$ac_cv_header_time" >&6
8191 if test $ac_cv_header_time = yes; then
8193 cat >>confdefs.h <<\_ACEOF
8194 #define TIME_WITH_SYS_TIME 1
8199 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8200 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8201 if test "${gcc_cv_header_string+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 cat >conftest.$ac_ext <<_ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8211 #include <strings.h>
8220 rm -f conftest.$ac_objext
8221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8222 (eval $ac_compile) 2>conftest.er1
8224 grep -v '^ *+' conftest.er1 >conftest.err
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } &&
8229 { ac_try='test -z "$ac_c_werror_flag"
8230 || test ! -s conftest.err'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; } &&
8236 { ac_try='test -s conftest.$ac_objext'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; }; then
8242 gcc_cv_header_string=yes
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8247 gcc_cv_header_string=no
8249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8251 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8252 echo "${ECHO_T}$gcc_cv_header_string" >&6
8253 if test $gcc_cv_header_string = yes; then
8255 cat >>confdefs.h <<\_ACEOF
8256 #define STRING_WITH_STRINGS 1
8261 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8262 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8263 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 cat >conftest.$ac_ext <<_ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 #include <sys/types.h>
8273 #include <sys/wait.h>
8275 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8278 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8286 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8291 rm -f conftest.$ac_objext
8292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8293 (eval $ac_compile) 2>conftest.er1
8295 grep -v '^ *+' conftest.er1 >conftest.err
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } &&
8300 { ac_try='test -z "$ac_c_werror_flag"
8301 || test ! -s conftest.err'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; } &&
8307 { ac_try='test -s conftest.$ac_objext'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313 ac_cv_header_sys_wait_h=yes
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8318 ac_cv_header_sys_wait_h=no
8320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8322 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8323 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8324 if test $ac_cv_header_sys_wait_h = yes; then
8326 cat >>confdefs.h <<\_ACEOF
8327 #define HAVE_SYS_WAIT_H 1
8354 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8355 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8356 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8357 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8360 echo "$as_me:$LINENO: checking for $ac_header" >&5
8361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 #include <$ac_header>
8373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8374 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
8381 if test -s conftest.err; then
8382 ac_cpp_err=$ac_c_preproc_warn_flag
8383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8390 if test -z "$ac_cpp_err"; then
8391 eval "$as_ac_Header=yes"
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8396 eval "$as_ac_Header=no"
8398 rm -f conftest.err conftest.$ac_ext
8400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8403 cat >>confdefs.h <<_ACEOF
8404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8411 # Check for thread headers.
8412 echo "$as_me:$LINENO: checking for thread.h" >&5
8413 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8414 if test "${ac_cv_header_thread_h+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 cat >conftest.$ac_ext <<_ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8428 grep -v '^ *+' conftest.er1 >conftest.err
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } >/dev/null; then
8433 if test -s conftest.err; then
8434 ac_cpp_err=$ac_c_preproc_warn_flag
8435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8442 if test -z "$ac_cpp_err"; then
8443 ac_cv_header_thread_h=yes
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8448 ac_cv_header_thread_h=no
8450 rm -f conftest.err conftest.$ac_ext
8452 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8453 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8454 if test $ac_cv_header_thread_h = yes; then
8460 echo "$as_me:$LINENO: checking for pthread.h" >&5
8461 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8462 if test "${ac_cv_header_pthread_h+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 cat >conftest.$ac_ext <<_ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471 #include <pthread.h>
8473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8476 grep -v '^ *+' conftest.er1 >conftest.err
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } >/dev/null; then
8481 if test -s conftest.err; then
8482 ac_cpp_err=$ac_c_preproc_warn_flag
8483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8490 if test -z "$ac_cpp_err"; then
8491 ac_cv_header_pthread_h=yes
8493 echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8496 ac_cv_header_pthread_h=no
8498 rm -f conftest.err conftest.$ac_ext
8500 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8501 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8502 if test $ac_cv_header_pthread_h = yes; then
8509 # These tests can't be done till we know if we have limits.h.
8510 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8511 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8512 if test "${gcc_cv_decl_char_bit+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 cat >conftest.$ac_ext <<_ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8521 #ifdef HAVE_LIMITS_H
8528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8529 $EGREP "found" >/dev/null 2>&1; then
8530 gcc_cv_decl_char_bit=yes
8532 gcc_cv_decl_char_bit=no
8538 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8539 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8540 if test $gcc_cv_decl_char_bit = no; then
8541 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8542 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8543 if test "${gcc_cv_c_nbby+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 while test $i -lt 65; do
8549 cat >conftest.$ac_ext <<_ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8560 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8561 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8567 rm -f conftest.$ac_objext
8568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8569 (eval $ac_compile) 2>conftest.er1
8571 grep -v '^ *+' conftest.er1 >conftest.err
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } &&
8576 { ac_try='test -z "$ac_c_werror_flag"
8577 || test ! -s conftest.err'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; } &&
8583 { ac_try='test -s conftest.$ac_objext'
8584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); }; }; then
8589 gcc_cv_c_nbby=$i; break
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8598 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8601 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8602 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8603 if test $gcc_cv_c_nbby = failed; then
8604 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8605 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8606 { (exit 1); exit 1; }; }
8609 cat >>confdefs.h <<_ACEOF
8610 #define CHAR_BIT $gcc_cv_c_nbby
8615 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8616 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8617 if test "${ac_cv_c_bigendian+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 # See if sys/param.h defines the BYTE_ORDER macro.
8621 cat >conftest.$ac_ext <<_ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8627 #include <sys/types.h>
8628 #include <sys/param.h>
8633 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8641 rm -f conftest.$ac_objext
8642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8643 (eval $ac_compile) 2>conftest.er1
8645 grep -v '^ *+' conftest.er1 >conftest.err
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } &&
8650 { ac_try='test -z "$ac_c_werror_flag"
8651 || test ! -s conftest.err'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; } &&
8657 { ac_try='test -s conftest.$ac_objext'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; }; then
8663 # It does; now see whether it defined to BIG_ENDIAN or not.
8664 cat >conftest.$ac_ext <<_ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670 #include <sys/types.h>
8671 #include <sys/param.h>
8676 #if BYTE_ORDER != BIG_ENDIAN
8684 rm -f conftest.$ac_objext
8685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8686 (eval $ac_compile) 2>conftest.er1
8688 grep -v '^ *+' conftest.er1 >conftest.err
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
8693 { ac_try='test -z "$ac_c_werror_flag"
8694 || test ! -s conftest.err'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; } &&
8700 { ac_try='test -s conftest.$ac_objext'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 ac_cv_c_bigendian=yes
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8711 ac_cv_c_bigendian=no
8713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8718 # It does not; compile a test program.
8719 if test "$cross_compiling" = yes; then
8720 # try to guess the endianness by grepping values into an object file
8721 ac_cv_c_bigendian=unknown
8722 cat >conftest.$ac_ext <<_ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8729 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8730 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8731 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8732 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8733 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8737 _ascii (); _ebcdic ();
8742 rm -f conftest.$ac_objext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8744 (eval $ac_compile) 2>conftest.er1
8746 grep -v '^ *+' conftest.er1 >conftest.err
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -z "$ac_c_werror_flag"
8752 || test ! -s conftest.err'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try='test -s conftest.$ac_objext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8765 ac_cv_c_bigendian=yes
8767 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8768 if test "$ac_cv_c_bigendian" = unknown; then
8769 ac_cv_c_bigendian=no
8771 # finding both strings is unlikely to happen, but who knows?
8772 ac_cv_c_bigendian=unknown
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8782 cat >conftest.$ac_ext <<_ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8791 /* Are we little or big endian? From Harbison&Steele. */
8795 char c[sizeof (long)];
8798 exit (u.c[sizeof (long) - 1] == 1);
8801 rm -f conftest$ac_exeext
8802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8803 (eval $ac_link) 2>&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; }; then
8812 ac_cv_c_bigendian=no
8814 echo "$as_me: program exited with status $ac_status" >&5
8815 echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8819 ac_cv_c_bigendian=yes
8821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8826 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8827 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8828 case $ac_cv_c_bigendian in
8831 cat >>confdefs.h <<\_ACEOF
8832 #define WORDS_BIGENDIAN 1
8838 { { echo "$as_me:$LINENO: error: unknown endianness
8839 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8840 echo "$as_me: error: unknown endianness
8841 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8842 { (exit 1); exit 1; }; } ;;
8851 # These libraries may be used by collect2.
8852 # We may need a special search path to get them linked.
8853 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8854 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8855 if test "${gcc_cv_collect2_libs+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 for libs in '' -lld -lmld \
8860 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8861 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8864 cat >conftest.$ac_ext <<_ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8871 /* Override any gcc2 internal prototype to avoid an error. */
8875 /* We use char because int might match the return type of a gcc2
8876 builtin and then its argument prototype would still apply. */
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888 (eval $ac_link) 2>conftest.er1
8890 grep -v '^ *+' conftest.er1 >conftest.err
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try='test -z "$ac_c_werror_flag"
8896 || test ! -s conftest.err'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try='test -s conftest$ac_exeext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 gcc_cv_collect2_libs="$libs"; break
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8914 rm -f conftest.err conftest.$ac_objext \
8915 conftest$ac_exeext conftest.$ac_ext
8918 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8920 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8921 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8922 case $gcc_cv_collect2_libs in
8924 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8928 # When building Ada code on Alpha, we need exc_resume which is usually in
8929 # -lexc. So test for it.
8932 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8933 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8934 if test "${ac_cv_search_exc_resume+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 ac_func_search_save_LIBS=$LIBS
8938 ac_cv_search_exc_resume=no
8939 cat >conftest.$ac_ext <<_ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8946 /* Override any gcc2 internal prototype to avoid an error. */
8950 /* We use char because int might match the return type of a gcc2
8951 builtin and then its argument prototype would still apply. */
8961 rm -f conftest.$ac_objext conftest$ac_exeext
8962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8963 (eval $ac_link) 2>conftest.er1
8965 grep -v '^ *+' conftest.er1 >conftest.err
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } &&
8970 { ac_try='test -z "$ac_c_werror_flag"
8971 || 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_exeext'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; }; then
8983 ac_cv_search_exc_resume="none required"
8985 echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8989 rm -f conftest.err conftest.$ac_objext \
8990 conftest$ac_exeext conftest.$ac_ext
8991 if test "$ac_cv_search_exc_resume" = no; then
8992 for ac_lib in exc; do
8993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8994 cat >conftest.$ac_ext <<_ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9001 /* Override any gcc2 internal prototype to avoid an error. */
9005 /* We use char because int might match the return type of a gcc2
9006 builtin and then its argument prototype would still apply. */
9016 rm -f conftest.$ac_objext conftest$ac_exeext
9017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9018 (eval $ac_link) 2>conftest.er1
9020 grep -v '^ *+' conftest.er1 >conftest.err
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } &&
9025 { ac_try='test -z "$ac_c_werror_flag"
9026 || test ! -s conftest.err'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; } &&
9032 { ac_try='test -s conftest$ac_exeext'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; }; then
9038 ac_cv_search_exc_resume="-l$ac_lib"
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9045 rm -f conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext conftest.$ac_ext
9049 LIBS=$ac_func_search_save_LIBS
9051 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9052 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9053 if test "$ac_cv_search_exc_resume" != no; then
9054 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9062 # Some systems put ldexp and frexp in libm instead of libc; assume
9063 # they're both in the same place. jcf-dump needs them.
9066 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9067 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9068 if test "${ac_cv_search_ldexp+set}" = set; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 ac_func_search_save_LIBS=$LIBS
9072 ac_cv_search_ldexp=no
9073 cat >conftest.$ac_ext <<_ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h. */
9080 /* Override any gcc2 internal prototype to avoid an error. */
9084 /* We use char because int might match the return type of a gcc2
9085 builtin and then its argument prototype would still apply. */
9095 rm -f conftest.$ac_objext conftest$ac_exeext
9096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9097 (eval $ac_link) 2>conftest.er1
9099 grep -v '^ *+' conftest.er1 >conftest.err
9101 cat conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } &&
9104 { ac_try='test -z "$ac_c_werror_flag"
9105 || test ! -s conftest.err'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; } &&
9111 { ac_try='test -s conftest$ac_exeext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_search_ldexp="none required"
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9123 rm -f conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
9125 if test "$ac_cv_search_ldexp" = no; then
9127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9128 cat >conftest.$ac_ext <<_ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9135 /* Override any gcc2 internal prototype to avoid an error. */
9139 /* We use char because int might match the return type of a gcc2
9140 builtin and then its argument prototype would still apply. */
9150 rm -f conftest.$ac_objext conftest$ac_exeext
9151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9152 (eval $ac_link) 2>conftest.er1
9154 grep -v '^ *+' conftest.er1 >conftest.err
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -z "$ac_c_werror_flag"
9160 || test ! -s conftest.err'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; } &&
9166 { ac_try='test -s conftest$ac_exeext'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; }; then
9172 ac_cv_search_ldexp="-l$ac_lib"
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9179 rm -f conftest.err conftest.$ac_objext \
9180 conftest$ac_exeext conftest.$ac_ext
9183 LIBS=$ac_func_search_save_LIBS
9185 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9186 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9187 if test "$ac_cv_search_ldexp" != no; then
9188 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9196 # Use <inttypes.h> only if it exists,
9197 # doesn't clash with <sys/types.h>, and declares intmax_t.
9198 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9199 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9200 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 cat >conftest.$ac_ext <<_ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9209 #include <sys/types.h>
9210 #include <inttypes.h>
9219 rm -f conftest.$ac_objext
9220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9221 (eval $ac_compile) 2>conftest.er1
9223 grep -v '^ *+' conftest.er1 >conftest.err
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } &&
9228 { ac_try='test -z "$ac_c_werror_flag"
9229 || test ! -s conftest.err'
9230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); }; } &&
9235 { ac_try='test -s conftest.$ac_objext'
9236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; }; then
9241 gcc_cv_header_inttypes_h=yes
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9246 gcc_cv_header_inttypes_h=no
9248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9251 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9252 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9253 if test $gcc_cv_header_inttypes_h = yes; then
9255 cat >>confdefs.h <<\_ACEOF
9256 #define HAVE_INTTYPES_H 1
9298 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9299 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9300 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9301 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
9303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9304 echo "$as_me:$LINENO: checking for $ac_func" >&5
9305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9306 if eval "test \"\${$as_ac_var+set}\" = set"; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 cat >conftest.$ac_ext <<_ACEOF
9312 cat confdefs.h >>conftest.$ac_ext
9313 cat >>conftest.$ac_ext <<_ACEOF
9314 /* end confdefs.h. */
9315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9317 #define $ac_func innocuous_$ac_func
9319 /* System header to define __stub macros and hopefully few prototypes,
9320 which can conflict with char $ac_func (); below.
9321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9322 <limits.h> exists even on freestanding compilers. */
9325 # include <limits.h>
9327 # include <assert.h>
9332 /* Override any gcc2 internal prototype to avoid an error. */
9337 /* We use char because int might match the return type of a gcc2
9338 builtin and then its argument prototype would still apply. */
9340 /* The GNU C library defines this for functions which it implements
9341 to always fail with ENOSYS. Some functions are actually named
9342 something starting with __ and the normal name is an alias. */
9343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9346 char (*f) () = $ac_func;
9355 return f != $ac_func;
9360 rm -f conftest.$ac_objext conftest$ac_exeext
9361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9362 (eval $ac_link) 2>conftest.er1
9364 grep -v '^ *+' conftest.er1 >conftest.err
9366 cat conftest.err >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } &&
9369 { ac_try='test -z "$ac_c_werror_flag"
9370 || test ! -s conftest.err'
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; } &&
9376 { ac_try='test -s conftest$ac_exeext'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9382 eval "$as_ac_var=yes"
9384 echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9387 eval "$as_ac_var=no"
9389 rm -f conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
9392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9394 if test `eval echo '${'$as_ac_var'}'` = yes; then
9395 cat >>confdefs.h <<_ACEOF
9396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9403 if test x$ac_cv_func_mbstowcs = xyes; then
9404 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9405 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9406 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 if test "$cross_compiling" = yes; then
9410 gcc_cv_func_mbstowcs_works=yes
9412 cat >conftest.$ac_ext <<_ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9425 rm -f conftest$ac_exeext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427 (eval $ac_link) 2>&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; }; then
9436 gcc_cv_func_mbstowcs_works=yes
9438 echo "$as_me: program exited with status $ac_status" >&5
9439 echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9443 gcc_cv_func_mbstowcs_works=no
9445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9448 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9449 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9450 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9452 cat >>confdefs.h <<\_ACEOF
9453 #define HAVE_WORKING_MBSTOWCS 1
9459 echo "$as_me:$LINENO: checking for ssize_t" >&5
9460 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9461 if test "${ac_cv_type_ssize_t+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 $ac_includes_default
9476 if (sizeof (ssize_t))
9482 rm -f conftest.$ac_objext
9483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9484 (eval $ac_compile) 2>conftest.er1
9486 grep -v '^ *+' conftest.er1 >conftest.err
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } &&
9491 { ac_try='test -z "$ac_c_werror_flag"
9492 || test ! -s conftest.err'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; } &&
9498 { ac_try='test -s conftest.$ac_objext'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; }; then
9504 ac_cv_type_ssize_t=yes
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9509 ac_cv_type_ssize_t=no
9511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9513 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9514 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9515 if test $ac_cv_type_ssize_t = yes; then
9519 cat >>confdefs.h <<_ACEOF
9526 # Try to determine the array type of the second argument of getgroups
9527 # for the target system (int or gid_t).
9528 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9529 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9530 if test "${ac_cv_type_uid_t+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 cat >conftest.$ac_ext <<_ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h. */
9539 #include <sys/types.h>
9542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9543 $EGREP "uid_t" >/dev/null 2>&1; then
9544 ac_cv_type_uid_t=yes
9551 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9552 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9553 if test $ac_cv_type_uid_t = no; then
9555 cat >>confdefs.h <<\_ACEOF
9560 cat >>confdefs.h <<\_ACEOF
9566 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9567 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9568 if test "${ac_cv_type_getgroups+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 if test "$cross_compiling" = yes; then
9572 ac_cv_type_getgroups=cross
9574 cat >conftest.$ac_ext <<_ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9580 /* Thanks to Mike Rendell for this test. */
9581 #include <sys/types.h>
9584 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9591 union { gid_t gval; long lval; } val;
9594 for (i = 0; i < NGID; i++)
9595 gidset[i] = val.gval;
9596 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9598 /* Exit non-zero if getgroups seems to require an array of ints. This
9599 happens when gid_t is short but getgroups modifies an array of ints. */
9600 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9603 rm -f conftest$ac_exeext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9605 (eval $ac_link) 2>&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; }; then
9614 ac_cv_type_getgroups=gid_t
9616 echo "$as_me: program exited with status $ac_status" >&5
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9621 ac_cv_type_getgroups=int
9623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9625 if test $ac_cv_type_getgroups = cross; then
9626 cat >conftest.$ac_ext <<_ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9636 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9637 ac_cv_type_getgroups=gid_t
9639 ac_cv_type_getgroups=int
9645 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9646 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9648 cat >>confdefs.h <<_ACEOF
9649 #define GETGROUPS_T $ac_cv_type_getgroups
9653 if test "${target}" = "${build}"; then
9654 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9657 # This condition may need some tweaking. It should include all
9658 # targets where the array type of the second argument of getgroups
9659 # is int and the type of gid_t is not equivalent to int.
9660 *-*-sunos* | *-*-ultrix*)
9661 TARGET_GETGROUPS_T=int
9664 TARGET_GETGROUPS_T=gid_t
9671 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9672 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9673 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 cat >conftest.$ac_ext <<_ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9682 #include <sys/mman.h>
9684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9687 grep -v '^ *+' conftest.er1 >conftest.err
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } >/dev/null; then
9692 if test -s conftest.err; then
9693 ac_cpp_err=$ac_c_preproc_warn_flag
9694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9701 if test -z "$ac_cpp_err"; then
9702 ac_cv_header_sys_mman_h=yes
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9707 ac_cv_header_sys_mman_h=no
9709 rm -f conftest.err conftest.$ac_ext
9711 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9712 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9713 if test $ac_cv_header_sys_mman_h = yes; then
9714 gcc_header_sys_mman_h=yes
9716 gcc_header_sys_mman_h=no
9719 echo "$as_me:$LINENO: checking for mmap" >&5
9720 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9721 if test "${ac_cv_func_mmap+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 cat >conftest.$ac_ext <<_ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9732 #define mmap innocuous_mmap
9734 /* System header to define __stub macros and hopefully few prototypes,
9735 which can conflict with char mmap (); below.
9736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9737 <limits.h> exists even on freestanding compilers. */
9740 # include <limits.h>
9742 # include <assert.h>
9747 /* Override any gcc2 internal prototype to avoid an error. */
9752 /* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9755 /* The GNU C library defines this for functions which it implements
9756 to always fail with ENOSYS. Some functions are actually named
9757 something starting with __ and the normal name is an alias. */
9758 #if defined (__stub_mmap) || defined (__stub___mmap)
9761 char (*f) () = mmap;
9775 rm -f conftest.$ac_objext conftest$ac_exeext
9776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9777 (eval $ac_link) 2>conftest.er1
9779 grep -v '^ *+' conftest.er1 >conftest.err
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } &&
9784 { ac_try='test -z "$ac_c_werror_flag"
9785 || test ! -s conftest.err'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; } &&
9791 { ac_try='test -s conftest$ac_exeext'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9804 rm -f conftest.err conftest.$ac_objext \
9805 conftest$ac_exeext conftest.$ac_ext
9807 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9808 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9809 if test $ac_cv_func_mmap = yes; then
9815 if test "$gcc_header_sys_mman_h" != yes \
9816 || test "$gcc_func_mmap" != yes; then
9817 gcc_cv_func_mmap_file=no
9818 gcc_cv_func_mmap_dev_zero=no
9819 gcc_cv_func_mmap_anon=no
9821 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9822 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9823 if test "${gcc_cv_func_mmap_file+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 # Add a system to this blacklist if
9827 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9828 # memory area containing the same data that you'd get if you applied
9829 # read() to the same fd. The only system known to have a problem here
9830 # is VMS, where text files have record structure.
9833 gcc_cv_func_mmap_file=no ;;
9835 gcc_cv_func_mmap_file=yes;;
9838 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9839 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9840 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9841 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9842 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 # Add a system to this blacklist if it has mmap() but /dev/zero
9846 # does not exist, or if mmapping /dev/zero does not give anonymous
9847 # zeroed pages with both the following properties:
9848 # 1. If you map N consecutive pages in with one call, and then
9849 # unmap any subset of those pages, the pages that were not
9850 # explicitly unmapped remain accessible.
9851 # 2. If you map two adjacent blocks of memory and then unmap them
9852 # both at once, they must both go away.
9853 # Systems known to be in this category are Windows (all variants),
9856 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9857 gcc_cv_func_mmap_dev_zero=no ;;
9859 gcc_cv_func_mmap_dev_zero=yes;;
9862 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9863 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9865 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9866 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9867 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9868 if test "${gcc_cv_decl_map_anon+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 cat >conftest.$ac_ext <<_ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9877 #include <sys/types.h>
9878 #include <sys/mman.h>
9881 #ifndef MAP_ANONYMOUS
9882 #define MAP_ANONYMOUS MAP_ANON
9888 int n = MAP_ANONYMOUS;
9893 rm -f conftest.$ac_objext
9894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9895 (eval $ac_compile) 2>conftest.er1
9897 grep -v '^ *+' conftest.er1 >conftest.err
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
9902 { ac_try='test -z "$ac_c_werror_flag"
9903 || test ! -s conftest.err'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; } &&
9909 { ac_try='test -s conftest.$ac_objext'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 gcc_cv_decl_map_anon=yes
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9920 gcc_cv_decl_map_anon=no
9922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9924 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9925 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9927 if test $gcc_cv_decl_map_anon = no; then
9928 gcc_cv_func_mmap_anon=no
9930 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9931 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9932 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9936 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9937 # doesn't give anonymous zeroed pages with the same properties listed
9938 # above for use of /dev/zero.
9939 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9941 vms* | cygwin* | pe | mingw* | sco* | udk* )
9942 gcc_cv_func_mmap_anon=no ;;
9944 gcc_cv_func_mmap_anon=yes;;
9947 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9948 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9952 if test $gcc_cv_func_mmap_file = yes; then
9954 cat >>confdefs.h <<\_ACEOF
9955 #define HAVE_MMAP_FILE 1
9959 if test $gcc_cv_func_mmap_dev_zero = yes; then
9961 cat >>confdefs.h <<\_ACEOF
9962 #define HAVE_MMAP_DEV_ZERO 1
9966 if test $gcc_cv_func_mmap_anon = yes; then
9968 cat >>confdefs.h <<\_ACEOF
9969 #define HAVE_MMAP_ANON 1
9977 # Under VMS, vfork works very differently than on Unix. The standard test
9978 # won't work, and it isn't easily adaptable. It makes more sense to
9980 ac_cv_func_vfork_works=yes
9983 echo "$as_me:$LINENO: checking for pid_t" >&5
9984 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9985 if test "${ac_cv_type_pid_t+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 cat >conftest.$ac_ext <<_ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9994 $ac_includes_default
10000 if (sizeof (pid_t))
10006 rm -f conftest.$ac_objext
10007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10008 (eval $ac_compile) 2>conftest.er1
10010 grep -v '^ *+' conftest.er1 >conftest.err
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } &&
10015 { ac_try='test -z "$ac_c_werror_flag"
10016 || test ! -s conftest.err'
10017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; } &&
10022 { ac_try='test -s conftest.$ac_objext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 ac_cv_type_pid_t=yes
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 ac_cv_type_pid_t=no
10035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10037 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10038 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10039 if test $ac_cv_type_pid_t = yes; then
10043 cat >>confdefs.h <<_ACEOF
10051 for ac_header in unistd.h vfork.h
10053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10054 echo "$as_me:$LINENO: checking for $ac_header" >&5
10055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 cat >conftest.$ac_ext <<_ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10065 #include <$ac_header>
10067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10070 grep -v '^ *+' conftest.er1 >conftest.err
10072 cat conftest.err >&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } >/dev/null; then
10075 if test -s conftest.err; then
10076 ac_cpp_err=$ac_c_preproc_warn_flag
10077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10084 if test -z "$ac_cpp_err"; then
10085 eval "$as_ac_Header=yes"
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 eval "$as_ac_Header=no"
10092 rm -f conftest.err conftest.$ac_ext
10094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10097 cat >>confdefs.h <<_ACEOF
10098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10106 for ac_func in fork vfork
10108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10109 echo "$as_me:$LINENO: checking for $ac_func" >&5
10110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10111 if eval "test \"\${$as_ac_var+set}\" = set"; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 cat >conftest.$ac_ext <<_ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10122 #define $ac_func innocuous_$ac_func
10124 /* System header to define __stub macros and hopefully few prototypes,
10125 which can conflict with char $ac_func (); below.
10126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10127 <limits.h> exists even on freestanding compilers. */
10130 # include <limits.h>
10132 # include <assert.h>
10137 /* Override any gcc2 internal prototype to avoid an error. */
10142 /* We use char because int might match the return type of a gcc2
10143 builtin and then its argument prototype would still apply. */
10145 /* The GNU C library defines this for functions which it implements
10146 to always fail with ENOSYS. Some functions are actually named
10147 something starting with __ and the normal name is an alias. */
10148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10151 char (*f) () = $ac_func;
10160 return f != $ac_func;
10165 rm -f conftest.$ac_objext conftest$ac_exeext
10166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10167 (eval $ac_link) 2>conftest.er1
10169 grep -v '^ *+' conftest.er1 >conftest.err
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -z "$ac_c_werror_flag"
10175 || test ! -s conftest.err'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; } &&
10181 { ac_try='test -s conftest$ac_exeext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10187 eval "$as_ac_var=yes"
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10192 eval "$as_ac_var=no"
10194 rm -f conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext conftest.$ac_ext
10197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10199 if test `eval echo '${'$as_ac_var'}'` = yes; then
10200 cat >>confdefs.h <<_ACEOF
10201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10207 if test "x$ac_cv_func_fork" = xyes; then
10208 echo "$as_me:$LINENO: checking for working fork" >&5
10209 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10210 if test "${ac_cv_func_fork_works+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 if test "$cross_compiling" = yes; then
10214 ac_cv_func_fork_works=cross
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* By Ruediger Kuhlmann. */
10218 #include <sys/types.h>
10220 # include <unistd.h>
10222 /* Some systems only have a dummy stub for fork() */
10230 rm -f conftest$ac_exeext
10231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10232 (eval $ac_link) 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10241 ac_cv_func_fork_works=yes
10243 echo "$as_me: program exited with status $ac_status" >&5
10244 echo "$as_me: failed program was:" >&5
10245 sed 's/^/| /' conftest.$ac_ext >&5
10247 ( exit $ac_status )
10248 ac_cv_func_fork_works=no
10250 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10253 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10254 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10257 ac_cv_func_fork_works=$ac_cv_func_fork
10259 if test "x$ac_cv_func_fork_works" = xcross; then
10261 *-*-amigaos* | *-*-msdosdjgpp*)
10262 # Override, as these systems have only a dummy fork() stub
10263 ac_cv_func_fork_works=no
10266 ac_cv_func_fork_works=yes
10269 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10270 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10272 ac_cv_func_vfork_works=$ac_cv_func_vfork
10273 if test "x$ac_cv_func_vfork" = xyes; then
10274 echo "$as_me:$LINENO: checking for working vfork" >&5
10275 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10276 if test "${ac_cv_func_vfork_works+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 if test "$cross_compiling" = yes; then
10280 ac_cv_func_vfork_works=cross
10282 cat >conftest.$ac_ext <<_ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 /* Thanks to Paul Eggert for this test. */
10290 #include <stdlib.h>
10291 #include <sys/types.h>
10292 #include <sys/stat.h>
10293 #include <sys/wait.h>
10295 # include <unistd.h>
10298 # include <vfork.h>
10300 /* On some sparc systems, changes by the child to local and incoming
10301 argument registers are propagated back to the parent. The compiler
10302 is told about this with #include <vfork.h>, but some compilers
10303 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10304 static variable whose address is put into a register that is
10305 clobbered by the vfork. */
10308 sparc_address_test (int arg)
10310 sparc_address_test (arg) int arg;
10313 static pid_t child;
10331 pid_t parent = getpid ();
10334 sparc_address_test (0);
10339 /* Here is another test for sparc vfork register problems. This
10340 test uses lots of local variables, at least as many local
10341 variables as main has allocated so far including compiler
10342 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10343 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10344 reuse the register of parent for one of the local variables,
10345 since it will think that parent can't possibly be used any more
10346 in this routine. Assigning to the local variable will thus
10347 munge parent in the parent process. */
10349 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10350 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10351 /* Convince the compiler that p..p7 are live; otherwise, it might
10352 use the same hardware register for all 8 local variables. */
10353 if (p != p1 || p != p2 || p != p3 || p != p4
10354 || p != p5 || p != p6 || p != p7)
10357 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10358 from child file descriptors. If the child closes a descriptor
10359 before it execs or exits, this munges the parent's descriptor
10360 as well. Test for this by closing stdout in the child. */
10361 _exit(close(fileno(stdout)) != 0);
10366 while (wait(&status) != child)
10369 /* Was there some problem with vforking? */
10372 /* Did the child fail? (This shouldn't happen.) */
10375 /* Did the vfork/compiler bug occur? */
10376 || parent != getpid()
10378 /* Did the file descriptor bug occur? */
10379 || fstat(fileno(stdout), &st) != 0
10384 rm -f conftest$ac_exeext
10385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10386 (eval $ac_link) 2>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 ac_cv_func_vfork_works=yes
10397 echo "$as_me: program exited with status $ac_status" >&5
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10401 ( exit $ac_status )
10402 ac_cv_func_vfork_works=no
10404 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10407 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10408 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10411 if test "x$ac_cv_func_fork_works" = xcross; then
10412 ac_cv_func_vfork_works=$ac_cv_func_vfork
10413 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10414 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10417 if test "x$ac_cv_func_vfork_works" = xyes; then
10419 cat >>confdefs.h <<\_ACEOF
10420 #define HAVE_WORKING_VFORK 1
10425 cat >>confdefs.h <<\_ACEOF
10430 if test "x$ac_cv_func_fork_works" = xyes; then
10432 cat >>confdefs.h <<\_ACEOF
10433 #define HAVE_WORKING_FORK 1
10440 if test "X$prefix" = "XNONE"; then
10441 acl_final_prefix="$ac_default_prefix"
10443 acl_final_prefix="$prefix"
10445 if test "X$exec_prefix" = "XNONE"; then
10446 acl_final_exec_prefix='${prefix}'
10448 acl_final_exec_prefix="$exec_prefix"
10450 acl_save_prefix="$prefix"
10451 prefix="$acl_final_prefix"
10452 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10453 prefix="$acl_save_prefix"
10456 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10457 if test "${with_gnu_ld+set}" = set; then
10458 withval="$with_gnu_ld"
10459 test "$withval" = no || with_gnu_ld=yes
10463 # Prepare PATH_SEPARATOR.
10464 # The user is always right.
10465 if test "${PATH_SEPARATOR+set}" != set; then
10466 echo "#! /bin/sh" >conf$$.sh
10467 echo "exit 0" >>conf$$.sh
10469 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10477 if test "$GCC" = yes; then
10478 # Check if gcc -print-prog-name=ld gives a path.
10479 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10480 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10483 # gcc leaves a trailing carriage return which upsets mingw
10484 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10486 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10489 # Accept absolute paths.
10490 [\\/]* | [A-Za-z]:[\\/]*)
10491 re_direlt='/[^/][^/]*/\.\./'
10492 # Canonicalize the path of ld
10493 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10494 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10495 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10497 test -z "$LD" && LD="$ac_prog"
10500 # If it fails, then pretend we aren't using GCC.
10504 # If it is relative, then search for the first ld in PATH.
10505 with_gnu_ld=unknown
10508 elif test "$with_gnu_ld" = yes; then
10509 echo "$as_me:$LINENO: checking for GNU ld" >&5
10510 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10512 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10513 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10515 if test "${acl_cv_path_LD+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 if test -z "$LD"; then
10519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10520 for ac_dir in $PATH; do
10521 test -z "$ac_dir" && ac_dir=.
10522 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10523 acl_cv_path_LD="$ac_dir/$ac_prog"
10524 # Check to see if the program is GNU ld. I'd rather use --version,
10525 # but apparently some GNU ld's only accept -v.
10526 # Break only if it was the GNU/non-GNU ld that we prefer.
10527 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10528 test "$with_gnu_ld" != no && break
10530 test "$with_gnu_ld" != yes && break
10536 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10540 LD="$acl_cv_path_LD"
10541 if test -n "$LD"; then
10542 echo "$as_me:$LINENO: result: $LD" >&5
10543 echo "${ECHO_T}$LD" >&6
10545 echo "$as_me:$LINENO: result: no" >&5
10546 echo "${ECHO_T}no" >&6
10548 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10549 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10550 { (exit 1); exit 1; }; }
10551 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10552 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10553 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10557 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10558 acl_cv_prog_gnu_ld=yes
10560 acl_cv_prog_gnu_ld=no
10563 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10564 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10565 with_gnu_ld=$acl_cv_prog_gnu_ld
10569 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10570 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10571 if test "${acl_cv_rpath+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10576 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10578 rm -f ./conftest.sh
10582 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10583 echo "${ECHO_T}$acl_cv_rpath" >&6
10585 libext="$acl_cv_libext"
10586 shlibext="$acl_cv_shlibext"
10587 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10588 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10589 hardcode_direct="$acl_cv_hardcode_direct"
10590 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10591 # Check whether --enable-rpath or --disable-rpath was given.
10592 if test "${enable_rpath+set}" = set; then
10593 enableval="$enable_rpath"
10607 acl_save_prefix="$prefix"
10608 prefix="$acl_final_prefix"
10609 acl_save_exec_prefix="$exec_prefix"
10610 exec_prefix="$acl_final_exec_prefix"
10612 eval additional_includedir=\"$includedir\"
10613 eval additional_libdir=\"$libdir\"
10615 exec_prefix="$acl_save_exec_prefix"
10616 prefix="$acl_save_prefix"
10619 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10620 if test "${with_libiconv_prefix+set}" = set; then
10621 withval="$with_libiconv_prefix"
10623 if test "X$withval" = "Xno"; then
10626 if test "X$withval" = "X"; then
10628 acl_save_prefix="$prefix"
10629 prefix="$acl_final_prefix"
10630 acl_save_exec_prefix="$exec_prefix"
10631 exec_prefix="$acl_final_exec_prefix"
10633 eval additional_includedir=\"$includedir\"
10634 eval additional_libdir=\"$libdir\"
10636 exec_prefix="$acl_save_exec_prefix"
10637 prefix="$acl_save_prefix"
10640 additional_includedir="$withval/include"
10641 additional_libdir="$withval/lib"
10651 names_already_handled=
10652 names_next_round='iconv '
10653 while test -n "$names_next_round"; do
10654 names_this_round="$names_next_round"
10656 for name in $names_this_round; do
10658 for n in $names_already_handled; do
10659 if test "$n" = "$name"; then
10660 already_handled=yes
10664 if test -z "$already_handled"; then
10665 names_already_handled="$names_already_handled $name"
10666 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10667 eval value=\"\$HAVE_LIB$uppername\"
10668 if test -n "$value"; then
10669 if test "$value" = yes; then
10670 eval value=\"\$LIB$uppername\"
10671 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10672 eval value=\"\$LTLIB$uppername\"
10673 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10682 if test $use_additional = yes; then
10683 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10684 found_dir="$additional_libdir"
10685 found_so="$additional_libdir/lib$name.$shlibext"
10686 if test -f "$additional_libdir/lib$name.la"; then
10687 found_la="$additional_libdir/lib$name.la"
10690 if test -f "$additional_libdir/lib$name.$libext"; then
10691 found_dir="$additional_libdir"
10692 found_a="$additional_libdir/lib$name.$libext"
10693 if test -f "$additional_libdir/lib$name.la"; then
10694 found_la="$additional_libdir/lib$name.la"
10699 if test "X$found_dir" = "X"; then
10700 for x in $LDFLAGS $LTLIBICONV; do
10702 acl_save_prefix="$prefix"
10703 prefix="$acl_final_prefix"
10704 acl_save_exec_prefix="$exec_prefix"
10705 exec_prefix="$acl_final_exec_prefix"
10707 exec_prefix="$acl_save_exec_prefix"
10708 prefix="$acl_save_prefix"
10712 dir=`echo "X$x" | sed -e 's/^X-L//'`
10713 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10715 found_so="$dir/lib$name.$shlibext"
10716 if test -f "$dir/lib$name.la"; then
10717 found_la="$dir/lib$name.la"
10720 if test -f "$dir/lib$name.$libext"; then
10722 found_a="$dir/lib$name.$libext"
10723 if test -f "$dir/lib$name.la"; then
10724 found_la="$dir/lib$name.la"
10730 if test "X$found_dir" != "X"; then
10735 if test "X$found_dir" != "X"; then
10736 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10737 if test "X$found_so" != "X"; then
10738 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10739 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10742 for x in $ltrpathdirs; do
10743 if test "X$x" = "X$found_dir"; then
10748 if test -z "$haveit"; then
10749 ltrpathdirs="$ltrpathdirs $found_dir"
10751 if test "$hardcode_direct" = yes; then
10752 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10754 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10755 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10757 for x in $rpathdirs; do
10758 if test "X$x" = "X$found_dir"; then
10763 if test -z "$haveit"; then
10764 rpathdirs="$rpathdirs $found_dir"
10768 for x in $LDFLAGS $LIBICONV; do
10770 acl_save_prefix="$prefix"
10771 prefix="$acl_final_prefix"
10772 acl_save_exec_prefix="$exec_prefix"
10773 exec_prefix="$acl_final_exec_prefix"
10775 exec_prefix="$acl_save_exec_prefix"
10776 prefix="$acl_save_prefix"
10778 if test "X$x" = "X-L$found_dir"; then
10783 if test -z "$haveit"; then
10784 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10786 if test "$hardcode_minus_L" != no; then
10787 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10789 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10795 if test "X$found_a" != "X"; then
10796 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10798 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10801 additional_includedir=
10802 case "$found_dir" in
10804 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10805 additional_includedir="$basedir/include"
10808 if test "X$additional_includedir" != "X"; then
10809 if test "X$additional_includedir" != "X/usr/include"; then
10811 if test "X$additional_includedir" = "X/usr/local/include"; then
10812 if test -n "$GCC"; then
10814 linux*) haveit=yes;;
10818 if test -z "$haveit"; then
10819 for x in $CPPFLAGS $INCICONV; do
10821 acl_save_prefix="$prefix"
10822 prefix="$acl_final_prefix"
10823 acl_save_exec_prefix="$exec_prefix"
10824 exec_prefix="$acl_final_exec_prefix"
10826 exec_prefix="$acl_save_exec_prefix"
10827 prefix="$acl_save_prefix"
10829 if test "X$x" = "X-I$additional_includedir"; then
10834 if test -z "$haveit"; then
10835 if test -d "$additional_includedir"; then
10836 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10842 if test -n "$found_la"; then
10843 save_libdir="$libdir"
10844 case "$found_la" in
10845 */* | *\\*) . "$found_la" ;;
10846 *) . "./$found_la" ;;
10848 libdir="$save_libdir"
10849 for dep in $dependency_libs; do
10852 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10853 if test "X$additional_libdir" != "X/usr/lib"; then
10855 if test "X$additional_libdir" = "X/usr/local/lib"; then
10856 if test -n "$GCC"; then
10858 linux*) haveit=yes;;
10862 if test -z "$haveit"; then
10864 for x in $LDFLAGS $LIBICONV; do
10866 acl_save_prefix="$prefix"
10867 prefix="$acl_final_prefix"
10868 acl_save_exec_prefix="$exec_prefix"
10869 exec_prefix="$acl_final_exec_prefix"
10871 exec_prefix="$acl_save_exec_prefix"
10872 prefix="$acl_save_prefix"
10874 if test "X$x" = "X-L$additional_libdir"; then
10879 if test -z "$haveit"; then
10880 if test -d "$additional_libdir"; then
10881 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10885 for x in $LDFLAGS $LTLIBICONV; do
10887 acl_save_prefix="$prefix"
10888 prefix="$acl_final_prefix"
10889 acl_save_exec_prefix="$exec_prefix"
10890 exec_prefix="$acl_final_exec_prefix"
10892 exec_prefix="$acl_save_exec_prefix"
10893 prefix="$acl_save_prefix"
10895 if test "X$x" = "X-L$additional_libdir"; then
10900 if test -z "$haveit"; then
10901 if test -d "$additional_libdir"; then
10902 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10909 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10910 if test "$enable_rpath" != no; then
10912 for x in $rpathdirs; do
10913 if test "X$x" = "X$dir"; then
10918 if test -z "$haveit"; then
10919 rpathdirs="$rpathdirs $dir"
10922 for x in $ltrpathdirs; do
10923 if test "X$x" = "X$dir"; then
10928 if test -z "$haveit"; then
10929 ltrpathdirs="$ltrpathdirs $dir"
10934 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10937 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10940 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10941 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10947 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10948 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10954 if test "X$rpathdirs" != "X"; then
10955 if test -n "$hardcode_libdir_separator"; then
10957 for found_dir in $rpathdirs; do
10958 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10960 acl_save_libdir="$libdir"
10962 eval flag=\"$hardcode_libdir_flag_spec\"
10963 libdir="$acl_save_libdir"
10964 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10966 for found_dir in $rpathdirs; do
10967 acl_save_libdir="$libdir"
10968 libdir="$found_dir"
10969 eval flag=\"$hardcode_libdir_flag_spec\"
10970 libdir="$acl_save_libdir"
10971 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10975 if test "X$ltrpathdirs" != "X"; then
10976 for found_dir in $ltrpathdirs; do
10977 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10987 am_save_CPPFLAGS="$CPPFLAGS"
10989 for element in $INCICONV; do
10991 for x in $CPPFLAGS; do
10993 acl_save_prefix="$prefix"
10994 prefix="$acl_final_prefix"
10995 acl_save_exec_prefix="$exec_prefix"
10996 exec_prefix="$acl_final_exec_prefix"
10998 exec_prefix="$acl_save_exec_prefix"
10999 prefix="$acl_save_prefix"
11001 if test "X$x" = "X$element"; then
11006 if test -z "$haveit"; then
11007 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11012 echo "$as_me:$LINENO: checking for iconv" >&5
11013 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11014 if test "${am_cv_func_iconv+set}" = set; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 am_cv_func_iconv="no, consider installing GNU libiconv"
11020 cat >conftest.$ac_ext <<_ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 #include <stdlib.h>
11031 iconv_t cd = iconv_open("","");
11032 iconv(cd,NULL,NULL,NULL,NULL);
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11040 (eval $ac_link) 2>conftest.er1
11042 grep -v '^ *+' conftest.er1 >conftest.err
11044 cat conftest.err >&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
11047 { ac_try='test -z "$ac_c_werror_flag"
11048 || test ! -s conftest.err'
11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050 (eval $ac_try) 2>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; } &&
11054 { ac_try='test -s conftest$ac_exeext'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; }; then
11060 am_cv_func_iconv=yes
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11066 rm -f conftest.err conftest.$ac_objext \
11067 conftest$ac_exeext conftest.$ac_ext
11068 if test "$am_cv_func_iconv" != yes; then
11069 am_save_LIBS="$LIBS"
11070 LIBS="$LIBS $LIBICONV"
11071 cat >conftest.$ac_ext <<_ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 #include <stdlib.h>
11082 iconv_t cd = iconv_open("","");
11083 iconv(cd,NULL,NULL,NULL,NULL);
11089 rm -f conftest.$ac_objext conftest$ac_exeext
11090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11091 (eval $ac_link) 2>conftest.er1
11093 grep -v '^ *+' conftest.er1 >conftest.err
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 { ac_try='test -z "$ac_c_werror_flag"
11099 || test ! -s conftest.err'
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; } &&
11105 { ac_try='test -s conftest$ac_exeext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 am_cv_lib_iconv=yes
11112 am_cv_func_iconv=yes
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11118 rm -f conftest.err conftest.$ac_objext \
11119 conftest$ac_exeext conftest.$ac_ext
11120 LIBS="$am_save_LIBS"
11124 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11125 echo "${ECHO_T}$am_cv_func_iconv" >&6
11126 if test "$am_cv_func_iconv" = yes; then
11128 cat >>confdefs.h <<\_ACEOF
11129 #define HAVE_ICONV 1
11133 if test "$am_cv_lib_iconv" = yes; then
11134 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11135 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11136 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11137 echo "${ECHO_T}$LIBICONV" >&6
11139 CPPFLAGS="$am_save_CPPFLAGS"
11146 if test "$am_cv_func_iconv" = yes; then
11147 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11148 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11149 if test "${am_cv_proto_iconv+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 cat >conftest.$ac_ext <<_ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11160 #include <stdlib.h>
11166 #if defined(__STDC__) || defined(__cplusplus)
11167 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11180 rm -f conftest.$ac_objext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11182 (eval $ac_compile) 2>conftest.er1
11184 grep -v '^ *+' conftest.er1 >conftest.err
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -z "$ac_c_werror_flag"
11190 || test ! -s conftest.err'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; } &&
11196 { ac_try='test -s conftest.$ac_objext'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }; then
11202 am_cv_proto_iconv_arg1=""
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11207 am_cv_proto_iconv_arg1="const"
11209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11210 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);"
11213 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11214 echo "$as_me:$LINENO: result: ${ac_t:-
11215 }$am_cv_proto_iconv" >&5
11216 echo "${ECHO_T}${ac_t:-
11217 }$am_cv_proto_iconv" >&6
11219 cat >>confdefs.h <<_ACEOF
11220 #define ICONV_CONST $am_cv_proto_iconv_arg1
11225 # Until we have in-tree GNU iconv:
11230 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11231 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11232 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 cat >conftest.$ac_ext <<_ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11241 #include <locale.h>
11250 rm -f conftest.$ac_objext conftest$ac_exeext
11251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11252 (eval $ac_link) 2>conftest.er1
11254 grep -v '^ *+' conftest.er1 >conftest.err
11256 cat conftest.err >&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } &&
11259 { ac_try='test -z "$ac_c_werror_flag"
11260 || test ! -s conftest.err'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; } &&
11266 { ac_try='test -s conftest$ac_exeext'
11267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268 (eval $ac_try) 2>&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; }; then
11272 am_cv_val_LC_MESSAGES=yes
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 am_cv_val_LC_MESSAGES=no
11279 rm -f conftest.err conftest.$ac_objext \
11280 conftest$ac_exeext conftest.$ac_ext
11282 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11283 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11284 if test $am_cv_val_LC_MESSAGES = yes; then
11286 cat >>confdefs.h <<\_ACEOF
11287 #define HAVE_LC_MESSAGES 1
11294 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11295 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11296 if test "${am_cv_langinfo_codeset+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 cat >conftest.$ac_ext <<_ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 #include <langinfo.h>
11309 char* cs = nl_langinfo(CODESET);
11314 rm -f conftest.$ac_objext conftest$ac_exeext
11315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11316 (eval $ac_link) 2>conftest.er1
11318 grep -v '^ *+' conftest.er1 >conftest.err
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try='test -z "$ac_c_werror_flag"
11324 || test ! -s conftest.err'
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; } &&
11330 { ac_try='test -s conftest$ac_exeext'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 am_cv_langinfo_codeset=yes
11338 echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11341 am_cv_langinfo_codeset=no
11343 rm -f conftest.err conftest.$ac_objext \
11344 conftest$ac_exeext conftest.$ac_ext
11347 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11348 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11349 if test $am_cv_langinfo_codeset = yes; then
11351 cat >>confdefs.h <<\_ACEOF
11352 #define HAVE_LANGINFO_CODESET 1
11358 # We will need to find libiberty.h and ansidecl.h
11359 saved_CFLAGS="$CFLAGS"
11360 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11400 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11401 strsignal strstr strverscmp \
11402 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11403 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
11405 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11406 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11407 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11408 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 cat >conftest.$ac_ext <<_ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11418 #define $ac_tr_decl 1
11420 #include "ansidecl.h"
11421 #include "system.h"
11427 char *(*pfn) = (char *(*)) $ac_func ;
11433 rm -f conftest.$ac_objext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11435 (eval $ac_compile) 2>conftest.er1
11437 grep -v '^ *+' conftest.er1 >conftest.err
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -z "$ac_c_werror_flag"
11443 || test ! -s conftest.err'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest.$ac_objext'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11455 eval "gcc_cv_have_decl_$ac_func=yes"
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 eval "gcc_cv_have_decl_$ac_func=no"
11462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11465 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11466 echo "$as_me:$LINENO: result: yes" >&5
11467 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11468 #define $ac_tr_decl 1
11472 echo "$as_me:$LINENO: result: no" >&5
11473 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11474 #define $ac_tr_decl 0
11485 for ac_func in getrlimit setrlimit getrusage
11487 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11488 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11489 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11490 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 cat >conftest.$ac_ext <<_ACEOF
11496 cat confdefs.h >>conftest.$ac_ext
11497 cat >>conftest.$ac_ext <<_ACEOF
11498 /* end confdefs.h. */
11500 #define $ac_tr_decl 1
11502 #include "ansidecl.h"
11503 #include "system.h"
11504 #ifdef HAVE_SYS_RESOURCE_H
11505 #include <sys/resource.h>
11513 char *(*pfn) = (char *(*)) $ac_func ;
11519 rm -f conftest.$ac_objext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11521 (eval $ac_compile) 2>conftest.er1
11523 grep -v '^ *+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } &&
11528 { ac_try='test -z "$ac_c_werror_flag"
11529 || test ! -s conftest.err'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try='test -s conftest.$ac_objext'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11541 eval "gcc_cv_have_decl_$ac_func=yes"
11543 echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11546 eval "gcc_cv_have_decl_$ac_func=no"
11548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11551 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11552 echo "$as_me:$LINENO: result: yes" >&5
11553 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11554 #define $ac_tr_decl 1
11558 echo "$as_me:$LINENO: result: no" >&5
11559 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11560 #define $ac_tr_decl 0
11568 cat >conftest.$ac_ext <<_ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11575 #include "ansidecl.h"
11576 #include "system.h"
11577 #ifdef HAVE_SYS_RESOURCE_H
11578 #include <sys/resource.h>
11589 rm -f conftest.$ac_objext
11590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11591 (eval $ac_compile) 2>conftest.er1
11593 grep -v '^ *+' conftest.er1 >conftest.err
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -z "$ac_c_werror_flag"
11599 || test ! -s conftest.err'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; } &&
11605 { ac_try='test -s conftest.$ac_objext'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; }; then
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11617 cat >>confdefs.h <<\_ACEOF
11618 #define rlim_t long
11622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11624 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11625 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11626 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11627 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11629 for ac_func in ldgetname
11631 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11632 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11633 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11634 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 cat >conftest.$ac_ext <<_ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11644 #define $ac_tr_decl 1
11646 #include "ansidecl.h"
11647 #include "system.h"
11648 #ifdef HAVE_LDFCN_H
11659 char *(*pfn) = (char *(*)) $ac_func ;
11665 rm -f conftest.$ac_objext
11666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11667 (eval $ac_compile) 2>conftest.er1
11669 grep -v '^ *+' conftest.er1 >conftest.err
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try='test -z "$ac_c_werror_flag"
11675 || test ! -s conftest.err'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; } &&
11681 { ac_try='test -s conftest.$ac_objext'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 eval "gcc_cv_have_decl_$ac_func=yes"
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11692 eval "gcc_cv_have_decl_$ac_func=no"
11694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11697 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11698 echo "$as_me:$LINENO: result: yes" >&5
11699 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11700 #define $ac_tr_decl 1
11704 echo "$as_me:$LINENO: result: no" >&5
11705 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11706 #define $ac_tr_decl 0
11715 for ac_func in times
11717 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11718 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11719 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11720 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 cat >conftest.$ac_ext <<_ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11730 #define $ac_tr_decl 1
11732 #include "ansidecl.h"
11733 #include "system.h"
11734 #ifdef HAVE_SYS_TIMES_H
11735 #include <sys/times.h>
11743 char *(*pfn) = (char *(*)) $ac_func ;
11749 rm -f conftest.$ac_objext
11750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11751 (eval $ac_compile) 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -z "$ac_c_werror_flag"
11759 || test ! -s conftest.err'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest.$ac_objext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 eval "gcc_cv_have_decl_$ac_func=yes"
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 eval "gcc_cv_have_decl_$ac_func=no"
11778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11781 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11782 echo "$as_me:$LINENO: result: yes" >&5
11783 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11784 #define $ac_tr_decl 1
11788 echo "$as_me:$LINENO: result: no" >&5
11789 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11790 #define $ac_tr_decl 0
11799 for ac_func in sigaltstack
11801 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11802 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11803 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11804 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 cat >conftest.$ac_ext <<_ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11814 #define $ac_tr_decl 1
11816 #include "ansidecl.h"
11817 #include "system.h"
11818 #include <signal.h>
11825 char *(*pfn) = (char *(*)) $ac_func ;
11831 rm -f conftest.$ac_objext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11833 (eval $ac_compile) 2>conftest.er1
11835 grep -v '^ *+' conftest.er1 >conftest.err
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try='test -z "$ac_c_werror_flag"
11841 || test ! -s conftest.err'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest.$ac_objext'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11853 eval "gcc_cv_have_decl_$ac_func=yes"
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 eval "gcc_cv_have_decl_$ac_func=no"
11860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11863 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11864 echo "$as_me:$LINENO: result: yes" >&5
11865 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11866 #define $ac_tr_decl 1
11870 echo "$as_me:$LINENO: result: no" >&5
11871 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11872 #define $ac_tr_decl 0
11880 # More time-related stuff.
11881 echo "$as_me:$LINENO: checking for struct tms" >&5
11882 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11883 if test "${ac_cv_struct_tms+set}" = set; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 cat >conftest.$ac_ext <<_ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11894 #include "ansidecl.h"
11895 #include "system.h"
11896 #ifdef HAVE_SYS_TIMES_H
11897 #include <sys/times.h>
11908 rm -f conftest.$ac_objext
11909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11910 (eval $ac_compile) 2>conftest.er1
11912 grep -v '^ *+' conftest.er1 >conftest.err
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try='test -z "$ac_c_werror_flag"
11918 || test ! -s conftest.err'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest.$ac_objext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 ac_cv_struct_tms=yes
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11935 ac_cv_struct_tms=no
11937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11939 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11940 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11941 if test $ac_cv_struct_tms = yes; then
11943 cat >>confdefs.h <<\_ACEOF
11944 #define HAVE_STRUCT_TMS 1
11949 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11950 # revisit after autoconf 2.50.
11951 echo "$as_me:$LINENO: checking for clock_t" >&5
11952 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11953 if test "${gcc_cv_type_clock_t+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 cat >conftest.$ac_ext <<_ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11964 #include "ansidecl.h"
11965 #include "system.h"
11975 rm -f conftest.$ac_objext
11976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11977 (eval $ac_compile) 2>conftest.er1
11979 grep -v '^ *+' conftest.er1 >conftest.err
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } &&
11984 { ac_try='test -z "$ac_c_werror_flag"
11985 || test ! -s conftest.err'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; } &&
11991 { ac_try='test -s conftest.$ac_objext'
11992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993 (eval $ac_try) 2>&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); }; }; then
11997 gcc_cv_type_clock_t=yes
11999 echo "$as_me: failed program was:" >&5
12000 sed 's/^/| /' conftest.$ac_ext >&5
12002 gcc_cv_type_clock_t=no
12004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12006 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12007 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12008 if test $gcc_cv_type_clock_t = yes; then
12010 cat >>confdefs.h <<\_ACEOF
12011 #define HAVE_CLOCK_T 1
12016 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12017 CFLAGS="$saved_CFLAGS"
12019 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12020 if test "${enable_initfini_array+set}" = set; then
12021 enableval="$enable_initfini_array"
12025 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12026 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12027 if test "${gcc_cv_initfini_array+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 if test "$cross_compiling" = yes; then
12031 gcc_cv_initfini_array=no
12033 cat >conftest.$ac_ext <<_ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12041 int main (void) { return x; }
12042 int foo (void) { x = 0; }
12043 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12045 rm -f conftest$ac_exeext
12046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12047 (eval $ac_link) 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 gcc_cv_initfini_array=yes
12058 echo "$as_me: program exited with status $ac_status" >&5
12059 echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12062 ( exit $ac_status )
12063 gcc_cv_initfini_array=no
12065 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12068 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12069 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12070 enable_initfini_array=$gcc_cv_initfini_array
12073 if test $enable_initfini_array = yes; then
12075 cat >>confdefs.h <<\_ACEOF
12076 #define HAVE_INITFINI_ARRAY 1
12081 # mkdir takes a single argument on some systems.
12082 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12083 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12084 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 cat >conftest.$ac_ext <<_ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12094 #include <sys/types.h>
12095 #ifdef HAVE_SYS_STAT_H
12096 # include <sys/stat.h>
12098 #ifdef HAVE_UNISTD_H
12099 # include <unistd.h>
12101 #ifdef HAVE_DIRECT_H
12102 # include <direct.h>
12112 rm -f conftest.$ac_objext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114 (eval $ac_compile) 2>conftest.er1
12116 grep -v '^ *+' conftest.er1 >conftest.err
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } &&
12121 { ac_try='test -z "$ac_c_werror_flag"
12122 || test ! -s conftest.err'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; } &&
12128 { ac_try='test -s conftest.$ac_objext'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 gcc_cv_mkdir_takes_one_arg=no
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12139 gcc_cv_mkdir_takes_one_arg=yes
12141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12143 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12144 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12145 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12147 cat >>confdefs.h <<\_ACEOF
12148 #define MKDIR_TAKES_ONE_ARG 1
12160 # With Setjmp/Longjmp based exception handling.
12161 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12162 if test "${enable_sjlj_exceptions+set}" = set; then
12163 enableval="$enable_sjlj_exceptions"
12164 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12166 cat >>confdefs.h <<_ACEOF
12167 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12172 # For platforms with the unwind ABI which includes an unwind library,
12173 # libunwind, we can choose to use the system libunwind.
12175 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12176 if test "${with_system_libunwind+set}" = set; then
12177 withval="$with_system_libunwind"
12181 # config.gcc also contains tests of with_system_libunwind.
12182 if test x$with_system_libunwind = xyes; then
12184 cat >>confdefs.h <<\_ACEOF
12185 #define HAVE_GETIPINFO 1
12190 # --------------------------------------------------------
12191 # Build, host, and target specific configuration fragments
12192 # --------------------------------------------------------
12194 # Collect build-machine-specific information.
12195 . ${srcdir}/config.build
12197 # Collect host-machine-specific information.
12198 . ${srcdir}/config.host
12202 # Collect target-machine-specific information.
12203 . ${srcdir}/config.gcc
12205 extra_objs="${host_extra_objs} ${extra_objs}"
12206 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12208 # Default the target-machine variables that were not explicitly set.
12209 if test x"$tm_file" = x
12210 then tm_file=$cpu_type/$cpu_type.h; fi
12212 if test x"$extra_headers" = x
12213 then extra_headers=; fi
12215 if test x$md_file = x
12216 then md_file=$cpu_type/$cpu_type.md; fi
12218 if test x$out_file = x
12219 then out_file=$cpu_type/$cpu_type.c; fi
12221 if test x"$tmake_file" = x
12222 then tmake_file=$cpu_type/t-$cpu_type
12225 if test x"$dwarf2" = xyes
12226 then tm_file="$tm_file tm-dwarf2.h"
12229 # Say what files are being used for the output code and MD file.
12230 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12231 echo "Using \`$srcdir/config/$md_file' as machine description file."
12233 # If any of the xm_file variables contain nonexistent files, warn
12234 # about them and drop them.
12237 for x in $build_xm_file; do
12238 if test -f $srcdir/config/$x
12240 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12241 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12244 build_xm_file="$bx"
12247 for x in $host_xm_file; do
12248 if test -f $srcdir/config/$x
12250 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12251 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12257 for x in $xm_file; do
12258 if test -f $srcdir/config/$x
12260 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12261 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12267 for f in $tm_file; do
12270 if test $count = ax; then
12271 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12273 echo "Using the following target machine macro files:"
12274 for f in $tm_file; do
12275 echo " $srcdir/config/$f"
12279 if test x$need_64bit_hwint = xyes; then
12281 cat >>confdefs.h <<\_ACEOF
12282 #define NEED_64BIT_HOST_WIDE_INT 1
12287 if test x$use_long_long_for_widest_fast_int = xyes; then
12289 cat >>confdefs.h <<\_ACEOF
12290 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12296 for f in $host_xm_file; do
12299 if test $count = a; then
12301 elif test $count = ax; then
12302 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12304 echo "Using the following host machine macro files:"
12305 for f in $host_xm_file; do
12306 echo " $srcdir/config/$f"
12309 echo "Using ${out_host_hook_obj} for host machine hooks."
12311 if test "$host_xm_file" != "$build_xm_file"; then
12313 for f in $build_xm_file; do
12316 if test $count = a; then
12318 elif test $count = ax; then
12319 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12321 echo "Using the following build machine macro files:"
12322 for f in $build_xm_file; do
12323 echo " $srcdir/config/$f"
12329 powerpc*-*-darwin*)
12330 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12331 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12332 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12335 cat >conftest.$ac_ext <<_ACEOF
12337 #include <sys/cdefs.h>
12338 #include <sys/signal.h>
12339 #include <ucontext.h>
12340 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12343 rm -f conftest.$ac_objext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12345 (eval $ac_compile) 2>conftest.er1
12347 grep -v '^ *+' conftest.er1 >conftest.err
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } &&
12352 { ac_try='test -z "$ac_c_werror_flag"
12353 || test ! -s conftest.err'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; } &&
12359 { ac_try='test -s conftest.$ac_objext'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12365 gcc_cv_mcontext_underscores=no
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 gcc_cv_mcontext_underscores=yes
12372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12374 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12375 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12376 if test $gcc_cv_mcontext_underscores = yes; then
12378 cat >>confdefs.h <<\_ACEOF
12379 #define HAS_MCONTEXT_T_UNDERSCORES
12390 # Check if a valid thread package
12391 case ${enable_threads} in
12394 target_thread_file='single'
12398 target_thread_file='single'
12400 aix | dce | gnat | irix | posix | posix95 | rtems | \
12401 single | solaris | vxworks | win32 )
12402 target_thread_file=${enable_threads}
12405 echo "${enable_threads} is an unknown thread package" 1>&2
12410 if test x${thread_file} = x; then
12411 # No thread file set by target-specific clauses in config.gcc,
12412 # so use file chosen by default logic above
12413 thread_file=${target_thread_file}
12416 # Make gthr-default.h if we have a thread file.
12418 if test $thread_file != single; then
12419 rm -f gthr-default.h
12420 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12421 gthread_flags=-DHAVE_GTHR_DEFAULT
12430 if test x$enable___cxa_atexit = xyes || \
12431 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12432 if test x$host = x$target; then
12434 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12435 # keyed to flag_use_cxa_atexit
12440 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12441 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12442 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 cat >conftest.$ac_ext <<_ACEOF
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h. */
12451 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12453 #define __cxa_atexit innocuous___cxa_atexit
12455 /* System header to define __stub macros and hopefully few prototypes,
12456 which can conflict with char __cxa_atexit (); below.
12457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12458 <limits.h> exists even on freestanding compilers. */
12461 # include <limits.h>
12463 # include <assert.h>
12466 #undef __cxa_atexit
12468 /* Override any gcc2 internal prototype to avoid an error. */
12473 /* We use char because int might match the return type of a gcc2
12474 builtin and then its argument prototype would still apply. */
12475 char __cxa_atexit ();
12476 /* The GNU C library defines this for functions which it implements
12477 to always fail with ENOSYS. Some functions are actually named
12478 something starting with __ and the normal name is an alias. */
12479 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12482 char (*f) () = __cxa_atexit;
12491 return f != __cxa_atexit;
12496 rm -f conftest.$ac_objext conftest$ac_exeext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12498 (eval $ac_link) 2>conftest.er1
12500 grep -v '^ *+' conftest.er1 >conftest.err
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } &&
12505 { ac_try='test -z "$ac_c_werror_flag"
12506 || test ! -s conftest.err'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; } &&
12512 { ac_try='test -s conftest$ac_exeext'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12518 ac_cv_func___cxa_atexit=yes
12520 echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12523 ac_cv_func___cxa_atexit=no
12525 rm -f conftest.err conftest.$ac_objext \
12526 conftest$ac_exeext conftest.$ac_ext
12528 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12529 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12530 if test $ac_cv_func___cxa_atexit = yes; then
12533 echo "__cxa_atexit can't be enabled on this target"
12539 # We can't check for __cxa_atexit when building a cross, so assume
12543 if test x$use_cxa_atexit = xyes; then
12545 cat >>confdefs.h <<\_ACEOF
12546 #define DEFAULT_USE_CXA_ATEXIT 2
12553 if test x$with_system_libunwind = xyes; then
12554 if test x$host = x$target; then
12555 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12556 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12557 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 ac_func_search_save_LIBS=$LIBS
12561 ac_cv_search__Unwind_GetIPInfo=no
12562 cat >conftest.$ac_ext <<_ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12569 /* Override any gcc2 internal prototype to avoid an error. */
12573 /* We use char because int might match the return type of a gcc2
12574 builtin and then its argument prototype would still apply. */
12575 char _Unwind_GetIPInfo ();
12579 _Unwind_GetIPInfo ();
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12586 (eval $ac_link) 2>conftest.er1
12588 grep -v '^ *+' conftest.er1 >conftest.err
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag"
12594 || test ! -s conftest.err'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest$ac_exeext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 ac_cv_search__Unwind_GetIPInfo="none required"
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12612 rm -f conftest.err conftest.$ac_objext \
12613 conftest$ac_exeext conftest.$ac_ext
12614 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12615 for ac_lib in unwind; do
12616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12617 cat >conftest.$ac_ext <<_ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12624 /* Override any gcc2 internal prototype to avoid an error. */
12628 /* We use char because int might match the return type of a gcc2
12629 builtin and then its argument prototype would still apply. */
12630 char _Unwind_GetIPInfo ();
12634 _Unwind_GetIPInfo ();
12639 rm -f conftest.$ac_objext conftest$ac_exeext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12641 (eval $ac_link) 2>conftest.er1
12643 grep -v '^ *+' conftest.er1 >conftest.err
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
12648 { ac_try='test -z "$ac_c_werror_flag"
12649 || test ! -s conftest.err'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; } &&
12655 { ac_try='test -s conftest$ac_exeext'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12668 rm -f conftest.err conftest.$ac_objext \
12669 conftest$ac_exeext conftest.$ac_ext
12672 LIBS=$ac_func_search_save_LIBS
12674 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12675 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12676 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12677 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12686 if test x$use_getipinfo = xyes; then
12688 cat >>confdefs.h <<\_ACEOF
12689 #define HAVE_GETIPINFO 1
12693 echo "The system unwind library does not support _Unwind_GetIPInfo."
12696 # Look for a file containing extra machine modes.
12697 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12698 extra_modes_file='$(srcdir)'/config/${extra_modes}
12701 cat >>confdefs.h <<_ACEOF
12702 #define EXTRA_MODES_FILE "config/$extra_modes"
12707 # Convert extra_options into a form suitable for Makefile use.
12709 for f in $extra_options; do
12710 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12714 # auto-host.h is the file containing items generated by autoconf and is
12715 # the first file included by config.h.
12716 # If host=build, it is correct to have bconfig include auto-host.h
12717 # as well. If host!=build, we are in error and need to do more
12718 # work to find out the build config parameters.
12719 if test x$host = x$build
12721 build_auto=auto-host.h
12723 # We create a subdir, then run autoconf in the subdir.
12724 # To prevent recursion we set host and build for the new
12725 # invocation of configure to the build for this invocation
12732 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12733 *) realsrcdir=../${srcdir};;
12735 saved_CFLAGS="${CFLAGS}"
12736 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12737 ${realsrcdir}/configure \
12738 --enable-languages=${enable_languages-all} \
12739 --target=$target_alias --host=$build_alias --build=$build_alias
12740 CFLAGS="${saved_CFLAGS}"
12742 # We just finished tests for the build machine, so rename
12743 # the file auto-build.h in the gcc directory.
12744 mv auto-host.h ../auto-build.h
12747 build_auto=auto-build.h
12751 tm_file="${tm_file} defaults.h"
12752 tm_p_file="${tm_p_file} tm-preds.h"
12753 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12754 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12755 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12756 # put this back in temporarily.
12757 xm_file="auto-host.h ansidecl.h ${xm_file}"
12763 # Compile in configure arguments.
12764 if test -f configargs.h ; then
12765 # Being re-configured.
12766 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12767 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12769 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12772 # Double all backslashes and backslash all quotes to turn
12773 # gcc_config_arguments into a C string.
12774 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12775 $gcc_config_arguments
12777 gcc_config_arguments_str=`cat conftest.out`
12780 cat > configargs.h <<EOF
12781 /* Generated automatically. */
12782 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12783 static const char thread_model[] = "$thread_file";
12785 static const struct {
12786 const char *name, *value;
12787 } configure_default_options[] = $configure_default_options;
12790 # Internationalization
12791 # If we haven't got the data from the intl directory,
12792 # assume NLS is disabled.
12801 if test -f ../intl/config.intl; then
12802 . ../intl/config.intl
12804 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12805 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12806 if test x"$USE_NLS" != xyes; then
12807 echo "$as_me:$LINENO: result: no" >&5
12808 echo "${ECHO_T}no" >&6
12810 echo "$as_me:$LINENO: result: yes" >&5
12811 echo "${ECHO_T}yes" >&6
12813 cat >>confdefs.h <<\_ACEOF
12814 #define ENABLE_NLS 1
12818 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12819 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12820 # Look for .po and .gmo files in the source directory.
12823 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12824 # If there aren't any .gmo files the shell will give us the
12825 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12827 case "$cat" in *\**)
12830 # The quadruple backslash is collapsed to a double backslash
12831 # by the backticks, then collapsed again by the double quotes,
12832 # leaving us with one backslash in the sed expression (right
12833 # before the dot that mustn't act as a wildcard).
12834 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12835 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12836 # The user is allowed to set LINGUAS to a list of languages to
12837 # install catalogs for. If it's empty that means "all of them."
12838 if test "x$LINGUAS" = x; then
12839 CATALOGS="$CATALOGS $cat"
12840 XLINGUAS="$XLINGUAS $lang"
12842 case "$LINGUAS" in *$lang*)
12843 CATALOGS="$CATALOGS $cat"
12844 XLINGUAS="$XLINGUAS $lang"
12849 LINGUAS="$XLINGUAS"
12850 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12851 echo "${ECHO_T}$LINGUAS" >&6
12864 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12865 # -liconv on the link line twice.
12866 case "$LIBINTL" in *$LIBICONV*)
12870 # Check whether --enable-secureplt or --disable-secureplt was given.
12871 if test "${enable_secureplt+set}" = set; then
12872 enableval="$enable_secureplt"
12876 # Windows32 Registry support for specifying GCC installation paths.
12877 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12878 if test "${enable_win32_registry+set}" = set; then
12879 enableval="$enable_win32_registry"
12884 win32 | pe | cygwin* | mingw32* | uwin*)
12885 if test "x$enable_win32_registry" != xno; then
12886 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12887 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12888 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 ac_func_search_save_LIBS=$LIBS
12892 ac_cv_search_RegOpenKeyExA=no
12893 cat >conftest.$ac_ext <<_ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12900 /* Override any gcc2 internal prototype to avoid an error. */
12904 /* We use char because int might match the return type of a gcc2
12905 builtin and then its argument prototype would still apply. */
12906 char RegOpenKeyExA ();
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917 (eval $ac_link) 2>conftest.er1
12919 grep -v '^ *+' conftest.er1 >conftest.err
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } &&
12924 { ac_try='test -z "$ac_c_werror_flag"
12925 || test ! -s conftest.err'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; } &&
12931 { ac_try='test -s conftest$ac_exeext'
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; }; then
12937 ac_cv_search_RegOpenKeyExA="none required"
12939 echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12943 rm -f conftest.err conftest.$ac_objext \
12944 conftest$ac_exeext conftest.$ac_ext
12945 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12946 for ac_lib in advapi32; do
12947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12948 cat >conftest.$ac_ext <<_ACEOF
12951 cat confdefs.h >>conftest.$ac_ext
12952 cat >>conftest.$ac_ext <<_ACEOF
12953 /* end confdefs.h. */
12955 /* Override any gcc2 internal prototype to avoid an error. */
12959 /* We use char because int might match the return type of a gcc2
12960 builtin and then its argument prototype would still apply. */
12961 char RegOpenKeyExA ();
12970 rm -f conftest.$ac_objext conftest$ac_exeext
12971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12972 (eval $ac_link) 2>conftest.er1
12974 grep -v '^ *+' conftest.er1 >conftest.err
12976 cat conftest.err >&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); } &&
12979 { ac_try='test -z "$ac_c_werror_flag"
12980 || test ! -s conftest.err'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; } &&
12986 { ac_try='test -s conftest$ac_exeext'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
12992 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12995 echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12999 rm -f conftest.err conftest.$ac_objext \
13000 conftest$ac_exeext conftest.$ac_ext
13003 LIBS=$ac_func_search_save_LIBS
13005 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13006 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13007 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13008 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13011 enable_win32_registry=no
13016 if test "x$enable_win32_registry" != xno; then
13018 cat >>confdefs.h <<\_ACEOF
13019 #define ENABLE_WIN32_REGISTRY 1
13023 if test "x$enable_win32_registry" != xyes \
13024 && test "x$enable_win32_registry" != x; then
13026 cat >>confdefs.h <<_ACEOF
13027 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13035 # Get an absolute path to the GCC top-level source directory
13036 holddir=`${PWDCMD-pwd}`
13038 topdir=`${PWDCMD-pwd}`
13041 # Conditionalize the makefile for this host machine.
13043 for f in ${host_xmake_file}
13045 if test -f ${srcdir}/config/$f
13047 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13051 # Conditionalize the makefile for this target machine.
13053 for f in ${tmake_file}
13055 if test -f ${srcdir}/config/$f
13057 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13060 tmake_file="${tmake_file_}"
13062 # This is a terrible hack which will go away some day.
13063 host_cc_for_libada=${CC}
13066 out_object_file=`basename $out_file .c`.o
13068 tm_file_list="options.h"
13069 tm_include_list="options.h"
13070 for f in $tm_file; do
13073 f=`echo $f | sed 's/^..//'`
13074 tm_file_list="${tm_file_list} $f"
13075 tm_include_list="${tm_include_list} $f"
13078 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13079 tm_include_list="${tm_include_list} $f"
13082 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13083 tm_include_list="${tm_include_list} config/$f"
13090 for f in $tm_p_file; do
13093 tm_p_file_list="${tm_p_file_list} $f"
13094 tm_p_include_list="${tm_p_include_list} $f"
13097 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13098 tm_p_include_list="${tm_p_include_list} config/$f"
13104 for f in $xm_file; do
13107 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13108 xm_include_list="${xm_include_list} $f"
13111 xm_file_list="${xm_file_list} $f"
13112 xm_include_list="${xm_include_list} $f"
13115 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13116 xm_include_list="${xm_include_list} config/$f"
13122 host_xm_include_list=
13123 for f in $host_xm_file; do
13126 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13127 host_xm_include_list="${host_xm_include_list} $f"
13130 host_xm_file_list="${host_xm_file_list} $f"
13131 host_xm_include_list="${host_xm_include_list} $f"
13134 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13135 host_xm_include_list="${host_xm_include_list} config/$f"
13140 build_xm_file_list=
13141 for f in $build_xm_file; do
13144 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13145 build_xm_include_list="${build_xm_include_list} $f"
13147 auto-build.h | auto-host.h )
13148 build_xm_file_list="${build_xm_file_list} $f"
13149 build_xm_include_list="${build_xm_include_list} $f"
13152 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13153 build_xm_include_list="${build_xm_include_list} config/$f"
13158 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13159 # cross-compiler which does not use the native headers and libraries.
13160 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13163 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13165 if test "x$with_build_sysroot" != x; then
13166 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13168 # This value is used, even on a native system, because
13169 # CROSS_SYSTEM_HEADER_DIR is just
13170 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13171 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13174 if test x$host != x$target
13176 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13178 SYSTEM_HEADER_DIR=$build_system_header_dir
13179 case "$host","$target" in
13180 # Darwin crosses can use the host system's libraries and headers,
13181 # because of the fat library support. Of course, it must be the
13182 # same version of Darwin on both sides. Allow the user to
13183 # just say --target=foo-darwin without a version number to mean
13184 # "the version on this system".
13185 *-*-darwin*,*-*-darwin*)
13186 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13187 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13188 if test $hostos = $targetos -o $targetos = darwin ; then
13190 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13195 i?86-*-*,x86_64-*-* \
13196 | powerpc*-*-*,powerpc64*-*-*)
13197 CROSS="$CROSS -DNATIVE_CROSS" ;;
13199 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13200 SYSTEM_HEADER_DIR=$build_system_header_dir
13203 # If this is a cross-compiler that does not
13204 # have its own set of headers then define
13207 # If this is using newlib, without having the headers available now,
13208 # then define inhibit_libc in LIBGCC2_CFLAGS.
13209 # This prevents libgcc2 from containing any code which requires libc
13212 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13213 test x$with_newlib = xyes ; } &&
13214 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13219 # When building gcc with a cross-compiler, we need to adjust things so
13220 # that the generator programs are still built with the native compiler.
13221 # Also, we cannot run fixincludes or fix-header.
13223 # These are the normal (build=host) settings:
13224 CC_FOR_BUILD='$(CC)'
13225 BUILD_CFLAGS='$(ALL_CFLAGS)'
13226 STMP_FIXINC=stmp-fixinc
13228 # Possibly disable fixproto, on a per-target basis.
13229 case ${use_fixproto} in
13234 STMP_FIXPROTO=stmp-fixproto
13239 # And these apply if build != host, or we are generating coverage data
13240 if test x$build != x$host || test "x$coverage_flags" != x
13242 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13244 if test "x$TARGET_SYSTEM_ROOT" = x; then
13245 if test "x$STMP_FIXPROTO" != x; then
13246 STMP_FIXPROTO=stmp-install-fixproto
13251 # Expand extra_headers to include complete path.
13252 # This substitutes for lots of t-* files.
13253 extra_headers_list=
13254 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13255 for file in ${extra_headers} ; do
13256 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13259 # Define collect2 in Makefile.
13260 case $host_can_use_collect2 in
13262 *) collect2='collect2$(exeext)' ;;
13266 # Add a definition of USE_COLLECT2 if system wants one.
13267 case $use_collect2 in
13268 no) use_collect2= ;;
13271 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13272 xm_defines="${xm_defines} USE_COLLECT2"
13273 case $host_can_use_collect2 in
13275 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13276 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13277 { (exit 1); exit 1; }; }
13283 # ---------------------------
13284 # Assembler & linker features
13285 # ---------------------------
13287 # Identify the assembler which will work hand-in-glove with the newly
13288 # built GCC, so that we can examine its features. This is the assembler
13289 # which will be driven by the driver program.
13291 # If build != host, and we aren't building gas in-tree, we identify a
13292 # build->target assembler and hope that it will have the same features
13293 # as the host->target assembler we'll be using.
13294 gcc_cv_gas_major_version=
13295 gcc_cv_gas_minor_version=
13296 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13298 if test "${gcc_cv_as+set}" = set; then
13302 if test -x "$DEFAULT_ASSEMBLER"; then
13303 gcc_cv_as="$DEFAULT_ASSEMBLER"
13304 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13305 && test -f ../gas/Makefile \
13306 && test x$build = x$host; then
13307 gcc_cv_as=../gas/as-new$build_exeext
13308 elif test -x as$build_exeext; then
13309 # Build using assembler in the current directory.
13310 gcc_cv_as=./as$build_exeext
13311 elif test -x $AS_FOR_TARGET; then
13312 gcc_cv_as="$AS_FOR_TARGET"
13314 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13315 set dummy $AS_FOR_TARGET; ac_word=$2
13316 echo "$as_me:$LINENO: checking for $ac_word" >&5
13317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13318 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13319 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327 for as_dir in $PATH
13330 test -z "$as_dir" && as_dir=.
13331 for ac_exec_ext in '' $ac_executable_extensions; do
13332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13333 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13343 gcc_cv_as=$ac_cv_path_gcc_cv_as
13345 if test -n "$gcc_cv_as"; then
13346 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13347 echo "${ECHO_T}$gcc_cv_as" >&6
13349 echo "$as_me:$LINENO: result: no" >&5
13350 echo "${ECHO_T}no" >&6
13357 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13359 case "$ORIGINAL_AS_FOR_TARGET" in
13360 ./as | ./as$build_exeext) ;;
13361 *) ac_config_files="$ac_config_files as:exec-tool.in"
13365 echo "$as_me:$LINENO: checking what assembler to use" >&5
13366 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13367 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13368 # Single tree build which includes gas. We want to prefer it
13369 # over whatever linker top-level may have detected, since
13370 # we'll use what we're building after installation anyway.
13371 echo "$as_me:$LINENO: result: newly built gas" >&5
13372 echo "${ECHO_T}newly built gas" >&6
13374 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13375 for f in $gcc_cv_as_bfd_srcdir/configure \
13376 $gcc_cv_as_gas_srcdir/configure \
13377 $gcc_cv_as_gas_srcdir/configure.in \
13378 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13379 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13380 if test x$gcc_cv_gas_version != x; then
13384 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13385 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13386 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13387 case $gcc_cv_gas_patch_version in
13388 "") gcc_cv_gas_patch_version="0" ;;
13390 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13391 + $gcc_cv_gas_minor_version \) \* 1000 \
13392 + $gcc_cv_gas_patch_version`
13394 in_tree_gas_is_elf=no
13395 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13396 || (grep 'obj_format = multi' ../gas/Makefile \
13397 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13399 in_tree_gas_is_elf=yes
13402 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13403 echo "${ECHO_T}$gcc_cv_as" >&6
13407 # Identify the linker which will work hand-in-glove with the newly
13408 # built GCC, so that we can examine its features. This is the linker
13409 # which will be driven by the driver program.
13411 # If build != host, and we aren't building gas in-tree, we identify a
13412 # build->target linker and hope that it will have the same features
13413 # as the host->target linker we'll be using.
13414 gcc_cv_gld_major_version=
13415 gcc_cv_gld_minor_version=
13416 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13417 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13419 if test "${gcc_cv_ld+set}" = set; then
13423 if test -x "$DEFAULT_LINKER"; then
13424 gcc_cv_ld="$DEFAULT_LINKER"
13425 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13426 && test -f ../ld/Makefile \
13427 && test x$build = x$host; then
13428 gcc_cv_ld=../ld/ld-new$build_exeext
13429 elif test -x collect-ld$build_exeext; then
13430 # Build using linker in the current directory.
13431 gcc_cv_ld=./collect-ld$build_exeext
13432 elif test -x $LD_FOR_TARGET; then
13433 gcc_cv_ld="$LD_FOR_TARGET"
13435 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13436 set dummy $LD_FOR_TARGET; ac_word=$2
13437 echo "$as_me:$LINENO: checking for $ac_word" >&5
13438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13439 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
13444 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448 for as_dir in $PATH
13451 test -z "$as_dir" && as_dir=.
13452 for ac_exec_ext in '' $ac_executable_extensions; do
13453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13454 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13464 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13466 if test -n "$gcc_cv_ld"; then
13467 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13468 echo "${ECHO_T}$gcc_cv_ld" >&6
13470 echo "$as_me:$LINENO: result: no" >&5
13471 echo "${ECHO_T}no" >&6
13478 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13480 case "$ORIGINAL_LD_FOR_TARGET" in
13481 ./collect-ld | ./collect-ld$build_exeext) ;;
13482 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
13486 echo "$as_me:$LINENO: checking what linker to use" >&5
13487 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13488 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13489 # Single tree build which includes ld. We want to prefer it
13490 # over whatever linker top-level may have detected, since
13491 # we'll use what we're building after installation anyway.
13492 echo "$as_me:$LINENO: result: newly built ld" >&5
13493 echo "${ECHO_T}newly built ld" >&6
13495 in_tree_ld_is_elf=no
13496 if (grep 'EMUL = .*elf' ../ld/Makefile \
13497 || grep 'EMUL = .*linux' ../ld/Makefile \
13498 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13499 in_tree_ld_is_elf=yes
13501 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
13503 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13504 if test x$gcc_cv_gld_version != x; then
13508 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13509 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13511 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13512 echo "${ECHO_T}$gcc_cv_ld" >&6
13516 # Figure out what nm we will be using.
13517 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13518 if test "${gcc_cv_nm+set}" = set; then
13522 if test -f $gcc_cv_binutils_srcdir/configure.in \
13523 && test -f ../binutils/Makefile \
13524 && test x$build = x$host; then
13525 gcc_cv_nm=../binutils/nm-new$build_exeext
13526 elif test -x nm$build_exeext; then
13527 gcc_cv_nm=./nm$build_exeext
13528 elif test -x $NM_FOR_TARGET; then
13529 gcc_cv_nm="$NM_FOR_TARGET"
13531 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13532 set dummy $NM_FOR_TARGET; ac_word=$2
13533 echo "$as_me:$LINENO: checking for $ac_word" >&5
13534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13535 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13544 for as_dir in $PATH
13547 test -z "$as_dir" && as_dir=.
13548 for ac_exec_ext in '' $ac_executable_extensions; do
13549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13550 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13560 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13562 if test -n "$gcc_cv_nm"; then
13563 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13564 echo "${ECHO_T}$gcc_cv_nm" >&6
13566 echo "$as_me:$LINENO: result: no" >&5
13567 echo "${ECHO_T}no" >&6
13574 echo "$as_me:$LINENO: checking what nm to use" >&5
13575 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13576 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13577 # Single tree build which includes binutils.
13578 echo "$as_me:$LINENO: result: newly built nm" >&5
13579 echo "${ECHO_T}newly built nm" >&6
13582 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13583 echo "${ECHO_T}$gcc_cv_nm" >&6
13587 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13589 case "$ORIGINAL_NM_FOR_TARGET" in
13590 ./nm | ./nm$build_exeext) ;;
13591 *) ac_config_files="$ac_config_files nm:exec-tool.in"
13596 # Figure out what objdump we will be using.
13597 if test "${gcc_cv_objdump+set}" = set; then
13601 if test -f $gcc_cv_binutils_srcdir/configure.in \
13602 && test -f ../binutils/Makefile \
13603 && test x$build = x$host; then
13604 # Single tree build which includes binutils.
13605 gcc_cv_objdump=../binutils/objdump$build_exeext
13606 elif test -x objdump$build_exeext; then
13607 gcc_cv_objdump=./objdump$build_exeext
13608 elif test -x $OBJDUMP_FOR_TARGET; then
13609 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13611 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13612 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13613 echo "$as_me:$LINENO: checking for $ac_word" >&5
13614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13615 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 case $gcc_cv_objdump in
13620 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13624 for as_dir in $PATH
13627 test -z "$as_dir" && as_dir=.
13628 for ac_exec_ext in '' $ac_executable_extensions; do
13629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13630 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13640 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13642 if test -n "$gcc_cv_objdump"; then
13643 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13644 echo "${ECHO_T}$gcc_cv_objdump" >&6
13646 echo "$as_me:$LINENO: result: no" >&5
13647 echo "${ECHO_T}no" >&6
13654 echo "$as_me:$LINENO: checking what objdump to use" >&5
13655 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13656 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13657 # Single tree build which includes binutils.
13658 echo "$as_me:$LINENO: result: newly built objdump" >&5
13659 echo "${ECHO_T}newly built objdump" >&6
13660 elif test x$gcc_cv_objdump = x; then
13661 echo "$as_me:$LINENO: result: not found" >&5
13662 echo "${ECHO_T}not found" >&6
13664 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13665 echo "${ECHO_T}$gcc_cv_objdump" >&6
13668 # Figure out what assembler alignment features are present.
13669 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13670 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13671 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 gcc_cv_as_balign_and_p2align=no
13675 if test $in_tree_gas = yes; then
13676 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13677 then gcc_cv_as_balign_and_p2align=yes
13679 elif test x$gcc_cv_as != x; then
13681 .p2align 2' > conftest.s
13682 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }
13689 gcc_cv_as_balign_and_p2align=yes
13691 echo "configure: failed program was" >&5
13694 rm -f conftest.o conftest.s
13697 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13698 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13699 if test $gcc_cv_as_balign_and_p2align = yes; then
13701 cat >>confdefs.h <<\_ACEOF
13702 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13707 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13708 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13709 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 gcc_cv_as_max_skip_p2align=no
13713 if test $in_tree_gas = yes; then
13714 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13715 then gcc_cv_as_max_skip_p2align=yes
13717 elif test x$gcc_cv_as != x; then
13718 echo '.p2align 4,,7' > conftest.s
13719 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }
13726 gcc_cv_as_max_skip_p2align=yes
13728 echo "configure: failed program was" >&5
13731 rm -f conftest.o conftest.s
13734 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13735 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13736 if test $gcc_cv_as_max_skip_p2align = yes; then
13738 cat >>confdefs.h <<\_ACEOF
13739 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13744 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13745 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13746 if test "${gcc_cv_as_literal16+set}" = set; then
13747 echo $ECHO_N "(cached) $ECHO_C" >&6
13749 gcc_cv_as_literal16=no
13750 if test $in_tree_gas = yes; then
13751 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13752 then gcc_cv_as_literal16=yes
13754 elif test x$gcc_cv_as != x; then
13755 echo '.literal16' > conftest.s
13756 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; }
13763 gcc_cv_as_literal16=yes
13765 echo "configure: failed program was" >&5
13768 rm -f conftest.o conftest.s
13771 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13772 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13773 if test $gcc_cv_as_literal16 = yes; then
13775 cat >>confdefs.h <<\_ACEOF
13776 #define HAVE_GAS_LITERAL16 1
13781 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13782 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13783 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 gcc_cv_as_subsection_m1=no
13787 if test $in_tree_gas = yes; then
13788 if test $in_tree_gas_is_elf = yes \
13789 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13790 then gcc_cv_as_subsection_m1=yes
13792 elif test x$gcc_cv_as != x; then
13793 echo 'conftest_label1: .word 0
13795 conftest_label2: .word 0
13796 .previous' > conftest.s
13797 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799 (eval $ac_try) 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; }
13804 if test x$gcc_cv_nm != x; then
13805 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13806 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13807 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13809 else gcc_cv_as_subsection_m1=yes
13811 rm -f conftest.nm1 conftest.nm2
13814 echo "configure: failed program was" >&5
13817 rm -f conftest.o conftest.s
13820 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13821 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13822 if test $gcc_cv_as_subsection_m1 = yes; then
13824 cat >>confdefs.h <<\_ACEOF
13825 #define HAVE_GAS_SUBSECTION_ORDERING 1
13830 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13831 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13832 if test "${gcc_cv_as_weak+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 if test $in_tree_gas = yes; then
13837 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13838 then gcc_cv_as_weak=yes
13840 elif test x$gcc_cv_as != x; then
13841 echo ' .weak foobar' > conftest.s
13842 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }
13851 echo "configure: failed program was" >&5
13854 rm -f conftest.o conftest.s
13857 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13858 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13859 if test $gcc_cv_as_weak = yes; then
13861 cat >>confdefs.h <<\_ACEOF
13862 #define HAVE_GAS_WEAK 1
13867 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13868 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13869 if test "${gcc_cv_as_weakref+set}" = set; then
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 gcc_cv_as_weakref=no
13873 if test $in_tree_gas = yes; then
13874 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13875 then gcc_cv_as_weakref=yes
13877 elif test x$gcc_cv_as != x; then
13878 echo ' .weakref foobar, barfnot' > conftest.s
13879 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; }
13886 gcc_cv_as_weakref=yes
13888 echo "configure: failed program was" >&5
13891 rm -f conftest.o conftest.s
13894 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13895 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13896 if test $gcc_cv_as_weakref = yes; then
13898 cat >>confdefs.h <<\_ACEOF
13899 #define HAVE_GAS_WEAKREF 1
13904 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13905 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13906 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 gcc_cv_as_nsubspa_comdat=no
13910 if test $in_tree_gas = yes; then
13911 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13912 then gcc_cv_as_nsubspa_comdat=yes
13914 elif test x$gcc_cv_as != x; then
13915 echo ' .SPACE $TEXT$
13916 .NSUBSPA $CODE$,COMDAT' > conftest.s
13917 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; }
13924 gcc_cv_as_nsubspa_comdat=yes
13926 echo "configure: failed program was" >&5
13929 rm -f conftest.o conftest.s
13932 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13933 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13934 if test $gcc_cv_as_nsubspa_comdat = yes; then
13936 cat >>confdefs.h <<\_ACEOF
13937 #define HAVE_GAS_NSUBSPA_COMDAT 1
13942 # .hidden needs to be supported in both the assembler and the linker,
13943 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13944 # This is irritatingly difficult to feature test for; we have to check the
13945 # date string after the version number. If we've got an in-tree
13946 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13948 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13949 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13950 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13951 if test "${gcc_cv_as_hidden+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 gcc_cv_as_hidden=no
13955 if test $in_tree_gas = yes; then
13956 if test $in_tree_gas_is_elf = yes \
13957 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13958 then gcc_cv_as_hidden=yes
13960 elif test x$gcc_cv_as != x; then
13961 echo ' .hidden foobar
13962 foobar:' > conftest.s
13963 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; }
13970 gcc_cv_as_hidden=yes
13972 echo "configure: failed program was" >&5
13975 rm -f conftest.o conftest.s
13978 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13979 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13982 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13983 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13984 if test "${gcc_cv_ld_hidden+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13987 if test $in_tree_ld = yes ; then
13988 gcc_cv_ld_hidden=no
13989 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 \
13990 && test $in_tree_ld_is_elf = yes; then
13991 gcc_cv_ld_hidden=yes
13994 gcc_cv_ld_hidden=yes
13995 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13996 if echo "$ld_ver" | grep GNU > /dev/null; then
13997 ld_vers=`echo $ld_ver | sed -n \
13998 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13999 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14000 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14001 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14002 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14003 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14004 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
14005 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'`
14006 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14007 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14008 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14009 if test 0"$ld_date" -lt 20020404; then
14010 if test -n "$ld_date"; then
14011 # If there was date string, but was earlier than 2002-04-04, fail
14012 gcc_cv_ld_hidden=no
14013 elif test -z "$ld_vers"; then
14014 # If there was no date string nor ld version number, something is wrong
14015 gcc_cv_ld_hidden=no
14017 test -z "$ld_vers_patch" && ld_vers_patch=0
14018 if test "$ld_vers_major" -lt 2; then
14019 gcc_cv_ld_hidden=no
14020 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14021 gcc_cv_ld_hidden="no"
14022 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14023 gcc_cv_ld_hidden=no
14028 case "${target}" in
14029 hppa64*-*-hpux* | ia64*-*-hpux*)
14030 gcc_cv_ld_hidden=yes
14033 gcc_cv_ld_hidden=no
14039 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14040 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14041 libgcc_visibility=no
14044 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14045 libgcc_visibility=yes
14047 cat >>confdefs.h <<\_ACEOF
14048 #define HAVE_GAS_HIDDEN 1
14053 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14054 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14055 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14056 if test "${gcc_cv_as_leb128+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 gcc_cv_as_leb128=no
14060 if test $in_tree_gas = yes; then
14061 if test $in_tree_gas_is_elf = yes \
14062 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14063 then gcc_cv_as_leb128=yes
14065 elif test x$gcc_cv_as != x; then
14072 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }
14079 # GAS versions before 2.11 do not support uleb128,
14080 # despite appearing to.
14081 # ??? There exists an elf-specific test that will crash
14082 # the assembler. Perhaps it's better to figure out whether
14083 # arbitrary sections are supported and try the test.
14084 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14085 if echo "$as_ver" | grep GNU > /dev/null; then
14086 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14087 as_major=`echo $as_ver | sed 's/\..*//'`
14088 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14089 if test $as_major -eq 2 && test $as_minor -lt 11
14091 else gcc_cv_as_leb128=yes
14095 echo "configure: failed program was" >&5
14098 rm -f conftest.o conftest.s
14101 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14102 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14103 if test $gcc_cv_as_leb128 = yes; then
14105 cat >>confdefs.h <<\_ACEOF
14106 #define HAVE_AS_LEB128 1
14111 # GAS versions up to and including 2.11.0 may mis-optimize
14113 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14114 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14115 if test "${gcc_cv_as_eh_frame+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 gcc_cv_as_eh_frame=no
14119 if test $in_tree_gas = yes; then
14120 if test $in_tree_gas_is_elf = yes \
14121 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14122 then gcc_cv_as_eh_frame=yes
14124 elif test x$gcc_cv_as != x; then
14131 .section .eh_frame,"aw",@progbits
14133 .4byte .LECIE1-.LSCIE1
14147 .4byte .LEFDE1-.LASFDE1
14149 .4byte .LASFDE1-__FRAME_BEGIN__
14156 .LEFDE1:' > conftest.s
14157 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159 (eval $ac_try) 2>&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); }; }
14164 cat > conftest.lit <<EOF
14165 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14166 0010 01000000 12000000 18000000 00000000 ................
14167 0020 08000000 04080000 0044 .........D
14169 cat > conftest.big <<EOF
14170 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14171 0010 00000001 00000012 00000018 00000000 ................
14172 0020 00000008 04000000 0844 .........D
14174 # If the assembler didn't choke, and we can objdump,
14175 # and we got the correct data, then succeed.
14176 # The text in the here-document typically retains its unix-style line
14177 # endings, while the output of objdump will use host line endings.
14178 # Therefore, use diff -b for the comparisons.
14179 if test x$gcc_cv_objdump != x \
14180 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14181 | tail -3 > conftest.got \
14182 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14183 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14185 gcc_cv_as_eh_frame=yes
14186 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14192 gcc_cv_as_eh_frame=buggy
14194 # Uh oh, what do we do now?
14195 gcc_cv_as_eh_frame=no
14198 echo "configure: failed program was" >&5
14201 rm -f conftest.o conftest.s
14204 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14205 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14208 if test $gcc_cv_as_eh_frame = buggy; then
14210 cat >>confdefs.h <<\_ACEOF
14211 #define USE_AS_TRADITIONAL_FORMAT 1
14216 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14217 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14218 if test "${gcc_cv_as_shf_merge+set}" = set; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 gcc_cv_as_shf_merge=no
14222 if test $in_tree_gas = yes; then
14223 if test $in_tree_gas_is_elf = yes \
14224 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14225 then gcc_cv_as_shf_merge=yes
14227 elif test x$gcc_cv_as != x; then
14228 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14229 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }
14236 gcc_cv_as_shf_merge=yes
14238 echo "configure: failed program was" >&5
14241 rm -f conftest.o conftest.s
14244 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14245 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14247 if test $gcc_cv_as_shf_merge = no; then
14248 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14249 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14250 if test "${gcc_cv_as_shf_merge+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 gcc_cv_as_shf_merge=no
14254 if test $in_tree_gas = yes; then
14255 if test $in_tree_gas_is_elf = yes \
14256 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14257 then gcc_cv_as_shf_merge=yes
14259 elif test x$gcc_cv_as != x; then
14260 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14261 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; }
14268 gcc_cv_as_shf_merge=yes
14270 echo "configure: failed program was" >&5
14273 rm -f conftest.o conftest.s
14276 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14277 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14281 cat >>confdefs.h <<_ACEOF
14282 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14286 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14287 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14288 if test "${gcc_cv_as_comdat_group+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 gcc_cv_as_comdat_group=no
14292 if test $in_tree_gas = yes; then
14293 if test $in_tree_gas_is_elf = yes \
14294 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14295 then gcc_cv_as_comdat_group=yes
14297 elif test x$gcc_cv_as != x; then
14298 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14299 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }
14306 gcc_cv_as_comdat_group=yes
14308 echo "configure: failed program was" >&5
14311 rm -f conftest.o conftest.s
14314 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14315 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14317 if test $gcc_cv_as_comdat_group = yes; then
14318 gcc_cv_as_comdat_group_percent=no
14320 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14321 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14322 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 gcc_cv_as_comdat_group_percent=no
14326 if test $in_tree_gas = yes; then
14327 if test $in_tree_gas_is_elf = yes \
14328 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14329 then gcc_cv_as_comdat_group_percent=yes
14331 elif test x$gcc_cv_as != x; then
14332 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14333 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }
14340 gcc_cv_as_comdat_group_percent=yes
14342 echo "configure: failed program was" >&5
14345 rm -f conftest.o conftest.s
14348 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14349 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14352 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14354 if test 0"$ld_date" -lt 20050308; then
14355 if test -n "$ld_date"; then
14356 # If there was date string, but was earlier than 2005-03-08, fail
14358 elif test "$ld_vers_major" -lt 2; then
14360 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14365 # assume linkers other than GNU ld don't support COMDAT group
14368 if test $comdat_group = no; then
14369 gcc_cv_as_comdat_group=no
14370 gcc_cv_as_comdat_group_percent=no
14373 cat >>confdefs.h <<_ACEOF
14374 #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`
14378 # Thread-local storage - the check is heavily parametrized.
14386 .section ".tdata","awT",@progbits
14389 ldq $27,__tls_get_addr($29) !literal!1
14390 lda $16,foo($29) !tlsgd!1
14391 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14392 ldq $27,__tls_get_addr($29) !literal!2
14393 lda $16,foo($29) !tlsldm!2
14394 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14395 ldq $1,foo($29) !gotdtprel
14396 ldah $2,foo($29) !dtprelhi
14397 lda $3,foo($2) !dtprello
14398 lda $4,foo($29) !dtprel
14399 ldq $1,foo($29) !gottprel
14400 ldah $2,foo($29) !tprelhi
14401 lda $3,foo($2) !tprello
14402 lda $4,foo($29) !tprel'
14405 tls_as_opt=--fatal-warnings
14409 .section ".tdata","awT",@progbits
14412 call #gettlsoff(x)'
14421 .section ".tdata","awT",@progbits
14425 addil LT%foo-$tls_gdidx$,gp
14426 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14429 addil LT%foo-$tls_ldidx$,gp
14431 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14432 addil LR%foo-$tls_dtpoff$,%ret0
14433 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14435 addil LT%foo-$tls_ieoff$,gp
14436 ldw RT%foo-$tls_ieoff$(%r1),%t2
14439 addil LR%foo-$tls_leoff$,%t1
14440 ldo RR%foo-$tls_leoff$(%r1),%t2'
14443 tls_as_opt=--fatal-warnings
14447 .section ".tdata","awT",%progbits
14450 .word foo(gottpoff)
14460 .section ".tdata","awT",@progbits
14464 leal foo@TLSGD(,%ebx,1), %eax
14465 leal foo@TLSLDM(%ebx), %eax
14466 leal foo@DTPOFF(%eax), %edx
14467 movl foo@GOTTPOFF(%ebx), %eax
14468 subl foo@GOTTPOFF(%ebx), %eax
14469 addl foo@GOTNTPOFF(%ebx), %eax
14470 movl foo@INDNTPOFF, %eax
14471 movl $foo@TPOFF, %eax
14472 subl $foo@TPOFF, %eax
14473 leal foo@NTPOFF(%ecx), %eax'
14476 tls_as_opt=--fatal-warnings
14480 .section ".tdata","awT",@progbits
14484 leaq foo@TLSGD(%rip), %rdi
14485 leaq foo@TLSLD(%rip), %rdi
14486 leaq foo@DTPOFF(%rax), %rdx
14487 movq foo@GOTTPOFF(%rip), %rax
14488 movq $foo@TPOFF, %rax'
14491 tls_as_opt=--fatal-warnings
14495 .section ".tdata","awT",@progbits
14498 addl r16 = @ltoff(@dtpmod(foo#)), gp
14499 addl r17 = @ltoff(@dtprel(foo#)), gp
14500 addl r18 = @ltoff(@tprel(foo#)), gp
14501 addl r19 = @dtprel(foo#), gp
14502 adds r21 = @dtprel(foo#), r13
14503 movl r23 = @dtprel(foo#)
14504 addl r20 = @tprel(foo#), gp
14505 adds r22 = @tprel(foo#), r13
14506 movl r24 = @tprel(foo#)'
14509 tls_as_opt=--fatal-warnings
14513 .section .tdata,"awT",@progbits
14517 addiu $4, $28, %tlsgd(x)
14518 addiu $4, $28, %tlsldm(x)
14519 lui $4, %dtprel_hi(x)
14520 addiu $4, $4, %dtprel_lo(x)
14521 lw $4, %gottprel(x)($28)
14522 lui $4, %tprel_hi(x)
14523 addiu $4, $4, %tprel_lo(x)'
14526 tls_as_opt='-32 --fatal-warnings'
14530 .section ".tdata","awT",@progbits
14538 addi 3,31,ld0@got@tlsgd
14540 addi 3,31,x1@got@tlsld
14543 addis 9,3,x2@dtprel@ha
14544 addi 9,9,x2@dtprel@l
14545 lwz 9,x3@got@tprel(31)
14548 addis 9,2,x2@tprel@ha
14549 addi 9,9,x2@tprel@l'
14552 tls_as_opt="-a32 --fatal-warnings"
14556 .section ".tdata","awT",@progbits
14564 addi 3,2,ld0@got@tlsgd
14570 addi 3,2,x1@got@tlsld
14576 addis 9,3,x2@dtprel@ha
14577 addi 9,9,x2@dtprel@l
14580 ld 9,x3@got@dtprel(2)
14586 tls_as_opt="-a64 --fatal-warnings"
14590 .section ".tdata","awT",@progbits
14597 .long foo@GOTNTPOFF
14598 .long foo@INDNTPOFF
14599 l %r1,foo@GOTNTPOFF(%r12)
14600 l %r1,0(%r1):tls_load:foo
14601 bas %r14,0(%r1,%r13):tls_gdcall:foo
14602 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14605 tls_as_opt="-m31 --fatal-warnings"
14609 .section ".tdata","awT",@progbits
14616 .quad foo@GOTNTPOFF
14617 lg %r1,foo@GOTNTPOFF(%r12)
14618 larl %r1,foo@INDNTPOFF
14619 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14620 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14623 tls_as_opt="-m64 -Aesame --fatal-warnings"
14625 sh-*-* | sh[34]-*-*)
14627 .section ".tdata","awT",@progbits
14637 tls_as_opt=--fatal-warnings
14641 sparc*-sun-solaris2.[56789]*)
14642 # TLS was introduced in the Solaris 9 4/04 release but
14643 # we do not enable it by default on Solaris 9 either.
14644 if test "x$enable_tls" = xyes ; then
14650 sparc*-sun-solaris2.*)
14657 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14659 .section ".tdata",#alloc,#write,#tls
14662 sethi %tgd_hi22(foo), %o0
14663 add %o0, %tgd_lo10(foo), %o1
14664 add %l7, %o1, %o0, %tgd_add(foo)
14665 call __tls_get_addr, %tgd_call(foo)
14666 sethi %tldm_hi22(foo), %l1
14667 add %l1, %tldm_lo10(foo), %l2
14668 add %l7, %l2, %o0, %tldm_add(foo)
14669 call __tls_get_addr, %tldm_call(foo)
14670 sethi %tldo_hix22(foo), %l3
14671 xor %l3, %tldo_lox10(foo), %l4
14672 add %o0, %l4, %l5, %tldo_add(foo)
14673 sethi %tie_hi22(foo), %o3
14674 add %o3, %tie_lo10(foo), %o3
14675 ld [%l7 + %o3], %o2, %tie_ld(foo)
14676 add %g7, %o2, %o4, %tie_add(foo)
14677 sethi %tle_hix22(foo), %l1
14678 xor %l1, %tle_lox10(foo), %o5
14679 ld [%g7 + %o5], %o1'
14684 .section ".tdata","awT",@progbits
14687 sethi %tgd_hi22(foo), %o0
14688 add %o0, %tgd_lo10(foo), %o1
14689 add %l7, %o1, %o0, %tgd_add(foo)
14690 call __tls_get_addr, %tgd_call(foo)
14691 sethi %tldm_hi22(foo), %l1
14692 add %l1, %tldm_lo10(foo), %l2
14693 add %l7, %l2, %o0, %tldm_add(foo)
14694 call __tls_get_addr, %tldm_call(foo)
14695 sethi %tldo_hix22(foo), %l3
14696 xor %l3, %tldo_lox10(foo), %l4
14697 add %o0, %l4, %l5, %tldo_add(foo)
14698 sethi %tie_hi22(foo), %o3
14699 add %o3, %tie_lo10(foo), %o3
14700 ld [%l7 + %o3], %o2, %tie_ld(foo)
14701 add %g7, %o2, %o4, %tie_add(foo)
14702 sethi %tle_hix22(foo), %l1
14703 xor %l1, %tle_lox10(foo), %o5
14704 ld [%g7 + %o5], %o1'
14707 tls_as_opt="-32 --fatal-warnings"
14712 if test "x$enable_tls" = xno ; then
14713 : # TLS explicitly disabled.
14714 elif test "x$enable_tls" = xyes ; then
14715 set_have_as_tls=yes # TLS explicitly enabled.
14716 elif test -z "$tls_first_major"; then
14717 : # If we don't have a check, assume no support.
14719 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14720 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14721 if test "${gcc_cv_as_tls+set}" = set; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14725 if test $in_tree_gas = yes; then
14726 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14727 then gcc_cv_as_tls=yes
14729 elif test x$gcc_cv_as != x; then
14730 echo "$conftest_s" > conftest.s
14731 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }
14740 echo "configure: failed program was" >&5
14743 rm -f conftest.o conftest.s
14746 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14747 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14748 if test $gcc_cv_as_tls = yes; then
14749 set_have_as_tls=yes
14752 if test $set_have_as_tls = yes ; then
14754 cat >>confdefs.h <<\_ACEOF
14755 #define HAVE_AS_TLS 1
14760 # Target-specific assembler checks.
14762 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14763 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14764 gcc_cv_ld_static_dynamic=no
14765 if test $in_tree_ld = yes ; then
14766 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14767 gcc_cv_ld_static_dynamic=yes
14769 elif test x$gcc_cv_ld != x; then
14770 # Check if linker supports -Bstatic/-Bdynamic option
14771 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14772 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14773 gcc_cv_ld_static_dynamic=yes
14776 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14778 cat >>confdefs.h <<\_ACEOF
14779 #define HAVE_LD_STATIC_DYNAMIC 1
14783 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14784 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14786 if test x"$demangler_in_ld" = xyes; then
14787 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14788 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14789 gcc_cv_ld_demangle=no
14790 if test $in_tree_ld = yes; then
14791 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 \
14792 gcc_cv_ld_demangle=yes
14794 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14795 # Check if the GNU linker supports --demangle option
14796 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14797 gcc_cv_ld_demangle=yes
14800 if test x"$gcc_cv_ld_demangle" = xyes; then
14802 cat >>confdefs.h <<\_ACEOF
14803 #define HAVE_LD_DEMANGLE 1
14807 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14808 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14812 # All TARGET_ABI_OSF targets.
14813 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14814 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14815 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14816 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 gcc_cv_as_alpha_explicit_relocs=no
14820 if test $in_tree_gas = yes; then
14821 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14822 then gcc_cv_as_alpha_explicit_relocs=yes
14824 elif test x$gcc_cv_as != x; then
14825 echo ' .set nomacro
14827 extbl $3, $2, $3 !lituse_bytoff!1
14828 ldq $2, a($29) !literal!1
14829 ldq $4, b($29) !literal!2
14830 ldq_u $3, 0($2) !lituse_base!1
14831 ldq $27, f($29) !literal!5
14832 jsr $26, ($27), f !lituse_jsr!5
14833 ldah $29, 0($26) !gpdisp!3
14834 lda $0, c($29) !gprel
14835 ldah $1, d($29) !gprelhigh
14836 lda $1, d($1) !gprellow
14837 lda $29, 0($29) !gpdisp!3' > conftest.s
14838 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; }
14845 gcc_cv_as_alpha_explicit_relocs=yes
14847 echo "configure: failed program was" >&5
14850 rm -f conftest.o conftest.s
14853 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14854 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14855 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14857 cat >>confdefs.h <<\_ACEOF
14858 #define HAVE_AS_EXPLICIT_RELOCS 1
14862 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14863 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14864 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 gcc_cv_as_alpha_jsrdirect_relocs=no
14868 if test $in_tree_gas = yes; then
14869 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14870 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14872 elif test x$gcc_cv_as != x; then
14873 echo ' .set nomacro
14875 ldq $27, a($29) !literal!1
14876 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14877 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; }
14884 gcc_cv_as_alpha_jsrdirect_relocs=yes
14886 echo "configure: failed program was" >&5
14889 rm -f conftest.o conftest.s
14892 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14893 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14894 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14896 cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_AS_JSRDIRECT_RELOCS 1
14904 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14905 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14906 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14909 gcc_cv_as_cris_no_mul_bug=no
14910 if test $in_tree_gas = yes; then
14911 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14912 then gcc_cv_as_cris_no_mul_bug=yes
14914 elif test x$gcc_cv_as != x; then
14915 echo '.text' > conftest.s
14916 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }
14923 gcc_cv_as_cris_no_mul_bug=yes
14925 echo "configure: failed program was" >&5
14928 rm -f conftest.o conftest.s
14931 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14932 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14933 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14935 cat >>confdefs.h <<\_ACEOF
14936 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14943 echo "$as_me:$LINENO: checking assembler for .register" >&5
14944 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14945 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 gcc_cv_as_sparc_register_op=no
14949 if test x$gcc_cv_as != x; then
14950 echo '.register %g2, #scratch' > conftest.s
14951 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; }
14958 gcc_cv_as_sparc_register_op=yes
14960 echo "configure: failed program was" >&5
14963 rm -f conftest.o conftest.s
14966 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14967 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14968 if test $gcc_cv_as_sparc_register_op = yes; then
14970 cat >>confdefs.h <<\_ACEOF
14971 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14976 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14977 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14978 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14981 gcc_cv_as_sparc_relax=no
14982 if test x$gcc_cv_as != x; then
14983 echo '.text' > conftest.s
14984 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; }
14991 gcc_cv_as_sparc_relax=yes
14993 echo "configure: failed program was" >&5
14996 rm -f conftest.o conftest.s
14999 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15000 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15001 if test $gcc_cv_as_sparc_relax = yes; then
15003 cat >>confdefs.h <<\_ACEOF
15004 #define HAVE_AS_RELAX_OPTION 1
15009 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15010 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15011 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 gcc_cv_as_sparc_ua_pcrel=no
15015 if test x$gcc_cv_as != x; then
15022 .uaword %r_disp32(foo)' > conftest.s
15023 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025 (eval $ac_try) 2>&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }; }
15030 if test x$gcc_cv_ld != x \
15031 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15032 gcc_cv_as_sparc_ua_pcrel=yes
15036 echo "configure: failed program was" >&5
15039 rm -f conftest.o conftest.s
15042 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15043 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15044 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15046 cat >>confdefs.h <<\_ACEOF
15047 #define HAVE_AS_SPARC_UA_PCREL 1
15051 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15052 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15053 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15056 gcc_cv_as_sparc_ua_pcrel_hidden=no
15057 if test x$gcc_cv_as != x; then
15061 .uaword %r_disp32(foo)
15062 .byte 0x32, 0x33, 0x34
15066 .skip 4' > conftest.s
15067 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }
15074 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15075 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15076 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15077 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15078 if $gcc_cv_objdump -R conftest 2> /dev/null \
15079 | grep 'DISP32' > /dev/null 2>&1; then
15082 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15087 echo "configure: failed program was" >&5
15090 rm -f conftest.o conftest.s
15093 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15094 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15095 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15097 cat >>confdefs.h <<\_ACEOF
15098 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15103 fi # unaligned pcrel relocs
15105 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15106 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15107 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 gcc_cv_as_sparc_offsetable_lo10=no
15111 if test x$gcc_cv_as != x; then
15113 or %g1, %lo(ab) + 12, %g1
15114 or %g1, %lo(ab + 12), %g1' > conftest.s
15115 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }
15122 if test x$gcc_cv_objdump != x \
15123 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15124 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15125 gcc_cv_as_sparc_offsetable_lo10=yes
15128 echo "configure: failed program was" >&5
15131 rm -f conftest.o conftest.s
15134 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15135 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15136 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15138 cat >>confdefs.h <<\_ACEOF
15139 #define HAVE_AS_OFFSETABLE_LO10 1
15145 i[34567]86-*-* | x86_64-*-*)
15147 cygwin* | pe | mingw32*)
15148 # Used for DWARF 2 in PE
15149 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15150 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15151 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 gcc_cv_as_ix86_pe_secrel32=no
15155 if test $in_tree_gas = yes; then
15156 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15157 then gcc_cv_as_ix86_pe_secrel32=yes
15159 elif test x$gcc_cv_as != x; then
15163 .secrel32 foo' > conftest.s
15164 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }
15171 if test x$gcc_cv_ld != x \
15172 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15173 gcc_cv_as_ix86_pe_secrel32=yes
15177 echo "configure: failed program was" >&5
15180 rm -f conftest.o conftest.s
15183 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15184 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15185 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15187 cat >>confdefs.h <<\_ACEOF
15188 #define HAVE_GAS_PE_SECREL32_RELOC 1
15195 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15196 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15197 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 gcc_cv_as_ix86_filds_fists=no
15201 if test $in_tree_gas = yes; then
15202 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15203 then gcc_cv_as_ix86_filds_fists=yes
15205 elif test x$gcc_cv_as != x; then
15206 echo 'filds mem; fists mem' > conftest.s
15207 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }
15214 gcc_cv_as_ix86_filds_fists=yes
15216 echo "configure: failed program was" >&5
15219 rm -f conftest.o conftest.s
15222 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15223 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15224 if test $gcc_cv_as_ix86_filds_fists = yes; then
15226 cat >>confdefs.h <<\_ACEOF
15227 #define HAVE_GAS_FILDS_FISTS 1
15232 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15233 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15234 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15235 echo $ECHO_N "(cached) $ECHO_C" >&6
15237 gcc_cv_as_ix86_cmov_sun_syntax=no
15238 if test x$gcc_cv_as != x; then
15239 echo 'cmovl.l %edx, %eax' > conftest.s
15240 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }
15247 gcc_cv_as_ix86_cmov_sun_syntax=yes
15249 echo "configure: failed program was" >&5
15252 rm -f conftest.o conftest.s
15255 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15256 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15257 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15259 cat >>confdefs.h <<\_ACEOF
15260 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15265 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15266 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15267 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 gcc_cv_as_ix86_ffreep=no
15271 if test x$gcc_cv_as != x; then
15272 echo 'ffreep %st(1)' > conftest.s
15273 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }
15280 gcc_cv_as_ix86_ffreep=yes
15282 echo "configure: failed program was" >&5
15285 rm -f conftest.o conftest.s
15288 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15289 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15290 if test $gcc_cv_as_ix86_ffreep = yes; then
15292 cat >>confdefs.h <<\_ACEOF
15293 #define HAVE_AS_IX86_FFREEP 1
15298 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15299 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15300 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 gcc_cv_as_ix86_sahf=no
15304 if test x$gcc_cv_as != x; then
15305 echo 'sahf' > conftest.s
15306 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }
15313 gcc_cv_as_ix86_sahf=yes
15315 echo "configure: failed program was" >&5
15318 rm -f conftest.o conftest.s
15321 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15322 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15323 if test $gcc_cv_as_ix86_sahf = yes; then
15325 cat >>confdefs.h <<\_ACEOF
15326 #define HAVE_AS_IX86_SAHF 1
15331 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15332 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15333 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
15336 gcc_cv_as_ix86_diff_sect_delta=no
15337 if test x$gcc_cv_as != x; then
15338 echo '.section .rodata
15344 .L2: nop' > conftest.s
15345 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }
15352 gcc_cv_as_ix86_diff_sect_delta=yes
15354 echo "configure: failed program was" >&5
15357 rm -f conftest.o conftest.s
15360 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15361 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15362 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15364 cat >>confdefs.h <<\_ACEOF
15365 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15370 # This one is used unconditionally by i386.[ch]; it is to be defined
15371 # to 1 if the feature is present, 0 otherwise.
15372 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15373 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15374 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 gcc_cv_as_ix86_gotoff_in_data=no
15378 if test $in_tree_gas = yes; then
15379 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15380 then gcc_cv_as_ix86_gotoff_in_data=yes
15382 elif test x$gcc_cv_as != x; then
15387 .long .L0@GOTOFF' > conftest.s
15388 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; }
15395 gcc_cv_as_ix86_gotoff_in_data=yes
15397 echo "configure: failed program was" >&5
15400 rm -f conftest.o conftest.s
15403 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15404 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15407 cat >>confdefs.h <<_ACEOF
15408 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15414 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15415 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15416 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15420 if test $in_tree_gas = yes; then
15421 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15422 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15424 elif test x$gcc_cv_as != x; then
15426 addl r15 = @ltoffx(x#), gp
15428 ld8.mov r16 = [r15], x#' > conftest.s
15429 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }
15436 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15438 echo "configure: failed program was" >&5
15441 rm -f conftest.o conftest.s
15444 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15445 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15446 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15448 cat >>confdefs.h <<\_ACEOF
15449 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15458 *-*-aix*) conftest_s=' .machine "pwr5"
15462 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15463 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15464 if test "${gcc_cv_as_machine_directive+set}" = set; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 gcc_cv_as_machine_directive=no
15468 if test x$gcc_cv_as != x; then
15469 echo ' .machine ppc7400' > conftest.s
15470 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }
15477 gcc_cv_as_machine_directive=yes
15479 echo "configure: failed program was" >&5
15482 rm -f conftest.o conftest.s
15485 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15486 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15488 if test x$gcc_cv_as_machine_directive != xyes; then
15489 echo "*** This target requires an assembler supporting \".machine\"" >&2
15490 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15491 test x$build = x$target && exit 1
15495 *) conftest_s=' .machine power4
15500 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15501 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15502 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 gcc_cv_as_powerpc_mfcrf=no
15506 if test $in_tree_gas = yes; then
15507 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15508 then gcc_cv_as_powerpc_mfcrf=yes
15510 elif test x$gcc_cv_as != x; then
15511 echo "$conftest_s" > conftest.s
15512 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }
15519 gcc_cv_as_powerpc_mfcrf=yes
15521 echo "configure: failed program was" >&5
15524 rm -f conftest.o conftest.s
15527 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15528 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15529 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15531 cat >>confdefs.h <<\_ACEOF
15532 #define HAVE_AS_MFCRF 1
15538 *-*-aix*) conftest_s=' .machine "pwr5"
15541 *) conftest_s=' .machine power5
15546 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15547 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15548 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 gcc_cv_as_powerpc_popcntb=no
15552 if test $in_tree_gas = yes; then
15553 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15554 then gcc_cv_as_powerpc_popcntb=yes
15556 elif test x$gcc_cv_as != x; then
15557 echo "$conftest_s" > conftest.s
15558 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; }
15565 gcc_cv_as_powerpc_popcntb=yes
15567 echo "configure: failed program was" >&5
15570 rm -f conftest.o conftest.s
15573 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15574 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15575 if test $gcc_cv_as_powerpc_popcntb = yes; then
15577 cat >>confdefs.h <<\_ACEOF
15578 #define HAVE_AS_POPCNTB 1
15584 *-*-aix*) conftest_s=' .machine "pwr5x"
15587 *) conftest_s=' .machine power5
15592 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15593 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15594 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15597 gcc_cv_as_powerpc_fprnd=no
15598 if test $in_tree_gas = yes; then
15599 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15600 then gcc_cv_as_powerpc_fprnd=yes
15602 elif test x$gcc_cv_as != x; then
15603 echo "$conftest_s" > conftest.s
15604 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }
15611 gcc_cv_as_powerpc_fprnd=yes
15613 echo "configure: failed program was" >&5
15616 rm -f conftest.o conftest.s
15619 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15620 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15621 if test $gcc_cv_as_powerpc_fprnd = yes; then
15623 cat >>confdefs.h <<\_ACEOF
15624 #define HAVE_AS_FPRND 1
15630 *-*-aix*) conftest_s=' .machine "pwr6"
15633 *) conftest_s=' .machine power6
15638 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15639 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15640 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15641 echo $ECHO_N "(cached) $ECHO_C" >&6
15643 gcc_cv_as_powerpc_mfpgpr=no
15644 if test $in_tree_gas = yes; then
15645 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15646 then gcc_cv_as_powerpc_mfpgpr=yes
15648 elif test x$gcc_cv_as != x; then
15649 echo "$conftest_s" > conftest.s
15650 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; }
15657 gcc_cv_as_powerpc_mfpgpr=yes
15659 echo "configure: failed program was" >&5
15662 rm -f conftest.o conftest.s
15665 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15666 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15667 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15669 cat >>confdefs.h <<\_ACEOF
15670 #define HAVE_AS_MFPGPR 1
15676 *-*-aix*) conftest_s=' .csect .text[PR]
15678 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15682 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15683 *) conftest_s=' .text
15685 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15688 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15689 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15690 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15691 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 gcc_cv_as_powerpc_rel16=no
15694 if test $in_tree_gas = yes; then
15695 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15696 then gcc_cv_as_powerpc_rel16=yes
15698 elif test x$gcc_cv_as != x; then
15699 echo "$conftest_s" > conftest.s
15700 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }
15707 gcc_cv_as_powerpc_rel16=yes
15709 echo "configure: failed program was" >&5
15712 rm -f conftest.o conftest.s
15715 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15716 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15717 if test $gcc_cv_as_powerpc_rel16 = yes; then
15719 cat >>confdefs.h <<\_ACEOF
15720 #define HAVE_AS_REL16 1
15726 *-*-aix*) conftest_s=' .machine "pwr6"
15729 *) conftest_s=' .machine power6
15734 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15735 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15736 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 gcc_cv_as_powerpc_cmpb=no
15740 if test $in_tree_gas = yes; then
15741 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15742 then gcc_cv_as_powerpc_cmpb=yes
15744 elif test x$gcc_cv_as != x; then
15745 echo "$conftest_s" > conftest.s
15746 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }
15753 gcc_cv_as_powerpc_cmpb=yes
15755 echo "configure: failed program was" >&5
15758 rm -f conftest.o conftest.s
15761 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15762 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15763 if test $gcc_cv_as_powerpc_cmpb = yes; then
15765 cat >>confdefs.h <<\_ACEOF
15766 #define HAVE_AS_CMPB 1
15772 *-*-aix*) conftest_s=' .machine "pwr6"
15775 *) conftest_s=' .machine power6
15780 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15781 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15782 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 gcc_cv_as_powerpc_dfp=no
15786 if test $in_tree_gas = yes; then
15787 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15788 then gcc_cv_as_powerpc_dfp=yes
15790 elif test x$gcc_cv_as != x; then
15791 echo "$conftest_s" > conftest.s
15792 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }
15799 gcc_cv_as_powerpc_dfp=yes
15801 echo "configure: failed program was" >&5
15804 rm -f conftest.o conftest.s
15807 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15808 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15809 if test $gcc_cv_as_powerpc_dfp = yes; then
15811 cat >>confdefs.h <<\_ACEOF
15812 #define HAVE_AS_DFP 1
15819 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15820 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15821 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15824 gcc_cv_as_mips_explicit_relocs=no
15825 if test $in_tree_gas = yes; then
15826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15827 then gcc_cv_as_mips_explicit_relocs=yes
15829 elif test x$gcc_cv_as != x; then
15830 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15831 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }
15838 gcc_cv_as_mips_explicit_relocs=yes
15840 echo "configure: failed program was" >&5
15843 rm -f conftest.o conftest.s
15846 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15847 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15848 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15849 if test x$target_cpu_default = x
15850 then target_cpu_default=MASK_EXPLICIT_RELOCS
15851 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15854 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15855 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15856 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15857 echo $ECHO_N "(cached) $ECHO_C" >&6
15859 gcc_cv_as_mips_no_shared=no
15860 if test $in_tree_gas = yes; then
15861 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15862 then gcc_cv_as_mips_no_shared=yes
15864 elif test x$gcc_cv_as != x; then
15865 echo 'nop' > conftest.s
15866 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }
15873 gcc_cv_as_mips_no_shared=yes
15875 echo "configure: failed program was" >&5
15878 rm -f conftest.o conftest.s
15881 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15882 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15883 if test $gcc_cv_as_mips_no_shared = yes; then
15885 cat >>confdefs.h <<\_ACEOF
15886 #define HAVE_AS_NO_SHARED 1
15893 # Mips and HP-UX need the GNU assembler.
15894 # Linux on IA64 might be able to use the Intel assembler.
15897 mips*-*-* | *-*-hpux* )
15898 if test x$gas_flag = xyes \
15899 || test x"$host" != x"$build" \
15900 || test ! -x "$gcc_cv_as" \
15901 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15904 echo "*** This configuration requires the GNU assembler" >&2
15910 # ??? Not all targets support dwarf2 debug_line, even within a version
15911 # of gas. Moreover, we need to emit a valid instruction to trigger any
15912 # info to the output file. So, as supported targets are added to gas 2.11,
15913 # add some instruction here to (also) show we expect this might work.
15914 # ??? Once 2.11 is released, probably need to add first known working
15915 # version to the per-target configury.
15917 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15918 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15919 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
15922 ia64*-*-* | s390*-*-*)
15929 if test x"$insn" != x; then
15931 .file 1 \"conftest.s\"
15934 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15935 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15936 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15937 echo $ECHO_N "(cached) $ECHO_C" >&6
15939 gcc_cv_as_dwarf2_debug_line=no
15940 if test $in_tree_gas = yes; then
15941 if test $in_tree_gas_is_elf = yes \
15942 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15943 then gcc_cv_as_dwarf2_debug_line=yes
15945 elif test x$gcc_cv_as != x; then
15946 echo "$conftest_s" > conftest.s
15947 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }
15954 if test x$gcc_cv_objdump != x \
15955 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15956 | grep debug_line > /dev/null 2>&1; then
15957 gcc_cv_as_dwarf2_debug_line=yes
15960 echo "configure: failed program was" >&5
15963 rm -f conftest.o conftest.s
15966 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15967 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15970 # The .debug_line file table must be in the exact order that
15971 # we specified the files, since these indices are also used
15972 # by DW_AT_decl_file. Approximate this test by testing if
15973 # the assembler bitches if the same index is assigned twice.
15974 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15975 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15976 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
15979 gcc_cv_as_dwarf2_file_buggy=no
15980 if test x$gcc_cv_as != x; then
15981 echo ' .file 1 "foo.s"
15982 .file 1 "bar.s"' > conftest.s
15983 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }
15990 gcc_cv_as_dwarf2_file_buggy=yes
15992 echo "configure: failed program was" >&5
15995 rm -f conftest.o conftest.s
15998 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15999 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16002 if test $gcc_cv_as_dwarf2_debug_line = yes \
16003 && test $gcc_cv_as_dwarf2_file_buggy = no; then
16005 cat >>confdefs.h <<\_ACEOF
16006 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16011 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16012 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16013 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16014 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 gcc_cv_as_gdwarf2_flag=no
16017 if test $in_tree_gas = yes; then
16018 if test $in_tree_gas_is_elf = yes \
16019 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16020 then gcc_cv_as_gdwarf2_flag=yes
16022 elif test x$gcc_cv_as != x; then
16023 echo "$insn" > conftest.s
16024 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; }
16031 gcc_cv_as_gdwarf2_flag=yes
16033 echo "configure: failed program was" >&5
16036 rm -f conftest.o conftest.s
16039 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16040 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16041 if test $gcc_cv_as_gdwarf2_flag = yes; then
16043 cat >>confdefs.h <<\_ACEOF
16044 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16049 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16050 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16051 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16054 gcc_cv_as_gstabs_flag=no
16055 if test $in_tree_gas = yes; then
16056 if test $in_tree_gas_is_elf = yes \
16057 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16058 then gcc_cv_as_gstabs_flag=yes
16060 elif test x$gcc_cv_as != x; then
16061 echo "$insn" > conftest.s
16062 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }
16069 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16070 # and warns about it, but still exits successfully. So check for
16072 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }
16079 else gcc_cv_as_gstabs_flag=yes
16082 echo "configure: failed program was" >&5
16085 rm -f conftest.o conftest.s
16088 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16089 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16090 if test $gcc_cv_as_gstabs_flag = yes; then
16092 cat >>confdefs.h <<\_ACEOF
16093 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16099 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16100 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16101 if test "${gcc_cv_as_line_zero+set}" = set; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 gcc_cv_as_line_zero=no
16105 if test $in_tree_gas = yes; then
16106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16107 then gcc_cv_as_line_zero=yes
16109 elif test "x$gcc_cv_as" != x; then
16110 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16111 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113 (eval $ac_try) 2>&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; } &&
16117 test "x`cat conftest.out`" = x
16119 gcc_cv_as_line_zero=yes
16121 echo "configure: failed program was" >&5
16123 echo "configure: error output was" >&5
16124 cat conftest.out >&5
16126 rm -f conftest.o conftest.s conftest.out
16129 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16130 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16131 if test "x$gcc_cv_as_line_zero" = xyes; then
16133 cat >>confdefs.h <<\_ACEOF
16134 #define HAVE_AS_LINE_ZERO 1
16139 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16140 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16141 gcc_cv_ld_ro_rw_mix=unknown
16142 if test $in_tree_ld = yes ; then
16143 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 \
16144 && test $in_tree_ld_is_elf = yes; then
16145 gcc_cv_ld_ro_rw_mix=read-write
16147 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16148 echo '.section myfoosect, "a"' > conftest1.s
16149 echo '.section myfoosect, "aw"' > conftest2.s
16150 echo '.byte 1' >> conftest2.s
16151 echo '.section myfoosect, "a"' > conftest3.s
16152 echo '.byte 0' >> conftest3.s
16153 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16154 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16155 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16156 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16157 conftest2.o conftest3.o > /dev/null 2>&1; then
16158 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16159 | sed -e '/myfoosect/!d' -e N`
16160 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16161 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16162 gcc_cv_ld_ro_rw_mix=read-only
16164 gcc_cv_ld_ro_rw_mix=read-write
16168 rm -f conftest.* conftest[123].*
16170 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16172 cat >>confdefs.h <<\_ACEOF
16173 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16177 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16178 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16180 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16181 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16182 gcc_cv_ld_eh_frame_hdr=no
16183 if test $in_tree_ld = yes ; then
16184 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 \
16185 && test $in_tree_ld_is_elf = yes; then
16186 gcc_cv_ld_eh_frame_hdr=yes
16188 elif test x$gcc_cv_ld != x; then
16189 # Check if linker supports --eh-frame-hdr option
16190 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16191 gcc_cv_ld_eh_frame_hdr=yes
16195 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16197 cat >>confdefs.h <<\_ACEOF
16198 #define HAVE_LD_EH_FRAME_HDR 1
16202 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16203 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16205 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16206 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16208 if test $in_tree_ld = yes ; then
16209 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 \
16210 && test $in_tree_ld_is_elf = yes; then
16213 elif test x$gcc_cv_ld != x; then
16214 # Check if linker supports -pie option
16215 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16219 if test x"$gcc_cv_ld_pie" = xyes; then
16221 cat >>confdefs.h <<\_ACEOF
16222 #define HAVE_LD_PIE 1
16226 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16227 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16229 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16230 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16231 gcc_cv_ld_eh_gc_sections=no
16232 if test $in_tree_ld = yes ; then
16233 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16234 && test $in_tree_ld_is_elf = yes; then
16235 gcc_cv_ld_eh_gc_sections=yes
16237 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16238 cat > conftest.s <<EOF
16241 .type _start, @function
16244 .size _start, .-_start
16245 .section .text.foo,"ax",@progbits
16246 .type foo, @function
16250 .section .gcc_except_table.foo,"a",@progbits
16253 .section .eh_frame,"a",@progbits
16256 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16257 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16258 | grep "gc-sections option ignored" > /dev/null; then
16259 gcc_cv_ld_eh_gc_sections=no
16260 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16261 gcc_cv_ld_eh_gc_sections=yes
16262 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16263 if test x$gcc_cv_as_comdat_group != xyes; then
16264 gcc_cv_ld_eh_gc_sections=no
16265 cat > conftest.s <<EOF
16268 .type _start, @function
16271 .size _start, .-_start
16272 .section .gnu.linkonce.t.foo,"ax",@progbits
16273 .type foo, @function
16277 .section .gcc_except_table.foo,"a",@progbits
16280 .section .eh_frame,"a",@progbits
16283 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16284 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16285 | grep "gc-sections option ignored" > /dev/null; then
16286 gcc_cv_ld_eh_gc_sections=no
16287 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16288 gcc_cv_ld_eh_gc_sections=yes
16294 rm -f conftest.s conftest.o conftest
16298 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16299 gcc_cv_ld_eh_gc_sections=no
16302 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16304 cat >>confdefs.h <<\_ACEOF
16305 #define HAVE_LD_EH_GC_SECTIONS 1
16309 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16310 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16316 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16317 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16318 if test "${gcc_cv_ld_as_needed+set}" = set; then
16319 echo $ECHO_N "(cached) $ECHO_C" >&6
16321 gcc_cv_ld_as_needed=no
16322 if test $in_tree_ld = yes ; then
16323 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 \
16324 && test $in_tree_ld_is_elf = yes; then
16325 gcc_cv_ld_as_needed=yes
16327 elif test x$gcc_cv_ld != x; then
16328 # Check if linker supports --as-needed and --no-as-needed options
16329 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16330 gcc_cv_ld_as_needed=yes
16335 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16336 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16337 if test x"$gcc_cv_ld_as_needed" = xyes; then
16339 cat >>confdefs.h <<\_ACEOF
16340 #define HAVE_LD_AS_NEEDED 1
16345 case "$target:$tm_file" in
16346 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16347 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16348 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16349 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16350 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 gcc_cv_ld_no_dot_syms=no
16353 if test $in_tree_ld = yes ; then
16354 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
16355 gcc_cv_ld_no_dot_syms=yes
16357 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16358 cat > conftest1.s <<EOF
16362 cat > conftest2.s <<EOF
16363 .section ".opd","aw"
16366 .type foo,@function
16368 .quad .LEfoo,.TOC.@tocbase,0
16374 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16375 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16376 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16377 gcc_cv_ld_no_dot_syms=yes
16379 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16383 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16384 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16385 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16387 cat >>confdefs.h <<\_ACEOF
16388 #define HAVE_LD_NO_DOT_SYMS 1
16395 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16396 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16397 if test "${gcc_cv_ld_sysroot+set}" = set; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 gcc_cv_ld_sysroot=no
16401 if test $in_tree_ld = yes ; then
16402 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
16403 gcc_cv_ld_sysroot=yes
16405 elif test x$gcc_cv_ld != x; then
16406 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16407 gcc_cv_ld_sysroot=yes
16411 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16412 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16413 if test x"$gcc_cv_ld_sysroot" = xyes; then
16415 cat >>confdefs.h <<\_ACEOF
16416 #define HAVE_LD_SYSROOT 1
16421 if test x$with_sysroot = x && test x$host = x$target \
16422 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16423 && test "$prefix" != "NONE"; then
16425 cat >>confdefs.h <<_ACEOF
16426 #define PREFIX_INCLUDE_DIR "$prefix/include"
16431 # Test for stack protector support in target C library.
16432 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16433 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16434 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 gcc_cv_libc_provides_ssp=no
16440 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16441 if test "x$with_sysroot" = x; then
16442 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16443 elif test "x$with_build_sysroot" != "x"; then
16444 glibc_header_dir="${with_build_sysroot}/usr/include"
16445 elif test "x$with_sysroot" = xyes; then
16446 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16448 glibc_header_dir="${with_sysroot}/usr/include"
16451 glibc_header_dir=/usr/include
16453 # glibc 2.4 and later provides __stack_chk_fail and
16454 # either __stack_chk_guard, or TLS access to stack guard canary.
16455 if test -f $glibc_header_dir/features.h \
16456 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16457 $glibc_header_dir/features.h > /dev/null; then
16458 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16459 $glibc_header_dir/features.h > /dev/null; then
16460 gcc_cv_libc_provides_ssp=yes
16461 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16462 $glibc_header_dir/features.h > /dev/null \
16463 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16464 $glibc_header_dir/features.h > /dev/null; then
16465 gcc_cv_libc_provides_ssp=yes
16470 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16471 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16472 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16475 cat >conftest.$ac_ext <<_ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h. */
16481 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16483 #define __stack_chk_fail innocuous___stack_chk_fail
16485 /* System header to define __stub macros and hopefully few prototypes,
16486 which can conflict with char __stack_chk_fail (); below.
16487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16488 <limits.h> exists even on freestanding compilers. */
16491 # include <limits.h>
16493 # include <assert.h>
16496 #undef __stack_chk_fail
16498 /* Override any gcc2 internal prototype to avoid an error. */
16503 /* We use char because int might match the return type of a gcc2
16504 builtin and then its argument prototype would still apply. */
16505 char __stack_chk_fail ();
16506 /* The GNU C library defines this for functions which it implements
16507 to always fail with ENOSYS. Some functions are actually named
16508 something starting with __ and the normal name is an alias. */
16509 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16512 char (*f) () = __stack_chk_fail;
16521 return f != __stack_chk_fail;
16526 rm -f conftest.$ac_objext conftest$ac_exeext
16527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16528 (eval $ac_link) 2>conftest.er1
16530 grep -v '^ *+' conftest.er1 >conftest.err
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } &&
16535 { ac_try='test -z "$ac_c_werror_flag"
16536 || test ! -s conftest.err'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; } &&
16542 { ac_try='test -s conftest$ac_exeext'
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_cv_func___stack_chk_fail=yes
16550 echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16553 ac_cv_func___stack_chk_fail=no
16555 rm -f conftest.err conftest.$ac_objext \
16556 conftest$ac_exeext conftest.$ac_ext
16558 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16559 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16560 if test $ac_cv_func___stack_chk_fail = yes; then
16561 gcc_cv_libc_provides_ssp=yes
16563 echo "no __stack_chk_fail on this target"
16567 *) gcc_cv_libc_provides_ssp=no ;;
16570 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16571 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16573 if test x$gcc_cv_libc_provides_ssp = xyes; then
16575 cat >>confdefs.h <<\_ACEOF
16576 #define TARGET_LIBC_PROVIDES_SSP 1
16581 # Check if TFmode long double should be used by default or not.
16582 # Some glibc targets used DFmode long double, but with glibc 2.4
16583 # and later they can use TFmode.
16585 powerpc*-*-linux* | \
16586 powerpc*-*-gnu* | \
16587 sparc*-*-linux* | \
16591 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16592 if test "${with_long_double_128+set}" = set; then
16593 withval="$with_long_double_128"
16594 gcc_cv_target_ldbl128="$with_long_double_128"
16596 gcc_cv_target_ldbl128=no
16597 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16598 if test "x$with_sysroot" = x; then
16599 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16600 elif test "x$with_build_sysroot" != "x"; then
16601 glibc_header_dir="${with_build_sysroot}/usr/include"
16602 elif test "x$with_sysroot" = xyes; then
16603 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16605 glibc_header_dir="${with_sysroot}/usr/include"
16608 glibc_header_dir=/usr/include
16610 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16611 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16612 && gcc_cv_target_ldbl128=yes
16617 if test x$gcc_cv_target_ldbl128 = xyes; then
16619 cat >>confdefs.h <<\_ACEOF
16620 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16625 # Find out what GC implementation we want, or may, use.
16627 # Check whether --with-gc or --without-gc was given.
16628 if test "${with_gc+set}" = set; then
16637 cat >>confdefs.h <<\_ACEOF
16643 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16644 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16645 { (exit 1); exit 1; }; }
16652 echo "Using $GGC for garbage collection."
16654 # Use the system's zlib library.
16656 zlibinc="-I\$(srcdir)/../zlib"
16658 # Check whether --with-system-zlib or --without-system-zlib was given.
16659 if test "${with_system_zlib+set}" = set; then
16660 withval="$with_system_zlib"
16669 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16670 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16671 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16672 if test "${enable_maintainer_mode+set}" = set; then
16673 enableval="$enable_maintainer_mode"
16674 maintainer_mode=$enableval
16679 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16680 echo "${ECHO_T}$maintainer_mode" >&6
16682 if test "$maintainer_mode" = "yes"; then
16692 # Make empty files to contain the specs and options for each language.
16693 # Then add #include lines to for a compiler that has specs and/or options.
16699 # These (without "all_") are set in each config-lang.in.
16700 # `language' must be a single word so is spelled singularly.
16703 all_outputs='Makefile gccbug libada-mk'
16704 # List of language makefile fragments.
16705 all_lang_makefrags=
16706 # List of language subdirectory makefiles. Deprecated.
16707 all_lang_makefiles=
16708 # Additional files for gengtype
16709 all_gtfiles="$target_gtfiles"
16711 # These are the languages that are set in --enable-languages,
16712 # and are available in the GCC tree.
16713 all_selected_languages=
16715 # Add the language fragments.
16716 # Languages are added via two mechanisms. Some information must be
16717 # recorded in makefile variables, these are defined in config-lang.in.
16718 # We accumulate them and plug them into the main Makefile.
16719 # The other mechanism is a set of hooks for each of the main targets
16720 # like `clean', `install', etc.
16722 language_hooks="Make-hooks"
16724 for lang in ${srcdir}/*/config-lang.in
16726 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16728 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16729 if test "x$lang_alias" = x
16731 echo "$lang doesn't set \$language." 1>&2
16734 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16735 subdirs="$subdirs $subdir"
16736 case ",$enable_languages," in
16738 all_selected_languages="$all_selected_languages $lang_alias"
16739 if test -f $srcdir/$subdir/lang-specs.h; then
16740 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16751 . ${srcdir}/$subdir/config-lang.in
16752 if test "x$language" = x
16754 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16759 case ",$enable_languages," in
16760 *,$lang_alias,*) ;;
16762 for i in $subdir_requires; do
16763 test -f "${srcdir}/$i/config-lang.in" && continue
16771 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16772 if test -f $srcdir/$subdir/lang.opt; then
16773 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16775 if test -f $srcdir/$subdir/$subdir-tree.def; then
16776 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16778 if test -f ${srcdir}/$subdir/Makefile.in
16779 then all_lang_makefiles="$subdir/Makefile"
16781 all_languages="$all_languages $language"
16782 all_compilers="$all_compilers $compilers"
16783 all_outputs="$all_outputs $outputs"
16784 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
16787 # Pick up gtfiles for c
16789 . ${srcdir}/c-config-lang.in
16790 all_gtfiles="$all_gtfiles [c] $gtfiles"
16793 for language in $all_selected_languages
16795 check_languages="$check_languages check-$language"
16798 # We link each language in with a set of hooks, reached indirectly via
16799 # lang.${target}. Only do so for selected languages.
16803 target_list="all.cross start.encap rest.encap tags \
16804 install-common install-man install-info install-pdf dvi pdf \
16805 html uninstall info man srcextra srcman srcinfo \
16806 mostlyclean clean distclean maintainer-clean"
16808 for t in $target_list
16811 for lang in $all_selected_languages
16815 echo "lang.$t: $x" >> Make-hooks
16824 echo "dir ." > .gdbinit
16825 echo "dir ${srcdir}" >> .gdbinit
16826 if test x$gdb_needs_out_file_path = xyes
16828 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16830 if test "x$subdirs" != x; then
16833 echo "dir ${srcdir}/$s" >> .gdbinit
16836 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16838 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
16842 # Find a directory in which to install a shared libgcc.
16844 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16845 if test "${enable_version_specific_runtime_libs+set}" = set; then
16846 enableval="$enable_version_specific_runtime_libs"
16851 # Check whether --with-slibdir or --without-slibdir was given.
16852 if test "${with_slibdir+set}" = set; then
16853 withval="$with_slibdir"
16854 slibdir="$with_slibdir"
16856 if test "${enable_version_specific_runtime_libs+set}" = set; then
16857 slibdir='$(libsubdir)'
16858 elif test "$host" != "$target"; then
16859 slibdir='$(build_tooldir)/lib'
16861 slibdir='$(libdir)'
16866 objdir=`${PWDCMD-pwd}`
16870 # Check whether --with-datarootdir or --without-datarootdir was given.
16871 if test "${with_datarootdir+set}" = set; then
16872 withval="$with_datarootdir"
16873 datarootdir="\${prefix}/$with_datarootdir"
16875 datarootdir='$(prefix)/share'
16880 # Check whether --with-docdir or --without-docdir was given.
16881 if test "${with_docdir+set}" = set; then
16882 withval="$with_docdir"
16883 docdir="\${prefix}/$with_docdir"
16885 docdir='$(datarootdir)'
16890 # Check whether --with-htmldir or --without-htmldir was given.
16891 if test "${with_htmldir+set}" = set; then
16892 withval="$with_htmldir"
16893 htmldir="\${prefix}/$with_htmldir"
16895 htmldir='$(docdir)'
16899 # Substitute configuration variables
16956 if test x${build} = x${host} ; then
16957 if test x${host} = x${target} ; then
16958 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16960 echo "Links are now set up to build a cross-compiler" 1>&2
16961 echo " from ${host} to ${target}." 1>&2
16964 if test x${host} = x${target} ; then
16965 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16966 echo " for ${target}." 1>&2
16968 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16969 echo " from ${host} to ${target}." 1>&2
16976 # Configure the subdirectories
16977 # AC_CONFIG_SUBDIRS($subdirs)
16979 # Create the Makefile
16980 # and configure language subdirectories
16981 ac_config_files="$ac_config_files $all_outputs"
16984 ac_config_commands="$ac_config_commands default"
16986 cat >confcache <<\_ACEOF
16987 # This file is a shell script that caches the results of configure
16988 # tests run on this system so they can be shared between configure
16989 # scripts and configure runs, see configure's option --config-cache.
16990 # It is not useful on other systems. If it contains results you don't
16991 # want to keep, you may remove or edit it.
16993 # config.status only pays attention to the cache file if you give it
16994 # the --recheck option to rerun configure.
16996 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16997 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16998 # following values.
17002 # The following way of writing the cache mishandles newlines in values,
17003 # but we know of no workaround that is simple, portable, and efficient.
17004 # So, don't put newlines in cache variables' values.
17005 # Ultrix sh set writes to stderr and can't be redirected directly,
17006 # and sets the high bit in the cache file unless we assign to the vars.
17009 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17011 # `set' does not quote correctly, so add quotes (double-quote
17012 # substitution turns \\\\ into \\, and sed turns \\ into \).
17015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17018 # `set' quotes correctly as required by POSIX, so do not add quotes.
17020 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17027 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17029 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17031 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17032 if test -w $cache_file; then
17033 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17034 cat confcache >$cache_file
17036 echo "not updating unwritable cache $cache_file"
17041 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17042 # Let make expand exec_prefix.
17043 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17045 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17046 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17047 # trailing colons and then remove the whole line if VPATH becomes empty
17048 # (actually we leave an empty line to preserve line numbers).
17049 if test "x$srcdir" = x.; then
17050 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17051 s/:*\$(srcdir):*/:/;
17052 s/:*\${srcdir}:*/:/;
17054 s/^\([^=]*=[ ]*\):*/\1/;
17060 DEFS=-DHAVE_CONFIG_H
17064 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17065 # 1. Remove the extension, and $U if already installed.
17066 ac_i=`echo "$ac_i" |
17067 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17069 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17070 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17072 LIBOBJS=$ac_libobjs
17074 LTLIBOBJS=$ac_ltlibobjs
17078 : ${CONFIG_STATUS=./config.status}
17079 ac_clean_files_save=$ac_clean_files
17080 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17081 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17082 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17083 cat >$CONFIG_STATUS <<_ACEOF
17085 # Generated by $as_me.
17086 # Run this file to recreate the current configuration.
17087 # Compiler output produced by configure, useful for debugging
17088 # configure, is in config.log if it exists.
17091 ac_cs_recheck=false
17093 SHELL=\${CONFIG_SHELL-$SHELL}
17096 cat >>$CONFIG_STATUS <<\_ACEOF
17097 ## --------------------- ##
17098 ## M4sh Initialization. ##
17099 ## --------------------- ##
17101 # Be Bourne compatible
17102 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17105 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17106 # is contrary to our usage. Disable this feature.
17107 alias -g '${1+"$@"}'='"$@"'
17108 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17111 DUALCASE=1; export DUALCASE # for MKS sh
17113 # Support unset when possible.
17114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17121 # Work around bugs in pre-3.0 UWIN ksh.
17122 $as_unset ENV MAIL MAILPATH
17129 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17130 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17131 LC_TELEPHONE LC_TIME
17133 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17134 eval $as_var=C; export $as_var
17140 # Required to use basename.
17141 if expr a : '\(a\)' >/dev/null 2>&1; then
17147 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17148 as_basename=basename
17154 # Name of the executable.
17155 as_me=`$as_basename "$0" ||
17156 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17157 X"$0" : 'X\(//\)$' \| \
17158 X"$0" : 'X\(/\)$' \| \
17159 . : '\(.\)' 2>/dev/null ||
17161 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17162 /^X\/\(\/\/\)$/{ s//\1/; q; }
17163 /^X\/\(\/\).*/{ s//\1/; q; }
17167 # PATH needs CR, and LINENO needs CR and PATH.
17168 # Avoid depending upon Character Ranges.
17169 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17170 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17171 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17172 as_cr_digits='0123456789'
17173 as_cr_alnum=$as_cr_Letters$as_cr_digits
17175 # The user is always right.
17176 if test "${PATH_SEPARATOR+set}" != set; then
17177 echo "#! /bin/sh" >conf$$.sh
17178 echo "exit 0" >>conf$$.sh
17180 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17189 as_lineno_1=$LINENO
17190 as_lineno_2=$LINENO
17191 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17192 test "x$as_lineno_1" != "x$as_lineno_2" &&
17193 test "x$as_lineno_3" = "x$as_lineno_2" || {
17194 # Find who we are. Look in the path if we contain no path at all
17197 *[\\/]* ) as_myself=$0 ;;
17198 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17199 for as_dir in $PATH
17202 test -z "$as_dir" && as_dir=.
17203 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17208 # We did not find ourselves, most probably we were run as `sh COMMAND'
17209 # in which case we are not to be found in the path.
17210 if test "x$as_myself" = x; then
17213 if test ! -f "$as_myself"; then
17214 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17215 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17216 { (exit 1); exit 1; }; }
17218 case $CONFIG_SHELL in
17220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17224 test -z "$as_dir" && as_dir=.
17225 for as_base in sh bash ksh sh5; do
17228 if ("$as_dir/$as_base" -c '
17229 as_lineno_1=$LINENO
17230 as_lineno_2=$LINENO
17231 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17232 test "x$as_lineno_1" != "x$as_lineno_2" &&
17233 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17234 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17235 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17236 CONFIG_SHELL=$as_dir/$as_base
17237 export CONFIG_SHELL
17238 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17246 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17247 # uniformly replaced by the line number. The first 'sed' inserts a
17248 # line-number line before each line; the second 'sed' does the real
17249 # work. The second script uses 'N' to pair each line-number line
17250 # with the numbered line, and appends trailing '-' during
17251 # substitution so that $LINENO is not a special case at line end.
17252 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17253 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17254 sed '=' <$as_myself |
17259 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17262 s,^['$as_cr_digits']*\n,,
17263 ' >$as_me.lineno &&
17264 chmod +x $as_me.lineno ||
17265 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17266 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17267 { (exit 1); exit 1; }; }
17269 # Don't try to exec as it changes $[0], causing all sort of problems
17270 # (the dirname of $[0] is not the place where we might find the
17271 # original and so on. Autoconf is especially sensible to this).
17273 # Exit status is that of the last command.
17278 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17279 *c*,-n*) ECHO_N= ECHO_C='
17281 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17282 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17285 if expr a : '\(a\)' >/dev/null 2>&1; then
17291 rm -f conf$$ conf$$.exe conf$$.file
17293 if ln -s conf$$.file conf$$ 2>/dev/null; then
17294 # We could just check for DJGPP; but this test a) works b) is more generic
17295 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17296 if test -f conf$$.exe; then
17297 # Don't use ln at all; we don't have any links
17302 elif ln conf$$.file conf$$ 2>/dev/null; then
17307 rm -f conf$$ conf$$.exe conf$$.file
17309 if mkdir -p . 2>/dev/null; then
17312 test -d ./-p && rmdir ./-p
17316 as_executable_p="test -f"
17318 # Sed expression to map a string onto a valid CPP name.
17319 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17321 # Sed expression to map a string onto a valid variable name.
17322 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17326 # We need space, tab and new line, in precisely that order.
17336 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17337 # report actual input values of CONFIG_FILES etc. instead of their
17338 # values after options handling. Logging --version etc. is OK.
17342 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17343 ## Running $as_me. ##
17348 This file was extended by $as_me, which was
17349 generated by GNU Autoconf 2.59. Invocation command line was
17351 CONFIG_FILES = $CONFIG_FILES
17352 CONFIG_HEADERS = $CONFIG_HEADERS
17353 CONFIG_LINKS = $CONFIG_LINKS
17354 CONFIG_COMMANDS = $CONFIG_COMMANDS
17358 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17362 # Files that config.status was made for.
17363 if test -n "$ac_config_files"; then
17364 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17367 if test -n "$ac_config_headers"; then
17368 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17371 if test -n "$ac_config_links"; then
17372 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17375 if test -n "$ac_config_commands"; then
17376 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17379 cat >>$CONFIG_STATUS <<\_ACEOF
17382 \`$as_me' instantiates files from templates according to the
17383 current configuration.
17385 Usage: $0 [OPTIONS] [FILE]...
17387 -h, --help print this help, then exit
17388 -V, --version print version number, then exit
17389 -q, --quiet do not print progress messages
17390 -d, --debug don't remove temporary files
17391 --recheck update $as_me by reconfiguring in the same conditions
17392 --file=FILE[:TEMPLATE]
17393 instantiate the configuration file FILE
17394 --header=FILE[:TEMPLATE]
17395 instantiate the configuration header FILE
17397 Configuration files:
17400 Configuration headers:
17403 Configuration commands:
17406 Report bugs to <bug-autoconf@gnu.org>."
17409 cat >>$CONFIG_STATUS <<_ACEOF
17412 configured by $0, generated by GNU Autoconf 2.59,
17413 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17415 Copyright (C) 2003 Free Software Foundation, Inc.
17416 This config.status script is free software; the Free Software Foundation
17417 gives unlimited permission to copy, distribute and modify it."
17421 cat >>$CONFIG_STATUS <<\_ACEOF
17422 # If no file are specified by the user, then we need to provide default
17423 # value. By we need to know if files were specified by the user.
17429 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17430 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17438 *) # This is not an option, so the user has probably given explicit
17441 ac_need_defaults=false;;
17445 # Handling of the options.
17447 cat >>$CONFIG_STATUS <<\_ACEOF
17448 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17450 --version | --vers* | -V )
17451 echo "$ac_cs_version"; exit 0 ;;
17453 # Conflict between --help and --header
17454 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17455 Try \`$0 --help' for more information." >&5
17456 echo "$as_me: error: ambiguous option: $1
17457 Try \`$0 --help' for more information." >&2;}
17458 { (exit 1); exit 1; }; };;
17459 --help | --hel | -h )
17460 echo "$ac_cs_usage"; exit 0 ;;
17461 --debug | --d* | -d )
17463 --file | --fil | --fi | --f )
17465 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17466 ac_need_defaults=false;;
17467 --header | --heade | --head | --hea )
17469 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17470 ac_need_defaults=false;;
17471 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17472 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17475 # This is an error.
17476 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17477 Try \`$0 --help' for more information." >&5
17478 echo "$as_me: error: unrecognized option: $1
17479 Try \`$0 --help' for more information." >&2;}
17480 { (exit 1); exit 1; }; } ;;
17482 *) ac_config_targets="$ac_config_targets $1" ;;
17488 ac_configure_extra_args=
17490 if $ac_cs_silent; then
17492 ac_configure_extra_args="$ac_configure_extra_args --silent"
17496 cat >>$CONFIG_STATUS <<_ACEOF
17497 if \$ac_cs_recheck; then
17498 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17499 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17504 cat >>$CONFIG_STATUS <<_ACEOF
17506 # INIT-COMMANDS section.
17515 cat >>$CONFIG_STATUS <<\_ACEOF
17516 for ac_config_target in $ac_config_targets
17518 case "$ac_config_target" in
17519 # Handling of arguments.
17520 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
17521 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
17522 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
17523 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17524 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17525 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17526 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17527 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17528 { (exit 1); exit 1; }; };;
17532 # If the user did not use the arguments to specify the items to instantiate,
17533 # then the envvar interface is used. Set only those that are not.
17534 # We use the long form for the default assignment because of an extremely
17535 # bizarre bug on SunOS 4.1.3.
17536 if $ac_need_defaults; then
17537 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17538 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17539 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17542 # Have a temporary directory for convenience. Make it in the build tree
17543 # simply because there is no reason to put it here, and in addition,
17544 # creating and moving files from /tmp can sometimes cause problems.
17545 # Create a temporary directory, and hook for its removal unless debugging.
17548 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17549 trap '{ (exit 1); exit 1; }' 1 2 13 15
17552 # Create a (secure) tmp directory for tmp files.
17555 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17556 test -n "$tmp" && test -d "$tmp"
17559 tmp=./confstat$$-$RANDOM
17560 (umask 077 && mkdir $tmp)
17563 echo "$me: cannot create a temporary directory in ." >&2
17564 { (exit 1); exit 1; }
17569 cat >>$CONFIG_STATUS <<_ACEOF
17572 # CONFIG_FILES section.
17575 # No need to generate the scripts if there are no CONFIG_FILES.
17576 # This happens for instance when ./config.status config.h
17577 if test -n "\$CONFIG_FILES"; then
17578 # Protect against being on the right side of a sed subst in config.status.
17579 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17580 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17581 s,@SHELL@,$SHELL,;t t
17582 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17583 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17584 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17585 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17586 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17587 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17588 s,@exec_prefix@,$exec_prefix,;t t
17589 s,@prefix@,$prefix,;t t
17590 s,@program_transform_name@,$program_transform_name,;t t
17591 s,@bindir@,$bindir,;t t
17592 s,@sbindir@,$sbindir,;t t
17593 s,@libexecdir@,$libexecdir,;t t
17594 s,@datadir@,$datadir,;t t
17595 s,@sysconfdir@,$sysconfdir,;t t
17596 s,@sharedstatedir@,$sharedstatedir,;t t
17597 s,@localstatedir@,$localstatedir,;t t
17598 s,@libdir@,$libdir,;t t
17599 s,@includedir@,$includedir,;t t
17600 s,@oldincludedir@,$oldincludedir,;t t
17601 s,@infodir@,$infodir,;t t
17602 s,@mandir@,$mandir,;t t
17603 s,@build_alias@,$build_alias,;t t
17604 s,@host_alias@,$host_alias,;t t
17605 s,@target_alias@,$target_alias,;t t
17606 s,@DEFS@,$DEFS,;t t
17607 s,@ECHO_C@,$ECHO_C,;t t
17608 s,@ECHO_N@,$ECHO_N,;t t
17609 s,@ECHO_T@,$ECHO_T,;t t
17610 s,@LIBS@,$LIBS,;t t
17611 s,@build@,$build,;t t
17612 s,@build_cpu@,$build_cpu,;t t
17613 s,@build_vendor@,$build_vendor,;t t
17614 s,@build_os@,$build_os,;t t
17615 s,@host@,$host,;t t
17616 s,@host_cpu@,$host_cpu,;t t
17617 s,@host_vendor@,$host_vendor,;t t
17618 s,@host_os@,$host_os,;t t
17619 s,@target@,$target,;t t
17620 s,@target_cpu@,$target_cpu,;t t
17621 s,@target_vendor@,$target_vendor,;t t
17622 s,@target_os@,$target_os,;t t
17623 s,@target_noncanonical@,$target_noncanonical,;t t
17624 s,@build_libsubdir@,$build_libsubdir,;t t
17625 s,@build_subdir@,$build_subdir,;t t
17626 s,@host_subdir@,$host_subdir,;t t
17627 s,@target_subdir@,$target_subdir,;t t
17628 s,@GENINSRC@,$GENINSRC,;t t
17630 s,@CFLAGS@,$CFLAGS,;t t
17631 s,@LDFLAGS@,$LDFLAGS,;t t
17632 s,@CPPFLAGS@,$CPPFLAGS,;t t
17633 s,@ac_ct_CC@,$ac_ct_CC,;t t
17634 s,@EXEEXT@,$EXEEXT,;t t
17635 s,@OBJEXT@,$OBJEXT,;t t
17636 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17637 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17639 s,@EGREP@,$EGREP,;t t
17640 s,@strict_warn@,$strict_warn,;t t
17641 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17642 s,@warn_cflags@,$warn_cflags,;t t
17643 s,@nocommon_flag@,$nocommon_flag,;t t
17644 s,@TREEBROWSER@,$TREEBROWSER,;t t
17645 s,@valgrind_path@,$valgrind_path,;t t
17646 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17647 s,@valgrind_command@,$valgrind_command,;t t
17648 s,@coverage_flags@,$coverage_flags,;t t
17649 s,@enable_multilib@,$enable_multilib,;t t
17650 s,@enable_decimal_float@,$enable_decimal_float,;t t
17651 s,@enable_shared@,$enable_shared,;t t
17652 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17653 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17654 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17655 s,@onestep@,$onestep,;t t
17656 s,@datarootdir@,$datarootdir,;t t
17657 s,@docdir@,$docdir,;t t
17658 s,@htmldir@,$htmldir,;t t
17659 s,@SET_MAKE@,$SET_MAKE,;t t
17661 s,@LN_S@,$LN_S,;t t
17663 s,@RANLIB@,$RANLIB,;t t
17664 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17665 s,@ranlib_flags@,$ranlib_flags,;t t
17666 s,@INSTALL@,$INSTALL,;t t
17667 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17668 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17669 s,@make_compare_target@,$make_compare_target,;t t
17670 s,@have_mktemp_command@,$have_mktemp_command,;t t
17671 s,@MAKEINFO@,$MAKEINFO,;t t
17672 s,@BUILD_INFO@,$BUILD_INFO,;t t
17673 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17674 s,@FLEX@,$FLEX,;t t
17675 s,@BISON@,$BISON,;t t
17678 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17679 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17680 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17681 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17682 s,@LIBICONV@,$LIBICONV,;t t
17683 s,@LTLIBICONV@,$LTLIBICONV,;t t
17684 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17685 s,@manext@,$manext,;t t
17686 s,@objext@,$objext,;t t
17687 s,@gthread_flags@,$gthread_flags,;t t
17688 s,@extra_modes_file@,$extra_modes_file,;t t
17689 s,@extra_opt_files@,$extra_opt_files,;t t
17690 s,@USE_NLS@,$USE_NLS,;t t
17691 s,@LIBINTL@,$LIBINTL,;t t
17692 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17693 s,@INCINTL@,$INCINTL,;t t
17694 s,@XGETTEXT@,$XGETTEXT,;t t
17695 s,@GMSGFMT@,$GMSGFMT,;t t
17696 s,@POSUB@,$POSUB,;t t
17697 s,@CATALOGS@,$CATALOGS,;t t
17698 s,@DATADIRNAME@,$DATADIRNAME,;t t
17699 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17700 s,@GENCAT@,$GENCAT,;t t
17701 s,@CATOBJEXT@,$CATOBJEXT,;t t
17702 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17703 s,@CROSS@,$CROSS,;t t
17705 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17706 s,@inhibit_libc@,$inhibit_libc,;t t
17707 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17708 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17709 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17710 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17711 s,@collect2@,$collect2,;t t
17712 s,@gcc_cv_as@,$gcc_cv_as,;t t
17713 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17714 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17715 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17716 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17717 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17718 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17719 s,@libgcc_visibility@,$libgcc_visibility,;t t
17721 s,@zlibdir@,$zlibdir,;t t
17722 s,@zlibinc@,$zlibinc,;t t
17723 s,@MAINT@,$MAINT,;t t
17724 s,@gcc_tooldir@,$gcc_tooldir,;t t
17725 s,@dollar@,$dollar,;t t
17726 s,@slibdir@,$slibdir,;t t
17727 s,@objdir@,$objdir,;t t
17728 s,@subdirs@,$subdirs,;t t
17729 s,@srcdir@,$srcdir,;t t
17730 s,@all_compilers@,$all_compilers,;t t
17731 s,@all_gtfiles@,$all_gtfiles,;t t
17732 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17733 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17734 s,@all_languages@,$all_languages,;t t
17735 s,@all_selected_languages@,$all_selected_languages,;t t
17736 s,@build_exeext@,$build_exeext,;t t
17737 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17738 s,@build_xm_file_list@,$build_xm_file_list,;t t
17739 s,@build_xm_include_list@,$build_xm_include_list,;t t
17740 s,@build_xm_defines@,$build_xm_defines,;t t
17741 s,@check_languages@,$check_languages,;t t
17742 s,@cpp_install_dir@,$cpp_install_dir,;t t
17743 s,@xmake_file@,$xmake_file,;t t
17744 s,@tmake_file@,$tmake_file,;t t
17745 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17746 s,@extra_headers_list@,$extra_headers_list,;t t
17747 s,@extra_objs@,$extra_objs,;t t
17748 s,@extra_parts@,$extra_parts,;t t
17749 s,@extra_passes@,$extra_passes,;t t
17750 s,@extra_programs@,$extra_programs,;t t
17751 s,@float_h_file@,$float_h_file,;t t
17752 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17753 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17754 s,@host_exeext@,$host_exeext,;t t
17755 s,@host_xm_file_list@,$host_xm_file_list,;t t
17756 s,@host_xm_include_list@,$host_xm_include_list,;t t
17757 s,@host_xm_defines@,$host_xm_defines,;t t
17758 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17759 s,@install@,$install,;t t
17760 s,@lang_opt_files@,$lang_opt_files,;t t
17761 s,@lang_specs_files@,$lang_specs_files,;t t
17762 s,@lang_tree_files@,$lang_tree_files,;t t
17763 s,@local_prefix@,$local_prefix,;t t
17764 s,@md_file@,$md_file,;t t
17765 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17766 s,@out_file@,$out_file,;t t
17767 s,@out_object_file@,$out_object_file,;t t
17768 s,@thread_file@,$thread_file,;t t
17769 s,@tm_file_list@,$tm_file_list,;t t
17770 s,@tm_include_list@,$tm_include_list,;t t
17771 s,@tm_defines@,$tm_defines,;t t
17772 s,@tm_p_file_list@,$tm_p_file_list,;t t
17773 s,@tm_p_include_list@,$tm_p_include_list,;t t
17774 s,@xm_file_list@,$xm_file_list,;t t
17775 s,@xm_include_list@,$xm_include_list,;t t
17776 s,@xm_defines@,$xm_defines,;t t
17777 s,@c_target_objs@,$c_target_objs,;t t
17778 s,@cxx_target_objs@,$cxx_target_objs,;t t
17779 s,@target_cpu_default@,$target_cpu_default,;t t
17780 s,@GMPLIBS@,$GMPLIBS,;t t
17781 s,@GMPINC@,$GMPINC,;t t
17782 s,@LIBOBJS@,$LIBOBJS,;t t
17783 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17784 /@language_hooks@/r $language_hooks
17785 s,@language_hooks@,,;t t
17790 cat >>$CONFIG_STATUS <<\_ACEOF
17791 # Split the substitutions into bite-sized pieces for seds with
17792 # small command number limits, like on Digital OSF/1 and HP-UX.
17793 ac_max_sed_lines=48
17794 ac_sed_frag=1 # Number of current file.
17795 ac_beg=1 # First line for current file.
17796 ac_end=$ac_max_sed_lines # Line after last line for current file.
17799 while $ac_more_lines; do
17800 if test $ac_beg -gt 1; then
17801 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17803 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17805 if test ! -s $tmp/subs.frag; then
17806 ac_more_lines=false
17808 # The purpose of the label and of the branching condition is to
17809 # speed up the sed processing (if there are no `@' at all, there
17810 # is no need to browse any of the substitutions).
17811 # These are the two extra sed commands mentioned above.
17813 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17814 if test -z "$ac_sed_cmds"; then
17815 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17817 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17819 ac_sed_frag=`expr $ac_sed_frag + 1`
17821 ac_end=`expr $ac_end + $ac_max_sed_lines`
17824 if test -z "$ac_sed_cmds"; then
17827 fi # test -n "$CONFIG_FILES"
17830 cat >>$CONFIG_STATUS <<\_ACEOF
17831 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17832 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17834 - | *:- | *:-:* ) # input from stdin
17836 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17837 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17838 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17839 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17840 * ) ac_file_in=$ac_file.in ;;
17843 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17844 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17845 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17846 X"$ac_file" : 'X\(//\)[^/]' \| \
17847 X"$ac_file" : 'X\(//\)$' \| \
17848 X"$ac_file" : 'X\(/\)' \| \
17849 . : '\(.\)' 2>/dev/null ||
17851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17852 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17853 /^X\(\/\/\)$/{ s//\1/; q; }
17854 /^X\(\/\).*/{ s//\1/; q; }
17856 { if $as_mkdir_p; then
17861 while test ! -d "$as_dir"; do
17862 as_dirs="$as_dir $as_dirs"
17863 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17864 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17865 X"$as_dir" : 'X\(//\)[^/]' \| \
17866 X"$as_dir" : 'X\(//\)$' \| \
17867 X"$as_dir" : 'X\(/\)' \| \
17868 . : '\(.\)' 2>/dev/null ||
17870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17872 /^X\(\/\/\)$/{ s//\1/; q; }
17873 /^X\(\/\).*/{ s//\1/; q; }
17876 test ! -n "$as_dirs" || mkdir $as_dirs
17877 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17878 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17879 { (exit 1); exit 1; }; }; }
17883 if test "$ac_dir" != .; then
17884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17885 # A "../" for each directory in $ac_dir_suffix.
17886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17888 ac_dir_suffix= ac_top_builddir=
17892 .) # No --srcdir option. We are building in place.
17894 if test -z "$ac_top_builddir"; then
17897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17899 [\\/]* | ?:[\\/]* ) # Absolute path.
17900 ac_srcdir=$srcdir$ac_dir_suffix;
17901 ac_top_srcdir=$srcdir ;;
17902 *) # Relative path.
17903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17907 # Do not use `cd foo && pwd` to compute absolute paths, because
17908 # the directories may not exist.
17910 .) ac_abs_builddir="$ac_dir";;
17913 .) ac_abs_builddir=`pwd`;;
17914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17918 case $ac_abs_builddir in
17919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17921 case ${ac_top_builddir}. in
17922 .) ac_abs_top_builddir=$ac_abs_builddir;;
17923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17927 case $ac_abs_builddir in
17928 .) ac_abs_srcdir=$ac_srcdir;;
17931 .) ac_abs_srcdir=$ac_abs_builddir;;
17932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17936 case $ac_abs_builddir in
17937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17939 case $ac_top_srcdir in
17940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17948 if test x"$ac_file" != x-; then
17949 { echo "$as_me:$LINENO: creating $ac_file" >&5
17950 echo "$as_me: creating $ac_file" >&6;}
17953 # Let's still pretend it is `configure' which instantiates (i.e., don't
17954 # use $as_me), people would be surprised to read:
17955 # /* config.h. Generated by config.status. */
17956 if test x"$ac_file" = x-; then
17959 configure_input="$ac_file. "
17961 configure_input=$configure_input"Generated from `echo $ac_file_in |
17962 sed 's,.*/,,'` by configure."
17964 # First look for the input files in the build tree, otherwise in the
17966 ac_file_inputs=`IFS=:
17967 for f in $ac_file_in; do
17969 -) echo $tmp/stdin ;;
17971 # Absolute (can't be DOS-style, as IFS=:)
17972 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17973 echo "$as_me: error: cannot find input file: $f" >&2;}
17974 { (exit 1); exit 1; }; }
17977 if test -f "$f"; then
17980 elif test -f "$srcdir/$f"; then
17985 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17986 echo "$as_me: error: cannot find input file: $f" >&2;}
17987 { (exit 1); exit 1; }; }
17990 done` || { (exit 1); exit 1; }
17992 cat >>$CONFIG_STATUS <<_ACEOF
17996 cat >>$CONFIG_STATUS <<\_ACEOF
17998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17999 s,@configure_input@,$configure_input,;t t
18000 s,@srcdir@,$ac_srcdir,;t t
18001 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18002 s,@top_srcdir@,$ac_top_srcdir,;t t
18003 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18004 s,@builddir@,$ac_builddir,;t t
18005 s,@abs_builddir@,$ac_abs_builddir,;t t
18006 s,@top_builddir@,$ac_top_builddir,;t t
18007 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18008 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18010 if test x"$ac_file" != x-; then
18011 mv $tmp/out $ac_file
18017 # Run the commands associated with the file.
18019 as ) chmod +x as ;;
18020 collect-ld ) chmod +x collect-ld ;;
18021 nm ) chmod +x nm ;;
18025 cat >>$CONFIG_STATUS <<\_ACEOF
18028 # CONFIG_HEADER section.
18031 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18032 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18034 # ac_d sets the value in "#define NAME VALUE" lines.
18035 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18036 ac_dB='[ ].*$,\1#\2'
18039 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18040 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18041 ac_uB='$,\1#\2define\3'
18045 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18046 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18048 - | *:- | *:-:* ) # input from stdin
18050 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18051 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18052 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18053 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18054 * ) ac_file_in=$ac_file.in ;;
18057 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18058 echo "$as_me: creating $ac_file" >&6;}
18060 # First look for the input files in the build tree, otherwise in the
18062 ac_file_inputs=`IFS=:
18063 for f in $ac_file_in; do
18065 -) echo $tmp/stdin ;;
18067 # Absolute (can't be DOS-style, as IFS=:)
18068 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18069 echo "$as_me: error: cannot find input file: $f" >&2;}
18070 { (exit 1); exit 1; }; }
18071 # Do quote $f, to prevent DOS paths from being IFS'd.
18074 if test -f "$f"; then
18077 elif test -f "$srcdir/$f"; then
18082 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18083 echo "$as_me: error: cannot find input file: $f" >&2;}
18084 { (exit 1); exit 1; }; }
18087 done` || { (exit 1); exit 1; }
18088 # Remove the trailing spaces.
18089 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18093 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18094 # `conftest.undefs', that substitutes the proper values into
18095 # config.h.in to produce config.h. The first handles `#define'
18096 # templates, and the second `#undef' templates.
18097 # And first: Protect against being on the right side of a sed subst in
18098 # config.status. Protect against being in an unquoted here document
18099 # in config.status.
18100 rm -f conftest.defines conftest.undefs
18101 # Using a here document instead of a string reduces the quoting nightmare.
18102 # Putting comments in sed scripts is not portable.
18104 # `end' is used to avoid that the second main sed command (meant for
18105 # 0-ary CPP macros) applies to n-ary macro definitions.
18106 # See the Autoconf documentation for `clear'.
18107 cat >confdef2sed.sed <<\_ACEOF
18112 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18114 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18117 # If some macros were called several times there might be several times
18118 # the same #defines, which is useless. Nevertheless, we may not want to
18119 # sort them, since we want the *last* AC-DEFINE to be honored.
18120 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18121 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18122 rm -f confdef2sed.sed
18124 # This sed command replaces #undef with comments. This is necessary, for
18125 # example, in the case of _POSIX_SOURCE, which is predefined and required
18126 # on some systems where configure will not decide to define it.
18127 cat >>conftest.undefs <<\_ACEOF
18128 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18131 # Break up conftest.defines because some shells have a limit on the size
18132 # of here documents, and old seds have small limits too (100 cmds).
18133 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18134 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18135 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18136 echo ' :' >>$CONFIG_STATUS
18137 rm -f conftest.tail
18138 while grep . conftest.defines >/dev/null
18140 # Write a limited-size here document to $tmp/defines.sed.
18141 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18142 # Speed up: don't consider the non `#define' lines.
18143 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18144 # Work around the forget-to-reset-the-flag bug.
18145 echo 't clr' >>$CONFIG_STATUS
18146 echo ': clr' >>$CONFIG_STATUS
18147 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18149 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18151 mv $tmp/out $tmp/in
18153 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18154 rm -f conftest.defines
18155 mv conftest.tail conftest.defines
18157 rm -f conftest.defines
18158 echo ' fi # grep' >>$CONFIG_STATUS
18159 echo >>$CONFIG_STATUS
18161 # Break up conftest.undefs because some shells have a limit on the size
18162 # of here documents, and old seds have small limits too (100 cmds).
18163 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18164 rm -f conftest.tail
18165 while grep . conftest.undefs >/dev/null
18167 # Write a limited-size here document to $tmp/undefs.sed.
18168 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18169 # Speed up: don't consider the non `#undef'
18170 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18171 # Work around the forget-to-reset-the-flag bug.
18172 echo 't clr' >>$CONFIG_STATUS
18173 echo ': clr' >>$CONFIG_STATUS
18174 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18176 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18178 mv $tmp/out $tmp/in
18180 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18181 rm -f conftest.undefs
18182 mv conftest.tail conftest.undefs
18184 rm -f conftest.undefs
18186 cat >>$CONFIG_STATUS <<\_ACEOF
18187 # Let's still pretend it is `configure' which instantiates (i.e., don't
18188 # use $as_me), people would be surprised to read:
18189 # /* config.h. Generated by config.status. */
18190 if test x"$ac_file" = x-; then
18191 echo "/* Generated by configure. */" >$tmp/config.h
18193 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18195 cat $tmp/in >>$tmp/config.h
18197 if test x"$ac_file" != x-; then
18198 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18199 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18200 echo "$as_me: $ac_file is unchanged" >&6;}
18202 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18203 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18204 X"$ac_file" : 'X\(//\)[^/]' \| \
18205 X"$ac_file" : 'X\(//\)$' \| \
18206 X"$ac_file" : 'X\(/\)' \| \
18207 . : '\(.\)' 2>/dev/null ||
18209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18211 /^X\(\/\/\)$/{ s//\1/; q; }
18212 /^X\(\/\).*/{ s//\1/; q; }
18214 { if $as_mkdir_p; then
18219 while test ! -d "$as_dir"; do
18220 as_dirs="$as_dir $as_dirs"
18221 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18223 X"$as_dir" : 'X\(//\)[^/]' \| \
18224 X"$as_dir" : 'X\(//\)$' \| \
18225 X"$as_dir" : 'X\(/\)' \| \
18226 . : '\(.\)' 2>/dev/null ||
18228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18229 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18230 /^X\(\/\/\)$/{ s//\1/; q; }
18231 /^X\(\/\).*/{ s//\1/; q; }
18234 test ! -n "$as_dirs" || mkdir $as_dirs
18235 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18236 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18237 { (exit 1); exit 1; }; }; }
18240 mv $tmp/config.h $ac_file
18244 rm -f $tmp/config.h
18248 cat >>$CONFIG_STATUS <<\_ACEOF
18251 # CONFIG_COMMANDS section.
18253 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18254 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18255 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18256 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18257 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18258 X"$ac_dest" : 'X\(//\)[^/]' \| \
18259 X"$ac_dest" : 'X\(//\)$' \| \
18260 X"$ac_dest" : 'X\(/\)' \| \
18261 . : '\(.\)' 2>/dev/null ||
18263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18265 /^X\(\/\/\)$/{ s//\1/; q; }
18266 /^X\(\/\).*/{ s//\1/; q; }
18268 { if $as_mkdir_p; then
18273 while test ! -d "$as_dir"; do
18274 as_dirs="$as_dir $as_dirs"
18275 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18277 X"$as_dir" : 'X\(//\)[^/]' \| \
18278 X"$as_dir" : 'X\(//\)$' \| \
18279 X"$as_dir" : 'X\(/\)' \| \
18280 . : '\(.\)' 2>/dev/null ||
18282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18283 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18284 /^X\(\/\/\)$/{ s//\1/; q; }
18285 /^X\(\/\).*/{ s//\1/; q; }
18288 test ! -n "$as_dirs" || mkdir $as_dirs
18289 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18290 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18291 { (exit 1); exit 1; }; }; }
18295 if test "$ac_dir" != .; then
18296 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18297 # A "../" for each directory in $ac_dir_suffix.
18298 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18300 ac_dir_suffix= ac_top_builddir=
18304 .) # No --srcdir option. We are building in place.
18306 if test -z "$ac_top_builddir"; then
18309 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18311 [\\/]* | ?:[\\/]* ) # Absolute path.
18312 ac_srcdir=$srcdir$ac_dir_suffix;
18313 ac_top_srcdir=$srcdir ;;
18314 *) # Relative path.
18315 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18316 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18319 # Do not use `cd foo && pwd` to compute absolute paths, because
18320 # the directories may not exist.
18322 .) ac_abs_builddir="$ac_dir";;
18325 .) ac_abs_builddir=`pwd`;;
18326 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18327 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18330 case $ac_abs_builddir in
18331 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18333 case ${ac_top_builddir}. in
18334 .) ac_abs_top_builddir=$ac_abs_builddir;;
18335 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18336 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18339 case $ac_abs_builddir in
18340 .) ac_abs_srcdir=$ac_srcdir;;
18343 .) ac_abs_srcdir=$ac_abs_builddir;;
18344 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18345 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18348 case $ac_abs_builddir in
18349 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18351 case $ac_top_srcdir in
18352 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18353 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18354 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18359 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18360 echo "$as_me: executing $ac_dest commands" >&6;}
18363 case ${CONFIG_HEADERS} in
18364 *auto-host.h:config.in*)
18367 # Make sure all the subdirs exist.
18368 for d in $subdirs doc build
18370 test -d $d || mkdir $d
18377 cat >>$CONFIG_STATUS <<\_ACEOF
18379 { (exit 0); exit 0; }
18381 chmod +x $CONFIG_STATUS
18382 ac_clean_files=$ac_clean_files_save
18385 # configure is writing to config.log, and then calls config.status.
18386 # config.status does its own redirection, appending to config.log.
18387 # Unfortunately, on DOS this fails, as config.log is still kept open
18388 # by configure, so config.status won't be able to write to it; its
18389 # output is simply discarded. So we exec the FD to /dev/null,
18390 # effectively closing config.log, so it can be properly (re)opened and
18391 # appended to by config.status. When coming back to configure, we
18392 # need to make the FD available again.
18393 if test "$no_create" != yes; then
18395 ac_config_status_args=
18396 test "$silent" = yes &&
18397 ac_config_status_args="$ac_config_status_args --quiet"
18399 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18401 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18402 # would make configure fail if this is the last instruction.
18403 $ac_cs_success || { (exit 1); exit 1; }