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 loose_warn cxx_compat_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI 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 build_file_translate 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 despite compiler version
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,df,fold,gc,gcac,misc,
871 rtlflag,rtl,runtime,tree,valgrind,types.
872 --enable-coverage=LEVEL
873 enable compiler's code coverage collection.
874 Use to measure compiler performance and locate
875 unused parts of the compiler. With LEVEL, specify
876 optimization. Values are opt, noopt,
878 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
879 --enable-multilib enable library support for multiple ABIs
880 --enable-__cxa_atexit enable __cxa_atexit for C++
881 --enable-decimal-float={no,yes,bid,dpd}
882 enable decimal float extension to C. Selecting 'bid'
883 or 'dpd' choses which decimal floating point format
885 --enable-fixed-point enable fixed-point arithmetic extension to C
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-pkgversion=PKG Use PKG in the version string in place of "GCC"
935 --with-bugurl=URL Direct users to URL to report a bug
936 --with-gnu-ld assume the C compiler uses GNU ld default=no
937 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
938 --without-libiconv-prefix don't search for libiconv in includedir and libdir
939 --with-system-libunwind use installed libunwind
940 --with-long-double-128 Use 128-bit long double by default.
941 --with-gc={page,zone} choose the garbage collection mechanism to use
943 --with-system-zlib use installed libz
944 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
945 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
946 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
947 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
949 Some influential environment variables:
950 CC C compiler command
951 CFLAGS C compiler flags
952 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
953 nonstandard directory <lib dir>
954 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
955 headers in a nonstandard directory <include dir>
957 GMPLIBS How to link GMP
958 GMPINC How to find GMP include files
960 Use these variables to override the choices made by `configure' or to help
961 it to find libraries and programs with nonstandard names/locations.
966 if test "$ac_init_help" = "recursive"; then
967 # If there are subdirs, report their specific --help.
969 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
970 test -d $ac_dir || continue
973 if test "$ac_dir" != .; then
974 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
975 # A "../" for each directory in $ac_dir_suffix.
976 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
978 ac_dir_suffix= ac_top_builddir=
982 .) # No --srcdir option. We are building in place.
984 if test -z "$ac_top_builddir"; then
987 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
989 [\\/]* | ?:[\\/]* ) # Absolute path.
990 ac_srcdir=$srcdir$ac_dir_suffix;
991 ac_top_srcdir=$srcdir ;;
993 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
994 ac_top_srcdir=$ac_top_builddir$srcdir ;;
997 # Do not use `cd foo && pwd` to compute absolute paths, because
998 # the directories may not exist.
1000 .) ac_abs_builddir="$ac_dir";;
1003 .) ac_abs_builddir=`pwd`;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1005 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1011 case ${ac_top_builddir}. in
1012 .) ac_abs_top_builddir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1014 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1017 case $ac_abs_builddir in
1018 .) ac_abs_srcdir=$ac_srcdir;;
1021 .) ac_abs_srcdir=$ac_abs_builddir;;
1022 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1023 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1026 case $ac_abs_builddir in
1027 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1029 case $ac_top_srcdir in
1030 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1031 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1032 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1037 # Check for guested configure; otherwise get Cygnus style configure.
1038 if test -f $ac_srcdir/configure.gnu; then
1040 $SHELL $ac_srcdir/configure.gnu --help=recursive
1041 elif test -f $ac_srcdir/configure; then
1043 $SHELL $ac_srcdir/configure --help=recursive
1044 elif test -f $ac_srcdir/configure.ac ||
1045 test -f $ac_srcdir/configure.in; then
1047 $ac_configure --help
1049 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1055 test -n "$ac_init_help" && exit 0
1056 if $ac_init_version; then
1059 Copyright (C) 2003 Free Software Foundation, Inc.
1060 This configure script is free software; the Free Software Foundation
1061 gives unlimited permission to copy, distribute and modify it.
1067 This file contains any messages produced by compilers while
1068 running configure, to aid debugging if configure makes a mistake.
1070 It was created by $as_me, which was
1071 generated by GNU Autoconf 2.59. Invocation command line was
1082 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1083 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1084 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1085 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1086 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1088 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1089 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1091 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1092 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1093 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1094 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1095 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1096 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1097 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1105 test -z "$as_dir" && as_dir=.
1106 echo "PATH: $as_dir"
1121 # Keep a trace of the command line.
1122 # Strip out --no-create and --no-recursion so they do not pile up.
1123 # Strip out --silent because we don't want to record it for future runs.
1124 # Also quote any args containing shell meta-characters.
1125 # Make two passes to allow for proper duplicate-argument suppression.
1130 ac_must_keep_next=false
1136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138 | -silent | --silent | --silen | --sile | --sil)
1140 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1141 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1144 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1146 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1147 if test $ac_must_keep_next = true; then
1148 ac_must_keep_next=false # Got value, back to normal.
1151 *=* | --config-cache | -C | -disable-* | --disable-* \
1152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1154 | -with-* | --with-* | -without-* | --without-* | --x)
1155 case "$ac_configure_args0 " in
1156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1159 -* ) ac_must_keep_next=true ;;
1162 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1163 # Get rid of the leading space.
1169 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1170 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1172 # When interrupted or exit'd, cleanup temporary files, and complete
1173 # config.log. We remove comments because anyway the quotes in there
1174 # would cause problems or look ugly.
1175 # WARNING: Be sure not to use single quotes in there, as some shells,
1176 # such as our DU 5.0 friend, will then `close' the trap.
1177 trap 'exit_status=$?
1178 # Save into config.log some information that might help in debugging.
1183 ## ---------------- ##
1184 ## Cache variables. ##
1185 ## ---------------- ##
1188 # The following way of writing the cache mishandles newlines in values,
1191 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1194 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1199 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1206 ## ----------------- ##
1207 ## Output variables. ##
1208 ## ----------------- ##
1211 for ac_var in $ac_subst_vars
1213 eval ac_val=$`echo $ac_var`
1214 echo "$ac_var='"'"'$ac_val'"'"'"
1218 if test -n "$ac_subst_files"; then
1225 for ac_var in $ac_subst_files
1227 eval ac_val=$`echo $ac_var`
1228 echo "$ac_var='"'"'$ac_val'"'"'"
1233 if test -s confdefs.h; then
1240 sed "/^$/d" confdefs.h | sort
1243 test "$ac_signal" != 0 &&
1244 echo "$as_me: caught signal $ac_signal"
1245 echo "$as_me: exit $exit_status"
1247 rm -f core *.core &&
1248 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1251 for ac_signal in 1 2 13 15; do
1252 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1256 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1257 rm -rf conftest* confdefs.h
1258 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1261 # Predefined preprocessor variables.
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_NAME "$PACKAGE_NAME"
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_STRING "$PACKAGE_STRING"
1283 cat >>confdefs.h <<_ACEOF
1284 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1288 # Let the site file select an alternate cache file if it wants to.
1289 # Prefer explicitly selected file to automatically selected ones.
1290 if test -z "$CONFIG_SITE"; then
1291 if test "x$prefix" != xNONE; then
1292 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1294 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1297 for ac_site_file in $CONFIG_SITE; do
1298 if test -r "$ac_site_file"; then
1299 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1300 echo "$as_me: loading site script $ac_site_file" >&6;}
1301 sed 's/^/| /' "$ac_site_file" >&5
1306 if test -r "$cache_file"; then
1307 # Some versions of bash will fail to source /dev/null (special
1308 # files actually), so we avoid doing that.
1309 if test -f "$cache_file"; then
1310 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1311 echo "$as_me: loading cache $cache_file" >&6;}
1313 [\\/]* | ?:[\\/]* ) . $cache_file;;
1314 *) . ./$cache_file;;
1318 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1319 echo "$as_me: creating cache $cache_file" >&6;}
1323 # Check that the precious variables saved in the cache have kept the same
1325 ac_cache_corrupted=false
1326 for ac_var in `(set) 2>&1 |
1327 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1328 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1329 eval ac_new_set=\$ac_env_${ac_var}_set
1330 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1331 eval ac_new_val="\$ac_env_${ac_var}_value"
1332 case $ac_old_set,$ac_new_set in
1334 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1335 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1336 ac_cache_corrupted=: ;;
1338 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1339 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1340 ac_cache_corrupted=: ;;
1343 if test "x$ac_old_val" != "x$ac_new_val"; then
1344 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1345 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1346 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1347 echo "$as_me: former value: $ac_old_val" >&2;}
1348 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1349 echo "$as_me: current value: $ac_new_val" >&2;}
1350 ac_cache_corrupted=:
1353 # Pass precious variables to config.status.
1354 if test "$ac_new_set" = set; then
1356 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1357 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1358 *) ac_arg=$ac_var=$ac_new_val ;;
1360 case " $ac_configure_args " in
1361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1362 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1366 if $ac_cache_corrupted; then
1367 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1368 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1369 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1370 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1371 { (exit 1); exit 1; }; }
1375 ac_cpp='$CPP $CPPFLAGS'
1376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1399 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1402 gcc_version=`cat $srcdir/BASE-VER`
1404 # Determine the host, build, and target systems
1406 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1407 if test -f $ac_dir/install-sh; then
1409 ac_install_sh="$ac_aux_dir/install-sh -c"
1411 elif test -f $ac_dir/install.sh; then
1413 ac_install_sh="$ac_aux_dir/install.sh -c"
1415 elif test -f $ac_dir/shtool; then
1417 ac_install_sh="$ac_aux_dir/shtool install -c"
1421 if test -z "$ac_aux_dir"; then
1422 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1423 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1424 { (exit 1); exit 1; }; }
1426 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1427 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1428 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1430 # Make sure we can run config.sub.
1431 $ac_config_sub sun4 >/dev/null 2>&1 ||
1432 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1433 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1434 { (exit 1); exit 1; }; }
1436 echo "$as_me:$LINENO: checking build system type" >&5
1437 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1438 if test "${ac_cv_build+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 ac_cv_build_alias=$build_alias
1442 test -z "$ac_cv_build_alias" &&
1443 ac_cv_build_alias=`$ac_config_guess`
1444 test -z "$ac_cv_build_alias" &&
1445 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1446 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1447 { (exit 1); exit 1; }; }
1448 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1449 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1450 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1451 { (exit 1); exit 1; }; }
1454 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1455 echo "${ECHO_T}$ac_cv_build" >&6
1457 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1458 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1459 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1462 echo "$as_me:$LINENO: checking host system type" >&5
1463 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1464 if test "${ac_cv_host+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 ac_cv_host_alias=$host_alias
1468 test -z "$ac_cv_host_alias" &&
1469 ac_cv_host_alias=$ac_cv_build_alias
1470 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1471 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1472 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1473 { (exit 1); exit 1; }; }
1476 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1477 echo "${ECHO_T}$ac_cv_host" >&6
1479 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1480 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1481 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1484 echo "$as_me:$LINENO: checking target system type" >&5
1485 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1486 if test "${ac_cv_target+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 ac_cv_target_alias=$target_alias
1490 test "x$ac_cv_target_alias" = "x" &&
1491 ac_cv_target_alias=$ac_cv_host_alias
1492 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1493 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1495 { (exit 1); exit 1; }; }
1498 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1499 echo "${ECHO_T}$ac_cv_target" >&6
1500 target=$ac_cv_target
1501 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1506 # The aliases save the names the user supplied, while $host etc.
1507 # will get canonicalized.
1508 test -n "$target_alias" &&
1509 test "$program_prefix$program_suffix$program_transform_name" = \
1511 program_prefix=${target_alias}-
1513 # Determine the noncanonical target name, for directory use.
1514 case ${build_alias} in
1515 "") build_noncanonical=${build} ;;
1516 *) build_noncanonical=${build_alias} ;;
1519 case ${host_alias} in
1520 "") host_noncanonical=${build_noncanonical} ;;
1521 *) host_noncanonical=${host_alias} ;;
1524 case ${target_alias} in
1525 "") target_noncanonical=${host_noncanonical} ;;
1526 *) target_noncanonical=${target_alias} ;;
1532 # Determine the target- and build-specific subdirectories
1534 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1535 # have matching libraries, they should use host libraries: Makefile.tpl
1536 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1537 # However, they still use the build modules, because the corresponding
1538 # host modules (e.g. bison) are only built for the host when bootstrap
1540 # - build_subdir is where we find build modules, and never changes.
1541 # - build_libsubdir is where we find build libraries, and can be overridden.
1543 # Prefix 'build-' so this never conflicts with target_subdir.
1544 build_subdir="build-${build_noncanonical}"
1546 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1547 if test "${with_build_libsubdir+set}" = set; then
1548 withval="$with_build_libsubdir"
1549 build_libsubdir="$withval"
1551 build_libsubdir="$build_subdir"
1553 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1554 if ( test $srcdir = . && test -d gcc ) \
1555 || test -d $srcdir/../host-${host_noncanonical}; then
1556 host_subdir="host-${host_noncanonical}"
1561 target_subdir=${target_noncanonical}
1564 # Set program_transform_name
1565 test "$program_prefix" != NONE &&
1566 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1567 # Use a double $ so make ignores it.
1568 test "$program_suffix" != NONE &&
1569 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1570 # Double any \ or $. echo might interpret backslashes.
1571 # By default was `s,x,x', remove it if useless.
1572 cat <<\_ACEOF >conftest.sed
1573 s/[\\$]/&&/g;s/;s,x,x,$//
1575 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1579 # Check for bogus environment variables.
1580 # Test if LIBRARY_PATH contains the notation for the current directory
1581 # since this would lead to problems installing/building glibc.
1582 # LIBRARY_PATH contains the current directory if one of the following
1584 # - one of the terminals (":" and ";") is the first or last sign
1585 # - two terminals occur directly after each other
1586 # - the path contains an element with a dot in it
1587 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1588 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1589 case ${LIBRARY_PATH} in
1590 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1591 library_path_setting="contains current directory"
1594 library_path_setting="ok"
1597 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1598 echo "${ECHO_T}$library_path_setting" >&6
1599 if test "$library_path_setting" != "ok"; then
1600 { { echo "$as_me:$LINENO: error:
1601 *** LIBRARY_PATH shouldn't contain the current directory when
1602 *** building gcc. Please change the environment variable
1603 *** and run configure again." >&5
1604 echo "$as_me: error:
1605 *** LIBRARY_PATH shouldn't contain the current directory when
1606 *** building gcc. Please change the environment variable
1607 *** and run configure again." >&2;}
1608 { (exit 1); exit 1; }; }
1611 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1612 # since this would lead to problems installing/building glibc.
1613 # GCC_EXEC_PREFIX contains the current directory if one of the following
1615 # - one of the terminals (":" and ";") is the first or last sign
1616 # - two terminals occur directly after each other
1617 # - the path contains an element with a dot in it
1618 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1619 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1620 case ${GCC_EXEC_PREFIX} in
1621 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1622 gcc_exec_prefix_setting="contains current directory"
1625 gcc_exec_prefix_setting="ok"
1628 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1629 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1630 if test "$gcc_exec_prefix_setting" != "ok"; then
1631 { { echo "$as_me:$LINENO: error:
1632 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1633 *** building gcc. Please change the environment variable
1634 *** and run configure again." >&5
1635 echo "$as_me: error:
1636 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1637 *** building gcc. Please change the environment variable
1638 *** and run configure again." >&2;}
1639 { (exit 1); exit 1; }; }
1646 # Specify the local prefix
1649 # Check whether --with-local-prefix or --without-local-prefix was given.
1650 if test "${with_local_prefix+set}" = set; then
1651 withval="$with_local_prefix"
1652 case "${withval}" in
1653 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1654 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1655 { (exit 1); exit 1; }; } ;;
1657 *) local_prefix=$with_local_prefix ;;
1661 # Default local prefix if it is empty
1662 if test x$local_prefix = x; then
1663 local_prefix=/usr/local
1666 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1667 # passed in by the toplevel make and thus we'd get different behavior
1668 # depending on where we built the sources.
1669 gcc_gxx_include_dir=
1670 # Specify the g++ header file directory
1672 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1673 if test "${with_gxx_include_dir+set}" = set; then
1674 withval="$with_gxx_include_dir"
1675 case "${withval}" in
1676 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1677 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1678 { (exit 1); exit 1; }; } ;;
1680 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1684 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1685 if test x${gcc_gxx_include_dir} = x; then
1686 if test x${enable_version_specific_runtime_libs} = xyes; then
1687 gcc_gxx_include_dir='${libsubdir}/include/c++'
1689 libstdcxx_incdir='include/c++/$(version)'
1690 if test x$host != x$target; then
1691 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1693 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1698 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1699 if test "${with_cpp_install_dir+set}" = set; then
1700 withval="$with_cpp_install_dir"
1701 if test x$withval = xyes; then
1702 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1703 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1704 { (exit 1); exit 1; }; }
1705 elif test x$withval != xno; then
1706 cpp_install_dir=$withval
1710 # We would like to our source tree to be readonly. However when releases or
1711 # pre-releases are generated, the flex/bison generated files as well as the
1712 # various formats of manuals need to be included along with the rest of the
1713 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1716 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1717 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1718 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1719 if test "${enable_generated_files_in_srcdir+set}" = set; then
1720 enableval="$enable_generated_files_in_srcdir"
1721 generated_files_in_srcdir=$enableval
1723 generated_files_in_srcdir=no
1726 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1727 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1729 if test "$generated_files_in_srcdir" = "yes"; then
1736 # -------------------
1737 # Find default linker
1738 # -------------------
1742 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1743 if test "${with_gnu_ld+set}" = set; then
1744 withval="$with_gnu_ld"
1745 gnu_ld_flag="$with_gnu_ld"
1750 # With pre-defined ld
1752 # Check whether --with-ld or --without-ld was given.
1753 if test "${with_ld+set}" = set; then
1755 DEFAULT_LINKER="$with_ld"
1757 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1758 if test ! -x "$DEFAULT_LINKER"; then
1759 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1760 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1761 { (exit 1); exit 1; }; }
1762 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1766 cat >>confdefs.h <<_ACEOF
1767 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1772 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1774 cat >>confdefs.h <<_ACEOF
1775 #define HAVE_GNU_LD $gnu_ld
1779 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1780 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1781 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1782 if test x"$gnu_ld_flag" = x"no"; then
1783 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1784 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1786 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1787 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1790 echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1794 # With demangler in GNU ld
1796 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1797 if test "${with_demangler_in_ld+set}" = set; then
1798 withval="$with_demangler_in_ld"
1799 demangler_in_ld="$with_demangler_in_ld"
1804 # ----------------------
1805 # Find default assembler
1806 # ----------------------
1810 # Check whether --with-gnu-as or --without-gnu-as was given.
1811 if test "${with_gnu_as+set}" = set; then
1812 withval="$with_gnu_as"
1813 gas_flag="$with_gnu_as"
1819 # Check whether --with-as or --without-as was given.
1820 if test "${with_as+set}" = set; then
1822 DEFAULT_ASSEMBLER="$with_as"
1824 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1825 if test ! -x "$DEFAULT_ASSEMBLER"; then
1826 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1827 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1828 { (exit 1); exit 1; }; }
1829 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1833 cat >>confdefs.h <<_ACEOF
1834 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1839 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
1841 cat >>confdefs.h <<_ACEOF
1842 #define HAVE_GNU_AS $gnu_as
1846 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1847 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1848 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1849 if test x"$gas_flag" = x"no"; then
1850 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1851 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1853 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1854 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1865 # If a non-executable a.out is present (e.g. created by GNU as above even if
1866 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1867 # file, even when creating an executable, so an execution test fails.
1868 # Remove possible default executable files to avoid this.
1870 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1871 # Autoconf includes it.
1872 rm -f a.out a.exe b.out
1874 # Find the native compiler
1876 ac_cpp='$CPP $CPPFLAGS'
1877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1880 if test -n "$ac_tool_prefix"; then
1881 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1882 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_CC+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$CC"; then
1889 ac_cv_prog_CC="$CC" # Let the user override the test.
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 if test -n "$CC"; then
1909 echo "$as_me:$LINENO: result: $CC" >&5
1910 echo "${ECHO_T}$CC" >&6
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1917 if test -z "$ac_cv_prog_CC"; then
1919 # Extract the first word of "gcc", so it can be a program name with args.
1920 set dummy gcc; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 if test -n "$ac_ct_CC"; then
1927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 ac_cv_prog_ac_ct_CC="gcc"
1937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1950 echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1959 if test -z "$CC"; then
1960 if test -n "$ac_tool_prefix"; then
1961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1962 set dummy ${ac_tool_prefix}cc; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_CC+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 if test -n "$CC"; then
1969 ac_cv_prog_CC="$CC" # Let the user override the test.
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 test -z "$as_dir" && as_dir=.
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978 ac_cv_prog_CC="${ac_tool_prefix}cc"
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988 if test -n "$CC"; then
1989 echo "$as_me:$LINENO: result: $CC" >&5
1990 echo "${ECHO_T}$CC" >&6
1992 echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1997 if test -z "$ac_cv_prog_CC"; then
1999 # Extract the first word of "cc", so it can be a program name with args.
2000 set dummy cc; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test -n "$ac_ct_CC"; then
2007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 ac_cv_prog_ac_ct_CC="cc"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026 if test -n "$ac_ct_CC"; then
2027 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028 echo "${ECHO_T}$ac_ct_CC" >&6
2030 echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2040 if test -z "$CC"; then
2041 # Extract the first word of "cc", so it can be a program name with args.
2042 set dummy cc; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 if test -n "$CC"; then
2049 ac_cv_prog_CC="$CC" # Let the user override the test.
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2060 ac_prog_rejected=yes
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 if test $ac_prog_rejected = yes; then
2071 # We found a bogon in the path, so make sure we never use it.
2072 set dummy $ac_cv_prog_CC
2074 if test $# != 0; then
2075 # We chose a different compiler from the bogus one.
2076 # However, it has the same basename, so the bogon will be chosen
2077 # first if we set CC to just the basename; use the full file name.
2079 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2085 if test -n "$CC"; then
2086 echo "$as_me:$LINENO: result: $CC" >&5
2087 echo "${ECHO_T}$CC" >&6
2089 echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6
2094 if test -z "$CC"; then
2095 if test -n "$ac_tool_prefix"; then
2098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2100 echo "$as_me:$LINENO: checking for $ac_word" >&5
2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102 if test "${ac_cv_prog_CC+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 if test -n "$CC"; then
2106 ac_cv_prog_CC="$CC" # Let the user override the test.
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 test -z "$as_dir" && as_dir=.
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 if test -n "$CC"; then
2126 echo "$as_me:$LINENO: result: $CC" >&5
2127 echo "${ECHO_T}$CC" >&6
2129 echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6
2133 test -n "$CC" && break
2136 if test -z "$CC"; then
2140 # Extract the first word of "$ac_prog", so it can be a program name with args.
2141 set dummy $ac_prog; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test -n "$ac_ct_CC"; then
2148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157 ac_cv_prog_ac_ct_CC="$ac_prog"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2167 if test -n "$ac_ct_CC"; then
2168 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2169 echo "${ECHO_T}$ac_ct_CC" >&6
2171 echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2175 test -n "$ac_ct_CC" && break
2184 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: no acceptable C compiler found in \$PATH
2187 See \`config.log' for more details." >&2;}
2188 { (exit 1); exit 1; }; }
2190 # Provide some information about the compiler.
2191 echo "$as_me:$LINENO:" \
2192 "checking for C compiler version" >&5
2193 ac_compiler=`set X $ac_compile; echo $2`
2194 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2195 (eval $ac_compiler --version </dev/null >&5) 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }
2199 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2200 (eval $ac_compiler -v </dev/null >&5) 2>&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }
2204 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2205 (eval $ac_compiler -V </dev/null >&5) 2>&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }
2210 cat >conftest.$ac_ext <<_ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h. */
2225 ac_clean_files_save=$ac_clean_files
2226 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2227 # Try to create an executable without -o first, disregard a.out.
2228 # It will help us diagnose broken compilers, and finding out an intuition
2230 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2231 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2232 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2233 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2234 (eval $ac_link_default) 2>&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; then
2238 # Find the output, starting from the most likely. This scheme is
2239 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2242 # Be careful to initialize this variable, since it used to be cached.
2243 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2245 # b.out is created by i960 compilers.
2246 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2248 test -f "$ac_file" || continue
2250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2253 # This is the source file.
2256 # We found the default executable, but exeext='' is most
2260 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2261 # FIXME: I believe we export ac_cv_exeext for Libtool,
2262 # but it would be cool to find out if it's true. Does anybody
2263 # maintain Libtool? --akim.
2271 echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2274 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2275 See \`config.log' for more details." >&5
2276 echo "$as_me: error: C compiler cannot create executables
2277 See \`config.log' for more details." >&2;}
2278 { (exit 77); exit 77; }; }
2281 ac_exeext=$ac_cv_exeext
2282 echo "$as_me:$LINENO: result: $ac_file" >&5
2283 echo "${ECHO_T}$ac_file" >&6
2285 # Check the compiler produces executables we can run. If not, either
2286 # the compiler is broken, or we cross compile.
2287 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2288 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2289 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2290 # If not cross compiling, check that we can run a simple program.
2291 if test "$cross_compiling" != yes; then
2292 if { ac_try='./$ac_file'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2300 if test "$cross_compiling" = maybe; then
2303 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2304 If you meant to cross compile, use \`--host'.
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: cannot run C compiled programs.
2307 If you meant to cross compile, use \`--host'.
2308 See \`config.log' for more details." >&2;}
2309 { (exit 1); exit 1; }; }
2313 echo "$as_me:$LINENO: result: yes" >&5
2314 echo "${ECHO_T}yes" >&6
2316 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2317 ac_clean_files=$ac_clean_files_save
2318 # Check the compiler produces executables we can run. If not, either
2319 # the compiler is broken, or we cross compile.
2320 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2321 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2322 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2323 echo "${ECHO_T}$cross_compiling" >&6
2325 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2326 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2328 (eval $ac_link) 2>&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; then
2332 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2333 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2334 # work properly (i.e., refer to `conftest.exe'), while it won't with
2336 for ac_file in conftest.exe conftest conftest.*; do
2337 test -f "$ac_file" || continue
2339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2340 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2347 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2350 See \`config.log' for more details." >&2;}
2351 { (exit 1); exit 1; }; }
2354 rm -f conftest$ac_cv_exeext
2355 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2356 echo "${ECHO_T}$ac_cv_exeext" >&6
2358 rm -f conftest.$ac_ext
2359 EXEEXT=$ac_cv_exeext
2361 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2362 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2363 if test "${ac_cv_objext+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat >conftest.$ac_ext <<_ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2381 rm -f conftest.o conftest.obj
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; then
2387 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2389 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2390 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2395 echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2398 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2399 See \`config.log' for more details." >&5
2400 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2401 See \`config.log' for more details." >&2;}
2402 { (exit 1); exit 1; }; }
2405 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2407 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2408 echo "${ECHO_T}$ac_cv_objext" >&6
2409 OBJEXT=$ac_cv_objext
2411 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2412 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2413 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 cat >conftest.$ac_ext <<_ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h. */
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>conftest.er1
2438 grep -v '^ *+' conftest.er1 >conftest.err
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } &&
2443 { ac_try='test -z "$ac_c_werror_flag"
2444 || test ! -s conftest.err'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; } &&
2450 { ac_try='test -s conftest.$ac_objext'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2467 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2468 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2469 GCC=`test $ac_compiler_gnu = yes && echo yes`
2470 ac_test_CFLAGS=${CFLAGS+set}
2471 ac_save_CFLAGS=$CFLAGS
2473 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2474 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2475 if test "${ac_cv_prog_cc_g+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 cat >conftest.$ac_ext <<_ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2497 grep -v '^ *+' conftest.er1 >conftest.err
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try='test -z "$ac_c_werror_flag"
2503 || test ! -s conftest.err'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2524 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2525 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2526 if test "$ac_test_CFLAGS" = set; then
2527 CFLAGS=$ac_save_CFLAGS
2528 elif test $ac_cv_prog_cc_g = yes; then
2529 if test "$GCC" = yes; then
2535 if test "$GCC" = yes; then
2541 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2542 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2543 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 ac_cv_prog_cc_stdc=no
2548 cat >conftest.$ac_ext <<_ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2556 #include <sys/types.h>
2557 #include <sys/stat.h>
2558 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2559 struct buf { int x; };
2560 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2561 static char *e (p, i)
2567 static char *f (char * (*g) (char **, int), char **p, ...)
2572 s = g (p, va_arg (v,int));
2577 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2578 function prototypes and stuff, but not '\xHH' hex character constants.
2579 These don't provoke an error unfortunately, instead are silently treated
2580 as 'x'. The following induces an error, until -std1 is added to get
2581 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2582 array size at least. It's necessary to write '\x00'==0 to get something
2583 that's true only with -std1. */
2584 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2586 int test (int i, double x);
2587 struct s1 {int (*f) (int a);};
2588 struct s2 {int (*f) (double a);};
2589 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2595 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2600 # Don't try gcc -ansi; that turns off useful extensions and
2601 # breaks some systems' header files.
2602 # AIX -qlanglvl=ansi
2603 # Ultrix and OSF/1 -std1
2604 # HP-UX 10.20 and later -Ae
2605 # HP-UX older versions -Aa -D_HPUX_SOURCE
2606 # SVR4 -Xc -D__EXTENSIONS__
2607 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2609 CC="$ac_save_CC $ac_arg"
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>conftest.er1
2614 grep -v '^ *+' conftest.er1 >conftest.err
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 ac_cv_prog_cc_stdc=$ac_arg
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2639 rm -f conftest.err conftest.$ac_objext
2641 rm -f conftest.$ac_ext conftest.$ac_objext
2646 case "x$ac_cv_prog_cc_stdc" in
2648 echo "$as_me:$LINENO: result: none needed" >&5
2649 echo "${ECHO_T}none needed" >&6 ;;
2651 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2653 CC="$CC $ac_cv_prog_cc_stdc" ;;
2656 # Some people use a C++ compiler to compile C. Since we use `exit',
2657 # in C++ we need to declare it. In case someone uses the same compiler
2658 # for both compiling C and C++ we need to have the C++ compiler decide
2659 # the declaration of exit, since it's the most demanding environment.
2660 cat >conftest.$ac_ext <<_ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667 (eval $ac_compile) 2>conftest.er1
2669 grep -v '^ *+' conftest.er1 >conftest.err
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } &&
2674 { ac_try='test -z "$ac_c_werror_flag"
2675 || test ! -s conftest.err'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try='test -s conftest.$ac_objext'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; }; then
2687 for ac_declaration in \
2689 'extern "C" void std::exit (int) throw (); using std::exit;' \
2690 'extern "C" void std::exit (int); using std::exit;' \
2691 'extern "C" void exit (int) throw ();' \
2692 'extern "C" void exit (int);' \
2695 cat >conftest.$ac_ext <<_ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>conftest.er1
2715 grep -v '^ *+' conftest.er1 >conftest.err
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag"
2721 || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741 cat >conftest.$ac_ext <<_ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2760 grep -v '^ *+' conftest.er1 >conftest.err
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_c_werror_flag"
2766 || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2787 if test -n "$ac_declaration"; then
2788 echo '#ifdef __cplusplus' >>confdefs.h
2789 echo $ac_declaration >>confdefs.h
2790 echo '#endif' >>confdefs.h
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2800 ac_cpp='$CPP $CPPFLAGS'
2801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805 if test "x$CC" != xcc; then
2806 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2807 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2809 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2810 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2812 set dummy $CC; ac_cc=`echo $2 |
2813 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2814 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 cat >conftest.$ac_ext <<_ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2832 # Make sure it works both with $CC and with simple cc.
2833 # We do the test twice because some compilers refuse to overwrite an
2834 # existing .o file with -o, though they will create one.
2835 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2836 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } &&
2841 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); };
2847 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2848 if test "x$CC" != xcc; then
2849 # Test first that cc exists at all.
2850 if { ac_try='cc -c conftest.$ac_ext >&5'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2856 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2857 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); };
2871 # cc exists but doesn't like -o.
2872 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2877 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2882 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2883 echo "$as_me:$LINENO: result: yes" >&5
2884 echo "${ECHO_T}yes" >&6
2886 echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2889 cat >>confdefs.h <<\_ACEOF
2890 #define NO_MINUS_C_MINUS_O 1
2895 # expand $ac_aux_dir to an absolute path
2896 am_aux_dir=`cd $ac_aux_dir && pwd`
2898 # FIXME: we rely on the cache variable name because
2899 # there is no other way.
2901 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2902 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2903 # Losing compiler, so override with the script.
2904 # FIXME: It is wrong to rewrite CC.
2905 # But if we don't then we get into trouble of one sort or another.
2906 # A longer-term fix would be to have automake use am__CC in this case,
2907 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2908 CC="$am_aux_dir/compile $CC"
2911 # autoconf is lame and doesn't give us any substitution variable for this.
2912 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2913 NO_MINUS_C_MINUS_O=yes
2915 OUTPUT_OPTION='-o $@'
2920 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2921 # optimizations to be activated explicitly by the toplevel.
2923 */prev-gcc/xgcc*) ;;
2924 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2928 # -------------------------
2929 # Check C compiler features
2930 # -------------------------
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2940 # On Suns, sometimes $CPP names a directory.
2941 if test -n "$CPP" && test -d "$CPP"; then
2944 if test -z "$CPP"; then
2945 if test "${ac_cv_prog_CPP+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 # Double quotes because CPP needs to be expanded
2949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2952 for ac_c_preproc_warn_flag in '' yes
2954 # Use a header file that comes with gcc, so configuring glibc
2955 # with a fresh cross-compiler works.
2956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2957 # <limits.h> exists even on freestanding compilers.
2958 # On the NeXT, cc -E runs the code through the compiler's parser,
2959 # not just through cpp. "Syntax error" is here to catch this case.
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2967 # include <limits.h>
2969 # include <assert.h>
2973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976 grep -v '^ *+' conftest.er1 >conftest.err
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } >/dev/null; then
2981 if test -s conftest.err; then
2982 ac_cpp_err=$ac_c_preproc_warn_flag
2983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2990 if test -z "$ac_cpp_err"; then
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2996 # Broken: fails on valid input.
2999 rm -f conftest.err conftest.$ac_ext
3001 # OK, works on sane cases. Now check whether non-existent headers
3002 # can be detected and how.
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3009 #include <ac_nonexistent.h>
3011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } >/dev/null; then
3019 if test -s conftest.err; then
3020 ac_cpp_err=$ac_c_preproc_warn_flag
3021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3028 if test -z "$ac_cpp_err"; then
3029 # Broken: success on invalid input.
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 # Passes both tests.
3039 rm -f conftest.err conftest.$ac_ext
3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3043 rm -f conftest.err conftest.$ac_ext
3044 if $ac_preproc_ok; then
3056 echo "$as_me:$LINENO: result: $CPP" >&5
3057 echo "${ECHO_T}$CPP" >&6
3059 for ac_c_preproc_warn_flag in '' yes
3061 # Use a header file that comes with gcc, so configuring glibc
3062 # with a fresh cross-compiler works.
3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3064 # <limits.h> exists even on freestanding compilers.
3065 # On the NeXT, cc -E runs the code through the compiler's parser,
3066 # not just through cpp. "Syntax error" is here to catch this case.
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3074 # include <limits.h>
3076 # include <assert.h>
3080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } >/dev/null; then
3088 if test -s conftest.err; then
3089 ac_cpp_err=$ac_c_preproc_warn_flag
3090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097 if test -z "$ac_cpp_err"; then
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 # Broken: fails on valid input.
3106 rm -f conftest.err conftest.$ac_ext
3108 # OK, works on sane cases. Now check whether non-existent headers
3109 # can be detected and how.
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 #include <ac_nonexistent.h>
3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3121 grep -v '^ *+' conftest.er1 >conftest.err
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } >/dev/null; then
3126 if test -s conftest.err; then
3127 ac_cpp_err=$ac_c_preproc_warn_flag
3128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3135 if test -z "$ac_cpp_err"; then
3136 # Broken: success on invalid input.
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 # Passes both tests.
3146 rm -f conftest.err conftest.$ac_ext
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.$ac_ext
3151 if $ac_preproc_ok; then
3154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." >&2;}
3158 { (exit 1); exit 1; }; }
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168 echo "$as_me:$LINENO: checking for egrep" >&5
3169 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3170 if test "${ac_cv_prog_egrep+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3174 then ac_cv_prog_egrep='grep -E'
3175 else ac_cv_prog_egrep='egrep'
3178 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3179 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3180 EGREP=$ac_cv_prog_egrep
3183 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3184 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3185 if test "${ac_cv_header_stdc+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 cat >conftest.$ac_ext <<_ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3207 rm -f conftest.$ac_objext
3208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209 (eval $ac_compile) 2>conftest.er1
3211 grep -v '^ *+' conftest.er1 >conftest.err
3213 cat conftest.err >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); } &&
3216 { ac_try='test -z "$ac_c_werror_flag"
3217 || test ! -s conftest.err'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; } &&
3223 { ac_try='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 ac_cv_header_stdc=yes
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 ac_cv_header_stdc=no
3236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3238 if test $ac_cv_header_stdc = yes; then
3239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3240 cat >conftest.$ac_ext <<_ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3250 $EGREP "memchr" >/dev/null 2>&1; then
3253 ac_cv_header_stdc=no
3259 if test $ac_cv_header_stdc = yes; then
3260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271 $EGREP "free" >/dev/null 2>&1; then
3274 ac_cv_header_stdc=no
3280 if test $ac_cv_header_stdc = yes; then
3281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3282 if test "$cross_compiling" = yes; then
3285 cat >conftest.$ac_ext <<_ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3292 #if ((' ' & 0x0FF) == 0x020)
3293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3296 # define ISLOWER(c) \
3297 (('a' <= (c) && (c) <= 'i') \
3298 || ('j' <= (c) && (c) <= 'r') \
3299 || ('s' <= (c) && (c) <= 'z'))
3300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3308 for (i = 0; i < 256; i++)
3309 if (XOR (islower (i), ISLOWER (i))
3310 || toupper (i) != TOUPPER (i))
3315 rm -f conftest$ac_exeext
3316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3317 (eval $ac_link) 2>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3328 echo "$as_me: program exited with status $ac_status" >&5
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3333 ac_cv_header_stdc=no
3335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3339 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3340 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3341 if test $ac_cv_header_stdc = yes; then
3343 cat >>confdefs.h <<\_ACEOF
3344 #define STDC_HEADERS 1
3349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3360 inttypes.h stdint.h unistd.h
3362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3363 echo "$as_me:$LINENO: checking for $ac_header" >&5
3364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 cat >conftest.$ac_ext <<_ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 $ac_includes_default
3376 #include <$ac_header>
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -z "$ac_c_werror_flag"
3388 || test ! -s conftest.err'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; } &&
3394 { ac_try='test -s conftest.$ac_objext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 eval "$as_ac_Header=yes"
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 eval "$as_ac_Header=no"
3407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3412 cat >>confdefs.h <<_ACEOF
3413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3422 if test "${ac_cv_header_minix_config_h+set}" = set; then
3423 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3424 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3425 if test "${ac_cv_header_minix_config_h+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3429 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3431 # Is the header compilable?
3432 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3433 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 $ac_includes_default
3441 #include <minix/config.h>
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_c_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 ac_header_compiler=yes
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 ac_header_compiler=no
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3474 echo "${ECHO_T}$ac_header_compiler" >&6
3476 # Is the header present?
3477 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3478 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3479 cat >conftest.$ac_ext <<_ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3485 #include <minix/config.h>
3487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3490 grep -v '^ *+' conftest.er1 >conftest.err
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev/null; then
3495 if test -s conftest.err; then
3496 ac_cpp_err=$ac_c_preproc_warn_flag
3497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3504 if test -z "$ac_cpp_err"; then
3505 ac_header_preproc=yes
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 ac_header_preproc=no
3512 rm -f conftest.err conftest.$ac_ext
3513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3514 echo "${ECHO_T}$ac_header_preproc" >&6
3516 # So? What about this header?
3517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3519 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3520 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3521 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3522 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3523 ac_header_preproc=yes
3526 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3527 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3528 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3529 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3530 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3531 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3532 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3533 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3534 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3535 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3536 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3537 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3540 ## ------------------------------------------ ##
3541 ## Report this to the AC_PACKAGE_NAME lists. ##
3542 ## ------------------------------------------ ##
3545 sed "s/^/$as_me: WARNING: /" >&2
3548 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3549 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3550 if test "${ac_cv_header_minix_config_h+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 ac_cv_header_minix_config_h=$ac_header_preproc
3555 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3556 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3559 if test $ac_cv_header_minix_config_h = yes; then
3566 if test "$MINIX" = yes; then
3568 cat >>confdefs.h <<\_ACEOF
3569 #define _POSIX_SOURCE 1
3573 cat >>confdefs.h <<\_ACEOF
3574 #define _POSIX_1_SOURCE 2
3578 cat >>confdefs.h <<\_ACEOF
3586 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3587 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3588 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3598 # define __EXTENSIONS__ 1
3599 $ac_includes_default
3608 rm -f conftest.$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>conftest.er1
3612 grep -v '^ *+' conftest.er1 >conftest.err
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -z "$ac_c_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 ac_cv_safe_to_define___extensions__=yes
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ac_cv_safe_to_define___extensions__=no
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3639 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3640 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3641 test $ac_cv_safe_to_define___extensions__ = yes &&
3642 cat >>confdefs.h <<\_ACEOF
3643 #define __EXTENSIONS__ 1
3646 cat >>confdefs.h <<\_ACEOF
3647 #define _ALL_SOURCE 1
3650 cat >>confdefs.h <<\_ACEOF
3651 #define _GNU_SOURCE 1
3654 cat >>confdefs.h <<\_ACEOF
3655 #define _POSIX_PTHREAD_SEMANTICS 1
3658 cat >>confdefs.h <<\_ACEOF
3659 #define _TANDEM_SOURCE 1
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3669 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3670 # On Suns, sometimes $CPP names a directory.
3671 if test -n "$CPP" && test -d "$CPP"; then
3674 if test -z "$CPP"; then
3675 if test "${ac_cv_prog_CPP+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 # Double quotes because CPP needs to be expanded
3679 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3682 for ac_c_preproc_warn_flag in '' yes
3684 # Use a header file that comes with gcc, so configuring glibc
3685 # with a fresh cross-compiler works.
3686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3687 # <limits.h> exists even on freestanding compilers.
3688 # On the NeXT, cc -E runs the code through the compiler's parser,
3689 # not just through cpp. "Syntax error" is here to catch this case.
3690 cat >conftest.$ac_ext <<_ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3697 # include <limits.h>
3699 # include <assert.h>
3703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } >/dev/null; then
3711 if test -s conftest.err; then
3712 ac_cpp_err=$ac_c_preproc_warn_flag
3713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3720 if test -z "$ac_cpp_err"; then
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3726 # Broken: fails on valid input.
3729 rm -f conftest.err conftest.$ac_ext
3731 # OK, works on sane cases. Now check whether non-existent headers
3732 # can be detected and how.
3733 cat >conftest.$ac_ext <<_ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3739 #include <ac_nonexistent.h>
3741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3744 grep -v '^ *+' conftest.er1 >conftest.err
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } >/dev/null; then
3749 if test -s conftest.err; then
3750 ac_cpp_err=$ac_c_preproc_warn_flag
3751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3758 if test -z "$ac_cpp_err"; then
3759 # Broken: success on invalid input.
3762 echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3765 # Passes both tests.
3769 rm -f conftest.err conftest.$ac_ext
3772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3773 rm -f conftest.err conftest.$ac_ext
3774 if $ac_preproc_ok; then
3786 echo "$as_me:$LINENO: result: $CPP" >&5
3787 echo "${ECHO_T}$CPP" >&6
3789 for ac_c_preproc_warn_flag in '' yes
3791 # Use a header file that comes with gcc, so configuring glibc
3792 # with a fresh cross-compiler works.
3793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3794 # <limits.h> exists even on freestanding compilers.
3795 # On the NeXT, cc -E runs the code through the compiler's parser,
3796 # not just through cpp. "Syntax error" is here to catch this case.
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3804 # include <limits.h>
3806 # include <assert.h>
3810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3813 grep -v '^ *+' conftest.er1 >conftest.err
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } >/dev/null; then
3818 if test -s conftest.err; then
3819 ac_cpp_err=$ac_c_preproc_warn_flag
3820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3827 if test -z "$ac_cpp_err"; then
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3833 # Broken: fails on valid input.
3836 rm -f conftest.err conftest.$ac_ext
3838 # OK, works on sane cases. Now check whether non-existent headers
3839 # can be detected and how.
3840 cat >conftest.$ac_ext <<_ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 #include <ac_nonexistent.h>
3848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3851 grep -v '^ *+' conftest.er1 >conftest.err
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } >/dev/null; then
3856 if test -s conftest.err; then
3857 ac_cpp_err=$ac_c_preproc_warn_flag
3858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3865 if test -z "$ac_cpp_err"; then
3866 # Broken: success on invalid input.
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 # Passes both tests.
3876 rm -f conftest.err conftest.$ac_ext
3879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3880 rm -f conftest.err conftest.$ac_ext
3881 if $ac_preproc_ok; then
3884 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details." >&5
3886 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3887 See \`config.log' for more details." >&2;}
3888 { (exit 1); exit 1; }; }
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897 echo "$as_me:$LINENO: checking for inline" >&5
3898 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3899 if test "${ac_cv_c_inline+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 for ac_kw in inline __inline__ __inline; do
3904 cat >conftest.$ac_ext <<_ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3912 static $ac_kw foo_t static_foo () {return 0; }
3913 $ac_kw foo_t foo () {return 0; }
3917 rm -f conftest.$ac_objext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919 (eval $ac_compile) 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -z "$ac_c_werror_flag"
3927 || test ! -s conftest.err'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; } &&
3933 { ac_try='test -s conftest.$ac_objext'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3939 ac_cv_c_inline=$ac_kw; break
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3949 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3950 echo "${ECHO_T}$ac_cv_c_inline" >&6
3953 case $ac_cv_c_inline in
3956 case $ac_cv_c_inline in
3958 *) ac_val=$ac_cv_c_inline;;
3960 cat >>confdefs.h <<_ACEOF
3962 #define inline $ac_val
3969 # sizeof(char) is 1 by definition.
3970 echo "$as_me:$LINENO: checking for void *" >&5
3971 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3972 if test "${ac_cv_type_void_p+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 $ac_includes_default
3987 if (sizeof (void *))
3993 rm -f conftest.$ac_objext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995 (eval $ac_compile) 2>conftest.er1
3997 grep -v '^ *+' conftest.er1 >conftest.err
3999 cat conftest.err >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try='test -z "$ac_c_werror_flag"
4003 || test ! -s conftest.err'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; } &&
4009 { ac_try='test -s conftest.$ac_objext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 ac_cv_type_void_p=yes
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 ac_cv_type_void_p=no
4022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4024 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4025 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4027 echo "$as_me:$LINENO: checking size of void *" >&5
4028 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4029 if test "${ac_cv_sizeof_void_p+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 if test "$ac_cv_type_void_p" = yes; then
4033 # The cast to unsigned long works around a bug in the HP C Compiler
4034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4036 # This bug is HP SR number 8606223364.
4037 if test "$cross_compiling" = yes; then
4038 # Depending upon the size, compute the lo and hi bounds.
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 $ac_includes_default
4049 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
4060 grep -v '^ *+' conftest.er1 >conftest.err
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4080 cat >conftest.$ac_ext <<_ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4086 $ac_includes_default
4090 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4097 rm -f conftest.$ac_objext
4098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4099 (eval $ac_compile) 2>conftest.er1
4101 grep -v '^ *+' conftest.er1 >conftest.err
4103 cat conftest.err >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } &&
4106 { ac_try='test -z "$ac_c_werror_flag"
4107 || test ! -s conftest.err'
4108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; } &&
4113 { ac_try='test -s conftest.$ac_objext'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4119 ac_hi=$ac_mid; break
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 ac_lo=`expr $ac_mid + 1`
4125 if test $ac_lo -le $ac_mid; then
4129 ac_mid=`expr 2 '*' $ac_mid + 1`
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4137 cat >conftest.$ac_ext <<_ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 $ac_includes_default
4147 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4154 rm -f conftest.$ac_objext
4155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156 (eval $ac_compile) 2>conftest.er1
4158 grep -v '^ *+' conftest.er1 >conftest.err
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -z "$ac_c_werror_flag"
4164 || test ! -s conftest.err'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; } &&
4170 { ac_try='test -s conftest.$ac_objext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4178 cat >conftest.$ac_ext <<_ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4184 $ac_includes_default
4188 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4195 rm -f conftest.$ac_objext
4196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197 (eval $ac_compile) 2>conftest.er1
4199 grep -v '^ *+' conftest.er1 >conftest.err
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -z "$ac_c_werror_flag"
4205 || test ! -s conftest.err'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; } &&
4211 { ac_try='test -s conftest.$ac_objext'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4217 ac_lo=$ac_mid; break
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 ac_hi=`expr '(' $ac_mid ')' - 1`
4223 if test $ac_mid -le $ac_hi; then
4227 ac_mid=`expr 2 '*' $ac_mid`
4229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4232 echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4240 # Binary search between lo and hi bounds.
4241 while test "x$ac_lo" != "x$ac_hi"; do
4242 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4243 cat >conftest.$ac_ext <<_ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 $ac_includes_default
4253 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4260 rm -f conftest.$ac_objext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4262 (eval $ac_compile) 2>conftest.er1
4264 grep -v '^ *+' conftest.er1 >conftest.err
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -z "$ac_c_werror_flag"
4270 || test ! -s conftest.err'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; } &&
4276 { ac_try='test -s conftest.$ac_objext'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4287 ac_lo=`expr '(' $ac_mid ')' + 1`
4289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4292 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4293 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4294 See \`config.log' for more details." >&5
4295 echo "$as_me: error: cannot compute sizeof (void *), 77
4296 See \`config.log' for more details." >&2;}
4297 { (exit 1); exit 1; }; } ;;
4300 if test "$cross_compiling" = yes; then
4301 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4302 See \`config.log' for more details." >&5
4303 echo "$as_me: error: cannot run test program while cross compiling
4304 See \`config.log' for more details." >&2;}
4305 { (exit 1); exit 1; }; }
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 $ac_includes_default
4314 long longval () { return (long) (sizeof (void *)); }
4315 unsigned long ulongval () { return (long) (sizeof (void *)); }
4322 FILE *f = fopen ("conftest.val", "w");
4325 if (((long) (sizeof (void *))) < 0)
4327 long i = longval ();
4328 if (i != ((long) (sizeof (void *))))
4330 fprintf (f, "%ld\n", i);
4334 unsigned long i = ulongval ();
4335 if (i != ((long) (sizeof (void *))))
4337 fprintf (f, "%lu\n", i);
4339 exit (ferror (f) || fclose (f) != 0);
4345 rm -f conftest$ac_exeext
4346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4347 (eval $ac_link) 2>&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 ac_cv_sizeof_void_p=`cat conftest.val`
4358 echo "$as_me: program exited with status $ac_status" >&5
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4363 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4364 See \`config.log' for more details." >&5
4365 echo "$as_me: error: cannot compute sizeof (void *), 77
4366 See \`config.log' for more details." >&2;}
4367 { (exit 1); exit 1; }; }
4369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4374 ac_cv_sizeof_void_p=0
4377 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4378 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4379 cat >>confdefs.h <<_ACEOF
4380 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4384 echo "$as_me:$LINENO: checking for short" >&5
4385 echo $ECHO_N "checking for short... $ECHO_C" >&6
4386 if test "${ac_cv_type_short+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 cat >conftest.$ac_ext <<_ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4395 $ac_includes_default
4407 rm -f conftest.$ac_objext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409 (eval $ac_compile) 2>conftest.er1
4411 grep -v '^ *+' conftest.er1 >conftest.err
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
4416 { ac_try='test -z "$ac_c_werror_flag"
4417 || test ! -s conftest.err'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 ac_cv_type_short=yes
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4438 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4439 echo "${ECHO_T}$ac_cv_type_short" >&6
4441 echo "$as_me:$LINENO: checking size of short" >&5
4442 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4443 if test "${ac_cv_sizeof_short+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 if test "$ac_cv_type_short" = yes; then
4447 # The cast to unsigned long works around a bug in the HP C Compiler
4448 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4449 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4450 # This bug is HP SR number 8606223364.
4451 if test "$cross_compiling" = yes; then
4452 # Depending upon the size, compute the lo and hi bounds.
4453 cat >conftest.$ac_ext <<_ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h. */
4459 $ac_includes_default
4463 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4470 rm -f conftest.$ac_objext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472 (eval $ac_compile) 2>conftest.er1
4474 grep -v '^ *+' conftest.er1 >conftest.err
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try='test -z "$ac_c_werror_flag"
4480 || test ! -s conftest.err'
4481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; } &&
4486 { ac_try='test -s conftest.$ac_objext'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4494 cat >conftest.$ac_ext <<_ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h. */
4500 $ac_includes_default
4504 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4511 rm -f conftest.$ac_objext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4513 (eval $ac_compile) 2>conftest.er1
4515 grep -v '^ *+' conftest.er1 >conftest.err
4517 cat conftest.err >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try='test -z "$ac_c_werror_flag"
4521 || test ! -s conftest.err'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; } &&
4527 { ac_try='test -s conftest.$ac_objext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 ac_hi=$ac_mid; break
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4538 ac_lo=`expr $ac_mid + 1`
4539 if test $ac_lo -le $ac_mid; then
4543 ac_mid=`expr 2 '*' $ac_mid + 1`
4545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4551 cat >conftest.$ac_ext <<_ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 $ac_includes_default
4561 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>conftest.er1
4572 grep -v '^ *+' conftest.er1 >conftest.err
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } &&
4577 { ac_try='test -z "$ac_c_werror_flag"
4578 || test ! -s conftest.err'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; } &&
4584 { ac_try='test -s conftest.$ac_objext'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4592 cat >conftest.$ac_ext <<_ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 $ac_includes_default
4602 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>conftest.er1
4613 grep -v '^ *+' conftest.er1 >conftest.err
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -z "$ac_c_werror_flag"
4619 || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest.$ac_objext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 ac_lo=$ac_mid; break
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 ac_hi=`expr '(' $ac_mid ')' - 1`
4637 if test $ac_mid -le $ac_hi; then
4641 ac_mid=`expr 2 '*' $ac_mid`
4643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4654 # Binary search between lo and hi bounds.
4655 while test "x$ac_lo" != "x$ac_hi"; do
4656 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4657 cat >conftest.$ac_ext <<_ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 $ac_includes_default
4667 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4674 rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676 (eval $ac_compile) 2>conftest.er1
4678 grep -v '^ *+' conftest.er1 >conftest.err
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try='test -z "$ac_c_werror_flag"
4684 || test ! -s conftest.err'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; } &&
4690 { ac_try='test -s conftest.$ac_objext'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 ac_lo=`expr '(' $ac_mid ')' + 1`
4703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4706 ?*) ac_cv_sizeof_short=$ac_lo;;
4707 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4708 See \`config.log' for more details." >&5
4709 echo "$as_me: error: cannot compute sizeof (short), 77
4710 See \`config.log' for more details." >&2;}
4711 { (exit 1); exit 1; }; } ;;
4714 if test "$cross_compiling" = yes; then
4715 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4716 See \`config.log' for more details." >&5
4717 echo "$as_me: error: cannot run test program while cross compiling
4718 See \`config.log' for more details." >&2;}
4719 { (exit 1); exit 1; }; }
4721 cat >conftest.$ac_ext <<_ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 $ac_includes_default
4728 long longval () { return (long) (sizeof (short)); }
4729 unsigned long ulongval () { return (long) (sizeof (short)); }
4736 FILE *f = fopen ("conftest.val", "w");
4739 if (((long) (sizeof (short))) < 0)
4741 long i = longval ();
4742 if (i != ((long) (sizeof (short))))
4744 fprintf (f, "%ld\n", i);
4748 unsigned long i = ulongval ();
4749 if (i != ((long) (sizeof (short))))
4751 fprintf (f, "%lu\n", i);
4753 exit (ferror (f) || fclose (f) != 0);
4759 rm -f conftest$ac_exeext
4760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4761 (eval $ac_link) 2>&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; }; then
4770 ac_cv_sizeof_short=`cat conftest.val`
4772 echo "$as_me: program exited with status $ac_status" >&5
4773 echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4777 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4778 See \`config.log' for more details." >&5
4779 echo "$as_me: error: cannot compute sizeof (short), 77
4780 See \`config.log' for more details." >&2;}
4781 { (exit 1); exit 1; }; }
4783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4788 ac_cv_sizeof_short=0
4791 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4792 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4793 cat >>confdefs.h <<_ACEOF
4794 #define SIZEOF_SHORT $ac_cv_sizeof_short
4798 echo "$as_me:$LINENO: checking for int" >&5
4799 echo $ECHO_N "checking for int... $ECHO_C" >&6
4800 if test "${ac_cv_type_int+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 cat >conftest.$ac_ext <<_ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4809 $ac_includes_default
4821 rm -f conftest.$ac_objext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823 (eval $ac_compile) 2>conftest.er1
4825 grep -v '^ *+' conftest.er1 >conftest.err
4827 cat conftest.err >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } &&
4830 { ac_try='test -z "$ac_c_werror_flag"
4831 || test ! -s conftest.err'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; } &&
4837 { ac_try='test -s conftest.$ac_objext'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4852 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4853 echo "${ECHO_T}$ac_cv_type_int" >&6
4855 echo "$as_me:$LINENO: checking size of int" >&5
4856 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4857 if test "${ac_cv_sizeof_int+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test "$ac_cv_type_int" = yes; then
4861 # The cast to unsigned long works around a bug in the HP C Compiler
4862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4864 # This bug is HP SR number 8606223364.
4865 if test "$cross_compiling" = yes; then
4866 # Depending upon the size, compute the lo and hi bounds.
4867 cat >conftest.$ac_ext <<_ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 $ac_includes_default
4877 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4884 rm -f conftest.$ac_objext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try='test -z "$ac_c_werror_flag"
4894 || test ! -s conftest.err'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try='test -s conftest.$ac_objext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4908 cat >conftest.$ac_ext <<_ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 $ac_includes_default
4918 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4925 rm -f conftest.$ac_objext
4926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4927 (eval $ac_compile) 2>conftest.er1
4929 grep -v '^ *+' conftest.er1 >conftest.err
4931 cat conftest.err >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try='test -z "$ac_c_werror_flag"
4935 || test ! -s conftest.err'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; } &&
4941 { ac_try='test -s conftest.$ac_objext'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4947 ac_hi=$ac_mid; break
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4952 ac_lo=`expr $ac_mid + 1`
4953 if test $ac_lo -le $ac_mid; then
4957 ac_mid=`expr 2 '*' $ac_mid + 1`
4959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4965 cat >conftest.$ac_ext <<_ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 $ac_includes_default
4975 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>conftest.er1
4986 grep -v '^ *+' conftest.er1 >conftest.err
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } &&
4991 { ac_try='test -z "$ac_c_werror_flag"
4992 || test ! -s conftest.err'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; } &&
4998 { ac_try='test -s conftest.$ac_objext'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5006 cat >conftest.$ac_ext <<_ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012 $ac_includes_default
5016 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>conftest.er1
5027 grep -v '^ *+' conftest.er1 >conftest.err
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -z "$ac_c_werror_flag"
5033 || test ! -s conftest.err'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; } &&
5039 { ac_try='test -s conftest.$ac_objext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_lo=$ac_mid; break
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5050 ac_hi=`expr '(' $ac_mid ')' - 1`
5051 if test $ac_mid -le $ac_hi; then
5055 ac_mid=`expr 2 '*' $ac_mid`
5057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068 # Binary search between lo and hi bounds.
5069 while test "x$ac_lo" != "x$ac_hi"; do
5070 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5071 cat >conftest.$ac_ext <<_ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 $ac_includes_default
5081 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5088 rm -f conftest.$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>conftest.er1
5092 grep -v '^ *+' conftest.er1 >conftest.err
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try='test -z "$ac_c_werror_flag"
5098 || test ! -s conftest.err'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; } &&
5104 { ac_try='test -s conftest.$ac_objext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5115 ac_lo=`expr '(' $ac_mid ')' + 1`
5117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5120 ?*) ac_cv_sizeof_int=$ac_lo;;
5121 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5122 See \`config.log' for more details." >&5
5123 echo "$as_me: error: cannot compute sizeof (int), 77
5124 See \`config.log' for more details." >&2;}
5125 { (exit 1); exit 1; }; } ;;
5128 if test "$cross_compiling" = yes; then
5129 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5130 See \`config.log' for more details." >&5
5131 echo "$as_me: error: cannot run test program while cross compiling
5132 See \`config.log' for more details." >&2;}
5133 { (exit 1); exit 1; }; }
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 $ac_includes_default
5142 long longval () { return (long) (sizeof (int)); }
5143 unsigned long ulongval () { return (long) (sizeof (int)); }
5150 FILE *f = fopen ("conftest.val", "w");
5153 if (((long) (sizeof (int))) < 0)
5155 long i = longval ();
5156 if (i != ((long) (sizeof (int))))
5158 fprintf (f, "%ld\n", i);
5162 unsigned long i = ulongval ();
5163 if (i != ((long) (sizeof (int))))
5165 fprintf (f, "%lu\n", i);
5167 exit (ferror (f) || fclose (f) != 0);
5173 rm -f conftest$ac_exeext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5175 (eval $ac_link) 2>&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 ac_cv_sizeof_int=`cat conftest.val`
5186 echo "$as_me: program exited with status $ac_status" >&5
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5191 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5192 See \`config.log' for more details." >&5
5193 echo "$as_me: error: cannot compute sizeof (int), 77
5194 See \`config.log' for more details." >&2;}
5195 { (exit 1); exit 1; }; }
5197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5205 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5206 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5207 cat >>confdefs.h <<_ACEOF
5208 #define SIZEOF_INT $ac_cv_sizeof_int
5212 echo "$as_me:$LINENO: checking for long" >&5
5213 echo $ECHO_N "checking for long... $ECHO_C" >&6
5214 if test "${ac_cv_type_long+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 cat >conftest.$ac_ext <<_ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 $ac_includes_default
5235 rm -f conftest.$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237 (eval $ac_compile) 2>conftest.er1
5239 grep -v '^ *+' conftest.er1 >conftest.err
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -z "$ac_c_werror_flag"
5245 || test ! -s conftest.err'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try='test -s conftest.$ac_objext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5266 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5267 echo "${ECHO_T}$ac_cv_type_long" >&6
5269 echo "$as_me:$LINENO: checking size of long" >&5
5270 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5271 if test "${ac_cv_sizeof_long+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 if test "$ac_cv_type_long" = yes; then
5275 # The cast to unsigned long works around a bug in the HP C Compiler
5276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5278 # This bug is HP SR number 8606223364.
5279 if test "$cross_compiling" = yes; then
5280 # Depending upon the size, compute the lo and hi bounds.
5281 cat >conftest.$ac_ext <<_ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5287 $ac_includes_default
5291 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>conftest.er1
5302 grep -v '^ *+' conftest.er1 >conftest.err
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5322 cat >conftest.$ac_ext <<_ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 $ac_includes_default
5332 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5339 rm -f conftest.$ac_objext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341 (eval $ac_compile) 2>conftest.er1
5343 grep -v '^ *+' conftest.er1 >conftest.err
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -z "$ac_c_werror_flag"
5349 || test ! -s conftest.err'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; } &&
5355 { ac_try='test -s conftest.$ac_objext'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; }; then
5361 ac_hi=$ac_mid; break
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 ac_lo=`expr $ac_mid + 1`
5367 if test $ac_lo -le $ac_mid; then
5371 ac_mid=`expr 2 '*' $ac_mid + 1`
5373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5379 cat >conftest.$ac_ext <<_ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 $ac_includes_default
5389 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>conftest.er1
5400 grep -v '^ *+' conftest.er1 >conftest.err
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try='test -z "$ac_c_werror_flag"
5406 || test ! -s conftest.err'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try='test -s conftest.$ac_objext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5420 cat >conftest.$ac_ext <<_ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 $ac_includes_default
5430 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5437 rm -f conftest.$ac_objext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439 (eval $ac_compile) 2>conftest.er1
5441 grep -v '^ *+' conftest.er1 >conftest.err
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try='test -z "$ac_c_werror_flag"
5447 || test ! -s conftest.err'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; } &&
5453 { ac_try='test -s conftest.$ac_objext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5459 ac_lo=$ac_mid; break
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 ac_hi=`expr '(' $ac_mid ')' - 1`
5465 if test $ac_mid -le $ac_hi; then
5469 ac_mid=`expr 2 '*' $ac_mid`
5471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5482 # Binary search between lo and hi bounds.
5483 while test "x$ac_lo" != "x$ac_hi"; do
5484 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5485 cat >conftest.$ac_ext <<_ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 $ac_includes_default
5495 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>conftest.er1
5506 grep -v '^ *+' conftest.er1 >conftest.err
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -z "$ac_c_werror_flag"
5512 || test ! -s conftest.err'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } &&
5518 { ac_try='test -s conftest.$ac_objext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5529 ac_lo=`expr '(' $ac_mid ')' + 1`
5531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5534 ?*) ac_cv_sizeof_long=$ac_lo;;
5535 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5536 See \`config.log' for more details." >&5
5537 echo "$as_me: error: cannot compute sizeof (long), 77
5538 See \`config.log' for more details." >&2;}
5539 { (exit 1); exit 1; }; } ;;
5542 if test "$cross_compiling" = yes; then
5543 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5544 See \`config.log' for more details." >&5
5545 echo "$as_me: error: cannot run test program while cross compiling
5546 See \`config.log' for more details." >&2;}
5547 { (exit 1); exit 1; }; }
5549 cat >conftest.$ac_ext <<_ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h. */
5555 $ac_includes_default
5556 long longval () { return (long) (sizeof (long)); }
5557 unsigned long ulongval () { return (long) (sizeof (long)); }
5564 FILE *f = fopen ("conftest.val", "w");
5567 if (((long) (sizeof (long))) < 0)
5569 long i = longval ();
5570 if (i != ((long) (sizeof (long))))
5572 fprintf (f, "%ld\n", i);
5576 unsigned long i = ulongval ();
5577 if (i != ((long) (sizeof (long))))
5579 fprintf (f, "%lu\n", i);
5581 exit (ferror (f) || fclose (f) != 0);
5587 rm -f conftest$ac_exeext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5589 (eval $ac_link) 2>&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_sizeof_long=`cat conftest.val`
5600 echo "$as_me: program exited with status $ac_status" >&5
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5606 See \`config.log' for more details." >&5
5607 echo "$as_me: error: cannot compute sizeof (long), 77
5608 See \`config.log' for more details." >&2;}
5609 { (exit 1); exit 1; }; }
5611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5619 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5620 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5621 cat >>confdefs.h <<_ACEOF
5622 #define SIZEOF_LONG $ac_cv_sizeof_long
5626 echo "$as_me:$LINENO: checking for long long" >&5
5627 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5628 if test "${ac_cv_type_long_long+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 cat >conftest.$ac_ext <<_ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 $ac_includes_default
5641 if ((long long *) 0)
5643 if (sizeof (long long))
5649 rm -f conftest.$ac_objext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651 (eval $ac_compile) 2>conftest.er1
5653 grep -v '^ *+' conftest.er1 >conftest.err
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try='test -z "$ac_c_werror_flag"
5659 || test ! -s conftest.err'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; } &&
5665 { ac_try='test -s conftest.$ac_objext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_type_long_long=yes
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 ac_cv_type_long_long=no
5678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5680 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5681 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5682 if test $ac_cv_type_long_long = yes; then
5684 cat >>confdefs.h <<_ACEOF
5685 #define HAVE_LONG_LONG 1
5688 echo "$as_me:$LINENO: checking for long long" >&5
5689 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5690 if test "${ac_cv_type_long_long+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 cat >conftest.$ac_ext <<_ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 $ac_includes_default
5703 if ((long long *) 0)
5705 if (sizeof (long long))
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>conftest.er1
5715 grep -v '^ *+' conftest.er1 >conftest.err
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try='test -z "$ac_c_werror_flag"
5721 || test ! -s conftest.err'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; } &&
5727 { ac_try='test -s conftest.$ac_objext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_type_long_long=yes
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5738 ac_cv_type_long_long=no
5740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5742 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5743 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5745 echo "$as_me:$LINENO: checking size of long long" >&5
5746 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5747 if test "${ac_cv_sizeof_long_long+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 if test "$ac_cv_type_long_long" = yes; then
5751 # The cast to unsigned long works around a bug in the HP C Compiler
5752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5754 # This bug is HP SR number 8606223364.
5755 if test "$cross_compiling" = yes; then
5756 # Depending upon the size, compute the lo and hi bounds.
5757 cat >conftest.$ac_ext <<_ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 $ac_includes_default
5767 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5774 rm -f conftest.$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>conftest.er1
5778 grep -v '^ *+' conftest.er1 >conftest.err
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try='test -z "$ac_c_werror_flag"
5784 || test ! -s conftest.err'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; } &&
5790 { ac_try='test -s conftest.$ac_objext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5798 cat >conftest.$ac_ext <<_ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5808 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817 (eval $ac_compile) 2>conftest.er1
5819 grep -v '^ *+' conftest.er1 >conftest.err
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -z "$ac_c_werror_flag"
5825 || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 ac_hi=$ac_mid; break
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 ac_lo=`expr $ac_mid + 1`
5843 if test $ac_lo -le $ac_mid; then
5847 ac_mid=`expr 2 '*' $ac_mid + 1`
5849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 cat >conftest.$ac_ext <<_ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 $ac_includes_default
5865 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5872 rm -f conftest.$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>conftest.er1
5876 grep -v '^ *+' conftest.er1 >conftest.err
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5896 cat >conftest.$ac_ext <<_ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5902 $ac_includes_default
5906 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5913 rm -f conftest.$ac_objext
5914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915 (eval $ac_compile) 2>conftest.er1
5917 grep -v '^ *+' conftest.er1 >conftest.err
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } &&
5922 { ac_try='test -z "$ac_c_werror_flag"
5923 || test ! -s conftest.err'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest.$ac_objext'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5935 ac_lo=$ac_mid; break
5937 echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5940 ac_hi=`expr '(' $ac_mid ')' - 1`
5941 if test $ac_mid -le $ac_hi; then
5945 ac_mid=`expr 2 '*' $ac_mid`
5947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958 # Binary search between lo and hi bounds.
5959 while test "x$ac_lo" != "x$ac_hi"; do
5960 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5961 cat >conftest.$ac_ext <<_ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5971 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5978 rm -f conftest.$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980 (eval $ac_compile) 2>conftest.er1
5982 grep -v '^ *+' conftest.er1 >conftest.err
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 ac_lo=`expr '(' $ac_mid ')' + 1`
6007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6010 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6011 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6012 See \`config.log' for more details." >&5
6013 echo "$as_me: error: cannot compute sizeof (long long), 77
6014 See \`config.log' for more details." >&2;}
6015 { (exit 1); exit 1; }; } ;;
6018 if test "$cross_compiling" = yes; then
6019 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6020 See \`config.log' for more details." >&5
6021 echo "$as_me: error: cannot run test program while cross compiling
6022 See \`config.log' for more details." >&2;}
6023 { (exit 1); exit 1; }; }
6025 cat >conftest.$ac_ext <<_ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 $ac_includes_default
6032 long longval () { return (long) (sizeof (long long)); }
6033 unsigned long ulongval () { return (long) (sizeof (long long)); }
6040 FILE *f = fopen ("conftest.val", "w");
6043 if (((long) (sizeof (long long))) < 0)
6045 long i = longval ();
6046 if (i != ((long) (sizeof (long long))))
6048 fprintf (f, "%ld\n", i);
6052 unsigned long i = ulongval ();
6053 if (i != ((long) (sizeof (long long))))
6055 fprintf (f, "%lu\n", i);
6057 exit (ferror (f) || fclose (f) != 0);
6063 rm -f conftest$ac_exeext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065 (eval $ac_link) 2>&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
6074 ac_cv_sizeof_long_long=`cat conftest.val`
6076 echo "$as_me: program exited with status $ac_status" >&5
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6082 See \`config.log' for more details." >&5
6083 echo "$as_me: error: cannot compute sizeof (long long), 77
6084 See \`config.log' for more details." >&2;}
6085 { (exit 1); exit 1; }; }
6087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6092 ac_cv_sizeof_long_long=0
6095 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6096 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6097 cat >>confdefs.h <<_ACEOF
6098 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6104 echo "$as_me:$LINENO: checking for __int64" >&5
6105 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6106 if test "${ac_cv_type___int64+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 cat >conftest.$ac_ext <<_ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 $ac_includes_default
6121 if (sizeof (__int64))
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129 (eval $ac_compile) 2>conftest.er1
6131 grep -v '^ *+' conftest.er1 >conftest.err
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try='test -z "$ac_c_werror_flag"
6137 || test ! -s conftest.err'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; } &&
6143 { ac_try='test -s conftest.$ac_objext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 ac_cv_type___int64=yes
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6154 ac_cv_type___int64=no
6156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6158 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6159 echo "${ECHO_T}$ac_cv_type___int64" >&6
6160 if test $ac_cv_type___int64 = yes; then
6162 cat >>confdefs.h <<_ACEOF
6163 #define HAVE___INT64 1
6166 echo "$as_me:$LINENO: checking for __int64" >&5
6167 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6168 if test "${ac_cv_type___int64+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 cat >conftest.$ac_ext <<_ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6177 $ac_includes_default
6183 if (sizeof (__int64))
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191 (eval $ac_compile) 2>conftest.er1
6193 grep -v '^ *+' conftest.er1 >conftest.err
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -z "$ac_c_werror_flag"
6199 || test ! -s conftest.err'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; } &&
6205 { ac_try='test -s conftest.$ac_objext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 ac_cv_type___int64=yes
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6216 ac_cv_type___int64=no
6218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6220 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6221 echo "${ECHO_T}$ac_cv_type___int64" >&6
6223 echo "$as_me:$LINENO: checking size of __int64" >&5
6224 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6225 if test "${ac_cv_sizeof___int64+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 if test "$ac_cv_type___int64" = yes; then
6229 # The cast to unsigned long works around a bug in the HP C Compiler
6230 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6231 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6232 # This bug is HP SR number 8606223364.
6233 if test "$cross_compiling" = yes; then
6234 # Depending upon the size, compute the lo and hi bounds.
6235 cat >conftest.$ac_ext <<_ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 $ac_includes_default
6245 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6252 rm -f conftest.$ac_objext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254 (eval $ac_compile) 2>conftest.er1
6256 grep -v '^ *+' conftest.er1 >conftest.err
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -z "$ac_c_werror_flag"
6262 || test ! -s conftest.err'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } &&
6268 { ac_try='test -s conftest.$ac_objext'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6276 cat >conftest.$ac_ext <<_ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 $ac_includes_default
6286 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6293 rm -f conftest.$ac_objext
6294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6295 (eval $ac_compile) 2>conftest.er1
6297 grep -v '^ *+' conftest.er1 >conftest.err
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try='test -z "$ac_c_werror_flag"
6303 || test ! -s conftest.err'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; } &&
6309 { ac_try='test -s conftest.$ac_objext'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6315 ac_hi=$ac_mid; break
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6320 ac_lo=`expr $ac_mid + 1`
6321 if test $ac_lo -le $ac_mid; then
6325 ac_mid=`expr 2 '*' $ac_mid + 1`
6327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6333 cat >conftest.$ac_ext <<_ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 $ac_includes_default
6343 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6350 rm -f conftest.$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352 (eval $ac_compile) 2>conftest.er1
6354 grep -v '^ *+' conftest.er1 >conftest.err
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try='test -z "$ac_c_werror_flag"
6360 || test ! -s conftest.err'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; } &&
6366 { ac_try='test -s conftest.$ac_objext'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; }; then
6374 cat >conftest.$ac_ext <<_ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 $ac_includes_default
6384 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6391 rm -f conftest.$ac_objext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393 (eval $ac_compile) 2>conftest.er1
6395 grep -v '^ *+' conftest.er1 >conftest.err
6397 cat conftest.err >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } &&
6400 { ac_try='test -z "$ac_c_werror_flag"
6401 || test ! -s conftest.err'
6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; } &&
6407 { ac_try='test -s conftest.$ac_objext'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6413 ac_lo=$ac_mid; break
6415 echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6418 ac_hi=`expr '(' $ac_mid ')' - 1`
6419 if test $ac_mid -le $ac_hi; then
6423 ac_mid=`expr 2 '*' $ac_mid`
6425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6436 # Binary search between lo and hi bounds.
6437 while test "x$ac_lo" != "x$ac_hi"; do
6438 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6439 cat >conftest.$ac_ext <<_ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6445 $ac_includes_default
6449 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>conftest.er1
6460 grep -v '^ *+' conftest.er1 >conftest.err
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try='test -z "$ac_c_werror_flag"
6466 || test ! -s conftest.err'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; } &&
6472 { ac_try='test -s conftest.$ac_objext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6483 ac_lo=`expr '(' $ac_mid ')' + 1`
6485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6488 ?*) ac_cv_sizeof___int64=$ac_lo;;
6489 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6490 See \`config.log' for more details." >&5
6491 echo "$as_me: error: cannot compute sizeof (__int64), 77
6492 See \`config.log' for more details." >&2;}
6493 { (exit 1); exit 1; }; } ;;
6496 if test "$cross_compiling" = yes; then
6497 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6498 See \`config.log' for more details." >&5
6499 echo "$as_me: error: cannot run test program while cross compiling
6500 See \`config.log' for more details." >&2;}
6501 { (exit 1); exit 1; }; }
6503 cat >conftest.$ac_ext <<_ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 $ac_includes_default
6510 long longval () { return (long) (sizeof (__int64)); }
6511 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6518 FILE *f = fopen ("conftest.val", "w");
6521 if (((long) (sizeof (__int64))) < 0)
6523 long i = longval ();
6524 if (i != ((long) (sizeof (__int64))))
6526 fprintf (f, "%ld\n", i);
6530 unsigned long i = ulongval ();
6531 if (i != ((long) (sizeof (__int64))))
6533 fprintf (f, "%lu\n", i);
6535 exit (ferror (f) || fclose (f) != 0);
6541 rm -f conftest$ac_exeext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6543 (eval $ac_link) 2>&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }; then
6552 ac_cv_sizeof___int64=`cat conftest.val`
6554 echo "$as_me: program exited with status $ac_status" >&5
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6559 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6560 See \`config.log' for more details." >&5
6561 echo "$as_me: error: cannot compute sizeof (__int64), 77
6562 See \`config.log' for more details." >&2;}
6563 { (exit 1); exit 1; }; }
6565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6570 ac_cv_sizeof___int64=0
6573 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6574 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6575 cat >>confdefs.h <<_ACEOF
6576 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6583 # ---------------------
6584 # Warnings and checking
6585 # ---------------------
6587 # Check $CC warning features (if it's GCC).
6588 # We want to use -pedantic, but we don't want warnings about
6591 # * overlong strings
6592 # So, we only use -pedantic if we can disable those warnings.
6595 save_CFLAGS="$CFLAGS"
6596 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6597 -Wmissing-prototypes; do
6598 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6600 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6601 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6602 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 cat >conftest.$ac_ext <<_ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h. */
6621 rm -f conftest.$ac_objext
6622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6623 (eval $ac_compile) 2>conftest.er1
6625 grep -v '^ *+' conftest.er1 >conftest.err
6627 cat conftest.err >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } &&
6630 { ac_try='test -z "$ac_c_werror_flag"
6631 || test ! -s conftest.err'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; } &&
6637 { ac_try='test -s conftest.$ac_objext'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }; then
6643 eval "$as_acx_Woption=yes"
6645 echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6648 eval "$as_acx_Woption=no"
6650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6653 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6654 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6655 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6656 loose_warn="$loose_warn${loose_warn:+ }$option"
6660 CFLAGS="$save_CFLAGS"
6663 save_CFLAGS="$CFLAGS"
6664 for option in -Wc++-compat; do
6665 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6667 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6668 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6669 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 cat >conftest.$ac_ext <<_ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6688 rm -f conftest.$ac_objext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690 (eval $ac_compile) 2>conftest.er1
6692 grep -v '^ *+' conftest.er1 >conftest.err
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try='test -z "$ac_c_werror_flag"
6698 || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try='test -s conftest.$ac_objext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 eval "$as_acx_Woption=yes"
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 eval "$as_acx_Woption=no"
6717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6720 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6721 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6722 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6723 cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6727 CFLAGS="$save_CFLAGS"
6730 save_CFLAGS="$CFLAGS"
6731 for option in -Wold-style-definition \
6732 -Wmissing-format-attribute; do
6733 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6735 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6736 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6737 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 cat >conftest.$ac_ext <<_ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h. */
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6760 grep -v '^ *+' conftest.er1 >conftest.err
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 eval "$as_acx_Woption=yes"
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 eval "$as_acx_Woption=no"
6785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6788 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6789 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6790 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6791 strict_warn="$strict_warn${strict_warn:+ }$option"
6795 CFLAGS="$save_CFLAGS"
6797 if test "$GCC" = yes; then
6798 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6799 -Wno-overlength-strings" >&5
6800 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6801 -Wno-overlength-strings... $ECHO_C" >&6
6802 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 save_CFLAGS="$CFLAGS"
6806 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
6807 -Wno-overlength-strings"
6808 cat >conftest.$ac_ext <<_ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6823 rm -f conftest.$ac_objext
6824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6825 (eval $ac_compile) 2>conftest.er1
6827 grep -v '^ *+' conftest.er1 >conftest.err
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } &&
6832 { ac_try='test -z "$ac_c_werror_flag"
6833 || test ! -s conftest.err'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; } &&
6839 { ac_try='test -s conftest.$ac_objext'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; }; then
6845 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6850 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
6852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6853 CFLAGS="$save_CFLAGS"
6855 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
6856 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
6857 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
6858 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
6859 -Wno-overlength-strings"
6866 # Check whether --enable-werror-always or --disable-werror-always was given.
6867 if test "${enable_werror_always+set}" = set; then
6868 enableval="$enable_werror_always"
6871 enable_werror_always=no
6873 if test $enable_werror_always = yes; then
6874 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6880 # The above macros do nothing if the compiler is not GCC. However, the
6881 # Makefile has more goo to add other flags, so this variabl is used to
6882 # enables warnings only for GCC.
6884 if test "x$GCC" = "xyes"; then
6885 warn_cflags='$(GCC_WARN_CFLAGS)'
6889 # Enable expensive internal checks
6891 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6895 # Check whether --enable-checking or --disable-checking was given.
6896 if test "${enable_checking+set}" = set; then
6897 enableval="$enable_checking"
6898 ac_checking_flags="${enableval}"
6901 # Determine the default checks.
6902 if test x$is_release = x ; then
6903 ac_checking_flags=yes
6905 ac_checking_flags=release
6908 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6909 for check in release $ac_checking_flags
6912 # these set all the flags to specific states
6913 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6914 ac_fold_checking= ; ac_gc_checking=1 ;
6915 ac_gc_always_collect= ; ac_rtl_checking= ;
6916 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6917 ac_tree_checking=1 ; ac_valgrind_checking= ;
6918 ac_types_checking=1 ;;
6919 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6920 ac_fold_checking= ; ac_gc_checking= ;
6921 ac_gc_always_collect= ; ac_rtl_checking= ;
6922 ac_rtlflag_checking= ; ac_runtime_checking= ;
6923 ac_tree_checking= ; ac_valgrind_checking= ;
6924 ac_types_checking= ;;
6925 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6926 ac_fold_checking=1 ; ac_gc_checking=1 ;
6927 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6928 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6929 ac_tree_checking=1 ; ac_valgrind_checking= ;
6930 ac_types_checking=1 ;;
6931 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6932 ac_fold_checking= ; ac_gc_checking= ;
6933 ac_gc_always_collect= ; ac_rtl_checking= ;
6934 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6935 ac_tree_checking= ; ac_valgrind_checking= ;
6936 ac_types_checking= ;;
6937 # these enable particular checks
6938 assert) ac_assert_checking=1 ;;
6939 df) ac_df_checking=1 ;;
6940 fold) ac_fold_checking=1 ;;
6941 gc) ac_gc_checking=1 ;;
6942 gcac) ac_gc_always_collect=1 ;;
6943 misc) ac_checking=1 ;;
6944 rtl) ac_rtl_checking=1 ;;
6945 rtlflag) ac_rtlflag_checking=1 ;;
6946 runtime) ac_runtime_checking=1 ;;
6947 tree) ac_tree_checking=1 ;;
6948 types) ac_types_checking=1 ;;
6949 valgrind) ac_valgrind_checking=1 ;;
6950 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6951 echo "$as_me: error: unknown check category $check" >&2;}
6952 { (exit 1); exit 1; }; } ;;
6958 if test x$ac_checking != x ; then
6960 cat >>confdefs.h <<\_ACEOF
6961 #define ENABLE_CHECKING 1
6964 nocommon_flag=-fno-common
6967 if test x$ac_df_checking != x ; then
6969 cat >>confdefs.h <<\_ACEOF
6970 #define ENABLE_DF_CHECKING 1
6974 if test x$ac_assert_checking != x ; then
6976 cat >>confdefs.h <<\_ACEOF
6977 #define ENABLE_ASSERT_CHECKING 1
6982 if test x$ac_runtime_checking != x ; then
6984 cat >>confdefs.h <<\_ACEOF
6985 #define ENABLE_RUNTIME_CHECKING 1
6989 if test x$ac_tree_checking != x ; then
6991 cat >>confdefs.h <<\_ACEOF
6992 #define ENABLE_TREE_CHECKING 1
6995 TREEBROWSER=tree-browser.o
6997 if test x$ac_types_checking != x ; then
6999 cat >>confdefs.h <<\_ACEOF
7000 #define ENABLE_TYPES_CHECKING 1
7005 if test x$ac_rtl_checking != x ; then
7007 cat >>confdefs.h <<\_ACEOF
7008 #define ENABLE_RTL_CHECKING 1
7012 if test x$ac_rtlflag_checking != x ; then
7014 cat >>confdefs.h <<\_ACEOF
7015 #define ENABLE_RTL_FLAG_CHECKING 1
7019 if test x$ac_gc_checking != x ; then
7021 cat >>confdefs.h <<\_ACEOF
7022 #define ENABLE_GC_CHECKING 1
7026 if test x$ac_gc_always_collect != x ; then
7028 cat >>confdefs.h <<\_ACEOF
7029 #define ENABLE_GC_ALWAYS_COLLECT 1
7033 if test x$ac_fold_checking != x ; then
7035 cat >>confdefs.h <<\_ACEOF
7036 #define ENABLE_FOLD_CHECKING 1
7040 valgrind_path_defines=
7043 if test "${ac_cv_header_valgrind_h+set}" = set; then
7044 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7045 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7046 if test "${ac_cv_header_valgrind_h+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7050 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7052 # Is the header compilable?
7053 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7054 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7055 cat >conftest.$ac_ext <<_ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 $ac_includes_default
7062 #include <valgrind.h>
7064 rm -f conftest.$ac_objext
7065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066 (eval $ac_compile) 2>conftest.er1
7068 grep -v '^ *+' conftest.er1 >conftest.err
7070 cat conftest.err >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
7073 { ac_try='test -z "$ac_c_werror_flag"
7074 || test ! -s conftest.err'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; } &&
7080 { ac_try='test -s conftest.$ac_objext'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7086 ac_header_compiler=yes
7088 echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7091 ac_header_compiler=no
7093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7095 echo "${ECHO_T}$ac_header_compiler" >&6
7097 # Is the header present?
7098 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7099 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 #include <valgrind.h>
7108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7111 grep -v '^ *+' conftest.er1 >conftest.err
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } >/dev/null; then
7116 if test -s conftest.err; then
7117 ac_cpp_err=$ac_c_preproc_warn_flag
7118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7125 if test -z "$ac_cpp_err"; then
7126 ac_header_preproc=yes
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7131 ac_header_preproc=no
7133 rm -f conftest.err conftest.$ac_ext
7134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7135 echo "${ECHO_T}$ac_header_preproc" >&6
7137 # So? What about this header?
7138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7140 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7141 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7142 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7143 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7144 ac_header_preproc=yes
7147 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7148 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7149 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7150 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7151 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7152 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7153 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7154 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7155 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7156 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7157 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7158 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7161 ## ------------------------------------------ ##
7162 ## Report this to the AC_PACKAGE_NAME lists. ##
7163 ## ------------------------------------------ ##
7166 sed "s/^/$as_me: WARNING: /" >&2
7169 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7170 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7171 if test "${ac_cv_header_valgrind_h+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 ac_cv_header_valgrind_h=$ac_header_preproc
7176 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7177 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7180 if test $ac_cv_header_valgrind_h = yes; then
7188 if test x$ac_valgrind_checking != x ; then
7189 # It is certainly possible that there's valgrind but no valgrind.h.
7190 # GCC relies on making annotations so we must have both.
7191 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7192 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7193 cat >conftest.$ac_ext <<_ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 #include <valgrind/memcheck.h>
7200 #ifndef VALGRIND_DISCARD
7201 #error VALGRIND_DISCARD not defined
7204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7207 grep -v '^ *+' conftest.er1 >conftest.err
7209 cat conftest.err >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } >/dev/null; then
7212 if test -s conftest.err; then
7213 ac_cpp_err=$ac_c_preproc_warn_flag
7214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7221 if test -z "$ac_cpp_err"; then
7222 gcc_cv_header_valgrind_memcheck_h=yes
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7227 gcc_cv_header_valgrind_memcheck_h=no
7229 rm -f conftest.err conftest.$ac_ext
7230 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7231 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7232 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7233 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7234 cat >conftest.$ac_ext <<_ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 #include <memcheck.h>
7241 #ifndef VALGRIND_DISCARD
7242 #error VALGRIND_DISCARD not defined
7245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7248 grep -v '^ *+' conftest.er1 >conftest.err
7250 cat conftest.err >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } >/dev/null; then
7253 if test -s conftest.err; then
7254 ac_cpp_err=$ac_c_preproc_warn_flag
7255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7262 if test -z "$ac_cpp_err"; then
7263 gcc_cv_header_memcheck_h=yes
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7268 gcc_cv_header_memcheck_h=no
7270 rm -f conftest.err conftest.$ac_ext
7271 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7272 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7274 # Prepare PATH_SEPARATOR.
7275 # The user is always right.
7276 if test "${PATH_SEPARATOR+set}" != set; then
7277 echo "#! /bin/sh" >conf$$.sh
7278 echo "exit 0" >>conf$$.sh
7280 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7288 # Find out how to test for executable files. Don't use a zero-byte file,
7289 # as systems may use methods other than mode bits to determine executability.
7290 cat >conf$$.file <<_ASEOF
7294 chmod +x conf$$.file
7295 if test -x conf$$.file >/dev/null 2>&1; then
7296 ac_executable_p="test -x"
7298 ac_executable_p="test -f"
7302 # Extract the first word of "valgrind", so it can be a program name with args.
7303 set dummy valgrind; ac_word=$2
7304 echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7306 if test "${ac_cv_path_valgrind_path+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 case "$valgrind_path" in
7311 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7314 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7315 for ac_dir in $PATH; do
7317 test -z "$ac_dir" && ac_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7320 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7321 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7331 valgrind_path="$ac_cv_path_valgrind_path"
7332 if test -n "$valgrind_path"; then
7333 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7334 echo "${ECHO_T}$valgrind_path" >&6
7336 echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6
7340 if test "x$valgrind_path" = "x" \
7341 || (test $have_valgrind_h = no \
7342 && test $gcc_cv_header_memcheck_h = no \
7343 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7344 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7345 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7346 { (exit 1); exit 1; }; }
7348 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7349 valgrind_command="$valgrind_path -q"
7351 cat >>confdefs.h <<\_ACEOF
7352 #define ENABLE_VALGRIND_CHECKING 1
7355 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7357 cat >>confdefs.h <<\_ACEOF
7358 #define HAVE_VALGRIND_MEMCHECK_H 1
7362 if test $gcc_cv_header_memcheck_h = yes; then
7364 cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_MEMCHECK_H 1
7373 # Enable code coverage collection
7374 # Check whether --enable-coverage or --disable-coverage was given.
7375 if test "${enable_coverage+set}" = set; then
7376 enableval="$enable_coverage"
7377 case "${enableval}" in
7379 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7382 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7385 # a.k.a. --disable-coverage
7389 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7390 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7391 { (exit 1); exit 1; }; }
7399 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7400 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7401 enableval="$enable_gather_detailed_mem_stats"
7404 enable_gather_detailed_mem_stats=no
7406 if test x$enable_gather_detailed_mem_stats = xyes ; then
7408 cat >>confdefs.h <<\_ACEOF
7409 #define GATHER_STATISTICS 1
7414 # -------------------------------
7415 # Miscenalleous configure options
7416 # -------------------------------
7420 # Check whether --with-stabs or --without-stabs was given.
7421 if test "${with_stabs+set}" = set; then
7422 withval="$with_stabs"
7428 # Determine whether or not multilibs are enabled.
7429 # Check whether --enable-multilib or --disable-multilib was given.
7430 if test "${enable_multilib+set}" = set; then
7431 enableval="$enable_multilib"
7438 # Enable __cxa_atexit for C++.
7439 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7440 if test "${enable___cxa_atexit+set}" = set; then
7441 enableval="$enable___cxa_atexit"
7445 # Enable C extension for decimal float if target supports it.
7446 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7447 if test "${enable_decimal_float+set}" = set; then
7448 enableval="$enable_decimal_float"
7450 case $enable_decimal_float in
7451 yes | no | bid | dpd) ;;
7452 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7453 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7454 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7455 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7456 { (exit 1); exit 1; }; } ;;
7462 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7463 enable_decimal_float=yes
7466 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7467 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7468 enable_decimal_float=no
7474 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7476 cat >>confdefs.h <<_ACEOF
7477 #define ENABLE_DECIMAL_FLOAT $dfp
7481 # x86's use BID format instead of DPD
7482 case x$enable_decimal_float in
7485 i?86*-*-linux* | x86_64*-*-linux*)
7486 enable_decimal_float=bid
7489 enable_decimal_float=dpd
7494 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7495 # dependency on libdecnumber.
7496 enable_decimal_float=dpd
7501 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7503 cat >>confdefs.h <<_ACEOF
7504 #define ENABLE_DECIMAL_BID_FORMAT $bid
7508 # Enable C extension for fixed-point arithmetic.
7509 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7510 if test "${enable_fixed_point+set}" = set; then
7511 enableval="$enable_fixed_point"
7520 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7521 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7522 enable_fixed_point=no
7525 enable_fixed_point=yes
7530 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7531 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7532 enable_fixed_point=no
7539 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7541 cat >>confdefs.h <<_ACEOF
7542 #define ENABLE_FIXED_POINT $fixedpoint
7547 # Pass with no value to take the default
7548 # Pass with a value to specify a thread package
7549 # Check whether --enable-threads or --disable-threads was given.
7550 if test "${enable_threads+set}" = set; then
7551 enableval="$enable_threads"
7557 # Check whether --enable-tls or --disable-tls was given.
7558 if test "${enable_tls+set}" = set; then
7559 enableval="$enable_tls"
7563 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7564 Valid choices are 'yes' and 'no'." >&5
7565 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7566 Valid choices are 'yes' and 'no'." >&2;}
7567 { (exit 1); exit 1; }; } ;;
7574 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7575 if test "${enable_objc_gc+set}" = set; then
7576 enableval="$enable_objc_gc"
7577 if test x$enable_objc_gc = xno; then
7587 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7588 if test "${with_dwarf2+set}" = set; then
7589 withval="$with_dwarf2"
7590 dwarf2="$with_dwarf2"
7595 # Check whether --enable-shared or --disable-shared was given.
7596 if test "${enable_shared+set}" = set; then
7597 enableval="$enable_shared"
7599 case $enable_shared in
7603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7604 for pkg in $enableval; do
7605 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7619 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7620 if test "${with_build_sysroot+set}" = set; then
7621 withval="$with_build_sysroot"
7626 # Check whether --with-sysroot or --without-sysroot was given.
7627 if test "${with_sysroot+set}" = set; then
7628 withval="$with_sysroot"
7630 case ${with_sysroot} in
7631 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7632 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7635 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7636 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7638 if test "x$prefix" = xNONE; then
7639 test_prefix=/usr/local
7643 if test "x$exec_prefix" = xNONE; then
7644 test_exec_prefix=$test_prefix
7646 test_exec_prefix=$exec_prefix
7648 case ${TARGET_SYSTEM_ROOT} in
7649 "${test_prefix}"|"${test_prefix}/"*|\
7650 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7651 '${prefix}'|'${prefix}/'*|\
7652 '${exec_prefix}'|'${exec_prefix}/'*)
7653 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7654 TARGET_SYSTEM_ROOT_DEFINE="$t"
7661 TARGET_SYSTEM_ROOT_DEFINE=
7662 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7669 # Build with intermodule optimisations
7670 # Check whether --enable-intermodule or --disable-intermodule was given.
7671 if test "${enable_intermodule+set}" = set; then
7672 enableval="$enable_intermodule"
7673 case ${enable_intermodule} in
7674 yes) onestep="-onestep";;
7684 # Check whether --with-pkgversion or --without-pkgversion was given.
7685 if test "${with_pkgversion+set}" = set; then
7686 withval="$with_pkgversion"
7688 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7689 echo "$as_me: error: package version not specified" >&2;}
7690 { (exit 1); exit 1; }; } ;;
7692 *) PKGVERSION="($withval) " ;;
7702 # Check whether --with-bugurl or --without-bugurl was given.
7703 if test "${with_bugurl+set}" = set; then
7704 withval="$with_bugurl"
7706 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7707 echo "$as_me: error: bug URL not specified" >&2;}
7708 { (exit 1); exit 1; }; } ;;
7711 *) BUGURL="$withval"
7715 BUGURL="http://gcc.gnu.org/bugs.html"
7724 REPORT_BUGS_TO="<$BUGURL>"
7725 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7732 # Sanity check enable_languages in case someone does not run the toplevel
7733 # configure # script.
7734 # Check whether --enable-languages or --disable-languages was given.
7735 if test "${enable_languages+set}" = set; then
7736 enableval="$enable_languages"
7737 case ,${enable_languages}, in
7739 # go safe -- we cannot be much sure without the toplevel
7741 # analysis of which target libs are present and usable
7745 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7746 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7747 { (exit 1); exit 1; }; }
7752 enable_languages=c,${enable_languages}
7759 # Used by documentation targets
7764 # -------------------------
7765 # Checks for other programs
7766 # -------------------------
7768 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7769 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7770 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7771 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 cat >conftest.make <<\_ACEOF
7776 @echo 'ac_maketemp="$(MAKE)"'
7778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7779 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7780 if test -n "$ac_maketemp"; then
7781 eval ac_cv_prog_make_${ac_make}_set=yes
7783 eval ac_cv_prog_make_${ac_make}_set=no
7787 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7788 echo "$as_me:$LINENO: result: yes" >&5
7789 echo "${ECHO_T}yes" >&6
7792 echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6
7794 SET_MAKE="MAKE=${MAKE-make}"
7798 # Find some useful tools
7799 for ac_prog in gawk mawk nawk awk
7801 # Extract the first word of "$ac_prog", so it can be a program name with args.
7802 set dummy $ac_prog; ac_word=$2
7803 echo "$as_me:$LINENO: checking for $ac_word" >&5
7804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7805 if test "${ac_cv_prog_AWK+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 if test -n "$AWK"; then
7809 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818 ac_cv_prog_AWK="$ac_prog"
7819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 if test -n "$AWK"; then
7829 echo "$as_me:$LINENO: result: $AWK" >&5
7830 echo "${ECHO_T}$AWK" >&6
7832 echo "$as_me:$LINENO: result: no" >&5
7833 echo "${ECHO_T}no" >&6
7836 test -n "$AWK" && break
7839 # We need awk to create options.c and options.h.
7840 # Bail out if it's missing.
7842 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7843 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7844 { (exit 1); exit 1; }; } ;;
7847 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7848 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7849 if test "${gcc_cv_prog_LN_S+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 rm -f conftestdata_t
7853 echo >conftestdata_f
7854 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7856 gcc_cv_prog_LN_S="ln -s"
7858 if ln conftestdata_f conftestdata_t 2>/dev/null
7862 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7864 gcc_cv_prog_LN_S="cp -p"
7870 rm -f conftestdata_f conftestdata_t
7873 LN_S="$gcc_cv_prog_LN_S"
7874 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7875 echo "$as_me:$LINENO: result: yes" >&5
7876 echo "${ECHO_T}yes" >&6
7878 if test "$gcc_cv_prog_LN_S" = "ln"; then
7879 echo "$as_me:$LINENO: result: no, using ln" >&5
7880 echo "${ECHO_T}no, using ln" >&6
7882 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7883 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7887 echo "$as_me:$LINENO: checking whether ln works" >&5
7888 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7889 if test "${acx_cv_prog_LN+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 rm -f conftestdata_t
7893 echo >conftestdata_f
7894 if ln conftestdata_f conftestdata_t 2>/dev/null
7900 rm -f conftestdata_f conftestdata_t
7903 if test $acx_cv_prog_LN = no; then
7905 echo "$as_me:$LINENO: result: no, using $LN" >&5
7906 echo "${ECHO_T}no, using $LN" >&6
7908 LN="$acx_cv_prog_LN"
7909 echo "$as_me:$LINENO: result: yes" >&5
7910 echo "${ECHO_T}yes" >&6
7913 if test -n "$ac_tool_prefix"; then
7914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7915 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7916 echo "$as_me:$LINENO: checking for $ac_word" >&5
7917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7918 if test "${ac_cv_prog_RANLIB+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 if test -n "$RANLIB"; then
7922 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 RANLIB=$ac_cv_prog_RANLIB
7941 if test -n "$RANLIB"; then
7942 echo "$as_me:$LINENO: result: $RANLIB" >&5
7943 echo "${ECHO_T}$RANLIB" >&6
7945 echo "$as_me:$LINENO: result: no" >&5
7946 echo "${ECHO_T}no" >&6
7950 if test -z "$ac_cv_prog_RANLIB"; then
7951 ac_ct_RANLIB=$RANLIB
7952 # Extract the first word of "ranlib", so it can be a program name with args.
7953 set dummy ranlib; ac_word=$2
7954 echo "$as_me:$LINENO: checking for $ac_word" >&5
7955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7956 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 if test -n "$ac_ct_RANLIB"; then
7960 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969 ac_cv_prog_ac_ct_RANLIB="ranlib"
7970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7979 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7980 if test -n "$ac_ct_RANLIB"; then
7981 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7982 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7984 echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6
7988 RANLIB=$ac_ct_RANLIB
7990 RANLIB="$ac_cv_prog_RANLIB"
7995 # By default, the Darwin ranlib will not treat common symbols as
7996 # definitions when building the archive table of contents. Other
7997 # ranlibs do that; pass an option to the Darwin ranlib that makes
7998 # it behave similarly.
8006 # Find a good install program. We prefer a C program (faster),
8007 # so one script is as good as another. But avoid the broken or
8008 # incompatible versions:
8009 # SysV /etc/install, /usr/sbin/install
8010 # SunOS /usr/etc/install
8011 # IRIX /sbin/install
8013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8015 # ./install, which can be erroneously created by make from ./install.sh.
8016 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8017 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8018 if test -z "$INSTALL"; then
8019 if test "${ac_cv_path_install+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8023 for ac_dir in $PATH; do
8024 # Account for people who put trailing slashes in PATH elements.
8026 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8028 # OSF1 and SCO ODT 3.0 have their own names for install.
8029 for ac_prog in ginstall scoinst install; do
8030 if test -f $ac_dir/$ac_prog; then
8031 if test $ac_prog = install &&
8032 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8033 # AIX install. It has an incompatible calling convention.
8034 # OSF/1 installbsd also uses dspmsg, but is usable.
8037 ac_cv_path_install="$ac_dir/$ac_prog -c"
8048 if test "${ac_cv_path_install+set}" = set; then
8049 INSTALL="$ac_cv_path_install"
8051 # As a last resort, use the slow shell script. We don't cache a
8052 # path for INSTALL within a source directory, because that will
8053 # break other packages using the cache if that directory is
8054 # removed, or if the path is relative.
8055 INSTALL="$ac_install_sh"
8058 echo "$as_me:$LINENO: result: $INSTALL" >&5
8059 echo "${ECHO_T}$INSTALL" >&6
8061 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8062 # It thinks the first close brace ends the variable substitution.
8063 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8065 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8068 # See if cmp has --ignore-initial.
8069 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8070 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8071 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8076 gcc_cv_prog_cmp_skip=slowcompare
8077 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8078 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8081 gcc_cv_prog_cmp_skip=gnucompare
8084 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8085 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8086 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8089 gcc_cv_prog_cmp_skip=fastcompare
8096 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8097 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8098 make_compare_target=$gcc_cv_prog_cmp_skip
8102 # See if we have the mktemp command.
8103 # Extract the first word of "mktemp", so it can be a program name with args.
8104 set dummy mktemp; ac_word=$2
8105 echo "$as_me:$LINENO: checking for $ac_word" >&5
8106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8107 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 if test -n "$have_mktemp_command"; then
8111 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8120 ac_cv_prog_have_mktemp_command="yes"
8121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8130 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8131 if test -n "$have_mktemp_command"; then
8132 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8133 echo "${ECHO_T}$have_mktemp_command" >&6
8135 echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6
8140 # See if makeinfo has been installed and is modern enough
8141 # that we can use it.
8143 # Extract the first word of "makeinfo", so it can be a program name with args.
8144 set dummy makeinfo; ac_word=$2
8145 echo "$as_me:$LINENO: checking for $ac_word" >&5
8146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8147 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 if test -n "$MAKEINFO"; then
8151 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 test -z "$as_dir" && as_dir=.
8158 for ac_exec_ext in '' $ac_executable_extensions; do
8159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8160 ac_cv_prog_MAKEINFO="makeinfo"
8161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8169 MAKEINFO=$ac_cv_prog_MAKEINFO
8170 if test -n "$MAKEINFO"; then
8171 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8172 echo "${ECHO_T}$MAKEINFO" >&6
8174 echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6
8178 if test -n "$MAKEINFO"; then
8179 # Found it, now check the version.
8180 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8181 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8182 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8186 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8188 case $ac_prog_version in
8189 '') gcc_cv_prog_makeinfo_modern=no;;
8190 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8191 *) gcc_cv_prog_makeinfo_modern=no;;
8195 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8196 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8198 gcc_cv_prog_makeinfo_modern=no
8200 if test $gcc_cv_prog_makeinfo_modern = no; then
8201 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8204 if test $gcc_cv_prog_makeinfo_modern = no; then
8205 { echo "$as_me:$LINENO: WARNING:
8206 *** Makeinfo is missing or too old.
8207 *** Info documentation will not be built." >&5
8208 echo "$as_me: WARNING:
8209 *** Makeinfo is missing or too old.
8210 *** Info documentation will not be built." >&2;}
8217 # Is pod2man recent enough to regenerate manpages?
8218 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8219 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8220 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8221 echo "$as_me:$LINENO: result: yes" >&5
8222 echo "${ECHO_T}yes" >&6
8223 GENERATED_MANPAGES=generated-manpages
8225 echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6
8231 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8236 # Extract the first word of "$ac_prog", so it can be a program name with args.
8237 set dummy $ac_prog; ac_word=$2
8238 echo "$as_me:$LINENO: checking for $ac_word" >&5
8239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8240 if test "${ac_cv_prog_FLEX+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 if test -n "$FLEX"; then
8244 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8253 ac_cv_prog_FLEX="$ac_prog"
8254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8262 FLEX=$ac_cv_prog_FLEX
8263 if test -n "$FLEX"; then
8264 echo "$as_me:$LINENO: result: $FLEX" >&5
8265 echo "${ECHO_T}$FLEX" >&6
8267 echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6
8271 test -n "$FLEX" && break
8273 test -n "$FLEX" || FLEX="$MISSING flex"
8277 for ac_prog in bison
8279 # Extract the first word of "$ac_prog", so it can be a program name with args.
8280 set dummy $ac_prog; ac_word=$2
8281 echo "$as_me:$LINENO: checking for $ac_word" >&5
8282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8283 if test "${ac_cv_prog_BISON+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 if test -n "$BISON"; then
8287 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296 ac_cv_prog_BISON="$ac_prog"
8297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 BISON=$ac_cv_prog_BISON
8306 if test -n "$BISON"; then
8307 echo "$as_me:$LINENO: result: $BISON" >&5
8308 echo "${ECHO_T}$BISON" >&6
8310 echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8314 test -n "$BISON" && break
8316 test -n "$BISON" || BISON="$MISSING bison"
8319 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8320 # check for build == host before using them.
8323 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8324 && test -d ../binutils ; then
8325 NM='$(objdir)/../binutils/nm-new'
8327 # Extract the first word of "nm", so it can be a program name with args.
8328 set dummy nm; ac_word=$2
8329 echo "$as_me:$LINENO: checking for $ac_word" >&5
8330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8331 if test "${ac_cv_prog_NM+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 if test -n "$NM"; then
8335 ac_cv_prog_NM="$NM" # Let the user override the test.
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 test -z "$as_dir" && as_dir=.
8342 for ac_exec_ext in '' $ac_executable_extensions; do
8343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8355 if test -n "$NM"; then
8356 echo "$as_me:$LINENO: result: $NM" >&5
8357 echo "${ECHO_T}$NM" >&6
8359 echo "$as_me:$LINENO: result: no" >&5
8360 echo "${ECHO_T}no" >&6
8366 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8367 && test -d ../binutils ; then
8368 AR='$(objdir)/../binutils/ar'
8370 # Extract the first word of "ar", so it can be a program name with args.
8371 set dummy ar; ac_word=$2
8372 echo "$as_me:$LINENO: checking for $ac_word" >&5
8373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8374 if test "${ac_cv_prog_AR+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 if test -n "$AR"; then
8378 ac_cv_prog_AR="$AR" # Let the user override the test.
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 test -z "$as_dir" && as_dir=.
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8394 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8398 if test -n "$AR"; then
8399 echo "$as_me:$LINENO: result: $AR" >&5
8400 echo "${ECHO_T}$AR" >&6
8402 echo "$as_me:$LINENO: result: no" >&5
8403 echo "${ECHO_T}no" >&6
8409 # --------------------
8410 # Checks for C headers
8411 # --------------------
8413 # Need to reject headers which give warnings, so that the -Werror bootstrap
8414 # works later. *sigh* This needs to come before all header checks.
8416 ac_c_preproc_warn_flag=yes
8418 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8420 if test "${ac_cv_header_stdc+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8442 rm -f conftest.$ac_objext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444 (eval $ac_compile) 2>conftest.er1
8446 grep -v '^ *+' conftest.er1 >conftest.err
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try='test -z "$ac_c_werror_flag"
8452 || test ! -s conftest.err'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try='test -s conftest.$ac_objext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 ac_cv_header_stdc=yes
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8469 ac_cv_header_stdc=no
8471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8473 if test $ac_cv_header_stdc = yes; then
8474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8475 cat >conftest.$ac_ext <<_ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485 $EGREP "memchr" >/dev/null 2>&1; then
8488 ac_cv_header_stdc=no
8494 if test $ac_cv_header_stdc = yes; then
8495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8496 cat >conftest.$ac_ext <<_ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8506 $EGREP "free" >/dev/null 2>&1; then
8509 ac_cv_header_stdc=no
8515 if test $ac_cv_header_stdc = yes; then
8516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8517 if test "$cross_compiling" = yes; then
8520 cat >conftest.$ac_ext <<_ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8527 #if ((' ' & 0x0FF) == 0x020)
8528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8531 # define ISLOWER(c) \
8532 (('a' <= (c) && (c) <= 'i') \
8533 || ('j' <= (c) && (c) <= 'r') \
8534 || ('s' <= (c) && (c) <= 'z'))
8535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8543 for (i = 0; i < 256; i++)
8544 if (XOR (islower (i), ISLOWER (i))
8545 || toupper (i) != TOUPPER (i))
8550 rm -f conftest$ac_exeext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8552 (eval $ac_link) 2>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8563 echo "$as_me: program exited with status $ac_status" >&5
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8568 ac_cv_header_stdc=no
8570 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8574 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8575 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8576 if test $ac_cv_header_stdc = yes; then
8578 cat >>confdefs.h <<\_ACEOF
8579 #define STDC_HEADERS 1
8584 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8585 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8586 if test "${ac_cv_header_time+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 cat >conftest.$ac_ext <<_ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595 #include <sys/types.h>
8596 #include <sys/time.h>
8602 if ((struct tm *) 0)
8608 rm -f conftest.$ac_objext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8610 (eval $ac_compile) 2>conftest.er1
8612 grep -v '^ *+' conftest.er1 >conftest.err
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -z "$ac_c_werror_flag"
8618 || test ! -s conftest.err'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; } &&
8624 { ac_try='test -s conftest.$ac_objext'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 ac_cv_header_time=yes
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_cv_header_time=no
8637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8639 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8640 echo "${ECHO_T}$ac_cv_header_time" >&6
8641 if test $ac_cv_header_time = yes; then
8643 cat >>confdefs.h <<\_ACEOF
8644 #define TIME_WITH_SYS_TIME 1
8649 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8650 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8651 if test "${gcc_cv_header_string+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 cat >conftest.$ac_ext <<_ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8661 #include <strings.h>
8670 rm -f conftest.$ac_objext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8672 (eval $ac_compile) 2>conftest.er1
8674 grep -v '^ *+' conftest.er1 >conftest.err
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
8679 { ac_try='test -z "$ac_c_werror_flag"
8680 || test ! -s conftest.err'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; } &&
8686 { ac_try='test -s conftest.$ac_objext'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 gcc_cv_header_string=yes
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 gcc_cv_header_string=no
8699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8701 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8702 echo "${ECHO_T}$gcc_cv_header_string" >&6
8703 if test $gcc_cv_header_string = yes; then
8705 cat >>confdefs.h <<\_ACEOF
8706 #define STRING_WITH_STRINGS 1
8711 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8712 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8713 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 cat >conftest.$ac_ext <<_ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8722 #include <sys/types.h>
8723 #include <sys/wait.h>
8725 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8728 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8736 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8741 rm -f conftest.$ac_objext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8743 (eval $ac_compile) 2>conftest.er1
8745 grep -v '^ *+' conftest.er1 >conftest.err
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } &&
8750 { ac_try='test -z "$ac_c_werror_flag"
8751 || test ! -s conftest.err'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; } &&
8757 { ac_try='test -s conftest.$ac_objext'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
8763 ac_cv_header_sys_wait_h=yes
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 ac_cv_header_sys_wait_h=no
8770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8772 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8773 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8774 if test $ac_cv_header_sys_wait_h = yes; then
8776 cat >>confdefs.h <<\_ACEOF
8777 #define HAVE_SYS_WAIT_H 1
8804 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8805 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8806 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8807 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8810 echo "$as_me:$LINENO: checking for $ac_header" >&5
8811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 cat >conftest.$ac_ext <<_ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8821 #include <$ac_header>
8823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8826 grep -v '^ *+' conftest.er1 >conftest.err
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } >/dev/null; then
8831 if test -s conftest.err; then
8832 ac_cpp_err=$ac_c_preproc_warn_flag
8833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8840 if test -z "$ac_cpp_err"; then
8841 eval "$as_ac_Header=yes"
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 eval "$as_ac_Header=no"
8848 rm -f conftest.err conftest.$ac_ext
8850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8853 cat >>confdefs.h <<_ACEOF
8854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8861 # Check for thread headers.
8862 echo "$as_me:$LINENO: checking for thread.h" >&5
8863 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8864 if test "${ac_cv_header_thread_h+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 cat >conftest.$ac_ext <<_ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8878 grep -v '^ *+' conftest.er1 >conftest.err
8880 cat conftest.err >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } >/dev/null; then
8883 if test -s conftest.err; then
8884 ac_cpp_err=$ac_c_preproc_warn_flag
8885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8892 if test -z "$ac_cpp_err"; then
8893 ac_cv_header_thread_h=yes
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8898 ac_cv_header_thread_h=no
8900 rm -f conftest.err conftest.$ac_ext
8902 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8903 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8904 if test $ac_cv_header_thread_h = yes; then
8910 echo "$as_me:$LINENO: checking for pthread.h" >&5
8911 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8912 if test "${ac_cv_header_pthread_h+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 cat >conftest.$ac_ext <<_ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8921 #include <pthread.h>
8923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8926 grep -v '^ *+' conftest.er1 >conftest.err
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } >/dev/null; then
8931 if test -s conftest.err; then
8932 ac_cpp_err=$ac_c_preproc_warn_flag
8933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8940 if test -z "$ac_cpp_err"; then
8941 ac_cv_header_pthread_h=yes
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8946 ac_cv_header_pthread_h=no
8948 rm -f conftest.err conftest.$ac_ext
8950 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8951 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8952 if test $ac_cv_header_pthread_h = yes; then
8959 # These tests can't be done till we know if we have limits.h.
8960 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8961 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8962 if test "${gcc_cv_decl_char_bit+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 cat >conftest.$ac_ext <<_ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 #ifdef HAVE_LIMITS_H
8978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8979 $EGREP "found" >/dev/null 2>&1; then
8980 gcc_cv_decl_char_bit=yes
8982 gcc_cv_decl_char_bit=no
8988 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8989 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8990 if test $gcc_cv_decl_char_bit = no; then
8991 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8992 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8993 if test "${gcc_cv_c_nbby+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 while test $i -lt 65; do
8999 cat >conftest.$ac_ext <<_ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9010 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9011 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9017 rm -f conftest.$ac_objext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9019 (eval $ac_compile) 2>conftest.er1
9021 grep -v '^ *+' conftest.er1 >conftest.err
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } &&
9026 { ac_try='test -z "$ac_c_werror_flag"
9027 || test ! -s conftest.err'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; } &&
9033 { ac_try='test -s conftest.$ac_objext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 gcc_cv_c_nbby=$i; break
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9048 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9051 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9052 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9053 if test $gcc_cv_c_nbby = failed; then
9054 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9055 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9056 { (exit 1); exit 1; }; }
9059 cat >>confdefs.h <<_ACEOF
9060 #define CHAR_BIT $gcc_cv_c_nbby
9065 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9066 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9067 if test "${ac_cv_c_bigendian+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 # See if sys/param.h defines the BYTE_ORDER macro.
9071 cat >conftest.$ac_ext <<_ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9077 #include <sys/types.h>
9078 #include <sys/param.h>
9083 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9091 rm -f conftest.$ac_objext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9093 (eval $ac_compile) 2>conftest.er1
9095 grep -v '^ *+' conftest.er1 >conftest.err
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } &&
9100 { ac_try='test -z "$ac_c_werror_flag"
9101 || test ! -s conftest.err'
9102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; } &&
9107 { ac_try='test -s conftest.$ac_objext'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 # It does; now see whether it defined to BIG_ENDIAN or not.
9114 cat >conftest.$ac_ext <<_ACEOF
9117 cat confdefs.h >>conftest.$ac_ext
9118 cat >>conftest.$ac_ext <<_ACEOF
9119 /* end confdefs.h. */
9120 #include <sys/types.h>
9121 #include <sys/param.h>
9126 #if BYTE_ORDER != BIG_ENDIAN
9134 rm -f conftest.$ac_objext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9136 (eval $ac_compile) 2>conftest.er1
9138 grep -v '^ *+' conftest.er1 >conftest.err
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } &&
9143 { ac_try='test -z "$ac_c_werror_flag"
9144 || test ! -s conftest.err'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; } &&
9150 { ac_try='test -s conftest.$ac_objext'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; }; then
9156 ac_cv_c_bigendian=yes
9158 echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9161 ac_cv_c_bigendian=no
9163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9168 # It does not; compile a test program.
9169 if test "$cross_compiling" = yes; then
9170 # try to guess the endianness by grepping values into an object file
9171 ac_cv_c_bigendian=unknown
9172 cat >conftest.$ac_ext <<_ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9178 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9179 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9180 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9181 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9182 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9183 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9187 _ascii (); _ebcdic ();
9192 rm -f conftest.$ac_objext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9194 (eval $ac_compile) 2>conftest.er1
9196 grep -v '^ *+' conftest.er1 >conftest.err
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try='test -z "$ac_c_werror_flag"
9202 || test ! -s conftest.err'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest.$ac_objext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9215 ac_cv_c_bigendian=yes
9217 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9218 if test "$ac_cv_c_bigendian" = unknown; then
9219 ac_cv_c_bigendian=no
9221 # finding both strings is unlikely to happen, but who knows?
9222 ac_cv_c_bigendian=unknown
9226 echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9232 cat >conftest.$ac_ext <<_ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9241 /* Are we little or big endian? From Harbison&Steele. */
9245 char c[sizeof (long)];
9248 exit (u.c[sizeof (long) - 1] == 1);
9251 rm -f conftest$ac_exeext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253 (eval $ac_link) 2>&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; }; then
9262 ac_cv_c_bigendian=no
9264 echo "$as_me: program exited with status $ac_status" >&5
9265 echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9269 ac_cv_c_bigendian=yes
9271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9276 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9277 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9278 case $ac_cv_c_bigendian in
9281 cat >>confdefs.h <<\_ACEOF
9282 #define WORDS_BIGENDIAN 1
9288 { { echo "$as_me:$LINENO: error: unknown endianness
9289 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9290 echo "$as_me: error: unknown endianness
9291 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9292 { (exit 1); exit 1; }; } ;;
9301 # These libraries may be used by collect2.
9302 # We may need a special search path to get them linked.
9303 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9304 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9305 if test "${gcc_cv_collect2_libs+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 for libs in '' -lld -lmld \
9310 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9311 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9314 cat >conftest.$ac_ext <<_ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9321 /* Override any gcc2 internal prototype to avoid an error. */
9325 /* We use char because int might match the return type of a gcc2
9326 builtin and then its argument prototype would still apply. */
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338 (eval $ac_link) 2>conftest.er1
9340 grep -v '^ *+' conftest.er1 >conftest.err
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try='test -z "$ac_c_werror_flag"
9346 || test ! -s conftest.err'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; } &&
9352 { ac_try='test -s conftest$ac_exeext'
9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; }; then
9358 gcc_cv_collect2_libs="$libs"; break
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9364 rm -f conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9368 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9370 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9371 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9372 case $gcc_cv_collect2_libs in
9374 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9378 # When building Ada code on Alpha, we need exc_resume which is usually in
9379 # -lexc. So test for it.
9382 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9383 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9384 if test "${ac_cv_search_exc_resume+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 ac_func_search_save_LIBS=$LIBS
9388 ac_cv_search_exc_resume=no
9389 cat >conftest.$ac_ext <<_ACEOF
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
9394 /* end confdefs.h. */
9396 /* Override any gcc2 internal prototype to avoid an error. */
9400 /* We use char because int might match the return type of a gcc2
9401 builtin and then its argument prototype would still apply. */
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413 (eval $ac_link) 2>conftest.er1
9415 grep -v '^ *+' conftest.er1 >conftest.err
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -z "$ac_c_werror_flag"
9421 || test ! -s conftest.err'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; } &&
9427 { ac_try='test -s conftest$ac_exeext'
9428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 ac_cv_search_exc_resume="none required"
9435 echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9439 rm -f conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9441 if test "$ac_cv_search_exc_resume" = no; then
9442 for ac_lib in exc; do
9443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9444 cat >conftest.$ac_ext <<_ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9451 /* Override any gcc2 internal prototype to avoid an error. */
9455 /* We use char because int might match the return type of a gcc2
9456 builtin and then its argument prototype would still apply. */
9466 rm -f conftest.$ac_objext conftest$ac_exeext
9467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9468 (eval $ac_link) 2>conftest.er1
9470 grep -v '^ *+' conftest.er1 >conftest.err
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } &&
9475 { ac_try='test -z "$ac_c_werror_flag"
9476 || test ! -s conftest.err'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; } &&
9482 { ac_try='test -s conftest$ac_exeext'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; }; then
9488 ac_cv_search_exc_resume="-l$ac_lib"
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9495 rm -f conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9499 LIBS=$ac_func_search_save_LIBS
9501 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9502 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9503 if test "$ac_cv_search_exc_resume" != no; then
9504 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9512 # Some systems put ldexp and frexp in libm instead of libc; assume
9513 # they're both in the same place. jcf-dump needs them.
9516 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9517 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9518 if test "${ac_cv_search_ldexp+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 ac_func_search_save_LIBS=$LIBS
9522 ac_cv_search_ldexp=no
9523 cat >conftest.$ac_ext <<_ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9530 /* Override any gcc2 internal prototype to avoid an error. */
9534 /* We use char because int might match the return type of a gcc2
9535 builtin and then its argument prototype would still apply. */
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547 (eval $ac_link) 2>conftest.er1
9549 grep -v '^ *+' conftest.er1 >conftest.err
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } &&
9554 { ac_try='test -z "$ac_c_werror_flag"
9555 || test ! -s conftest.err'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; } &&
9561 { ac_try='test -s conftest$ac_exeext'
9562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; }; then
9567 ac_cv_search_ldexp="none required"
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9573 rm -f conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9575 if test "$ac_cv_search_ldexp" = no; then
9577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9578 cat >conftest.$ac_ext <<_ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9585 /* Override any gcc2 internal prototype to avoid an error. */
9589 /* We use char because int might match the return type of a gcc2
9590 builtin and then its argument prototype would still apply. */
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602 (eval $ac_link) 2>conftest.er1
9604 grep -v '^ *+' conftest.er1 >conftest.err
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag"
9610 || test ! -s conftest.err'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; } &&
9616 { ac_try='test -s conftest$ac_exeext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_cv_search_ldexp="-l$ac_lib"
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9629 rm -f conftest.err conftest.$ac_objext \
9630 conftest$ac_exeext conftest.$ac_ext
9633 LIBS=$ac_func_search_save_LIBS
9635 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9636 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9637 if test "$ac_cv_search_ldexp" != no; then
9638 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9646 # Use <inttypes.h> only if it exists,
9647 # doesn't clash with <sys/types.h>, and declares intmax_t.
9648 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9649 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9650 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 cat >conftest.$ac_ext <<_ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9659 #include <sys/types.h>
9660 #include <inttypes.h>
9669 rm -f conftest.$ac_objext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9671 (eval $ac_compile) 2>conftest.er1
9673 grep -v '^ *+' conftest.er1 >conftest.err
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } &&
9678 { ac_try='test -z "$ac_c_werror_flag"
9679 || test ! -s conftest.err'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest.$ac_objext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 gcc_cv_header_inttypes_h=yes
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 gcc_cv_header_inttypes_h=no
9698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9701 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9702 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9703 if test $gcc_cv_header_inttypes_h = yes; then
9705 cat >>confdefs.h <<\_ACEOF
9706 #define HAVE_INTTYPES_H 1
9748 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9749 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9750 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9751 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
9753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9754 echo "$as_me:$LINENO: checking for $ac_func" >&5
9755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9756 if eval "test \"\${$as_ac_var+set}\" = set"; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 cat >conftest.$ac_ext <<_ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9767 #define $ac_func innocuous_$ac_func
9769 /* System header to define __stub macros and hopefully few prototypes,
9770 which can conflict with char $ac_func (); below.
9771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9772 <limits.h> exists even on freestanding compilers. */
9775 # include <limits.h>
9777 # include <assert.h>
9782 /* Override any gcc2 internal prototype to avoid an error. */
9787 /* We use char because int might match the return type of a gcc2
9788 builtin and then its argument prototype would still apply. */
9790 /* The GNU C library defines this for functions which it implements
9791 to always fail with ENOSYS. Some functions are actually named
9792 something starting with __ and the normal name is an alias. */
9793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9796 char (*f) () = $ac_func;
9805 return f != $ac_func;
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9812 (eval $ac_link) 2>conftest.er1
9814 grep -v '^ *+' conftest.er1 >conftest.err
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag"
9820 || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest$ac_exeext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 eval "$as_ac_var=yes"
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9837 eval "$as_ac_var=no"
9839 rm -f conftest.err conftest.$ac_objext \
9840 conftest$ac_exeext conftest.$ac_ext
9842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9844 if test `eval echo '${'$as_ac_var'}'` = yes; then
9845 cat >>confdefs.h <<_ACEOF
9846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9853 if test x$ac_cv_func_mbstowcs = xyes; then
9854 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9855 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9856 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 if test "$cross_compiling" = yes; then
9860 gcc_cv_func_mbstowcs_works=yes
9862 cat >conftest.$ac_ext <<_ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9875 rm -f conftest$ac_exeext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9877 (eval $ac_link) 2>&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9886 gcc_cv_func_mbstowcs_works=yes
9888 echo "$as_me: program exited with status $ac_status" >&5
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9893 gcc_cv_func_mbstowcs_works=no
9895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9898 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9899 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9900 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9902 cat >>confdefs.h <<\_ACEOF
9903 #define HAVE_WORKING_MBSTOWCS 1
9909 echo "$as_me:$LINENO: checking for ssize_t" >&5
9910 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9911 if test "${ac_cv_type_ssize_t+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 cat >conftest.$ac_ext <<_ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 $ac_includes_default
9926 if (sizeof (ssize_t))
9932 rm -f conftest.$ac_objext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9934 (eval $ac_compile) 2>conftest.er1
9936 grep -v '^ *+' conftest.er1 >conftest.err
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag"
9942 || test ! -s conftest.err'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; } &&
9948 { ac_try='test -s conftest.$ac_objext'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
9954 ac_cv_type_ssize_t=yes
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9959 ac_cv_type_ssize_t=no
9961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9963 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9964 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9965 if test $ac_cv_type_ssize_t = yes; then
9969 cat >>confdefs.h <<_ACEOF
9976 # Try to determine the array type of the second argument of getgroups
9977 # for the target system (int or gid_t).
9978 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9979 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9980 if test "${ac_cv_type_uid_t+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 cat >conftest.$ac_ext <<_ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 #include <sys/types.h>
9992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9993 $EGREP "uid_t" >/dev/null 2>&1; then
9994 ac_cv_type_uid_t=yes
10001 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10002 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10003 if test $ac_cv_type_uid_t = no; then
10005 cat >>confdefs.h <<\_ACEOF
10010 cat >>confdefs.h <<\_ACEOF
10016 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10017 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10018 if test "${ac_cv_type_getgroups+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 if test "$cross_compiling" = yes; then
10022 ac_cv_type_getgroups=cross
10024 cat >conftest.$ac_ext <<_ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 /* Thanks to Mike Rendell for this test. */
10031 #include <sys/types.h>
10034 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10039 gid_t gidset[NGID];
10041 union { gid_t gval; long lval; } val;
10044 for (i = 0; i < NGID; i++)
10045 gidset[i] = val.gval;
10046 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10048 /* Exit non-zero if getgroups seems to require an array of ints. This
10049 happens when gid_t is short but getgroups modifies an array of ints. */
10050 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10053 rm -f conftest$ac_exeext
10054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10055 (eval $ac_link) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_cv_type_getgroups=gid_t
10066 echo "$as_me: program exited with status $ac_status" >&5
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10070 ( exit $ac_status )
10071 ac_cv_type_getgroups=int
10073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10075 if test $ac_cv_type_getgroups = cross; then
10076 cat >conftest.$ac_ext <<_ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 #include <unistd.h>
10085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10086 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10087 ac_cv_type_getgroups=gid_t
10089 ac_cv_type_getgroups=int
10095 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10096 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10098 cat >>confdefs.h <<_ACEOF
10099 #define GETGROUPS_T $ac_cv_type_getgroups
10103 if test "${target}" = "${build}"; then
10104 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10106 case "${target}" in
10107 # This condition may need some tweaking. It should include all
10108 # targets where the array type of the second argument of getgroups
10109 # is int and the type of gid_t is not equivalent to int.
10110 *-*-sunos* | *-*-ultrix*)
10111 TARGET_GETGROUPS_T=int
10114 TARGET_GETGROUPS_T=gid_t
10121 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10122 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10123 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 cat >conftest.$ac_ext <<_ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 #include <sys/mman.h>
10134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10137 grep -v '^ *+' conftest.er1 >conftest.err
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } >/dev/null; then
10142 if test -s conftest.err; then
10143 ac_cpp_err=$ac_c_preproc_warn_flag
10144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10151 if test -z "$ac_cpp_err"; then
10152 ac_cv_header_sys_mman_h=yes
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 ac_cv_header_sys_mman_h=no
10159 rm -f conftest.err conftest.$ac_ext
10161 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10162 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10163 if test $ac_cv_header_sys_mman_h = yes; then
10164 gcc_header_sys_mman_h=yes
10166 gcc_header_sys_mman_h=no
10169 echo "$as_me:$LINENO: checking for mmap" >&5
10170 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10171 if test "${ac_cv_func_mmap+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 cat >conftest.$ac_ext <<_ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10182 #define mmap innocuous_mmap
10184 /* System header to define __stub macros and hopefully few prototypes,
10185 which can conflict with char mmap (); below.
10186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10187 <limits.h> exists even on freestanding compilers. */
10190 # include <limits.h>
10192 # include <assert.h>
10197 /* Override any gcc2 internal prototype to avoid an error. */
10202 /* We use char because int might match the return type of a gcc2
10203 builtin and then its argument prototype would still apply. */
10205 /* The GNU C library defines this for functions which it implements
10206 to always fail with ENOSYS. Some functions are actually named
10207 something starting with __ and the normal name is an alias. */
10208 #if defined (__stub_mmap) || defined (__stub___mmap)
10211 char (*f) () = mmap;
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10227 (eval $ac_link) 2>conftest.er1
10229 grep -v '^ *+' conftest.er1 >conftest.err
10231 cat conftest.err >&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } &&
10234 { ac_try='test -z "$ac_c_werror_flag"
10235 || test ! -s conftest.err'
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); }; } &&
10241 { ac_try='test -s conftest$ac_exeext'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; }; then
10247 ac_cv_func_mmap=yes
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10254 rm -f conftest.err conftest.$ac_objext \
10255 conftest$ac_exeext conftest.$ac_ext
10257 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10258 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10259 if test $ac_cv_func_mmap = yes; then
10265 if test "$gcc_header_sys_mman_h" != yes \
10266 || test "$gcc_func_mmap" != yes; then
10267 gcc_cv_func_mmap_file=no
10268 gcc_cv_func_mmap_dev_zero=no
10269 gcc_cv_func_mmap_anon=no
10271 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10272 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10273 if test "${gcc_cv_func_mmap_file+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 # Add a system to this blacklist if
10277 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10278 # memory area containing the same data that you'd get if you applied
10279 # read() to the same fd. The only system known to have a problem here
10280 # is VMS, where text files have record structure.
10283 gcc_cv_func_mmap_file=no ;;
10285 gcc_cv_func_mmap_file=yes;;
10288 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10289 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10290 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10291 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10292 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 # Add a system to this blacklist if it has mmap() but /dev/zero
10296 # does not exist, or if mmapping /dev/zero does not give anonymous
10297 # zeroed pages with both the following properties:
10298 # 1. If you map N consecutive pages in with one call, and then
10299 # unmap any subset of those pages, the pages that were not
10300 # explicitly unmapped remain accessible.
10301 # 2. If you map two adjacent blocks of memory and then unmap them
10302 # both at once, they must both go away.
10303 # Systems known to be in this category are Windows (all variants),
10306 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10307 gcc_cv_func_mmap_dev_zero=no ;;
10309 gcc_cv_func_mmap_dev_zero=yes;;
10312 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10313 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10315 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10316 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10317 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10318 if test "${gcc_cv_decl_map_anon+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 cat >conftest.$ac_ext <<_ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 #include <sys/types.h>
10328 #include <sys/mman.h>
10329 #include <unistd.h>
10331 #ifndef MAP_ANONYMOUS
10332 #define MAP_ANONYMOUS MAP_ANON
10338 int n = MAP_ANONYMOUS;
10343 rm -f conftest.$ac_objext
10344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10345 (eval $ac_compile) 2>conftest.er1
10347 grep -v '^ *+' conftest.er1 >conftest.err
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -z "$ac_c_werror_flag"
10353 || test ! -s conftest.err'
10354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; } &&
10359 { ac_try='test -s conftest.$ac_objext'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; }; then
10365 gcc_cv_decl_map_anon=yes
10367 echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10370 gcc_cv_decl_map_anon=no
10372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10374 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10375 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10377 if test $gcc_cv_decl_map_anon = no; then
10378 gcc_cv_func_mmap_anon=no
10380 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10381 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10382 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10386 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10387 # doesn't give anonymous zeroed pages with the same properties listed
10388 # above for use of /dev/zero.
10389 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10391 vms* | cygwin* | pe | mingw* | sco* | udk* )
10392 gcc_cv_func_mmap_anon=no ;;
10394 gcc_cv_func_mmap_anon=yes;;
10397 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10398 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10402 if test $gcc_cv_func_mmap_file = yes; then
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_MMAP_FILE 1
10409 if test $gcc_cv_func_mmap_dev_zero = yes; then
10411 cat >>confdefs.h <<\_ACEOF
10412 #define HAVE_MMAP_DEV_ZERO 1
10416 if test $gcc_cv_func_mmap_anon = yes; then
10418 cat >>confdefs.h <<\_ACEOF
10419 #define HAVE_MMAP_ANON 1
10427 # Under VMS, vfork works very differently than on Unix. The standard test
10428 # won't work, and it isn't easily adaptable. It makes more sense to
10430 ac_cv_func_vfork_works=yes
10433 echo "$as_me:$LINENO: checking for pid_t" >&5
10434 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10435 if test "${ac_cv_type_pid_t+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 cat >conftest.$ac_ext <<_ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h. */
10444 $ac_includes_default
10450 if (sizeof (pid_t))
10456 rm -f conftest.$ac_objext
10457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10458 (eval $ac_compile) 2>conftest.er1
10460 grep -v '^ *+' conftest.er1 >conftest.err
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -z "$ac_c_werror_flag"
10466 || test ! -s conftest.err'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; } &&
10472 { ac_try='test -s conftest.$ac_objext'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; }; then
10478 ac_cv_type_pid_t=yes
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10483 ac_cv_type_pid_t=no
10485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10487 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10488 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10489 if test $ac_cv_type_pid_t = yes; then
10493 cat >>confdefs.h <<_ACEOF
10501 for ac_header in unistd.h vfork.h
10503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10504 echo "$as_me:$LINENO: checking for $ac_header" >&5
10505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 cat >conftest.$ac_ext <<_ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515 #include <$ac_header>
10517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10520 grep -v '^ *+' conftest.er1 >conftest.err
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } >/dev/null; then
10525 if test -s conftest.err; then
10526 ac_cpp_err=$ac_c_preproc_warn_flag
10527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10534 if test -z "$ac_cpp_err"; then
10535 eval "$as_ac_Header=yes"
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10540 eval "$as_ac_Header=no"
10542 rm -f conftest.err conftest.$ac_ext
10544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10547 cat >>confdefs.h <<_ACEOF
10548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10556 for ac_func in fork vfork
10558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10559 echo "$as_me:$LINENO: checking for $ac_func" >&5
10560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10561 if eval "test \"\${$as_ac_var+set}\" = set"; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 cat >conftest.$ac_ext <<_ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10572 #define $ac_func innocuous_$ac_func
10574 /* System header to define __stub macros and hopefully few prototypes,
10575 which can conflict with char $ac_func (); below.
10576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10577 <limits.h> exists even on freestanding compilers. */
10580 # include <limits.h>
10582 # include <assert.h>
10587 /* Override any gcc2 internal prototype to avoid an error. */
10592 /* We use char because int might match the return type of a gcc2
10593 builtin and then its argument prototype would still apply. */
10595 /* The GNU C library defines this for functions which it implements
10596 to always fail with ENOSYS. Some functions are actually named
10597 something starting with __ and the normal name is an alias. */
10598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10601 char (*f) () = $ac_func;
10610 return f != $ac_func;
10615 rm -f conftest.$ac_objext conftest$ac_exeext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10617 (eval $ac_link) 2>conftest.er1
10619 grep -v '^ *+' conftest.er1 >conftest.err
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -z "$ac_c_werror_flag"
10625 || test ! -s conftest.err'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; } &&
10631 { ac_try='test -s conftest$ac_exeext'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; }; then
10637 eval "$as_ac_var=yes"
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10642 eval "$as_ac_var=no"
10644 rm -f conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10649 if test `eval echo '${'$as_ac_var'}'` = yes; then
10650 cat >>confdefs.h <<_ACEOF
10651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10657 if test "x$ac_cv_func_fork" = xyes; then
10658 echo "$as_me:$LINENO: checking for working fork" >&5
10659 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10660 if test "${ac_cv_func_fork_works+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 if test "$cross_compiling" = yes; then
10664 ac_cv_func_fork_works=cross
10666 cat >conftest.$ac_ext <<_ACEOF
10667 /* By Ruediger Kuhlmann. */
10668 #include <sys/types.h>
10670 # include <unistd.h>
10672 /* Some systems only have a dummy stub for fork() */
10680 rm -f conftest$ac_exeext
10681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10682 (eval $ac_link) 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 ac_cv_func_fork_works=yes
10693 echo "$as_me: program exited with status $ac_status" >&5
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 ( exit $ac_status )
10698 ac_cv_func_fork_works=no
10700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10703 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10704 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10707 ac_cv_func_fork_works=$ac_cv_func_fork
10709 if test "x$ac_cv_func_fork_works" = xcross; then
10711 *-*-amigaos* | *-*-msdosdjgpp*)
10712 # Override, as these systems have only a dummy fork() stub
10713 ac_cv_func_fork_works=no
10716 ac_cv_func_fork_works=yes
10719 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10720 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10722 ac_cv_func_vfork_works=$ac_cv_func_vfork
10723 if test "x$ac_cv_func_vfork" = xyes; then
10724 echo "$as_me:$LINENO: checking for working vfork" >&5
10725 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10726 if test "${ac_cv_func_vfork_works+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 if test "$cross_compiling" = yes; then
10730 ac_cv_func_vfork_works=cross
10732 cat >conftest.$ac_ext <<_ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10738 /* Thanks to Paul Eggert for this test. */
10740 #include <stdlib.h>
10741 #include <sys/types.h>
10742 #include <sys/stat.h>
10743 #include <sys/wait.h>
10745 # include <unistd.h>
10748 # include <vfork.h>
10750 /* On some sparc systems, changes by the child to local and incoming
10751 argument registers are propagated back to the parent. The compiler
10752 is told about this with #include <vfork.h>, but some compilers
10753 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10754 static variable whose address is put into a register that is
10755 clobbered by the vfork. */
10758 sparc_address_test (int arg)
10760 sparc_address_test (arg) int arg;
10763 static pid_t child;
10781 pid_t parent = getpid ();
10784 sparc_address_test (0);
10789 /* Here is another test for sparc vfork register problems. This
10790 test uses lots of local variables, at least as many local
10791 variables as main has allocated so far including compiler
10792 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10793 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10794 reuse the register of parent for one of the local variables,
10795 since it will think that parent can't possibly be used any more
10796 in this routine. Assigning to the local variable will thus
10797 munge parent in the parent process. */
10799 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10800 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10801 /* Convince the compiler that p..p7 are live; otherwise, it might
10802 use the same hardware register for all 8 local variables. */
10803 if (p != p1 || p != p2 || p != p3 || p != p4
10804 || p != p5 || p != p6 || p != p7)
10807 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10808 from child file descriptors. If the child closes a descriptor
10809 before it execs or exits, this munges the parent's descriptor
10810 as well. Test for this by closing stdout in the child. */
10811 _exit(close(fileno(stdout)) != 0);
10816 while (wait(&status) != child)
10819 /* Was there some problem with vforking? */
10822 /* Did the child fail? (This shouldn't happen.) */
10825 /* Did the vfork/compiler bug occur? */
10826 || parent != getpid()
10828 /* Did the file descriptor bug occur? */
10829 || fstat(fileno(stdout), &st) != 0
10834 rm -f conftest$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836 (eval $ac_link) 2>&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; }; then
10845 ac_cv_func_vfork_works=yes
10847 echo "$as_me: program exited with status $ac_status" >&5
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 ( exit $ac_status )
10852 ac_cv_func_vfork_works=no
10854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10857 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10858 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10861 if test "x$ac_cv_func_fork_works" = xcross; then
10862 ac_cv_func_vfork_works=$ac_cv_func_vfork
10863 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10864 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10867 if test "x$ac_cv_func_vfork_works" = xyes; then
10869 cat >>confdefs.h <<\_ACEOF
10870 #define HAVE_WORKING_VFORK 1
10875 cat >>confdefs.h <<\_ACEOF
10880 if test "x$ac_cv_func_fork_works" = xyes; then
10882 cat >>confdefs.h <<\_ACEOF
10883 #define HAVE_WORKING_FORK 1
10890 if test "X$prefix" = "XNONE"; then
10891 acl_final_prefix="$ac_default_prefix"
10893 acl_final_prefix="$prefix"
10895 if test "X$exec_prefix" = "XNONE"; then
10896 acl_final_exec_prefix='${prefix}'
10898 acl_final_exec_prefix="$exec_prefix"
10900 acl_save_prefix="$prefix"
10901 prefix="$acl_final_prefix"
10902 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10903 prefix="$acl_save_prefix"
10906 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10907 if test "${with_gnu_ld+set}" = set; then
10908 withval="$with_gnu_ld"
10909 test "$withval" = no || with_gnu_ld=yes
10913 # Prepare PATH_SEPARATOR.
10914 # The user is always right.
10915 if test "${PATH_SEPARATOR+set}" != set; then
10916 echo "#! /bin/sh" >conf$$.sh
10917 echo "exit 0" >>conf$$.sh
10919 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10927 if test "$GCC" = yes; then
10928 # Check if gcc -print-prog-name=ld gives a path.
10929 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10930 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10933 # gcc leaves a trailing carriage return which upsets mingw
10934 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10936 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10939 # Accept absolute paths.
10940 [\\/]* | [A-Za-z]:[\\/]*)
10941 re_direlt='/[^/][^/]*/\.\./'
10942 # Canonicalize the path of ld
10943 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10944 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10945 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10947 test -z "$LD" && LD="$ac_prog"
10950 # If it fails, then pretend we aren't using GCC.
10954 # If it is relative, then search for the first ld in PATH.
10955 with_gnu_ld=unknown
10958 elif test "$with_gnu_ld" = yes; then
10959 echo "$as_me:$LINENO: checking for GNU ld" >&5
10960 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10962 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10963 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10965 if test "${acl_cv_path_LD+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 if test -z "$LD"; then
10969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10970 for ac_dir in $PATH; do
10971 test -z "$ac_dir" && ac_dir=.
10972 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10973 acl_cv_path_LD="$ac_dir/$ac_prog"
10974 # Check to see if the program is GNU ld. I'd rather use --version,
10975 # but apparently some GNU ld's only accept -v.
10976 # Break only if it was the GNU/non-GNU ld that we prefer.
10977 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10978 test "$with_gnu_ld" != no && break
10980 test "$with_gnu_ld" != yes && break
10986 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10990 LD="$acl_cv_path_LD"
10991 if test -n "$LD"; then
10992 echo "$as_me:$LINENO: result: $LD" >&5
10993 echo "${ECHO_T}$LD" >&6
10995 echo "$as_me:$LINENO: result: no" >&5
10996 echo "${ECHO_T}no" >&6
10998 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10999 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11000 { (exit 1); exit 1; }; }
11001 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11002 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11003 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11007 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11008 acl_cv_prog_gnu_ld=yes
11010 acl_cv_prog_gnu_ld=no
11013 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11014 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11015 with_gnu_ld=$acl_cv_prog_gnu_ld
11019 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11020 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11021 if test "${acl_cv_rpath+set}" = set; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11026 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11028 rm -f ./conftest.sh
11032 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11033 echo "${ECHO_T}$acl_cv_rpath" >&6
11035 libext="$acl_cv_libext"
11036 shlibext="$acl_cv_shlibext"
11037 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11038 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11039 hardcode_direct="$acl_cv_hardcode_direct"
11040 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11041 # Check whether --enable-rpath or --disable-rpath was given.
11042 if test "${enable_rpath+set}" = set; then
11043 enableval="$enable_rpath"
11057 acl_save_prefix="$prefix"
11058 prefix="$acl_final_prefix"
11059 acl_save_exec_prefix="$exec_prefix"
11060 exec_prefix="$acl_final_exec_prefix"
11062 eval additional_includedir=\"$includedir\"
11063 eval additional_libdir=\"$libdir\"
11065 exec_prefix="$acl_save_exec_prefix"
11066 prefix="$acl_save_prefix"
11069 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11070 if test "${with_libiconv_prefix+set}" = set; then
11071 withval="$with_libiconv_prefix"
11073 if test "X$withval" = "Xno"; then
11076 if test "X$withval" = "X"; then
11078 acl_save_prefix="$prefix"
11079 prefix="$acl_final_prefix"
11080 acl_save_exec_prefix="$exec_prefix"
11081 exec_prefix="$acl_final_exec_prefix"
11083 eval additional_includedir=\"$includedir\"
11084 eval additional_libdir=\"$libdir\"
11086 exec_prefix="$acl_save_exec_prefix"
11087 prefix="$acl_save_prefix"
11090 additional_includedir="$withval/include"
11091 additional_libdir="$withval/lib"
11101 names_already_handled=
11102 names_next_round='iconv '
11103 while test -n "$names_next_round"; do
11104 names_this_round="$names_next_round"
11106 for name in $names_this_round; do
11108 for n in $names_already_handled; do
11109 if test "$n" = "$name"; then
11110 already_handled=yes
11114 if test -z "$already_handled"; then
11115 names_already_handled="$names_already_handled $name"
11116 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11117 eval value=\"\$HAVE_LIB$uppername\"
11118 if test -n "$value"; then
11119 if test "$value" = yes; then
11120 eval value=\"\$LIB$uppername\"
11121 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11122 eval value=\"\$LTLIB$uppername\"
11123 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11132 if test $use_additional = yes; then
11133 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11134 found_dir="$additional_libdir"
11135 found_so="$additional_libdir/lib$name.$shlibext"
11136 if test -f "$additional_libdir/lib$name.la"; then
11137 found_la="$additional_libdir/lib$name.la"
11140 if test -f "$additional_libdir/lib$name.$libext"; then
11141 found_dir="$additional_libdir"
11142 found_a="$additional_libdir/lib$name.$libext"
11143 if test -f "$additional_libdir/lib$name.la"; then
11144 found_la="$additional_libdir/lib$name.la"
11149 if test "X$found_dir" = "X"; then
11150 for x in $LDFLAGS $LTLIBICONV; do
11152 acl_save_prefix="$prefix"
11153 prefix="$acl_final_prefix"
11154 acl_save_exec_prefix="$exec_prefix"
11155 exec_prefix="$acl_final_exec_prefix"
11157 exec_prefix="$acl_save_exec_prefix"
11158 prefix="$acl_save_prefix"
11162 dir=`echo "X$x" | sed -e 's/^X-L//'`
11163 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11165 found_so="$dir/lib$name.$shlibext"
11166 if test -f "$dir/lib$name.la"; then
11167 found_la="$dir/lib$name.la"
11170 if test -f "$dir/lib$name.$libext"; then
11172 found_a="$dir/lib$name.$libext"
11173 if test -f "$dir/lib$name.la"; then
11174 found_la="$dir/lib$name.la"
11180 if test "X$found_dir" != "X"; then
11185 if test "X$found_dir" != "X"; then
11186 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11187 if test "X$found_so" != "X"; then
11188 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11189 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11192 for x in $ltrpathdirs; do
11193 if test "X$x" = "X$found_dir"; then
11198 if test -z "$haveit"; then
11199 ltrpathdirs="$ltrpathdirs $found_dir"
11201 if test "$hardcode_direct" = yes; then
11202 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11204 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11205 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11207 for x in $rpathdirs; do
11208 if test "X$x" = "X$found_dir"; then
11213 if test -z "$haveit"; then
11214 rpathdirs="$rpathdirs $found_dir"
11218 for x in $LDFLAGS $LIBICONV; do
11220 acl_save_prefix="$prefix"
11221 prefix="$acl_final_prefix"
11222 acl_save_exec_prefix="$exec_prefix"
11223 exec_prefix="$acl_final_exec_prefix"
11225 exec_prefix="$acl_save_exec_prefix"
11226 prefix="$acl_save_prefix"
11228 if test "X$x" = "X-L$found_dir"; then
11233 if test -z "$haveit"; then
11234 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11236 if test "$hardcode_minus_L" != no; then
11237 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11239 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11245 if test "X$found_a" != "X"; then
11246 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11248 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11251 additional_includedir=
11252 case "$found_dir" in
11254 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11255 additional_includedir="$basedir/include"
11258 if test "X$additional_includedir" != "X"; then
11259 if test "X$additional_includedir" != "X/usr/include"; then
11261 if test "X$additional_includedir" = "X/usr/local/include"; then
11262 if test -n "$GCC"; then
11264 linux*) haveit=yes;;
11268 if test -z "$haveit"; then
11269 for x in $CPPFLAGS $INCICONV; do
11271 acl_save_prefix="$prefix"
11272 prefix="$acl_final_prefix"
11273 acl_save_exec_prefix="$exec_prefix"
11274 exec_prefix="$acl_final_exec_prefix"
11276 exec_prefix="$acl_save_exec_prefix"
11277 prefix="$acl_save_prefix"
11279 if test "X$x" = "X-I$additional_includedir"; then
11284 if test -z "$haveit"; then
11285 if test -d "$additional_includedir"; then
11286 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11292 if test -n "$found_la"; then
11293 save_libdir="$libdir"
11294 case "$found_la" in
11295 */* | *\\*) . "$found_la" ;;
11296 *) . "./$found_la" ;;
11298 libdir="$save_libdir"
11299 for dep in $dependency_libs; do
11302 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11303 if test "X$additional_libdir" != "X/usr/lib"; then
11305 if test "X$additional_libdir" = "X/usr/local/lib"; then
11306 if test -n "$GCC"; then
11308 linux*) haveit=yes;;
11312 if test -z "$haveit"; then
11314 for x in $LDFLAGS $LIBICONV; do
11316 acl_save_prefix="$prefix"
11317 prefix="$acl_final_prefix"
11318 acl_save_exec_prefix="$exec_prefix"
11319 exec_prefix="$acl_final_exec_prefix"
11321 exec_prefix="$acl_save_exec_prefix"
11322 prefix="$acl_save_prefix"
11324 if test "X$x" = "X-L$additional_libdir"; then
11329 if test -z "$haveit"; then
11330 if test -d "$additional_libdir"; then
11331 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11335 for x in $LDFLAGS $LTLIBICONV; do
11337 acl_save_prefix="$prefix"
11338 prefix="$acl_final_prefix"
11339 acl_save_exec_prefix="$exec_prefix"
11340 exec_prefix="$acl_final_exec_prefix"
11342 exec_prefix="$acl_save_exec_prefix"
11343 prefix="$acl_save_prefix"
11345 if test "X$x" = "X-L$additional_libdir"; then
11350 if test -z "$haveit"; then
11351 if test -d "$additional_libdir"; then
11352 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11359 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11360 if test "$enable_rpath" != no; then
11362 for x in $rpathdirs; do
11363 if test "X$x" = "X$dir"; then
11368 if test -z "$haveit"; then
11369 rpathdirs="$rpathdirs $dir"
11372 for x in $ltrpathdirs; do
11373 if test "X$x" = "X$dir"; then
11378 if test -z "$haveit"; then
11379 ltrpathdirs="$ltrpathdirs $dir"
11384 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11387 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11390 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11391 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11397 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11398 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11404 if test "X$rpathdirs" != "X"; then
11405 if test -n "$hardcode_libdir_separator"; then
11407 for found_dir in $rpathdirs; do
11408 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11410 acl_save_libdir="$libdir"
11412 eval flag=\"$hardcode_libdir_flag_spec\"
11413 libdir="$acl_save_libdir"
11414 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11416 for found_dir in $rpathdirs; do
11417 acl_save_libdir="$libdir"
11418 libdir="$found_dir"
11419 eval flag=\"$hardcode_libdir_flag_spec\"
11420 libdir="$acl_save_libdir"
11421 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11425 if test "X$ltrpathdirs" != "X"; then
11426 for found_dir in $ltrpathdirs; do
11427 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11437 am_save_CPPFLAGS="$CPPFLAGS"
11439 for element in $INCICONV; do
11441 for x in $CPPFLAGS; do
11443 acl_save_prefix="$prefix"
11444 prefix="$acl_final_prefix"
11445 acl_save_exec_prefix="$exec_prefix"
11446 exec_prefix="$acl_final_exec_prefix"
11448 exec_prefix="$acl_save_exec_prefix"
11449 prefix="$acl_save_prefix"
11451 if test "X$x" = "X$element"; then
11456 if test -z "$haveit"; then
11457 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11462 echo "$as_me:$LINENO: checking for iconv" >&5
11463 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11464 if test "${am_cv_func_iconv+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11468 am_cv_func_iconv="no, consider installing GNU libiconv"
11470 cat >conftest.$ac_ext <<_ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 #include <stdlib.h>
11481 iconv_t cd = iconv_open("","");
11482 iconv(cd,NULL,NULL,NULL,NULL);
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490 (eval $ac_link) 2>conftest.er1
11492 grep -v '^ *+' conftest.er1 >conftest.err
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest$ac_exeext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 am_cv_func_iconv=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11516 rm -f conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518 if test "$am_cv_func_iconv" != yes; then
11519 am_save_LIBS="$LIBS"
11520 LIBS="$LIBS $LIBICONV"
11521 cat >conftest.$ac_ext <<_ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11527 #include <stdlib.h>
11532 iconv_t cd = iconv_open("","");
11533 iconv(cd,NULL,NULL,NULL,NULL);
11539 rm -f conftest.$ac_objext conftest$ac_exeext
11540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11541 (eval $ac_link) 2>conftest.er1
11543 grep -v '^ *+' conftest.er1 >conftest.err
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } &&
11548 { ac_try='test -z "$ac_c_werror_flag"
11549 || test ! -s conftest.err'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; } &&
11555 { ac_try='test -s conftest$ac_exeext'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 am_cv_lib_iconv=yes
11562 am_cv_func_iconv=yes
11564 echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11568 rm -f conftest.err conftest.$ac_objext \
11569 conftest$ac_exeext conftest.$ac_ext
11570 LIBS="$am_save_LIBS"
11574 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11575 echo "${ECHO_T}$am_cv_func_iconv" >&6
11576 if test "$am_cv_func_iconv" = yes; then
11578 cat >>confdefs.h <<\_ACEOF
11579 #define HAVE_ICONV 1
11583 if test "$am_cv_lib_iconv" = yes; then
11584 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11585 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11586 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11587 echo "${ECHO_T}$LIBICONV" >&6
11589 CPPFLAGS="$am_save_CPPFLAGS"
11596 if test "$am_cv_func_iconv" = yes; then
11597 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11598 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11599 if test "${am_cv_proto_iconv+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 cat >conftest.$ac_ext <<_ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11610 #include <stdlib.h>
11616 #if defined(__STDC__) || defined(__cplusplus)
11617 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11630 rm -f conftest.$ac_objext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632 (eval $ac_compile) 2>conftest.er1
11634 grep -v '^ *+' conftest.er1 >conftest.err
11636 cat conftest.err >&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } &&
11639 { ac_try='test -z "$ac_c_werror_flag"
11640 || test ! -s conftest.err'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; } &&
11646 { ac_try='test -s conftest.$ac_objext'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
11652 am_cv_proto_iconv_arg1=""
11654 echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11657 am_cv_proto_iconv_arg1="const"
11659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11660 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);"
11663 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11664 echo "$as_me:$LINENO: result: ${ac_t:-
11665 }$am_cv_proto_iconv" >&5
11666 echo "${ECHO_T}${ac_t:-
11667 }$am_cv_proto_iconv" >&6
11669 cat >>confdefs.h <<_ACEOF
11670 #define ICONV_CONST $am_cv_proto_iconv_arg1
11675 # Until we have in-tree GNU iconv:
11680 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11681 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11682 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11685 cat >conftest.$ac_ext <<_ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691 #include <locale.h>
11700 rm -f conftest.$ac_objext conftest$ac_exeext
11701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11702 (eval $ac_link) 2>conftest.er1
11704 grep -v '^ *+' conftest.er1 >conftest.err
11706 cat conftest.err >&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } &&
11709 { ac_try='test -z "$ac_c_werror_flag"
11710 || test ! -s conftest.err'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; } &&
11716 { ac_try='test -s conftest$ac_exeext'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11722 am_cv_val_LC_MESSAGES=yes
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11727 am_cv_val_LC_MESSAGES=no
11729 rm -f conftest.err conftest.$ac_objext \
11730 conftest$ac_exeext conftest.$ac_ext
11732 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11733 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11734 if test $am_cv_val_LC_MESSAGES = yes; then
11736 cat >>confdefs.h <<\_ACEOF
11737 #define HAVE_LC_MESSAGES 1
11744 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11745 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11746 if test "${am_cv_langinfo_codeset+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 cat >conftest.$ac_ext <<_ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11755 #include <langinfo.h>
11759 char* cs = nl_langinfo(CODESET);
11764 rm -f conftest.$ac_objext conftest$ac_exeext
11765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11766 (eval $ac_link) 2>conftest.er1
11768 grep -v '^ *+' conftest.er1 >conftest.err
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } &&
11773 { ac_try='test -z "$ac_c_werror_flag"
11774 || test ! -s conftest.err'
11775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776 (eval $ac_try) 2>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; }; then
11786 am_cv_langinfo_codeset=yes
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11791 am_cv_langinfo_codeset=no
11793 rm -f conftest.err conftest.$ac_objext \
11794 conftest$ac_exeext conftest.$ac_ext
11797 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11798 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11799 if test $am_cv_langinfo_codeset = yes; then
11801 cat >>confdefs.h <<\_ACEOF
11802 #define HAVE_LANGINFO_CODESET 1
11808 # We will need to find libiberty.h and ansidecl.h
11809 saved_CFLAGS="$CFLAGS"
11810 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11850 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11851 strsignal strstr strverscmp \
11852 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11853 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
11855 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11856 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11857 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11858 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 cat >conftest.$ac_ext <<_ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11868 #define $ac_tr_decl 1
11870 #include "ansidecl.h"
11871 #include "system.h"
11877 char *(*pfn) = (char *(*)) $ac_func ;
11883 rm -f conftest.$ac_objext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11885 (eval $ac_compile) 2>conftest.er1
11887 grep -v '^ *+' conftest.er1 >conftest.err
11889 cat conftest.err >&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
11892 { ac_try='test -z "$ac_c_werror_flag"
11893 || test ! -s conftest.err'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; } &&
11899 { ac_try='test -s conftest.$ac_objext'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 eval "gcc_cv_have_decl_$ac_func=yes"
11907 echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11910 eval "gcc_cv_have_decl_$ac_func=no"
11912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11915 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11916 echo "$as_me:$LINENO: result: yes" >&5
11917 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11918 #define $ac_tr_decl 1
11922 echo "$as_me:$LINENO: result: no" >&5
11923 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11924 #define $ac_tr_decl 0
11935 for ac_func in getrlimit setrlimit getrusage
11937 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11938 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11939 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11940 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 cat >conftest.$ac_ext <<_ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11950 #define $ac_tr_decl 1
11952 #include "ansidecl.h"
11953 #include "system.h"
11954 #ifdef HAVE_SYS_RESOURCE_H
11955 #include <sys/resource.h>
11963 char *(*pfn) = (char *(*)) $ac_func ;
11969 rm -f conftest.$ac_objext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11971 (eval $ac_compile) 2>conftest.er1
11973 grep -v '^ *+' conftest.er1 >conftest.err
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } &&
11978 { ac_try='test -z "$ac_c_werror_flag"
11979 || test ! -s conftest.err'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11991 eval "gcc_cv_have_decl_$ac_func=yes"
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 eval "gcc_cv_have_decl_$ac_func=no"
11998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12001 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12002 echo "$as_me:$LINENO: result: yes" >&5
12003 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12004 #define $ac_tr_decl 1
12008 echo "$as_me:$LINENO: result: no" >&5
12009 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12010 #define $ac_tr_decl 0
12018 cat >conftest.$ac_ext <<_ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12025 #include "ansidecl.h"
12026 #include "system.h"
12027 #ifdef HAVE_SYS_RESOURCE_H
12028 #include <sys/resource.h>
12039 rm -f conftest.$ac_objext
12040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12041 (eval $ac_compile) 2>conftest.er1
12043 grep -v '^ *+' conftest.er1 >conftest.err
12045 cat conftest.err >&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } &&
12048 { ac_try='test -z "$ac_c_werror_flag"
12049 || test ! -s conftest.err'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; } &&
12055 { ac_try='test -s conftest.$ac_objext'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12067 cat >>confdefs.h <<\_ACEOF
12068 #define rlim_t long
12072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12074 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12075 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12076 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12077 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12079 for ac_func in ldgetname
12081 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12082 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12083 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12084 if eval "test \"\${gcc_cv_have_decl_$ac_func+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 #define $ac_tr_decl 1
12096 #include "ansidecl.h"
12097 #include "system.h"
12098 #ifdef HAVE_LDFCN_H
12109 char *(*pfn) = (char *(*)) $ac_func ;
12115 rm -f conftest.$ac_objext
12116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117 (eval $ac_compile) 2>conftest.er1
12119 grep -v '^ *+' conftest.er1 >conftest.err
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
12124 { ac_try='test -z "$ac_c_werror_flag"
12125 || test ! -s conftest.err'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; } &&
12131 { ac_try='test -s conftest.$ac_objext'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 eval "gcc_cv_have_decl_$ac_func=yes"
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 eval "gcc_cv_have_decl_$ac_func=no"
12144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12147 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12148 echo "$as_me:$LINENO: result: yes" >&5
12149 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12150 #define $ac_tr_decl 1
12154 echo "$as_me:$LINENO: result: no" >&5
12155 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12156 #define $ac_tr_decl 0
12165 for ac_func in times
12167 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12168 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12169 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12170 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 cat >conftest.$ac_ext <<_ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12180 #define $ac_tr_decl 1
12182 #include "ansidecl.h"
12183 #include "system.h"
12184 #ifdef HAVE_SYS_TIMES_H
12185 #include <sys/times.h>
12193 char *(*pfn) = (char *(*)) $ac_func ;
12199 rm -f conftest.$ac_objext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201 (eval $ac_compile) 2>conftest.er1
12203 grep -v '^ *+' conftest.er1 >conftest.err
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -z "$ac_c_werror_flag"
12209 || test ! -s conftest.err'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 eval "gcc_cv_have_decl_$ac_func=yes"
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 eval "gcc_cv_have_decl_$ac_func=no"
12228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12231 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12232 echo "$as_me:$LINENO: result: yes" >&5
12233 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12234 #define $ac_tr_decl 1
12238 echo "$as_me:$LINENO: result: no" >&5
12239 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12240 #define $ac_tr_decl 0
12249 for ac_func in sigaltstack
12251 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12252 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12253 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12254 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 cat >conftest.$ac_ext <<_ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12264 #define $ac_tr_decl 1
12266 #include "ansidecl.h"
12267 #include "system.h"
12268 #include <signal.h>
12275 char *(*pfn) = (char *(*)) $ac_func ;
12281 rm -f conftest.$ac_objext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283 (eval $ac_compile) 2>conftest.er1
12285 grep -v '^ *+' conftest.er1 >conftest.err
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try='test -z "$ac_c_werror_flag"
12291 || test ! -s conftest.err'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try='test -s conftest.$ac_objext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 eval "gcc_cv_have_decl_$ac_func=yes"
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12308 eval "gcc_cv_have_decl_$ac_func=no"
12310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12313 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12314 echo "$as_me:$LINENO: result: yes" >&5
12315 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12316 #define $ac_tr_decl 1
12320 echo "$as_me:$LINENO: result: no" >&5
12321 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12322 #define $ac_tr_decl 0
12330 # More time-related stuff.
12331 echo "$as_me:$LINENO: checking for struct tms" >&5
12332 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12333 if test "${ac_cv_struct_tms+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 cat >conftest.$ac_ext <<_ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12344 #include "ansidecl.h"
12345 #include "system.h"
12346 #ifdef HAVE_SYS_TIMES_H
12347 #include <sys/times.h>
12358 rm -f conftest.$ac_objext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360 (eval $ac_compile) 2>conftest.er1
12362 grep -v '^ *+' conftest.er1 >conftest.err
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -z "$ac_c_werror_flag"
12368 || test ! -s conftest.err'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try='test -s conftest.$ac_objext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12380 ac_cv_struct_tms=yes
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12385 ac_cv_struct_tms=no
12387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12389 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12390 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12391 if test $ac_cv_struct_tms = yes; then
12393 cat >>confdefs.h <<\_ACEOF
12394 #define HAVE_STRUCT_TMS 1
12399 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12400 # revisit after autoconf 2.50.
12401 echo "$as_me:$LINENO: checking for clock_t" >&5
12402 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12403 if test "${gcc_cv_type_clock_t+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 cat >conftest.$ac_ext <<_ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12414 #include "ansidecl.h"
12415 #include "system.h"
12425 rm -f conftest.$ac_objext
12426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427 (eval $ac_compile) 2>conftest.er1
12429 grep -v '^ *+' conftest.er1 >conftest.err
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
12434 { ac_try='test -z "$ac_c_werror_flag"
12435 || test ! -s conftest.err'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; } &&
12441 { ac_try='test -s conftest.$ac_objext'
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; }; then
12447 gcc_cv_type_clock_t=yes
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12452 gcc_cv_type_clock_t=no
12454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12456 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12457 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12458 if test $gcc_cv_type_clock_t = yes; then
12460 cat >>confdefs.h <<\_ACEOF
12461 #define HAVE_CLOCK_T 1
12466 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12467 CFLAGS="$saved_CFLAGS"
12469 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12470 if test "${enable_initfini_array+set}" = set; then
12471 enableval="$enable_initfini_array"
12475 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12476 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12477 if test "${gcc_cv_initfini_array+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 if test "$cross_compiling" = yes; then
12481 gcc_cv_initfini_array=no
12483 cat >conftest.$ac_ext <<_ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12491 int main (void) { return x; }
12492 int foo (void) { x = 0; }
12493 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12495 rm -f conftest$ac_exeext
12496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497 (eval $ac_link) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 (eval $ac_try) 2>&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; }; then
12506 gcc_cv_initfini_array=yes
12508 echo "$as_me: program exited with status $ac_status" >&5
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12512 ( exit $ac_status )
12513 gcc_cv_initfini_array=no
12515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12518 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12519 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12520 enable_initfini_array=$gcc_cv_initfini_array
12523 if test $enable_initfini_array = yes; then
12525 cat >>confdefs.h <<\_ACEOF
12526 #define HAVE_INITFINI_ARRAY 1
12531 # mkdir takes a single argument on some systems.
12532 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12533 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12534 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 cat >conftest.$ac_ext <<_ACEOF
12540 cat confdefs.h >>conftest.$ac_ext
12541 cat >>conftest.$ac_ext <<_ACEOF
12542 /* end confdefs.h. */
12544 #include <sys/types.h>
12545 #ifdef HAVE_SYS_STAT_H
12546 # include <sys/stat.h>
12548 #ifdef HAVE_UNISTD_H
12549 # include <unistd.h>
12551 #ifdef HAVE_DIRECT_H
12552 # include <direct.h>
12562 rm -f conftest.$ac_objext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12564 (eval $ac_compile) 2>conftest.er1
12566 grep -v '^ *+' conftest.er1 >conftest.err
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try='test -z "$ac_c_werror_flag"
12572 || test ! -s conftest.err'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } &&
12578 { ac_try='test -s conftest.$ac_objext'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 gcc_cv_mkdir_takes_one_arg=no
12586 echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12589 gcc_cv_mkdir_takes_one_arg=yes
12591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12593 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12594 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12595 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12597 cat >>confdefs.h <<\_ACEOF
12598 #define MKDIR_TAKES_ONE_ARG 1
12610 # With Setjmp/Longjmp based exception handling.
12611 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12612 if test "${enable_sjlj_exceptions+set}" = set; then
12613 enableval="$enable_sjlj_exceptions"
12616 if test $enableval != yes; then
12617 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12618 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12623 force_sjlj_exceptions=yes
12627 force_sjlj_exceptions=yes
12631 force_sjlj_exceptions=no
12635 if test $force_sjlj_exceptions = yes; then
12636 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12638 cat >>confdefs.h <<_ACEOF
12639 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12644 # For platforms with the unwind ABI which includes an unwind library,
12645 # libunwind, we can choose to use the system libunwind.
12647 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12648 if test "${with_system_libunwind+set}" = set; then
12649 withval="$with_system_libunwind"
12653 # config.gcc also contains tests of with_system_libunwind.
12654 if test x$with_system_libunwind = xyes; then
12656 cat >>confdefs.h <<\_ACEOF
12657 #define HAVE_GETIPINFO 1
12662 # --------------------------------------------------------
12663 # Build, host, and target specific configuration fragments
12664 # --------------------------------------------------------
12666 # Collect build-machine-specific information.
12667 . ${srcdir}/config.build
12669 # Collect host-machine-specific information.
12670 . ${srcdir}/config.host
12674 # Collect target-machine-specific information.
12675 . ${srcdir}/config.gcc
12677 extra_objs="${host_extra_objs} ${extra_objs}"
12678 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12680 # Default the target-machine variables that were not explicitly set.
12681 if test x"$tm_file" = x
12682 then tm_file=$cpu_type/$cpu_type.h; fi
12684 if test x"$extra_headers" = x
12685 then extra_headers=; fi
12687 if test x$md_file = x
12688 then md_file=$cpu_type/$cpu_type.md; fi
12690 if test x$out_file = x
12691 then out_file=$cpu_type/$cpu_type.c; fi
12693 if test x"$tmake_file" = x
12694 then tmake_file=$cpu_type/t-$cpu_type
12697 if test x"$dwarf2" = xyes
12698 then tm_file="$tm_file tm-dwarf2.h"
12701 # Say what files are being used for the output code and MD file.
12702 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12703 echo "Using \`$srcdir/config/$md_file' as machine description file."
12705 # If any of the xm_file variables contain nonexistent files, warn
12706 # about them and drop them.
12709 for x in $build_xm_file; do
12710 if test -f $srcdir/config/$x
12712 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12713 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12716 build_xm_file="$bx"
12719 for x in $host_xm_file; do
12720 if test -f $srcdir/config/$x
12722 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12723 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12729 for x in $xm_file; do
12730 if test -f $srcdir/config/$x
12732 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12733 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12739 for f in $tm_file; do
12742 if test $count = ax; then
12743 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12745 echo "Using the following target machine macro files:"
12746 for f in $tm_file; do
12747 echo " $srcdir/config/$f"
12751 if test x$need_64bit_hwint = xyes; then
12753 cat >>confdefs.h <<\_ACEOF
12754 #define NEED_64BIT_HOST_WIDE_INT 1
12759 if test x$use_long_long_for_widest_fast_int = xyes; then
12761 cat >>confdefs.h <<\_ACEOF
12762 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12768 for f in $host_xm_file; do
12771 if test $count = a; then
12773 elif test $count = ax; then
12774 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12776 echo "Using the following host machine macro files:"
12777 for f in $host_xm_file; do
12778 echo " $srcdir/config/$f"
12781 echo "Using ${out_host_hook_obj} for host machine hooks."
12783 if test "$host_xm_file" != "$build_xm_file"; then
12785 for f in $build_xm_file; do
12788 if test $count = a; then
12790 elif test $count = ax; then
12791 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12793 echo "Using the following build machine macro files:"
12794 for f in $build_xm_file; do
12795 echo " $srcdir/config/$f"
12801 powerpc*-*-darwin*)
12802 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12803 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12804 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12807 cat >conftest.$ac_ext <<_ACEOF
12809 #include <sys/cdefs.h>
12810 #include <sys/signal.h>
12811 #include <ucontext.h>
12812 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12815 rm -f conftest.$ac_objext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12817 (eval $ac_compile) 2>conftest.er1
12819 grep -v '^ *+' conftest.er1 >conftest.err
12821 cat conftest.err >&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
12824 { ac_try='test -z "$ac_c_werror_flag"
12825 || test ! -s conftest.err'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; } &&
12831 { ac_try='test -s conftest.$ac_objext'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 gcc_cv_mcontext_underscores=no
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12842 gcc_cv_mcontext_underscores=yes
12844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12846 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12847 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12848 if test $gcc_cv_mcontext_underscores = yes; then
12850 cat >>confdefs.h <<\_ACEOF
12851 #define HAS_MCONTEXT_T_UNDERSCORES
12862 # Check if a valid thread package
12863 case ${enable_threads} in
12866 target_thread_file='single'
12870 target_thread_file='single'
12872 aix | dce | gnat | irix | posix | posix95 | rtems | \
12873 single | solaris | vxworks | win32 | mipssde)
12874 target_thread_file=${enable_threads}
12877 echo "${enable_threads} is an unknown thread package" 1>&2
12882 if test x${thread_file} = x; then
12883 # No thread file set by target-specific clauses in config.gcc,
12884 # so use file chosen by default logic above
12885 thread_file=${target_thread_file}
12888 # Make gthr-default.h if we have a thread file.
12890 if test $thread_file != single; then
12891 rm -f gthr-default.h
12892 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12893 gthread_flags=-DHAVE_GTHR_DEFAULT
12902 if test x$enable___cxa_atexit = xyes || \
12903 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12904 if test x$host = x$target; then
12906 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12907 # keyed to flag_use_cxa_atexit
12912 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12913 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12914 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 cat >conftest.$ac_ext <<_ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12923 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12925 #define __cxa_atexit innocuous___cxa_atexit
12927 /* System header to define __stub macros and hopefully few prototypes,
12928 which can conflict with char __cxa_atexit (); below.
12929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12930 <limits.h> exists even on freestanding compilers. */
12933 # include <limits.h>
12935 # include <assert.h>
12938 #undef __cxa_atexit
12940 /* Override any gcc2 internal prototype to avoid an error. */
12945 /* We use char because int might match the return type of a gcc2
12946 builtin and then its argument prototype would still apply. */
12947 char __cxa_atexit ();
12948 /* The GNU C library defines this for functions which it implements
12949 to always fail with ENOSYS. Some functions are actually named
12950 something starting with __ and the normal name is an alias. */
12951 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12954 char (*f) () = __cxa_atexit;
12963 return f != __cxa_atexit;
12968 rm -f conftest.$ac_objext conftest$ac_exeext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12970 (eval $ac_link) 2>conftest.er1
12972 grep -v '^ *+' conftest.er1 >conftest.err
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -z "$ac_c_werror_flag"
12978 || test ! -s conftest.err'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; } &&
12984 { ac_try='test -s conftest$ac_exeext'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; }; then
12990 ac_cv_func___cxa_atexit=yes
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12995 ac_cv_func___cxa_atexit=no
12997 rm -f conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
13000 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13001 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13002 if test $ac_cv_func___cxa_atexit = yes; then
13005 echo "__cxa_atexit can't be enabled on this target"
13011 # We can't check for __cxa_atexit when building a cross, so assume
13015 if test x$use_cxa_atexit = xyes; then
13017 cat >>confdefs.h <<\_ACEOF
13018 #define DEFAULT_USE_CXA_ATEXIT 2
13025 if test x$with_system_libunwind = xyes; then
13026 if test x$host = x$target; then
13027 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13028 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13029 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 ac_func_search_save_LIBS=$LIBS
13033 ac_cv_search__Unwind_GetIPInfo=no
13034 cat >conftest.$ac_ext <<_ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13041 /* Override any gcc2 internal prototype to avoid an error. */
13045 /* We use char because int might match the return type of a gcc2
13046 builtin and then its argument prototype would still apply. */
13047 char _Unwind_GetIPInfo ();
13051 _Unwind_GetIPInfo ();
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058 (eval $ac_link) 2>conftest.er1
13060 grep -v '^ *+' conftest.er1 >conftest.err
13062 cat conftest.err >&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } &&
13065 { ac_try='test -z "$ac_c_werror_flag"
13066 || test ! -s conftest.err'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; } &&
13072 { ac_try='test -s conftest$ac_exeext'
13073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 (eval $ac_try) 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
13078 ac_cv_search__Unwind_GetIPInfo="none required"
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13084 rm -f conftest.err conftest.$ac_objext \
13085 conftest$ac_exeext conftest.$ac_ext
13086 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
13087 for ac_lib in unwind; do
13088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13089 cat >conftest.$ac_ext <<_ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13096 /* Override any gcc2 internal prototype to avoid an error. */
13100 /* We use char because int might match the return type of a gcc2
13101 builtin and then its argument prototype would still apply. */
13102 char _Unwind_GetIPInfo ();
13106 _Unwind_GetIPInfo ();
13111 rm -f conftest.$ac_objext conftest$ac_exeext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113 (eval $ac_link) 2>conftest.er1
13115 grep -v '^ *+' conftest.er1 >conftest.err
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try='test -z "$ac_c_werror_flag"
13121 || test ! -s conftest.err'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; } &&
13127 { ac_try='test -s conftest$ac_exeext'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13133 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
13136 echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13140 rm -f conftest.err conftest.$ac_objext \
13141 conftest$ac_exeext conftest.$ac_ext
13144 LIBS=$ac_func_search_save_LIBS
13146 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13147 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13148 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
13149 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13158 if test x$use_getipinfo = xyes; then
13160 cat >>confdefs.h <<\_ACEOF
13161 #define HAVE_GETIPINFO 1
13165 echo "The system unwind library does not support _Unwind_GetIPInfo."
13168 # Look for a file containing extra machine modes.
13169 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13170 extra_modes_file='$(srcdir)'/config/${extra_modes}
13173 cat >>confdefs.h <<_ACEOF
13174 #define EXTRA_MODES_FILE "config/$extra_modes"
13179 # Convert extra_options into a form suitable for Makefile use.
13181 for f in $extra_options; do
13182 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13186 # auto-host.h is the file containing items generated by autoconf and is
13187 # the first file included by config.h.
13188 # If host=build, it is correct to have bconfig include auto-host.h
13189 # as well. If host!=build, we are in error and need to do more
13190 # work to find out the build config parameters.
13191 if test x$host = x$build
13193 build_auto=auto-host.h
13195 # We create a subdir, then run autoconf in the subdir.
13196 # To prevent recursion we set host and build for the new
13197 # invocation of configure to the build for this invocation
13204 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13205 *) realsrcdir=../${srcdir};;
13207 saved_CFLAGS="${CFLAGS}"
13208 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13209 ${realsrcdir}/configure \
13210 --enable-languages=${enable_languages-all} \
13211 --target=$target_alias --host=$build_alias --build=$build_alias
13212 CFLAGS="${saved_CFLAGS}"
13214 # We just finished tests for the build machine, so rename
13215 # the file auto-build.h in the gcc directory.
13216 mv auto-host.h ../auto-build.h
13219 build_auto=auto-build.h
13223 tm_file="${tm_file} defaults.h"
13224 tm_p_file="${tm_p_file} tm-preds.h"
13225 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13226 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13227 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13228 # put this back in temporarily.
13229 xm_file="auto-host.h ansidecl.h ${xm_file}"
13235 # Compile in configure arguments.
13236 if test -f configargs.h ; then
13237 # Being re-configured.
13238 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13239 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13241 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13244 # Double all backslashes and backslash all quotes to turn
13245 # gcc_config_arguments into a C string.
13246 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13247 $gcc_config_arguments
13249 gcc_config_arguments_str=`cat conftest.out`
13252 cat > configargs.h <<EOF
13253 /* Generated automatically. */
13254 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13255 static const char thread_model[] = "$thread_file";
13257 static const struct {
13258 const char *name, *value;
13259 } configure_default_options[] = $configure_default_options;
13262 # Internationalization
13263 # If we haven't got the data from the intl directory,
13264 # assume NLS is disabled.
13273 if test -f ../intl/config.intl; then
13274 . ../intl/config.intl
13276 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13277 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13278 if test x"$USE_NLS" != xyes; then
13279 echo "$as_me:$LINENO: result: no" >&5
13280 echo "${ECHO_T}no" >&6
13282 echo "$as_me:$LINENO: result: yes" >&5
13283 echo "${ECHO_T}yes" >&6
13285 cat >>confdefs.h <<\_ACEOF
13286 #define ENABLE_NLS 1
13290 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13291 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13292 # Look for .po and .gmo files in the source directory.
13295 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13296 # If there aren't any .gmo files the shell will give us the
13297 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13299 case "$cat" in *\**)
13302 # The quadruple backslash is collapsed to a double backslash
13303 # by the backticks, then collapsed again by the double quotes,
13304 # leaving us with one backslash in the sed expression (right
13305 # before the dot that mustn't act as a wildcard).
13306 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13307 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13308 # The user is allowed to set LINGUAS to a list of languages to
13309 # install catalogs for. If it's empty that means "all of them."
13310 if test "x$LINGUAS" = x; then
13311 CATALOGS="$CATALOGS $cat"
13312 XLINGUAS="$XLINGUAS $lang"
13314 case "$LINGUAS" in *$lang*)
13315 CATALOGS="$CATALOGS $cat"
13316 XLINGUAS="$XLINGUAS $lang"
13321 LINGUAS="$XLINGUAS"
13322 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13323 echo "${ECHO_T}$LINGUAS" >&6
13336 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13337 # -liconv on the link line twice.
13338 case "$LIBINTL" in *$LIBICONV*)
13342 # Check whether --enable-secureplt or --disable-secureplt was given.
13343 if test "${enable_secureplt+set}" = set; then
13344 enableval="$enable_secureplt"
13348 # Windows32 Registry support for specifying GCC installation paths.
13349 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13350 if test "${enable_win32_registry+set}" = set; then
13351 enableval="$enable_win32_registry"
13356 win32 | pe | cygwin* | mingw32* | uwin*)
13357 if test "x$enable_win32_registry" != xno; then
13358 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13359 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13360 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 ac_func_search_save_LIBS=$LIBS
13364 ac_cv_search_RegOpenKeyExA=no
13365 cat >conftest.$ac_ext <<_ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13372 /* Override any gcc2 internal prototype to avoid an error. */
13376 /* We use char because int might match the return type of a gcc2
13377 builtin and then its argument prototype would still apply. */
13378 char RegOpenKeyExA ();
13387 rm -f conftest.$ac_objext conftest$ac_exeext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13389 (eval $ac_link) 2>conftest.er1
13391 grep -v '^ *+' conftest.er1 >conftest.err
13393 cat conftest.err >&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } &&
13396 { ac_try='test -z "$ac_c_werror_flag"
13397 || test ! -s conftest.err'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; } &&
13403 { ac_try='test -s conftest$ac_exeext'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; }; then
13409 ac_cv_search_RegOpenKeyExA="none required"
13411 echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13415 rm -f conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13417 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13418 for ac_lib in advapi32; do
13419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13420 cat >conftest.$ac_ext <<_ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13427 /* Override any gcc2 internal prototype to avoid an error. */
13431 /* We use char because int might match the return type of a gcc2
13432 builtin and then its argument prototype would still apply. */
13433 char RegOpenKeyExA ();
13442 rm -f conftest.$ac_objext conftest$ac_exeext
13443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13444 (eval $ac_link) 2>conftest.er1
13446 grep -v '^ *+' conftest.er1 >conftest.err
13448 cat conftest.err >&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
13451 { ac_try='test -z "$ac_c_werror_flag"
13452 || test ! -s conftest.err'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; } &&
13458 { ac_try='test -s conftest$ac_exeext'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; }; then
13464 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13467 echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13471 rm -f conftest.err conftest.$ac_objext \
13472 conftest$ac_exeext conftest.$ac_ext
13475 LIBS=$ac_func_search_save_LIBS
13477 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13478 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13479 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13480 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13483 enable_win32_registry=no
13488 if test "x$enable_win32_registry" != xno; then
13490 cat >>confdefs.h <<\_ACEOF
13491 #define ENABLE_WIN32_REGISTRY 1
13495 if test "x$enable_win32_registry" != xyes \
13496 && test "x$enable_win32_registry" != x; then
13498 cat >>confdefs.h <<_ACEOF
13499 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13507 # Get an absolute path to the GCC top-level source directory
13508 holddir=`${PWDCMD-pwd}`
13510 topdir=`${PWDCMD-pwd}`
13513 # Conditionalize the makefile for this host machine.
13515 for f in ${host_xmake_file}
13517 if test -f ${srcdir}/config/$f
13519 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13523 # Conditionalize the makefile for this target machine.
13525 for f in ${tmake_file}
13527 if test -f ${srcdir}/config/$f
13529 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13532 tmake_file="${tmake_file_}"
13534 # This is a terrible hack which will go away some day.
13535 host_cc_for_libada=${CC}
13538 out_object_file=`basename $out_file .c`.o
13540 tm_file_list="options.h"
13541 tm_include_list="options.h"
13542 for f in $tm_file; do
13545 f=`echo $f | sed 's/^..//'`
13546 tm_file_list="${tm_file_list} $f"
13547 tm_include_list="${tm_include_list} $f"
13550 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13551 tm_include_list="${tm_include_list} $f"
13554 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13555 tm_include_list="${tm_include_list} config/$f"
13562 for f in $tm_p_file; do
13565 tm_p_file_list="${tm_p_file_list} $f"
13566 tm_p_include_list="${tm_p_include_list} $f"
13569 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13570 tm_p_include_list="${tm_p_include_list} config/$f"
13576 for f in $xm_file; do
13579 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13580 xm_include_list="${xm_include_list} $f"
13583 xm_file_list="${xm_file_list} $f"
13584 xm_include_list="${xm_include_list} $f"
13587 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13588 xm_include_list="${xm_include_list} config/$f"
13594 host_xm_include_list=
13595 for f in $host_xm_file; do
13598 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13599 host_xm_include_list="${host_xm_include_list} $f"
13602 host_xm_file_list="${host_xm_file_list} $f"
13603 host_xm_include_list="${host_xm_include_list} $f"
13606 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13607 host_xm_include_list="${host_xm_include_list} config/$f"
13612 build_xm_file_list=
13613 for f in $build_xm_file; do
13616 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13617 build_xm_include_list="${build_xm_include_list} $f"
13619 auto-build.h | auto-host.h )
13620 build_xm_file_list="${build_xm_file_list} $f"
13621 build_xm_include_list="${build_xm_include_list} $f"
13624 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13625 build_xm_include_list="${build_xm_include_list} config/$f"
13630 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13631 # cross-compiler which does not use the native headers and libraries.
13632 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13635 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13637 if test "x$with_build_sysroot" != x; then
13638 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13640 # This value is used, even on a native system, because
13641 # CROSS_SYSTEM_HEADER_DIR is just
13642 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13643 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13646 if test x$host != x$target
13648 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13650 SYSTEM_HEADER_DIR=$build_system_header_dir
13651 case "$host","$target" in
13652 # Darwin crosses can use the host system's libraries and headers,
13653 # because of the fat library support. Of course, it must be the
13654 # same version of Darwin on both sides. Allow the user to
13655 # just say --target=foo-darwin without a version number to mean
13656 # "the version on this system".
13657 *-*-darwin*,*-*-darwin*)
13658 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13659 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13660 if test $hostos = $targetos -o $targetos = darwin ; then
13662 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13667 i?86-*-*,x86_64-*-* \
13668 | powerpc*-*-*,powerpc64*-*-*)
13669 CROSS="$CROSS -DNATIVE_CROSS" ;;
13671 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13672 SYSTEM_HEADER_DIR=$build_system_header_dir
13675 # If this is a cross-compiler that does not
13676 # have its own set of headers then define
13679 # If this is using newlib, without having the headers available now,
13680 # then define inhibit_libc in LIBGCC2_CFLAGS.
13681 # This prevents libgcc2 from containing any code which requires libc
13683 : ${inhibit_libc=false}
13684 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13685 test x$with_newlib = xyes ; } &&
13686 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13691 # When building gcc with a cross-compiler, we need to adjust things so
13692 # that the generator programs are still built with the native compiler.
13693 # Also, we cannot run fixincludes or fix-header.
13695 # These are the normal (build=host) settings:
13696 CC_FOR_BUILD='$(CC)'
13697 BUILD_CFLAGS='$(ALL_CFLAGS)'
13698 STMP_FIXINC=stmp-fixinc
13700 # Possibly disable fixproto, on a per-target basis.
13701 case ${use_fixproto} in
13706 STMP_FIXPROTO=stmp-fixproto
13711 # And these apply if build != host, or we are generating coverage data
13712 if test x$build != x$host || test "x$coverage_flags" != x
13714 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13716 if test "x$TARGET_SYSTEM_ROOT" = x; then
13717 if test "x$STMP_FIXPROTO" != x; then
13718 STMP_FIXPROTO=stmp-install-fixproto
13723 # Expand extra_headers to include complete path.
13724 # This substitutes for lots of t-* files.
13725 extra_headers_list=
13726 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13727 for file in ${extra_headers} ; do
13728 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13731 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13732 if test x"$use_gcc_tgmath" = xyes
13733 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13736 # Define collect2 in Makefile.
13737 case $host_can_use_collect2 in
13739 *) collect2='collect2$(exeext)' ;;
13743 # Add a definition of USE_COLLECT2 if system wants one.
13744 case $use_collect2 in
13745 no) use_collect2= ;;
13748 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13749 xm_defines="${xm_defines} USE_COLLECT2"
13750 case $host_can_use_collect2 in
13752 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13753 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13754 { (exit 1); exit 1; }; }
13760 # ---------------------------
13761 # Assembler & linker features
13762 # ---------------------------
13764 # Identify the assembler which will work hand-in-glove with the newly
13765 # built GCC, so that we can examine its features. This is the assembler
13766 # which will be driven by the driver program.
13768 # If build != host, and we aren't building gas in-tree, we identify a
13769 # build->target assembler and hope that it will have the same features
13770 # as the host->target assembler we'll be using.
13771 gcc_cv_gas_major_version=
13772 gcc_cv_gas_minor_version=
13773 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13775 if test "${gcc_cv_as+set}" = set; then
13779 if test -x "$DEFAULT_ASSEMBLER"; then
13780 gcc_cv_as="$DEFAULT_ASSEMBLER"
13781 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13782 && test -f ../gas/Makefile \
13783 && test x$build = x$host; then
13784 gcc_cv_as=../gas/as-new$build_exeext
13785 elif test -x as$build_exeext; then
13786 # Build using assembler in the current directory.
13787 gcc_cv_as=./as$build_exeext
13788 elif test -x $AS_FOR_TARGET; then
13789 gcc_cv_as="$AS_FOR_TARGET"
13791 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13792 set dummy $AS_FOR_TARGET; ac_word=$2
13793 echo "$as_me:$LINENO: checking for $ac_word" >&5
13794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13795 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13807 test -z "$as_dir" && as_dir=.
13808 for ac_exec_ext in '' $ac_executable_extensions; do
13809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13810 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13820 gcc_cv_as=$ac_cv_path_gcc_cv_as
13822 if test -n "$gcc_cv_as"; then
13823 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13824 echo "${ECHO_T}$gcc_cv_as" >&6
13826 echo "$as_me:$LINENO: result: no" >&5
13827 echo "${ECHO_T}no" >&6
13834 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13836 case "$ORIGINAL_AS_FOR_TARGET" in
13837 ./as | ./as$build_exeext) ;;
13838 *) ac_config_files="$ac_config_files as:exec-tool.in"
13842 echo "$as_me:$LINENO: checking what assembler to use" >&5
13843 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13844 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13845 # Single tree build which includes gas. We want to prefer it
13846 # over whatever linker top-level may have detected, since
13847 # we'll use what we're building after installation anyway.
13848 echo "$as_me:$LINENO: result: newly built gas" >&5
13849 echo "${ECHO_T}newly built gas" >&6
13851 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13852 for f in $gcc_cv_as_bfd_srcdir/configure \
13853 $gcc_cv_as_gas_srcdir/configure \
13854 $gcc_cv_as_gas_srcdir/configure.in \
13855 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13856 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13857 if test x$gcc_cv_gas_version != x; then
13861 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13862 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13863 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13864 case $gcc_cv_gas_patch_version in
13865 "") gcc_cv_gas_patch_version="0" ;;
13867 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13868 + $gcc_cv_gas_minor_version \) \* 1000 \
13869 + $gcc_cv_gas_patch_version`
13871 in_tree_gas_is_elf=no
13872 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13873 || (grep 'obj_format = multi' ../gas/Makefile \
13874 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13876 in_tree_gas_is_elf=yes
13879 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13880 echo "${ECHO_T}$gcc_cv_as" >&6
13884 # Identify the linker which will work hand-in-glove with the newly
13885 # built GCC, so that we can examine its features. This is the linker
13886 # which will be driven by the driver program.
13888 # If build != host, and we aren't building gas in-tree, we identify a
13889 # build->target linker and hope that it will have the same features
13890 # as the host->target linker we'll be using.
13891 gcc_cv_gld_major_version=
13892 gcc_cv_gld_minor_version=
13893 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13894 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13896 if test "${gcc_cv_ld+set}" = set; then
13900 if test -x "$DEFAULT_LINKER"; then
13901 gcc_cv_ld="$DEFAULT_LINKER"
13902 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13903 && test -f ../ld/Makefile \
13904 && test x$build = x$host; then
13905 gcc_cv_ld=../ld/ld-new$build_exeext
13906 elif test -x collect-ld$build_exeext; then
13907 # Build using linker in the current directory.
13908 gcc_cv_ld=./collect-ld$build_exeext
13909 elif test -x $LD_FOR_TARGET; then
13910 gcc_cv_ld="$LD_FOR_TARGET"
13912 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13913 set dummy $LD_FOR_TARGET; ac_word=$2
13914 echo "$as_me:$LINENO: checking for $ac_word" >&5
13915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13916 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13931 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13941 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13943 if test -n "$gcc_cv_ld"; then
13944 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13945 echo "${ECHO_T}$gcc_cv_ld" >&6
13947 echo "$as_me:$LINENO: result: no" >&5
13948 echo "${ECHO_T}no" >&6
13955 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13957 case "$ORIGINAL_LD_FOR_TARGET" in
13958 ./collect-ld | ./collect-ld$build_exeext) ;;
13959 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
13963 echo "$as_me:$LINENO: checking what linker to use" >&5
13964 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13965 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13966 # Single tree build which includes ld. We want to prefer it
13967 # over whatever linker top-level may have detected, since
13968 # we'll use what we're building after installation anyway.
13969 echo "$as_me:$LINENO: result: newly built ld" >&5
13970 echo "${ECHO_T}newly built ld" >&6
13972 in_tree_ld_is_elf=no
13973 if (grep 'EMUL = .*elf' ../ld/Makefile \
13974 || grep 'EMUL = .*linux' ../ld/Makefile \
13975 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13976 in_tree_ld_is_elf=yes
13978 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
13980 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13981 if test x$gcc_cv_gld_version != x; then
13985 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13986 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13988 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13989 echo "${ECHO_T}$gcc_cv_ld" >&6
13993 # Figure out what nm we will be using.
13994 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13995 if test "${gcc_cv_nm+set}" = set; then
13999 if test -f $gcc_cv_binutils_srcdir/configure.in \
14000 && test -f ../binutils/Makefile \
14001 && test x$build = x$host; then
14002 gcc_cv_nm=../binutils/nm-new$build_exeext
14003 elif test -x nm$build_exeext; then
14004 gcc_cv_nm=./nm$build_exeext
14005 elif test -x $NM_FOR_TARGET; then
14006 gcc_cv_nm="$NM_FOR_TARGET"
14008 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
14009 set dummy $NM_FOR_TARGET; ac_word=$2
14010 echo "$as_me:$LINENO: checking for $ac_word" >&5
14011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14012 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
14020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14024 test -z "$as_dir" && as_dir=.
14025 for ac_exec_ext in '' $ac_executable_extensions; do
14026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14027 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
14028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14037 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
14039 if test -n "$gcc_cv_nm"; then
14040 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14041 echo "${ECHO_T}$gcc_cv_nm" >&6
14043 echo "$as_me:$LINENO: result: no" >&5
14044 echo "${ECHO_T}no" >&6
14051 echo "$as_me:$LINENO: checking what nm to use" >&5
14052 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
14053 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
14054 # Single tree build which includes binutils.
14055 echo "$as_me:$LINENO: result: newly built nm" >&5
14056 echo "${ECHO_T}newly built nm" >&6
14059 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
14060 echo "${ECHO_T}$gcc_cv_nm" >&6
14064 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
14066 case "$ORIGINAL_NM_FOR_TARGET" in
14067 ./nm | ./nm$build_exeext) ;;
14068 *) ac_config_files="$ac_config_files nm:exec-tool.in"
14073 # Figure out what objdump we will be using.
14074 if test "${gcc_cv_objdump+set}" = set; then
14078 if test -f $gcc_cv_binutils_srcdir/configure.in \
14079 && test -f ../binutils/Makefile \
14080 && test x$build = x$host; then
14081 # Single tree build which includes binutils.
14082 gcc_cv_objdump=../binutils/objdump$build_exeext
14083 elif test -x objdump$build_exeext; then
14084 gcc_cv_objdump=./objdump$build_exeext
14085 elif test -x $OBJDUMP_FOR_TARGET; then
14086 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
14088 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
14089 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
14090 echo "$as_me:$LINENO: checking for $ac_word" >&5
14091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14092 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 case $gcc_cv_objdump in
14097 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
14100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101 for as_dir in $PATH
14104 test -z "$as_dir" && as_dir=.
14105 for ac_exec_ext in '' $ac_executable_extensions; do
14106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14107 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
14108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14117 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
14119 if test -n "$gcc_cv_objdump"; then
14120 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14121 echo "${ECHO_T}$gcc_cv_objdump" >&6
14123 echo "$as_me:$LINENO: result: no" >&5
14124 echo "${ECHO_T}no" >&6
14131 echo "$as_me:$LINENO: checking what objdump to use" >&5
14132 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
14133 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
14134 # Single tree build which includes binutils.
14135 echo "$as_me:$LINENO: result: newly built objdump" >&5
14136 echo "${ECHO_T}newly built objdump" >&6
14137 elif test x$gcc_cv_objdump = x; then
14138 echo "$as_me:$LINENO: result: not found" >&5
14139 echo "${ECHO_T}not found" >&6
14141 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
14142 echo "${ECHO_T}$gcc_cv_objdump" >&6
14145 # Figure out what assembler alignment features are present.
14146 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
14147 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
14148 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
14149 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 gcc_cv_as_balign_and_p2align=no
14152 if test $in_tree_gas = yes; then
14153 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
14154 then gcc_cv_as_balign_and_p2align=yes
14156 elif test x$gcc_cv_as != x; then
14158 .p2align 2' > conftest.s
14159 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; }
14166 gcc_cv_as_balign_and_p2align=yes
14168 echo "configure: failed program was" >&5
14171 rm -f conftest.o conftest.s
14174 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
14175 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
14176 if test $gcc_cv_as_balign_and_p2align = yes; then
14178 cat >>confdefs.h <<\_ACEOF
14179 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
14184 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
14185 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
14186 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
14187 echo $ECHO_N "(cached) $ECHO_C" >&6
14189 gcc_cv_as_max_skip_p2align=no
14190 if test $in_tree_gas = yes; then
14191 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14192 then gcc_cv_as_max_skip_p2align=yes
14194 elif test x$gcc_cv_as != x; then
14195 echo '.p2align 4,,7' > conftest.s
14196 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; }
14203 gcc_cv_as_max_skip_p2align=yes
14205 echo "configure: failed program was" >&5
14208 rm -f conftest.o conftest.s
14211 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
14212 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
14213 if test $gcc_cv_as_max_skip_p2align = yes; then
14215 cat >>confdefs.h <<\_ACEOF
14216 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
14221 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
14222 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
14223 if test "${gcc_cv_as_literal16+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 gcc_cv_as_literal16=no
14227 if test $in_tree_gas = yes; then
14228 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
14229 then gcc_cv_as_literal16=yes
14231 elif test x$gcc_cv_as != x; then
14232 echo '.literal16' > conftest.s
14233 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235 (eval $ac_try) 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; }
14240 gcc_cv_as_literal16=yes
14242 echo "configure: failed program was" >&5
14245 rm -f conftest.o conftest.s
14248 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
14249 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
14250 if test $gcc_cv_as_literal16 = yes; then
14252 cat >>confdefs.h <<\_ACEOF
14253 #define HAVE_GAS_LITERAL16 1
14258 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
14259 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
14260 if test "${gcc_cv_as_subsection_m1+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 gcc_cv_as_subsection_m1=no
14264 if test $in_tree_gas = yes; then
14265 if test $in_tree_gas_is_elf = yes \
14266 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14267 then gcc_cv_as_subsection_m1=yes
14269 elif test x$gcc_cv_as != x; then
14270 echo 'conftest_label1: .word 0
14272 conftest_label2: .word 0
14273 .previous' > conftest.s
14274 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }
14281 if test x$gcc_cv_nm != x; then
14282 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
14283 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
14284 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
14286 else gcc_cv_as_subsection_m1=yes
14288 rm -f conftest.nm1 conftest.nm2
14291 echo "configure: failed program was" >&5
14294 rm -f conftest.o conftest.s
14297 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
14298 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
14299 if test $gcc_cv_as_subsection_m1 = yes; then
14301 cat >>confdefs.h <<\_ACEOF
14302 #define HAVE_GAS_SUBSECTION_ORDERING 1
14307 echo "$as_me:$LINENO: checking assembler for .weak" >&5
14308 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
14309 if test "${gcc_cv_as_weak+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14313 if test $in_tree_gas = yes; then
14314 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
14315 then gcc_cv_as_weak=yes
14317 elif test x$gcc_cv_as != x; then
14318 echo ' .weak foobar' > conftest.s
14319 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }
14328 echo "configure: failed program was" >&5
14331 rm -f conftest.o conftest.s
14334 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
14335 echo "${ECHO_T}$gcc_cv_as_weak" >&6
14336 if test $gcc_cv_as_weak = yes; then
14338 cat >>confdefs.h <<\_ACEOF
14339 #define HAVE_GAS_WEAK 1
14344 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
14345 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
14346 if test "${gcc_cv_as_weakref+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 gcc_cv_as_weakref=no
14350 if test $in_tree_gas = yes; then
14351 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14352 then gcc_cv_as_weakref=yes
14354 elif test x$gcc_cv_as != x; then
14355 echo ' .weakref foobar, barfnot' > conftest.s
14356 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }
14363 gcc_cv_as_weakref=yes
14365 echo "configure: failed program was" >&5
14368 rm -f conftest.o conftest.s
14371 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
14372 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
14373 if test $gcc_cv_as_weakref = yes; then
14375 cat >>confdefs.h <<\_ACEOF
14376 #define HAVE_GAS_WEAKREF 1
14381 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
14382 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
14383 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 gcc_cv_as_nsubspa_comdat=no
14387 if test $in_tree_gas = yes; then
14388 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14389 then gcc_cv_as_nsubspa_comdat=yes
14391 elif test x$gcc_cv_as != x; then
14392 echo ' .SPACE $TEXT$
14393 .NSUBSPA $CODE$,COMDAT' > conftest.s
14394 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; }
14401 gcc_cv_as_nsubspa_comdat=yes
14403 echo "configure: failed program was" >&5
14406 rm -f conftest.o conftest.s
14409 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14410 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
14411 if test $gcc_cv_as_nsubspa_comdat = yes; then
14413 cat >>confdefs.h <<\_ACEOF
14414 #define HAVE_GAS_NSUBSPA_COMDAT 1
14419 # .hidden needs to be supported in both the assembler and the linker,
14420 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14421 # This is irritatingly difficult to feature test for; we have to check the
14422 # date string after the version number. If we've got an in-tree
14423 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14425 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14426 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14427 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
14428 if test "${gcc_cv_as_hidden+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14431 gcc_cv_as_hidden=no
14432 if test $in_tree_gas = yes; then
14433 if test $in_tree_gas_is_elf = yes \
14434 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14435 then gcc_cv_as_hidden=yes
14437 elif test x$gcc_cv_as != x; then
14438 echo ' .hidden foobar
14439 foobar:' > conftest.s
14440 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442 (eval $ac_try) 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; }
14447 gcc_cv_as_hidden=yes
14449 echo "configure: failed program was" >&5
14452 rm -f conftest.o conftest.s
14455 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14456 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
14459 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14460 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
14461 if test "${gcc_cv_ld_hidden+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 if test $in_tree_ld = yes ; then
14465 gcc_cv_ld_hidden=no
14466 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 \
14467 && test $in_tree_ld_is_elf = yes; then
14468 gcc_cv_ld_hidden=yes
14471 gcc_cv_ld_hidden=yes
14472 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14473 if echo "$ld_ver" | grep GNU > /dev/null; then
14474 ld_vers=`echo $ld_ver | sed -n \
14475 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14476 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'`
14477 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14478 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14479 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14480 if test 0"$ld_date" -lt 20020404; then
14481 if test -n "$ld_date"; then
14482 # If there was date string, but was earlier than 2002-04-04, fail
14483 gcc_cv_ld_hidden=no
14484 elif test -z "$ld_vers"; then
14485 # If there was no date string nor ld version number, something is wrong
14486 gcc_cv_ld_hidden=no
14488 test -z "$ld_vers_patch" && ld_vers_patch=0
14489 if test "$ld_vers_major" -lt 2; then
14490 gcc_cv_ld_hidden=no
14491 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14492 gcc_cv_ld_hidden="no"
14493 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14494 gcc_cv_ld_hidden=no
14499 case "${target}" in
14500 hppa64*-*-hpux* | ia64*-*-hpux*)
14501 gcc_cv_ld_hidden=yes
14504 gcc_cv_ld_hidden=no
14510 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14511 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14512 libgcc_visibility=no
14515 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14516 libgcc_visibility=yes
14518 cat >>confdefs.h <<\_ACEOF
14519 #define HAVE_GAS_HIDDEN 1
14524 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14525 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14526 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14527 if test "${gcc_cv_as_leb128+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 gcc_cv_as_leb128=no
14531 if test $in_tree_gas = yes; then
14532 if test $in_tree_gas_is_elf = yes \
14533 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14534 then gcc_cv_as_leb128=yes
14536 elif test x$gcc_cv_as != x; then
14543 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; }
14550 # GAS versions before 2.11 do not support uleb128,
14551 # despite appearing to.
14552 # ??? There exists an elf-specific test that will crash
14553 # the assembler. Perhaps it's better to figure out whether
14554 # arbitrary sections are supported and try the test.
14555 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14556 if echo "$as_ver" | grep GNU > /dev/null; then
14557 as_vers=`echo $as_ver | sed -n \
14558 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14559 as_major=`expr "$as_vers" : '\([0-9]*\)'`
14560 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
14561 if test $as_major -eq 2 && test $as_minor -lt 11
14563 else gcc_cv_as_leb128=yes
14567 echo "configure: failed program was" >&5
14570 rm -f conftest.o conftest.s
14573 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14574 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14575 if test $gcc_cv_as_leb128 = yes; then
14577 cat >>confdefs.h <<\_ACEOF
14578 #define HAVE_AS_LEB128 1
14583 # GAS versions up to and including 2.11.0 may mis-optimize
14585 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14586 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14587 if test "${gcc_cv_as_eh_frame+set}" = set; then
14588 echo $ECHO_N "(cached) $ECHO_C" >&6
14590 gcc_cv_as_eh_frame=no
14591 if test $in_tree_gas = yes; then
14592 if test $in_tree_gas_is_elf = yes \
14593 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14594 then gcc_cv_as_eh_frame=yes
14596 elif test x$gcc_cv_as != x; then
14603 .section .eh_frame,"aw",@progbits
14605 .4byte .LECIE1-.LSCIE1
14619 .4byte .LEFDE1-.LASFDE1
14621 .4byte .LASFDE1-__FRAME_BEGIN__
14628 .LEFDE1:' > conftest.s
14629 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }
14636 cat > conftest.lit <<EOF
14637 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14638 0010 01000000 12000000 18000000 00000000 ................
14639 0020 08000000 04080000 0044 .........D
14641 cat > conftest.big <<EOF
14642 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14643 0010 00000001 00000012 00000018 00000000 ................
14644 0020 00000008 04000000 0844 .........D
14646 # If the assembler didn't choke, and we can objdump,
14647 # and we got the correct data, then succeed.
14648 # The text in the here-document typically retains its unix-style line
14649 # endings, while the output of objdump will use host line endings.
14650 # Therefore, use diff -b for the comparisons.
14651 if test x$gcc_cv_objdump != x \
14652 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14653 | tail -3 > conftest.got \
14654 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14655 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14657 gcc_cv_as_eh_frame=yes
14658 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; }; then
14664 gcc_cv_as_eh_frame=buggy
14666 # Uh oh, what do we do now?
14667 gcc_cv_as_eh_frame=no
14670 echo "configure: failed program was" >&5
14673 rm -f conftest.o conftest.s
14676 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14677 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14680 if test $gcc_cv_as_eh_frame = buggy; then
14682 cat >>confdefs.h <<\_ACEOF
14683 #define USE_AS_TRADITIONAL_FORMAT 1
14688 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14689 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14690 if test "${gcc_cv_as_shf_merge+set}" = set; then
14691 echo $ECHO_N "(cached) $ECHO_C" >&6
14693 gcc_cv_as_shf_merge=no
14694 if test $in_tree_gas = yes; then
14695 if test $in_tree_gas_is_elf = yes \
14696 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14697 then gcc_cv_as_shf_merge=yes
14699 elif test x$gcc_cv_as != x; then
14700 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14701 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; }
14708 gcc_cv_as_shf_merge=yes
14710 echo "configure: failed program was" >&5
14713 rm -f conftest.o conftest.s
14716 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14717 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14719 if test $gcc_cv_as_shf_merge = no; then
14720 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14721 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14722 if test "${gcc_cv_as_shf_merge+set}" = set; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14725 gcc_cv_as_shf_merge=no
14726 if test $in_tree_gas = yes; then
14727 if test $in_tree_gas_is_elf = yes \
14728 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14729 then gcc_cv_as_shf_merge=yes
14731 elif test x$gcc_cv_as != x; then
14732 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14733 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }
14740 gcc_cv_as_shf_merge=yes
14742 echo "configure: failed program was" >&5
14745 rm -f conftest.o conftest.s
14748 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14749 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14753 cat >>confdefs.h <<_ACEOF
14754 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14758 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14759 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14760 if test "${gcc_cv_as_comdat_group+set}" = set; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 gcc_cv_as_comdat_group=no
14764 if test $in_tree_gas = yes; then
14765 if test $in_tree_gas_is_elf = yes \
14766 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14767 then gcc_cv_as_comdat_group=yes
14769 elif test x$gcc_cv_as != x; then
14770 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14771 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773 (eval $ac_try) 2>&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }; }
14778 gcc_cv_as_comdat_group=yes
14780 echo "configure: failed program was" >&5
14783 rm -f conftest.o conftest.s
14786 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14787 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14789 if test $gcc_cv_as_comdat_group = yes; then
14790 gcc_cv_as_comdat_group_percent=no
14792 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14793 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14794 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 gcc_cv_as_comdat_group_percent=no
14798 if test $in_tree_gas = yes; then
14799 if test $in_tree_gas_is_elf = yes \
14800 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14801 then gcc_cv_as_comdat_group_percent=yes
14803 elif test x$gcc_cv_as != x; then
14804 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14805 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807 (eval $ac_try) 2>&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; }
14812 gcc_cv_as_comdat_group_percent=yes
14814 echo "configure: failed program was" >&5
14817 rm -f conftest.o conftest.s
14820 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14821 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14824 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14826 if test 0"$ld_date" -lt 20050308; then
14827 if test -n "$ld_date"; then
14828 # If there was date string, but was earlier than 2005-03-08, fail
14830 elif test "$ld_vers_major" -lt 2; then
14832 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14837 # assume linkers other than GNU ld don't support COMDAT group
14840 if test $comdat_group = no; then
14841 gcc_cv_as_comdat_group=no
14842 gcc_cv_as_comdat_group_percent=no
14845 cat >>confdefs.h <<_ACEOF
14846 #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`
14850 # Thread-local storage - the check is heavily parametrized.
14858 .section ".tdata","awT",@progbits
14861 ldq $27,__tls_get_addr($29) !literal!1
14862 lda $16,foo($29) !tlsgd!1
14863 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14864 ldq $27,__tls_get_addr($29) !literal!2
14865 lda $16,foo($29) !tlsldm!2
14866 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14867 ldq $1,foo($29) !gotdtprel
14868 ldah $2,foo($29) !dtprelhi
14869 lda $3,foo($2) !dtprello
14870 lda $4,foo($29) !dtprel
14871 ldq $1,foo($29) !gottprel
14872 ldah $2,foo($29) !tprelhi
14873 lda $3,foo($2) !tprello
14874 lda $4,foo($29) !tprel'
14877 tls_as_opt=--fatal-warnings
14881 .section ".tdata","awT",@progbits
14884 call #gettlsoff(x)'
14893 .section ".tdata","awT",@progbits
14897 addil LT%foo-$tls_gdidx$,gp
14898 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14901 addil LT%foo-$tls_ldidx$,gp
14903 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14904 addil LR%foo-$tls_dtpoff$,%ret0
14905 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14907 addil LT%foo-$tls_ieoff$,gp
14908 ldw RT%foo-$tls_ieoff$(%r1),%t2
14911 addil LR%foo-$tls_leoff$,%t1
14912 ldo RR%foo-$tls_leoff$(%r1),%t2'
14915 tls_as_opt=--fatal-warnings
14919 .section ".tdata","awT",%progbits
14922 .word foo(gottpoff)
14932 .section ".tdata","awT",@progbits
14936 leal foo@TLSGD(,%ebx,1), %eax
14937 leal foo@TLSLDM(%ebx), %eax
14938 leal foo@DTPOFF(%eax), %edx
14939 movl foo@GOTTPOFF(%ebx), %eax
14940 subl foo@GOTTPOFF(%ebx), %eax
14941 addl foo@GOTNTPOFF(%ebx), %eax
14942 movl foo@INDNTPOFF, %eax
14943 movl $foo@TPOFF, %eax
14944 subl $foo@TPOFF, %eax
14945 leal foo@NTPOFF(%ecx), %eax'
14948 tls_as_opt=--fatal-warnings
14952 .section ".tdata","awT",@progbits
14956 leaq foo@TLSGD(%rip), %rdi
14957 leaq foo@TLSLD(%rip), %rdi
14958 leaq foo@DTPOFF(%rax), %rdx
14959 movq foo@GOTTPOFF(%rip), %rax
14960 movq $foo@TPOFF, %rax'
14963 tls_as_opt=--fatal-warnings
14967 .section ".tdata","awT",@progbits
14970 addl r16 = @ltoff(@dtpmod(foo#)), gp
14971 addl r17 = @ltoff(@dtprel(foo#)), gp
14972 addl r18 = @ltoff(@tprel(foo#)), gp
14973 addl r19 = @dtprel(foo#), gp
14974 adds r21 = @dtprel(foo#), r13
14975 movl r23 = @dtprel(foo#)
14976 addl r20 = @tprel(foo#), gp
14977 adds r22 = @tprel(foo#), r13
14978 movl r24 = @tprel(foo#)'
14981 tls_as_opt=--fatal-warnings
14985 .section .tdata,"awT",@progbits
14989 addiu $4, $28, %tlsgd(x)
14990 addiu $4, $28, %tlsldm(x)
14991 lui $4, %dtprel_hi(x)
14992 addiu $4, $4, %dtprel_lo(x)
14993 lw $4, %gottprel(x)($28)
14994 lui $4, %tprel_hi(x)
14995 addiu $4, $4, %tprel_lo(x)'
14998 tls_as_opt='-32 --fatal-warnings'
15002 .section ".tdata","awT",@progbits
15010 addi 3,31,ld0@got@tlsgd
15012 addi 3,31,x1@got@tlsld
15015 addis 9,3,x2@dtprel@ha
15016 addi 9,9,x2@dtprel@l
15017 lwz 9,x3@got@tprel(31)
15020 addis 9,2,x2@tprel@ha
15021 addi 9,9,x2@tprel@l'
15024 tls_as_opt="-a32 --fatal-warnings"
15028 .section ".tdata","awT",@progbits
15036 addi 3,2,ld0@got@tlsgd
15042 addi 3,2,x1@got@tlsld
15048 addis 9,3,x2@dtprel@ha
15049 addi 9,9,x2@dtprel@l
15052 ld 9,x3@got@dtprel(2)
15058 tls_as_opt="-a64 --fatal-warnings"
15062 .section ".tdata","awT",@progbits
15069 .long foo@GOTNTPOFF
15070 .long foo@INDNTPOFF
15071 l %r1,foo@GOTNTPOFF(%r12)
15072 l %r1,0(%r1):tls_load:foo
15073 bas %r14,0(%r1,%r13):tls_gdcall:foo
15074 bas %r14,0(%r1,%r13):tls_ldcall:foo'
15077 tls_as_opt="-m31 --fatal-warnings"
15081 .section ".tdata","awT",@progbits
15088 .quad foo@GOTNTPOFF
15089 lg %r1,foo@GOTNTPOFF(%r12)
15090 larl %r1,foo@INDNTPOFF
15091 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
15092 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
15095 tls_as_opt="-m64 -Aesame --fatal-warnings"
15097 sh-*-* | sh[34]-*-*)
15099 .section ".tdata","awT",@progbits
15109 tls_as_opt=--fatal-warnings
15113 sparc*-sun-solaris2.[56789]*)
15114 # TLS was introduced in the Solaris 9 4/04 release but
15115 # we do not enable it by default on Solaris 9 either.
15116 if test "x$enable_tls" = xyes ; then
15122 sparc*-sun-solaris2.*)
15129 if test x$on_solaris = xyes && test x$gas_flag = xno; then
15131 .section ".tdata",#alloc,#write,#tls
15134 sethi %tgd_hi22(foo), %o0
15135 add %o0, %tgd_lo10(foo), %o1
15136 add %l7, %o1, %o0, %tgd_add(foo)
15137 call __tls_get_addr, %tgd_call(foo)
15138 sethi %tldm_hi22(foo), %l1
15139 add %l1, %tldm_lo10(foo), %l2
15140 add %l7, %l2, %o0, %tldm_add(foo)
15141 call __tls_get_addr, %tldm_call(foo)
15142 sethi %tldo_hix22(foo), %l3
15143 xor %l3, %tldo_lox10(foo), %l4
15144 add %o0, %l4, %l5, %tldo_add(foo)
15145 sethi %tie_hi22(foo), %o3
15146 add %o3, %tie_lo10(foo), %o3
15147 ld [%l7 + %o3], %o2, %tie_ld(foo)
15148 add %g7, %o2, %o4, %tie_add(foo)
15149 sethi %tle_hix22(foo), %l1
15150 xor %l1, %tle_lox10(foo), %o5
15151 ld [%g7 + %o5], %o1'
15156 .section ".tdata","awT",@progbits
15159 sethi %tgd_hi22(foo), %o0
15160 add %o0, %tgd_lo10(foo), %o1
15161 add %l7, %o1, %o0, %tgd_add(foo)
15162 call __tls_get_addr, %tgd_call(foo)
15163 sethi %tldm_hi22(foo), %l1
15164 add %l1, %tldm_lo10(foo), %l2
15165 add %l7, %l2, %o0, %tldm_add(foo)
15166 call __tls_get_addr, %tldm_call(foo)
15167 sethi %tldo_hix22(foo), %l3
15168 xor %l3, %tldo_lox10(foo), %l4
15169 add %o0, %l4, %l5, %tldo_add(foo)
15170 sethi %tie_hi22(foo), %o3
15171 add %o3, %tie_lo10(foo), %o3
15172 ld [%l7 + %o3], %o2, %tie_ld(foo)
15173 add %g7, %o2, %o4, %tie_add(foo)
15174 sethi %tle_hix22(foo), %l1
15175 xor %l1, %tle_lox10(foo), %o5
15176 ld [%g7 + %o5], %o1'
15179 tls_as_opt="-32 --fatal-warnings"
15184 if test "x$enable_tls" = xno ; then
15185 : # TLS explicitly disabled.
15186 elif test "x$enable_tls" = xyes ; then
15187 set_have_as_tls=yes # TLS explicitly enabled.
15188 elif test -z "$tls_first_major"; then
15189 : # If we don't have a check, assume no support.
15191 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
15192 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
15193 if test "${gcc_cv_as_tls+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 if test $in_tree_gas = yes; then
15198 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
15199 then gcc_cv_as_tls=yes
15201 elif test x$gcc_cv_as != x; then
15202 echo "$conftest_s" > conftest.s
15203 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
15204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205 (eval $ac_try) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; }
15212 echo "configure: failed program was" >&5
15215 rm -f conftest.o conftest.s
15218 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
15219 echo "${ECHO_T}$gcc_cv_as_tls" >&6
15220 if test $gcc_cv_as_tls = yes; then
15221 set_have_as_tls=yes
15224 if test $set_have_as_tls = yes ; then
15226 cat >>confdefs.h <<\_ACEOF
15227 #define HAVE_AS_TLS 1
15232 # Target-specific assembler checks.
15234 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
15235 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
15236 gcc_cv_ld_static_dynamic=no
15237 if test $in_tree_ld = yes ; then
15238 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
15239 gcc_cv_ld_static_dynamic=yes
15241 elif test x$gcc_cv_ld != x; then
15242 # Check if linker supports -Bstatic/-Bdynamic option
15243 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
15244 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
15245 gcc_cv_ld_static_dynamic=yes
15248 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
15250 cat >>confdefs.h <<\_ACEOF
15251 #define HAVE_LD_STATIC_DYNAMIC 1
15255 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
15256 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
15258 if test x"$demangler_in_ld" = xyes; then
15259 echo "$as_me:$LINENO: checking linker --demangle support" >&5
15260 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
15261 gcc_cv_ld_demangle=no
15262 if test $in_tree_ld = yes; then
15263 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 \
15264 gcc_cv_ld_demangle=yes
15266 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
15267 # Check if the GNU linker supports --demangle option
15268 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
15269 gcc_cv_ld_demangle=yes
15272 if test x"$gcc_cv_ld_demangle" = xyes; then
15274 cat >>confdefs.h <<\_ACEOF
15275 #define HAVE_LD_DEMANGLE 1
15279 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
15280 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
15284 # All TARGET_ABI_OSF targets.
15285 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
15286 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15287 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15288 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 gcc_cv_as_alpha_explicit_relocs=no
15292 if test $in_tree_gas = yes; then
15293 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
15294 then gcc_cv_as_alpha_explicit_relocs=yes
15296 elif test x$gcc_cv_as != x; then
15297 echo ' .set nomacro
15299 extbl $3, $2, $3 !lituse_bytoff!1
15300 ldq $2, a($29) !literal!1
15301 ldq $4, b($29) !literal!2
15302 ldq_u $3, 0($2) !lituse_base!1
15303 ldq $27, f($29) !literal!5
15304 jsr $26, ($27), f !lituse_jsr!5
15305 ldah $29, 0($26) !gpdisp!3
15306 lda $0, c($29) !gprel
15307 ldah $1, d($29) !gprelhigh
15308 lda $1, d($1) !gprellow
15309 lda $29, 0($29) !gpdisp!3' > conftest.s
15310 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }
15317 gcc_cv_as_alpha_explicit_relocs=yes
15319 echo "configure: failed program was" >&5
15322 rm -f conftest.o conftest.s
15325 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
15326 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
15327 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
15329 cat >>confdefs.h <<\_ACEOF
15330 #define HAVE_AS_EXPLICIT_RELOCS 1
15334 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
15335 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
15336 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15339 gcc_cv_as_alpha_jsrdirect_relocs=no
15340 if test $in_tree_gas = yes; then
15341 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
15342 then gcc_cv_as_alpha_jsrdirect_relocs=yes
15344 elif test x$gcc_cv_as != x; then
15345 echo ' .set nomacro
15347 ldq $27, a($29) !literal!1
15348 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
15349 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }
15356 gcc_cv_as_alpha_jsrdirect_relocs=yes
15358 echo "configure: failed program was" >&5
15361 rm -f conftest.o conftest.s
15364 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
15365 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
15366 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
15368 cat >>confdefs.h <<\_ACEOF
15369 #define HAVE_AS_JSRDIRECT_RELOCS 1
15376 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
15377 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
15378 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 gcc_cv_as_cris_no_mul_bug=no
15382 if test $in_tree_gas = yes; then
15383 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15384 then gcc_cv_as_cris_no_mul_bug=yes
15386 elif test x$gcc_cv_as != x; then
15387 echo '.text' > conftest.s
15388 if { ac_try='$gcc_cv_as -no-mul-bug-abort -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_cris_no_mul_bug=yes
15397 echo "configure: failed program was" >&5
15400 rm -f conftest.o conftest.s
15403 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
15404 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
15405 if test $gcc_cv_as_cris_no_mul_bug = yes; then
15407 cat >>confdefs.h <<\_ACEOF
15408 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
15415 echo "$as_me:$LINENO: checking assembler for .register" >&5
15416 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
15417 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 gcc_cv_as_sparc_register_op=no
15421 if test x$gcc_cv_as != x; then
15422 echo '.register %g2, #scratch' > conftest.s
15423 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; }
15430 gcc_cv_as_sparc_register_op=yes
15432 echo "configure: failed program was" >&5
15435 rm -f conftest.o conftest.s
15438 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15439 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
15440 if test $gcc_cv_as_sparc_register_op = yes; then
15442 cat >>confdefs.h <<\_ACEOF
15443 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15448 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15449 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
15450 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15453 gcc_cv_as_sparc_relax=no
15454 if test x$gcc_cv_as != x; then
15455 echo '.text' > conftest.s
15456 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; }
15463 gcc_cv_as_sparc_relax=yes
15465 echo "configure: failed program was" >&5
15468 rm -f conftest.o conftest.s
15471 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15472 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15473 if test $gcc_cv_as_sparc_relax = yes; then
15475 cat >>confdefs.h <<\_ACEOF
15476 #define HAVE_AS_RELAX_OPTION 1
15481 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15482 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15483 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15486 gcc_cv_as_sparc_ua_pcrel=no
15487 if test x$gcc_cv_as != x; then
15494 .uaword %r_disp32(foo)' > conftest.s
15495 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; }
15502 if test x$gcc_cv_ld != x \
15503 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15504 gcc_cv_as_sparc_ua_pcrel=yes
15508 echo "configure: failed program was" >&5
15511 rm -f conftest.o conftest.s
15514 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15515 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15516 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15518 cat >>confdefs.h <<\_ACEOF
15519 #define HAVE_AS_SPARC_UA_PCREL 1
15523 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15524 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15525 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15526 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 gcc_cv_as_sparc_ua_pcrel_hidden=no
15529 if test x$gcc_cv_as != x; then
15533 .uaword %r_disp32(foo)
15534 .byte 0x32, 0x33, 0x34
15538 .skip 4' > conftest.s
15539 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541 (eval $ac_try) 2>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; }
15546 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15547 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15548 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15549 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15550 if $gcc_cv_objdump -R conftest 2> /dev/null \
15551 | grep 'DISP32' > /dev/null 2>&1; then
15554 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15559 echo "configure: failed program was" >&5
15562 rm -f conftest.o conftest.s
15565 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15566 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15567 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15569 cat >>confdefs.h <<\_ACEOF
15570 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15575 fi # unaligned pcrel relocs
15577 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15578 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15579 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15582 gcc_cv_as_sparc_offsetable_lo10=no
15583 if test x$gcc_cv_as != x; then
15585 or %g1, %lo(ab) + 12, %g1
15586 or %g1, %lo(ab + 12), %g1' > conftest.s
15587 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; }
15594 if test x$gcc_cv_objdump != x \
15595 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15596 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15597 gcc_cv_as_sparc_offsetable_lo10=yes
15600 echo "configure: failed program was" >&5
15603 rm -f conftest.o conftest.s
15606 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15607 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15608 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15610 cat >>confdefs.h <<\_ACEOF
15611 #define HAVE_AS_OFFSETABLE_LO10 1
15617 i[34567]86-*-* | x86_64-*-*)
15619 cygwin* | pe | mingw32*)
15620 # Used for DWARF 2 in PE
15621 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15622 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15623 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 gcc_cv_as_ix86_pe_secrel32=no
15627 if test $in_tree_gas = yes; then
15628 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15629 then gcc_cv_as_ix86_pe_secrel32=yes
15631 elif test x$gcc_cv_as != x; then
15635 .secrel32 foo' > conftest.s
15636 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }
15643 if test x$gcc_cv_ld != x \
15644 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15645 gcc_cv_as_ix86_pe_secrel32=yes
15649 echo "configure: failed program was" >&5
15652 rm -f conftest.o conftest.s
15655 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15656 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15657 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15659 cat >>confdefs.h <<\_ACEOF
15660 #define HAVE_GAS_PE_SECREL32_RELOC 1
15667 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15668 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15669 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15672 gcc_cv_as_ix86_filds_fists=no
15673 if test $in_tree_gas = yes; then
15674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15675 then gcc_cv_as_ix86_filds_fists=yes
15677 elif test x$gcc_cv_as != x; then
15678 echo 'filds mem; fists mem' > conftest.s
15679 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }
15686 gcc_cv_as_ix86_filds_fists=yes
15688 echo "configure: failed program was" >&5
15691 rm -f conftest.o conftest.s
15694 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15695 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15696 if test $gcc_cv_as_ix86_filds_fists = yes; then
15698 cat >>confdefs.h <<\_ACEOF
15699 #define HAVE_GAS_FILDS_FISTS 1
15704 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15705 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15706 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15709 gcc_cv_as_ix86_cmov_sun_syntax=no
15710 if test x$gcc_cv_as != x; then
15711 echo 'cmovl.l %edx, %eax' > conftest.s
15712 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714 (eval $ac_try) 2>&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; }
15719 gcc_cv_as_ix86_cmov_sun_syntax=yes
15721 echo "configure: failed program was" >&5
15724 rm -f conftest.o conftest.s
15727 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15728 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15729 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15731 cat >>confdefs.h <<\_ACEOF
15732 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15737 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15738 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15739 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15740 echo $ECHO_N "(cached) $ECHO_C" >&6
15742 gcc_cv_as_ix86_ffreep=no
15743 if test x$gcc_cv_as != x; then
15744 echo 'ffreep %st(1)' > conftest.s
15745 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }
15752 gcc_cv_as_ix86_ffreep=yes
15754 echo "configure: failed program was" >&5
15757 rm -f conftest.o conftest.s
15760 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15761 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15762 if test $gcc_cv_as_ix86_ffreep = yes; then
15764 cat >>confdefs.h <<\_ACEOF
15765 #define HAVE_AS_IX86_FFREEP 1
15770 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15771 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15772 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 gcc_cv_as_ix86_sahf=no
15776 if test x$gcc_cv_as != x; then
15777 echo 'sahf' > conftest.s
15778 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }
15785 gcc_cv_as_ix86_sahf=yes
15787 echo "configure: failed program was" >&5
15790 rm -f conftest.o conftest.s
15793 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15794 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15795 if test $gcc_cv_as_ix86_sahf = yes; then
15797 cat >>confdefs.h <<\_ACEOF
15798 #define HAVE_AS_IX86_SAHF 1
15803 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15804 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15805 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
15808 gcc_cv_as_ix86_diff_sect_delta=no
15809 if test x$gcc_cv_as != x; then
15810 echo '.section .rodata
15816 .L2: nop' > conftest.s
15817 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; }
15824 gcc_cv_as_ix86_diff_sect_delta=yes
15826 echo "configure: failed program was" >&5
15829 rm -f conftest.o conftest.s
15832 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15833 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15834 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15836 cat >>confdefs.h <<\_ACEOF
15837 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15842 # This one is used unconditionally by i386.[ch]; it is to be defined
15843 # to 1 if the feature is present, 0 otherwise.
15844 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15845 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15846 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 gcc_cv_as_ix86_gotoff_in_data=no
15850 if test $in_tree_gas = yes; then
15851 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15852 then gcc_cv_as_ix86_gotoff_in_data=yes
15854 elif test x$gcc_cv_as != x; then
15859 .long .L0@GOTOFF' > conftest.s
15860 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }
15867 gcc_cv_as_ix86_gotoff_in_data=yes
15869 echo "configure: failed program was" >&5
15872 rm -f conftest.o conftest.s
15875 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15876 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15879 cat >>confdefs.h <<_ACEOF
15880 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15886 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15887 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15888 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15892 if test $in_tree_gas = yes; then
15893 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15894 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15896 elif test x$gcc_cv_as != x; then
15898 addl r15 = @ltoffx(x#), gp
15900 ld8.mov r16 = [r15], x#' > conftest.s
15901 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }
15908 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15910 echo "configure: failed program was" >&5
15913 rm -f conftest.o conftest.s
15916 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15917 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15918 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15920 cat >>confdefs.h <<\_ACEOF
15921 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15930 *-*-aix*) conftest_s=' .machine "pwr5"
15934 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15935 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15936 if test "${gcc_cv_as_machine_directive+set}" = set; then
15937 echo $ECHO_N "(cached) $ECHO_C" >&6
15939 gcc_cv_as_machine_directive=no
15940 if test x$gcc_cv_as != x; then
15941 echo ' .machine ppc7400' > conftest.s
15942 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }
15949 gcc_cv_as_machine_directive=yes
15951 echo "configure: failed program was" >&5
15954 rm -f conftest.o conftest.s
15957 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15958 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15960 if test x$gcc_cv_as_machine_directive != xyes; then
15961 echo "*** This target requires an assembler supporting \".machine\"" >&2
15962 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15963 test x$build = x$target && exit 1
15967 *) conftest_s=' .machine power4
15972 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15973 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15974 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15975 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 gcc_cv_as_powerpc_mfcrf=no
15978 if test $in_tree_gas = yes; then
15979 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15980 then gcc_cv_as_powerpc_mfcrf=yes
15982 elif test x$gcc_cv_as != x; then
15983 echo "$conftest_s" > conftest.s
15984 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }
15991 gcc_cv_as_powerpc_mfcrf=yes
15993 echo "configure: failed program was" >&5
15996 rm -f conftest.o conftest.s
15999 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
16000 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
16001 if test $gcc_cv_as_powerpc_mfcrf = yes; then
16003 cat >>confdefs.h <<\_ACEOF
16004 #define HAVE_AS_MFCRF 1
16010 *-*-aix*) conftest_s=' .machine "pwr5"
16013 *) conftest_s=' .machine power5
16018 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
16019 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
16020 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16023 gcc_cv_as_powerpc_popcntb=no
16024 if test $in_tree_gas = yes; then
16025 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16026 then gcc_cv_as_powerpc_popcntb=yes
16028 elif test x$gcc_cv_as != x; then
16029 echo "$conftest_s" > conftest.s
16030 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032 (eval $ac_try) 2>&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); }; }
16037 gcc_cv_as_powerpc_popcntb=yes
16039 echo "configure: failed program was" >&5
16042 rm -f conftest.o conftest.s
16045 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
16046 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
16047 if test $gcc_cv_as_powerpc_popcntb = yes; then
16049 cat >>confdefs.h <<\_ACEOF
16050 #define HAVE_AS_POPCNTB 1
16056 *-*-aix*) conftest_s=' .machine "pwr5x"
16059 *) conftest_s=' .machine power5
16064 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
16065 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
16066 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
16067 echo $ECHO_N "(cached) $ECHO_C" >&6
16069 gcc_cv_as_powerpc_fprnd=no
16070 if test $in_tree_gas = yes; then
16071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16072 then gcc_cv_as_powerpc_fprnd=yes
16074 elif test x$gcc_cv_as != x; then
16075 echo "$conftest_s" > conftest.s
16076 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; }
16083 gcc_cv_as_powerpc_fprnd=yes
16085 echo "configure: failed program was" >&5
16088 rm -f conftest.o conftest.s
16091 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
16092 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
16093 if test $gcc_cv_as_powerpc_fprnd = yes; then
16095 cat >>confdefs.h <<\_ACEOF
16096 #define HAVE_AS_FPRND 1
16102 *-*-aix*) conftest_s=' .machine "pwr6"
16105 *) conftest_s=' .machine power6
16110 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
16111 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
16112 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 gcc_cv_as_powerpc_mfpgpr=no
16116 if test $in_tree_gas = yes; then
16117 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16118 then gcc_cv_as_powerpc_mfpgpr=yes
16120 elif test x$gcc_cv_as != x; then
16121 echo "$conftest_s" > conftest.s
16122 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }
16129 gcc_cv_as_powerpc_mfpgpr=yes
16131 echo "configure: failed program was" >&5
16134 rm -f conftest.o conftest.s
16137 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
16138 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
16139 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
16141 cat >>confdefs.h <<\_ACEOF
16142 #define HAVE_AS_MFPGPR 1
16148 *-*-aix*) conftest_s=' .csect .text[PR]
16150 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
16154 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
16155 *) conftest_s=' .text
16157 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
16160 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
16161 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
16162 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16165 gcc_cv_as_powerpc_rel16=no
16166 if test $in_tree_gas = yes; then
16167 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
16168 then gcc_cv_as_powerpc_rel16=yes
16170 elif test x$gcc_cv_as != x; then
16171 echo "$conftest_s" > conftest.s
16172 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; }
16179 gcc_cv_as_powerpc_rel16=yes
16181 echo "configure: failed program was" >&5
16184 rm -f conftest.o conftest.s
16187 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
16188 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
16189 if test $gcc_cv_as_powerpc_rel16 = yes; then
16191 cat >>confdefs.h <<\_ACEOF
16192 #define HAVE_AS_REL16 1
16198 *-*-aix*) conftest_s=' .machine "pwr6"
16201 *) conftest_s=' .machine power6
16206 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
16207 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
16208 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
16209 echo $ECHO_N "(cached) $ECHO_C" >&6
16211 gcc_cv_as_powerpc_cmpb=no
16212 if test $in_tree_gas = yes; then
16213 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16214 then gcc_cv_as_powerpc_cmpb=yes
16216 elif test x$gcc_cv_as != x; then
16217 echo "$conftest_s" > conftest.s
16218 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }
16225 gcc_cv_as_powerpc_cmpb=yes
16227 echo "configure: failed program was" >&5
16230 rm -f conftest.o conftest.s
16233 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
16234 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
16235 if test $gcc_cv_as_powerpc_cmpb = yes; then
16237 cat >>confdefs.h <<\_ACEOF
16238 #define HAVE_AS_CMPB 1
16244 *-*-aix*) conftest_s=' .machine "pwr6"
16247 *) conftest_s=' .machine power6
16252 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
16253 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
16254 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 gcc_cv_as_powerpc_dfp=no
16258 if test $in_tree_gas = yes; then
16259 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
16260 then gcc_cv_as_powerpc_dfp=yes
16262 elif test x$gcc_cv_as != x; then
16263 echo "$conftest_s" > conftest.s
16264 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }
16271 gcc_cv_as_powerpc_dfp=yes
16273 echo "configure: failed program was" >&5
16276 rm -f conftest.o conftest.s
16279 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
16280 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
16281 if test $gcc_cv_as_powerpc_dfp = yes; then
16283 cat >>confdefs.h <<\_ACEOF
16284 #define HAVE_AS_DFP 1
16289 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
16290 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
16291 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
16292 echo $ECHO_N "(cached) $ECHO_C" >&6
16294 gcc_cv_as_powerpc_gnu_attribute=no
16295 if test $in_tree_gas = yes; then
16296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16297 then gcc_cv_as_powerpc_gnu_attribute=yes
16299 elif test x$gcc_cv_as != x; then
16300 echo '.gnu_attribute 4,1' > conftest.s
16301 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; }
16308 gcc_cv_as_powerpc_gnu_attribute=yes
16310 echo "configure: failed program was" >&5
16313 rm -f conftest.o conftest.s
16316 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
16317 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
16318 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
16320 cat >>confdefs.h <<\_ACEOF
16321 #define HAVE_AS_GNU_ATTRIBUTE 1
16328 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
16329 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
16330 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16333 gcc_cv_as_mips_explicit_relocs=no
16334 if test $in_tree_gas = yes; then
16335 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
16336 then gcc_cv_as_mips_explicit_relocs=yes
16338 elif test x$gcc_cv_as != x; then
16339 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
16340 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }
16347 gcc_cv_as_mips_explicit_relocs=yes
16349 echo "configure: failed program was" >&5
16352 rm -f conftest.o conftest.s
16355 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
16356 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
16357 if test $gcc_cv_as_mips_explicit_relocs = yes; then
16358 if test x$target_cpu_default = x
16359 then target_cpu_default=MASK_EXPLICIT_RELOCS
16360 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
16363 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
16364 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
16365 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 gcc_cv_as_mips_no_shared=no
16369 if test $in_tree_gas = yes; then
16370 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
16371 then gcc_cv_as_mips_no_shared=yes
16373 elif test x$gcc_cv_as != x; then
16374 echo 'nop' > conftest.s
16375 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }
16382 gcc_cv_as_mips_no_shared=yes
16384 echo "configure: failed program was" >&5
16387 rm -f conftest.o conftest.s
16390 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
16391 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
16392 if test $gcc_cv_as_mips_no_shared = yes; then
16394 cat >>confdefs.h <<\_ACEOF
16395 #define HAVE_AS_NO_SHARED 1
16400 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
16401 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
16402 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16405 gcc_cv_as_mips_gnu_attribute=no
16406 if test $in_tree_gas = yes; then
16407 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16408 then gcc_cv_as_mips_gnu_attribute=yes
16410 elif test x$gcc_cv_as != x; then
16411 echo '.gnu_attribute 4,1' > conftest.s
16412 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414 (eval $ac_try) 2>&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; }
16419 gcc_cv_as_mips_gnu_attribute=yes
16421 echo "configure: failed program was" >&5
16424 rm -f conftest.o conftest.s
16427 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
16428 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
16429 if test $gcc_cv_as_mips_gnu_attribute = yes; then
16431 cat >>confdefs.h <<\_ACEOF
16432 #define HAVE_AS_GNU_ATTRIBUTE 1
16437 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
16438 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
16439 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
16440 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 gcc_cv_as_mips_dtprelword=no
16443 if test $in_tree_gas = yes; then
16444 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16445 then gcc_cv_as_mips_dtprelword=yes
16447 elif test x$gcc_cv_as != x; then
16448 echo '.section .tdata,"awT",@progbits
16452 .dtprelword x+0x8000' > conftest.s
16453 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }
16460 gcc_cv_as_mips_dtprelword=yes
16462 echo "configure: failed program was" >&5
16465 rm -f conftest.o conftest.s
16468 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
16469 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
16470 if test $gcc_cv_as_mips_dtprelword = yes; then
16472 cat >>confdefs.h <<\_ACEOF
16473 #define HAVE_AS_DTPRELWORD 1
16480 # Mips and HP-UX need the GNU assembler.
16481 # Linux on IA64 might be able to use the Intel assembler.
16484 mips*-*-* | *-*-hpux* )
16485 if test x$gas_flag = xyes \
16486 || test x"$host" != x"$build" \
16487 || test ! -x "$gcc_cv_as" \
16488 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
16491 echo "*** This configuration requires the GNU assembler" >&2
16497 # ??? Not all targets support dwarf2 debug_line, even within a version
16498 # of gas. Moreover, we need to emit a valid instruction to trigger any
16499 # info to the output file. So, as supported targets are added to gas 2.11,
16500 # add some instruction here to (also) show we expect this might work.
16501 # ??? Once 2.11 is released, probably need to add first known working
16502 # version to the per-target configury.
16504 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16505 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16506 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
16509 ia64*-*-* | s390*-*-*)
16516 if test x"$insn" != x; then
16518 .file 1 \"conftest.s\"
16521 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16522 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
16523 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 gcc_cv_as_dwarf2_debug_line=no
16527 if test $in_tree_gas = yes; then
16528 if test $in_tree_gas_is_elf = yes \
16529 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16530 then gcc_cv_as_dwarf2_debug_line=yes
16532 elif test x$gcc_cv_as != x; then
16533 echo "$conftest_s" > conftest.s
16534 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }
16541 if test x$gcc_cv_objdump != x \
16542 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16543 | grep debug_line > /dev/null 2>&1; then
16544 gcc_cv_as_dwarf2_debug_line=yes
16547 echo "configure: failed program was" >&5
16550 rm -f conftest.o conftest.s
16553 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16554 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
16557 # The .debug_line file table must be in the exact order that
16558 # we specified the files, since these indices are also used
16559 # by DW_AT_decl_file. Approximate this test by testing if
16560 # the assembler bitches if the same index is assigned twice.
16561 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16562 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
16563 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16566 gcc_cv_as_dwarf2_file_buggy=no
16567 if test x$gcc_cv_as != x; then
16568 echo ' .file 1 "foo.s"
16569 .file 1 "bar.s"' > conftest.s
16570 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
16571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572 (eval $ac_try) 2>&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }
16577 gcc_cv_as_dwarf2_file_buggy=yes
16579 echo "configure: failed program was" >&5
16582 rm -f conftest.o conftest.s
16585 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16586 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16589 if test $gcc_cv_as_dwarf2_debug_line = yes \
16590 && test $gcc_cv_as_dwarf2_file_buggy = no; then
16592 cat >>confdefs.h <<\_ACEOF
16593 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16598 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16599 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16600 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16601 echo $ECHO_N "(cached) $ECHO_C" >&6
16603 gcc_cv_as_gdwarf2_flag=no
16604 if test $in_tree_gas = yes; then
16605 if test $in_tree_gas_is_elf = yes \
16606 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16607 then gcc_cv_as_gdwarf2_flag=yes
16609 elif test x$gcc_cv_as != x; then
16610 echo "$insn" > conftest.s
16611 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }
16618 gcc_cv_as_gdwarf2_flag=yes
16620 echo "configure: failed program was" >&5
16623 rm -f conftest.o conftest.s
16626 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16627 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16628 if test $gcc_cv_as_gdwarf2_flag = yes; then
16630 cat >>confdefs.h <<\_ACEOF
16631 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16636 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16637 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16638 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 gcc_cv_as_gstabs_flag=no
16642 if test $in_tree_gas = yes; then
16643 if test $in_tree_gas_is_elf = yes \
16644 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16645 then gcc_cv_as_gstabs_flag=yes
16647 elif test x$gcc_cv_as != x; then
16648 echo "$insn" > conftest.s
16649 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }
16656 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16657 # and warns about it, but still exits successfully. So check for
16659 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }
16666 else gcc_cv_as_gstabs_flag=yes
16669 echo "configure: failed program was" >&5
16672 rm -f conftest.o conftest.s
16675 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16676 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16677 if test $gcc_cv_as_gstabs_flag = yes; then
16679 cat >>confdefs.h <<\_ACEOF
16680 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16685 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
16686 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
16687 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16690 gcc_cv_as_debug_prefix_map_flag=no
16691 if test $in_tree_gas = yes; then
16692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16693 then gcc_cv_as_debug_prefix_map_flag=yes
16695 elif test x$gcc_cv_as != x; then
16696 echo "$insn" > conftest.s
16697 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; }
16704 gcc_cv_as_debug_prefix_map_flag=yes
16706 echo "configure: failed program was" >&5
16709 rm -f conftest.o conftest.s
16712 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
16713 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
16714 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
16716 cat >>confdefs.h <<\_ACEOF
16717 #define HAVE_AS_DEBUG_PREFIX_MAP 1
16723 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16724 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16725 if test "${gcc_cv_as_line_zero+set}" = set; then
16726 echo $ECHO_N "(cached) $ECHO_C" >&6
16728 gcc_cv_as_line_zero=no
16729 if test $in_tree_gas = yes; then
16730 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16731 then gcc_cv_as_line_zero=yes
16733 elif test "x$gcc_cv_as" != x; then
16734 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16735 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; } &&
16741 test "x`cat conftest.out`" = x
16743 gcc_cv_as_line_zero=yes
16745 echo "configure: failed program was" >&5
16747 echo "configure: error output was" >&5
16748 cat conftest.out >&5
16750 rm -f conftest.o conftest.s conftest.out
16753 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16754 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16755 if test "x$gcc_cv_as_line_zero" = xyes; then
16757 cat >>confdefs.h <<\_ACEOF
16758 #define HAVE_AS_LINE_ZERO 1
16763 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16764 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16765 gcc_cv_ld_ro_rw_mix=unknown
16766 if test $in_tree_ld = yes ; then
16767 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 \
16768 && test $in_tree_ld_is_elf = yes; then
16769 gcc_cv_ld_ro_rw_mix=read-write
16771 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16772 echo '.section myfoosect, "a"' > conftest1.s
16773 echo '.section myfoosect, "aw"' > conftest2.s
16774 echo '.byte 1' >> conftest2.s
16775 echo '.section myfoosect, "a"' > conftest3.s
16776 echo '.byte 0' >> conftest3.s
16777 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16778 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16779 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16780 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16781 conftest2.o conftest3.o > /dev/null 2>&1; then
16782 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16783 | sed -e '/myfoosect/!d' -e N`
16784 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16785 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16786 gcc_cv_ld_ro_rw_mix=read-only
16788 gcc_cv_ld_ro_rw_mix=read-write
16792 rm -f conftest.* conftest[123].*
16794 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16796 cat >>confdefs.h <<\_ACEOF
16797 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16801 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16802 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16804 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16805 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16806 gcc_cv_ld_eh_frame_hdr=no
16807 if test $in_tree_ld = yes ; then
16808 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 \
16809 && test $in_tree_ld_is_elf = yes; then
16810 gcc_cv_ld_eh_frame_hdr=yes
16812 elif test x$gcc_cv_ld != x; then
16813 # Check if linker supports --eh-frame-hdr option
16814 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16815 gcc_cv_ld_eh_frame_hdr=yes
16819 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16821 cat >>confdefs.h <<\_ACEOF
16822 #define HAVE_LD_EH_FRAME_HDR 1
16826 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16827 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16829 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16830 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16832 if test $in_tree_ld = yes ; then
16833 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 \
16834 && test $in_tree_ld_is_elf = yes; then
16837 elif test x$gcc_cv_ld != x; then
16838 # Check if linker supports -pie option
16839 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16843 if test x"$gcc_cv_ld_pie" = xyes; then
16845 cat >>confdefs.h <<\_ACEOF
16846 #define HAVE_LD_PIE 1
16850 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16851 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16853 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16854 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16855 gcc_cv_ld_eh_gc_sections=no
16856 if test $in_tree_ld = yes ; then
16857 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 \
16858 && test $in_tree_ld_is_elf = yes; then
16859 gcc_cv_ld_eh_gc_sections=yes
16861 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16862 cat > conftest.s <<EOF
16865 .type _start, @function
16868 .size _start, .-_start
16869 .section .text.foo,"ax",@progbits
16870 .type foo, @function
16874 .section .gcc_except_table.foo,"a",@progbits
16877 .section .eh_frame,"a",@progbits
16880 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16881 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16882 | grep "gc-sections option ignored" > /dev/null; then
16883 gcc_cv_ld_eh_gc_sections=no
16884 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16885 gcc_cv_ld_eh_gc_sections=yes
16886 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16887 if test x$gcc_cv_as_comdat_group != xyes; then
16888 gcc_cv_ld_eh_gc_sections=no
16889 cat > conftest.s <<EOF
16892 .type _start, @function
16895 .size _start, .-_start
16896 .section .gnu.linkonce.t.foo,"ax",@progbits
16897 .type foo, @function
16901 .section .gcc_except_table.foo,"a",@progbits
16904 .section .eh_frame,"a",@progbits
16907 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16908 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16909 | grep "gc-sections option ignored" > /dev/null; then
16910 gcc_cv_ld_eh_gc_sections=no
16911 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16912 gcc_cv_ld_eh_gc_sections=yes
16918 rm -f conftest.s conftest.o conftest
16922 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16923 gcc_cv_ld_eh_gc_sections=no
16926 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16928 cat >>confdefs.h <<\_ACEOF
16929 #define HAVE_LD_EH_GC_SECTIONS 1
16933 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16934 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16940 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16941 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16942 if test "${gcc_cv_ld_as_needed+set}" = set; then
16943 echo $ECHO_N "(cached) $ECHO_C" >&6
16945 gcc_cv_ld_as_needed=no
16946 if test $in_tree_ld = yes ; then
16947 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 \
16948 && test $in_tree_ld_is_elf = yes; then
16949 gcc_cv_ld_as_needed=yes
16951 elif test x$gcc_cv_ld != x; then
16952 # Check if linker supports --as-needed and --no-as-needed options
16953 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16954 gcc_cv_ld_as_needed=yes
16959 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16960 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16961 if test x"$gcc_cv_ld_as_needed" = xyes; then
16963 cat >>confdefs.h <<\_ACEOF
16964 #define HAVE_LD_AS_NEEDED 1
16969 case "$target:$tm_file" in
16970 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16971 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16972 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16973 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16976 gcc_cv_ld_no_dot_syms=no
16977 if test $in_tree_ld = yes ; then
16978 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
16979 gcc_cv_ld_no_dot_syms=yes
16981 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16982 cat > conftest1.s <<EOF
16986 cat > conftest2.s <<EOF
16987 .section ".opd","aw"
16990 .type foo,@function
16992 .quad .LEfoo,.TOC.@tocbase,0
16998 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16999 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
17000 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
17001 gcc_cv_ld_no_dot_syms=yes
17003 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
17007 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
17008 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
17009 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
17011 cat >>confdefs.h <<\_ACEOF
17012 #define HAVE_LD_NO_DOT_SYMS 1
17019 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
17020 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
17021 if test "${gcc_cv_ld_sysroot+set}" = set; then
17022 echo $ECHO_N "(cached) $ECHO_C" >&6
17024 gcc_cv_ld_sysroot=no
17025 if test $in_tree_ld = yes ; then
17026 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
17027 gcc_cv_ld_sysroot=yes
17029 elif test x$gcc_cv_ld != x; then
17030 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
17031 gcc_cv_ld_sysroot=yes
17035 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
17036 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
17037 if test x"$gcc_cv_ld_sysroot" = xyes; then
17039 cat >>confdefs.h <<\_ACEOF
17040 #define HAVE_LD_SYSROOT 1
17045 if test x$with_sysroot = x && test x$host = x$target \
17046 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
17047 && test "$prefix" != "NONE"; then
17049 cat >>confdefs.h <<_ACEOF
17050 #define PREFIX_INCLUDE_DIR "$prefix/include"
17055 # Test for stack protector support in target C library.
17056 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
17057 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
17058 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17061 gcc_cv_libc_provides_ssp=no
17064 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
17065 if test "x$with_sysroot" = x; then
17066 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
17067 elif test "x$with_build_sysroot" != "x"; then
17068 glibc_header_dir="${with_build_sysroot}/usr/include"
17069 elif test "x$with_sysroot" = xyes; then
17070 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
17072 glibc_header_dir="${with_sysroot}/usr/include"
17075 glibc_header_dir=/usr/include
17077 # glibc 2.4 and later provides __stack_chk_fail and
17078 # either __stack_chk_guard, or TLS access to stack guard canary.
17079 if test -f $glibc_header_dir/features.h \
17080 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
17081 $glibc_header_dir/features.h > /dev/null; then
17082 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
17083 $glibc_header_dir/features.h > /dev/null; then
17084 gcc_cv_libc_provides_ssp=yes
17085 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
17086 $glibc_header_dir/features.h > /dev/null \
17087 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
17088 $glibc_header_dir/features.h > /dev/null; then
17089 gcc_cv_libc_provides_ssp=yes
17090 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
17091 $glibc_header_dir/features.h > /dev/null && \
17092 test -f $glibc_header_dir/bits/uClibc_config.h && \
17093 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
17094 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
17095 gcc_cv_libc_provides_ssp=yes
17100 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
17101 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
17102 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
17103 echo $ECHO_N "(cached) $ECHO_C" >&6
17105 cat >conftest.$ac_ext <<_ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17111 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
17112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17113 #define __stack_chk_fail innocuous___stack_chk_fail
17115 /* System header to define __stub macros and hopefully few prototypes,
17116 which can conflict with char __stack_chk_fail (); below.
17117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17118 <limits.h> exists even on freestanding compilers. */
17121 # include <limits.h>
17123 # include <assert.h>
17126 #undef __stack_chk_fail
17128 /* Override any gcc2 internal prototype to avoid an error. */
17133 /* We use char because int might match the return type of a gcc2
17134 builtin and then its argument prototype would still apply. */
17135 char __stack_chk_fail ();
17136 /* The GNU C library defines this for functions which it implements
17137 to always fail with ENOSYS. Some functions are actually named
17138 something starting with __ and the normal name is an alias. */
17139 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
17142 char (*f) () = __stack_chk_fail;
17151 return f != __stack_chk_fail;
17156 rm -f conftest.$ac_objext conftest$ac_exeext
17157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17158 (eval $ac_link) 2>conftest.er1
17160 grep -v '^ *+' conftest.er1 >conftest.err
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag"
17166 || test ! -s conftest.err'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try='test -s conftest$ac_exeext'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 ac_cv_func___stack_chk_fail=yes
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 ac_cv_func___stack_chk_fail=no
17185 rm -f conftest.err conftest.$ac_objext \
17186 conftest$ac_exeext conftest.$ac_ext
17188 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
17189 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
17190 if test $ac_cv_func___stack_chk_fail = yes; then
17191 gcc_cv_libc_provides_ssp=yes
17193 echo "no __stack_chk_fail on this target"
17197 *) gcc_cv_libc_provides_ssp=no ;;
17200 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
17201 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
17203 if test x$gcc_cv_libc_provides_ssp = xyes; then
17205 cat >>confdefs.h <<\_ACEOF
17206 #define TARGET_LIBC_PROVIDES_SSP 1
17211 # Check if TFmode long double should be used by default or not.
17212 # Some glibc targets used DFmode long double, but with glibc 2.4
17213 # and later they can use TFmode.
17215 powerpc*-*-linux* | \
17216 powerpc*-*-gnu* | \
17217 sparc*-*-linux* | \
17221 # Check whether --with-long-double-128 or --without-long-double-128 was given.
17222 if test "${with_long_double_128+set}" = set; then
17223 withval="$with_long_double_128"
17224 gcc_cv_target_ldbl128="$with_long_double_128"
17226 gcc_cv_target_ldbl128=no
17227 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
17228 if test "x$with_sysroot" = x; then
17229 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
17230 elif test "x$with_build_sysroot" != "x"; then
17231 glibc_header_dir="${with_build_sysroot}/usr/include"
17232 elif test "x$with_sysroot" = xyes; then
17233 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
17235 glibc_header_dir="${with_sysroot}/usr/include"
17238 glibc_header_dir=/usr/include
17240 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
17241 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
17242 && gcc_cv_target_ldbl128=yes
17247 if test x$gcc_cv_target_ldbl128 = xyes; then
17249 cat >>confdefs.h <<\_ACEOF
17250 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
17255 # Find out what GC implementation we want, or may, use.
17257 # Check whether --with-gc or --without-gc was given.
17258 if test "${with_gc+set}" = set; then
17267 cat >>confdefs.h <<\_ACEOF
17273 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
17274 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
17275 { (exit 1); exit 1; }; }
17282 echo "Using $GGC for garbage collection."
17284 # Use the system's zlib library.
17286 zlibinc="-I\$(srcdir)/../zlib"
17288 # Check whether --with-system-zlib or --without-system-zlib was given.
17289 if test "${with_system_zlib+set}" = set; then
17290 withval="$with_system_zlib"
17299 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
17300 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
17301 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
17302 if test "${enable_maintainer_mode+set}" = set; then
17303 enableval="$enable_maintainer_mode"
17304 maintainer_mode=$enableval
17309 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
17310 echo "${ECHO_T}$maintainer_mode" >&6
17312 if test "$maintainer_mode" = "yes"; then
17322 # Make empty files to contain the specs and options for each language.
17323 # Then add #include lines to for a compiler that has specs and/or options.
17329 # These (without "all_") are set in each config-lang.in.
17330 # `language' must be a single word so is spelled singularly.
17333 all_outputs='Makefile gccbug libada-mk'
17334 # List of language makefile fragments.
17335 all_lang_makefrags=
17336 # List of language subdirectory makefiles. Deprecated.
17337 all_lang_makefiles=
17338 # Additional files for gengtype
17339 all_gtfiles="$target_gtfiles"
17341 # These are the languages that are set in --enable-languages,
17342 # and are available in the GCC tree.
17343 all_selected_languages=
17345 # Add the language fragments.
17346 # Languages are added via two mechanisms. Some information must be
17347 # recorded in makefile variables, these are defined in config-lang.in.
17348 # We accumulate them and plug them into the main Makefile.
17349 # The other mechanism is a set of hooks for each of the main targets
17350 # like `clean', `install', etc.
17352 language_hooks="Make-hooks"
17354 for lang in ${srcdir}/*/config-lang.in
17356 test "$lang" = "${srcdir}/*/config-lang.in" && continue
17358 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
17359 if test "x$lang_alias" = x
17361 echo "$lang doesn't set \$language." 1>&2
17364 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
17365 subdirs="$subdirs $subdir"
17366 case ",$enable_languages," in
17368 all_selected_languages="$all_selected_languages $lang_alias"
17369 if test -f $srcdir/$subdir/lang-specs.h; then
17370 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
17381 . ${srcdir}/$subdir/config-lang.in
17382 if test "x$language" = x
17384 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
17389 case ",$enable_languages," in
17390 *,$lang_alias,*) ;;
17392 for i in $subdir_requires; do
17393 test -f "${srcdir}/$i/config-lang.in" && continue
17401 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
17402 if test -f $srcdir/$subdir/lang.opt; then
17403 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
17405 if test -f $srcdir/$subdir/$subdir-tree.def; then
17406 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
17408 if test -f ${srcdir}/$subdir/Makefile.in
17409 then all_lang_makefiles="$subdir/Makefile"
17411 all_languages="$all_languages $language"
17412 all_compilers="$all_compilers $compilers"
17413 all_outputs="$all_outputs $outputs"
17414 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
17417 # Pick up gtfiles for c
17419 . ${srcdir}/c-config-lang.in
17420 all_gtfiles="$all_gtfiles [c] $gtfiles"
17423 for language in $all_selected_languages
17425 check_languages="$check_languages check-$language"
17428 # We link each language in with a set of hooks, reached indirectly via
17429 # lang.${target}. Only do so for selected languages.
17433 target_list="all.cross start.encap rest.encap tags \
17434 install-common install-man install-info install-pdf dvi pdf \
17435 html uninstall info man srcextra srcman srcinfo \
17436 mostlyclean clean distclean maintainer-clean"
17438 for t in $target_list
17441 for lang in $all_selected_languages
17445 echo "lang.$t: $x" >> Make-hooks
17454 echo "dir ." > .gdbinit
17455 echo "dir ${srcdir}" >> .gdbinit
17456 if test x$gdb_needs_out_file_path = xyes
17458 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17460 if test "x$subdirs" != x; then
17463 echo "dir ${srcdir}/$s" >> .gdbinit
17466 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17468 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
17472 # Find a directory in which to install a shared libgcc.
17474 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17475 if test "${enable_version_specific_runtime_libs+set}" = set; then
17476 enableval="$enable_version_specific_runtime_libs"
17481 # Check whether --with-slibdir or --without-slibdir was given.
17482 if test "${with_slibdir+set}" = set; then
17483 withval="$with_slibdir"
17484 slibdir="$with_slibdir"
17486 if test "${enable_version_specific_runtime_libs+set}" = set; then
17487 slibdir='$(libsubdir)'
17488 elif test "$host" != "$target"; then
17489 slibdir='$(build_tooldir)/lib'
17491 slibdir='$(libdir)'
17496 objdir=`${PWDCMD-pwd}`
17500 # Check whether --with-datarootdir or --without-datarootdir was given.
17501 if test "${with_datarootdir+set}" = set; then
17502 withval="$with_datarootdir"
17503 datarootdir="\${prefix}/$with_datarootdir"
17505 datarootdir='$(prefix)/share'
17510 # Check whether --with-docdir or --without-docdir was given.
17511 if test "${with_docdir+set}" = set; then
17512 withval="$with_docdir"
17513 docdir="\${prefix}/$with_docdir"
17515 docdir='$(datarootdir)'
17520 # Check whether --with-htmldir or --without-htmldir was given.
17521 if test "${with_htmldir+set}" = set; then
17522 withval="$with_htmldir"
17523 htmldir="\${prefix}/$with_htmldir"
17525 htmldir='$(docdir)'
17529 # Substitute configuration variables
17587 if test x${build} = x${host} ; then
17588 if test x${host} = x${target} ; then
17589 echo "Links are now set up to build a native compiler for ${target}." 1>&2
17591 echo "Links are now set up to build a cross-compiler" 1>&2
17592 echo " from ${host} to ${target}." 1>&2
17595 if test x${host} = x${target} ; then
17596 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17597 echo " for ${target}." 1>&2
17599 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17600 echo " from ${host} to ${target}." 1>&2
17607 # Configure the subdirectories
17608 # AC_CONFIG_SUBDIRS($subdirs)
17610 # Create the Makefile
17611 # and configure language subdirectories
17612 ac_config_files="$ac_config_files $all_outputs"
17615 ac_config_commands="$ac_config_commands default"
17617 cat >confcache <<\_ACEOF
17618 # This file is a shell script that caches the results of configure
17619 # tests run on this system so they can be shared between configure
17620 # scripts and configure runs, see configure's option --config-cache.
17621 # It is not useful on other systems. If it contains results you don't
17622 # want to keep, you may remove or edit it.
17624 # config.status only pays attention to the cache file if you give it
17625 # the --recheck option to rerun configure.
17627 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17628 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17629 # following values.
17633 # The following way of writing the cache mishandles newlines in values,
17634 # but we know of no workaround that is simple, portable, and efficient.
17635 # So, don't put newlines in cache variables' values.
17636 # Ultrix sh set writes to stderr and can't be redirected directly,
17637 # and sets the high bit in the cache file unless we assign to the vars.
17640 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17642 # `set' does not quote correctly, so add quotes (double-quote
17643 # substitution turns \\\\ into \\, and sed turns \\ into \).
17646 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17649 # `set' quotes correctly as required by POSIX, so do not add quotes.
17651 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17658 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17660 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17662 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17663 if test -w $cache_file; then
17664 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17665 cat confcache >$cache_file
17667 echo "not updating unwritable cache $cache_file"
17672 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17673 # Let make expand exec_prefix.
17674 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17676 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17677 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17678 # trailing colons and then remove the whole line if VPATH becomes empty
17679 # (actually we leave an empty line to preserve line numbers).
17680 if test "x$srcdir" = x.; then
17681 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17682 s/:*\$(srcdir):*/:/;
17683 s/:*\${srcdir}:*/:/;
17685 s/^\([^=]*=[ ]*\):*/\1/;
17691 DEFS=-DHAVE_CONFIG_H
17695 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17696 # 1. Remove the extension, and $U if already installed.
17697 ac_i=`echo "$ac_i" |
17698 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17700 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17701 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17703 LIBOBJS=$ac_libobjs
17705 LTLIBOBJS=$ac_ltlibobjs
17709 : ${CONFIG_STATUS=./config.status}
17710 ac_clean_files_save=$ac_clean_files
17711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17712 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17713 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17714 cat >$CONFIG_STATUS <<_ACEOF
17716 # Generated by $as_me.
17717 # Run this file to recreate the current configuration.
17718 # Compiler output produced by configure, useful for debugging
17719 # configure, is in config.log if it exists.
17722 ac_cs_recheck=false
17724 SHELL=\${CONFIG_SHELL-$SHELL}
17727 cat >>$CONFIG_STATUS <<\_ACEOF
17728 ## --------------------- ##
17729 ## M4sh Initialization. ##
17730 ## --------------------- ##
17732 # Be Bourne compatible
17733 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17736 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17737 # is contrary to our usage. Disable this feature.
17738 alias -g '${1+"$@"}'='"$@"'
17739 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17742 DUALCASE=1; export DUALCASE # for MKS sh
17744 # Support unset when possible.
17745 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17752 # Work around bugs in pre-3.0 UWIN ksh.
17753 $as_unset ENV MAIL MAILPATH
17760 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17761 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17762 LC_TELEPHONE LC_TIME
17764 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17765 eval $as_var=C; export $as_var
17771 # Required to use basename.
17772 if expr a : '\(a\)' >/dev/null 2>&1; then
17778 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17779 as_basename=basename
17785 # Name of the executable.
17786 as_me=`$as_basename "$0" ||
17787 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17788 X"$0" : 'X\(//\)$' \| \
17789 X"$0" : 'X\(/\)$' \| \
17790 . : '\(.\)' 2>/dev/null ||
17792 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17793 /^X\/\(\/\/\)$/{ s//\1/; q; }
17794 /^X\/\(\/\).*/{ s//\1/; q; }
17798 # PATH needs CR, and LINENO needs CR and PATH.
17799 # Avoid depending upon Character Ranges.
17800 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17801 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17802 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17803 as_cr_digits='0123456789'
17804 as_cr_alnum=$as_cr_Letters$as_cr_digits
17806 # The user is always right.
17807 if test "${PATH_SEPARATOR+set}" != set; then
17808 echo "#! /bin/sh" >conf$$.sh
17809 echo "exit 0" >>conf$$.sh
17811 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17820 as_lineno_1=$LINENO
17821 as_lineno_2=$LINENO
17822 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17823 test "x$as_lineno_1" != "x$as_lineno_2" &&
17824 test "x$as_lineno_3" = "x$as_lineno_2" || {
17825 # Find who we are. Look in the path if we contain no path at all
17828 *[\\/]* ) as_myself=$0 ;;
17829 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17830 for as_dir in $PATH
17833 test -z "$as_dir" && as_dir=.
17834 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17839 # We did not find ourselves, most probably we were run as `sh COMMAND'
17840 # in which case we are not to be found in the path.
17841 if test "x$as_myself" = x; then
17844 if test ! -f "$as_myself"; then
17845 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17846 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17847 { (exit 1); exit 1; }; }
17849 case $CONFIG_SHELL in
17851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17852 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17855 test -z "$as_dir" && as_dir=.
17856 for as_base in sh bash ksh sh5; do
17859 if ("$as_dir/$as_base" -c '
17860 as_lineno_1=$LINENO
17861 as_lineno_2=$LINENO
17862 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17863 test "x$as_lineno_1" != "x$as_lineno_2" &&
17864 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17865 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17866 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17867 CONFIG_SHELL=$as_dir/$as_base
17868 export CONFIG_SHELL
17869 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17877 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17878 # uniformly replaced by the line number. The first 'sed' inserts a
17879 # line-number line before each line; the second 'sed' does the real
17880 # work. The second script uses 'N' to pair each line-number line
17881 # with the numbered line, and appends trailing '-' during
17882 # substitution so that $LINENO is not a special case at line end.
17883 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17884 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17885 sed '=' <$as_myself |
17890 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17893 s,^['$as_cr_digits']*\n,,
17894 ' >$as_me.lineno &&
17895 chmod +x $as_me.lineno ||
17896 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17897 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17898 { (exit 1); exit 1; }; }
17900 # Don't try to exec as it changes $[0], causing all sort of problems
17901 # (the dirname of $[0] is not the place where we might find the
17902 # original and so on. Autoconf is especially sensible to this).
17904 # Exit status is that of the last command.
17909 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17910 *c*,-n*) ECHO_N= ECHO_C='
17912 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17913 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17916 if expr a : '\(a\)' >/dev/null 2>&1; then
17922 rm -f conf$$ conf$$.exe conf$$.file
17924 if ln -s conf$$.file conf$$ 2>/dev/null; then
17925 # We could just check for DJGPP; but this test a) works b) is more generic
17926 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17927 if test -f conf$$.exe; then
17928 # Don't use ln at all; we don't have any links
17933 elif ln conf$$.file conf$$ 2>/dev/null; then
17938 rm -f conf$$ conf$$.exe conf$$.file
17940 if mkdir -p . 2>/dev/null; then
17943 test -d ./-p && rmdir ./-p
17947 as_executable_p="test -f"
17949 # Sed expression to map a string onto a valid CPP name.
17950 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17952 # Sed expression to map a string onto a valid variable name.
17953 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17957 # We need space, tab and new line, in precisely that order.
17967 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17968 # report actual input values of CONFIG_FILES etc. instead of their
17969 # values after options handling. Logging --version etc. is OK.
17973 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17974 ## Running $as_me. ##
17979 This file was extended by $as_me, which was
17980 generated by GNU Autoconf 2.59. Invocation command line was
17982 CONFIG_FILES = $CONFIG_FILES
17983 CONFIG_HEADERS = $CONFIG_HEADERS
17984 CONFIG_LINKS = $CONFIG_LINKS
17985 CONFIG_COMMANDS = $CONFIG_COMMANDS
17989 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17993 # Files that config.status was made for.
17994 if test -n "$ac_config_files"; then
17995 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17998 if test -n "$ac_config_headers"; then
17999 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18002 if test -n "$ac_config_links"; then
18003 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18006 if test -n "$ac_config_commands"; then
18007 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18010 cat >>$CONFIG_STATUS <<\_ACEOF
18013 \`$as_me' instantiates files from templates according to the
18014 current configuration.
18016 Usage: $0 [OPTIONS] [FILE]...
18018 -h, --help print this help, then exit
18019 -V, --version print version number, then exit
18020 -q, --quiet do not print progress messages
18021 -d, --debug don't remove temporary files
18022 --recheck update $as_me by reconfiguring in the same conditions
18023 --file=FILE[:TEMPLATE]
18024 instantiate the configuration file FILE
18025 --header=FILE[:TEMPLATE]
18026 instantiate the configuration header FILE
18028 Configuration files:
18031 Configuration headers:
18034 Configuration commands:
18037 Report bugs to <bug-autoconf@gnu.org>."
18040 cat >>$CONFIG_STATUS <<_ACEOF
18043 configured by $0, generated by GNU Autoconf 2.59,
18044 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18046 Copyright (C) 2003 Free Software Foundation, Inc.
18047 This config.status script is free software; the Free Software Foundation
18048 gives unlimited permission to copy, distribute and modify it."
18052 cat >>$CONFIG_STATUS <<\_ACEOF
18053 # If no file are specified by the user, then we need to provide default
18054 # value. By we need to know if files were specified by the user.
18060 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18061 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18069 *) # This is not an option, so the user has probably given explicit
18072 ac_need_defaults=false;;
18076 # Handling of the options.
18078 cat >>$CONFIG_STATUS <<\_ACEOF
18079 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18081 --version | --vers* | -V )
18082 echo "$ac_cs_version"; exit 0 ;;
18084 # Conflict between --help and --header
18085 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18086 Try \`$0 --help' for more information." >&5
18087 echo "$as_me: error: ambiguous option: $1
18088 Try \`$0 --help' for more information." >&2;}
18089 { (exit 1); exit 1; }; };;
18090 --help | --hel | -h )
18091 echo "$ac_cs_usage"; exit 0 ;;
18092 --debug | --d* | -d )
18094 --file | --fil | --fi | --f )
18096 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18097 ac_need_defaults=false;;
18098 --header | --heade | --head | --hea )
18100 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18101 ac_need_defaults=false;;
18102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18103 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18106 # This is an error.
18107 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18108 Try \`$0 --help' for more information." >&5
18109 echo "$as_me: error: unrecognized option: $1
18110 Try \`$0 --help' for more information." >&2;}
18111 { (exit 1); exit 1; }; } ;;
18113 *) ac_config_targets="$ac_config_targets $1" ;;
18119 ac_configure_extra_args=
18121 if $ac_cs_silent; then
18123 ac_configure_extra_args="$ac_configure_extra_args --silent"
18127 cat >>$CONFIG_STATUS <<_ACEOF
18128 if \$ac_cs_recheck; then
18129 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18130 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18135 cat >>$CONFIG_STATUS <<_ACEOF
18137 # INIT-COMMANDS section.
18146 cat >>$CONFIG_STATUS <<\_ACEOF
18147 for ac_config_target in $ac_config_targets
18149 case "$ac_config_target" in
18150 # Handling of arguments.
18151 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
18152 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
18153 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
18154 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
18155 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18156 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
18157 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18158 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18159 { (exit 1); exit 1; }; };;
18163 # If the user did not use the arguments to specify the items to instantiate,
18164 # then the envvar interface is used. Set only those that are not.
18165 # We use the long form for the default assignment because of an extremely
18166 # bizarre bug on SunOS 4.1.3.
18167 if $ac_need_defaults; then
18168 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18169 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18170 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18173 # Have a temporary directory for convenience. Make it in the build tree
18174 # simply because there is no reason to put it here, and in addition,
18175 # creating and moving files from /tmp can sometimes cause problems.
18176 # Create a temporary directory, and hook for its removal unless debugging.
18179 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18180 trap '{ (exit 1); exit 1; }' 1 2 13 15
18183 # Create a (secure) tmp directory for tmp files.
18186 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18187 test -n "$tmp" && test -d "$tmp"
18190 tmp=./confstat$$-$RANDOM
18191 (umask 077 && mkdir $tmp)
18194 echo "$me: cannot create a temporary directory in ." >&2
18195 { (exit 1); exit 1; }
18200 cat >>$CONFIG_STATUS <<_ACEOF
18203 # CONFIG_FILES section.
18206 # No need to generate the scripts if there are no CONFIG_FILES.
18207 # This happens for instance when ./config.status config.h
18208 if test -n "\$CONFIG_FILES"; then
18209 # Protect against being on the right side of a sed subst in config.status.
18210 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18211 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18212 s,@SHELL@,$SHELL,;t t
18213 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18214 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18215 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18216 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18217 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18218 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18219 s,@exec_prefix@,$exec_prefix,;t t
18220 s,@prefix@,$prefix,;t t
18221 s,@program_transform_name@,$program_transform_name,;t t
18222 s,@bindir@,$bindir,;t t
18223 s,@sbindir@,$sbindir,;t t
18224 s,@libexecdir@,$libexecdir,;t t
18225 s,@datadir@,$datadir,;t t
18226 s,@sysconfdir@,$sysconfdir,;t t
18227 s,@sharedstatedir@,$sharedstatedir,;t t
18228 s,@localstatedir@,$localstatedir,;t t
18229 s,@libdir@,$libdir,;t t
18230 s,@includedir@,$includedir,;t t
18231 s,@oldincludedir@,$oldincludedir,;t t
18232 s,@infodir@,$infodir,;t t
18233 s,@mandir@,$mandir,;t t
18234 s,@build_alias@,$build_alias,;t t
18235 s,@host_alias@,$host_alias,;t t
18236 s,@target_alias@,$target_alias,;t t
18237 s,@DEFS@,$DEFS,;t t
18238 s,@ECHO_C@,$ECHO_C,;t t
18239 s,@ECHO_N@,$ECHO_N,;t t
18240 s,@ECHO_T@,$ECHO_T,;t t
18241 s,@LIBS@,$LIBS,;t t
18242 s,@build@,$build,;t t
18243 s,@build_cpu@,$build_cpu,;t t
18244 s,@build_vendor@,$build_vendor,;t t
18245 s,@build_os@,$build_os,;t t
18246 s,@host@,$host,;t t
18247 s,@host_cpu@,$host_cpu,;t t
18248 s,@host_vendor@,$host_vendor,;t t
18249 s,@host_os@,$host_os,;t t
18250 s,@target@,$target,;t t
18251 s,@target_cpu@,$target_cpu,;t t
18252 s,@target_vendor@,$target_vendor,;t t
18253 s,@target_os@,$target_os,;t t
18254 s,@target_noncanonical@,$target_noncanonical,;t t
18255 s,@build_libsubdir@,$build_libsubdir,;t t
18256 s,@build_subdir@,$build_subdir,;t t
18257 s,@host_subdir@,$host_subdir,;t t
18258 s,@target_subdir@,$target_subdir,;t t
18259 s,@GENINSRC@,$GENINSRC,;t t
18261 s,@CFLAGS@,$CFLAGS,;t t
18262 s,@LDFLAGS@,$LDFLAGS,;t t
18263 s,@CPPFLAGS@,$CPPFLAGS,;t t
18264 s,@ac_ct_CC@,$ac_ct_CC,;t t
18265 s,@EXEEXT@,$EXEEXT,;t t
18266 s,@OBJEXT@,$OBJEXT,;t t
18267 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
18268 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
18270 s,@EGREP@,$EGREP,;t t
18271 s,@loose_warn@,$loose_warn,;t t
18272 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
18273 s,@strict_warn@,$strict_warn,;t t
18274 s,@warn_cflags@,$warn_cflags,;t t
18275 s,@nocommon_flag@,$nocommon_flag,;t t
18276 s,@TREEBROWSER@,$TREEBROWSER,;t t
18277 s,@valgrind_path@,$valgrind_path,;t t
18278 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
18279 s,@valgrind_command@,$valgrind_command,;t t
18280 s,@coverage_flags@,$coverage_flags,;t t
18281 s,@enable_multilib@,$enable_multilib,;t t
18282 s,@enable_decimal_float@,$enable_decimal_float,;t t
18283 s,@enable_fixed_point@,$enable_fixed_point,;t t
18284 s,@enable_shared@,$enable_shared,;t t
18285 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
18286 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
18287 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
18288 s,@onestep@,$onestep,;t t
18289 s,@PKGVERSION@,$PKGVERSION,;t t
18290 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
18291 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
18292 s,@datarootdir@,$datarootdir,;t t
18293 s,@docdir@,$docdir,;t t
18294 s,@htmldir@,$htmldir,;t t
18295 s,@SET_MAKE@,$SET_MAKE,;t t
18297 s,@LN_S@,$LN_S,;t t
18299 s,@RANLIB@,$RANLIB,;t t
18300 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18301 s,@ranlib_flags@,$ranlib_flags,;t t
18302 s,@INSTALL@,$INSTALL,;t t
18303 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18304 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18305 s,@make_compare_target@,$make_compare_target,;t t
18306 s,@have_mktemp_command@,$have_mktemp_command,;t t
18307 s,@MAKEINFO@,$MAKEINFO,;t t
18308 s,@BUILD_INFO@,$BUILD_INFO,;t t
18309 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
18310 s,@FLEX@,$FLEX,;t t
18311 s,@BISON@,$BISON,;t t
18314 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
18315 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
18316 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
18317 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
18318 s,@LIBICONV@,$LIBICONV,;t t
18319 s,@LTLIBICONV@,$LTLIBICONV,;t t
18320 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
18321 s,@manext@,$manext,;t t
18322 s,@objext@,$objext,;t t
18323 s,@gthread_flags@,$gthread_flags,;t t
18324 s,@extra_modes_file@,$extra_modes_file,;t t
18325 s,@extra_opt_files@,$extra_opt_files,;t t
18326 s,@USE_NLS@,$USE_NLS,;t t
18327 s,@LIBINTL@,$LIBINTL,;t t
18328 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
18329 s,@INCINTL@,$INCINTL,;t t
18330 s,@XGETTEXT@,$XGETTEXT,;t t
18331 s,@GMSGFMT@,$GMSGFMT,;t t
18332 s,@POSUB@,$POSUB,;t t
18333 s,@CATALOGS@,$CATALOGS,;t t
18334 s,@DATADIRNAME@,$DATADIRNAME,;t t
18335 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
18336 s,@GENCAT@,$GENCAT,;t t
18337 s,@CATOBJEXT@,$CATOBJEXT,;t t
18338 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
18339 s,@CROSS@,$CROSS,;t t
18341 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
18342 s,@inhibit_libc@,$inhibit_libc,;t t
18343 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
18344 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
18345 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
18346 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
18347 s,@collect2@,$collect2,;t t
18348 s,@gcc_cv_as@,$gcc_cv_as,;t t
18349 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
18350 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
18351 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
18352 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
18353 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
18354 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
18355 s,@libgcc_visibility@,$libgcc_visibility,;t t
18357 s,@zlibdir@,$zlibdir,;t t
18358 s,@zlibinc@,$zlibinc,;t t
18359 s,@MAINT@,$MAINT,;t t
18360 s,@gcc_tooldir@,$gcc_tooldir,;t t
18361 s,@dollar@,$dollar,;t t
18362 s,@slibdir@,$slibdir,;t t
18363 s,@objdir@,$objdir,;t t
18364 s,@subdirs@,$subdirs,;t t
18365 s,@srcdir@,$srcdir,;t t
18366 s,@all_compilers@,$all_compilers,;t t
18367 s,@all_gtfiles@,$all_gtfiles,;t t
18368 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
18369 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
18370 s,@all_languages@,$all_languages,;t t
18371 s,@all_selected_languages@,$all_selected_languages,;t t
18372 s,@build_exeext@,$build_exeext,;t t
18373 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
18374 s,@build_xm_file_list@,$build_xm_file_list,;t t
18375 s,@build_xm_include_list@,$build_xm_include_list,;t t
18376 s,@build_xm_defines@,$build_xm_defines,;t t
18377 s,@build_file_translate@,$build_file_translate,;t t
18378 s,@check_languages@,$check_languages,;t t
18379 s,@cpp_install_dir@,$cpp_install_dir,;t t
18380 s,@xmake_file@,$xmake_file,;t t
18381 s,@tmake_file@,$tmake_file,;t t
18382 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
18383 s,@extra_headers_list@,$extra_headers_list,;t t
18384 s,@extra_objs@,$extra_objs,;t t
18385 s,@extra_parts@,$extra_parts,;t t
18386 s,@extra_passes@,$extra_passes,;t t
18387 s,@extra_programs@,$extra_programs,;t t
18388 s,@float_h_file@,$float_h_file,;t t
18389 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
18390 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
18391 s,@host_exeext@,$host_exeext,;t t
18392 s,@host_xm_file_list@,$host_xm_file_list,;t t
18393 s,@host_xm_include_list@,$host_xm_include_list,;t t
18394 s,@host_xm_defines@,$host_xm_defines,;t t
18395 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
18396 s,@install@,$install,;t t
18397 s,@lang_opt_files@,$lang_opt_files,;t t
18398 s,@lang_specs_files@,$lang_specs_files,;t t
18399 s,@lang_tree_files@,$lang_tree_files,;t t
18400 s,@local_prefix@,$local_prefix,;t t
18401 s,@md_file@,$md_file,;t t
18402 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
18403 s,@out_file@,$out_file,;t t
18404 s,@out_object_file@,$out_object_file,;t t
18405 s,@thread_file@,$thread_file,;t t
18406 s,@tm_file_list@,$tm_file_list,;t t
18407 s,@tm_include_list@,$tm_include_list,;t t
18408 s,@tm_defines@,$tm_defines,;t t
18409 s,@tm_p_file_list@,$tm_p_file_list,;t t
18410 s,@tm_p_include_list@,$tm_p_include_list,;t t
18411 s,@xm_file_list@,$xm_file_list,;t t
18412 s,@xm_include_list@,$xm_include_list,;t t
18413 s,@xm_defines@,$xm_defines,;t t
18414 s,@c_target_objs@,$c_target_objs,;t t
18415 s,@cxx_target_objs@,$cxx_target_objs,;t t
18416 s,@target_cpu_default@,$target_cpu_default,;t t
18417 s,@GMPLIBS@,$GMPLIBS,;t t
18418 s,@GMPINC@,$GMPINC,;t t
18419 s,@LIBOBJS@,$LIBOBJS,;t t
18420 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18421 /@language_hooks@/r $language_hooks
18422 s,@language_hooks@,,;t t
18427 cat >>$CONFIG_STATUS <<\_ACEOF
18428 # Split the substitutions into bite-sized pieces for seds with
18429 # small command number limits, like on Digital OSF/1 and HP-UX.
18430 ac_max_sed_lines=48
18431 ac_sed_frag=1 # Number of current file.
18432 ac_beg=1 # First line for current file.
18433 ac_end=$ac_max_sed_lines # Line after last line for current file.
18436 while $ac_more_lines; do
18437 if test $ac_beg -gt 1; then
18438 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18440 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18442 if test ! -s $tmp/subs.frag; then
18443 ac_more_lines=false
18445 # The purpose of the label and of the branching condition is to
18446 # speed up the sed processing (if there are no `@' at all, there
18447 # is no need to browse any of the substitutions).
18448 # These are the two extra sed commands mentioned above.
18450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18451 if test -z "$ac_sed_cmds"; then
18452 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18454 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18456 ac_sed_frag=`expr $ac_sed_frag + 1`
18458 ac_end=`expr $ac_end + $ac_max_sed_lines`
18461 if test -z "$ac_sed_cmds"; then
18464 fi # test -n "$CONFIG_FILES"
18467 cat >>$CONFIG_STATUS <<\_ACEOF
18468 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18469 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18471 - | *:- | *:-:* ) # input from stdin
18473 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18474 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18475 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18476 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18477 * ) ac_file_in=$ac_file.in ;;
18480 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18481 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18483 X"$ac_file" : 'X\(//\)[^/]' \| \
18484 X"$ac_file" : 'X\(//\)$' \| \
18485 X"$ac_file" : 'X\(/\)' \| \
18486 . : '\(.\)' 2>/dev/null ||
18488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18490 /^X\(\/\/\)$/{ s//\1/; q; }
18491 /^X\(\/\).*/{ s//\1/; q; }
18493 { if $as_mkdir_p; then
18498 while test ! -d "$as_dir"; do
18499 as_dirs="$as_dir $as_dirs"
18500 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18502 X"$as_dir" : 'X\(//\)[^/]' \| \
18503 X"$as_dir" : 'X\(//\)$' \| \
18504 X"$as_dir" : 'X\(/\)' \| \
18505 . : '\(.\)' 2>/dev/null ||
18507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18508 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18509 /^X\(\/\/\)$/{ s//\1/; q; }
18510 /^X\(\/\).*/{ s//\1/; q; }
18513 test ! -n "$as_dirs" || mkdir $as_dirs
18514 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18515 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18516 { (exit 1); exit 1; }; }; }
18520 if test "$ac_dir" != .; then
18521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18522 # A "../" for each directory in $ac_dir_suffix.
18523 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18525 ac_dir_suffix= ac_top_builddir=
18529 .) # No --srcdir option. We are building in place.
18531 if test -z "$ac_top_builddir"; then
18534 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18536 [\\/]* | ?:[\\/]* ) # Absolute path.
18537 ac_srcdir=$srcdir$ac_dir_suffix;
18538 ac_top_srcdir=$srcdir ;;
18539 *) # Relative path.
18540 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18541 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18544 # Do not use `cd foo && pwd` to compute absolute paths, because
18545 # the directories may not exist.
18547 .) ac_abs_builddir="$ac_dir";;
18550 .) ac_abs_builddir=`pwd`;;
18551 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18552 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18555 case $ac_abs_builddir in
18556 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18558 case ${ac_top_builddir}. in
18559 .) ac_abs_top_builddir=$ac_abs_builddir;;
18560 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18561 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18564 case $ac_abs_builddir in
18565 .) ac_abs_srcdir=$ac_srcdir;;
18568 .) ac_abs_srcdir=$ac_abs_builddir;;
18569 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18570 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18573 case $ac_abs_builddir in
18574 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18576 case $ac_top_srcdir in
18577 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18578 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18579 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18585 if test x"$ac_file" != x-; then
18586 { echo "$as_me:$LINENO: creating $ac_file" >&5
18587 echo "$as_me: creating $ac_file" >&6;}
18590 # Let's still pretend it is `configure' which instantiates (i.e., don't
18591 # use $as_me), people would be surprised to read:
18592 # /* config.h. Generated by config.status. */
18593 if test x"$ac_file" = x-; then
18596 configure_input="$ac_file. "
18598 configure_input=$configure_input"Generated from `echo $ac_file_in |
18599 sed 's,.*/,,'` by configure."
18601 # First look for the input files in the build tree, otherwise in the
18603 ac_file_inputs=`IFS=:
18604 for f in $ac_file_in; do
18606 -) echo $tmp/stdin ;;
18608 # Absolute (can't be DOS-style, as IFS=:)
18609 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18610 echo "$as_me: error: cannot find input file: $f" >&2;}
18611 { (exit 1); exit 1; }; }
18614 if test -f "$f"; then
18617 elif test -f "$srcdir/$f"; then
18622 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18623 echo "$as_me: error: cannot find input file: $f" >&2;}
18624 { (exit 1); exit 1; }; }
18627 done` || { (exit 1); exit 1; }
18629 cat >>$CONFIG_STATUS <<_ACEOF
18633 cat >>$CONFIG_STATUS <<\_ACEOF
18635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18636 s,@configure_input@,$configure_input,;t t
18637 s,@srcdir@,$ac_srcdir,;t t
18638 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18639 s,@top_srcdir@,$ac_top_srcdir,;t t
18640 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18641 s,@builddir@,$ac_builddir,;t t
18642 s,@abs_builddir@,$ac_abs_builddir,;t t
18643 s,@top_builddir@,$ac_top_builddir,;t t
18644 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18645 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18647 if test x"$ac_file" != x-; then
18648 mv $tmp/out $ac_file
18654 # Run the commands associated with the file.
18656 as ) chmod +x as ;;
18657 collect-ld ) chmod +x collect-ld ;;
18658 nm ) chmod +x nm ;;
18662 cat >>$CONFIG_STATUS <<\_ACEOF
18665 # CONFIG_HEADER section.
18668 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18669 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18671 # ac_d sets the value in "#define NAME VALUE" lines.
18672 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18673 ac_dB='[ ].*$,\1#\2'
18676 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18677 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18678 ac_uB='$,\1#\2define\3'
18682 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18683 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18685 - | *:- | *:-:* ) # input from stdin
18687 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18688 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18689 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18690 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18691 * ) ac_file_in=$ac_file.in ;;
18694 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18695 echo "$as_me: creating $ac_file" >&6;}
18697 # First look for the input files in the build tree, otherwise in the
18699 ac_file_inputs=`IFS=:
18700 for f in $ac_file_in; do
18702 -) echo $tmp/stdin ;;
18704 # Absolute (can't be DOS-style, as IFS=:)
18705 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18706 echo "$as_me: error: cannot find input file: $f" >&2;}
18707 { (exit 1); exit 1; }; }
18708 # Do quote $f, to prevent DOS paths from being IFS'd.
18711 if test -f "$f"; then
18714 elif test -f "$srcdir/$f"; then
18719 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18720 echo "$as_me: error: cannot find input file: $f" >&2;}
18721 { (exit 1); exit 1; }; }
18724 done` || { (exit 1); exit 1; }
18725 # Remove the trailing spaces.
18726 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18730 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18731 # `conftest.undefs', that substitutes the proper values into
18732 # config.h.in to produce config.h. The first handles `#define'
18733 # templates, and the second `#undef' templates.
18734 # And first: Protect against being on the right side of a sed subst in
18735 # config.status. Protect against being in an unquoted here document
18736 # in config.status.
18737 rm -f conftest.defines conftest.undefs
18738 # Using a here document instead of a string reduces the quoting nightmare.
18739 # Putting comments in sed scripts is not portable.
18741 # `end' is used to avoid that the second main sed command (meant for
18742 # 0-ary CPP macros) applies to n-ary macro definitions.
18743 # See the Autoconf documentation for `clear'.
18744 cat >confdef2sed.sed <<\_ACEOF
18749 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18751 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18754 # If some macros were called several times there might be several times
18755 # the same #defines, which is useless. Nevertheless, we may not want to
18756 # sort them, since we want the *last* AC-DEFINE to be honored.
18757 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18758 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18759 rm -f confdef2sed.sed
18761 # This sed command replaces #undef with comments. This is necessary, for
18762 # example, in the case of _POSIX_SOURCE, which is predefined and required
18763 # on some systems where configure will not decide to define it.
18764 cat >>conftest.undefs <<\_ACEOF
18765 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18768 # Break up conftest.defines because some shells have a limit on the size
18769 # of here documents, and old seds have small limits too (100 cmds).
18770 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18771 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18772 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18773 echo ' :' >>$CONFIG_STATUS
18774 rm -f conftest.tail
18775 while grep . conftest.defines >/dev/null
18777 # Write a limited-size here document to $tmp/defines.sed.
18778 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18779 # Speed up: don't consider the non `#define' lines.
18780 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18781 # Work around the forget-to-reset-the-flag bug.
18782 echo 't clr' >>$CONFIG_STATUS
18783 echo ': clr' >>$CONFIG_STATUS
18784 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18786 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18788 mv $tmp/out $tmp/in
18790 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18791 rm -f conftest.defines
18792 mv conftest.tail conftest.defines
18794 rm -f conftest.defines
18795 echo ' fi # grep' >>$CONFIG_STATUS
18796 echo >>$CONFIG_STATUS
18798 # Break up conftest.undefs because some shells have a limit on the size
18799 # of here documents, and old seds have small limits too (100 cmds).
18800 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18801 rm -f conftest.tail
18802 while grep . conftest.undefs >/dev/null
18804 # Write a limited-size here document to $tmp/undefs.sed.
18805 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18806 # Speed up: don't consider the non `#undef'
18807 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18808 # Work around the forget-to-reset-the-flag bug.
18809 echo 't clr' >>$CONFIG_STATUS
18810 echo ': clr' >>$CONFIG_STATUS
18811 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18813 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18815 mv $tmp/out $tmp/in
18817 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18818 rm -f conftest.undefs
18819 mv conftest.tail conftest.undefs
18821 rm -f conftest.undefs
18823 cat >>$CONFIG_STATUS <<\_ACEOF
18824 # Let's still pretend it is `configure' which instantiates (i.e., don't
18825 # use $as_me), people would be surprised to read:
18826 # /* config.h. Generated by config.status. */
18827 if test x"$ac_file" = x-; then
18828 echo "/* Generated by configure. */" >$tmp/config.h
18830 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18832 cat $tmp/in >>$tmp/config.h
18834 if test x"$ac_file" != x-; then
18835 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18836 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18837 echo "$as_me: $ac_file is unchanged" >&6;}
18839 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18840 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18841 X"$ac_file" : 'X\(//\)[^/]' \| \
18842 X"$ac_file" : 'X\(//\)$' \| \
18843 X"$ac_file" : 'X\(/\)' \| \
18844 . : '\(.\)' 2>/dev/null ||
18846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18848 /^X\(\/\/\)$/{ s//\1/; q; }
18849 /^X\(\/\).*/{ s//\1/; q; }
18851 { if $as_mkdir_p; then
18856 while test ! -d "$as_dir"; do
18857 as_dirs="$as_dir $as_dirs"
18858 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18860 X"$as_dir" : 'X\(//\)[^/]' \| \
18861 X"$as_dir" : 'X\(//\)$' \| \
18862 X"$as_dir" : 'X\(/\)' \| \
18863 . : '\(.\)' 2>/dev/null ||
18865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18867 /^X\(\/\/\)$/{ s//\1/; q; }
18868 /^X\(\/\).*/{ s//\1/; q; }
18871 test ! -n "$as_dirs" || mkdir $as_dirs
18872 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18873 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18874 { (exit 1); exit 1; }; }; }
18877 mv $tmp/config.h $ac_file
18881 rm -f $tmp/config.h
18885 cat >>$CONFIG_STATUS <<\_ACEOF
18888 # CONFIG_COMMANDS section.
18890 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18891 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18892 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18893 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18894 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18895 X"$ac_dest" : 'X\(//\)[^/]' \| \
18896 X"$ac_dest" : 'X\(//\)$' \| \
18897 X"$ac_dest" : 'X\(/\)' \| \
18898 . : '\(.\)' 2>/dev/null ||
18900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18901 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18902 /^X\(\/\/\)$/{ s//\1/; q; }
18903 /^X\(\/\).*/{ s//\1/; q; }
18905 { if $as_mkdir_p; then
18910 while test ! -d "$as_dir"; do
18911 as_dirs="$as_dir $as_dirs"
18912 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18914 X"$as_dir" : 'X\(//\)[^/]' \| \
18915 X"$as_dir" : 'X\(//\)$' \| \
18916 X"$as_dir" : 'X\(/\)' \| \
18917 . : '\(.\)' 2>/dev/null ||
18919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18920 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18921 /^X\(\/\/\)$/{ s//\1/; q; }
18922 /^X\(\/\).*/{ s//\1/; q; }
18925 test ! -n "$as_dirs" || mkdir $as_dirs
18926 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18927 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18928 { (exit 1); exit 1; }; }; }
18932 if test "$ac_dir" != .; then
18933 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18934 # A "../" for each directory in $ac_dir_suffix.
18935 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18937 ac_dir_suffix= ac_top_builddir=
18941 .) # No --srcdir option. We are building in place.
18943 if test -z "$ac_top_builddir"; then
18946 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18948 [\\/]* | ?:[\\/]* ) # Absolute path.
18949 ac_srcdir=$srcdir$ac_dir_suffix;
18950 ac_top_srcdir=$srcdir ;;
18951 *) # Relative path.
18952 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18953 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18956 # Do not use `cd foo && pwd` to compute absolute paths, because
18957 # the directories may not exist.
18959 .) ac_abs_builddir="$ac_dir";;
18962 .) ac_abs_builddir=`pwd`;;
18963 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18964 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18967 case $ac_abs_builddir in
18968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18970 case ${ac_top_builddir}. in
18971 .) ac_abs_top_builddir=$ac_abs_builddir;;
18972 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18973 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18976 case $ac_abs_builddir in
18977 .) ac_abs_srcdir=$ac_srcdir;;
18980 .) ac_abs_srcdir=$ac_abs_builddir;;
18981 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18982 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18985 case $ac_abs_builddir in
18986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18988 case $ac_top_srcdir in
18989 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18990 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18991 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18996 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18997 echo "$as_me: executing $ac_dest commands" >&6;}
19000 case ${CONFIG_HEADERS} in
19001 *auto-host.h:config.in*)
19004 # Make sure all the subdirs exist.
19005 for d in $subdirs doc build
19007 test -d $d || mkdir $d
19014 cat >>$CONFIG_STATUS <<\_ACEOF
19016 { (exit 0); exit 0; }
19018 chmod +x $CONFIG_STATUS
19019 ac_clean_files=$ac_clean_files_save
19022 # configure is writing to config.log, and then calls config.status.
19023 # config.status does its own redirection, appending to config.log.
19024 # Unfortunately, on DOS this fails, as config.log is still kept open
19025 # by configure, so config.status won't be able to write to it; its
19026 # output is simply discarded. So we exec the FD to /dev/null,
19027 # effectively closing config.log, so it can be properly (re)opened and
19028 # appended to by config.status. When coming back to configure, we
19029 # need to make the FD available again.
19030 if test "$no_create" != yes; then
19032 ac_config_status_args=
19033 test "$silent" = yes &&
19034 ac_config_status_args="$ac_config_status_args --quiet"
19036 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19039 # would make configure fail if this is the last instruction.
19040 $ac_cs_success || { (exit 1); exit 1; }