* ggc-zone.c (struct alloc_zone): Add statistics counters.
[official-gcc.git] / gcc / configure
blobaf7056d9528d6e84c8d5efb5b1a271d37248fe01
1 #! /bin/sh
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
14 emulate sh
15 NULLCMD=:
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
20 set -o posix
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
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
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 \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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 ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; 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
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
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
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
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
122 as_myself=$0
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
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
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
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
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 |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
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).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
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`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
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.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
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 build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT ANDER BANSHEEINC BANSHEELIB gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
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'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
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'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
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.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
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)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
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)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
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'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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; }; }
631 *=*)
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'"
639 export $ac_envvar ;;
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}
649 esac
650 done
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`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
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`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
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.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
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
695 cross_compiling=yes
699 ac_tool_prefix=
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 ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
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; }; }
732 else
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}
754 ac_env_CC_value=$CC
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.
788 cat <<_ACEOF
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.
798 Configuration:
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 \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
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]
838 _ACEOF
840 cat <<\_ACEOF
842 Program names:
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
847 System types:
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]
851 _ACEOF
854 if test -n "$ac_init_help"; then
856 cat <<\_ACEOF
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: fold,gc,gcac,misc,rtlflag,rtl,
871 tree,valgrind; default is gc,misc,rtlflag,tree
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler\'s code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
878 default is noopt
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --enable-initfini-array use .init_array/.fini_array sections
890 --enable-sjlj-exceptions
891 arrange to use setjmp/longjmp exception handling
892 --enable-libunwind-exceptions force use libunwind for exceptions
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
899 of the registry key
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
907 Optional Packages:
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
925 --with-gc={page,zone} choose the garbage collection mechanism to use
926 with the compiler
927 --with-system-zlib use installed libz
928 --with-libbanshee enable libbanshee
929 --with-slibdir=DIR shared libraries in DIR LIBDIR
931 Some influential environment variables:
932 CC C compiler command
933 CFLAGS C compiler flags
934 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
935 nonstandard directory <lib dir>
936 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
937 headers in a nonstandard directory <include dir>
938 CPP C preprocessor
939 GMPLIBS How to link GMP
940 GMPINC How to find GMP include files
942 Use these variables to override the choices made by `configure' or to help
943 it to find libraries and programs with nonstandard names/locations.
945 _ACEOF
948 if test "$ac_init_help" = "recursive"; then
949 # If there are subdirs, report their specific --help.
950 ac_popdir=`pwd`
951 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
952 test -d $ac_dir || continue
953 ac_builddir=.
955 if test "$ac_dir" != .; then
956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
957 # A "../" for each directory in $ac_dir_suffix.
958 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
959 else
960 ac_dir_suffix= ac_top_builddir=
963 case $srcdir in
964 .) # No --srcdir option. We are building in place.
965 ac_srcdir=.
966 if test -z "$ac_top_builddir"; then
967 ac_top_srcdir=.
968 else
969 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
970 fi ;;
971 [\\/]* | ?:[\\/]* ) # Absolute path.
972 ac_srcdir=$srcdir$ac_dir_suffix;
973 ac_top_srcdir=$srcdir ;;
974 *) # Relative path.
975 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
976 ac_top_srcdir=$ac_top_builddir$srcdir ;;
977 esac
979 # Do not use `cd foo && pwd` to compute absolute paths, because
980 # the directories may not exist.
981 case `pwd` in
982 .) ac_abs_builddir="$ac_dir";;
984 case "$ac_dir" in
985 .) ac_abs_builddir=`pwd`;;
986 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
987 *) ac_abs_builddir=`pwd`/"$ac_dir";;
988 esac;;
989 esac
990 case $ac_abs_builddir in
991 .) ac_abs_top_builddir=${ac_top_builddir}.;;
993 case ${ac_top_builddir}. in
994 .) ac_abs_top_builddir=$ac_abs_builddir;;
995 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
996 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
997 esac;;
998 esac
999 case $ac_abs_builddir in
1000 .) ac_abs_srcdir=$ac_srcdir;;
1002 case $ac_srcdir in
1003 .) ac_abs_srcdir=$ac_abs_builddir;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1005 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1006 esac;;
1007 esac
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1011 case $ac_top_srcdir in
1012 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1015 esac;;
1016 esac
1018 cd $ac_dir
1019 # Check for guested configure; otherwise get Cygnus style configure.
1020 if test -f $ac_srcdir/configure.gnu; then
1021 echo
1022 $SHELL $ac_srcdir/configure.gnu --help=recursive
1023 elif test -f $ac_srcdir/configure; then
1024 echo
1025 $SHELL $ac_srcdir/configure --help=recursive
1026 elif test -f $ac_srcdir/configure.ac ||
1027 test -f $ac_srcdir/configure.in; then
1028 echo
1029 $ac_configure --help
1030 else
1031 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1033 cd "$ac_popdir"
1034 done
1037 test -n "$ac_init_help" && exit 0
1038 if $ac_init_version; then
1039 cat <<\_ACEOF
1041 Copyright (C) 2003 Free Software Foundation, Inc.
1042 This configure script is free software; the Free Software Foundation
1043 gives unlimited permission to copy, distribute and modify it.
1044 _ACEOF
1045 exit 0
1047 exec 5>config.log
1048 cat >&5 <<_ACEOF
1049 This file contains any messages produced by compilers while
1050 running configure, to aid debugging if configure makes a mistake.
1052 It was created by $as_me, which was
1053 generated by GNU Autoconf 2.59. Invocation command line was
1055 $ $0 $@
1057 _ACEOF
1059 cat <<_ASUNAME
1060 ## --------- ##
1061 ## Platform. ##
1062 ## --------- ##
1064 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1065 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1066 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1067 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1068 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1070 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1071 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1073 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1074 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1075 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1076 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1077 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1078 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1079 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1081 _ASUNAME
1083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1084 for as_dir in $PATH
1086 IFS=$as_save_IFS
1087 test -z "$as_dir" && as_dir=.
1088 echo "PATH: $as_dir"
1089 done
1091 } >&5
1093 cat >&5 <<_ACEOF
1096 ## ----------- ##
1097 ## Core tests. ##
1098 ## ----------- ##
1100 _ACEOF
1103 # Keep a trace of the command line.
1104 # Strip out --no-create and --no-recursion so they do not pile up.
1105 # Strip out --silent because we don't want to record it for future runs.
1106 # Also quote any args containing shell meta-characters.
1107 # Make two passes to allow for proper duplicate-argument suppression.
1108 ac_configure_args=
1109 ac_configure_args0=
1110 ac_configure_args1=
1111 ac_sep=
1112 ac_must_keep_next=false
1113 for ac_pass in 1 2
1115 for ac_arg
1117 case $ac_arg in
1118 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1121 continue ;;
1122 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1123 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1124 esac
1125 case $ac_pass in
1126 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1128 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1129 if test $ac_must_keep_next = true; then
1130 ac_must_keep_next=false # Got value, back to normal.
1131 else
1132 case $ac_arg in
1133 *=* | --config-cache | -C | -disable-* | --disable-* \
1134 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1135 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1136 | -with-* | --with-* | -without-* | --without-* | --x)
1137 case "$ac_configure_args0 " in
1138 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1139 esac
1141 -* ) ac_must_keep_next=true ;;
1142 esac
1144 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1145 # Get rid of the leading space.
1146 ac_sep=" "
1148 esac
1149 done
1150 done
1151 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1152 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1154 # When interrupted or exit'd, cleanup temporary files, and complete
1155 # config.log. We remove comments because anyway the quotes in there
1156 # would cause problems or look ugly.
1157 # WARNING: Be sure not to use single quotes in there, as some shells,
1158 # such as our DU 5.0 friend, will then `close' the trap.
1159 trap 'exit_status=$?
1160 # Save into config.log some information that might help in debugging.
1162 echo
1164 cat <<\_ASBOX
1165 ## ---------------- ##
1166 ## Cache variables. ##
1167 ## ---------------- ##
1168 _ASBOX
1169 echo
1170 # The following way of writing the cache mishandles newlines in values,
1172 (set) 2>&1 |
1173 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1174 *ac_space=\ *)
1175 sed -n \
1176 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1180 sed -n \
1181 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1183 esac;
1185 echo
1187 cat <<\_ASBOX
1188 ## ----------------- ##
1189 ## Output variables. ##
1190 ## ----------------- ##
1191 _ASBOX
1192 echo
1193 for ac_var in $ac_subst_vars
1195 eval ac_val=$`echo $ac_var`
1196 echo "$ac_var='"'"'$ac_val'"'"'"
1197 done | sort
1198 echo
1200 if test -n "$ac_subst_files"; then
1201 cat <<\_ASBOX
1202 ## ------------- ##
1203 ## Output files. ##
1204 ## ------------- ##
1205 _ASBOX
1206 echo
1207 for ac_var in $ac_subst_files
1209 eval ac_val=$`echo $ac_var`
1210 echo "$ac_var='"'"'$ac_val'"'"'"
1211 done | sort
1212 echo
1215 if test -s confdefs.h; then
1216 cat <<\_ASBOX
1217 ## ----------- ##
1218 ## confdefs.h. ##
1219 ## ----------- ##
1220 _ASBOX
1221 echo
1222 sed "/^$/d" confdefs.h | sort
1223 echo
1225 test "$ac_signal" != 0 &&
1226 echo "$as_me: caught signal $ac_signal"
1227 echo "$as_me: exit $exit_status"
1228 } >&5
1229 rm -f core *.core &&
1230 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1231 exit $exit_status
1233 for ac_signal in 1 2 13 15; do
1234 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1235 done
1236 ac_signal=0
1238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1239 rm -rf conftest* confdefs.h
1240 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1241 echo >confdefs.h
1243 # Predefined preprocessor variables.
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_NAME "$PACKAGE_NAME"
1247 _ACEOF
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1252 _ACEOF
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1257 _ACEOF
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_STRING "$PACKAGE_STRING"
1262 _ACEOF
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1267 _ACEOF
1270 # Let the site file select an alternate cache file if it wants to.
1271 # Prefer explicitly selected file to automatically selected ones.
1272 if test -z "$CONFIG_SITE"; then
1273 if test "x$prefix" != xNONE; then
1274 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1275 else
1276 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279 for ac_site_file in $CONFIG_SITE; do
1280 if test -r "$ac_site_file"; then
1281 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1282 echo "$as_me: loading site script $ac_site_file" >&6;}
1283 sed 's/^/| /' "$ac_site_file" >&5
1284 . "$ac_site_file"
1286 done
1288 if test -r "$cache_file"; then
1289 # Some versions of bash will fail to source /dev/null (special
1290 # files actually), so we avoid doing that.
1291 if test -f "$cache_file"; then
1292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1293 echo "$as_me: loading cache $cache_file" >&6;}
1294 case $cache_file in
1295 [\\/]* | ?:[\\/]* ) . $cache_file;;
1296 *) . ./$cache_file;;
1297 esac
1299 else
1300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1301 echo "$as_me: creating cache $cache_file" >&6;}
1302 >$cache_file
1305 # Check that the precious variables saved in the cache have kept the same
1306 # value.
1307 ac_cache_corrupted=false
1308 for ac_var in `(set) 2>&1 |
1309 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1311 eval ac_new_set=\$ac_env_${ac_var}_set
1312 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1313 eval ac_new_val="\$ac_env_${ac_var}_value"
1314 case $ac_old_set,$ac_new_set in
1315 set,)
1316 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1317 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1318 ac_cache_corrupted=: ;;
1319 ,set)
1320 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1322 ac_cache_corrupted=: ;;
1323 ,);;
1325 if test "x$ac_old_val" != "x$ac_new_val"; then
1326 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1327 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1328 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1329 echo "$as_me: former value: $ac_old_val" >&2;}
1330 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1331 echo "$as_me: current value: $ac_new_val" >&2;}
1332 ac_cache_corrupted=:
1333 fi;;
1334 esac
1335 # Pass precious variables to config.status.
1336 if test "$ac_new_set" = set; then
1337 case $ac_new_val in
1338 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1340 *) ac_arg=$ac_var=$ac_new_val ;;
1341 esac
1342 case " $ac_configure_args " in
1343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1344 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1345 esac
1347 done
1348 if $ac_cache_corrupted; then
1349 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1350 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1351 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1352 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1353 { (exit 1); exit 1; }; }
1356 ac_ext=c
1357 ac_cpp='$CPP $CPPFLAGS'
1358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1384 # Determine the host, build, and target systems
1385 ac_aux_dir=
1386 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1387 if test -f $ac_dir/install-sh; then
1388 ac_aux_dir=$ac_dir
1389 ac_install_sh="$ac_aux_dir/install-sh -c"
1390 break
1391 elif test -f $ac_dir/install.sh; then
1392 ac_aux_dir=$ac_dir
1393 ac_install_sh="$ac_aux_dir/install.sh -c"
1394 break
1395 elif test -f $ac_dir/shtool; then
1396 ac_aux_dir=$ac_dir
1397 ac_install_sh="$ac_aux_dir/shtool install -c"
1398 break
1400 done
1401 if test -z "$ac_aux_dir"; then
1402 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1403 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1404 { (exit 1); exit 1; }; }
1406 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1407 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1408 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1410 # Make sure we can run config.sub.
1411 $ac_config_sub sun4 >/dev/null 2>&1 ||
1412 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1413 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1414 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: checking build system type" >&5
1417 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1418 if test "${ac_cv_build+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421 ac_cv_build_alias=$build_alias
1422 test -z "$ac_cv_build_alias" &&
1423 ac_cv_build_alias=`$ac_config_guess`
1424 test -z "$ac_cv_build_alias" &&
1425 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1426 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1427 { (exit 1); exit 1; }; }
1428 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1429 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1430 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1431 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1435 echo "${ECHO_T}$ac_cv_build" >&6
1436 build=$ac_cv_build
1437 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1438 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1439 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1442 echo "$as_me:$LINENO: checking host system type" >&5
1443 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1444 if test "${ac_cv_host+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447 ac_cv_host_alias=$host_alias
1448 test -z "$ac_cv_host_alias" &&
1449 ac_cv_host_alias=$ac_cv_build_alias
1450 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1451 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1452 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1453 { (exit 1); exit 1; }; }
1456 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1457 echo "${ECHO_T}$ac_cv_host" >&6
1458 host=$ac_cv_host
1459 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1460 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1461 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464 echo "$as_me:$LINENO: checking target system type" >&5
1465 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1466 if test "${ac_cv_target+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469 ac_cv_target_alias=$target_alias
1470 test "x$ac_cv_target_alias" = "x" &&
1471 ac_cv_target_alias=$ac_cv_host_alias
1472 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1473 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1474 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1475 { (exit 1); exit 1; }; }
1478 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1479 echo "${ECHO_T}$ac_cv_target" >&6
1480 target=$ac_cv_target
1481 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1486 # The aliases save the names the user supplied, while $host etc.
1487 # will get canonicalized.
1488 test -n "$target_alias" &&
1489 test "$program_prefix$program_suffix$program_transform_name" = \
1490 NONENONEs,x,x, &&
1491 program_prefix=${target_alias}-
1493 # Determine the noncanonical target name, for directory use.
1494 case ${build_alias} in
1495 "") build_noncanonical=${build} ;;
1496 *) build_noncanonical=${build_alias} ;;
1497 esac
1499 case ${host_alias} in
1500 "") host_noncanonical=${build_noncanonical} ;;
1501 *) host_noncanonical=${host_alias} ;;
1502 esac
1504 case ${target_alias} in
1505 "") target_noncanonical=${host_noncanonical} ;;
1506 *) target_noncanonical=${target_alias} ;;
1507 esac
1510 # Determine the target- and build-specific subdirectories
1511 # Prefix 'build-' so this never conflicts with target_subdir.
1512 build_subdir="build-${build_noncanonical}"
1513 # Not really a subdirectory, but here for completeness.
1514 host_subdir=.
1515 # No prefix.
1516 target_subdir=${target_noncanonical}
1519 # Set program_transform_name
1520 test "$program_prefix" != NONE &&
1521 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1522 # Use a double $ so make ignores it.
1523 test "$program_suffix" != NONE &&
1524 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1525 # Double any \ or $. echo might interpret backslashes.
1526 # By default was `s,x,x', remove it if useless.
1527 cat <<\_ACEOF >conftest.sed
1528 s/[\\$]/&&/g;s/;s,x,x,$//
1529 _ACEOF
1530 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1531 rm conftest.sed
1534 # Check for bogus environment variables.
1535 # Test if LIBRARY_PATH contains the notation for the current directory
1536 # since this would lead to problems installing/building glibc.
1537 # LIBRARY_PATH contains the current directory if one of the following
1538 # is true:
1539 # - one of the terminals (":" and ";") is the first or last sign
1540 # - two terminals occur directly after each other
1541 # - the path contains an element with a dot in it
1542 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1543 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1544 case ${LIBRARY_PATH} in
1545 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1546 library_path_setting="contains current directory"
1549 library_path_setting="ok"
1551 esac
1552 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1553 echo "${ECHO_T}$library_path_setting" >&6
1554 if test "$library_path_setting" != "ok"; then
1555 { { echo "$as_me:$LINENO: error:
1556 *** LIBRARY_PATH shouldn't contain the current directory when
1557 *** building gcc. Please change the environment variable
1558 *** and run configure again." >&5
1559 echo "$as_me: error:
1560 *** LIBRARY_PATH shouldn't contain the current directory when
1561 *** building gcc. Please change the environment variable
1562 *** and run configure again." >&2;}
1563 { (exit 1); exit 1; }; }
1566 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1567 # since this would lead to problems installing/building glibc.
1568 # GCC_EXEC_PREFIX contains the current directory if one of the following
1569 # is true:
1570 # - one of the terminals (":" and ";") is the first or last sign
1571 # - two terminals occur directly after each other
1572 # - the path contains an element with a dot in it
1573 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1574 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1575 case ${GCC_EXEC_PREFIX} in
1576 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1577 gcc_exec_prefix_setting="contains current directory"
1580 gcc_exec_prefix_setting="ok"
1582 esac
1583 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1584 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1585 if test "$gcc_exec_prefix_setting" != "ok"; then
1586 { { echo "$as_me:$LINENO: error:
1587 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1588 *** building gcc. Please change the environment variable
1589 *** and run configure again." >&5
1590 echo "$as_me: error:
1591 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1592 *** building gcc. Please change the environment variable
1593 *** and run configure again." >&2;}
1594 { (exit 1); exit 1; }; }
1597 # -----------
1598 # Directories
1599 # -----------
1601 # Specify the local prefix
1602 local_prefix=
1604 # Check whether --with-local-prefix or --without-local-prefix was given.
1605 if test "${with_local_prefix+set}" = set; then
1606 withval="$with_local_prefix"
1607 case "${withval}" in
1608 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1609 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1610 { (exit 1); exit 1; }; } ;;
1611 no) ;;
1612 *) local_prefix=$with_local_prefix ;;
1613 esac
1616 # Default local prefix if it is empty
1617 if test x$local_prefix = x; then
1618 local_prefix=/usr/local
1621 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1622 # passed in by the toplevel make and thus we'd get different behavior
1623 # depending on where we built the sources.
1624 gcc_gxx_include_dir=
1625 # Specify the g++ header file directory
1627 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1628 if test "${with_gxx_include_dir+set}" = set; then
1629 withval="$with_gxx_include_dir"
1630 case "${withval}" in
1631 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1632 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1633 { (exit 1); exit 1; }; } ;;
1634 no) ;;
1635 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1636 esac
1639 if test x${gcc_gxx_include_dir} = x; then
1640 if test x${enable_version_specific_runtime_libs} = xyes; then
1641 gcc_gxx_include_dir='${libsubdir}/include/c++'
1642 else
1643 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1644 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1649 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1650 if test "${with_cpp_install_dir+set}" = set; then
1651 withval="$with_cpp_install_dir"
1652 if test x$withval = xyes; then
1653 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1654 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1655 { (exit 1); exit 1; }; }
1656 elif test x$withval != xno; then
1657 cpp_install_dir=$withval
1661 # We would like to our source tree to be readonly. However when releases or
1662 # pre-releases are generated, the flex/bison generated files as well as the
1663 # various formats of manuals need to be included along with the rest of the
1664 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1665 # just that.
1667 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1668 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1669 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1670 if test "${enable_generated_files_in_srcdir+set}" = set; then
1671 enableval="$enable_generated_files_in_srcdir"
1672 generated_files_in_srcdir=$enableval
1673 else
1674 generated_files_in_srcdir=no
1677 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1678 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1680 if test "$generated_files_in_srcdir" = "yes"; then
1681 GENINSRC=''
1682 else
1683 GENINSRC='#'
1687 # -------------------
1688 # Find default linker
1689 # -------------------
1691 # With GNU ld
1693 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1694 if test "${with_gnu_ld+set}" = set; then
1695 withval="$with_gnu_ld"
1696 gnu_ld_flag="$with_gnu_ld"
1697 else
1698 gnu_ld_flag=no
1701 # With pre-defined ld
1703 # Check whether --with-ld or --without-ld was given.
1704 if test "${with_ld+set}" = set; then
1705 withval="$with_ld"
1706 DEFAULT_LINKER="$with_ld"
1708 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1709 if test ! -x "$DEFAULT_LINKER"; then
1710 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1711 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1712 { (exit 1); exit 1; }; }
1713 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1714 gnu_ld_flag=yes
1717 cat >>confdefs.h <<_ACEOF
1718 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1719 _ACEOF
1723 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1724 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1725 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1726 if test x"$gnu_ld_flag" = x"no"; then
1727 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1728 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1729 else
1730 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1731 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1733 else
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1738 # With demangler in GNU ld
1740 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1741 if test "${with_demangler_in_ld+set}" = set; then
1742 withval="$with_demangler_in_ld"
1743 demangler_in_ld="$with_demangler_in_ld"
1744 else
1745 demangler_in_ld=no
1748 # ----------------------
1749 # Find default assembler
1750 # ----------------------
1752 # With GNU as
1754 # Check whether --with-gnu-as or --without-gnu-as was given.
1755 if test "${with_gnu_as+set}" = set; then
1756 withval="$with_gnu_as"
1757 gas_flag="$with_gnu_as"
1758 else
1759 gas_flag=no
1763 # Check whether --with-as or --without-as was given.
1764 if test "${with_as+set}" = set; then
1765 withval="$with_as"
1766 DEFAULT_ASSEMBLER="$with_as"
1768 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1769 if test ! -x "$DEFAULT_ASSEMBLER"; then
1770 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1771 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1772 { (exit 1); exit 1; }; }
1773 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1774 gas_flag=yes
1777 cat >>confdefs.h <<_ACEOF
1778 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1779 _ACEOF
1783 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1784 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1785 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1786 if test x"$gas_flag" = x"no"; then
1787 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1788 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1789 else
1790 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1791 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1793 else
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1798 # ---------------
1799 # Find C compiler
1800 # ---------------
1802 # If a non-executable a.out is present (e.g. created by GNU as above even if
1803 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1804 # file, even when creating an executable, so an execution test fails.
1805 # Remove possible default executable files to avoid this.
1807 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1808 # Autoconf includes it.
1809 rm -f a.out a.exe b.out
1811 # Find the native compiler
1812 ac_ext=c
1813 ac_cpp='$CPP $CPPFLAGS'
1814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1817 if test -n "$ac_tool_prefix"; then
1818 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_CC+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 else
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # Let the user override the test.
1827 else
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 for as_dir in $PATH
1831 IFS=$as_save_IFS
1832 test -z "$as_dir" && as_dir=.
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837 break 2
1839 done
1840 done
1844 CC=$ac_cv_prog_CC
1845 if test -n "$CC"; then
1846 echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6
1848 else
1849 echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6
1854 if test -z "$ac_cv_prog_CC"; then
1855 ac_ct_CC=$CC
1856 # Extract the first word of "gcc", so it can be a program name with args.
1857 set dummy gcc; ac_word=$2
1858 echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 else
1863 if test -n "$ac_ct_CC"; then
1864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1865 else
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 for as_dir in $PATH
1869 IFS=$as_save_IFS
1870 test -z "$as_dir" && as_dir=.
1871 for ac_exec_ext in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 ac_cv_prog_ac_ct_CC="gcc"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875 break 2
1877 done
1878 done
1882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1883 if test -n "$ac_ct_CC"; then
1884 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885 echo "${ECHO_T}$ac_ct_CC" >&6
1886 else
1887 echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1891 CC=$ac_ct_CC
1892 else
1893 CC="$ac_cv_prog_CC"
1896 if test -z "$CC"; then
1897 if test -n "$ac_tool_prefix"; then
1898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1899 set dummy ${ac_tool_prefix}cc; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_CC+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905 if test -n "$CC"; then
1906 ac_cv_prog_CC="$CC" # Let the user override the test.
1907 else
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1911 IFS=$as_save_IFS
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 ac_cv_prog_CC="${ac_tool_prefix}cc"
1916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 break 2
1919 done
1920 done
1924 CC=$ac_cv_prog_CC
1925 if test -n "$CC"; then
1926 echo "$as_me:$LINENO: result: $CC" >&5
1927 echo "${ECHO_T}$CC" >&6
1928 else
1929 echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1934 if test -z "$ac_cv_prog_CC"; then
1935 ac_ct_CC=$CC
1936 # Extract the first word of "cc", so it can be a program name with args.
1937 set dummy cc; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943 if test -n "$ac_ct_CC"; then
1944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1949 IFS=$as_save_IFS
1950 test -z "$as_dir" && as_dir=.
1951 for ac_exec_ext in '' $ac_executable_extensions; do
1952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953 ac_cv_prog_ac_ct_CC="cc"
1954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955 break 2
1957 done
1958 done
1962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1963 if test -n "$ac_ct_CC"; then
1964 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1965 echo "${ECHO_T}$ac_ct_CC" >&6
1966 else
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1971 CC=$ac_ct_CC
1972 else
1973 CC="$ac_cv_prog_CC"
1977 if test -z "$CC"; then
1978 # Extract the first word of "cc", so it can be a program name with args.
1979 set dummy cc; ac_word=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1987 else
1988 ac_prog_rejected=no
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1997 ac_prog_rejected=yes
1998 continue
2000 ac_cv_prog_CC="cc"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 break 2
2004 done
2005 done
2007 if test $ac_prog_rejected = yes; then
2008 # We found a bogon in the path, so make sure we never use it.
2009 set dummy $ac_cv_prog_CC
2010 shift
2011 if test $# != 0; then
2012 # We chose a different compiler from the bogus one.
2013 # However, it has the same basename, so the bogon will be chosen
2014 # first if we set CC to just the basename; use the full file name.
2015 shift
2016 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2021 CC=$ac_cv_prog_CC
2022 if test -n "$CC"; then
2023 echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6
2025 else
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2031 if test -z "$CC"; then
2032 if test -n "$ac_tool_prefix"; then
2033 for ac_prog in cl
2035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC="$CC" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2048 IFS=$as_save_IFS
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 break 2
2056 done
2057 done
2061 CC=$ac_cv_prog_CC
2062 if test -n "$CC"; then
2063 echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6
2065 else
2066 echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2070 test -n "$CC" && break
2071 done
2073 if test -z "$CC"; then
2074 ac_ct_CC=$CC
2075 for ac_prog in cl
2077 # Extract the first word of "$ac_prog", so it can be a program name with args.
2078 set dummy $ac_prog; ac_word=$2
2079 echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084 if test -n "$ac_ct_CC"; then
2085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2086 else
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2090 IFS=$as_save_IFS
2091 test -z "$as_dir" && as_dir=.
2092 for ac_exec_ext in '' $ac_executable_extensions; do
2093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094 ac_cv_prog_ac_ct_CC="$ac_prog"
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 break 2
2098 done
2099 done
2103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104 if test -n "$ac_ct_CC"; then
2105 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106 echo "${ECHO_T}$ac_ct_CC" >&6
2107 else
2108 echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2112 test -n "$ac_ct_CC" && break
2113 done
2115 CC=$ac_ct_CC
2121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&2;}
2125 { (exit 1); exit 1; }; }
2127 # Provide some information about the compiler.
2128 echo "$as_me:$LINENO:" \
2129 "checking for C compiler version" >&5
2130 ac_compiler=`set X $ac_compile; echo $2`
2131 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2132 (eval $ac_compiler --version </dev/null >&5) 2>&5
2133 ac_status=$?
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2136 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2137 (eval $ac_compiler -v </dev/null >&5) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2142 (eval $ac_compiler -V </dev/null >&5) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2147 cat >conftest.$ac_ext <<_ACEOF
2148 /* confdefs.h. */
2149 _ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h. */
2155 main ()
2159 return 0;
2161 _ACEOF
2162 ac_clean_files_save=$ac_clean_files
2163 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2164 # Try to create an executable without -o first, disregard a.out.
2165 # It will help us diagnose broken compilers, and finding out an intuition
2166 # of exeext.
2167 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2168 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2169 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2170 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2171 (eval $ac_link_default) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 # Find the output, starting from the most likely. This scheme is
2176 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2177 # resort.
2179 # Be careful to initialize this variable, since it used to be cached.
2180 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2181 ac_cv_exeext=
2182 # b.out is created by i960 compilers.
2183 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2185 test -f "$ac_file" || continue
2186 case $ac_file in
2187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2189 conftest.$ac_ext )
2190 # This is the source file.
2192 [ab].out )
2193 # We found the default executable, but exeext='' is most
2194 # certainly right.
2195 break;;
2196 *.* )
2197 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 # FIXME: I believe we export ac_cv_exeext for Libtool,
2199 # but it would be cool to find out if it's true. Does anybody
2200 # maintain Libtool? --akim.
2201 export ac_cv_exeext
2202 break;;
2204 break;;
2205 esac
2206 done
2207 else
2208 echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2211 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&5
2213 echo "$as_me: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&2;}
2215 { (exit 77); exit 77; }; }
2218 ac_exeext=$ac_cv_exeext
2219 echo "$as_me:$LINENO: result: $ac_file" >&5
2220 echo "${ECHO_T}$ac_file" >&6
2222 # Check the compiler produces executables we can run. If not, either
2223 # the compiler is broken, or we cross compile.
2224 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2225 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2226 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2227 # If not cross compiling, check that we can run a simple program.
2228 if test "$cross_compiling" != yes; then
2229 if { ac_try='./$ac_file'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 (eval $ac_try) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2235 cross_compiling=no
2236 else
2237 if test "$cross_compiling" = maybe; then
2238 cross_compiling=yes
2239 else
2240 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }
2250 echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6
2253 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254 ac_clean_files=$ac_clean_files_save
2255 # Check the compiler produces executables we can run. If not, either
2256 # the compiler is broken, or we cross compile.
2257 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2259 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6
2262 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2265 (eval $ac_link) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; then
2269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2270 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2271 # work properly (i.e., refer to `conftest.exe'), while it won't with
2272 # `rm'.
2273 for ac_file in conftest.exe conftest conftest.*; do
2274 test -f "$ac_file" || continue
2275 case $ac_file in
2276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2278 export ac_cv_exeext
2279 break;;
2280 * ) break;;
2281 esac
2282 done
2283 else
2284 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&2;}
2288 { (exit 1); exit 1; }; }
2291 rm -f conftest$ac_cv_exeext
2292 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2293 echo "${ECHO_T}$ac_cv_exeext" >&6
2295 rm -f conftest.$ac_ext
2296 EXEEXT=$ac_cv_exeext
2297 ac_exeext=$EXEEXT
2298 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2299 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2300 if test "${ac_cv_objext+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303 cat >conftest.$ac_ext <<_ACEOF
2304 /* confdefs.h. */
2305 _ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2311 main ()
2315 return 0;
2317 _ACEOF
2318 rm -f conftest.o conftest.obj
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
2324 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2325 case $ac_file in
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2328 break;;
2329 esac
2330 done
2331 else
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2342 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2344 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345 echo "${ECHO_T}$ac_cv_objext" >&6
2346 OBJEXT=$ac_cv_objext
2347 ac_objext=$OBJEXT
2348 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353 cat >conftest.$ac_ext <<_ACEOF
2354 /* confdefs.h. */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2361 main ()
2363 #ifndef __GNUC__
2364 choke me
2365 #endif
2368 return 0;
2370 _ACEOF
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>conftest.er1
2374 ac_status=$?
2375 grep -v '^ *+' conftest.er1 >conftest.err
2376 rm -f conftest.er1
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2392 ac_compiler_gnu=yes
2393 else
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2397 ac_compiler_gnu=no
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2403 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405 GCC=`test $ac_compiler_gnu = yes && echo yes`
2406 ac_test_CFLAGS=${CFLAGS+set}
2407 ac_save_CFLAGS=$CFLAGS
2408 CFLAGS="-g"
2409 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411 if test "${ac_cv_prog_cc_g+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414 cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h. */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2422 main ()
2426 return 0;
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2432 ac_status=$?
2433 grep -v '^ *+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 (eval $ac_try) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2450 ac_cv_prog_cc_g=yes
2451 else
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2455 ac_cv_prog_cc_g=no
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461 if test "$ac_test_CFLAGS" = set; then
2462 CFLAGS=$ac_save_CFLAGS
2463 elif test $ac_cv_prog_cc_g = yes; then
2464 if test "$GCC" = yes; then
2465 CFLAGS="-g -O2"
2466 else
2467 CFLAGS="-g"
2469 else
2470 if test "$GCC" = yes; then
2471 CFLAGS="-O2"
2472 else
2473 CFLAGS=
2476 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481 ac_cv_prog_cc_stdc=no
2482 ac_save_CC=$CC
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h. */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2489 #include <stdarg.h>
2490 #include <stdio.h>
2491 #include <sys/types.h>
2492 #include <sys/stat.h>
2493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2494 struct buf { int x; };
2495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2496 static char *e (p, i)
2497 char **p;
2498 int i;
2500 return p[i];
2502 static char *f (char * (*g) (char **, int), char **p, ...)
2504 char *s;
2505 va_list v;
2506 va_start (v,p);
2507 s = g (p, va_arg (v,int));
2508 va_end (v);
2509 return s;
2512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2513 function prototypes and stuff, but not '\xHH' hex character constants.
2514 These don't provoke an error unfortunately, instead are silently treated
2515 as 'x'. The following induces an error, until -std1 is added to get
2516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2517 array size at least. It's necessary to write '\x00'==0 to get something
2518 that's true only with -std1. */
2519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2521 int test (int i, double x);
2522 struct s1 {int (*f) (int a);};
2523 struct s2 {int (*f) (double a);};
2524 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2525 int argc;
2526 char **argv;
2528 main ()
2530 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2532 return 0;
2534 _ACEOF
2535 # Don't try gcc -ansi; that turns off useful extensions and
2536 # breaks some systems' header files.
2537 # AIX -qlanglvl=ansi
2538 # Ultrix and OSF/1 -std1
2539 # HP-UX 10.20 and later -Ae
2540 # HP-UX older versions -Aa -D_HPUX_SOURCE
2541 # SVR4 -Xc -D__EXTENSIONS__
2542 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2544 CC="$ac_save_CC $ac_arg"
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 ac_cv_prog_cc_stdc=$ac_arg
2567 break
2568 else
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2573 rm -f conftest.err conftest.$ac_objext
2574 done
2575 rm -f conftest.$ac_ext conftest.$ac_objext
2576 CC=$ac_save_CC
2580 case "x$ac_cv_prog_cc_stdc" in
2581 x|xno)
2582 echo "$as_me:$LINENO: result: none needed" >&5
2583 echo "${ECHO_T}none needed" >&6 ;;
2585 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2586 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2587 CC="$CC $ac_cv_prog_cc_stdc" ;;
2588 esac
2590 # Some people use a C++ compiler to compile C. Since we use `exit',
2591 # in C++ we need to declare it. In case someone uses the same compiler
2592 # for both compiling C and C++ we need to have the C++ compiler decide
2593 # the declaration of exit, since it's the most demanding environment.
2594 cat >conftest.$ac_ext <<_ACEOF
2595 #ifndef __cplusplus
2596 choke me
2597 #endif
2598 _ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2602 ac_status=$?
2603 grep -v '^ *+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 for ac_declaration in \
2621 '' \
2622 'extern "C" void std::exit (int) throw (); using std::exit;' \
2623 'extern "C" void std::exit (int); using std::exit;' \
2624 'extern "C" void exit (int) throw ();' \
2625 'extern "C" void exit (int);' \
2626 'void exit (int);'
2628 cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h. */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2634 $ac_declaration
2635 #include <stdlib.h>
2637 main ()
2639 exit (42);
2641 return 0;
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2647 ac_status=$?
2648 grep -v '^ *+' conftest.er1 >conftest.err
2649 rm -f conftest.er1
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 (eval $ac_try) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2666 else
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2670 continue
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h. */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2679 $ac_declaration
2681 main ()
2683 exit (42);
2685 return 0;
2687 _ACEOF
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>conftest.er1
2691 ac_status=$?
2692 grep -v '^ *+' conftest.er1 >conftest.err
2693 rm -f conftest.er1
2694 cat conftest.err >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
2697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 (eval $ac_try) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; } &&
2703 { ac_try='test -s conftest.$ac_objext'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 (eval $ac_try) 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2709 break
2710 else
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716 done
2717 rm -f conftest*
2718 if test -n "$ac_declaration"; then
2719 echo '#ifdef __cplusplus' >>confdefs.h
2720 echo $ac_declaration >>confdefs.h
2721 echo '#endif' >>confdefs.h
2724 else
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 ac_ext=c
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736 if test "x$CC" != xcc; then
2737 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2738 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2739 else
2740 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2741 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2743 set dummy $CC; ac_cc=`echo $2 |
2744 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2745 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748 cat >conftest.$ac_ext <<_ACEOF
2749 /* confdefs.h. */
2750 _ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2756 main ()
2760 return 0;
2762 _ACEOF
2763 # Make sure it works both with $CC and with simple cc.
2764 # We do the test twice because some compilers refuse to overwrite an
2765 # existing .o file with -o, though they will create one.
2766 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2767 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); };
2777 then
2778 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2779 if test "x$CC" != xcc; then
2780 # Test first that cc exists at all.
2781 if { ac_try='cc -c conftest.$ac_ext >&5'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2788 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); };
2798 then
2799 # cc works too.
2801 else
2802 # cc exists but doesn't like -o.
2803 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2807 else
2808 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2810 rm -f conftest*
2813 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2814 echo "$as_me:$LINENO: result: yes" >&5
2815 echo "${ECHO_T}yes" >&6
2816 else
2817 echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2820 cat >>confdefs.h <<\_ACEOF
2821 #define NO_MINUS_C_MINUS_O 1
2822 _ACEOF
2826 # autoconf is lame and doesn't give us any substitution variable for this.
2827 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2828 NO_MINUS_C_MINUS_O=yes
2829 else
2830 OUTPUT_OPTION='-o $@'
2835 # -------------------------
2836 # Check C compiler features
2837 # -------------------------
2839 ac_ext=c
2840 ac_cpp='$CPP $CPPFLAGS'
2841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2845 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2846 # On Suns, sometimes $CPP names a directory.
2847 if test -n "$CPP" && test -d "$CPP"; then
2848 CPP=
2850 if test -z "$CPP"; then
2851 if test "${ac_cv_prog_CPP+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854 # Double quotes because CPP needs to be expanded
2855 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2857 ac_preproc_ok=false
2858 for ac_c_preproc_warn_flag in '' yes
2860 # Use a header file that comes with gcc, so configuring glibc
2861 # with a fresh cross-compiler works.
2862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2863 # <limits.h> exists even on freestanding compilers.
2864 # On the NeXT, cc -E runs the code through the compiler's parser,
2865 # not just through cpp. "Syntax error" is here to catch this case.
2866 cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h. */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2872 #ifdef __STDC__
2873 # include <limits.h>
2874 #else
2875 # include <assert.h>
2876 #endif
2877 Syntax error
2878 _ACEOF
2879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2881 ac_status=$?
2882 grep -v '^ *+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } >/dev/null; then
2887 if test -s conftest.err; then
2888 ac_cpp_err=$ac_c_preproc_warn_flag
2889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2890 else
2891 ac_cpp_err=
2893 else
2894 ac_cpp_err=yes
2896 if test -z "$ac_cpp_err"; then
2898 else
2899 echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2902 # Broken: fails on valid input.
2903 continue
2905 rm -f conftest.err conftest.$ac_ext
2907 # OK, works on sane cases. Now check whether non-existent headers
2908 # can be detected and how.
2909 cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h. */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2915 #include <ac_nonexistent.h>
2916 _ACEOF
2917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2919 ac_status=$?
2920 grep -v '^ *+' conftest.er1 >conftest.err
2921 rm -f conftest.er1
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } >/dev/null; then
2925 if test -s conftest.err; then
2926 ac_cpp_err=$ac_c_preproc_warn_flag
2927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2928 else
2929 ac_cpp_err=
2931 else
2932 ac_cpp_err=yes
2934 if test -z "$ac_cpp_err"; then
2935 # Broken: success on invalid input.
2936 continue
2937 else
2938 echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2941 # Passes both tests.
2942 ac_preproc_ok=:
2943 break
2945 rm -f conftest.err conftest.$ac_ext
2947 done
2948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2949 rm -f conftest.err conftest.$ac_ext
2950 if $ac_preproc_ok; then
2951 break
2954 done
2955 ac_cv_prog_CPP=$CPP
2958 CPP=$ac_cv_prog_CPP
2959 else
2960 ac_cv_prog_CPP=$CPP
2962 echo "$as_me:$LINENO: result: $CPP" >&5
2963 echo "${ECHO_T}$CPP" >&6
2964 ac_preproc_ok=false
2965 for ac_c_preproc_warn_flag in '' yes
2967 # Use a header file that comes with gcc, so configuring glibc
2968 # with a fresh cross-compiler works.
2969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2970 # <limits.h> exists even on freestanding compilers.
2971 # On the NeXT, cc -E runs the code through the compiler's parser,
2972 # not just through cpp. "Syntax error" is here to catch this case.
2973 cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h. */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2979 #ifdef __STDC__
2980 # include <limits.h>
2981 #else
2982 # include <assert.h>
2983 #endif
2984 Syntax error
2985 _ACEOF
2986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2988 ac_status=$?
2989 grep -v '^ *+' conftest.er1 >conftest.err
2990 rm -f conftest.er1
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } >/dev/null; then
2994 if test -s conftest.err; then
2995 ac_cpp_err=$ac_c_preproc_warn_flag
2996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2997 else
2998 ac_cpp_err=
3000 else
3001 ac_cpp_err=yes
3003 if test -z "$ac_cpp_err"; then
3005 else
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 # Broken: fails on valid input.
3010 continue
3012 rm -f conftest.err conftest.$ac_ext
3014 # OK, works on sane cases. Now check whether non-existent headers
3015 # can be detected and how.
3016 cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h. */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022 #include <ac_nonexistent.h>
3023 _ACEOF
3024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } >/dev/null; then
3032 if test -s conftest.err; then
3033 ac_cpp_err=$ac_c_preproc_warn_flag
3034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3035 else
3036 ac_cpp_err=
3038 else
3039 ac_cpp_err=yes
3041 if test -z "$ac_cpp_err"; then
3042 # Broken: success on invalid input.
3043 continue
3044 else
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3048 # Passes both tests.
3049 ac_preproc_ok=:
3050 break
3052 rm -f conftest.err conftest.$ac_ext
3054 done
3055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3056 rm -f conftest.err conftest.$ac_ext
3057 if $ac_preproc_ok; then
3059 else
3060 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3061 See \`config.log' for more details." >&5
3062 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3063 See \`config.log' for more details." >&2;}
3064 { (exit 1); exit 1; }; }
3067 ac_ext=c
3068 ac_cpp='$CPP $CPPFLAGS'
3069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074 echo "$as_me:$LINENO: checking for inline" >&5
3075 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3076 if test "${ac_cv_c_inline+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079 ac_cv_c_inline=no
3080 for ac_kw in inline __inline__ __inline; do
3081 cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087 #ifndef __cplusplus
3088 typedef int foo_t;
3089 static $ac_kw foo_t static_foo () {return 0; }
3090 $ac_kw foo_t foo () {return 0; }
3091 #endif
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3096 (eval $ac_compile) 2>conftest.er1
3097 ac_status=$?
3098 grep -v '^ *+' conftest.er1 >conftest.err
3099 rm -f conftest.er1
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 (eval $ac_try) 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; } &&
3109 { ac_try='test -s conftest.$ac_objext'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111 (eval $ac_try) 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
3115 ac_cv_c_inline=$ac_kw; break
3116 else
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3122 done
3125 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3126 echo "${ECHO_T}$ac_cv_c_inline" >&6
3129 case $ac_cv_c_inline in
3130 inline | yes) ;;
3132 case $ac_cv_c_inline in
3133 no) ac_val=;;
3134 *) ac_val=$ac_cv_c_inline;;
3135 esac
3136 cat >>confdefs.h <<_ACEOF
3137 #ifndef __cplusplus
3138 #define inline $ac_val
3139 #endif
3140 _ACEOF
3142 esac
3145 echo "$as_me:$LINENO: checking for long long int" >&5
3146 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3147 if test "${ac_cv_c_long_long+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150 cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h. */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3158 main ()
3160 long long int i;
3162 return 0;
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3167 (eval $ac_compile) 2>conftest.er1
3168 ac_status=$?
3169 grep -v '^ *+' conftest.er1 >conftest.err
3170 rm -f conftest.er1
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 (eval $ac_try) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try='test -s conftest.$ac_objext'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 (eval $ac_try) 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 ac_cv_c_long_long=yes
3187 else
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3191 ac_cv_c_long_long=no
3193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3195 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3196 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3197 if test $ac_cv_c_long_long = yes; then
3199 cat >>confdefs.h <<\_ACEOF
3200 #define HAVE_LONG_LONG 1
3201 _ACEOF
3204 echo "$as_me:$LINENO: checking for __int64" >&5
3205 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3206 if test "${ac_cv_c___int64+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3217 main ()
3219 __int64 i;
3221 return 0;
3223 _ACEOF
3224 rm -f conftest.$ac_objext
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>conftest.er1
3227 ac_status=$?
3228 grep -v '^ *+' conftest.er1 >conftest.err
3229 rm -f conftest.er1
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 (eval $ac_try) 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; } &&
3239 { ac_try='test -s conftest.$ac_objext'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 (eval $ac_try) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3245 ac_cv_c___int64=yes
3246 else
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3250 ac_cv_c___int64=no
3252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3254 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3255 echo "${ECHO_T}$ac_cv_c___int64" >&6
3256 if test $ac_cv_c___int64 = yes; then
3258 cat >>confdefs.h <<\_ACEOF
3259 #define HAVE___INT64 1
3260 _ACEOF
3265 # sizeof(char) is 1 by definition.
3266 echo "$as_me:$LINENO: checking size of void *" >&5
3267 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3268 if test "${ac_cv_sizeof_void_p+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3272 cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h. */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3278 #include "confdefs.h"
3279 #include <sys/types.h>
3283 main ()
3285 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3287 return 0;
3289 _ACEOF
3290 rm -f conftest.$ac_objext
3291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292 (eval $ac_compile) 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; } &&
3305 { ac_try='test -s conftest.$ac_objext'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 (eval $ac_try) 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
3311 ac_cv_sizeof_void_p=$ac_size
3312 else
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3318 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3319 done
3323 if test x$ac_cv_sizeof_void_p = x ; then
3324 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3325 echo "$as_me: error: cannot determine a size for void *" >&2;}
3326 { (exit 1); exit 1; }; }
3328 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3329 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3331 cat >>confdefs.h <<_ACEOF
3332 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3333 _ACEOF
3336 echo "$as_me:$LINENO: checking size of short" >&5
3337 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3338 if test "${ac_cv_sizeof_short+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3342 cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h. */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3348 #include "confdefs.h"
3349 #include <sys/types.h>
3353 main ()
3355 switch (0) case 0: case (sizeof (short) == $ac_size):;
3357 return 0;
3359 _ACEOF
3360 rm -f conftest.$ac_objext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362 (eval $ac_compile) 2>conftest.er1
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; } &&
3375 { ac_try='test -s conftest.$ac_objext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 ac_cv_sizeof_short=$ac_size
3382 else
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3388 if test x$ac_cv_sizeof_short != x ; then break; fi
3389 done
3393 if test x$ac_cv_sizeof_short = x ; then
3394 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3395 echo "$as_me: error: cannot determine a size for short" >&2;}
3396 { (exit 1); exit 1; }; }
3398 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3399 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3401 cat >>confdefs.h <<_ACEOF
3402 #define SIZEOF_SHORT $ac_cv_sizeof_short
3403 _ACEOF
3406 echo "$as_me:$LINENO: checking size of int" >&5
3407 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3408 if test "${ac_cv_sizeof_int+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3412 cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h. */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 #include "confdefs.h"
3419 #include <sys/types.h>
3423 main ()
3425 switch (0) case 0: case (sizeof (int) == $ac_size):;
3427 return 0;
3429 _ACEOF
3430 rm -f conftest.$ac_objext
3431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3432 (eval $ac_compile) 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } &&
3439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 (eval $ac_try) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 (eval $ac_try) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_sizeof_int=$ac_size
3452 else
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3458 if test x$ac_cv_sizeof_int != x ; then break; fi
3459 done
3463 if test x$ac_cv_sizeof_int = x ; then
3464 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3465 echo "$as_me: error: cannot determine a size for int" >&2;}
3466 { (exit 1); exit 1; }; }
3468 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3469 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3471 cat >>confdefs.h <<_ACEOF
3472 #define SIZEOF_INT $ac_cv_sizeof_int
3473 _ACEOF
3476 echo "$as_me:$LINENO: checking size of long" >&5
3477 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3478 if test "${ac_cv_sizeof_long+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3482 cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h. */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3488 #include "confdefs.h"
3489 #include <sys/types.h>
3493 main ()
3495 switch (0) case 0: case (sizeof (long) == $ac_size):;
3497 return 0;
3499 _ACEOF
3500 rm -f conftest.$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502 (eval $ac_compile) 2>conftest.er1
3503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 (eval $ac_try) 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 ac_cv_sizeof_long=$ac_size
3522 else
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3528 if test x$ac_cv_sizeof_long != x ; then break; fi
3529 done
3533 if test x$ac_cv_sizeof_long = x ; then
3534 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3535 echo "$as_me: error: cannot determine a size for long" >&2;}
3536 { (exit 1); exit 1; }; }
3538 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3539 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3541 cat >>confdefs.h <<_ACEOF
3542 #define SIZEOF_LONG $ac_cv_sizeof_long
3543 _ACEOF
3546 if test $ac_cv_c_long_long = yes; then
3547 echo "$as_me:$LINENO: checking size of long long" >&5
3548 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3549 if test "${ac_cv_sizeof_long_long+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #include "confdefs.h"
3560 #include <sys/types.h>
3564 main ()
3566 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3568 return 0;
3570 _ACEOF
3571 rm -f conftest.$ac_objext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; } &&
3586 { ac_try='test -s conftest.$ac_objext'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588 (eval $ac_try) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; }; then
3592 ac_cv_sizeof_long_long=$ac_size
3593 else
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3600 done
3604 if test x$ac_cv_sizeof_long_long = x ; then
3605 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3606 echo "$as_me: error: cannot determine a size for long long" >&2;}
3607 { (exit 1); exit 1; }; }
3609 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3610 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3612 cat >>confdefs.h <<_ACEOF
3613 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3614 _ACEOF
3618 if test $ac_cv_c___int64 = yes; then
3619 echo "$as_me:$LINENO: checking size of __int64" >&5
3620 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3621 if test "${ac_cv_sizeof___int64+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3625 cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h. */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 #include "confdefs.h"
3632 #include <sys/types.h>
3636 main ()
3638 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3640 return 0;
3642 _ACEOF
3643 rm -f conftest.$ac_objext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>conftest.er1
3646 ac_status=$?
3647 grep -v '^ *+' conftest.er1 >conftest.err
3648 rm -f conftest.er1
3649 cat conftest.err >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
3652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 (eval $ac_try) 2>&5
3655 ac_status=$?
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; } &&
3658 { ac_try='test -s conftest.$ac_objext'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 (eval $ac_try) 2>&5
3661 ac_status=$?
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3664 ac_cv_sizeof___int64=$ac_size
3665 else
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3671 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3672 done
3676 if test x$ac_cv_sizeof___int64 = x ; then
3677 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3678 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3679 { (exit 1); exit 1; }; }
3681 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3682 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3684 cat >>confdefs.h <<_ACEOF
3685 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3686 _ACEOF
3691 # ---------------------
3692 # Warnings and checking
3693 # ---------------------
3695 # Check $CC warning features (if it's GCC).
3696 # We want to use -pedantic, but we don't want warnings about
3697 # * 'long long'
3698 # * variadic macros
3699 # So, we only use -pedantic if we can disable those warnings.
3701 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3702 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3703 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706 save_CFLAGS="$CFLAGS"
3707 CFLAGS="-Wno-long-long"
3708 cat >conftest.$ac_ext <<_ACEOF
3709 /* confdefs.h. */
3710 _ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3715 _ACEOF
3716 rm -f conftest.$ac_objext
3717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718 (eval $ac_compile) 2>conftest.er1
3719 ac_status=$?
3720 grep -v '^ *+' conftest.er1 >conftest.err
3721 rm -f conftest.er1
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } &&
3725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 (eval $ac_try) 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; } &&
3731 { ac_try='test -s conftest.$ac_objext'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; }; then
3737 ac_cv_prog_cc_w_no_long_long=yes
3738 else
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3742 ac_cv_prog_cc_w_no_long_long=no
3744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745 CFLAGS="$save_CFLAGS"
3748 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3749 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3751 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3752 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3753 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 save_CFLAGS="$CFLAGS"
3757 CFLAGS="-Wno-variadic-macros"
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3765 _ACEOF
3766 rm -f conftest.$ac_objext
3767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768 (eval $ac_compile) 2>conftest.er1
3769 ac_status=$?
3770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
3775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; } &&
3781 { ac_try='test -s conftest.$ac_objext'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 (eval $ac_try) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3787 ac_cv_prog_cc_w_no_variadic_macros=yes
3788 else
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3792 ac_cv_prog_cc_w_no_variadic_macros=no
3794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3795 CFLAGS="$save_CFLAGS"
3798 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3799 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3801 strict1_warn=
3802 if test $ac_cv_prog_cc_w_no_long_long = yes \
3803 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3804 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3808 # Add -Wold-style-definition if it's accepted
3809 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3810 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3811 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 save_CFLAGS="$CFLAGS"
3815 CFLAGS="-Wold-style-definition"
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h. */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3823 _ACEOF
3824 rm -f conftest.$ac_objext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3826 (eval $ac_compile) 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; } &&
3839 { ac_try='test -s conftest.$ac_objext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 ac_cv_prog_cc_w_old_style_definition=yes
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 ac_cv_prog_cc_w_old_style_definition=no
3852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3853 CFLAGS="$save_CFLAGS"
3856 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3857 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3858 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3859 strict1_warn="${strict1_warn} -Wold-style-definition"
3862 # Enable -Werror, period.
3863 # Check whether --enable-werror_always or --disable-werror_always was given.
3864 if test "${enable_werror_always+set}" = set; then
3865 enableval="$enable_werror_always"
3867 else
3868 enable_werror_always=no
3870 if test x${enable_werror_always} = xyes ; then
3871 strict1_warn="${strict1_warn} -Werror"
3872 WERROR=-Werror
3875 # If the native compiler is GCC, we can enable warnings even in stage1.
3876 # That's useful for people building cross-compilers, or just running a
3877 # quick `make'.
3878 warn_cflags=
3879 if test "x$GCC" = "xyes"; then
3880 warn_cflags='$(GCC_WARN_CFLAGS)'
3884 # Enable -Werror in bootstrap stage2 and later.
3885 # Change the default to "no" on release branches.
3886 # Check whether --enable-werror or --disable-werror was given.
3887 if test "${enable_werror+set}" = set; then
3888 enableval="$enable_werror"
3890 else
3891 enable_werror=yes
3893 if test x$enable_werror = xyes ; then
3894 WERROR=-Werror
3898 # Enable expensive internal checks
3899 # Check whether --enable-checking or --disable-checking was given.
3900 if test "${enable_checking+set}" = set; then
3901 enableval="$enable_checking"
3902 ac_checking=
3903 ac_tree_checking=
3904 ac_rtl_checking=
3905 ac_rtlflag_checking=
3906 ac_gc_checking=
3907 ac_gc_always_collect=
3908 ac_fold_checking=
3909 case "${enableval}" in
3910 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3911 ac_rtlflag_checking=1 ;;
3912 no) ;;
3913 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3914 set fnord $enableval; shift
3915 IFS="$ac_save_IFS"
3916 for check
3918 case $check in
3919 fold) ac_fold_checking=1 ;;
3920 gc) ac_gc_checking=1 ;;
3921 gcac) ac_gc_always_collect=1 ;;
3922 misc) ac_checking=1 ;;
3923 rtlflag) ac_rtlflag_checking=1 ;;
3924 rtl) ac_rtl_checking=1 ;;
3925 tree) ac_tree_checking=1 ;;
3926 valgrind) ac_checking_valgrind=1 ;;
3927 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3928 echo "$as_me: error: unknown check category $check" >&2;}
3929 { (exit 1); exit 1; }; } ;;
3930 esac
3931 done
3933 esac
3935 else
3936 # Enable some checks by default for development versions of GCC
3937 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3939 nocommon_flag=""
3940 if test x$ac_checking != x ; then
3942 cat >>confdefs.h <<\_ACEOF
3943 #define ENABLE_CHECKING 1
3944 _ACEOF
3946 nocommon_flag=-fno-common
3949 if test x$ac_tree_checking != x ; then
3951 cat >>confdefs.h <<\_ACEOF
3952 #define ENABLE_TREE_CHECKING 1
3953 _ACEOF
3955 TREEBROWSER=tree-browser.o
3958 if test x$ac_rtl_checking != x ; then
3960 cat >>confdefs.h <<\_ACEOF
3961 #define ENABLE_RTL_CHECKING 1
3962 _ACEOF
3965 if test x$ac_rtlflag_checking != x ; then
3967 cat >>confdefs.h <<\_ACEOF
3968 #define ENABLE_RTL_FLAG_CHECKING 1
3969 _ACEOF
3972 if test x$ac_gc_checking != x ; then
3974 cat >>confdefs.h <<\_ACEOF
3975 #define ENABLE_GC_CHECKING 1
3976 _ACEOF
3979 if test x$ac_gc_always_collect != x ; then
3981 cat >>confdefs.h <<\_ACEOF
3982 #define ENABLE_GC_ALWAYS_COLLECT 1
3983 _ACEOF
3986 if test x$ac_fold_checking != x ; then
3988 cat >>confdefs.h <<\_ACEOF
3989 #define ENABLE_FOLD_CHECKING 1
3990 _ACEOF
3993 valgrind_path_defines=
3994 valgrind_command=
3997 echo "$as_me:$LINENO: checking for egrep" >&5
3998 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3999 if test "${ac_cv_prog_egrep+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4003 then ac_cv_prog_egrep='grep -E'
4004 else ac_cv_prog_egrep='egrep'
4007 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4008 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4009 EGREP=$ac_cv_prog_egrep
4012 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4013 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4014 if test "${ac_cv_header_stdc+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017 cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h. */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 #include <stdlib.h>
4024 #include <stdarg.h>
4025 #include <string.h>
4026 #include <float.h>
4029 main ()
4033 return 0;
4035 _ACEOF
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 (eval $ac_try) 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 (eval $ac_try) 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 ac_cv_header_stdc=yes
4058 else
4059 echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4062 ac_cv_header_stdc=no
4064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4066 if test $ac_cv_header_stdc = yes; then
4067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #include <string.h>
4076 _ACEOF
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078 $EGREP "memchr" >/dev/null 2>&1; then
4080 else
4081 ac_cv_header_stdc=no
4083 rm -f conftest*
4087 if test $ac_cv_header_stdc = yes; then
4088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4089 cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h. */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 #include <stdlib.h>
4097 _ACEOF
4098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4099 $EGREP "free" >/dev/null 2>&1; then
4101 else
4102 ac_cv_header_stdc=no
4104 rm -f conftest*
4108 if test $ac_cv_header_stdc = yes; then
4109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4110 if test "$cross_compiling" = yes; then
4112 else
4113 cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h. */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4119 #include <ctype.h>
4120 #if ((' ' & 0x0FF) == 0x020)
4121 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4122 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4123 #else
4124 # define ISLOWER(c) \
4125 (('a' <= (c) && (c) <= 'i') \
4126 || ('j' <= (c) && (c) <= 'r') \
4127 || ('s' <= (c) && (c) <= 'z'))
4128 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4129 #endif
4131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4133 main ()
4135 int i;
4136 for (i = 0; i < 256; i++)
4137 if (XOR (islower (i), ISLOWER (i))
4138 || toupper (i) != TOUPPER (i))
4139 exit(2);
4140 exit (0);
4142 _ACEOF
4143 rm -f conftest$ac_exeext
4144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4145 (eval $ac_link) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 (eval $ac_try) 2>&5
4151 ac_status=$?
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; }; then
4155 else
4156 echo "$as_me: program exited with status $ac_status" >&5
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4160 ( exit $ac_status )
4161 ac_cv_header_stdc=no
4163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4167 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4168 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4169 if test $ac_cv_header_stdc = yes; then
4171 cat >>confdefs.h <<\_ACEOF
4172 #define STDC_HEADERS 1
4173 _ACEOF
4177 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4187 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4188 inttypes.h stdint.h unistd.h
4190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4191 echo "$as_me:$LINENO: checking for $ac_header" >&5
4192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196 cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h. */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 $ac_includes_default
4204 #include <$ac_header>
4205 _ACEOF
4206 rm -f conftest.$ac_objext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>conftest.er1
4209 ac_status=$?
4210 grep -v '^ *+' conftest.er1 >conftest.err
4211 rm -f conftest.er1
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } &&
4215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; } &&
4221 { ac_try='test -s conftest.$ac_objext'
4222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 (eval $ac_try) 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; }; then
4227 eval "$as_ac_Header=yes"
4228 else
4229 echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4232 eval "$as_ac_Header=no"
4234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4239 cat >>confdefs.h <<_ACEOF
4240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4241 _ACEOF
4245 done
4248 if test "${ac_cv_header_valgrind_h+set}" = set; then
4249 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4250 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4251 if test "${ac_cv_header_valgrind_h+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4255 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4256 else
4257 # Is the header compilable?
4258 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4259 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4260 cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 $ac_includes_default
4267 #include <valgrind.h>
4268 _ACEOF
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271 (eval $ac_compile) 2>conftest.er1
4272 ac_status=$?
4273 grep -v '^ *+' conftest.er1 >conftest.err
4274 rm -f conftest.er1
4275 cat conftest.err >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } &&
4278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 (eval $ac_try) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_header_compiler=yes
4291 else
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 ac_header_compiler=no
4297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4299 echo "${ECHO_T}$ac_header_compiler" >&6
4301 # Is the header present?
4302 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4303 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h. */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4310 #include <valgrind.h>
4311 _ACEOF
4312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4314 ac_status=$?
4315 grep -v '^ *+' conftest.er1 >conftest.err
4316 rm -f conftest.er1
4317 cat conftest.err >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } >/dev/null; then
4320 if test -s conftest.err; then
4321 ac_cpp_err=$ac_c_preproc_warn_flag
4322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4323 else
4324 ac_cpp_err=
4326 else
4327 ac_cpp_err=yes
4329 if test -z "$ac_cpp_err"; then
4330 ac_header_preproc=yes
4331 else
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4335 ac_header_preproc=no
4337 rm -f conftest.err conftest.$ac_ext
4338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4339 echo "${ECHO_T}$ac_header_preproc" >&6
4341 # So? What about this header?
4342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4343 yes:no: )
4344 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4345 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4346 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4347 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4348 ac_header_preproc=yes
4350 no:yes:* )
4351 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4352 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4353 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4354 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4355 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4356 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4357 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4358 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4359 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4360 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4361 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4362 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4364 cat <<\_ASBOX
4365 ## ------------------------------------------ ##
4366 ## Report this to the AC_PACKAGE_NAME lists. ##
4367 ## ------------------------------------------ ##
4368 _ASBOX
4370 sed "s/^/$as_me: WARNING: /" >&2
4372 esac
4373 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4374 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4375 if test "${ac_cv_header_valgrind_h+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378 ac_cv_header_valgrind_h=$ac_header_preproc
4380 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4381 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4384 if test $ac_cv_header_valgrind_h = yes; then
4385 have_valgrind_h=yes
4386 else
4387 have_valgrind_h=no
4392 if test x$ac_checking_valgrind != x ; then
4393 # It is certainly possible that there's valgrind but no valgrind.h.
4394 # GCC relies on making annotations so we must have both.
4395 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4396 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4397 cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h. */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4403 #include <valgrind/memcheck.h>
4404 #ifndef VALGRIND_DISCARD
4405 #error VALGRIND_DISCARD not defined
4406 #endif
4407 _ACEOF
4408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4410 ac_status=$?
4411 grep -v '^ *+' conftest.er1 >conftest.err
4412 rm -f conftest.er1
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } >/dev/null; then
4416 if test -s conftest.err; then
4417 ac_cpp_err=$ac_c_preproc_warn_flag
4418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4419 else
4420 ac_cpp_err=
4422 else
4423 ac_cpp_err=yes
4425 if test -z "$ac_cpp_err"; then
4426 gcc_cv_header_valgrind_memcheck_h=yes
4427 else
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 gcc_cv_header_valgrind_memcheck_h=no
4433 rm -f conftest.err conftest.$ac_ext
4434 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4435 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4436 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4437 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #include <memcheck.h>
4445 #ifndef VALGRIND_DISCARD
4446 #error VALGRIND_DISCARD not defined
4447 #endif
4448 _ACEOF
4449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4451 ac_status=$?
4452 grep -v '^ *+' conftest.er1 >conftest.err
4453 rm -f conftest.er1
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } >/dev/null; then
4457 if test -s conftest.err; then
4458 ac_cpp_err=$ac_c_preproc_warn_flag
4459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4460 else
4461 ac_cpp_err=
4463 else
4464 ac_cpp_err=yes
4466 if test -z "$ac_cpp_err"; then
4467 gcc_cv_header_memcheck_h=yes
4468 else
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4472 gcc_cv_header_memcheck_h=no
4474 rm -f conftest.err conftest.$ac_ext
4475 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4476 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4478 # Prepare PATH_SEPARATOR.
4479 # The user is always right.
4480 if test "${PATH_SEPARATOR+set}" != set; then
4481 echo "#! /bin/sh" >conf$$.sh
4482 echo "exit 0" >>conf$$.sh
4483 chmod +x conf$$.sh
4484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4485 PATH_SEPARATOR=';'
4486 else
4487 PATH_SEPARATOR=:
4489 rm -f conf$$.sh
4492 # Find out how to test for executable files. Don't use a zero-byte file,
4493 # as systems may use methods other than mode bits to determine executability.
4494 cat >conf$$.file <<_ASEOF
4495 #! /bin/sh
4496 exit 0
4497 _ASEOF
4498 chmod +x conf$$.file
4499 if test -x conf$$.file >/dev/null 2>&1; then
4500 ac_executable_p="test -x"
4501 else
4502 ac_executable_p="test -f"
4504 rm -f conf$$.file
4506 # Extract the first word of "valgrind", so it can be a program name with args.
4507 set dummy valgrind; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_path_valgrind_path+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 case "$valgrind_path" in
4514 [\\/]* | ?:[\\/]*)
4515 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4518 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4519 for ac_dir in $PATH; do
4520 IFS="$ac_save_IFS"
4521 test -z "$ac_dir" && ac_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4524 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4525 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4526 break 2
4529 done
4530 done
4531 IFS="$ac_save_IFS"
4533 esac
4535 valgrind_path="$ac_cv_path_valgrind_path"
4536 if test -n "$valgrind_path"; then
4537 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4538 echo "${ECHO_T}$valgrind_path" >&6
4539 else
4540 echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6
4544 if test "x$valgrind_path" = "x" \
4545 || (test $have_valgrind_h = no \
4546 && test $gcc_cv_header_memcheck_h = no \
4547 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4548 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4549 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4550 { (exit 1); exit 1; }; }
4552 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4553 valgrind_command="$valgrind_path -q"
4555 cat >>confdefs.h <<\_ACEOF
4556 #define ENABLE_VALGRIND_CHECKING 1
4557 _ACEOF
4559 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4561 cat >>confdefs.h <<\_ACEOF
4562 #define HAVE_VALGRIND_MEMCHECK_H 1
4563 _ACEOF
4566 if test $gcc_cv_header_memcheck_h = yes; then
4568 cat >>confdefs.h <<\_ACEOF
4569 #define HAVE_MEMCHECK_H 1
4570 _ACEOF
4577 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4578 if test "${enable_mapped_location+set}" = set; then
4579 enableval="$enable_mapped_location"
4581 else
4582 enable_mapped_location=no
4585 if test "$enable_mapped_location" = yes ; then
4587 cat >>confdefs.h <<\_ACEOF
4588 #define USE_MAPPED_LOCATION 1
4589 _ACEOF
4593 # Enable code coverage collection
4594 # Check whether --enable-coverage or --disable-coverage was given.
4595 if test "${enable_coverage+set}" = set; then
4596 enableval="$enable_coverage"
4597 case "${enableval}" in
4598 yes|noopt)
4599 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4601 opt)
4602 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4605 # a.k.a. --disable-coverage
4606 coverage_flags=""
4609 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4610 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4611 { (exit 1); exit 1; }; }
4613 esac
4614 else
4615 coverage_flags=""
4619 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4620 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4621 enableval="$enable_gather_detailed_mem_stats"
4623 else
4624 enable_gather_detailed_mem_stats=no
4626 if test x$enable_gather_detailed_mem_stats = xyes ; then
4628 cat >>confdefs.h <<\_ACEOF
4629 #define GATHER_STATISTICS 1
4630 _ACEOF
4634 # -------------------------------
4635 # Miscenalleous configure options
4636 # -------------------------------
4638 # With stabs
4640 # Check whether --with-stabs or --without-stabs was given.
4641 if test "${with_stabs+set}" = set; then
4642 withval="$with_stabs"
4643 stabs="$with_stabs"
4644 else
4645 stabs=no
4648 # Determine whether or not multilibs are enabled.
4649 # Check whether --enable-multilib or --disable-multilib was given.
4650 if test "${enable_multilib+set}" = set; then
4651 enableval="$enable_multilib"
4653 else
4654 enable_multilib=yes
4658 # Enable __cxa_atexit for C++.
4659 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4660 if test "${enable___cxa_atexit+set}" = set; then
4661 enableval="$enable___cxa_atexit"
4665 # Enable threads
4666 # Pass with no value to take the default
4667 # Pass with a value to specify a thread package
4668 # Check whether --enable-threads or --disable-threads was given.
4669 if test "${enable_threads+set}" = set; then
4670 enableval="$enable_threads"
4672 else
4673 enable_threads=''
4676 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4677 if test "${enable_objc_gc+set}" = set; then
4678 enableval="$enable_objc_gc"
4679 if test x$enable_objc_gc = xno; then
4680 objc_boehm_gc=''
4681 else
4682 objc_boehm_gc=1
4684 else
4685 objc_boehm_gc=''
4689 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4690 if test "${with_dwarf2+set}" = set; then
4691 withval="$with_dwarf2"
4692 dwarf2="$with_dwarf2"
4693 else
4694 dwarf2=no
4697 # Check whether --enable-shared or --disable-shared was given.
4698 if test "${enable_shared+set}" = set; then
4699 enableval="$enable_shared"
4701 case $enable_shared in
4702 yes | no) ;;
4704 enable_shared=no
4705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4706 for pkg in $enableval; do
4707 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4708 enable_shared=yes
4710 done
4711 IFS="$ac_save_ifs"
4713 esac
4715 else
4716 enable_shared=yes
4721 # Check whether --with-sysroot or --without-sysroot was given.
4722 if test "${with_sysroot+set}" = set; then
4723 withval="$with_sysroot"
4725 case ${with_sysroot} in
4726 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4727 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4728 esac
4730 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4731 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4733 if test "x$exec_prefix" = xNONE; then
4734 if test "x$prefix" = xNONE; then
4735 test_prefix=/usr/local
4736 else
4737 test_prefix=$prefix
4739 else
4740 test_prefix=$exec_prefix
4742 case ${TARGET_SYSTEM_ROOT} in
4743 "${test_prefix}"|"${test_prefix}/"*|\
4744 '${exec_prefix}'|'${exec_prefix}/'*)
4745 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4746 TARGET_SYSTEM_ROOT_DEFINE="$t"
4748 esac
4750 else
4752 TARGET_SYSTEM_ROOT=
4753 TARGET_SYSTEM_ROOT_DEFINE=
4754 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4761 # Build with intermodule optimisations
4762 # Check whether --enable-intermodule or --disable-intermodule was given.
4763 if test "${enable_intermodule+set}" = set; then
4764 enableval="$enable_intermodule"
4765 case ${enable_intermodule} in
4766 yes) onestep="-onestep";;
4767 *) onestep="";;
4768 esac
4769 else
4770 onestep=""
4774 # Sanity check enable_languages in case someone does not run the toplevel
4775 # configure # script.
4776 # Check whether --enable-languages or --disable-languages was given.
4777 if test "${enable_languages+set}" = set; then
4778 enableval="$enable_languages"
4779 case ,${enable_languages}, in
4780 ,,|,yes,)
4781 # go safe -- we cannot be much sure without the toplevel
4782 # configure's
4783 # analysis of which target libs are present and usable
4784 enable_languages=c
4786 *,all,*)
4787 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4788 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4789 { (exit 1); exit 1; }; }
4791 *,c,*)
4794 enable_languages=c,${enable_languages}
4796 esac
4797 else
4798 enable_languages=c
4801 subdirs=
4802 for lang in ${srcdir}/*/config-lang.in
4804 case $lang in
4805 # The odd quoting in the next line works around
4806 # an apparent bug in bash 1.12 on linux.
4807 ${srcdir}/[*]/config-lang.in) ;;
4809 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4810 if test "x$lang_alias" = x
4811 then
4812 echo "$lang doesn't set \$language." 1>&2
4813 exit 1
4815 case ",$enable_languages," in
4816 *,$lang_alias,*)
4817 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4818 esac
4820 esac
4821 done
4824 # -------------------------
4825 # Checks for other programs
4826 # -------------------------
4828 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4829 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4830 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4831 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834 cat >conftest.make <<\_ACEOF
4835 all:
4836 @echo 'ac_maketemp="$(MAKE)"'
4837 _ACEOF
4838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4839 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4840 if test -n "$ac_maketemp"; then
4841 eval ac_cv_prog_make_${ac_make}_set=yes
4842 else
4843 eval ac_cv_prog_make_${ac_make}_set=no
4845 rm -f conftest.make
4847 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4848 echo "$as_me:$LINENO: result: yes" >&5
4849 echo "${ECHO_T}yes" >&6
4850 SET_MAKE=
4851 else
4852 echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6
4854 SET_MAKE="MAKE=${MAKE-make}"
4858 # Find some useful tools
4859 for ac_prog in gawk mawk nawk awk
4861 # Extract the first word of "$ac_prog", so it can be a program name with args.
4862 set dummy $ac_prog; ac_word=$2
4863 echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4865 if test "${ac_cv_prog_AWK+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868 if test -n "$AWK"; then
4869 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4870 else
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4878 ac_cv_prog_AWK="$ac_prog"
4879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 break 2
4882 done
4883 done
4887 AWK=$ac_cv_prog_AWK
4888 if test -n "$AWK"; then
4889 echo "$as_me:$LINENO: result: $AWK" >&5
4890 echo "${ECHO_T}$AWK" >&6
4891 else
4892 echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6
4896 test -n "$AWK" && break
4897 done
4899 # We need awk to create options.c and options.h.
4900 # Bail out if it's missing.
4901 case ${AWK} in
4902 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4903 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4904 { (exit 1); exit 1; }; } ;;
4905 esac
4907 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4908 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4909 if test "${gcc_cv_prog_LN_S+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912 rm -f conftestdata_t
4913 echo >conftestdata_f
4914 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4915 then
4916 gcc_cv_prog_LN_S="ln -s"
4917 else
4918 if ln conftestdata_f conftestdata_t 2>/dev/null
4919 then
4920 gcc_cv_prog_LN_S=ln
4921 else
4922 gcc_cv_prog_LN_S=cp
4925 rm -f conftestdata_f conftestdata_t
4928 LN_S="$gcc_cv_prog_LN_S"
4929 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4930 echo "$as_me:$LINENO: result: yes" >&5
4931 echo "${ECHO_T}yes" >&6
4932 else
4933 if test "$gcc_cv_prog_LN_S" = "ln"; then
4934 echo "$as_me:$LINENO: result: no, using ln" >&5
4935 echo "${ECHO_T}no, using ln" >&6
4936 else
4937 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4938 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4942 echo "$as_me:$LINENO: checking whether ln works" >&5
4943 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4944 if test "${acx_cv_prog_LN+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947 rm -f conftestdata_t
4948 echo >conftestdata_f
4949 if ln conftestdata_f conftestdata_t 2>/dev/null
4950 then
4951 acx_cv_prog_LN=ln
4952 else
4953 acx_cv_prog_LN=no
4955 rm -f conftestdata_f conftestdata_t
4958 if test $acx_cv_prog_LN = no; then
4959 LN="$LN_S"
4960 echo "$as_me:$LINENO: result: no, using $LN" >&5
4961 echo "${ECHO_T}no, using $LN" >&6
4962 else
4963 LN="$acx_cv_prog_LN"
4964 echo "$as_me:$LINENO: result: yes" >&5
4965 echo "${ECHO_T}yes" >&6
4968 if test -n "$ac_tool_prefix"; then
4969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4971 echo "$as_me:$LINENO: checking for $ac_word" >&5
4972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4973 if test "${ac_cv_prog_RANLIB+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976 if test -n "$RANLIB"; then
4977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4990 done
4991 done
4995 RANLIB=$ac_cv_prog_RANLIB
4996 if test -n "$RANLIB"; then
4997 echo "$as_me:$LINENO: result: $RANLIB" >&5
4998 echo "${ECHO_T}$RANLIB" >&6
4999 else
5000 echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5005 if test -z "$ac_cv_prog_RANLIB"; then
5006 ac_ct_RANLIB=$RANLIB
5007 # Extract the first word of "ranlib", so it can be a program name with args.
5008 set dummy ranlib; ac_word=$2
5009 echo "$as_me:$LINENO: checking for $ac_word" >&5
5010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 else
5014 if test -n "$ac_ct_RANLIB"; then
5015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5016 else
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024 ac_cv_prog_ac_ct_RANLIB="ranlib"
5025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5028 done
5029 done
5031 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5035 if test -n "$ac_ct_RANLIB"; then
5036 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5037 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5038 else
5039 echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6
5043 RANLIB=$ac_ct_RANLIB
5044 else
5045 RANLIB="$ac_cv_prog_RANLIB"
5048 case "${host}" in
5049 *-*-darwin*)
5050 # By default, the Darwin ranlib will not treat common symbols as
5051 # definitions when building the archive table of contents. Other
5052 # ranlibs do that; pass an option to the Darwin ranlib that makes
5053 # it behave similarly.
5054 ranlib_flags="-c"
5057 ranlib_flags=""
5058 esac
5061 # Find a good install program. We prefer a C program (faster),
5062 # so one script is as good as another. But avoid the broken or
5063 # incompatible versions:
5064 # SysV /etc/install, /usr/sbin/install
5065 # SunOS /usr/etc/install
5066 # IRIX /sbin/install
5067 # AIX /bin/install
5068 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5069 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5070 # ./install, which can be erroneously created by make from ./install.sh.
5071 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5072 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5073 if test -z "$INSTALL"; then
5074 if test "${ac_cv_path_install+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5078 for ac_dir in $PATH; do
5079 # Account for people who put trailing slashes in PATH elements.
5080 case "$ac_dir/" in
5081 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5083 # OSF1 and SCO ODT 3.0 have their own names for install.
5084 for ac_prog in ginstall scoinst install; do
5085 if test -f $ac_dir/$ac_prog; then
5086 if test $ac_prog = install &&
5087 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5088 # AIX install. It has an incompatible calling convention.
5089 # OSF/1 installbsd also uses dspmsg, but is usable.
5091 else
5092 ac_cv_path_install="$ac_dir/$ac_prog -c"
5093 break 2
5096 done
5098 esac
5099 done
5100 IFS="$ac_save_IFS"
5103 if test "${ac_cv_path_install+set}" = set; then
5104 INSTALL="$ac_cv_path_install"
5105 else
5106 # As a last resort, use the slow shell script. We don't cache a
5107 # path for INSTALL within a source directory, because that will
5108 # break other packages using the cache if that directory is
5109 # removed, or if the path is relative.
5110 INSTALL="$ac_install_sh"
5113 echo "$as_me:$LINENO: result: $INSTALL" >&5
5114 echo "${ECHO_T}$INSTALL" >&6
5116 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5117 # It thinks the first close brace ends the variable substitution.
5118 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5120 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5123 # See if cmp has --ignore-initial.
5124 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5125 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5126 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129 echo abfoo >t1
5130 echo cdfoo >t2
5131 gcc_cv_prog_cmp_skip=slowcompare
5132 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5133 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5135 else
5136 gcc_cv_prog_cmp_skip=gnucompare
5139 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5140 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5141 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5143 else
5144 gcc_cv_prog_cmp_skip=fastcompare
5148 rm t1 t2
5151 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5152 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5153 make_compare_target=$gcc_cv_prog_cmp_skip
5157 # See if we have the mktemp command.
5158 # Extract the first word of "mktemp", so it can be a program name with args.
5159 set dummy mktemp; ac_word=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 if test -n "$have_mktemp_command"; then
5166 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_have_mktemp_command="yes"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5179 done
5180 done
5182 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5185 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5186 if test -n "$have_mktemp_command"; then
5187 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5188 echo "${ECHO_T}$have_mktemp_command" >&6
5189 else
5190 echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5195 # Do we have a single-tree copy of texinfo?
5196 if test -f $srcdir/../texinfo/Makefile.in; then
5197 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5198 gcc_cv_prog_makeinfo_modern=yes
5199 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5200 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5201 else
5202 # See if makeinfo has been installed and is modern enough
5203 # that we can use it.
5204 # Extract the first word of "makeinfo", so it can be a program name with args.
5205 set dummy makeinfo; ac_word=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 if test -n "$MAKEINFO"; then
5212 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_MAKEINFO="makeinfo"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5230 MAKEINFO=$ac_cv_prog_MAKEINFO
5231 if test -n "$MAKEINFO"; then
5232 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5233 echo "${ECHO_T}$MAKEINFO" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5239 if test -n "$MAKEINFO"; then
5240 # Found it, now check the version.
5241 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5242 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5243 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246 ac_prog_version=`$MAKEINFO --version 2>&1 |
5247 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5248 echo "configure:5248: version of makeinfo is $ac_prog_version" >&5
5249 case $ac_prog_version in
5250 '') gcc_cv_prog_makeinfo_modern=no;;
5251 4.[2-9]*)
5252 gcc_cv_prog_makeinfo_modern=yes;;
5253 *) gcc_cv_prog_makeinfo_modern=no;;
5254 esac
5257 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5258 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5259 else
5260 gcc_cv_prog_makeinfo_modern=no
5265 if test $gcc_cv_prog_makeinfo_modern = no; then
5266 { echo "$as_me:$LINENO: WARNING:
5267 *** Makeinfo is missing or too old.
5268 *** Info documentation will not be built." >&5
5269 echo "$as_me: WARNING:
5270 *** Makeinfo is missing or too old.
5271 *** Info documentation will not be built." >&2;}
5272 BUILD_INFO=
5273 else
5274 BUILD_INFO=info
5277 # Is pod2man recent enough to regenerate manpages?
5278 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5279 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5280 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5281 echo "$as_me:$LINENO: result: yes" >&5
5282 echo "${ECHO_T}yes" >&6
5283 GENERATED_MANPAGES=generated-manpages
5284 else
5285 echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6
5287 GENERATED_MANPAGES=
5290 # How about lex?
5291 if test x${build} = x${host} && test -f $srcdir/../flex/skel.c; then
5292 FLEX='$(objdir)/../flex/flex'
5293 else
5294 # Extract the first word of "flex", so it can be a program name with args.
5295 set dummy flex; ac_word=$2
5296 echo "$as_me:$LINENO: checking for $ac_word" >&5
5297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5298 if test "${ac_cv_prog_FLEX+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301 if test -n "$FLEX"; then
5302 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_FLEX="flex"
5312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5315 done
5316 done
5318 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5321 FLEX=$ac_cv_prog_FLEX
5322 if test -n "$FLEX"; then
5323 echo "$as_me:$LINENO: result: $FLEX" >&5
5324 echo "${ECHO_T}$FLEX" >&6
5325 else
5326 echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5332 # Bison?
5333 # The -L switch is so bison can find its skeleton file.
5334 if test x${build} = x${host} && test -f $srcdir/../bison/bison.simple; then
5335 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5336 else
5337 # Extract the first word of "bison", so it can be a program name with args.
5338 set dummy bison; ac_word=$2
5339 echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5341 if test "${ac_cv_prog_BISON+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344 if test -n "$BISON"; then
5345 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5346 else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354 ac_cv_prog_BISON="bison"
5355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5358 done
5359 done
5361 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5364 BISON=$ac_cv_prog_BISON
5365 if test -n "$BISON"; then
5366 echo "$as_me:$LINENO: result: $BISON" >&5
5367 echo "${ECHO_T}$BISON" >&6
5368 else
5369 echo "$as_me:$LINENO: result: no" >&5
5370 echo "${ECHO_T}no" >&6
5375 # NM
5376 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c; then
5377 NM='$(objdir)/../binutils/nm-new'
5378 else
5379 # Extract the first word of "nm", so it can be a program name with args.
5380 set dummy nm; ac_word=$2
5381 echo "$as_me:$LINENO: checking for $ac_word" >&5
5382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383 if test "${ac_cv_prog_NM+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386 if test -n "$NM"; then
5387 ac_cv_prog_NM="$NM" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_NM="nm"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5400 done
5401 done
5403 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
5406 NM=$ac_cv_prog_NM
5407 if test -n "$NM"; then
5408 echo "$as_me:$LINENO: result: $NM" >&5
5409 echo "${ECHO_T}$NM" >&6
5410 else
5411 echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6
5417 # AR
5418 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c; then
5419 AR='$(objdir)/../binutils/ar'
5420 else
5421 # Extract the first word of "ar", so it can be a program name with args.
5422 set dummy ar; ac_word=$2
5423 echo "$as_me:$LINENO: checking for $ac_word" >&5
5424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425 if test "${ac_cv_prog_AR+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428 if test -n "$AR"; then
5429 ac_cv_prog_AR="$AR" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_AR="ar"
5439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5442 done
5443 done
5445 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
5448 AR=$ac_cv_prog_AR
5449 if test -n "$AR"; then
5450 echo "$as_me:$LINENO: result: $AR" >&5
5451 echo "${ECHO_T}$AR" >&6
5452 else
5453 echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5460 # --------------------
5461 # Checks for C headers
5462 # --------------------
5464 echo "$as_me:$LINENO: checking for GNU C library" >&5
5465 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5466 if test "${gcc_cv_glibc+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469 cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 #include <features.h>
5477 main ()
5480 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5481 #error Not a GNU C library system
5482 #endif
5484 return 0;
5486 _ACEOF
5487 rm -f conftest.$ac_objext
5488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5489 (eval $ac_compile) 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } &&
5496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; } &&
5502 { ac_try='test -s conftest.$ac_objext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 (eval $ac_try) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5508 gcc_cv_glibc=yes
5509 else
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 gcc_cv_glibc=no
5515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5518 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5519 echo "${ECHO_T}$gcc_cv_glibc" >&6
5520 if test $gcc_cv_glibc = yes; then
5522 cat >>confdefs.h <<\_ACEOF
5523 #define _GNU_SOURCE 1
5524 _ACEOF
5528 # Need to reject headers which give warnings, so that the -Werror bootstrap
5529 # works later. *sigh* This needs to come before all header checks.
5531 ac_c_preproc_warn_flag=yes
5533 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5534 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5535 if test "${ac_cv_header_stdc+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538 cat >conftest.$ac_ext <<_ACEOF
5539 /* confdefs.h. */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5544 #include <stdlib.h>
5545 #include <stdarg.h>
5546 #include <string.h>
5547 #include <float.h>
5550 main ()
5554 return 0;
5556 _ACEOF
5557 rm -f conftest.$ac_objext
5558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559 (eval $ac_compile) 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 ac_cv_header_stdc=yes
5579 else
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5583 ac_cv_header_stdc=no
5585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5587 if test $ac_cv_header_stdc = yes; then
5588 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5589 cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h. */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 #include <string.h>
5597 _ACEOF
5598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599 $EGREP "memchr" >/dev/null 2>&1; then
5601 else
5602 ac_cv_header_stdc=no
5604 rm -f conftest*
5608 if test $ac_cv_header_stdc = yes; then
5609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5610 cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h. */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5616 #include <stdlib.h>
5618 _ACEOF
5619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5620 $EGREP "free" >/dev/null 2>&1; then
5622 else
5623 ac_cv_header_stdc=no
5625 rm -f conftest*
5629 if test $ac_cv_header_stdc = yes; then
5630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5631 if test "$cross_compiling" = yes; then
5633 else
5634 cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h. */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 #include <ctype.h>
5641 #if ((' ' & 0x0FF) == 0x020)
5642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5644 #else
5645 # define ISLOWER(c) \
5646 (('a' <= (c) && (c) <= 'i') \
5647 || ('j' <= (c) && (c) <= 'r') \
5648 || ('s' <= (c) && (c) <= 'z'))
5649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5650 #endif
5652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5654 main ()
5656 int i;
5657 for (i = 0; i < 256; i++)
5658 if (XOR (islower (i), ISLOWER (i))
5659 || toupper (i) != TOUPPER (i))
5660 exit(2);
5661 exit (0);
5663 _ACEOF
5664 rm -f conftest$ac_exeext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666 (eval $ac_link) 2>&5
5667 ac_status=$?
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5676 else
5677 echo "$as_me: program exited with status $ac_status" >&5
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5681 ( exit $ac_status )
5682 ac_cv_header_stdc=no
5684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5689 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5690 if test $ac_cv_header_stdc = yes; then
5692 cat >>confdefs.h <<\_ACEOF
5693 #define STDC_HEADERS 1
5694 _ACEOF
5698 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5699 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5700 if test "${ac_cv_header_time+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703 cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h. */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 #include <sys/types.h>
5710 #include <sys/time.h>
5711 #include <time.h>
5714 main ()
5716 if ((struct tm *) 0)
5717 return 0;
5719 return 0;
5721 _ACEOF
5722 rm -f conftest.$ac_objext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724 (eval $ac_compile) 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest.$ac_objext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 ac_cv_header_time=yes
5744 else
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5748 ac_cv_header_time=no
5750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5752 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5753 echo "${ECHO_T}$ac_cv_header_time" >&6
5754 if test $ac_cv_header_time = yes; then
5756 cat >>confdefs.h <<\_ACEOF
5757 #define TIME_WITH_SYS_TIME 1
5758 _ACEOF
5762 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5763 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5764 if test "${gcc_cv_header_string+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767 cat >conftest.$ac_ext <<_ACEOF
5768 /* confdefs.h. */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 #include <string.h>
5774 #include <strings.h>
5776 main ()
5780 return 0;
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest.$ac_objext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 gcc_cv_header_string=yes
5805 else
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 gcc_cv_header_string=no
5811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5813 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5814 echo "${ECHO_T}$gcc_cv_header_string" >&6
5815 if test $gcc_cv_header_string = yes; then
5817 cat >>confdefs.h <<\_ACEOF
5818 #define STRING_WITH_STRINGS 1
5819 _ACEOF
5823 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5824 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5825 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828 cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h. */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 #include <sys/types.h>
5835 #include <sys/wait.h>
5836 #ifndef WEXITSTATUS
5837 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5838 #endif
5839 #ifndef WIFEXITED
5840 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5841 #endif
5844 main ()
5846 int s;
5847 wait (&s);
5848 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5850 return 0;
5852 _ACEOF
5853 rm -f conftest.$ac_objext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855 (eval $ac_compile) 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try='test -s conftest.$ac_objext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 ac_cv_header_sys_wait_h=yes
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5879 ac_cv_header_sys_wait_h=no
5881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5884 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5885 if test $ac_cv_header_sys_wait_h = yes; then
5887 cat >>confdefs.h <<\_ACEOF
5888 #define HAVE_SYS_WAIT_H 1
5889 _ACEOF
5914 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5915 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5916 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5917 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5920 echo "$as_me:$LINENO: checking for $ac_header" >&5
5921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925 cat >conftest.$ac_ext <<_ACEOF
5926 /* confdefs.h. */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 #include <$ac_header>
5932 _ACEOF
5933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } >/dev/null; then
5941 if test -s conftest.err; then
5942 ac_cpp_err=$ac_c_preproc_warn_flag
5943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5944 else
5945 ac_cpp_err=
5947 else
5948 ac_cpp_err=yes
5950 if test -z "$ac_cpp_err"; then
5951 eval "$as_ac_Header=yes"
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5956 eval "$as_ac_Header=no"
5958 rm -f conftest.err conftest.$ac_ext
5960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5963 cat >>confdefs.h <<_ACEOF
5964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5965 _ACEOF
5968 done
5971 # Check for thread headers.
5972 echo "$as_me:$LINENO: checking for thread.h" >&5
5973 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5974 if test "${ac_cv_header_thread_h+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 #include <thread.h>
5984 _ACEOF
5985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } >/dev/null; then
5993 if test -s conftest.err; then
5994 ac_cpp_err=$ac_c_preproc_warn_flag
5995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5996 else
5997 ac_cpp_err=
5999 else
6000 ac_cpp_err=yes
6002 if test -z "$ac_cpp_err"; then
6003 ac_cv_header_thread_h=yes
6004 else
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6008 ac_cv_header_thread_h=no
6010 rm -f conftest.err conftest.$ac_ext
6012 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6013 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6014 if test $ac_cv_header_thread_h = yes; then
6015 have_thread_h=yes
6016 else
6017 have_thread_h=
6020 echo "$as_me:$LINENO: checking for pthread.h" >&5
6021 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6022 if test "${ac_cv_header_pthread_h+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025 cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h. */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 #include <pthread.h>
6032 _ACEOF
6033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } >/dev/null; then
6041 if test -s conftest.err; then
6042 ac_cpp_err=$ac_c_preproc_warn_flag
6043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6044 else
6045 ac_cpp_err=
6047 else
6048 ac_cpp_err=yes
6050 if test -z "$ac_cpp_err"; then
6051 ac_cv_header_pthread_h=yes
6052 else
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6056 ac_cv_header_pthread_h=no
6058 rm -f conftest.err conftest.$ac_ext
6060 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6061 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6062 if test $ac_cv_header_pthread_h = yes; then
6063 have_pthread_h=yes
6064 else
6065 have_pthread_h=
6069 # These tests can't be done till we know if we have limits.h.
6070 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6071 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6072 if test "${gcc_cv_decl_char_bit+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075 cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h. */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6081 #ifdef HAVE_LIMITS_H
6082 #include <limits.h>
6083 #endif
6084 #ifdef CHAR_BIT
6085 found
6086 #endif
6087 _ACEOF
6088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6089 $EGREP "found" >/dev/null 2>&1; then
6090 gcc_cv_decl_char_bit=yes
6091 else
6092 gcc_cv_decl_char_bit=no
6094 rm -f conftest*
6098 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6099 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6100 if test $gcc_cv_decl_char_bit = no; then
6101 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6102 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6103 if test "${gcc_cv_c_nbby+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6107 gcc_cv_c_nbby=
6108 while test $i -lt 65; do
6109 cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h. */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6117 main ()
6119 switch(0) {
6120 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6121 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6124 return 0;
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129 (eval $ac_compile) 2>conftest.er1
6130 ac_status=$?
6131 grep -v '^ *+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
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" || test ! -s conftest.err'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; } &&
6142 { ac_try='test -s conftest.$ac_objext'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 (eval $ac_try) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; }; then
6148 gcc_cv_c_nbby=$i; break
6149 else
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6155 i=`expr $i + 1`
6156 done
6157 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6160 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6161 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6162 if test $gcc_cv_c_nbby = failed; then
6163 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6164 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6165 { (exit 1); exit 1; }; }
6166 else
6168 cat >>confdefs.h <<_ACEOF
6169 #define CHAR_BIT $gcc_cv_c_nbby
6170 _ACEOF
6174 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6175 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6176 if test "${ac_cv_c_bigendian+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179 ac_cv_c_bigendian=unknown
6180 # See if sys/param.h defines the BYTE_ORDER macro.
6181 cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h. */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6187 #include <sys/types.h>
6188 #include <sys/param.h>
6190 main ()
6193 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6194 bogus endian macros
6195 #endif
6197 return 0;
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202 (eval $ac_compile) 2>conftest.er1
6203 ac_status=$?
6204 grep -v '^ *+' conftest.er1 >conftest.err
6205 rm -f conftest.er1
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } &&
6209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 (eval $ac_try) 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; } &&
6215 { ac_try='test -s conftest.$ac_objext'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 (eval $ac_try) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; }; then
6221 # It does; now see whether it defined to BIG_ENDIAN or not.
6222 cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h. */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 #include <sys/types.h>
6229 #include <sys/param.h>
6231 main ()
6234 #if BYTE_ORDER != BIG_ENDIAN
6235 not big endian
6236 #endif
6238 return 0;
6240 _ACEOF
6241 rm -f conftest.$ac_objext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243 (eval $ac_compile) 2>conftest.er1
6244 ac_status=$?
6245 grep -v '^ *+' conftest.er1 >conftest.err
6246 rm -f conftest.er1
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 (eval $ac_try) 2>&5
6253 ac_status=$?
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; } &&
6256 { ac_try='test -s conftest.$ac_objext'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 (eval $ac_try) 2>&5
6259 ac_status=$?
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
6262 ac_cv_c_bigendian=yes
6263 else
6264 echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.$ac_ext >&5
6267 ac_cv_c_bigendian=no
6269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6270 else
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6276 if test $ac_cv_c_bigendian = unknown; then
6277 if test "$cross_compiling" = yes; then
6278 echo $ac_n "cross-compiling... " 2>&6
6279 else
6280 cat >conftest.$ac_ext <<_ACEOF
6281 /* confdefs.h. */
6282 _ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6286 main () {
6287 /* Are we little or big endian? From Harbison&Steele. */
6288 union
6290 long l;
6291 char c[sizeof (long)];
6292 } u;
6293 u.l = 1;
6294 exit (u.c[sizeof (long) - 1] == 1);
6296 _ACEOF
6297 rm -f conftest$ac_exeext
6298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6299 (eval $ac_link) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_c_bigendian=no
6309 else
6310 echo "$as_me: program exited with status $ac_status" >&5
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6314 ( exit $ac_status )
6315 ac_cv_c_bigendian=yes
6317 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6321 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6322 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6323 if test $ac_cv_c_bigendian = unknown; then
6324 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6325 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6327 cat >conftest.c <<EOF
6328 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6329 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6330 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6331 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6332 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6333 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6334 int main() { _ascii (); _ebcdic (); return 0; }
6336 if test -f conftest.c ; then
6337 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6338 if test `grep -l BIGenDianSyS conftest.o` ; then
6339 echo $ac_n ' big endian probe OK, ' 1>&6
6340 ac_cv_c_bigendian=yes
6342 if test `grep -l LiTTleEnDian conftest.o` ; then
6343 echo $ac_n ' little endian probe OK, ' 1>&6
6344 if test $ac_cv_c_bigendian = yes ; then
6345 ac_cv_c_bigendian=unknown;
6346 else
6347 ac_cv_c_bigendian=no
6350 echo $ac_n 'guessing bigendian ... ' >&6
6353 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6354 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6356 if test $ac_cv_c_bigendian = yes; then
6358 cat >>confdefs.h <<\_ACEOF
6359 #define WORDS_BIGENDIAN 1
6360 _ACEOF
6363 cat >>confdefs.h <<\_ACEOF
6364 #define HOST_WORDS_BIG_ENDIAN 1
6365 _ACEOF
6367 BYTEORDER=4321
6368 else
6369 BYTEORDER=1234
6372 cat >>confdefs.h <<_ACEOF
6373 #define BYTEORDER $BYTEORDER
6374 _ACEOF
6376 if test $ac_cv_c_bigendian = unknown; then
6377 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6378 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6379 { (exit 1); exit 1; }; }
6383 # --------
6384 # UNSORTED
6385 # --------
6387 # Stage specific cflags for build.
6388 stage1_cflags=
6389 case $build in
6390 vax-*-*)
6391 if test x$GCC = xyes
6392 then
6393 stage1_cflags="-Wa,-J"
6394 else
6395 stage1_cflags="-J"
6398 powerpc-*-darwin*)
6399 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6400 # sources; use -no-cpp-precomp to get to GNU cpp.
6401 # Apple's GCC has bugs in designated initializer handling, so disable
6402 # that too.
6403 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6405 esac
6408 # These libraries may be used by collect2.
6409 # We may need a special search path to get them linked.
6410 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6411 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6412 if test "${gcc_cv_collect2_libs+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415 save_LIBS="$LIBS"
6416 for libs in '' -lld -lmld \
6417 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6418 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6420 LIBS="$libs"
6421 cat >conftest.$ac_ext <<_ACEOF
6422 /* confdefs.h. */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6428 /* Override any gcc2 internal prototype to avoid an error. */
6429 #ifdef __cplusplus
6430 extern "C"
6431 #endif
6432 /* We use char because int might match the return type of a gcc2
6433 builtin and then its argument prototype would still apply. */
6434 char ldopen ();
6436 main ()
6438 ldopen ();
6440 return 0;
6442 _ACEOF
6443 rm -f conftest.$ac_objext conftest$ac_exeext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6445 (eval $ac_link) 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 (eval $ac_try) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; } &&
6458 { ac_try='test -s conftest$ac_exeext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 gcc_cv_collect2_libs="$libs"; break
6465 else
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6470 rm -f conftest.err conftest.$ac_objext \
6471 conftest$ac_exeext conftest.$ac_ext
6472 done
6473 LIBS="$save_LIBS"
6474 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6476 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6477 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6478 case $gcc_cv_collect2_libs in
6479 "none required") ;;
6480 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6481 esac
6484 # When building Ada code on Alpha, we need exc_resume which is usually in
6485 # -lexc. So test for it.
6486 save_LIBS="$LIBS"
6487 LIBS=
6488 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6489 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6490 if test "${ac_cv_search_exc_resume+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493 ac_func_search_save_LIBS=$LIBS
6494 ac_cv_search_exc_resume=no
6495 cat >conftest.$ac_ext <<_ACEOF
6496 /* confdefs.h. */
6497 _ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6502 /* Override any gcc2 internal prototype to avoid an error. */
6503 #ifdef __cplusplus
6504 extern "C"
6505 #endif
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6508 char exc_resume ();
6510 main ()
6512 exc_resume ();
6514 return 0;
6516 _ACEOF
6517 rm -f conftest.$ac_objext conftest$ac_exeext
6518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6519 (eval $ac_link) 2>conftest.er1
6520 ac_status=$?
6521 grep -v '^ *+' conftest.er1 >conftest.err
6522 rm -f conftest.er1
6523 cat conftest.err >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 (eval $ac_try) 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; } &&
6532 { ac_try='test -s conftest$ac_exeext'
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 (eval $ac_try) 2>&5
6535 ac_status=$?
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; }; then
6538 ac_cv_search_exc_resume="none required"
6539 else
6540 echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.$ac_ext >&5
6544 rm -f conftest.err conftest.$ac_objext \
6545 conftest$ac_exeext conftest.$ac_ext
6546 if test "$ac_cv_search_exc_resume" = no; then
6547 for ac_lib in exc; do
6548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6549 cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h. */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6556 /* Override any gcc2 internal prototype to avoid an error. */
6557 #ifdef __cplusplus
6558 extern "C"
6559 #endif
6560 /* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
6562 char exc_resume ();
6564 main ()
6566 exc_resume ();
6568 return 0;
6570 _ACEOF
6571 rm -f conftest.$ac_objext conftest$ac_exeext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
6580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 (eval $ac_try) 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; } &&
6586 { ac_try='test -s conftest$ac_exeext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 (eval $ac_try) 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 ac_cv_search_exc_resume="-l$ac_lib"
6593 break
6594 else
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6599 rm -f conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6601 done
6603 LIBS=$ac_func_search_save_LIBS
6605 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6606 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6607 if test "$ac_cv_search_exc_resume" != no; then
6608 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6612 GNAT_LIBEXC="$LIBS"
6613 LIBS="$save_LIBS"
6616 # Some systems put ldexp and frexp in libm instead of libc; assume
6617 # they're both in the same place. jcf-dump needs them.
6618 save_LIBS="$LIBS"
6619 LIBS=
6620 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6621 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6622 if test "${ac_cv_search_ldexp+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625 ac_func_search_save_LIBS=$LIBS
6626 ac_cv_search_ldexp=no
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h. */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6634 /* Override any gcc2 internal prototype to avoid an error. */
6635 #ifdef __cplusplus
6636 extern "C"
6637 #endif
6638 /* We use char because int might match the return type of a gcc2
6639 builtin and then its argument prototype would still apply. */
6640 char ldexp ();
6642 main ()
6644 ldexp ();
6646 return 0;
6648 _ACEOF
6649 rm -f conftest.$ac_objext conftest$ac_exeext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651 (eval $ac_link) 2>conftest.er1
6652 ac_status=$?
6653 grep -v '^ *+' conftest.er1 >conftest.err
6654 rm -f conftest.er1
6655 cat conftest.err >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } &&
6658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 (eval $ac_try) 2>&5
6661 ac_status=$?
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; } &&
6664 { ac_try='test -s conftest$ac_exeext'
6665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 (eval $ac_try) 2>&5
6667 ac_status=$?
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }; }; then
6670 ac_cv_search_ldexp="none required"
6671 else
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6676 rm -f conftest.err conftest.$ac_objext \
6677 conftest$ac_exeext conftest.$ac_ext
6678 if test "$ac_cv_search_ldexp" = no; then
6679 for ac_lib in m; do
6680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h. */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6688 /* Override any gcc2 internal prototype to avoid an error. */
6689 #ifdef __cplusplus
6690 extern "C"
6691 #endif
6692 /* We use char because int might match the return type of a gcc2
6693 builtin and then its argument prototype would still apply. */
6694 char ldexp ();
6696 main ()
6698 ldexp ();
6700 return 0;
6702 _ACEOF
6703 rm -f conftest.$ac_objext conftest$ac_exeext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705 (eval $ac_link) 2>conftest.er1
6706 ac_status=$?
6707 grep -v '^ *+' conftest.er1 >conftest.err
6708 rm -f conftest.er1
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 (eval $ac_try) 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try='test -s conftest$ac_exeext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 (eval $ac_try) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 ac_cv_search_ldexp="-l$ac_lib"
6725 break
6726 else
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6731 rm -f conftest.err conftest.$ac_objext \
6732 conftest$ac_exeext conftest.$ac_ext
6733 done
6735 LIBS=$ac_func_search_save_LIBS
6737 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6738 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6739 if test "$ac_cv_search_ldexp" != no; then
6740 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6744 LDEXP_LIB="$LIBS"
6745 LIBS="$save_LIBS"
6748 # Use <inttypes.h> only if it exists,
6749 # doesn't clash with <sys/types.h>, and declares intmax_t.
6750 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6751 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6752 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755 cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h. */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6761 #include <sys/types.h>
6762 #include <inttypes.h>
6764 main ()
6766 intmax_t i = -1;
6768 return 0;
6770 _ACEOF
6771 rm -f conftest.$ac_objext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6773 (eval $ac_compile) 2>conftest.er1
6774 ac_status=$?
6775 grep -v '^ *+' conftest.er1 >conftest.err
6776 rm -f conftest.er1
6777 cat conftest.err >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } &&
6780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 (eval $ac_try) 2>&5
6783 ac_status=$?
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; } &&
6786 { ac_try='test -s conftest.$ac_objext'
6787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788 (eval $ac_try) 2>&5
6789 ac_status=$?
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); }; }; then
6792 gcc_cv_header_inttypes_h=yes
6793 else
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6797 gcc_cv_header_inttypes_h=no
6799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6802 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6803 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6804 if test $gcc_cv_header_inttypes_h = yes; then
6806 cat >>confdefs.h <<\_ACEOF
6807 #define HAVE_INTTYPES_H 1
6808 _ACEOF
6838 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6839 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6840 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6841 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6842 setlocale
6844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6845 echo "$as_me:$LINENO: checking for $ac_func" >&5
6846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6847 if eval "test \"\${$as_ac_var+set}\" = set"; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850 cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h. */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6858 #define $ac_func innocuous_$ac_func
6860 /* System header to define __stub macros and hopefully few prototypes,
6861 which can conflict with char $ac_func (); below.
6862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6863 <limits.h> exists even on freestanding compilers. */
6865 #ifdef __STDC__
6866 # include <limits.h>
6867 #else
6868 # include <assert.h>
6869 #endif
6871 #undef $ac_func
6873 /* Override any gcc2 internal prototype to avoid an error. */
6874 #ifdef __cplusplus
6875 extern "C"
6877 #endif
6878 /* We use char because int might match the return type of a gcc2
6879 builtin and then its argument prototype would still apply. */
6880 char $ac_func ();
6881 /* The GNU C library defines this for functions which it implements
6882 to always fail with ENOSYS. Some functions are actually named
6883 something starting with __ and the normal name is an alias. */
6884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6885 choke me
6886 #else
6887 char (*f) () = $ac_func;
6888 #endif
6889 #ifdef __cplusplus
6891 #endif
6894 main ()
6896 return f != $ac_func;
6898 return 0;
6900 _ACEOF
6901 rm -f conftest.$ac_objext conftest$ac_exeext
6902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6903 (eval $ac_link) 2>conftest.er1
6904 ac_status=$?
6905 grep -v '^ *+' conftest.er1 >conftest.err
6906 rm -f conftest.er1
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } &&
6910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; } &&
6916 { ac_try='test -s conftest$ac_exeext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 eval "$as_ac_var=yes"
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 eval "$as_ac_var=no"
6929 rm -f conftest.err conftest.$ac_objext \
6930 conftest$ac_exeext conftest.$ac_ext
6932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6934 if test `eval echo '${'$as_ac_var'}'` = yes; then
6935 cat >>confdefs.h <<_ACEOF
6936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6937 _ACEOF
6940 done
6943 if test x$ac_cv_func_mbstowcs = xyes; then
6944 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6945 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6946 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 if test "$cross_compiling" = yes; then
6950 gcc_cv_func_mbstowcs_works=yes
6951 else
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 #include <stdlib.h>
6959 int main()
6961 mbstowcs(0, "", 0);
6962 return 0;
6964 _ACEOF
6965 rm -f conftest$ac_exeext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6967 (eval $ac_link) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 (eval $ac_try) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; }; then
6976 gcc_cv_func_mbstowcs_works=yes
6977 else
6978 echo "$as_me: program exited with status $ac_status" >&5
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6982 ( exit $ac_status )
6983 gcc_cv_func_mbstowcs_works=no
6985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6988 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6989 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6990 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6992 cat >>confdefs.h <<\_ACEOF
6993 #define HAVE_WORKING_MBSTOWCS 1
6994 _ACEOF
6999 echo "$as_me:$LINENO: checking for ssize_t" >&5
7000 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7001 if test "${ac_cv_type_ssize_t+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004 cat >conftest.$ac_ext <<_ACEOF
7005 /* confdefs.h. */
7006 _ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7010 $ac_includes_default
7012 main ()
7014 if ((ssize_t *) 0)
7015 return 0;
7016 if (sizeof (ssize_t))
7017 return 0;
7019 return 0;
7021 _ACEOF
7022 rm -f conftest.$ac_objext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024 (eval $ac_compile) 2>conftest.er1
7025 ac_status=$?
7026 grep -v '^ *+' conftest.er1 >conftest.err
7027 rm -f conftest.er1
7028 cat conftest.err >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033 (eval $ac_try) 2>&5
7034 ac_status=$?
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; } &&
7037 { ac_try='test -s conftest.$ac_objext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 (eval $ac_try) 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 ac_cv_type_ssize_t=yes
7044 else
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7048 ac_cv_type_ssize_t=no
7050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7052 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7053 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7054 if test $ac_cv_type_ssize_t = yes; then
7056 else
7058 cat >>confdefs.h <<_ACEOF
7059 #define ssize_t int
7060 _ACEOF
7065 # Try to determine the array type of the second argument of getgroups
7066 # for the target system (int or gid_t).
7067 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7068 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7069 if test "${ac_cv_type_uid_t+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072 cat >conftest.$ac_ext <<_ACEOF
7073 /* confdefs.h. */
7074 _ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7078 #include <sys/types.h>
7080 _ACEOF
7081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7082 $EGREP "uid_t" >/dev/null 2>&1; then
7083 ac_cv_type_uid_t=yes
7084 else
7085 ac_cv_type_uid_t=no
7087 rm -f conftest*
7090 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7091 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7092 if test $ac_cv_type_uid_t = no; then
7094 cat >>confdefs.h <<\_ACEOF
7095 #define uid_t int
7096 _ACEOF
7099 cat >>confdefs.h <<\_ACEOF
7100 #define gid_t int
7101 _ACEOF
7105 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7106 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7107 if test "${ac_cv_type_getgroups+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 if test "$cross_compiling" = yes; then
7111 ac_cv_type_getgroups=cross
7112 else
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h. */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 /* Thanks to Mike Rendell for this test. */
7120 #include <sys/types.h>
7121 #define NGID 256
7122 #undef MAX
7123 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7126 main ()
7128 gid_t gidset[NGID];
7129 int i, n;
7130 union { gid_t gval; long lval; } val;
7132 val.lval = -1;
7133 for (i = 0; i < NGID; i++)
7134 gidset[i] = val.gval;
7135 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7136 gidset);
7137 /* Exit non-zero if getgroups seems to require an array of ints. This
7138 happens when gid_t is short but getgroups modifies an array of ints. */
7139 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7141 _ACEOF
7142 rm -f conftest$ac_exeext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7144 (eval $ac_link) 2>&5
7145 ac_status=$?
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 (eval $ac_try) 2>&5
7150 ac_status=$?
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; }; then
7153 ac_cv_type_getgroups=gid_t
7154 else
7155 echo "$as_me: program exited with status $ac_status" >&5
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7159 ( exit $ac_status )
7160 ac_cv_type_getgroups=int
7162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7164 if test $ac_cv_type_getgroups = cross; then
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #include <unistd.h>
7173 _ACEOF
7174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7175 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7176 ac_cv_type_getgroups=gid_t
7177 else
7178 ac_cv_type_getgroups=int
7180 rm -f conftest*
7184 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7185 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7187 cat >>confdefs.h <<_ACEOF
7188 #define GETGROUPS_T $ac_cv_type_getgroups
7189 _ACEOF
7192 if test "${target}" = "${build}"; then
7193 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7194 else
7195 case "${target}" in
7196 # This condition may need some tweaking. It should include all
7197 # targets where the array type of the second argument of getgroups
7198 # is int and the type of gid_t is not equivalent to int.
7199 *-*-sunos* | *-*-ultrix*)
7200 TARGET_GETGROUPS_T=int
7203 TARGET_GETGROUPS_T=gid_t
7205 esac
7209 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7210 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7211 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214 if test "$cross_compiling" = yes; then
7215 gcc_cv_func_printf_ptr=no
7216 else
7217 cat >conftest.$ac_ext <<_ACEOF
7218 /* confdefs.h. */
7219 _ACEOF
7220 cat confdefs.h >>conftest.$ac_ext
7221 cat >>conftest.$ac_ext <<_ACEOF
7222 /* end confdefs.h. */
7223 #include <stdio.h>
7225 int main()
7227 char buf[64];
7228 char *p = buf, *q = NULL;
7229 sprintf(buf, "%p", p);
7230 sscanf(buf, "%p", &q);
7231 return (p != q);
7233 _ACEOF
7234 rm -f conftest$ac_exeext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236 (eval $ac_link) 2>&5
7237 ac_status=$?
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 (eval $ac_try) 2>&5
7242 ac_status=$?
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; }; then
7245 gcc_cv_func_printf_ptr=yes
7246 else
7247 echo "$as_me: program exited with status $ac_status" >&5
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 ( exit $ac_status )
7252 gcc_cv_func_printf_ptr=no
7254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7256 rm -f core core.* *.core
7258 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7259 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7260 if test $gcc_cv_func_printf_ptr = yes ; then
7262 cat >>confdefs.h <<\_ACEOF
7263 #define HAVE_PRINTF_PTR 1
7264 _ACEOF
7269 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
7270 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
7271 if test "${ac_cv_header_sys_mman_h+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274 cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h. */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 #include <sys/mman.h>
7281 _ACEOF
7282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7284 ac_status=$?
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } >/dev/null; then
7290 if test -s conftest.err; then
7291 ac_cpp_err=$ac_c_preproc_warn_flag
7292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7293 else
7294 ac_cpp_err=
7296 else
7297 ac_cpp_err=yes
7299 if test -z "$ac_cpp_err"; then
7300 ac_cv_header_sys_mman_h=yes
7301 else
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7305 ac_cv_header_sys_mman_h=no
7307 rm -f conftest.err conftest.$ac_ext
7309 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
7310 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
7311 if test $ac_cv_header_sys_mman_h = yes; then
7312 gcc_header_sys_mman_h=yes
7313 else
7314 gcc_header_sys_mman_h=no
7317 echo "$as_me:$LINENO: checking for mmap" >&5
7318 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
7319 if test "${ac_cv_func_mmap+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
7329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7330 #define mmap innocuous_mmap
7332 /* System header to define __stub macros and hopefully few prototypes,
7333 which can conflict with char mmap (); below.
7334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7335 <limits.h> exists even on freestanding compilers. */
7337 #ifdef __STDC__
7338 # include <limits.h>
7339 #else
7340 # include <assert.h>
7341 #endif
7343 #undef mmap
7345 /* Override any gcc2 internal prototype to avoid an error. */
7346 #ifdef __cplusplus
7347 extern "C"
7349 #endif
7350 /* We use char because int might match the return type of a gcc2
7351 builtin and then its argument prototype would still apply. */
7352 char mmap ();
7353 /* The GNU C library defines this for functions which it implements
7354 to always fail with ENOSYS. Some functions are actually named
7355 something starting with __ and the normal name is an alias. */
7356 #if defined (__stub_mmap) || defined (__stub___mmap)
7357 choke me
7358 #else
7359 char (*f) () = mmap;
7360 #endif
7361 #ifdef __cplusplus
7363 #endif
7366 main ()
7368 return f != mmap;
7370 return 0;
7372 _ACEOF
7373 rm -f conftest.$ac_objext conftest$ac_exeext
7374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7375 (eval $ac_link) 2>conftest.er1
7376 ac_status=$?
7377 grep -v '^ *+' conftest.er1 >conftest.err
7378 rm -f conftest.er1
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
7382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 (eval $ac_try) 2>&5
7385 ac_status=$?
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; } &&
7388 { ac_try='test -s conftest$ac_exeext'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 (eval $ac_try) 2>&5
7391 ac_status=$?
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 ac_cv_func_mmap=yes
7395 else
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7399 ac_cv_func_mmap=no
7401 rm -f conftest.err conftest.$ac_objext \
7402 conftest$ac_exeext conftest.$ac_ext
7404 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
7405 echo "${ECHO_T}$ac_cv_func_mmap" >&6
7406 if test $ac_cv_func_mmap = yes; then
7407 gcc_func_mmap=yes
7408 else
7409 gcc_func_mmap=no
7412 if test "$gcc_header_sys_mman_h" != yes \
7413 || test "$gcc_func_mmap" != yes; then
7414 gcc_cv_func_mmap_file=no
7415 gcc_cv_func_mmap_dev_zero=no
7416 gcc_cv_func_mmap_anon=no
7417 else
7418 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7419 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7420 if test "${gcc_cv_func_mmap_file+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423 # Add a system to this blacklist if
7424 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7425 # memory area containing the same data that you'd get if you applied
7426 # read() to the same fd. The only system known to have a problem here
7427 # is VMS, where text files have record structure.
7428 case "$host_os" in
7429 vms* | ultrix*)
7430 gcc_cv_func_mmap_file=no ;;
7432 gcc_cv_func_mmap_file=yes;;
7433 esac
7435 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7436 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7437 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7438 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7439 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442 # Add a system to this blacklist if it has mmap() but /dev/zero
7443 # does not exist, or if mmapping /dev/zero does not give anonymous
7444 # zeroed pages with both the following properties:
7445 # 1. If you map N consecutive pages in with one call, and then
7446 # unmap any subset of those pages, the pages that were not
7447 # explicitly unmapped remain accessible.
7448 # 2. If you map two adjacent blocks of memory and then unmap them
7449 # both at once, they must both go away.
7450 # Systems known to be in this category are Windows (all variants),
7451 # VMS, and Darwin.
7452 case "$host_os" in
7453 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7454 gcc_cv_func_mmap_dev_zero=no ;;
7456 gcc_cv_func_mmap_dev_zero=yes;;
7457 esac
7459 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7460 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7462 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7463 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7464 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7465 if test "${gcc_cv_decl_map_anon+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h. */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 #include <sys/types.h>
7475 #include <sys/mman.h>
7476 #include <unistd.h>
7478 #ifndef MAP_ANONYMOUS
7479 #define MAP_ANONYMOUS MAP_ANON
7480 #endif
7483 main ()
7485 int n = MAP_ANONYMOUS;
7487 return 0;
7489 _ACEOF
7490 rm -f conftest.$ac_objext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7492 (eval $ac_compile) 2>conftest.er1
7493 ac_status=$?
7494 grep -v '^ *+' conftest.er1 >conftest.err
7495 rm -f conftest.er1
7496 cat conftest.err >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 (eval $ac_try) 2>&5
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; } &&
7505 { ac_try='test -s conftest.$ac_objext'
7506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507 (eval $ac_try) 2>&5
7508 ac_status=$?
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; }; then
7511 gcc_cv_decl_map_anon=yes
7512 else
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7516 gcc_cv_decl_map_anon=no
7518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7520 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7521 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7523 if test $gcc_cv_decl_map_anon = no; then
7524 gcc_cv_func_mmap_anon=no
7525 else
7526 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7527 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7528 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7531 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7532 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7533 # doesn't give anonymous zeroed pages with the same properties listed
7534 # above for use of /dev/zero.
7535 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7536 case "$host_os" in
7537 vms* | cygwin* | pe | mingw* | sco* | udk* )
7538 gcc_cv_func_mmap_anon=no ;;
7540 gcc_cv_func_mmap_anon=yes;;
7541 esac
7543 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7544 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7548 if test $gcc_cv_func_mmap_file = yes; then
7550 cat >>confdefs.h <<\_ACEOF
7551 #define HAVE_MMAP_FILE 1
7552 _ACEOF
7555 if test $gcc_cv_func_mmap_dev_zero = yes; then
7557 cat >>confdefs.h <<\_ACEOF
7558 #define HAVE_MMAP_DEV_ZERO 1
7559 _ACEOF
7562 if test $gcc_cv_func_mmap_anon = yes; then
7564 cat >>confdefs.h <<\_ACEOF
7565 #define HAVE_MMAP_ANON 1
7566 _ACEOF
7571 case "${host}" in
7572 *-*-*vms*)
7573 # Under VMS, vfork works very differently than on Unix. The standard test
7574 # won't work, and it isn't easily adaptable. It makes more sense to
7575 # just force it.
7576 ac_cv_func_vfork_works=yes
7578 esac
7579 echo "$as_me:$LINENO: checking for pid_t" >&5
7580 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7581 if test "${ac_cv_type_pid_t+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584 cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h. */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7590 $ac_includes_default
7592 main ()
7594 if ((pid_t *) 0)
7595 return 0;
7596 if (sizeof (pid_t))
7597 return 0;
7599 return 0;
7601 _ACEOF
7602 rm -f conftest.$ac_objext
7603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7604 (eval $ac_compile) 2>conftest.er1
7605 ac_status=$?
7606 grep -v '^ *+' conftest.er1 >conftest.err
7607 rm -f conftest.er1
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } &&
7611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 (eval $ac_try) 2>&5
7614 ac_status=$?
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; } &&
7617 { ac_try='test -s conftest.$ac_objext'
7618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619 (eval $ac_try) 2>&5
7620 ac_status=$?
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7623 ac_cv_type_pid_t=yes
7624 else
7625 echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7628 ac_cv_type_pid_t=no
7630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7632 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7633 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7634 if test $ac_cv_type_pid_t = yes; then
7636 else
7638 cat >>confdefs.h <<_ACEOF
7639 #define pid_t int
7640 _ACEOF
7646 for ac_header in unistd.h vfork.h
7648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7649 echo "$as_me:$LINENO: checking for $ac_header" >&5
7650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654 cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h. */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 #include <$ac_header>
7661 _ACEOF
7662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } >/dev/null; then
7670 if test -s conftest.err; then
7671 ac_cpp_err=$ac_c_preproc_warn_flag
7672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7673 else
7674 ac_cpp_err=
7676 else
7677 ac_cpp_err=yes
7679 if test -z "$ac_cpp_err"; then
7680 eval "$as_ac_Header=yes"
7681 else
7682 echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7685 eval "$as_ac_Header=no"
7687 rm -f conftest.err conftest.$ac_ext
7689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7692 cat >>confdefs.h <<_ACEOF
7693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7694 _ACEOF
7697 done
7701 for ac_func in fork vfork
7703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7704 echo "$as_me:$LINENO: checking for $ac_func" >&5
7705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7706 if eval "test \"\${$as_ac_var+set}\" = set"; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7717 #define $ac_func innocuous_$ac_func
7719 /* System header to define __stub macros and hopefully few prototypes,
7720 which can conflict with char $ac_func (); below.
7721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7722 <limits.h> exists even on freestanding compilers. */
7724 #ifdef __STDC__
7725 # include <limits.h>
7726 #else
7727 # include <assert.h>
7728 #endif
7730 #undef $ac_func
7732 /* Override any gcc2 internal prototype to avoid an error. */
7733 #ifdef __cplusplus
7734 extern "C"
7736 #endif
7737 /* We use char because int might match the return type of a gcc2
7738 builtin and then its argument prototype would still apply. */
7739 char $ac_func ();
7740 /* The GNU C library defines this for functions which it implements
7741 to always fail with ENOSYS. Some functions are actually named
7742 something starting with __ and the normal name is an alias. */
7743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7744 choke me
7745 #else
7746 char (*f) () = $ac_func;
7747 #endif
7748 #ifdef __cplusplus
7750 #endif
7753 main ()
7755 return f != $ac_func;
7757 return 0;
7759 _ACEOF
7760 rm -f conftest.$ac_objext conftest$ac_exeext
7761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7762 (eval $ac_link) 2>conftest.er1
7763 ac_status=$?
7764 grep -v '^ *+' conftest.er1 >conftest.err
7765 rm -f conftest.er1
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
7769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest$ac_exeext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 eval "$as_ac_var=yes"
7782 else
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7786 eval "$as_ac_var=no"
7788 rm -f conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext conftest.$ac_ext
7791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7793 if test `eval echo '${'$as_ac_var'}'` = yes; then
7794 cat >>confdefs.h <<_ACEOF
7795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7796 _ACEOF
7799 done
7801 if test "x$ac_cv_func_fork" = xyes; then
7802 echo "$as_me:$LINENO: checking for working fork" >&5
7803 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7804 if test "${ac_cv_func_fork_works+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807 if test "$cross_compiling" = yes; then
7808 ac_cv_func_fork_works=cross
7809 else
7810 cat >conftest.$ac_ext <<_ACEOF
7811 /* By Ruediger Kuhlmann. */
7812 #include <sys/types.h>
7813 #if HAVE_UNISTD_H
7814 # include <unistd.h>
7815 #endif
7816 /* Some systems only have a dummy stub for fork() */
7817 int main ()
7819 if (fork() < 0)
7820 exit (1);
7821 exit (0);
7823 _ACEOF
7824 rm -f conftest$ac_exeext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826 (eval $ac_link) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 (eval $ac_try) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; }; then
7835 ac_cv_func_fork_works=yes
7836 else
7837 echo "$as_me: program exited with status $ac_status" >&5
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7841 ( exit $ac_status )
7842 ac_cv_func_fork_works=no
7844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7847 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7848 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7850 else
7851 ac_cv_func_fork_works=$ac_cv_func_fork
7853 if test "x$ac_cv_func_fork_works" = xcross; then
7854 case $host in
7855 *-*-amigaos* | *-*-msdosdjgpp*)
7856 # Override, as these systems have only a dummy fork() stub
7857 ac_cv_func_fork_works=no
7860 ac_cv_func_fork_works=yes
7862 esac
7863 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7864 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7866 ac_cv_func_vfork_works=$ac_cv_func_vfork
7867 if test "x$ac_cv_func_vfork" = xyes; then
7868 echo "$as_me:$LINENO: checking for working vfork" >&5
7869 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7870 if test "${ac_cv_func_vfork_works+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873 if test "$cross_compiling" = yes; then
7874 ac_cv_func_vfork_works=cross
7875 else
7876 cat >conftest.$ac_ext <<_ACEOF
7877 /* confdefs.h. */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7882 /* Thanks to Paul Eggert for this test. */
7883 #include <stdio.h>
7884 #include <stdlib.h>
7885 #include <sys/types.h>
7886 #include <sys/stat.h>
7887 #include <sys/wait.h>
7888 #if HAVE_UNISTD_H
7889 # include <unistd.h>
7890 #endif
7891 #if HAVE_VFORK_H
7892 # include <vfork.h>
7893 #endif
7894 /* On some sparc systems, changes by the child to local and incoming
7895 argument registers are propagated back to the parent. The compiler
7896 is told about this with #include <vfork.h>, but some compilers
7897 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7898 static variable whose address is put into a register that is
7899 clobbered by the vfork. */
7900 static void
7901 #ifdef __cplusplus
7902 sparc_address_test (int arg)
7903 # else
7904 sparc_address_test (arg) int arg;
7905 #endif
7907 static pid_t child;
7908 if (!child) {
7909 child = vfork ();
7910 if (child < 0) {
7911 perror ("vfork");
7912 _exit(2);
7914 if (!child) {
7915 arg = getpid();
7916 write(-1, "", 0);
7917 _exit (arg);
7923 main ()
7925 pid_t parent = getpid ();
7926 pid_t child;
7928 sparc_address_test (0);
7930 child = vfork ();
7932 if (child == 0) {
7933 /* Here is another test for sparc vfork register problems. This
7934 test uses lots of local variables, at least as many local
7935 variables as main has allocated so far including compiler
7936 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7937 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7938 reuse the register of parent for one of the local variables,
7939 since it will think that parent can't possibly be used any more
7940 in this routine. Assigning to the local variable will thus
7941 munge parent in the parent process. */
7942 pid_t
7943 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7944 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7945 /* Convince the compiler that p..p7 are live; otherwise, it might
7946 use the same hardware register for all 8 local variables. */
7947 if (p != p1 || p != p2 || p != p3 || p != p4
7948 || p != p5 || p != p6 || p != p7)
7949 _exit(1);
7951 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7952 from child file descriptors. If the child closes a descriptor
7953 before it execs or exits, this munges the parent's descriptor
7954 as well. Test for this by closing stdout in the child. */
7955 _exit(close(fileno(stdout)) != 0);
7956 } else {
7957 int status;
7958 struct stat st;
7960 while (wait(&status) != child)
7962 exit(
7963 /* Was there some problem with vforking? */
7964 child < 0
7966 /* Did the child fail? (This shouldn't happen.) */
7967 || status
7969 /* Did the vfork/compiler bug occur? */
7970 || parent != getpid()
7972 /* Did the file descriptor bug occur? */
7973 || fstat(fileno(stdout), &st) != 0
7977 _ACEOF
7978 rm -f conftest$ac_exeext
7979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7980 (eval $ac_link) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 (eval $ac_try) 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 ac_cv_func_vfork_works=yes
7990 else
7991 echo "$as_me: program exited with status $ac_status" >&5
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 ( exit $ac_status )
7996 ac_cv_func_vfork_works=no
7998 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8001 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8002 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8005 if test "x$ac_cv_func_fork_works" = xcross; then
8006 ac_cv_func_vfork_works=$ac_cv_func_vfork
8007 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8008 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8011 if test "x$ac_cv_func_vfork_works" = xyes; then
8013 cat >>confdefs.h <<\_ACEOF
8014 #define HAVE_WORKING_VFORK 1
8015 _ACEOF
8017 else
8019 cat >>confdefs.h <<\_ACEOF
8020 #define vfork fork
8021 _ACEOF
8024 if test "x$ac_cv_func_fork_works" = xyes; then
8026 cat >>confdefs.h <<\_ACEOF
8027 #define HAVE_WORKING_FORK 1
8028 _ACEOF
8035 am_cv_lib_iconv_ldpath=
8037 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8038 if test "${with_libiconv_prefix+set}" = set; then
8039 withval="$with_libiconv_prefix"
8041 for dir in `echo "$withval" | tr : ' '`; do
8042 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
8043 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
8044 done
8049 for ac_header in iconv.h
8051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8052 echo "$as_me:$LINENO: checking for $ac_header" >&5
8053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057 cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h. */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063 #include <$ac_header>
8064 _ACEOF
8065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8067 ac_status=$?
8068 grep -v '^ *+' conftest.er1 >conftest.err
8069 rm -f conftest.er1
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } >/dev/null; then
8073 if test -s conftest.err; then
8074 ac_cpp_err=$ac_c_preproc_warn_flag
8075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8076 else
8077 ac_cpp_err=
8079 else
8080 ac_cpp_err=yes
8082 if test -z "$ac_cpp_err"; then
8083 eval "$as_ac_Header=yes"
8084 else
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 eval "$as_ac_Header=no"
8090 rm -f conftest.err conftest.$ac_ext
8092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8095 cat >>confdefs.h <<_ACEOF
8096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8097 _ACEOF
8100 done
8103 echo "$as_me:$LINENO: checking for iconv" >&5
8104 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8105 if test "${am_cv_func_iconv+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8109 am_cv_func_iconv="no, consider installing GNU libiconv"
8110 am_cv_lib_iconv=no
8111 cat >conftest.$ac_ext <<_ACEOF
8112 /* confdefs.h. */
8113 _ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8117 #include <stdlib.h>
8118 #include <iconv.h>
8120 main ()
8122 iconv_t cd = iconv_open("","");
8123 iconv(cd,NULL,NULL,NULL,NULL);
8124 iconv_close(cd);
8126 return 0;
8128 _ACEOF
8129 rm -f conftest.$ac_objext conftest$ac_exeext
8130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8131 (eval $ac_link) 2>conftest.er1
8132 ac_status=$?
8133 grep -v '^ *+' conftest.er1 >conftest.err
8134 rm -f conftest.er1
8135 cat conftest.err >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } &&
8138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; } &&
8144 { ac_try='test -s conftest$ac_exeext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 (eval $ac_try) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 am_cv_func_iconv=yes
8151 else
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8156 rm -f conftest.err conftest.$ac_objext \
8157 conftest$ac_exeext conftest.$ac_ext
8158 if test "$am_cv_func_iconv" != yes; then
8159 am_save_LIBS="$LIBS"
8160 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8161 cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h. */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8167 #include <stdlib.h>
8168 #include <iconv.h>
8170 main ()
8172 iconv_t cd = iconv_open("","");
8173 iconv(cd,NULL,NULL,NULL,NULL);
8174 iconv_close(cd);
8176 return 0;
8178 _ACEOF
8179 rm -f conftest.$ac_objext conftest$ac_exeext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8181 (eval $ac_link) 2>conftest.er1
8182 ac_status=$?
8183 grep -v '^ *+' conftest.er1 >conftest.err
8184 rm -f conftest.er1
8185 cat conftest.err >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; } &&
8194 { ac_try='test -s conftest$ac_exeext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 (eval $ac_try) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 am_cv_lib_iconv=yes
8201 am_cv_func_iconv=yes
8202 else
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8207 rm -f conftest.err conftest.$ac_objext \
8208 conftest$ac_exeext conftest.$ac_ext
8209 LIBS="$am_save_LIBS"
8213 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8214 echo "${ECHO_T}$am_cv_func_iconv" >&6
8215 if test "$am_cv_func_iconv" = yes; then
8217 cat >>confdefs.h <<\_ACEOF
8218 #define HAVE_ICONV 1
8219 _ACEOF
8221 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8222 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8223 if test "${am_cv_proto_iconv+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 else
8227 cat >conftest.$ac_ext <<_ACEOF
8228 /* confdefs.h. */
8229 _ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8234 #include <stdlib.h>
8235 #include <iconv.h>
8236 extern
8237 #ifdef __cplusplus
8239 #endif
8240 #if defined(__STDC__) || defined(__cplusplus)
8241 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8242 #else
8243 size_t iconv();
8244 #endif
8247 main ()
8251 return 0;
8253 _ACEOF
8254 rm -f conftest.$ac_objext
8255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8256 (eval $ac_compile) 2>conftest.er1
8257 ac_status=$?
8258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } &&
8263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 (eval $ac_try) 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; } &&
8269 { ac_try='test -s conftest.$ac_objext'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 (eval $ac_try) 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8275 am_cv_proto_iconv_arg1=""
8276 else
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8280 am_cv_proto_iconv_arg1="const"
8282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8283 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);"
8286 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8287 echo "$as_me:$LINENO: result: ${ac_t:-
8288 }$am_cv_proto_iconv" >&5
8289 echo "${ECHO_T}${ac_t:-
8290 }$am_cv_proto_iconv" >&6
8292 cat >>confdefs.h <<_ACEOF
8293 #define ICONV_CONST $am_cv_proto_iconv_arg1
8294 _ACEOF
8297 LIBICONV=
8298 if test "$am_cv_lib_iconv" = yes; then
8299 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8303 # Until we have in-tree GNU iconv:
8304 LIBICONV_DEP=
8308 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8309 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8310 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 #include <locale.h>
8321 main ()
8323 return LC_MESSAGES
8325 return 0;
8327 _ACEOF
8328 rm -f conftest.$ac_objext conftest$ac_exeext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8330 (eval $ac_link) 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 (eval $ac_try) 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; } &&
8343 { ac_try='test -s conftest$ac_exeext'
8344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 (eval $ac_try) 2>&5
8346 ac_status=$?
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; }; then
8349 am_cv_val_LC_MESSAGES=yes
8350 else
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8354 am_cv_val_LC_MESSAGES=no
8356 rm -f conftest.err conftest.$ac_objext \
8357 conftest$ac_exeext conftest.$ac_ext
8359 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8360 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8361 if test $am_cv_val_LC_MESSAGES = yes; then
8363 cat >>confdefs.h <<\_ACEOF
8364 #define HAVE_LC_MESSAGES 1
8365 _ACEOF
8370 # We will need to find libiberty.h and ansidecl.h
8371 saved_CFLAGS="$CFLAGS"
8372 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8397 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8398 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8399 fprintf_unlocked strstr errno snprintf vasprintf \
8400 malloc realloc calloc free basename getopt clock getpagesize
8402 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8403 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8404 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8405 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408 cat >conftest.$ac_ext <<_ACEOF
8409 /* confdefs.h. */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8414 #undef $ac_tr_decl
8415 #define $ac_tr_decl 1
8417 #include "ansidecl.h"
8418 #include "system.h"
8421 main ()
8423 #ifndef $ac_func
8424 char *(*pfn) = (char *(*)) $ac_func ;
8425 #endif
8427 return 0;
8429 _ACEOF
8430 rm -f conftest.$ac_objext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8432 (eval $ac_compile) 2>conftest.er1
8433 ac_status=$?
8434 grep -v '^ *+' conftest.er1 >conftest.err
8435 rm -f conftest.er1
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try='test -s conftest.$ac_objext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 eval "gcc_cv_have_decl_$ac_func=yes"
8452 else
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8456 eval "gcc_cv_have_decl_$ac_func=no"
8458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8461 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8462 echo "$as_me:$LINENO: result: yes" >&5
8463 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8464 #define $ac_tr_decl 1
8465 _ACEOF
8467 else
8468 echo "$as_me:$LINENO: result: no" >&5
8469 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8470 #define $ac_tr_decl 0
8471 _ACEOF
8475 done
8481 for ac_func in getrlimit setrlimit getrusage
8483 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8484 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8485 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8486 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h. */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 #undef $ac_tr_decl
8496 #define $ac_tr_decl 1
8498 #include "ansidecl.h"
8499 #include "system.h"
8500 #ifdef HAVE_SYS_RESOURCE_H
8501 #include <sys/resource.h>
8502 #endif
8506 main ()
8508 #ifndef $ac_func
8509 char *(*pfn) = (char *(*)) $ac_func ;
8510 #endif
8512 return 0;
8514 _ACEOF
8515 rm -f conftest.$ac_objext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8517 (eval $ac_compile) 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try='test -s conftest.$ac_objext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 eval "gcc_cv_have_decl_$ac_func=yes"
8537 else
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8541 eval "gcc_cv_have_decl_$ac_func=no"
8543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8546 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8547 echo "$as_me:$LINENO: result: yes" >&5
8548 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8549 #define $ac_tr_decl 1
8550 _ACEOF
8552 else
8553 echo "$as_me:$LINENO: result: no" >&5
8554 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8555 #define $ac_tr_decl 0
8556 _ACEOF
8560 done
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8570 #include "ansidecl.h"
8571 #include "system.h"
8572 #ifdef HAVE_SYS_RESOURCE_H
8573 #include <sys/resource.h>
8574 #endif
8577 main ()
8579 rlim_t l = 0;
8581 return 0;
8583 _ACEOF
8584 rm -f conftest.$ac_objext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8586 (eval $ac_compile) 2>conftest.er1
8587 ac_status=$?
8588 grep -v '^ *+' conftest.er1 >conftest.err
8589 rm -f conftest.er1
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 (eval $ac_try) 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; } &&
8599 { ac_try='test -s conftest.$ac_objext'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 (eval $ac_try) 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8606 else
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8611 cat >>confdefs.h <<\_ACEOF
8612 #define rlim_t long
8613 _ACEOF
8616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8619 for ac_func in ldgetname
8621 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8622 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8623 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8624 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 else
8627 cat >conftest.$ac_ext <<_ACEOF
8628 /* confdefs.h. */
8629 _ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633 #undef $ac_tr_decl
8634 #define $ac_tr_decl 1
8636 #include "ansidecl.h"
8637 #include "system.h"
8638 #ifdef HAVE_LDFCN_H
8639 #include <ldfcn.h>
8640 #endif
8644 main ()
8646 #ifndef $ac_func
8647 char *(*pfn) = (char *(*)) $ac_func ;
8648 #endif
8650 return 0;
8652 _ACEOF
8653 rm -f conftest.$ac_objext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8655 (eval $ac_compile) 2>conftest.er1
8656 ac_status=$?
8657 grep -v '^ *+' conftest.er1 >conftest.err
8658 rm -f conftest.er1
8659 cat conftest.err >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } &&
8662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } &&
8668 { ac_try='test -s conftest.$ac_objext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 (eval $ac_try) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 eval "gcc_cv_have_decl_$ac_func=yes"
8675 else
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8679 eval "gcc_cv_have_decl_$ac_func=no"
8681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8684 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8685 echo "$as_me:$LINENO: result: yes" >&5
8686 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8687 #define $ac_tr_decl 1
8688 _ACEOF
8690 else
8691 echo "$as_me:$LINENO: result: no" >&5
8692 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8693 #define $ac_tr_decl 0
8694 _ACEOF
8698 done
8702 for ac_func in times
8704 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8705 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8706 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8707 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 else
8710 cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h. */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 #undef $ac_tr_decl
8717 #define $ac_tr_decl 1
8719 #include "ansidecl.h"
8720 #include "system.h"
8721 #ifdef HAVE_SYS_TIMES_H
8722 #include <sys/times.h>
8723 #endif
8727 main ()
8729 #ifndef $ac_func
8730 char *(*pfn) = (char *(*)) $ac_func ;
8731 #endif
8733 return 0;
8735 _ACEOF
8736 rm -f conftest.$ac_objext
8737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8738 (eval $ac_compile) 2>conftest.er1
8739 ac_status=$?
8740 grep -v '^ *+' conftest.er1 >conftest.err
8741 rm -f conftest.er1
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 (eval $ac_try) 2>&5
8748 ac_status=$?
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; } &&
8751 { ac_try='test -s conftest.$ac_objext'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 (eval $ac_try) 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; }; then
8757 eval "gcc_cv_have_decl_$ac_func=yes"
8758 else
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8762 eval "gcc_cv_have_decl_$ac_func=no"
8764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8767 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8768 echo "$as_me:$LINENO: result: yes" >&5
8769 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8770 #define $ac_tr_decl 1
8771 _ACEOF
8773 else
8774 echo "$as_me:$LINENO: result: no" >&5
8775 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8776 #define $ac_tr_decl 0
8777 _ACEOF
8781 done
8784 # More time-related stuff.
8785 echo "$as_me:$LINENO: checking for struct tms" >&5
8786 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8787 if test "${ac_cv_struct_tms+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8791 cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h. */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8798 #include "ansidecl.h"
8799 #include "system.h"
8800 #ifdef HAVE_SYS_TIMES_H
8801 #include <sys/times.h>
8802 #endif
8805 main ()
8807 struct tms tms;
8809 return 0;
8811 _ACEOF
8812 rm -f conftest.$ac_objext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8814 (eval $ac_compile) 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 (eval $ac_try) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; } &&
8827 { ac_try='test -s conftest.$ac_objext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 ac_cv_struct_tms=yes
8834 else
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 ac_cv_struct_tms=no
8840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8842 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8843 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8844 if test $ac_cv_struct_tms = yes; then
8846 cat >>confdefs.h <<\_ACEOF
8847 #define HAVE_STRUCT_TMS 1
8848 _ACEOF
8852 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8853 # revisit after autoconf 2.50.
8854 echo "$as_me:$LINENO: checking for clock_t" >&5
8855 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8856 if test "${gcc_cv_type_clock_t+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8860 cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h. */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h. */
8867 #include "ansidecl.h"
8868 #include "system.h"
8871 main ()
8873 clock_t x;
8875 return 0;
8877 _ACEOF
8878 rm -f conftest.$ac_objext
8879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8880 (eval $ac_compile) 2>conftest.er1
8881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } &&
8887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 (eval $ac_try) 2>&5
8890 ac_status=$?
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; } &&
8893 { ac_try='test -s conftest.$ac_objext'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 (eval $ac_try) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; }; then
8899 gcc_cv_type_clock_t=yes
8900 else
8901 echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8904 gcc_cv_type_clock_t=no
8906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8908 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8909 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8910 if test $gcc_cv_type_clock_t = yes; then
8912 cat >>confdefs.h <<\_ACEOF
8913 #define HAVE_CLOCK_T 1
8914 _ACEOF
8918 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8919 CFLAGS="$saved_CFLAGS"
8921 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8922 if test "${enable_initfini_array+set}" = set; then
8923 enableval="$enable_initfini_array"
8925 else
8927 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8928 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8929 if test "${gcc_cv_initfini_array+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 else
8932 if test "$cross_compiling" = yes; then
8933 gcc_cv_initfini_array=no
8934 else
8935 cat >conftest.$ac_ext <<_ACEOF
8936 /* confdefs.h. */
8937 _ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h. */
8942 static int x = -1;
8943 int main (void) { return x; }
8944 int foo (void) { x = 0; }
8945 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8946 _ACEOF
8947 rm -f conftest$ac_exeext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949 (eval $ac_link) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 gcc_cv_initfini_array=yes
8959 else
8960 echo "$as_me: program exited with status $ac_status" >&5
8961 echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8964 ( exit $ac_status )
8965 gcc_cv_initfini_array=no
8967 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8970 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8971 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8972 enable_initfini_array=$gcc_cv_initfini_array
8975 if test $enable_initfini_array = yes; then
8977 cat >>confdefs.h <<\_ACEOF
8978 #define HAVE_INITFINI_ARRAY 1
8979 _ACEOF
8983 # mkdir takes a single argument on some systems.
8984 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8985 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8986 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 else
8989 cat >conftest.$ac_ext <<_ACEOF
8990 /* confdefs.h. */
8991 _ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
8996 #include <sys/types.h>
8997 #ifdef HAVE_SYS_STAT_H
8998 # include <sys/stat.h>
8999 #endif
9000 #ifdef HAVE_UNISTD_H
9001 # include <unistd.h>
9002 #endif
9003 #ifdef HAVE_DIRECT_H
9004 # include <direct.h>
9005 #endif
9007 main ()
9009 mkdir ("foo", 0);
9011 return 0;
9013 _ACEOF
9014 rm -f conftest.$ac_objext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016 (eval $ac_compile) 2>conftest.er1
9017 ac_status=$?
9018 grep -v '^ *+' conftest.er1 >conftest.err
9019 rm -f conftest.er1
9020 cat conftest.err >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } &&
9023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 (eval $ac_try) 2>&5
9026 ac_status=$?
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); }; } &&
9029 { ac_try='test -s conftest.$ac_objext'
9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 (eval $ac_try) 2>&5
9032 ac_status=$?
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }; }; then
9035 gcc_cv_mkdir_takes_one_arg=no
9036 else
9037 echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.$ac_ext >&5
9040 gcc_cv_mkdir_takes_one_arg=yes
9042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9044 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9045 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9046 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9048 cat >>confdefs.h <<\_ACEOF
9049 #define MKDIR_TAKES_ONE_ARG 1
9050 _ACEOF
9055 # File extensions
9056 manext='.1'
9057 objext='.o'
9061 # With Setjmp/Longjmp based exception handling.
9062 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9063 if test "${enable_sjlj_exceptions+set}" = set; then
9064 enableval="$enable_sjlj_exceptions"
9065 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9067 cat >>confdefs.h <<_ACEOF
9068 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9069 _ACEOF
9073 if test x$host = x$target; then
9074 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9075 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9076 if test "${ac_cv_lib_unwind_main+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079 ac_check_lib_save_LIBS=$LIBS
9080 LIBS="-lunwind $LIBS"
9081 cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h. */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9090 main ()
9092 main ();
9094 return 0;
9096 _ACEOF
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9099 (eval $ac_link) 2>conftest.er1
9100 ac_status=$?
9101 grep -v '^ *+' conftest.er1 >conftest.err
9102 rm -f conftest.er1
9103 cat conftest.err >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } &&
9106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 (eval $ac_try) 2>&5
9109 ac_status=$?
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; } &&
9112 { ac_try='test -s conftest$ac_exeext'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 (eval $ac_try) 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; }; then
9118 ac_cv_lib_unwind_main=yes
9119 else
9120 echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9123 ac_cv_lib_unwind_main=no
9125 rm -f conftest.err conftest.$ac_objext \
9126 conftest$ac_exeext conftest.$ac_ext
9127 LIBS=$ac_check_lib_save_LIBS
9129 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9130 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9131 if test $ac_cv_lib_unwind_main = yes; then
9132 use_libunwind_default=yes
9133 else
9134 use_libunwind_default=no
9137 else
9138 use_libunwind_default=no
9140 # Use libunwind based exception handling.
9141 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9142 if test "${enable_libunwind_exceptions+set}" = set; then
9143 enableval="$enable_libunwind_exceptions"
9144 use_libunwind_exceptions=$enableval
9145 else
9146 use_libunwind_exceptions=$use_libunwind_default
9148 if test x"$use_libunwind_exceptions" = xyes; then
9150 cat >>confdefs.h <<\_ACEOF
9151 #define USE_LIBUNWIND_EXCEPTIONS 1
9152 _ACEOF
9156 # --------------------------------------------------------
9157 # Build, host, and target specific configuration fragments
9158 # --------------------------------------------------------
9160 # Collect build-machine-specific information.
9161 . ${srcdir}/config.build
9163 # Collect host-machine-specific information.
9164 . ${srcdir}/config.host
9166 target_gtfiles=
9168 # Collect target-machine-specific information.
9169 . ${srcdir}/config.gcc
9171 extra_objs="${host_extra_objs} ${extra_objs}"
9172 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9174 # Default the target-machine variables that were not explicitly set.
9175 if test x"$tm_file" = x
9176 then tm_file=$cpu_type/$cpu_type.h; fi
9178 if test x"$extra_headers" = x
9179 then extra_headers=; fi
9181 if test x$md_file = x
9182 then md_file=$cpu_type/$cpu_type.md; fi
9184 if test x$out_file = x
9185 then out_file=$cpu_type/$cpu_type.c; fi
9187 if test x"$tmake_file" = x
9188 then tmake_file=$cpu_type/t-$cpu_type
9191 if test x"$dwarf2" = xyes
9192 then tm_file="$tm_file tm-dwarf2.h"
9195 # Say what files are being used for the output code and MD file.
9196 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9197 echo "Using \`$srcdir/config/$md_file' as machine description file."
9199 # If any of the xm_file variables contain nonexistent files, warn
9200 # about them and drop them.
9203 for x in $build_xm_file; do
9204 if test -f $srcdir/config/$x
9205 then bx="$bx $x"
9206 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9207 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9209 done
9210 build_xm_file="$bx"
9213 for x in $host_xm_file; do
9214 if test -f $srcdir/config/$x
9215 then hx="$hx $x"
9216 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9217 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9219 done
9220 host_xm_file="$hx"
9223 for x in $xm_file; do
9224 if test -f $srcdir/config/$x
9225 then tx="$tx $x"
9226 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9227 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9229 done
9230 xm_file="$tx"
9232 count=a
9233 for f in $tm_file; do
9234 count=${count}x
9235 done
9236 if test $count = ax; then
9237 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9238 else
9239 echo "Using the following target machine macro files:"
9240 for f in $tm_file; do
9241 echo " $srcdir/config/$f"
9242 done
9245 if test x$need_64bit_hwint = xyes; then
9247 cat >>confdefs.h <<\_ACEOF
9248 #define NEED_64BIT_HOST_WIDE_INT 1
9249 _ACEOF
9253 count=a
9254 for f in $host_xm_file; do
9255 count=${count}x
9256 done
9257 if test $count = a; then
9259 elif test $count = ax; then
9260 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9261 else
9262 echo "Using the following host machine macro files:"
9263 for f in $host_xm_file; do
9264 echo " $srcdir/config/$f"
9265 done
9267 echo "Using ${out_host_hook_obj} for host machine hooks."
9269 if test "$host_xm_file" != "$build_xm_file"; then
9270 count=a
9271 for f in $build_xm_file; do
9272 count=${count}x
9273 done
9274 if test $count = a; then
9276 elif test $count = ax; then
9277 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9278 else
9279 echo "Using the following build machine macro files:"
9280 for f in $build_xm_file; do
9281 echo " $srcdir/config/$f"
9282 done
9286 # ---------
9287 # Threading
9288 # ---------
9290 # Check if a valid thread package
9291 case ${enable_threads} in
9292 "" | no)
9293 # No threads
9294 target_thread_file='single'
9296 yes)
9297 # default
9298 target_thread_file='single'
9300 aix | dce | gnat | irix | posix | rtems | \
9301 single | solaris | vxworks | win32 )
9302 target_thread_file=${enable_threads}
9305 echo "${enable_threads} is an unknown thread package" 1>&2
9306 exit 1
9308 esac
9310 if test x${thread_file} = x; then
9311 # No thread file set by target-specific clauses in config.gcc,
9312 # so use file chosen by default logic above
9313 thread_file=${target_thread_file}
9316 # Make gthr-default.h if we have a thread file.
9317 gthread_flags=
9318 if test $thread_file != single; then
9319 rm -f gthr-default.h
9320 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9321 gthread_flags=-DHAVE_GTHR_DEFAULT
9325 # --------
9326 # UNSORTED
9327 # --------
9329 if test x$enable___cxa_atexit = xyes || \
9330 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9331 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9332 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9333 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 else
9336 cat >conftest.$ac_ext <<_ACEOF
9337 /* confdefs.h. */
9338 _ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9344 #define __cxa_atexit innocuous___cxa_atexit
9346 /* System header to define __stub macros and hopefully few prototypes,
9347 which can conflict with char __cxa_atexit (); below.
9348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9349 <limits.h> exists even on freestanding compilers. */
9351 #ifdef __STDC__
9352 # include <limits.h>
9353 #else
9354 # include <assert.h>
9355 #endif
9357 #undef __cxa_atexit
9359 /* Override any gcc2 internal prototype to avoid an error. */
9360 #ifdef __cplusplus
9361 extern "C"
9363 #endif
9364 /* We use char because int might match the return type of a gcc2
9365 builtin and then its argument prototype would still apply. */
9366 char __cxa_atexit ();
9367 /* The GNU C library defines this for functions which it implements
9368 to always fail with ENOSYS. Some functions are actually named
9369 something starting with __ and the normal name is an alias. */
9370 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9371 choke me
9372 #else
9373 char (*f) () = __cxa_atexit;
9374 #endif
9375 #ifdef __cplusplus
9377 #endif
9380 main ()
9382 return f != __cxa_atexit;
9384 return 0;
9386 _ACEOF
9387 rm -f conftest.$ac_objext conftest$ac_exeext
9388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9389 (eval $ac_link) 2>conftest.er1
9390 ac_status=$?
9391 grep -v '^ *+' conftest.er1 >conftest.err
9392 rm -f conftest.er1
9393 cat conftest.err >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } &&
9396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 (eval $ac_try) 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; } &&
9402 { ac_try='test -s conftest$ac_exeext'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 (eval $ac_try) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; }; then
9408 ac_cv_func___cxa_atexit=yes
9409 else
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ac_cv_func___cxa_atexit=no
9415 rm -f conftest.err conftest.$ac_objext \
9416 conftest$ac_exeext conftest.$ac_ext
9418 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9419 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9420 if test $ac_cv_func___cxa_atexit = yes; then
9422 cat >>confdefs.h <<\_ACEOF
9423 #define DEFAULT_USE_CXA_ATEXIT 1
9424 _ACEOF
9426 else
9427 echo "__cxa_atexit can't be enabled on this target"
9432 # Look for a file containing extra machine modes.
9433 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9434 extra_modes_file='$(srcdir)'/config/${extra_modes}
9437 cat >>confdefs.h <<_ACEOF
9438 #define EXTRA_MODES_FILE "config/$extra_modes"
9439 _ACEOF
9443 # auto-host.h is the file containing items generated by autoconf and is
9444 # the first file included by config.h.
9445 # If host=build, it is correct to have bconfig include auto-host.h
9446 # as well. If host!=build, we are in error and need to do more
9447 # work to find out the build config parameters.
9448 if test x$host = x$build
9449 then
9450 build_auto=auto-host.h
9451 FORBUILD=..
9452 else
9453 # We create a subdir, then run autoconf in the subdir.
9454 # To prevent recursion we set host and build for the new
9455 # invocation of configure to the build for this invocation
9456 # of configure.
9457 tempdir=build.$$
9458 rm -rf $tempdir
9459 mkdir $tempdir
9460 cd $tempdir
9461 case ${srcdir} in
9462 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9463 *) realsrcdir=../${srcdir};;
9464 esac
9465 saved_CFLAGS="${CFLAGS}"
9466 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9467 ${realsrcdir}/configure \
9468 --enable-languages=${enable_languages-all} \
9469 --target=$target_alias --host=$build_alias --build=$build_alias
9470 CFLAGS="${saved_CFLAGS}"
9472 # We just finished tests for the build machine, so rename
9473 # the file auto-build.h in the gcc directory.
9474 mv auto-host.h ../auto-build.h
9475 cd ..
9476 rm -rf $tempdir
9477 build_auto=auto-build.h
9478 FORBUILD=../${build_subdir}
9482 tm_file="${tm_file} defaults.h"
9483 tm_p_file="${tm_p_file} tm-preds.h"
9484 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9485 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9486 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9487 # put this back in temporarily.
9488 xm_file="ansidecl.h ${xm_file}"
9490 # --------
9491 # UNSORTED
9492 # --------
9494 # Get the version trigger filename from the toplevel
9495 if test "${with_gcc_version_trigger+set}" = set; then
9496 gcc_version_trigger=$with_gcc_version_trigger
9497 else
9498 gcc_version_trigger=${srcdir}/version.c
9500 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9501 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9503 # Compile in configure arguments.
9504 if test -f configargs.h ; then
9505 # Being re-configured.
9506 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9507 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9508 else
9509 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9512 # Double all backslashes and backslash all quotes to turn
9513 # gcc_config_arguments into a C string.
9514 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9515 $gcc_config_arguments
9517 gcc_config_arguments_str=`cat conftest.out`
9518 rm -f conftest.out
9520 cat > configargs.h <<EOF
9521 /* Generated automatically. */
9522 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9523 static const char thread_model[] = "$thread_file";
9525 static const struct {
9526 const char *name, *value;
9527 } configure_default_options[] = $configure_default_options;
9530 # Internationalization
9531 PACKAGE=gcc
9532 VERSION="$gcc_version"
9534 cat >>confdefs.h <<_ACEOF
9535 #define PACKAGE "$PACKAGE"
9536 _ACEOF
9541 # If we haven't got the data from the intl directory,
9542 # assume NLS is disabled.
9543 USE_NLS=no
9544 LIBINTL=
9545 LIBINTL_DEP=
9546 INCINTL=
9547 XGETTEXT=
9548 GMSGFMT=
9549 POSUB=
9550 if test -f ../intl/config.intl; then
9551 . ../intl/config.intl
9553 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9554 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9555 if test x"$USE_NLS" != xyes; then
9556 echo "$as_me:$LINENO: result: no" >&5
9557 echo "${ECHO_T}no" >&6
9558 else
9559 echo "$as_me:$LINENO: result: yes" >&5
9560 echo "${ECHO_T}yes" >&6
9562 cat >>confdefs.h <<\_ACEOF
9563 #define ENABLE_NLS 1
9564 _ACEOF
9567 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9568 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9569 # Look for .po and .gmo files in the source directory.
9570 CATALOGS=
9571 XLINGUAS=
9572 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9573 # If there aren't any .gmo files the shell will give us the
9574 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9575 # weeded out.
9576 case "$cat" in *\**)
9577 continue;;
9578 esac
9579 # The quadruple backslash is collapsed to a double backslash
9580 # by the backticks, then collapsed again by the double quotes,
9581 # leaving us with one backslash in the sed expression (right
9582 # before the dot that mustn't act as a wildcard).
9583 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9584 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9585 # The user is allowed to set LINGUAS to a list of languages to
9586 # install catalogs for. If it's empty that means "all of them."
9587 if test "x$LINGUAS" = x; then
9588 CATALOGS="$CATALOGS $cat"
9589 XLINGUAS="$XLINGUAS $lang"
9590 else
9591 case "$LINGUAS" in *$lang*)
9592 CATALOGS="$CATALOGS $cat"
9593 XLINGUAS="$XLINGUAS $lang"
9595 esac
9597 done
9598 LINGUAS="$XLINGUAS"
9599 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9600 echo "${ECHO_T}$LINGUAS" >&6
9603 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9604 # -liconv on the link line twice.
9605 case "$LIBINTL" in *$LIBICONV*)
9606 LIBICONV= ;;
9607 esac
9609 # Windows32 Registry support for specifying GCC installation paths.
9610 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9611 if test "${enable_win32_registry+set}" = set; then
9612 enableval="$enable_win32_registry"
9615 case $host_os in
9616 win32 | pe | cygwin* | mingw32* | uwin*)
9617 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9618 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9619 if test "x$enable_win32_registry" != xno; then
9621 cat >>confdefs.h <<\_ACEOF
9622 #define ENABLE_WIN32_REGISTRY 1
9623 _ACEOF
9625 echo "$as_me:$LINENO: result: yes" >&5
9626 echo "${ECHO_T}yes" >&6
9627 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9628 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9629 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 else
9632 ac_func_search_save_LIBS=$LIBS
9633 ac_cv_search_RegOpenKeyExA=no
9634 cat >conftest.$ac_ext <<_ACEOF
9635 /* confdefs.h. */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9641 /* Override any gcc2 internal prototype to avoid an error. */
9642 #ifdef __cplusplus
9643 extern "C"
9644 #endif
9645 /* We use char because int might match the return type of a gcc2
9646 builtin and then its argument prototype would still apply. */
9647 char RegOpenKeyExA ();
9649 main ()
9651 RegOpenKeyExA ();
9653 return 0;
9655 _ACEOF
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658 (eval $ac_link) 2>conftest.er1
9659 ac_status=$?
9660 grep -v '^ *+' conftest.er1 >conftest.err
9661 rm -f conftest.er1
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } &&
9665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 (eval $ac_try) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest$ac_exeext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_search_RegOpenKeyExA="none required"
9678 else
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9683 rm -f conftest.err conftest.$ac_objext \
9684 conftest$ac_exeext conftest.$ac_ext
9685 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9686 for ac_lib in advapi32; do
9687 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h. */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9695 /* Override any gcc2 internal prototype to avoid an error. */
9696 #ifdef __cplusplus
9697 extern "C"
9698 #endif
9699 /* We use char because int might match the return type of a gcc2
9700 builtin and then its argument prototype would still apply. */
9701 char RegOpenKeyExA ();
9703 main ()
9705 RegOpenKeyExA ();
9707 return 0;
9709 _ACEOF
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9712 (eval $ac_link) 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 (eval $ac_try) 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest$ac_exeext'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 (eval $ac_try) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; }; then
9731 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9732 break
9733 else
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9738 rm -f conftest.err conftest.$ac_objext \
9739 conftest$ac_exeext conftest.$ac_ext
9740 done
9742 LIBS=$ac_func_search_save_LIBS
9744 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9745 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9746 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9747 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9751 else
9752 echo "$as_me:$LINENO: result: no" >&5
9753 echo "${ECHO_T}no" >&6
9756 # Check if user specified a different registry key.
9757 case "x${enable_win32_registry}" in
9758 x | xyes)
9759 # default.
9760 gcc_cv_win32_registry_key="$VERSION"
9762 xno)
9763 # no registry lookup.
9764 gcc_cv_win32_registry_key=''
9767 # user-specified key.
9768 gcc_cv_win32_registry_key="$enable_win32_registry"
9770 esac
9772 if test "x$enable_win32_registry" != xno; then
9773 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9774 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9776 cat >>confdefs.h <<_ACEOF
9777 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9778 _ACEOF
9780 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9781 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9784 esac
9786 # Get an absolute path to the GCC top-level source directory
9787 holddir=`${PWDCMD-pwd}`
9788 cd $srcdir
9789 topdir=`${PWDCMD-pwd}`
9790 cd $holddir
9792 # Conditionalize the makefile for this host machine.
9793 xmake_file=
9794 for f in ${host_xmake_file}
9796 if test -f ${srcdir}/config/$f
9797 then
9798 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9800 done
9802 # Conditionalize the makefile for this target machine.
9803 tmake_file_=
9804 for f in ${tmake_file}
9806 if test -f ${srcdir}/config/$f
9807 then
9808 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9810 done
9811 tmake_file="${tmake_file_}"
9813 symbolic_link='ln -s'
9815 # If the host doesn't support symlinks, modify CC in
9816 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9817 # Otherwise, we can use "CC=$(CC)".
9818 rm -f symtest.tem
9819 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9820 then
9821 cc_set_by_configure="\$(CC)"
9822 quoted_cc_set_by_configure="\$(CC)"
9823 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9824 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9825 else
9826 rm -f symtest.tem
9827 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9828 then
9829 symbolic_link="cp -p"
9830 else
9831 symbolic_link="cp"
9833 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9834 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9835 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9836 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9838 rm -f symtest.tem
9840 out_object_file=`basename $out_file .c`.o
9842 tm_file_list=
9843 tm_include_list=
9844 for f in $tm_file; do
9845 case $f in
9846 defaults.h )
9847 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9848 tm_include_list="${tm_include_list} $f"
9851 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9852 tm_include_list="${tm_include_list} config/$f"
9854 esac
9855 done
9857 tm_p_file_list=
9858 tm_p_include_list=
9859 for f in $tm_p_file; do
9860 case $f in
9861 tm-preds.h )
9862 tm_p_file_list="${tm_p_file_list} $f"
9863 tm_p_include_list="${tm_p_include_list} $f"
9866 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9867 tm_p_include_list="${tm_p_include_list} config/$f"
9868 esac
9869 done
9871 xm_file_list=
9872 xm_include_list=
9873 for f in $xm_file; do
9874 case $f in
9875 ansidecl.h )
9876 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9877 xm_include_list="${xm_include_list} $f"
9879 auto-host.h )
9880 xm_file_list="${xm_file_list} $f"
9881 xm_include_list="${xm_include_list} $f"
9884 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9885 xm_include_list="${xm_include_list} config/$f"
9887 esac
9888 done
9890 host_xm_file_list=
9891 host_xm_include_list=
9892 for f in $host_xm_file; do
9893 case $f in
9894 ansidecl.h )
9895 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9896 host_xm_include_list="${host_xm_include_list} $f"
9898 auto-host.h )
9899 host_xm_file_list="${host_xm_file_list} $f"
9900 host_xm_include_list="${host_xm_include_list} $f"
9903 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9904 host_xm_include_list="${host_xm_include_list} config/$f"
9906 esac
9907 done
9909 build_xm_file_list=
9910 for f in $build_xm_file; do
9911 case $f in
9912 ansidecl.h )
9913 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9914 build_xm_include_list="${build_xm_include_list} $f"
9916 auto-build.h | auto-host.h )
9917 build_xm_file_list="${build_xm_file_list} $f"
9918 build_xm_include_list="${build_xm_include_list} $f"
9921 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9922 build_xm_include_list="${build_xm_include_list} config/$f"
9924 esac
9925 done
9927 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9928 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9929 CROSS=
9930 ALL=all.internal
9931 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9932 if test x$host != x$target
9933 then
9934 CROSS="-DCROSS_COMPILE"
9935 ALL=all.cross
9936 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9937 case "$host","$target" in
9938 # Darwin crosses can use the host system's libraries and headers,
9939 # because of the fat library support. Of course, it must be the
9940 # same version of Darwin on both sides. Allow the user to
9941 # just say --target=foo-darwin without a version number to mean
9942 # "the version on this system".
9943 *-*-darwin*,*-*-darwin*)
9944 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9945 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9946 if test $hostos = $targetos -o $targetos = darwin ; then
9947 CROSS=
9948 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9949 with_headers=yes
9953 i?86-*-*,x86_64-*-* \
9954 | powerpc*-*-*,powerpc64*-*-*)
9955 CROSS="$CROSS -DNATIVE_CROSS" ;;
9956 esac
9957 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9958 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9959 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9962 # If this is a cross-compiler that does not
9963 # have its own set of headers then define
9964 # inhibit_libc
9966 # If this is using newlib, without having the headers available now,
9967 # then define inhibit_libc in LIBGCC2_CFLAGS.
9968 # This prevents libgcc2 from containing any code which requires libc
9969 # support.
9970 inhibit_libc=
9971 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9972 test x$with_newlib = xyes ; } &&
9973 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9974 inhibit_libc=-Dinhibit_libc
9978 # When building gcc with a cross-compiler, we need to adjust things so
9979 # that the generator programs are still built with the native compiler.
9980 # Also, we cannot run fixincludes or fix-header.
9982 # These are the normal (build=host) settings:
9983 BUILD_PREFIX=
9984 BUILD_PREFIX_1=ignore-
9985 CC_FOR_BUILD='$(CC)'
9986 BUILD_CFLAGS='$(ALL_CFLAGS)'
9988 STMP_FIXINC=stmp-fixinc
9990 # Possibly disable fixproto, on a per-target basis.
9991 case ${use_fixproto} in
9993 STMP_FIXPROTO=
9995 yes)
9996 STMP_FIXPROTO=stmp-fixproto
9998 esac
10001 # And these apply if build != host, or we are generating coverage data
10002 if test x$build != x$host || test "x$coverage_flags" != x
10003 then
10004 BUILD_PREFIX=build-
10005 BUILD_PREFIX_1=build-
10006 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10008 if test "x$TARGET_SYSTEM_ROOT" = x; then
10009 STMP_FIXINC=
10010 STMP_FIXPROTO=
10014 # Expand extra_headers to include complete path.
10015 # This substitutes for lots of t-* files.
10016 extra_headers_list=
10017 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10018 for file in ${extra_headers} ; do
10019 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10020 done
10022 # Define collect2 in Makefile.
10023 case $host_can_use_collect2 in
10024 no) collect2= ;;
10025 *) collect2='collect2$(exeext)' ;;
10026 esac
10029 # Add a definition of USE_COLLECT2 if system wants one.
10030 case $use_collect2 in
10031 no) use_collect2= ;;
10032 "") ;;
10034 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10035 xm_defines="${xm_defines} USE_COLLECT2"
10036 case $host_can_use_collect2 in
10038 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
10039 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
10040 { (exit 1); exit 1; }; }
10042 esac
10044 esac
10046 # ---------------------------
10047 # Assembler & linker features
10048 # ---------------------------
10050 # Identify the assembler which will work hand-in-glove with the newly
10051 # built GCC, so that we can examine its features. This is the assembler
10052 # which will be driven by the driver program.
10054 # If build != host, and we aren't building gas in-tree, we identify a
10055 # build->target assembler and hope that it will have the same features
10056 # as the host->target assembler we'll be using.
10057 echo "$as_me:$LINENO: checking what assembler to use" >&5
10058 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10059 in_tree_gas=no
10060 gcc_cv_as=
10061 gcc_cv_gas_major_version=
10062 gcc_cv_gas_minor_version=
10063 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10064 if test -x "$DEFAULT_ASSEMBLER"; then
10065 gcc_cv_as="$DEFAULT_ASSEMBLER"
10066 elif test -x as$host_exeext; then
10067 # Build using assembler in the current directory.
10068 gcc_cv_as=./as$host_exeext
10069 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10070 && test -f ../gas/Makefile \
10071 && test x$build = x$host; then
10072 # Single tree build which includes gas. We want to prefer it
10073 # over whatever linker top-level may have detected, since
10074 # we'll use what we're building after installation anyway.
10075 in_tree_gas=yes
10076 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10077 for f in $gcc_cv_as_bfd_srcdir/configure \
10078 $gcc_cv_as_gas_srcdir/configure \
10079 $gcc_cv_as_gas_srcdir/configure.in \
10080 $gcc_cv_as_gas_srcdir/Makefile.in ; do
10081 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10082 if test x$gcc_cv_gas_version != x; then
10083 break
10085 done
10086 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10087 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10088 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10089 case $gcc_cv_gas_patch_version in
10090 "") gcc_cv_gas_patch_version="0" ;;
10091 esac
10092 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10093 + $gcc_cv_gas_minor_version \) \* 1000 \
10094 + $gcc_cv_gas_patch_version`
10096 rm -f as$host_exeext
10097 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10098 in_tree_gas_is_elf=no
10099 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10100 || (grep 'obj_format = multi' ../gas/Makefile \
10101 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10102 then
10103 in_tree_gas_is_elf=yes
10105 elif test -x "$AS_FOR_TARGET"; then
10106 gcc_cv_as="$AS_FOR_TARGET"
10107 elif test -x "$AS" && test x$host = x$target; then
10108 gcc_cv_as="$AS"
10111 if test "x$gcc_cv_as" = x; then
10112 # Search the same directories that the installed compiler will
10113 # search. Else we may find the wrong assembler and lose. If we
10114 # do not find a suitable assembler binary, then try the user's
10115 # path.
10117 # Also note we have to check MD_EXEC_PREFIX before checking the
10118 # user's path. Unfortunately, there is no good way to get at the
10119 # value of MD_EXEC_PREFIX here. So we do a brute force search
10120 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10121 # to be fixed as part of the make/configure rewrite too.
10123 if test "x$exec_prefix" = xNONE; then
10124 if test "x$prefix" = xNONE; then
10125 test_prefix=/usr/local
10126 else
10127 test_prefix=$prefix
10129 else
10130 test_prefix=$exec_prefix
10133 # If the loop below does not find an assembler, then use whatever
10134 # one we can find in the users's path.
10135 # user's path.
10136 if test "x$program_prefix" != xNONE; then
10137 gcc_cv_as=${program_prefix}as$host_exeext
10138 else
10139 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10142 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10143 $test_prefix/libexec/gcc/$target_noncanonical \
10144 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10145 /usr/lib/gcc/$target_noncanonical \
10146 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10147 $test_prefix/$target_noncanonical/bin"
10149 if test x$host = x$target; then
10150 test_dirs="$test_dirs \
10151 /usr/libexec \
10152 /usr/ccs/gcc \
10153 /usr/ccs/bin \
10154 /udk/usr/ccs/bin \
10155 /bsd43/usr/lib/cmplrs/cc \
10156 /usr/cross64/usr/bin \
10157 /usr/lib/cmplrs/cc \
10158 /sysv/usr/lib/cmplrs/cc \
10159 /svr4/usr/lib/cmplrs/cc \
10160 /usr/bin"
10163 for dir in $test_dirs; do
10164 if test -x $dir/as$host_exeext; then
10165 gcc_cv_as=$dir/as$host_exeext
10166 break;
10168 done
10170 case $in_tree_gas in
10171 yes)
10172 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10173 echo "${ECHO_T}\"newly built gas\"" >&6
10176 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10177 echo "${ECHO_T}$gcc_cv_as" >&6
10179 esac
10181 # Identify the linker which will work hand-in-glove with the newly
10182 # built GCC, so that we can examine its features. This is the linker
10183 # which will be driven by the driver program.
10185 # If build != host, and we aren't building gas in-tree, we identify a
10186 # build->target linker and hope that it will have the same features
10187 # as the host->target linker we'll be using.
10188 echo "$as_me:$LINENO: checking what linker to use" >&5
10189 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10190 in_tree_ld=no
10191 gcc_cv_ld=
10192 gcc_cv_gld_major_version=
10193 gcc_cv_gld_minor_version=
10194 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10195 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10196 if test -x "$DEFAULT_LINKER"; then
10197 gcc_cv_ld="$DEFAULT_LINKER"
10198 elif test -x collect-ld$host_exeext; then
10199 # Build using linker in the current directory.
10200 gcc_cv_ld=./collect-ld$host_exeext
10201 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10202 && test -f ../ld/Makefile \
10203 && test x$build = x$host; then
10204 # Single tree build which includes ld. We want to prefer it
10205 # over whatever linker top-level may have detected, since
10206 # we'll use what we're building after installation anyway.
10207 in_tree_ld=yes
10208 in_tree_ld_is_elf=no
10209 if (grep 'EMUL = .*elf' ../ld/Makefile \
10210 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10211 in_tree_ld_is_elf=yes
10213 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
10215 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10216 if test x$gcc_cv_gld_version != x; then
10217 break
10219 done
10220 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10221 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10222 rm -f collect-ld$host_exeext
10223 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10224 2>/dev/null
10225 elif test -x "$LD_FOR_TARGET"; then
10226 gcc_cv_ld="$LD_FOR_TARGET"
10227 elif test -x "$LD" && test x$host = x$target; then
10228 gcc_cv_ld="$LD"
10231 if test "x$gcc_cv_ld" = x; then
10232 # Search the same directories that the installed compiler will
10233 # search. Else we may find the wrong linker and lose. If we
10234 # do not find a suitable linker binary, then try the user's
10235 # path.
10237 # Also note we have to check MD_EXEC_PREFIX before checking the
10238 # user's path. Unfortunately, there is no good way to get at the
10239 # value of MD_EXEC_PREFIX here. So we do a brute force search
10240 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10241 # to be fixed as part of the make/configure rewrite too.
10243 if test "x$exec_prefix" = xNONE; then
10244 if test "x$prefix" = xNONE; then
10245 test_prefix=/usr/local
10246 else
10247 test_prefix=$prefix
10249 else
10250 test_prefix=$exec_prefix
10253 # If the loop below does not find an linker, then use whatever
10254 # one we can find in the users's path.
10255 # user's path.
10256 if test "x$program_prefix" != xNONE; then
10257 gcc_cv_ld=${program_prefix}ld$host_exeext
10258 else
10259 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10262 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10263 $test_prefix/libexec/gcc/$target_noncanonical \
10264 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10265 /usr/lib/gcc/$target_noncanonical \
10266 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10267 $test_prefix/$target_noncanonical/bin"
10269 if test x$host = x$target; then
10270 test_dirs="$test_dirs \
10271 /usr/libexec \
10272 /usr/ccs/gcc \
10273 /usr/ccs/bin \
10274 /udk/usr/ccs/bin \
10275 /bsd43/usr/lib/cmplrs/cc \
10276 /usr/cross64/usr/bin \
10277 /usr/lib/cmplrs/cc \
10278 /sysv/usr/lib/cmplrs/cc \
10279 /svr4/usr/lib/cmplrs/cc \
10280 /usr/bin"
10283 for dir in $test_dirs; do
10284 if test -x $dir/ld$host_exeext; then
10285 gcc_cv_ld=$dir/ld$host_exeext
10286 break;
10288 done
10290 case $in_tree_ld in
10291 yes)
10292 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10293 echo "${ECHO_T}\"newly built ld\"" >&6
10296 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10297 echo "${ECHO_T}$gcc_cv_ld" >&6
10299 esac
10301 # Figure out what nm we will be using.
10302 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10303 echo "$as_me:$LINENO: checking what nm to use" >&5
10304 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10305 in_tree_nm=no
10306 if test -x nm$host_exeext; then
10307 gcc_cv_nm=./nm$host_exeext
10308 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10309 && test -f ../binutils/Makefile; then
10310 # Single tree build which includes binutils.
10311 in_tree_nm=yes
10312 gcc_cv_nm=./nm$host_exeext
10313 rm -f nm$host_exeext
10314 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10315 elif test "x$program_prefix" != xNONE; then
10316 gcc_cv_nm=${program_prefix}nm$host_exeext
10317 else
10318 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10320 case $in_tree_nm in
10321 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10322 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10323 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10324 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10325 esac
10327 # Figure out what objdump we will be using.
10328 echo "$as_me:$LINENO: checking what objdump to use" >&5
10329 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10330 in_tree_objdump=no
10331 if test -x objdump$host_exeext; then
10332 gcc_cv_objdump=./objdump$host_exeext
10333 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10334 && test -f ../binutils/Makefile; then
10335 # Single tree build which includes binutils.
10336 in_tree_objdump=yes
10337 gcc_cv_objdump=./objdump$host_exeext
10338 rm -f objdump$host_exeext
10339 $symbolic_link ../binutils/objdump$host_exeext \
10340 objdump$host_exeext 2>/dev/null
10341 elif test "x$program_prefix" != xNONE; then
10342 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10343 else
10344 gcc_cv_objdump=`echo objdump | \
10345 sed "${program_transform_name}"`$host_exeext
10347 case $in_tree_objdump in
10348 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10349 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10350 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10351 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10352 esac
10354 # Figure out what assembler alignment features are present.
10355 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10356 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10357 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360 gcc_cv_as_balign_and_p2align=no
10361 if test $in_tree_gas = yes; then
10362 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10363 then gcc_cv_as_balign_and_p2align=yes
10365 elif test x$gcc_cv_as != x; then
10366 echo '.balign 4
10367 .p2align 2' > conftest.s
10368 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }
10374 then
10375 gcc_cv_as_balign_and_p2align=yes
10376 else
10377 echo "configure: failed program was" >&5
10378 cat conftest.s >&5
10380 rm -f conftest.o conftest.s
10383 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10384 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10385 if test $gcc_cv_as_balign_and_p2align = yes; then
10387 cat >>confdefs.h <<\_ACEOF
10388 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10389 _ACEOF
10393 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10394 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10395 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 else
10398 gcc_cv_as_max_skip_p2align=no
10399 if test $in_tree_gas = yes; then
10400 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10401 then gcc_cv_as_max_skip_p2align=yes
10403 elif test x$gcc_cv_as != x; then
10404 echo '.p2align 4,,7' > conftest.s
10405 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; }
10411 then
10412 gcc_cv_as_max_skip_p2align=yes
10413 else
10414 echo "configure: failed program was" >&5
10415 cat conftest.s >&5
10417 rm -f conftest.o conftest.s
10420 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10421 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10422 if test $gcc_cv_as_max_skip_p2align = yes; then
10424 cat >>confdefs.h <<\_ACEOF
10425 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10426 _ACEOF
10430 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10431 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10432 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435 gcc_cv_as_subsection_m1=no
10436 if test $in_tree_gas = yes; then
10437 if test $in_tree_gas_is_elf = yes \
10438 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10439 then gcc_cv_as_subsection_m1=yes
10441 elif test x$gcc_cv_as != x; then
10442 echo 'conftest_label1: .word 0
10443 .subsection -1
10444 conftest_label2: .word 0
10445 .previous' > conftest.s
10446 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }
10452 then
10453 if test x$gcc_cv_nm != x; then
10454 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10455 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10456 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10457 then :
10458 else gcc_cv_as_subsection_m1=yes
10460 rm -f conftest.nm1 conftest.nm2
10462 else
10463 echo "configure: failed program was" >&5
10464 cat conftest.s >&5
10466 rm -f conftest.o conftest.s
10469 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10470 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10471 if test $gcc_cv_as_subsection_m1 = yes; then
10473 cat >>confdefs.h <<\_ACEOF
10474 #define HAVE_GAS_SUBSECTION_ORDERING 1
10475 _ACEOF
10479 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10480 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10481 if test "${gcc_cv_as_weak+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 else
10484 gcc_cv_as_weak=no
10485 if test $in_tree_gas = yes; then
10486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10487 then gcc_cv_as_weak=yes
10489 elif test x$gcc_cv_as != x; then
10490 echo ' .weak foobar' > conftest.s
10491 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; }
10497 then
10498 gcc_cv_as_weak=yes
10499 else
10500 echo "configure: failed program was" >&5
10501 cat conftest.s >&5
10503 rm -f conftest.o conftest.s
10506 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10507 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10508 if test $gcc_cv_as_weak = yes; then
10510 cat >>confdefs.h <<\_ACEOF
10511 #define HAVE_GAS_WEAK 1
10512 _ACEOF
10516 # .hidden needs to be supported in both the assembler and the linker,
10517 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10518 # This is irritatingly difficult to feature test for; we have to check the
10519 # date string after the version number. If we've got an in-tree
10520 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10521 # to be safe.
10522 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10523 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10524 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10525 if test "${gcc_cv_as_hidden+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528 gcc_cv_as_hidden=no
10529 if test $in_tree_gas = yes; then
10530 if test $in_tree_gas_is_elf = yes \
10531 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10532 then gcc_cv_as_hidden=yes
10534 elif test x$gcc_cv_as != x; then
10535 echo ' .hidden foobar
10536 foobar:' > conftest.s
10537 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }
10543 then
10544 gcc_cv_as_hidden=yes
10545 else
10546 echo "configure: failed program was" >&5
10547 cat conftest.s >&5
10549 rm -f conftest.o conftest.s
10552 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10553 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10556 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10557 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10558 if test "${gcc_cv_ld_hidden+set}" = set; then
10559 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 else
10561 if test $in_tree_ld = yes ; then
10562 gcc_cv_ld_hidden=no
10563 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 \
10564 && test $in_tree_ld_is_elf = yes; then
10565 gcc_cv_ld_hidden=yes
10567 else
10568 gcc_cv_ld_hidden=yes
10569 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10570 if echo "$ld_ver" | grep GNU > /dev/null; then
10571 ld_vers=`echo $ld_ver | sed -n \
10572 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10573 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10574 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10575 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10576 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10577 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10578 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'`
10579 if test 0"$ld_date" -lt 20020404; then
10580 if test -n "$ld_date"; then
10581 # If there was date string, but was earlier than 2002-04-04, fail
10582 gcc_cv_ld_hidden=no
10583 elif test -z "$ld_vers"; then
10584 # If there was no date string nor ld version number, something is wrong
10585 gcc_cv_ld_hidden=no
10586 else
10587 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10588 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10589 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10590 test -z "$ld_vers_patch" && ld_vers_patch=0
10591 if test "$ld_vers_major" -lt 2; then
10592 gcc_cv_ld_hidden=no
10593 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10594 gcc_cv_ld_hidden="no"
10595 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10596 gcc_cv_ld_hidden=no
10600 else
10601 case "${target}" in
10602 hppa64*-*-hpux* | ia64*-*-hpux*)
10603 gcc_cv_ld_hidden=yes
10606 gcc_cv_ld_hidden=no
10608 esac
10612 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10613 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10614 libgcc_visibility=no
10616 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10617 libgcc_visibility=yes
10619 cat >>confdefs.h <<\_ACEOF
10620 #define HAVE_GAS_HIDDEN 1
10621 _ACEOF
10625 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10626 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10627 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10628 if test "${gcc_cv_as_leb128+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 else
10631 gcc_cv_as_leb128=no
10632 if test $in_tree_gas = yes; then
10633 if test $in_tree_gas_is_elf = yes \
10634 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10635 then gcc_cv_as_leb128=yes
10637 elif test x$gcc_cv_as != x; then
10638 echo ' .data
10639 .uleb128 L2 - L1
10641 .uleb128 1280
10642 .sleb128 -1010
10643 L2:' > conftest.s
10644 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }
10650 then
10651 # GAS versions before 2.11 do not support uleb128,
10652 # despite appearing to.
10653 # ??? There exists an elf-specific test that will crash
10654 # the assembler. Perhaps it's better to figure out whether
10655 # arbitrary sections are supported and try the test.
10656 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10657 if echo "$as_ver" | grep GNU > /dev/null; then
10658 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10659 as_major=`echo $as_ver | sed 's/\..*//'`
10660 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10661 if test $as_major -eq 2 && test $as_minor -lt 11
10662 then :
10663 else gcc_cv_as_leb128=yes
10666 else
10667 echo "configure: failed program was" >&5
10668 cat conftest.s >&5
10670 rm -f conftest.o conftest.s
10673 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10674 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10675 if test $gcc_cv_as_leb128 = yes; then
10677 cat >>confdefs.h <<\_ACEOF
10678 #define HAVE_AS_LEB128 1
10679 _ACEOF
10683 # GAS versions up to and including 2.11.0 may mis-optimize
10684 # .eh_frame data.
10685 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10686 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10687 if test "${gcc_cv_as_eh_frame+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10690 gcc_cv_as_eh_frame=no
10691 if test $in_tree_gas = yes; then
10692 if test $in_tree_gas_is_elf = yes \
10693 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10694 then gcc_cv_as_eh_frame=yes
10696 elif test x$gcc_cv_as != x; then
10697 echo ' .text
10698 .LFB1:
10699 .4byte 0
10700 .L1:
10701 .4byte 0
10702 .LFE1:
10703 .section .eh_frame,"aw",@progbits
10704 __FRAME_BEGIN__:
10705 .4byte .LECIE1-.LSCIE1
10706 .LSCIE1:
10707 .4byte 0x0
10708 .byte 0x1
10709 .ascii "z\0"
10710 .byte 0x1
10711 .byte 0x78
10712 .byte 0x1a
10713 .byte 0x0
10714 .byte 0x4
10715 .4byte 1
10716 .p2align 1
10717 .LECIE1:
10718 .LSFDE1:
10719 .4byte .LEFDE1-.LASFDE1
10720 .LASFDE1:
10721 .4byte .LASFDE1-__FRAME_BEGIN__
10722 .4byte .LFB1
10723 .4byte .LFE1-.LFB1
10724 .byte 0x4
10725 .4byte .LFE1-.LFB1
10726 .byte 0x4
10727 .4byte .L1-.LFB1
10728 .LEFDE1:' > conftest.s
10729 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10732 ac_status=$?
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; }
10735 then
10736 cat > conftest.lit <<EOF
10737 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10738 0010 01000000 12000000 18000000 00000000 ................
10739 0020 08000000 04080000 0044 .........D
10741 cat > conftest.big <<EOF
10742 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10743 0010 00000001 00000012 00000018 00000000 ................
10744 0020 00000008 04000000 0844 .........D
10746 # If the assembler didn't choke, and we can objdump,
10747 # and we got the correct data, then succeed.
10748 if test x$gcc_cv_objdump != x \
10749 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10750 | tail -3 > conftest.got \
10751 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10752 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10753 then
10754 gcc_cv_as_eh_frame=yes
10755 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 gcc_cv_as_eh_frame=buggy
10762 else
10763 # Uh oh, what do we do now?
10764 gcc_cv_as_eh_frame=no
10766 else
10767 echo "configure: failed program was" >&5
10768 cat conftest.s >&5
10770 rm -f conftest.o conftest.s
10773 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10774 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10777 if test $gcc_cv_as_eh_frame = buggy; then
10779 cat >>confdefs.h <<\_ACEOF
10780 #define USE_AS_TRADITIONAL_FORMAT 1
10781 _ACEOF
10785 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10786 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10787 if test "${gcc_cv_as_shf_merge+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790 gcc_cv_as_shf_merge=no
10791 if test $in_tree_gas = yes; then
10792 if test $in_tree_gas_is_elf = yes \
10793 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10794 then gcc_cv_as_shf_merge=yes
10796 elif test x$gcc_cv_as != x; then
10797 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10798 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10801 ac_status=$?
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; }
10804 then
10805 gcc_cv_as_shf_merge=yes
10806 else
10807 echo "configure: failed program was" >&5
10808 cat conftest.s >&5
10810 rm -f conftest.o conftest.s
10813 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10814 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10817 cat >>confdefs.h <<_ACEOF
10818 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10819 _ACEOF
10822 # Thread-local storage - the check is heavily parametrized.
10823 conftest_s=
10824 tls_first_major=
10825 tls_first_minor=
10826 tls_as_opt=
10827 case "$target" in
10828 alpha*-*-*)
10829 conftest_s='
10830 .section ".tdata","awT",@progbits
10831 foo: .long 25
10832 .text
10833 ldq $27,__tls_get_addr($29) !literal!1
10834 lda $16,foo($29) !tlsgd!1
10835 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10836 ldq $27,__tls_get_addr($29) !literal!2
10837 lda $16,foo($29) !tlsldm!2
10838 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10839 ldq $1,foo($29) !gotdtprel
10840 ldah $2,foo($29) !dtprelhi
10841 lda $3,foo($2) !dtprello
10842 lda $4,foo($29) !dtprel
10843 ldq $1,foo($29) !gottprel
10844 ldah $2,foo($29) !tprelhi
10845 lda $3,foo($2) !tprello
10846 lda $4,foo($29) !tprel'
10847 tls_first_major=2
10848 tls_first_minor=13
10849 tls_as_opt=--fatal-warnings
10851 i[34567]86-*-*)
10852 conftest_s='
10853 .section ".tdata","awT",@progbits
10854 foo: .long 25
10855 .text
10856 movl %gs:0, %eax
10857 leal foo@TLSGD(,%ebx,1), %eax
10858 leal foo@TLSLDM(%ebx), %eax
10859 leal foo@DTPOFF(%eax), %edx
10860 movl foo@GOTTPOFF(%ebx), %eax
10861 subl foo@GOTTPOFF(%ebx), %eax
10862 addl foo@GOTNTPOFF(%ebx), %eax
10863 movl foo@INDNTPOFF, %eax
10864 movl $foo@TPOFF, %eax
10865 subl $foo@TPOFF, %eax
10866 leal foo@NTPOFF(%ecx), %eax'
10867 tls_first_major=2
10868 tls_first_minor=14
10869 tls_as_opt=--fatal-warnings
10871 x86_64-*-*)
10872 conftest_s='
10873 .section ".tdata","awT",@progbits
10874 foo: .long 25
10875 .text
10876 movq %fs:0, %rax
10877 leaq foo@TLSGD(%rip), %rdi
10878 leaq foo@TLSLD(%rip), %rdi
10879 leaq foo@DTPOFF(%rax), %rdx
10880 movq foo@GOTTPOFF(%rip), %rax
10881 movq $foo@TPOFF, %rax'
10882 tls_first_major=2
10883 tls_first_minor=14
10884 tls_as_opt=--fatal-warnings
10886 ia64-*-*)
10887 conftest_s='
10888 .section ".tdata","awT",@progbits
10889 foo: data8 25
10890 .text
10891 addl r16 = @ltoff(@dtpmod(foo#)), gp
10892 addl r17 = @ltoff(@dtprel(foo#)), gp
10893 addl r18 = @ltoff(@tprel(foo#)), gp
10894 addl r19 = @dtprel(foo#), gp
10895 adds r21 = @dtprel(foo#), r13
10896 movl r23 = @dtprel(foo#)
10897 addl r20 = @tprel(foo#), gp
10898 adds r22 = @tprel(foo#), r13
10899 movl r24 = @tprel(foo#)'
10900 tls_first_major=2
10901 tls_first_minor=13
10902 tls_as_opt=--fatal-warnings
10904 powerpc-*-*)
10905 conftest_s='
10906 .section ".tdata","awT",@progbits
10907 .align 2
10908 ld0: .space 4
10909 ld1: .space 4
10910 x1: .space 4
10911 x2: .space 4
10912 x3: .space 4
10913 .text
10914 addi 3,31,ld0@got@tlsgd
10915 bl __tls_get_addr
10916 addi 3,31,x1@got@tlsld
10917 bl __tls_get_addr
10918 addi 9,3,x1@dtprel
10919 addis 9,3,x2@dtprel@ha
10920 addi 9,9,x2@dtprel@l
10921 lwz 9,x3@got@tprel(31)
10922 add 9,9,x@tls
10923 addi 9,2,x1@tprel
10924 addis 9,2,x2@tprel@ha
10925 addi 9,9,x2@tprel@l'
10926 tls_first_major=2
10927 tls_first_minor=14
10928 tls_as_opt="-a32 --fatal-warnings"
10930 powerpc64-*-*)
10931 conftest_s='
10932 .section ".tdata","awT",@progbits
10933 .align 3
10934 ld0: .space 8
10935 ld1: .space 8
10936 x1: .space 8
10937 x2: .space 8
10938 x3: .space 8
10939 .text
10940 addi 3,2,ld0@got@tlsgd
10941 bl .__tls_get_addr
10943 addi 3,2,ld1@toc
10944 bl .__tls_get_addr
10946 addi 3,2,x1@got@tlsld
10947 bl .__tls_get_addr
10949 addi 9,3,x1@dtprel
10950 bl .__tls_get_addr
10952 addis 9,3,x2@dtprel@ha
10953 addi 9,9,x2@dtprel@l
10954 bl .__tls_get_addr
10956 ld 9,x3@got@dtprel(2)
10957 add 9,9,3
10958 bl .__tls_get_addr
10959 nop'
10960 tls_first_major=2
10961 tls_first_minor=14
10962 tls_as_opt="-a64 --fatal-warnings"
10964 s390-*-*)
10965 conftest_s='
10966 .section ".tdata","awT",@progbits
10967 foo: .long 25
10968 .text
10969 .long foo@TLSGD
10970 .long foo@TLSLDM
10971 .long foo@DTPOFF
10972 .long foo@NTPOFF
10973 .long foo@GOTNTPOFF
10974 .long foo@INDNTPOFF
10975 l %r1,foo@GOTNTPOFF(%r12)
10976 l %r1,0(%r1):tls_load:foo
10977 bas %r14,0(%r1,%r13):tls_gdcall:foo
10978 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10979 tls_first_major=2
10980 tls_first_minor=14
10981 tls_as_opt="-m31 --fatal-warnings"
10983 s390x-*-*)
10984 conftest_s='
10985 .section ".tdata","awT",@progbits
10986 foo: .long 25
10987 .text
10988 .quad foo@TLSGD
10989 .quad foo@TLSLDM
10990 .quad foo@DTPOFF
10991 .quad foo@NTPOFF
10992 .quad foo@GOTNTPOFF
10993 lg %r1,foo@GOTNTPOFF(%r12)
10994 larl %r1,foo@INDNTPOFF
10995 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10996 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10997 tls_first_major=2
10998 tls_first_minor=14
10999 tls_as_opt="-m64 -Aesame --fatal-warnings"
11001 sh-*-* | sh[34]-*-*)
11002 conftest_s='
11003 .section ".tdata","awT",@progbits
11004 foo: .long 25
11005 .text
11006 .long foo@TLSGD
11007 .long foo@TLSLDM
11008 .long foo@DTPOFF
11009 .long foo@GOTTPOFF
11010 .long foo@TPOFF'
11011 tls_first_major=2
11012 tls_first_minor=13
11013 tls_as_opt=--fatal-warnings
11015 sparc*-*-*)
11016 case "$target" in
11017 sparc*-sun-solaris2.*)
11018 on_solaris=yes
11021 on_solaris=no
11023 esac
11024 if test x$on_solaris = xyes && test x$gas_flag = xno; then
11025 conftest_s='
11026 .section ".tdata",#alloc,#write,#tls
11027 foo: .long 25
11028 .text
11029 sethi %tgd_hi22(foo), %o0
11030 add %o0, %tgd_lo10(foo), %o1
11031 add %l7, %o1, %o0, %tgd_add(foo)
11032 call __tls_get_addr, %tgd_call(foo)
11033 sethi %tldm_hi22(foo), %l1
11034 add %l1, %tldm_lo10(foo), %l2
11035 add %l7, %l2, %o0, %tldm_add(foo)
11036 call __tls_get_addr, %tldm_call(foo)
11037 sethi %tldo_hix22(foo), %l3
11038 xor %l3, %tldo_lox10(foo), %l4
11039 add %o0, %l4, %l5, %tldo_add(foo)
11040 sethi %tie_hi22(foo), %o3
11041 add %o3, %tie_lo10(foo), %o3
11042 ld [%l7 + %o3], %o2, %tie_ld(foo)
11043 add %g7, %o2, %o4, %tie_add(foo)
11044 sethi %tle_hix22(foo), %l1
11045 xor %l1, %tle_lox10(foo), %o5
11046 ld [%g7 + %o5], %o1'
11047 tls_first_major=0
11048 tls_first_minor=0
11049 else
11050 conftest_s='
11051 .section ".tdata","awT",@progbits
11052 foo: .long 25
11053 .text
11054 sethi %tgd_hi22(foo), %o0
11055 add %o0, %tgd_lo10(foo), %o1
11056 add %l7, %o1, %o0, %tgd_add(foo)
11057 call __tls_get_addr, %tgd_call(foo)
11058 sethi %tldm_hi22(foo), %l1
11059 add %l1, %tldm_lo10(foo), %l2
11060 add %l7, %l2, %o0, %tldm_add(foo)
11061 call __tls_get_addr, %tldm_call(foo)
11062 sethi %tldo_hix22(foo), %l3
11063 xor %l3, %tldo_lox10(foo), %l4
11064 add %o0, %l4, %l5, %tldo_add(foo)
11065 sethi %tie_hi22(foo), %o3
11066 add %o3, %tie_lo10(foo), %o3
11067 ld [%l7 + %o3], %o2, %tie_ld(foo)
11068 add %g7, %o2, %o4, %tie_add(foo)
11069 sethi %tle_hix22(foo), %l1
11070 xor %l1, %tle_lox10(foo), %o5
11071 ld [%g7 + %o5], %o1'
11072 tls_first_major=2
11073 tls_first_minor=14
11074 tls_as_opt="-32 --fatal-warnings"
11077 esac
11078 if test -z "$tls_first_major"; then
11079 : # If we don't have a check, assume no support.
11080 else
11081 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11082 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11083 if test "${gcc_cv_as_tls+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086 gcc_cv_as_tls=no
11087 if test $in_tree_gas = yes; then
11088 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11089 then gcc_cv_as_tls=yes
11091 elif test x$gcc_cv_as != x; then
11092 echo "$conftest_s" > conftest.s
11093 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }
11099 then
11100 gcc_cv_as_tls=yes
11101 else
11102 echo "configure: failed program was" >&5
11103 cat conftest.s >&5
11105 rm -f conftest.o conftest.s
11108 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11109 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11110 if test $gcc_cv_as_tls = yes; then
11112 cat >>confdefs.h <<\_ACEOF
11113 #define HAVE_AS_TLS 1
11114 _ACEOF
11119 # Target-specific assembler checks.
11121 if test x"$demangler_in_ld" = xyes; then
11122 echo "$as_me:$LINENO: checking linker --demangle support" >&5
11123 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
11124 gcc_cv_ld_demangle=no
11125 if test $in_tree_ld = yes; then
11126 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 \
11127 gcc_cv_ld_demangle=yes
11129 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
11130 # Check if the GNU linker supports --demangle option
11131 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
11132 gcc_cv_ld_demangle=yes
11135 if test x"$gcc_cv_ld_demangle" = xyes; then
11137 cat >>confdefs.h <<\_ACEOF
11138 #define HAVE_LD_DEMANGLE 1
11139 _ACEOF
11142 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
11143 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
11146 case "$target" in
11147 # All TARGET_ABI_OSF targets.
11148 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11149 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11150 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11151 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154 gcc_cv_as_alpha_explicit_relocs=no
11155 if test $in_tree_gas = yes; then
11156 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11157 then gcc_cv_as_alpha_explicit_relocs=yes
11159 elif test x$gcc_cv_as != x; then
11160 echo ' .set nomacro
11161 .text
11162 extbl $3, $2, $3 !lituse_bytoff!1
11163 ldq $2, a($29) !literal!1
11164 ldq $4, b($29) !literal!2
11165 ldq_u $3, 0($2) !lituse_base!1
11166 ldq $27, f($29) !literal!5
11167 jsr $26, ($27), f !lituse_jsr!5
11168 ldah $29, 0($26) !gpdisp!3
11169 lda $0, c($29) !gprel
11170 ldah $1, d($29) !gprelhigh
11171 lda $1, d($1) !gprellow
11172 lda $29, 0($29) !gpdisp!3' > conftest.s
11173 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11176 ac_status=$?
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }
11179 then
11180 gcc_cv_as_alpha_explicit_relocs=yes
11181 else
11182 echo "configure: failed program was" >&5
11183 cat conftest.s >&5
11185 rm -f conftest.o conftest.s
11188 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11189 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11190 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11192 cat >>confdefs.h <<\_ACEOF
11193 #define HAVE_AS_EXPLICIT_RELOCS 1
11194 _ACEOF
11199 cris-*-*)
11200 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11201 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11202 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 else
11205 gcc_cv_as_cris_no_mul_bug=no
11206 if test $in_tree_gas = yes; then
11207 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11208 then gcc_cv_as_cris_no_mul_bug=yes
11210 elif test x$gcc_cv_as != x; then
11211 echo '.text' > conftest.s
11212 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11215 ac_status=$?
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; }
11218 then
11219 gcc_cv_as_cris_no_mul_bug=yes
11220 else
11221 echo "configure: failed program was" >&5
11222 cat conftest.s >&5
11224 rm -f conftest.o conftest.s
11227 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11228 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11229 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11231 cat >>confdefs.h <<\_ACEOF
11232 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11233 _ACEOF
11238 sparc*-*-*)
11239 echo "$as_me:$LINENO: checking assembler for .register" >&5
11240 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11241 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244 gcc_cv_as_sparc_register_op=no
11245 if test x$gcc_cv_as != x; then
11246 echo '.register %g2, #scratch' > conftest.s
11247 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }
11253 then
11254 gcc_cv_as_sparc_register_op=yes
11255 else
11256 echo "configure: failed program was" >&5
11257 cat conftest.s >&5
11259 rm -f conftest.o conftest.s
11262 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11263 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11264 if test $gcc_cv_as_sparc_register_op = yes; then
11266 cat >>confdefs.h <<\_ACEOF
11267 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11268 _ACEOF
11272 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11273 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11274 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11277 gcc_cv_as_sparc_relax=no
11278 if test x$gcc_cv_as != x; then
11279 echo '.text' > conftest.s
11280 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }
11286 then
11287 gcc_cv_as_sparc_relax=yes
11288 else
11289 echo "configure: failed program was" >&5
11290 cat conftest.s >&5
11292 rm -f conftest.o conftest.s
11295 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11296 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11297 if test $gcc_cv_as_sparc_relax = yes; then
11299 cat >>confdefs.h <<\_ACEOF
11300 #define HAVE_AS_RELAX_OPTION 1
11301 _ACEOF
11305 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11306 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11307 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 else
11310 gcc_cv_as_sparc_ua_pcrel=no
11311 if test x$gcc_cv_as != x; then
11312 echo '.text
11313 foo:
11315 .data
11316 .align 4
11317 .byte 0
11318 .uaword %r_disp32(foo)' > conftest.s
11319 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }
11325 then
11326 if test x$gcc_cv_ld != x \
11327 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11328 gcc_cv_as_sparc_ua_pcrel=yes
11330 rm -f conftest
11331 else
11332 echo "configure: failed program was" >&5
11333 cat conftest.s >&5
11335 rm -f conftest.o conftest.s
11338 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11339 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11340 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11342 cat >>confdefs.h <<\_ACEOF
11343 #define HAVE_AS_SPARC_UA_PCREL 1
11344 _ACEOF
11347 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11348 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11349 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 else
11352 gcc_cv_as_sparc_ua_pcrel_hidden=no
11353 if test x$gcc_cv_as != x; then
11354 echo '.data
11355 .align 4
11356 .byte 0x31
11357 .uaword %r_disp32(foo)
11358 .byte 0x32, 0x33, 0x34
11359 .global foo
11360 .hidden foo
11361 foo:
11362 .skip 4' > conftest.s
11363 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365 (eval $ac_try) 2>&5
11366 ac_status=$?
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }
11369 then
11370 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11371 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11372 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11373 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11374 if $gcc_cv_objdump -R conftest 2> /dev/null \
11375 | grep 'DISP32' > /dev/null 2>&1; then
11377 else
11378 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11381 rm -f conftest
11382 else
11383 echo "configure: failed program was" >&5
11384 cat conftest.s >&5
11386 rm -f conftest.o conftest.s
11389 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11390 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11391 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11393 cat >>confdefs.h <<\_ACEOF
11394 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11395 _ACEOF
11399 fi # unaligned pcrel relocs
11401 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11402 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11403 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 else
11406 gcc_cv_as_sparc_offsetable_lo10=no
11407 if test x$gcc_cv_as != x; then
11408 echo '.text
11409 or %g1, %lo(ab) + 12, %g1
11410 or %g1, %lo(ab + 12), %g1' > conftest.s
11411 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11414 ac_status=$?
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; }
11417 then
11418 if test x$gcc_cv_objdump != x \
11419 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11420 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11421 gcc_cv_as_offsetable_lo10=yes
11423 else
11424 echo "configure: failed program was" >&5
11425 cat conftest.s >&5
11427 rm -f conftest.o conftest.s
11430 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11431 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11432 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11434 cat >>confdefs.h <<\_ACEOF
11435 #define HAVE_AS_OFFSETABLE_LO10 1
11436 _ACEOF
11441 i[34567]86-*-* | x86_64-*-*)
11442 case $target_os in
11443 cygwin* | pe | mingw32*)
11444 # Used for DWARF 2 in PE
11445 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11446 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11447 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450 gcc_cv_as_ix86_pe_secrel32=no
11451 if test $in_tree_gas = yes; then
11452 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11453 then gcc_cv_as_ix86_pe_secrel32=yes
11455 elif test x$gcc_cv_as != x; then
11456 echo '.text
11457 foo: nop
11458 .data
11459 .secrel32 foo' > conftest.s
11460 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }
11466 then
11467 if test x$gcc_cv_ld != x \
11468 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11469 gcc_cv_as_ix86_pe_secrel32=yes
11471 rm -f conftest
11472 else
11473 echo "configure: failed program was" >&5
11474 cat conftest.s >&5
11476 rm -f conftest.o conftest.s
11479 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11480 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11481 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11483 cat >>confdefs.h <<\_ACEOF
11484 #define HAVE_GAS_PE_SECREL32_RELOC 1
11485 _ACEOF
11489 esac
11491 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11492 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11493 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496 gcc_cv_as_ix86_filds_fists=no
11497 if test $in_tree_gas = yes; then
11498 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11499 then gcc_cv_as_ix86_filds_fists=yes
11501 elif test x$gcc_cv_as != x; then
11502 echo 'filds mem; fists mem' > conftest.s
11503 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }
11509 then
11510 gcc_cv_as_ix86_filds_fists=yes
11511 else
11512 echo "configure: failed program was" >&5
11513 cat conftest.s >&5
11515 rm -f conftest.o conftest.s
11518 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11519 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11520 if test $gcc_cv_as_ix86_filds_fists = yes; then
11522 cat >>confdefs.h <<\_ACEOF
11523 #define HAVE_GAS_FILDS_FISTS 1
11524 _ACEOF
11528 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11529 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11530 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533 gcc_cv_as_ix86_cmov_sun_syntax=no
11534 if test x$gcc_cv_as != x; then
11535 echo 'cmovl.l %edx, %eax' > conftest.s
11536 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }
11542 then
11543 gcc_cv_as_ix86_cmov_sun_syntax=yes
11544 else
11545 echo "configure: failed program was" >&5
11546 cat conftest.s >&5
11548 rm -f conftest.o conftest.s
11551 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11552 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11553 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11555 cat >>confdefs.h <<\_ACEOF
11556 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11557 _ACEOF
11561 # This one is used unconditionally by i386.[ch]; it is to be defined
11562 # to 1 if the feature is present, 0 otherwise.
11563 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11564 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11565 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568 gcc_cv_as_ix86_gotoff_in_data=no
11569 if test $in_tree_gas = yes; then
11570 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11571 then gcc_cv_as_ix86_gotoff_in_data=yes
11573 elif test x$gcc_cv_as != x; then
11574 echo ' .text
11575 .L0:
11577 .data
11578 .long .L0@GOTOFF' > conftest.s
11579 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11582 ac_status=$?
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; }
11585 then
11586 gcc_cv_as_ix86_gotoff_in_data=yes
11587 else
11588 echo "configure: failed program was" >&5
11589 cat conftest.s >&5
11591 rm -f conftest.o conftest.s
11594 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11595 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11598 cat >>confdefs.h <<_ACEOF
11599 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11600 _ACEOF
11604 ia64*-*-*)
11605 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11606 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11607 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11608 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 else
11610 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11611 if test $in_tree_gas = yes; then
11612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11613 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11615 elif test x$gcc_cv_as != x; then
11616 echo ' .text
11617 addl r15 = @ltoffx(x#), gp
11619 ld8.mov r16 = [r15], x#' > conftest.s
11620 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }
11626 then
11627 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11628 else
11629 echo "configure: failed program was" >&5
11630 cat conftest.s >&5
11632 rm -f conftest.o conftest.s
11635 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11636 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11637 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11639 cat >>confdefs.h <<\_ACEOF
11640 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11641 _ACEOF
11647 powerpc*-*-*)
11648 case $target in
11649 *-*-aix*) conftest_s=' .csect .text[PR]
11650 mfcr 3,128';;
11651 *-*-darwin*) conftest_s=' .text
11652 mfcr r3,128';;
11653 *) conftest_s=' .text
11654 mfcr 3,128';;
11655 esac
11657 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11658 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11659 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 else
11662 gcc_cv_as_powerpc_mfcrf=no
11663 if test $in_tree_gas = yes; then
11664 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11665 then gcc_cv_as_powerpc_mfcrf=yes
11667 elif test x$gcc_cv_as != x; then
11668 echo "$conftest_s" > conftest.s
11669 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; }
11675 then
11676 gcc_cv_as_powerpc_mfcrf=yes
11677 else
11678 echo "configure: failed program was" >&5
11679 cat conftest.s >&5
11681 rm -f conftest.o conftest.s
11684 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11685 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11686 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11688 cat >>confdefs.h <<\_ACEOF
11689 #define HAVE_AS_MFCRF 1
11690 _ACEOF
11695 mips*-*-*)
11696 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11697 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11698 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11700 else
11701 gcc_cv_as_mips_explicit_relocs=no
11702 if test $in_tree_gas = yes; then
11703 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11704 then gcc_cv_as_mips_explicit_relocs=yes
11706 elif test x$gcc_cv_as != x; then
11707 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11708 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }
11714 then
11715 gcc_cv_as_mips_explicit_relocs=yes
11716 else
11717 echo "configure: failed program was" >&5
11718 cat conftest.s >&5
11720 rm -f conftest.o conftest.s
11723 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11724 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11725 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11726 if test x$target_cpu_default = x
11727 then target_cpu_default=MASK_EXPLICIT_RELOCS
11728 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11733 esac
11734 # ??? Not all targets support dwarf2 debug_line, even within a version
11735 # of gas. Moreover, we need to emit a valid instruction to trigger any
11736 # info to the output file. So, as supported targets are added to gas 2.11,
11737 # add some instruction here to (also) show we expect this might work.
11738 # ??? Once 2.11 is released, probably need to add first known working
11739 # version to the per-target configury.
11740 case "$target" in
11741 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11742 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11743 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11744 insn="nop"
11746 ia64*-*-* | s390*-*-*)
11747 insn="nop 0"
11749 mmix-*-*)
11750 insn="swym 0"
11752 esac
11753 if test x"$insn" != x; then
11754 conftest_s="\
11755 .file 1 \"conftest.s\"
11756 .loc 1 3 0
11757 $insn"
11758 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11759 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11760 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763 gcc_cv_as_dwarf2_debug_line=no
11764 if test $in_tree_gas = yes; then
11765 if test $in_tree_gas_is_elf = yes \
11766 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11767 then gcc_cv_as_dwarf2_debug_line=yes
11769 elif test x$gcc_cv_as != x; then
11770 echo "$conftest_s" > conftest.s
11771 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11774 ac_status=$?
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; }
11777 then
11778 # ??? This fails with non-gnu grep. Maybe use objdump?
11779 if grep debug_line conftest.o > /dev/null 2>&1; then
11780 gcc_cv_as_dwarf2_debug_line=yes
11782 else
11783 echo "configure: failed program was" >&5
11784 cat conftest.s >&5
11786 rm -f conftest.o conftest.s
11789 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11790 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11793 # The .debug_line file table must be in the exact order that
11794 # we specified the files, since these indices are also used
11795 # by DW_AT_decl_file. Approximate this test by testing if
11796 # the assembler bitches if the same index is assigned twice.
11797 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11798 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11799 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802 gcc_cv_as_dwarf2_file_buggy=no
11803 if test x$gcc_cv_as != x; then
11804 echo ' .file 1 "foo.s"
11805 .file 1 "bar.s"' > conftest.s
11806 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808 (eval $ac_try) 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; }
11812 then
11813 gcc_cv_as_dwarf2_file_buggy=yes
11814 else
11815 echo "configure: failed program was" >&5
11816 cat conftest.s >&5
11818 rm -f conftest.o conftest.s
11821 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11822 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11825 if test $gcc_cv_as_dwarf2_debug_line = yes \
11826 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11828 cat >>confdefs.h <<\_ACEOF
11829 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11830 _ACEOF
11834 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11835 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11836 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11838 else
11839 gcc_cv_as_gdwarf2_flag=no
11840 if test $in_tree_gas = yes; then
11841 if test $in_tree_gas_is_elf = yes \
11842 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11843 then gcc_cv_as_gdwarf2_flag=yes
11845 elif test x$gcc_cv_as != x; then
11846 echo "$insn" > conftest.s
11847 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }
11853 then
11854 gcc_cv_as_gdwarf2_flag=yes
11855 else
11856 echo "configure: failed program was" >&5
11857 cat conftest.s >&5
11859 rm -f conftest.o conftest.s
11862 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11863 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11864 if test $gcc_cv_as_gdwarf2_flag = yes; then
11866 cat >>confdefs.h <<\_ACEOF
11867 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11868 _ACEOF
11872 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11873 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11874 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 else
11877 gcc_cv_as_gstabs_flag=no
11878 if test $in_tree_gas = yes; then
11879 if test $in_tree_gas_is_elf = yes \
11880 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11881 then gcc_cv_as_gstabs_flag=yes
11883 elif test x$gcc_cv_as != x; then
11884 echo "$insn" > conftest.s
11885 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }
11891 then
11892 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11893 # and warns about it, but still exits successfully. So check for
11894 # this.
11895 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }
11901 then :
11902 else gcc_cv_as_gstabs_flag=yes
11904 else
11905 echo "configure: failed program was" >&5
11906 cat conftest.s >&5
11908 rm -f conftest.o conftest.s
11911 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11912 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11913 if test $gcc_cv_as_gstabs_flag = yes; then
11915 cat >>confdefs.h <<\_ACEOF
11916 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11917 _ACEOF
11922 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11923 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11924 gcc_cv_ld_ro_rw_mix=unknown
11925 if test $in_tree_ld = yes ; then
11926 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 \
11927 && test $in_tree_ld_is_elf = yes; then
11928 gcc_cv_ld_ro_rw_mix=read-write
11930 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11931 echo '.section myfoosect, "a"' > conftest1.s
11932 echo '.section myfoosect, "aw"' > conftest2.s
11933 echo '.byte 1' >> conftest2.s
11934 echo '.section myfoosect, "a"' > conftest3.s
11935 echo '.byte 0' >> conftest3.s
11936 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11937 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11938 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11939 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11940 conftest2.o conftest3.o > /dev/null 2>&1; then
11941 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11942 | sed -e '/myfoosect/!d' -e N`
11943 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11944 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11945 gcc_cv_ld_ro_rw_mix=read-only
11946 else
11947 gcc_cv_ld_ro_rw_mix=read-write
11951 rm -f conftest.* conftest[123].*
11953 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11955 cat >>confdefs.h <<\_ACEOF
11956 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11957 _ACEOF
11960 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11961 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11963 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11964 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11965 gcc_cv_ld_eh_frame_hdr=no
11966 if test $in_tree_ld = yes ; then
11967 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 \
11968 && test $in_tree_ld_is_elf = yes; then
11969 gcc_cv_ld_eh_frame_hdr=yes
11971 elif test x$gcc_cv_ld != x; then
11972 # Check if linker supports --eh-frame-hdr option
11973 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11974 gcc_cv_ld_eh_frame_hdr=yes
11977 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11979 cat >>confdefs.h <<\_ACEOF
11980 #define HAVE_LD_EH_FRAME_HDR 1
11981 _ACEOF
11984 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11985 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11987 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11988 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11989 gcc_cv_ld_pie=no
11990 if test $in_tree_ld = yes ; then
11991 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 \
11992 && test $in_tree_ld_is_elf = yes; then
11993 gcc_cv_ld_pie=yes
11995 elif test x$gcc_cv_ld != x; then
11996 # Check if linker supports -pie option
11997 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11998 gcc_cv_ld_pie=yes
12001 if test x"$gcc_cv_ld_pie" = xyes; then
12003 cat >>confdefs.h <<\_ACEOF
12004 #define HAVE_LD_PIE 1
12005 _ACEOF
12008 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
12009 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
12011 # --------
12012 # UNSORTED
12013 # --------
12015 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
12016 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
12017 if test "${gcc_cv_ld_as_needed+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020 gcc_cv_ld_as_needed=no
12021 if test $in_tree_ld = yes ; then
12022 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 \
12023 && test $in_tree_ld_is_elf = yes; then
12024 gcc_cv_ld_as_needed=yes
12026 elif test x$gcc_cv_ld != x; then
12027 # Check if linker supports --as-needed and --no-as-needed options
12028 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
12029 gcc_cv_ld_as_needed=yes
12034 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
12035 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
12036 if test x"$gcc_cv_ld_as_needed" = xyes; then
12038 cat >>confdefs.h <<\_ACEOF
12039 #define HAVE_LD_AS_NEEDED 1
12040 _ACEOF
12044 if test x$with_sysroot = x && test x$host = x$target \
12045 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12047 cat >>confdefs.h <<_ACEOF
12048 #define PREFIX_INCLUDE_DIR "$prefix/include"
12049 _ACEOF
12053 # Find out what GC implementation we want, or may, use.
12055 # Check whether --with-gc or --without-gc was given.
12056 if test "${with_gc+set}" = set; then
12057 withval="$with_gc"
12058 case "$withval" in
12059 page | zone)
12060 GGC=ggc-$withval
12063 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12064 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12065 { (exit 1); exit 1; }; }
12067 esac
12068 else
12069 GGC=ggc-page
12072 echo "Using $GGC for garbage collection."
12074 # Use the system's zlib library.
12075 zlibdir=-L../zlib
12076 zlibinc="-I\$(srcdir)/../zlib"
12078 # Check whether --with-system-zlib or --without-system-zlib was given.
12079 if test "${with_system_zlib+set}" = set; then
12080 withval="$with_system_zlib"
12081 zlibdir=
12082 zlibinc=
12089 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12090 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12091 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12092 if test "${enable_maintainer_mode+set}" = set; then
12093 enableval="$enable_maintainer_mode"
12094 maintainer_mode=$enableval
12095 else
12096 maintainer_mode=no
12099 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12100 echo "${ECHO_T}$maintainer_mode" >&6
12102 if test "$maintainer_mode" = "yes"; then
12103 MAINT=''
12104 else
12105 MAINT='#'
12108 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
12109 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
12111 # Check whether --with-libbanshee or --without-libbanshee was given.
12112 if test "${with_libbanshee+set}" = set; then
12113 withval="$with_libbanshee"
12114 libbanshee="$with_libbanshee"
12115 else
12116 libbanshee=no
12119 if test x"$libbanshee" = xyes; then
12120 BANSHEELIB="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
12121 BANSHEEINC="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
12122 ANDER="tree-alias-ander.o"
12124 cat >>confdefs.h <<\_ACEOF
12125 #define HAVE_BANSHEE 1
12126 _ACEOF
12128 else
12129 BANSHEELIB=""
12130 BANSHEEINC=""
12131 ANDER=""
12133 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
12134 echo "${ECHO_T}$with_libbanshee" >&6
12140 # --------------
12141 # Language hooks
12142 # --------------
12144 # Make empty files to contain the specs and options for each language.
12145 # Then add #include lines to for a compiler that has specs and/or options.
12147 lang_opt_files=
12148 lang_specs_files=
12149 lang_tree_files=
12150 for subdir in . $subdirs
12152 if test -f $srcdir/$subdir/lang.opt; then
12153 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12155 if test -f $srcdir/$subdir/lang-specs.h; then
12156 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12158 if test -f $srcdir/$subdir/$subdir-tree.def; then
12159 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12161 done
12163 # These (without "all_") are set in each config-lang.in.
12164 # `language' must be a single word so is spelled singularly.
12165 all_languages=
12166 all_boot_languages=
12167 all_compilers=
12168 all_stagestuff=
12169 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
12170 # List of language makefile fragments.
12171 all_lang_makefrags=
12172 # List of language subdirectory makefiles. Deprecated.
12173 all_lang_makefiles=
12174 # Files for gengtype
12175 all_gtfiles="$target_gtfiles"
12176 # Files for gengtype with language
12177 all_gtfiles_files_langs=
12178 all_gtfiles_files_files=
12180 # Add the language fragments.
12181 # Languages are added via two mechanisms. Some information must be
12182 # recorded in makefile variables, these are defined in config-lang.in.
12183 # We accumulate them and plug them into the main Makefile.
12184 # The other mechanism is a set of hooks for each of the main targets
12185 # like `clean', `install', etc.
12187 language_hooks="Make-hooks"
12189 for s in $subdirs
12191 language=
12192 boot_language=
12193 compilers=
12194 stagestuff=
12195 outputs=
12196 gtfiles=
12197 . ${srcdir}/$s/config-lang.in
12198 if test "x$language" = x
12199 then
12200 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12201 exit 1
12203 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12204 if test -f ${srcdir}/$s/Makefile.in
12205 then all_lang_makefiles="$s/Makefile"
12207 all_languages="$all_languages $language"
12208 if test "x$boot_language" = xyes
12209 then
12210 all_boot_languages="$all_boot_languages $language"
12212 all_compilers="$all_compilers $compilers"
12213 all_stagestuff="$all_stagestuff $stagestuff"
12214 all_outputs="$all_outputs $outputs"
12215 all_gtfiles="$all_gtfiles $gtfiles"
12216 for f in $gtfiles
12218 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12219 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12220 done
12221 done
12223 # Pick up gtfiles for c
12224 gtfiles=
12225 s="c"
12226 . ${srcdir}/c-config-lang.in
12227 all_gtfiles="$all_gtfiles $gtfiles"
12228 for f in $gtfiles
12230 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12231 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12232 done
12234 check_languages=
12235 for language in $all_languages
12237 check_languages="$check_languages check-$language"
12238 done
12240 # We link each language in with a set of hooks, reached indirectly via
12241 # lang.${target}.
12243 rm -f Make-hooks
12244 touch Make-hooks
12245 target_list="all.build all.cross start.encap rest.encap tags \
12246 install-normal install-common install-man \
12247 uninstall info man srcextra srcman srcinfo \
12248 mostlyclean clean distclean maintainer-clean \
12249 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12250 for t in $target_list
12253 for lang in $all_languages
12255 x="$x $lang.$t"
12256 done
12257 echo "lang.$t: $x" >> Make-hooks
12258 done
12260 # --------
12261 # UNSORTED
12262 # --------
12264 # Create .gdbinit.
12266 echo "dir ." > .gdbinit
12267 echo "dir ${srcdir}" >> .gdbinit
12268 if test x$gdb_needs_out_file_path = xyes
12269 then
12270 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12272 if test "x$subdirs" != x; then
12273 for s in $subdirs
12275 echo "dir ${srcdir}/$s" >> .gdbinit
12276 done
12278 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12280 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12281 # absolute path for gcc_tooldir based on inserting the number of up-directory
12282 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12283 # $(libsubdir)/@(unlibsubdir) based path.
12284 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12285 # make and thus we'd get different behavior depending on where we built the
12286 # sources.
12287 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12288 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12289 else
12290 # An explanation of the sed strings:
12291 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12292 # -e 's|/$||' match a trailing forward slash and eliminates it
12293 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12294 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12296 # (*) Note this pattern overwrites the first character of the string
12297 # with a forward slash if one is not already present. This is not a
12298 # problem because the exact names of the sub-directories concerned is
12299 # unimportant, just the number of them matters.
12301 # The practical upshot of these patterns is like this:
12303 # prefix exec_prefix result
12304 # ------ ----------- ------
12305 # /foo /foo/bar ../
12306 # /foo/ /foo/bar ../
12307 # /foo /foo/bar/ ../
12308 # /foo/ /foo/bar/ ../
12309 # /foo /foo/bar/ugg ../../
12311 dollar='$$'
12312 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12317 # Find a directory in which to install a shared libgcc.
12319 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12320 if test "${enable_version_specific_runtime_libs+set}" = set; then
12321 enableval="$enable_version_specific_runtime_libs"
12326 # Check whether --with-slibdir or --without-slibdir was given.
12327 if test "${with_slibdir+set}" = set; then
12328 withval="$with_slibdir"
12329 slibdir="$with_slibdir"
12330 else
12331 if test "${enable_version_specific_runtime_libs+set}" = set; then
12332 slibdir='$(libsubdir)'
12333 elif test "$host" != "$target"; then
12334 slibdir='$(build_tooldir)/lib'
12335 else
12336 slibdir='$(libdir)'
12341 objdir=`${PWDCMD-pwd}`
12344 # Substitute configuration variables
12413 # If it doesn't already exist, create document directory
12414 echo "checking for the document directory." 1>&2
12415 if test -d doc ; then
12416 true
12417 else
12418 mkdir doc
12421 # Echo link setup.
12422 if test x${build} = x${host} ; then
12423 if test x${host} = x${target} ; then
12424 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12425 else
12426 echo "Links are now set up to build a cross-compiler" 1>&2
12427 echo " from ${host} to ${target}." 1>&2
12429 else
12430 if test x${host} = x${target} ; then
12431 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12432 echo " for ${target}." 1>&2
12433 else
12434 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12435 echo " from ${host} to ${target}." 1>&2
12442 # Configure the subdirectories
12443 # AC_CONFIG_SUBDIRS($subdirs)
12445 # Create the Makefile
12446 # and configure language subdirectories
12447 ac_config_files="$ac_config_files $all_outputs"
12450 ac_config_commands="$ac_config_commands default"
12452 cat >confcache <<\_ACEOF
12453 # This file is a shell script that caches the results of configure
12454 # tests run on this system so they can be shared between configure
12455 # scripts and configure runs, see configure's option --config-cache.
12456 # It is not useful on other systems. If it contains results you don't
12457 # want to keep, you may remove or edit it.
12459 # config.status only pays attention to the cache file if you give it
12460 # the --recheck option to rerun configure.
12462 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12463 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12464 # following values.
12466 _ACEOF
12468 # The following way of writing the cache mishandles newlines in values,
12469 # but we know of no workaround that is simple, portable, and efficient.
12470 # So, don't put newlines in cache variables' values.
12471 # Ultrix sh set writes to stderr and can't be redirected directly,
12472 # and sets the high bit in the cache file unless we assign to the vars.
12474 (set) 2>&1 |
12475 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12476 *ac_space=\ *)
12477 # `set' does not quote correctly, so add quotes (double-quote
12478 # substitution turns \\\\ into \\, and sed turns \\ into \).
12479 sed -n \
12480 "s/'/'\\\\''/g;
12481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12484 # `set' quotes correctly as required by POSIX, so do not add quotes.
12485 sed -n \
12486 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12488 esac;
12490 sed '
12491 t clear
12492 : clear
12493 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12494 t end
12495 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12496 : end' >>confcache
12497 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12498 if test -w $cache_file; then
12499 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12500 cat confcache >$cache_file
12501 else
12502 echo "not updating unwritable cache $cache_file"
12505 rm -f confcache
12507 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12508 # Let make expand exec_prefix.
12509 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12511 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12512 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12513 # trailing colons and then remove the whole line if VPATH becomes empty
12514 # (actually we leave an empty line to preserve line numbers).
12515 if test "x$srcdir" = x.; then
12516 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12517 s/:*\$(srcdir):*/:/;
12518 s/:*\${srcdir}:*/:/;
12519 s/:*@srcdir@:*/:/;
12520 s/^\([^=]*=[ ]*\):*/\1/;
12521 s/:*$//;
12522 s/^[^=]*=[ ]*$//;
12526 DEFS=-DHAVE_CONFIG_H
12528 ac_libobjs=
12529 ac_ltlibobjs=
12530 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12531 # 1. Remove the extension, and $U if already installed.
12532 ac_i=`echo "$ac_i" |
12533 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12534 # 2. Add them.
12535 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12536 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12537 done
12538 LIBOBJS=$ac_libobjs
12540 LTLIBOBJS=$ac_ltlibobjs
12544 : ${CONFIG_STATUS=./config.status}
12545 ac_clean_files_save=$ac_clean_files
12546 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12547 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12548 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12549 cat >$CONFIG_STATUS <<_ACEOF
12550 #! $SHELL
12551 # Generated by $as_me.
12552 # Run this file to recreate the current configuration.
12553 # Compiler output produced by configure, useful for debugging
12554 # configure, is in config.log if it exists.
12556 debug=false
12557 ac_cs_recheck=false
12558 ac_cs_silent=false
12559 SHELL=\${CONFIG_SHELL-$SHELL}
12560 _ACEOF
12562 cat >>$CONFIG_STATUS <<\_ACEOF
12563 ## --------------------- ##
12564 ## M4sh Initialization. ##
12565 ## --------------------- ##
12567 # Be Bourne compatible
12568 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12569 emulate sh
12570 NULLCMD=:
12571 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12572 # is contrary to our usage. Disable this feature.
12573 alias -g '${1+"$@"}'='"$@"'
12574 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12575 set -o posix
12577 DUALCASE=1; export DUALCASE # for MKS sh
12579 # Support unset when possible.
12580 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12581 as_unset=unset
12582 else
12583 as_unset=false
12587 # Work around bugs in pre-3.0 UWIN ksh.
12588 $as_unset ENV MAIL MAILPATH
12589 PS1='$ '
12590 PS2='> '
12591 PS4='+ '
12593 # NLS nuisances.
12594 for as_var in \
12595 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12596 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12597 LC_TELEPHONE LC_TIME
12599 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12600 eval $as_var=C; export $as_var
12601 else
12602 $as_unset $as_var
12604 done
12606 # Required to use basename.
12607 if expr a : '\(a\)' >/dev/null 2>&1; then
12608 as_expr=expr
12609 else
12610 as_expr=false
12613 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12614 as_basename=basename
12615 else
12616 as_basename=false
12620 # Name of the executable.
12621 as_me=`$as_basename "$0" ||
12622 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12623 X"$0" : 'X\(//\)$' \| \
12624 X"$0" : 'X\(/\)$' \| \
12625 . : '\(.\)' 2>/dev/null ||
12626 echo X/"$0" |
12627 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12628 /^X\/\(\/\/\)$/{ s//\1/; q; }
12629 /^X\/\(\/\).*/{ s//\1/; q; }
12630 s/.*/./; q'`
12633 # PATH needs CR, and LINENO needs CR and PATH.
12634 # Avoid depending upon Character Ranges.
12635 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12636 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12637 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12638 as_cr_digits='0123456789'
12639 as_cr_alnum=$as_cr_Letters$as_cr_digits
12641 # The user is always right.
12642 if test "${PATH_SEPARATOR+set}" != set; then
12643 echo "#! /bin/sh" >conf$$.sh
12644 echo "exit 0" >>conf$$.sh
12645 chmod +x conf$$.sh
12646 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12647 PATH_SEPARATOR=';'
12648 else
12649 PATH_SEPARATOR=:
12651 rm -f conf$$.sh
12655 as_lineno_1=$LINENO
12656 as_lineno_2=$LINENO
12657 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12658 test "x$as_lineno_1" != "x$as_lineno_2" &&
12659 test "x$as_lineno_3" = "x$as_lineno_2" || {
12660 # Find who we are. Look in the path if we contain no path at all
12661 # relative or not.
12662 case $0 in
12663 *[\\/]* ) as_myself=$0 ;;
12664 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665 for as_dir in $PATH
12667 IFS=$as_save_IFS
12668 test -z "$as_dir" && as_dir=.
12669 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12670 done
12673 esac
12674 # We did not find ourselves, most probably we were run as `sh COMMAND'
12675 # in which case we are not to be found in the path.
12676 if test "x$as_myself" = x; then
12677 as_myself=$0
12679 if test ! -f "$as_myself"; then
12680 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12681 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12682 { (exit 1); exit 1; }; }
12684 case $CONFIG_SHELL in
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for as_base in sh bash ksh sh5; do
12692 case $as_dir in
12694 if ("$as_dir/$as_base" -c '
12695 as_lineno_1=$LINENO
12696 as_lineno_2=$LINENO
12697 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12698 test "x$as_lineno_1" != "x$as_lineno_2" &&
12699 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12700 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12701 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12702 CONFIG_SHELL=$as_dir/$as_base
12703 export CONFIG_SHELL
12704 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12705 fi;;
12706 esac
12707 done
12708 done
12710 esac
12712 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12713 # uniformly replaced by the line number. The first 'sed' inserts a
12714 # line-number line before each line; the second 'sed' does the real
12715 # work. The second script uses 'N' to pair each line-number line
12716 # with the numbered line, and appends trailing '-' during
12717 # substitution so that $LINENO is not a special case at line end.
12718 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12719 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12720 sed '=' <$as_myself |
12721 sed '
12723 s,$,-,
12724 : loop
12725 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12726 t loop
12727 s,-$,,
12728 s,^['$as_cr_digits']*\n,,
12729 ' >$as_me.lineno &&
12730 chmod +x $as_me.lineno ||
12731 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12732 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12733 { (exit 1); exit 1; }; }
12735 # Don't try to exec as it changes $[0], causing all sort of problems
12736 # (the dirname of $[0] is not the place where we might find the
12737 # original and so on. Autoconf is especially sensible to this).
12738 . ./$as_me.lineno
12739 # Exit status is that of the last command.
12740 exit
12744 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12745 *c*,-n*) ECHO_N= ECHO_C='
12746 ' ECHO_T=' ' ;;
12747 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12748 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12749 esac
12751 if expr a : '\(a\)' >/dev/null 2>&1; then
12752 as_expr=expr
12753 else
12754 as_expr=false
12757 rm -f conf$$ conf$$.exe conf$$.file
12758 echo >conf$$.file
12759 if ln -s conf$$.file conf$$ 2>/dev/null; then
12760 # We could just check for DJGPP; but this test a) works b) is more generic
12761 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12762 if test -f conf$$.exe; then
12763 # Don't use ln at all; we don't have any links
12764 as_ln_s='cp -p'
12765 else
12766 as_ln_s='ln -s'
12768 elif ln conf$$.file conf$$ 2>/dev/null; then
12769 as_ln_s=ln
12770 else
12771 as_ln_s='cp -p'
12773 rm -f conf$$ conf$$.exe conf$$.file
12775 if mkdir -p . 2>/dev/null; then
12776 as_mkdir_p=:
12777 else
12778 test -d ./-p && rmdir ./-p
12779 as_mkdir_p=false
12782 as_executable_p="test -f"
12784 # Sed expression to map a string onto a valid CPP name.
12785 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12787 # Sed expression to map a string onto a valid variable name.
12788 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12791 # IFS
12792 # We need space, tab and new line, in precisely that order.
12793 as_nl='
12795 IFS=" $as_nl"
12797 # CDPATH.
12798 $as_unset CDPATH
12800 exec 6>&1
12802 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12803 # report actual input values of CONFIG_FILES etc. instead of their
12804 # values after options handling. Logging --version etc. is OK.
12805 exec 5>>config.log
12807 echo
12808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12809 ## Running $as_me. ##
12810 _ASBOX
12811 } >&5
12812 cat >&5 <<_CSEOF
12814 This file was extended by $as_me, which was
12815 generated by GNU Autoconf 2.59. Invocation command line was
12817 CONFIG_FILES = $CONFIG_FILES
12818 CONFIG_HEADERS = $CONFIG_HEADERS
12819 CONFIG_LINKS = $CONFIG_LINKS
12820 CONFIG_COMMANDS = $CONFIG_COMMANDS
12821 $ $0 $@
12823 _CSEOF
12824 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12825 echo >&5
12826 _ACEOF
12828 # Files that config.status was made for.
12829 if test -n "$ac_config_files"; then
12830 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12833 if test -n "$ac_config_headers"; then
12834 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12837 if test -n "$ac_config_links"; then
12838 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12841 if test -n "$ac_config_commands"; then
12842 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12845 cat >>$CONFIG_STATUS <<\_ACEOF
12847 ac_cs_usage="\
12848 \`$as_me' instantiates files from templates according to the
12849 current configuration.
12851 Usage: $0 [OPTIONS] [FILE]...
12853 -h, --help print this help, then exit
12854 -V, --version print version number, then exit
12855 -q, --quiet do not print progress messages
12856 -d, --debug don't remove temporary files
12857 --recheck update $as_me by reconfiguring in the same conditions
12858 --file=FILE[:TEMPLATE]
12859 instantiate the configuration file FILE
12860 --header=FILE[:TEMPLATE]
12861 instantiate the configuration header FILE
12863 Configuration files:
12864 $config_files
12866 Configuration headers:
12867 $config_headers
12869 Configuration commands:
12870 $config_commands
12872 Report bugs to <bug-autoconf@gnu.org>."
12873 _ACEOF
12875 cat >>$CONFIG_STATUS <<_ACEOF
12876 ac_cs_version="\\
12877 config.status
12878 configured by $0, generated by GNU Autoconf 2.59,
12879 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12881 Copyright (C) 2003 Free Software Foundation, Inc.
12882 This config.status script is free software; the Free Software Foundation
12883 gives unlimited permission to copy, distribute and modify it."
12884 srcdir=$srcdir
12885 _ACEOF
12887 cat >>$CONFIG_STATUS <<\_ACEOF
12888 # If no file are specified by the user, then we need to provide default
12889 # value. By we need to know if files were specified by the user.
12890 ac_need_defaults=:
12891 while test $# != 0
12893 case $1 in
12894 --*=*)
12895 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12896 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12897 ac_shift=:
12900 ac_option=$1
12901 ac_optarg=$2
12902 ac_shift=shift
12904 *) # This is not an option, so the user has probably given explicit
12905 # arguments.
12906 ac_option=$1
12907 ac_need_defaults=false;;
12908 esac
12910 case $ac_option in
12911 # Handling of the options.
12912 _ACEOF
12913 cat >>$CONFIG_STATUS <<\_ACEOF
12914 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12915 ac_cs_recheck=: ;;
12916 --version | --vers* | -V )
12917 echo "$ac_cs_version"; exit 0 ;;
12918 --he | --h)
12919 # Conflict between --help and --header
12920 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12921 Try \`$0 --help' for more information." >&5
12922 echo "$as_me: error: ambiguous option: $1
12923 Try \`$0 --help' for more information." >&2;}
12924 { (exit 1); exit 1; }; };;
12925 --help | --hel | -h )
12926 echo "$ac_cs_usage"; exit 0 ;;
12927 --debug | --d* | -d )
12928 debug=: ;;
12929 --file | --fil | --fi | --f )
12930 $ac_shift
12931 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12932 ac_need_defaults=false;;
12933 --header | --heade | --head | --hea )
12934 $ac_shift
12935 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12936 ac_need_defaults=false;;
12937 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12938 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12939 ac_cs_silent=: ;;
12941 # This is an error.
12942 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12943 Try \`$0 --help' for more information." >&5
12944 echo "$as_me: error: unrecognized option: $1
12945 Try \`$0 --help' for more information." >&2;}
12946 { (exit 1); exit 1; }; } ;;
12948 *) ac_config_targets="$ac_config_targets $1" ;;
12950 esac
12951 shift
12952 done
12954 ac_configure_extra_args=
12956 if $ac_cs_silent; then
12957 exec 6>/dev/null
12958 ac_configure_extra_args="$ac_configure_extra_args --silent"
12961 _ACEOF
12962 cat >>$CONFIG_STATUS <<_ACEOF
12963 if \$ac_cs_recheck; then
12964 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12965 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12968 _ACEOF
12970 cat >>$CONFIG_STATUS <<_ACEOF
12972 # INIT-COMMANDS section.
12975 subdirs='$subdirs'
12976 symbolic_link='$symbolic_link'
12979 _ACEOF
12983 cat >>$CONFIG_STATUS <<\_ACEOF
12984 for ac_config_target in $ac_config_targets
12986 case "$ac_config_target" in
12987 # Handling of arguments.
12988 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12989 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12990 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12991 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12992 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12993 { (exit 1); exit 1; }; };;
12994 esac
12995 done
12997 # If the user did not use the arguments to specify the items to instantiate,
12998 # then the envvar interface is used. Set only those that are not.
12999 # We use the long form for the default assignment because of an extremely
13000 # bizarre bug on SunOS 4.1.3.
13001 if $ac_need_defaults; then
13002 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13003 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13004 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13007 # Have a temporary directory for convenience. Make it in the build tree
13008 # simply because there is no reason to put it here, and in addition,
13009 # creating and moving files from /tmp can sometimes cause problems.
13010 # Create a temporary directory, and hook for its removal unless debugging.
13011 $debug ||
13013 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13014 trap '{ (exit 1); exit 1; }' 1 2 13 15
13017 # Create a (secure) tmp directory for tmp files.
13020 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13021 test -n "$tmp" && test -d "$tmp"
13022 } ||
13024 tmp=./confstat$$-$RANDOM
13025 (umask 077 && mkdir $tmp)
13026 } ||
13028 echo "$me: cannot create a temporary directory in ." >&2
13029 { (exit 1); exit 1; }
13032 _ACEOF
13034 cat >>$CONFIG_STATUS <<_ACEOF
13037 # CONFIG_FILES section.
13040 # No need to generate the scripts if there are no CONFIG_FILES.
13041 # This happens for instance when ./config.status config.h
13042 if test -n "\$CONFIG_FILES"; then
13043 # Protect against being on the right side of a sed subst in config.status.
13044 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13045 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13046 s,@SHELL@,$SHELL,;t t
13047 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13048 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13049 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13050 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13051 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13052 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13053 s,@exec_prefix@,$exec_prefix,;t t
13054 s,@prefix@,$prefix,;t t
13055 s,@program_transform_name@,$program_transform_name,;t t
13056 s,@bindir@,$bindir,;t t
13057 s,@sbindir@,$sbindir,;t t
13058 s,@libexecdir@,$libexecdir,;t t
13059 s,@datadir@,$datadir,;t t
13060 s,@sysconfdir@,$sysconfdir,;t t
13061 s,@sharedstatedir@,$sharedstatedir,;t t
13062 s,@localstatedir@,$localstatedir,;t t
13063 s,@libdir@,$libdir,;t t
13064 s,@includedir@,$includedir,;t t
13065 s,@oldincludedir@,$oldincludedir,;t t
13066 s,@infodir@,$infodir,;t t
13067 s,@mandir@,$mandir,;t t
13068 s,@build_alias@,$build_alias,;t t
13069 s,@host_alias@,$host_alias,;t t
13070 s,@target_alias@,$target_alias,;t t
13071 s,@DEFS@,$DEFS,;t t
13072 s,@ECHO_C@,$ECHO_C,;t t
13073 s,@ECHO_N@,$ECHO_N,;t t
13074 s,@ECHO_T@,$ECHO_T,;t t
13075 s,@LIBS@,$LIBS,;t t
13076 s,@build@,$build,;t t
13077 s,@build_cpu@,$build_cpu,;t t
13078 s,@build_vendor@,$build_vendor,;t t
13079 s,@build_os@,$build_os,;t t
13080 s,@host@,$host,;t t
13081 s,@host_cpu@,$host_cpu,;t t
13082 s,@host_vendor@,$host_vendor,;t t
13083 s,@host_os@,$host_os,;t t
13084 s,@target@,$target,;t t
13085 s,@target_cpu@,$target_cpu,;t t
13086 s,@target_vendor@,$target_vendor,;t t
13087 s,@target_os@,$target_os,;t t
13088 s,@build_subdir@,$build_subdir,;t t
13089 s,@host_subdir@,$host_subdir,;t t
13090 s,@target_subdir@,$target_subdir,;t t
13091 s,@GENINSRC@,$GENINSRC,;t t
13092 s,@CC@,$CC,;t t
13093 s,@CFLAGS@,$CFLAGS,;t t
13094 s,@LDFLAGS@,$LDFLAGS,;t t
13095 s,@CPPFLAGS@,$CPPFLAGS,;t t
13096 s,@ac_ct_CC@,$ac_ct_CC,;t t
13097 s,@EXEEXT@,$EXEEXT,;t t
13098 s,@OBJEXT@,$OBJEXT,;t t
13099 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13100 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13101 s,@CPP@,$CPP,;t t
13102 s,@strict1_warn@,$strict1_warn,;t t
13103 s,@warn_cflags@,$warn_cflags,;t t
13104 s,@WERROR@,$WERROR,;t t
13105 s,@nocommon_flag@,$nocommon_flag,;t t
13106 s,@TREEBROWSER@,$TREEBROWSER,;t t
13107 s,@EGREP@,$EGREP,;t t
13108 s,@valgrind_path@,$valgrind_path,;t t
13109 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13110 s,@valgrind_command@,$valgrind_command,;t t
13111 s,@coverage_flags@,$coverage_flags,;t t
13112 s,@enable_multilib@,$enable_multilib,;t t
13113 s,@enable_shared@,$enable_shared,;t t
13114 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13115 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13116 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13117 s,@onestep@,$onestep,;t t
13118 s,@SET_MAKE@,$SET_MAKE,;t t
13119 s,@AWK@,$AWK,;t t
13120 s,@LN_S@,$LN_S,;t t
13121 s,@LN@,$LN,;t t
13122 s,@RANLIB@,$RANLIB,;t t
13123 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13124 s,@ranlib_flags@,$ranlib_flags,;t t
13125 s,@INSTALL@,$INSTALL,;t t
13126 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13127 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13128 s,@make_compare_target@,$make_compare_target,;t t
13129 s,@have_mktemp_command@,$have_mktemp_command,;t t
13130 s,@MAKEINFO@,$MAKEINFO,;t t
13131 s,@BUILD_INFO@,$BUILD_INFO,;t t
13132 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13133 s,@FLEX@,$FLEX,;t t
13134 s,@BISON@,$BISON,;t t
13135 s,@NM@,$NM,;t t
13136 s,@AR@,$AR,;t t
13137 s,@stage1_cflags@,$stage1_cflags,;t t
13138 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13139 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13140 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13141 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13142 s,@LIBICONV@,$LIBICONV,;t t
13143 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13144 s,@manext@,$manext,;t t
13145 s,@objext@,$objext,;t t
13146 s,@gthread_flags@,$gthread_flags,;t t
13147 s,@extra_modes_file@,$extra_modes_file,;t t
13148 s,@FORBUILD@,$FORBUILD,;t t
13149 s,@PACKAGE@,$PACKAGE,;t t
13150 s,@VERSION@,$VERSION,;t t
13151 s,@USE_NLS@,$USE_NLS,;t t
13152 s,@LIBINTL@,$LIBINTL,;t t
13153 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13154 s,@INCINTL@,$INCINTL,;t t
13155 s,@XGETTEXT@,$XGETTEXT,;t t
13156 s,@GMSGFMT@,$GMSGFMT,;t t
13157 s,@POSUB@,$POSUB,;t t
13158 s,@CATALOGS@,$CATALOGS,;t t
13159 s,@CROSS@,$CROSS,;t t
13160 s,@ALL@,$ALL,;t t
13161 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13162 s,@inhibit_libc@,$inhibit_libc,;t t
13163 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
13164 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
13165 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13166 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13167 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13168 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13169 s,@collect2@,$collect2,;t t
13170 s,@libgcc_visibility@,$libgcc_visibility,;t t
13171 s,@GGC@,$GGC,;t t
13172 s,@zlibdir@,$zlibdir,;t t
13173 s,@zlibinc@,$zlibinc,;t t
13174 s,@MAINT@,$MAINT,;t t
13175 s,@ANDER@,$ANDER,;t t
13176 s,@BANSHEEINC@,$BANSHEEINC,;t t
13177 s,@BANSHEELIB@,$BANSHEELIB,;t t
13178 s,@gcc_tooldir@,$gcc_tooldir,;t t
13179 s,@dollar@,$dollar,;t t
13180 s,@slibdir@,$slibdir,;t t
13181 s,@objdir@,$objdir,;t t
13182 s,@subdirs@,$subdirs,;t t
13183 s,@srcdir@,$srcdir,;t t
13184 s,@all_boot_languages@,$all_boot_languages,;t t
13185 s,@all_compilers@,$all_compilers,;t t
13186 s,@all_gtfiles@,$all_gtfiles,;t t
13187 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13188 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13189 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13190 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13191 s,@all_languages@,$all_languages,;t t
13192 s,@all_stagestuff@,$all_stagestuff,;t t
13193 s,@build_exeext@,$build_exeext,;t t
13194 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13195 s,@build_xm_file_list@,$build_xm_file_list,;t t
13196 s,@build_xm_include_list@,$build_xm_include_list,;t t
13197 s,@build_xm_defines@,$build_xm_defines,;t t
13198 s,@check_languages@,$check_languages,;t t
13199 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13200 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13201 s,@cpp_install_dir@,$cpp_install_dir,;t t
13202 s,@xmake_file@,$xmake_file,;t t
13203 s,@tmake_file@,$tmake_file,;t t
13204 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13205 s,@extra_headers_list@,$extra_headers_list,;t t
13206 s,@extra_objs@,$extra_objs,;t t
13207 s,@extra_parts@,$extra_parts,;t t
13208 s,@extra_passes@,$extra_passes,;t t
13209 s,@extra_programs@,$extra_programs,;t t
13210 s,@float_h_file@,$float_h_file,;t t
13211 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13212 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13213 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13214 s,@gcc_version@,$gcc_version,;t t
13215 s,@gcc_version_full@,$gcc_version_full,;t t
13216 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13217 s,@host_exeext@,$host_exeext,;t t
13218 s,@host_xm_file_list@,$host_xm_file_list,;t t
13219 s,@host_xm_include_list@,$host_xm_include_list,;t t
13220 s,@host_xm_defines@,$host_xm_defines,;t t
13221 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13222 s,@install@,$install,;t t
13223 s,@lang_opt_files@,$lang_opt_files,;t t
13224 s,@lang_specs_files@,$lang_specs_files,;t t
13225 s,@lang_tree_files@,$lang_tree_files,;t t
13226 s,@local_prefix@,$local_prefix,;t t
13227 s,@md_file@,$md_file,;t t
13228 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13229 s,@out_file@,$out_file,;t t
13230 s,@out_object_file@,$out_object_file,;t t
13231 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13232 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13233 s,@symbolic_link@,$symbolic_link,;t t
13234 s,@thread_file@,$thread_file,;t t
13235 s,@tm_file_list@,$tm_file_list,;t t
13236 s,@tm_include_list@,$tm_include_list,;t t
13237 s,@tm_defines@,$tm_defines,;t t
13238 s,@tm_p_file_list@,$tm_p_file_list,;t t
13239 s,@tm_p_include_list@,$tm_p_include_list,;t t
13240 s,@xm_file_list@,$xm_file_list,;t t
13241 s,@xm_include_list@,$xm_include_list,;t t
13242 s,@xm_defines@,$xm_defines,;t t
13243 s,@target_noncanonical@,$target_noncanonical,;t t
13244 s,@c_target_objs@,$c_target_objs,;t t
13245 s,@cxx_target_objs@,$cxx_target_objs,;t t
13246 s,@target_cpu_default@,$target_cpu_default,;t t
13247 s,@GMPLIBS@,$GMPLIBS,;t t
13248 s,@GMPINC@,$GMPINC,;t t
13249 s,@LIBOBJS@,$LIBOBJS,;t t
13250 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13251 /@language_hooks@/r $language_hooks
13252 s,@language_hooks@,,;t t
13253 CEOF
13255 _ACEOF
13257 cat >>$CONFIG_STATUS <<\_ACEOF
13258 # Split the substitutions into bite-sized pieces for seds with
13259 # small command number limits, like on Digital OSF/1 and HP-UX.
13260 ac_max_sed_lines=48
13261 ac_sed_frag=1 # Number of current file.
13262 ac_beg=1 # First line for current file.
13263 ac_end=$ac_max_sed_lines # Line after last line for current file.
13264 ac_more_lines=:
13265 ac_sed_cmds=
13266 while $ac_more_lines; do
13267 if test $ac_beg -gt 1; then
13268 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13269 else
13270 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13272 if test ! -s $tmp/subs.frag; then
13273 ac_more_lines=false
13274 else
13275 # The purpose of the label and of the branching condition is to
13276 # speed up the sed processing (if there are no `@' at all, there
13277 # is no need to browse any of the substitutions).
13278 # These are the two extra sed commands mentioned above.
13279 (echo ':t
13280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13281 if test -z "$ac_sed_cmds"; then
13282 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13283 else
13284 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13286 ac_sed_frag=`expr $ac_sed_frag + 1`
13287 ac_beg=$ac_end
13288 ac_end=`expr $ac_end + $ac_max_sed_lines`
13290 done
13291 if test -z "$ac_sed_cmds"; then
13292 ac_sed_cmds=cat
13294 fi # test -n "$CONFIG_FILES"
13296 _ACEOF
13297 cat >>$CONFIG_STATUS <<\_ACEOF
13298 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13300 case $ac_file in
13301 - | *:- | *:-:* ) # input from stdin
13302 cat >$tmp/stdin
13303 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13305 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13307 * ) ac_file_in=$ac_file.in ;;
13308 esac
13310 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13311 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13312 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13313 X"$ac_file" : 'X\(//\)[^/]' \| \
13314 X"$ac_file" : 'X\(//\)$' \| \
13315 X"$ac_file" : 'X\(/\)' \| \
13316 . : '\(.\)' 2>/dev/null ||
13317 echo X"$ac_file" |
13318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13320 /^X\(\/\/\)$/{ s//\1/; q; }
13321 /^X\(\/\).*/{ s//\1/; q; }
13322 s/.*/./; q'`
13323 { if $as_mkdir_p; then
13324 mkdir -p "$ac_dir"
13325 else
13326 as_dir="$ac_dir"
13327 as_dirs=
13328 while test ! -d "$as_dir"; do
13329 as_dirs="$as_dir $as_dirs"
13330 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13332 X"$as_dir" : 'X\(//\)[^/]' \| \
13333 X"$as_dir" : 'X\(//\)$' \| \
13334 X"$as_dir" : 'X\(/\)' \| \
13335 . : '\(.\)' 2>/dev/null ||
13336 echo X"$as_dir" |
13337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13339 /^X\(\/\/\)$/{ s//\1/; q; }
13340 /^X\(\/\).*/{ s//\1/; q; }
13341 s/.*/./; q'`
13342 done
13343 test ! -n "$as_dirs" || mkdir $as_dirs
13344 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13345 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13346 { (exit 1); exit 1; }; }; }
13348 ac_builddir=.
13350 if test "$ac_dir" != .; then
13351 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13352 # A "../" for each directory in $ac_dir_suffix.
13353 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13354 else
13355 ac_dir_suffix= ac_top_builddir=
13358 case $srcdir in
13359 .) # No --srcdir option. We are building in place.
13360 ac_srcdir=.
13361 if test -z "$ac_top_builddir"; then
13362 ac_top_srcdir=.
13363 else
13364 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13365 fi ;;
13366 [\\/]* | ?:[\\/]* ) # Absolute path.
13367 ac_srcdir=$srcdir$ac_dir_suffix;
13368 ac_top_srcdir=$srcdir ;;
13369 *) # Relative path.
13370 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13371 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13372 esac
13374 # Do not use `cd foo && pwd` to compute absolute paths, because
13375 # the directories may not exist.
13376 case `pwd` in
13377 .) ac_abs_builddir="$ac_dir";;
13379 case "$ac_dir" in
13380 .) ac_abs_builddir=`pwd`;;
13381 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13382 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13383 esac;;
13384 esac
13385 case $ac_abs_builddir in
13386 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13388 case ${ac_top_builddir}. in
13389 .) ac_abs_top_builddir=$ac_abs_builddir;;
13390 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13391 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13392 esac;;
13393 esac
13394 case $ac_abs_builddir in
13395 .) ac_abs_srcdir=$ac_srcdir;;
13397 case $ac_srcdir in
13398 .) ac_abs_srcdir=$ac_abs_builddir;;
13399 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13400 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13401 esac;;
13402 esac
13403 case $ac_abs_builddir in
13404 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13406 case $ac_top_srcdir in
13407 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13408 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13409 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13410 esac;;
13411 esac
13415 # Let's still pretend it is `configure' which instantiates (i.e., don't
13416 # use $as_me), people would be surprised to read:
13417 # /* config.h. Generated by config.status. */
13418 if test x"$ac_file" = x-; then
13419 configure_input=
13420 else
13421 configure_input="$ac_file. "
13423 configure_input=$configure_input"Generated from `echo $ac_file_in |
13424 sed 's,.*/,,'` by configure."
13426 # First look for the input files in the build tree, otherwise in the
13427 # src tree.
13428 ac_file_inputs=`IFS=:
13429 for f in $ac_file_in; do
13430 case $f in
13431 -) echo $tmp/stdin ;;
13432 [\\/$]*)
13433 # Absolute (can't be DOS-style, as IFS=:)
13434 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13435 echo "$as_me: error: cannot find input file: $f" >&2;}
13436 { (exit 1); exit 1; }; }
13437 echo "$f";;
13438 *) # Relative
13439 if test -f "$f"; then
13440 # Build tree
13441 echo "$f"
13442 elif test -f "$srcdir/$f"; then
13443 # Source tree
13444 echo "$srcdir/$f"
13445 else
13446 # /dev/null tree
13447 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13448 echo "$as_me: error: cannot find input file: $f" >&2;}
13449 { (exit 1); exit 1; }; }
13450 fi;;
13451 esac
13452 done` || { (exit 1); exit 1; }
13454 if test x"$ac_file" != x-; then
13455 { echo "$as_me:$LINENO: creating $ac_file" >&5
13456 echo "$as_me: creating $ac_file" >&6;}
13457 rm -f "$ac_file"
13459 _ACEOF
13460 cat >>$CONFIG_STATUS <<_ACEOF
13461 sed "$ac_vpsub
13462 $extrasub
13463 _ACEOF
13464 cat >>$CONFIG_STATUS <<\_ACEOF
13466 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13467 s,@configure_input@,$configure_input,;t t
13468 s,@srcdir@,$ac_srcdir,;t t
13469 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13470 s,@top_srcdir@,$ac_top_srcdir,;t t
13471 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13472 s,@builddir@,$ac_builddir,;t t
13473 s,@abs_builddir@,$ac_abs_builddir,;t t
13474 s,@top_builddir@,$ac_top_builddir,;t t
13475 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13476 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13477 rm -f $tmp/stdin
13478 if test x"$ac_file" != x-; then
13479 mv $tmp/out $ac_file
13480 else
13481 cat $tmp/out
13482 rm -f $tmp/out
13485 done
13486 _ACEOF
13487 cat >>$CONFIG_STATUS <<\_ACEOF
13490 # CONFIG_HEADER section.
13493 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13494 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13496 # ac_d sets the value in "#define NAME VALUE" lines.
13497 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13498 ac_dB='[ ].*$,\1#\2'
13499 ac_dC=' '
13500 ac_dD=',;t'
13501 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13502 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13503 ac_uB='$,\1#\2define\3'
13504 ac_uC=' '
13505 ac_uD=',;t'
13507 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13508 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13509 case $ac_file in
13510 - | *:- | *:-:* ) # input from stdin
13511 cat >$tmp/stdin
13512 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13513 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13514 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13515 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13516 * ) ac_file_in=$ac_file.in ;;
13517 esac
13519 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13520 echo "$as_me: creating $ac_file" >&6;}
13522 # First look for the input files in the build tree, otherwise in the
13523 # src tree.
13524 ac_file_inputs=`IFS=:
13525 for f in $ac_file_in; do
13526 case $f in
13527 -) echo $tmp/stdin ;;
13528 [\\/$]*)
13529 # Absolute (can't be DOS-style, as IFS=:)
13530 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13531 echo "$as_me: error: cannot find input file: $f" >&2;}
13532 { (exit 1); exit 1; }; }
13533 # Do quote $f, to prevent DOS paths from being IFS'd.
13534 echo "$f";;
13535 *) # Relative
13536 if test -f "$f"; then
13537 # Build tree
13538 echo "$f"
13539 elif test -f "$srcdir/$f"; then
13540 # Source tree
13541 echo "$srcdir/$f"
13542 else
13543 # /dev/null tree
13544 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13545 echo "$as_me: error: cannot find input file: $f" >&2;}
13546 { (exit 1); exit 1; }; }
13547 fi;;
13548 esac
13549 done` || { (exit 1); exit 1; }
13550 # Remove the trailing spaces.
13551 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13553 _ACEOF
13555 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13556 # `conftest.undefs', that substitutes the proper values into
13557 # config.h.in to produce config.h. The first handles `#define'
13558 # templates, and the second `#undef' templates.
13559 # And first: Protect against being on the right side of a sed subst in
13560 # config.status. Protect against being in an unquoted here document
13561 # in config.status.
13562 rm -f conftest.defines conftest.undefs
13563 # Using a here document instead of a string reduces the quoting nightmare.
13564 # Putting comments in sed scripts is not portable.
13566 # `end' is used to avoid that the second main sed command (meant for
13567 # 0-ary CPP macros) applies to n-ary macro definitions.
13568 # See the Autoconf documentation for `clear'.
13569 cat >confdef2sed.sed <<\_ACEOF
13570 s/[\\&,]/\\&/g
13571 s,[\\$`],\\&,g
13572 t clear
13573 : clear
13574 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13575 t end
13576 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13577 : end
13578 _ACEOF
13579 # If some macros were called several times there might be several times
13580 # the same #defines, which is useless. Nevertheless, we may not want to
13581 # sort them, since we want the *last* AC-DEFINE to be honored.
13582 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13583 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13584 rm -f confdef2sed.sed
13586 # This sed command replaces #undef with comments. This is necessary, for
13587 # example, in the case of _POSIX_SOURCE, which is predefined and required
13588 # on some systems where configure will not decide to define it.
13589 cat >>conftest.undefs <<\_ACEOF
13590 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13591 _ACEOF
13593 # Break up conftest.defines because some shells have a limit on the size
13594 # of here documents, and old seds have small limits too (100 cmds).
13595 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13596 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13597 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13598 echo ' :' >>$CONFIG_STATUS
13599 rm -f conftest.tail
13600 while grep . conftest.defines >/dev/null
13602 # Write a limited-size here document to $tmp/defines.sed.
13603 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13604 # Speed up: don't consider the non `#define' lines.
13605 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13606 # Work around the forget-to-reset-the-flag bug.
13607 echo 't clr' >>$CONFIG_STATUS
13608 echo ': clr' >>$CONFIG_STATUS
13609 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13610 echo 'CEOF
13611 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13612 rm -f $tmp/in
13613 mv $tmp/out $tmp/in
13614 ' >>$CONFIG_STATUS
13615 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13616 rm -f conftest.defines
13617 mv conftest.tail conftest.defines
13618 done
13619 rm -f conftest.defines
13620 echo ' fi # grep' >>$CONFIG_STATUS
13621 echo >>$CONFIG_STATUS
13623 # Break up conftest.undefs because some shells have a limit on the size
13624 # of here documents, and old seds have small limits too (100 cmds).
13625 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13626 rm -f conftest.tail
13627 while grep . conftest.undefs >/dev/null
13629 # Write a limited-size here document to $tmp/undefs.sed.
13630 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13631 # Speed up: don't consider the non `#undef'
13632 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13633 # Work around the forget-to-reset-the-flag bug.
13634 echo 't clr' >>$CONFIG_STATUS
13635 echo ': clr' >>$CONFIG_STATUS
13636 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13637 echo 'CEOF
13638 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13639 rm -f $tmp/in
13640 mv $tmp/out $tmp/in
13641 ' >>$CONFIG_STATUS
13642 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13643 rm -f conftest.undefs
13644 mv conftest.tail conftest.undefs
13645 done
13646 rm -f conftest.undefs
13648 cat >>$CONFIG_STATUS <<\_ACEOF
13649 # Let's still pretend it is `configure' which instantiates (i.e., don't
13650 # use $as_me), people would be surprised to read:
13651 # /* config.h. Generated by config.status. */
13652 if test x"$ac_file" = x-; then
13653 echo "/* Generated by configure. */" >$tmp/config.h
13654 else
13655 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13657 cat $tmp/in >>$tmp/config.h
13658 rm -f $tmp/in
13659 if test x"$ac_file" != x-; then
13660 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13661 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13662 echo "$as_me: $ac_file is unchanged" >&6;}
13663 else
13664 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13665 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13666 X"$ac_file" : 'X\(//\)[^/]' \| \
13667 X"$ac_file" : 'X\(//\)$' \| \
13668 X"$ac_file" : 'X\(/\)' \| \
13669 . : '\(.\)' 2>/dev/null ||
13670 echo X"$ac_file" |
13671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13673 /^X\(\/\/\)$/{ s//\1/; q; }
13674 /^X\(\/\).*/{ s//\1/; q; }
13675 s/.*/./; q'`
13676 { if $as_mkdir_p; then
13677 mkdir -p "$ac_dir"
13678 else
13679 as_dir="$ac_dir"
13680 as_dirs=
13681 while test ! -d "$as_dir"; do
13682 as_dirs="$as_dir $as_dirs"
13683 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13684 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13685 X"$as_dir" : 'X\(//\)[^/]' \| \
13686 X"$as_dir" : 'X\(//\)$' \| \
13687 X"$as_dir" : 'X\(/\)' \| \
13688 . : '\(.\)' 2>/dev/null ||
13689 echo X"$as_dir" |
13690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13691 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13692 /^X\(\/\/\)$/{ s//\1/; q; }
13693 /^X\(\/\).*/{ s//\1/; q; }
13694 s/.*/./; q'`
13695 done
13696 test ! -n "$as_dirs" || mkdir $as_dirs
13697 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13698 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13699 { (exit 1); exit 1; }; }; }
13701 rm -f $ac_file
13702 mv $tmp/config.h $ac_file
13704 else
13705 cat $tmp/config.h
13706 rm -f $tmp/config.h
13708 done
13709 _ACEOF
13710 cat >>$CONFIG_STATUS <<\_ACEOF
13713 # CONFIG_COMMANDS section.
13715 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13716 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13717 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13718 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13719 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13720 X"$ac_dest" : 'X\(//\)[^/]' \| \
13721 X"$ac_dest" : 'X\(//\)$' \| \
13722 X"$ac_dest" : 'X\(/\)' \| \
13723 . : '\(.\)' 2>/dev/null ||
13724 echo X"$ac_dest" |
13725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13726 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13727 /^X\(\/\/\)$/{ s//\1/; q; }
13728 /^X\(\/\).*/{ s//\1/; q; }
13729 s/.*/./; q'`
13730 { if $as_mkdir_p; then
13731 mkdir -p "$ac_dir"
13732 else
13733 as_dir="$ac_dir"
13734 as_dirs=
13735 while test ! -d "$as_dir"; do
13736 as_dirs="$as_dir $as_dirs"
13737 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13739 X"$as_dir" : 'X\(//\)[^/]' \| \
13740 X"$as_dir" : 'X\(//\)$' \| \
13741 X"$as_dir" : 'X\(/\)' \| \
13742 . : '\(.\)' 2>/dev/null ||
13743 echo X"$as_dir" |
13744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13745 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13746 /^X\(\/\/\)$/{ s//\1/; q; }
13747 /^X\(\/\).*/{ s//\1/; q; }
13748 s/.*/./; q'`
13749 done
13750 test ! -n "$as_dirs" || mkdir $as_dirs
13751 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13752 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13753 { (exit 1); exit 1; }; }; }
13755 ac_builddir=.
13757 if test "$ac_dir" != .; then
13758 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13759 # A "../" for each directory in $ac_dir_suffix.
13760 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13761 else
13762 ac_dir_suffix= ac_top_builddir=
13765 case $srcdir in
13766 .) # No --srcdir option. We are building in place.
13767 ac_srcdir=.
13768 if test -z "$ac_top_builddir"; then
13769 ac_top_srcdir=.
13770 else
13771 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13772 fi ;;
13773 [\\/]* | ?:[\\/]* ) # Absolute path.
13774 ac_srcdir=$srcdir$ac_dir_suffix;
13775 ac_top_srcdir=$srcdir ;;
13776 *) # Relative path.
13777 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13778 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13779 esac
13781 # Do not use `cd foo && pwd` to compute absolute paths, because
13782 # the directories may not exist.
13783 case `pwd` in
13784 .) ac_abs_builddir="$ac_dir";;
13786 case "$ac_dir" in
13787 .) ac_abs_builddir=`pwd`;;
13788 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13789 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13790 esac;;
13791 esac
13792 case $ac_abs_builddir in
13793 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13795 case ${ac_top_builddir}. in
13796 .) ac_abs_top_builddir=$ac_abs_builddir;;
13797 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13798 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13799 esac;;
13800 esac
13801 case $ac_abs_builddir in
13802 .) ac_abs_srcdir=$ac_srcdir;;
13804 case $ac_srcdir in
13805 .) ac_abs_srcdir=$ac_abs_builddir;;
13806 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13807 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13808 esac;;
13809 esac
13810 case $ac_abs_builddir in
13811 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13813 case $ac_top_srcdir in
13814 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13815 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13816 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13817 esac;;
13818 esac
13821 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13822 echo "$as_me: executing $ac_dest commands" >&6;}
13823 case $ac_dest in
13824 default )
13825 case ${CONFIG_HEADERS} in
13826 *auto-host.h:config.in*)
13827 echo > cstamp-h ;;
13828 esac
13829 # Make sure all the subdirs exist.
13830 for d in $subdirs
13832 test -d $d || mkdir $d
13833 done
13834 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13835 # bootstrapping and the installation procedure can still use
13836 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13837 # FLAGS_TO_PASS has been modified to solve the problem there.
13838 # This is virtually a duplicate of what happens in configure.lang; we do
13839 # an extra check to make sure this only happens if ln -s can be used.
13840 if test "$symbolic_link" = "ln -s"; then
13841 for d in ${subdirs} fixinc ; do
13842 STARTDIR=`${PWDCMD-pwd}`
13843 cd $d
13844 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13846 rm -f $t
13847 $symbolic_link ../$t $t 2>/dev/null
13848 done
13849 cd $STARTDIR
13850 done
13851 else true ; fi
13853 esac
13854 done
13855 _ACEOF
13857 cat >>$CONFIG_STATUS <<\_ACEOF
13859 { (exit 0); exit 0; }
13860 _ACEOF
13861 chmod +x $CONFIG_STATUS
13862 ac_clean_files=$ac_clean_files_save
13865 # configure is writing to config.log, and then calls config.status.
13866 # config.status does its own redirection, appending to config.log.
13867 # Unfortunately, on DOS this fails, as config.log is still kept open
13868 # by configure, so config.status won't be able to write to it; its
13869 # output is simply discarded. So we exec the FD to /dev/null,
13870 # effectively closing config.log, so it can be properly (re)opened and
13871 # appended to by config.status. When coming back to configure, we
13872 # need to make the FD available again.
13873 if test "$no_create" != yes; then
13874 ac_cs_success=:
13875 ac_config_status_args=
13876 test "$silent" = yes &&
13877 ac_config_status_args="$ac_config_status_args --quiet"
13878 exec 5>/dev/null
13879 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13880 exec 5>>config.log
13881 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13882 # would make configure fail if this is the last instruction.
13883 $ac_cs_success || { (exit 1); exit 1; }