* doc/contrib.texi (Contributors): Add gfortran contributors and
[official-gcc.git] / gcc / configure
blobf2a5e6775f3978c029fa37753387253f41f0ade1
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 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: misc,tree,rtl,rtlflag,gc,gcac,fold;
871 default is misc,tree,gc,rtlflag
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"
2381 || test ! -s conftest.err'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 (eval $ac_try) 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 (eval $ac_try) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; }; then
2393 ac_compiler_gnu=yes
2394 else
2395 echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2398 ac_compiler_gnu=no
2400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2401 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2404 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2405 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2406 GCC=`test $ac_compiler_gnu = yes && echo yes`
2407 ac_test_CFLAGS=${CFLAGS+set}
2408 ac_save_CFLAGS=$CFLAGS
2409 CFLAGS="-g"
2410 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2411 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2412 if test "${ac_cv_prog_cc_g+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415 cat >conftest.$ac_ext <<_ACEOF
2416 /* confdefs.h. */
2417 _ACEOF
2418 cat confdefs.h >>conftest.$ac_ext
2419 cat >>conftest.$ac_ext <<_ACEOF
2420 /* end confdefs.h. */
2423 main ()
2427 return 0;
2429 _ACEOF
2430 rm -f conftest.$ac_objext
2431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2432 (eval $ac_compile) 2>conftest.er1
2433 ac_status=$?
2434 grep -v '^ *+' conftest.er1 >conftest.err
2435 rm -f conftest.er1
2436 cat conftest.err >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try='test -z "$ac_c_werror_flag"
2440 || test ! -s conftest.err'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 (eval $ac_try) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2452 ac_cv_prog_cc_g=yes
2453 else
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2457 ac_cv_prog_cc_g=no
2459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2462 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2463 if test "$ac_test_CFLAGS" = set; then
2464 CFLAGS=$ac_save_CFLAGS
2465 elif test $ac_cv_prog_cc_g = yes; then
2466 if test "$GCC" = yes; then
2467 CFLAGS="-g -O2"
2468 else
2469 CFLAGS="-g"
2471 else
2472 if test "$GCC" = yes; then
2473 CFLAGS="-O2"
2474 else
2475 CFLAGS=
2478 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2479 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2480 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483 ac_cv_prog_cc_stdc=no
2484 ac_save_CC=$CC
2485 cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h. */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2491 #include <stdarg.h>
2492 #include <stdio.h>
2493 #include <sys/types.h>
2494 #include <sys/stat.h>
2495 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2496 struct buf { int x; };
2497 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2498 static char *e (p, i)
2499 char **p;
2500 int i;
2502 return p[i];
2504 static char *f (char * (*g) (char **, int), char **p, ...)
2506 char *s;
2507 va_list v;
2508 va_start (v,p);
2509 s = g (p, va_arg (v,int));
2510 va_end (v);
2511 return s;
2514 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2515 function prototypes and stuff, but not '\xHH' hex character constants.
2516 These don't provoke an error unfortunately, instead are silently treated
2517 as 'x'. The following induces an error, until -std1 is added to get
2518 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2519 array size at least. It's necessary to write '\x00'==0 to get something
2520 that's true only with -std1. */
2521 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2523 int test (int i, double x);
2524 struct s1 {int (*f) (int a);};
2525 struct s2 {int (*f) (double a);};
2526 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2527 int argc;
2528 char **argv;
2530 main ()
2532 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2534 return 0;
2536 _ACEOF
2537 # Don't try gcc -ansi; that turns off useful extensions and
2538 # breaks some systems' header files.
2539 # AIX -qlanglvl=ansi
2540 # Ultrix and OSF/1 -std1
2541 # HP-UX 10.20 and later -Ae
2542 # HP-UX older versions -Aa -D_HPUX_SOURCE
2543 # SVR4 -Xc -D__EXTENSIONS__
2544 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2546 CC="$ac_save_CC $ac_arg"
2547 rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>conftest.er1
2550 ac_status=$?
2551 grep -v '^ *+' conftest.er1 >conftest.err
2552 rm -f conftest.er1
2553 cat conftest.err >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } &&
2556 { ac_try='test -z "$ac_c_werror_flag"
2557 || test ! -s conftest.err'
2558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 (eval $ac_try) 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; } &&
2563 { ac_try='test -s conftest.$ac_objext'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2569 ac_cv_prog_cc_stdc=$ac_arg
2570 break
2571 else
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2576 rm -f conftest.err conftest.$ac_objext
2577 done
2578 rm -f conftest.$ac_ext conftest.$ac_objext
2579 CC=$ac_save_CC
2583 case "x$ac_cv_prog_cc_stdc" in
2584 x|xno)
2585 echo "$as_me:$LINENO: result: none needed" >&5
2586 echo "${ECHO_T}none needed" >&6 ;;
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2589 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2590 CC="$CC $ac_cv_prog_cc_stdc" ;;
2591 esac
2593 # Some people use a C++ compiler to compile C. Since we use `exit',
2594 # in C++ we need to declare it. In case someone uses the same compiler
2595 # for both compiling C and C++ we need to have the C++ compiler decide
2596 # the declaration of exit, since it's the most demanding environment.
2597 cat >conftest.$ac_ext <<_ACEOF
2598 #ifndef __cplusplus
2599 choke me
2600 #endif
2601 _ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2624 for ac_declaration in \
2625 '' \
2626 'extern "C" void std::exit (int) throw (); using std::exit;' \
2627 'extern "C" void std::exit (int); using std::exit;' \
2628 'extern "C" void exit (int) throw ();' \
2629 'extern "C" void exit (int);' \
2630 'void exit (int);'
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2638 $ac_declaration
2639 #include <stdlib.h>
2641 main ()
2643 exit (42);
2645 return 0;
2647 _ACEOF
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>conftest.er1
2651 ac_status=$?
2652 grep -v '^ *+' conftest.er1 >conftest.err
2653 rm -f conftest.er1
2654 cat conftest.err >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -z "$ac_c_werror_flag"
2658 || test ! -s conftest.err'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 (eval $ac_try) 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; } &&
2664 { ac_try='test -s conftest.$ac_objext'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 (eval $ac_try) 2>&5
2667 ac_status=$?
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2671 else
2672 echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2675 continue
2677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2678 cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h. */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2684 $ac_declaration
2686 main ()
2688 exit (42);
2690 return 0;
2692 _ACEOF
2693 rm -f conftest.$ac_objext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>conftest.er1
2696 ac_status=$?
2697 grep -v '^ *+' conftest.er1 >conftest.err
2698 rm -f conftest.er1
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag"
2703 || test ! -s conftest.err'
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); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 (eval $ac_try) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2715 break
2716 else
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2722 done
2723 rm -f conftest*
2724 if test -n "$ac_declaration"; then
2725 echo '#ifdef __cplusplus' >>confdefs.h
2726 echo $ac_declaration >>confdefs.h
2727 echo '#endif' >>confdefs.h
2730 else
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 ac_ext=c
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 if test "x$CC" != xcc; then
2743 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2744 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2745 else
2746 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2747 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2749 set dummy $CC; ac_cc=`echo $2 |
2750 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2751 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h. */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2762 main ()
2766 return 0;
2768 _ACEOF
2769 # Make sure it works both with $CC and with simple cc.
2770 # We do the test twice because some compilers refuse to overwrite an
2771 # existing .o file with -o, though they will create one.
2772 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2773 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 (eval $ac_try) 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); };
2783 then
2784 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2785 if test "x$CC" != xcc; then
2786 # Test first that cc exists at all.
2787 if { ac_try='cc -c conftest.$ac_ext >&5'
2788 { (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); }; }; then
2793 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2794 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } &&
2799 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 (eval $ac_try) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); };
2804 then
2805 # cc works too.
2807 else
2808 # cc exists but doesn't like -o.
2809 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2813 else
2814 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2816 rm -f conftest*
2819 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2820 echo "$as_me:$LINENO: result: yes" >&5
2821 echo "${ECHO_T}yes" >&6
2822 else
2823 echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2826 cat >>confdefs.h <<\_ACEOF
2827 #define NO_MINUS_C_MINUS_O 1
2828 _ACEOF
2832 # autoconf is lame and doesn't give us any substitution variable for this.
2833 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2834 NO_MINUS_C_MINUS_O=yes
2835 else
2836 OUTPUT_OPTION='-o $@'
2841 # -------------------------
2842 # Check C compiler features
2843 # -------------------------
2845 ac_ext=c
2846 ac_cpp='$CPP $CPPFLAGS'
2847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2851 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2852 # On Suns, sometimes $CPP names a directory.
2853 if test -n "$CPP" && test -d "$CPP"; then
2854 CPP=
2856 if test -z "$CPP"; then
2857 if test "${ac_cv_prog_CPP+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860 # Double quotes because CPP needs to be expanded
2861 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2863 ac_preproc_ok=false
2864 for ac_c_preproc_warn_flag in '' yes
2866 # Use a header file that comes with gcc, so configuring glibc
2867 # with a fresh cross-compiler works.
2868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2869 # <limits.h> exists even on freestanding compilers.
2870 # On the NeXT, cc -E runs the code through the compiler's parser,
2871 # not just through cpp. "Syntax error" is here to catch this case.
2872 cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h. */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2878 #ifdef __STDC__
2879 # include <limits.h>
2880 #else
2881 # include <assert.h>
2882 #endif
2883 Syntax error
2884 _ACEOF
2885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } >/dev/null; then
2893 if test -s conftest.err; then
2894 ac_cpp_err=$ac_c_preproc_warn_flag
2895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2896 else
2897 ac_cpp_err=
2899 else
2900 ac_cpp_err=yes
2902 if test -z "$ac_cpp_err"; then
2904 else
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2908 # Broken: fails on valid input.
2909 continue
2911 rm -f conftest.err conftest.$ac_ext
2913 # OK, works on sane cases. Now check whether non-existent headers
2914 # can be detected and how.
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 #include <ac_nonexistent.h>
2922 _ACEOF
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2925 ac_status=$?
2926 grep -v '^ *+' conftest.er1 >conftest.err
2927 rm -f conftest.er1
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev/null; then
2931 if test -s conftest.err; then
2932 ac_cpp_err=$ac_c_preproc_warn_flag
2933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2934 else
2935 ac_cpp_err=
2937 else
2938 ac_cpp_err=yes
2940 if test -z "$ac_cpp_err"; then
2941 # Broken: success on invalid input.
2942 continue
2943 else
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2947 # Passes both tests.
2948 ac_preproc_ok=:
2949 break
2951 rm -f conftest.err conftest.$ac_ext
2953 done
2954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2955 rm -f conftest.err conftest.$ac_ext
2956 if $ac_preproc_ok; then
2957 break
2960 done
2961 ac_cv_prog_CPP=$CPP
2964 CPP=$ac_cv_prog_CPP
2965 else
2966 ac_cv_prog_CPP=$CPP
2968 echo "$as_me:$LINENO: result: $CPP" >&5
2969 echo "${ECHO_T}$CPP" >&6
2970 ac_preproc_ok=false
2971 for ac_c_preproc_warn_flag in '' yes
2973 # Use a header file that comes with gcc, so configuring glibc
2974 # with a fresh cross-compiler works.
2975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2976 # <limits.h> exists even on freestanding compilers.
2977 # On the NeXT, cc -E runs the code through the compiler's parser,
2978 # not just through cpp. "Syntax error" is here to catch this case.
2979 cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h. */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 #ifdef __STDC__
2986 # include <limits.h>
2987 #else
2988 # include <assert.h>
2989 #endif
2990 Syntax error
2991 _ACEOF
2992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } >/dev/null; then
3000 if test -s conftest.err; then
3001 ac_cpp_err=$ac_c_preproc_warn_flag
3002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3003 else
3004 ac_cpp_err=
3006 else
3007 ac_cpp_err=yes
3009 if test -z "$ac_cpp_err"; then
3011 else
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3015 # Broken: fails on valid input.
3016 continue
3018 rm -f conftest.err conftest.$ac_ext
3020 # OK, works on sane cases. Now check whether non-existent headers
3021 # can be detected and how.
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028 #include <ac_nonexistent.h>
3029 _ACEOF
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null; then
3038 if test -s conftest.err; then
3039 ac_cpp_err=$ac_c_preproc_warn_flag
3040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3041 else
3042 ac_cpp_err=
3044 else
3045 ac_cpp_err=yes
3047 if test -z "$ac_cpp_err"; then
3048 # Broken: success on invalid input.
3049 continue
3050 else
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3054 # Passes both tests.
3055 ac_preproc_ok=:
3056 break
3058 rm -f conftest.err conftest.$ac_ext
3060 done
3061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3062 rm -f conftest.err conftest.$ac_ext
3063 if $ac_preproc_ok; then
3065 else
3066 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3067 See \`config.log' for more details." >&5
3068 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3073 ac_ext=c
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 echo "$as_me:$LINENO: checking for inline" >&5
3081 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3082 if test "${ac_cv_c_inline+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085 ac_cv_c_inline=no
3086 for ac_kw in inline __inline__ __inline; do
3087 cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h. */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3093 #ifndef __cplusplus
3094 typedef int foo_t;
3095 static $ac_kw foo_t static_foo () {return 0; }
3096 $ac_kw foo_t foo () {return 0; }
3097 #endif
3099 _ACEOF
3100 rm -f conftest.$ac_objext
3101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3102 (eval $ac_compile) 2>conftest.er1
3103 ac_status=$?
3104 grep -v '^ *+' conftest.er1 >conftest.err
3105 rm -f conftest.er1
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } &&
3109 { ac_try='test -z "$ac_c_werror_flag"
3110 || test ! -s conftest.err'
3111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112 (eval $ac_try) 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; } &&
3116 { ac_try='test -s conftest.$ac_objext'
3117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118 (eval $ac_try) 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; }; then
3122 ac_cv_c_inline=$ac_kw; break
3123 else
3124 echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3129 done
3132 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3133 echo "${ECHO_T}$ac_cv_c_inline" >&6
3136 case $ac_cv_c_inline in
3137 inline | yes) ;;
3139 case $ac_cv_c_inline in
3140 no) ac_val=;;
3141 *) ac_val=$ac_cv_c_inline;;
3142 esac
3143 cat >>confdefs.h <<_ACEOF
3144 #ifndef __cplusplus
3145 #define inline $ac_val
3146 #endif
3147 _ACEOF
3149 esac
3152 echo "$as_me:$LINENO: checking for long long int" >&5
3153 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3154 if test "${ac_cv_c_long_long+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 else
3157 cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h. */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3165 main ()
3167 long long int i;
3169 return 0;
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174 (eval $ac_compile) 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_c_werror_flag"
3182 || test ! -s conftest.err'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 ac_cv_c_long_long=yes
3195 else
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3199 ac_cv_c_long_long=no
3201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3203 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3204 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3205 if test $ac_cv_c_long_long = yes; then
3207 cat >>confdefs.h <<\_ACEOF
3208 #define HAVE_LONG_LONG 1
3209 _ACEOF
3212 echo "$as_me:$LINENO: checking for __int64" >&5
3213 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3214 if test "${ac_cv_c___int64+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217 cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h. */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3225 main ()
3227 __int64 i;
3229 return 0;
3231 _ACEOF
3232 rm -f conftest.$ac_objext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234 (eval $ac_compile) 2>conftest.er1
3235 ac_status=$?
3236 grep -v '^ *+' conftest.er1 >conftest.err
3237 rm -f conftest.er1
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -z "$ac_c_werror_flag"
3242 || test ! -s conftest.err'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 (eval $ac_try) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 ac_cv_c___int64=yes
3255 else
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 ac_cv_c___int64=no
3261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3264 echo "${ECHO_T}$ac_cv_c___int64" >&6
3265 if test $ac_cv_c___int64 = yes; then
3267 cat >>confdefs.h <<\_ACEOF
3268 #define HAVE___INT64 1
3269 _ACEOF
3274 # sizeof(char) is 1 by definition.
3275 echo "$as_me:$LINENO: checking size of void *" >&5
3276 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3277 if test "${ac_cv_sizeof_void_p+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include "confdefs.h"
3288 #include <sys/types.h>
3292 main ()
3294 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3296 return 0;
3298 _ACEOF
3299 rm -f conftest.$ac_objext
3300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3301 (eval $ac_compile) 2>conftest.er1
3302 ac_status=$?
3303 grep -v '^ *+' conftest.er1 >conftest.err
3304 rm -f conftest.er1
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } &&
3308 { ac_try='test -z "$ac_c_werror_flag"
3309 || test ! -s conftest.err'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311 (eval $ac_try) 2>&5
3312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; } &&
3315 { ac_try='test -s conftest.$ac_objext'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 (eval $ac_try) 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3321 ac_cv_sizeof_void_p=$ac_size
3322 else
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3328 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3329 done
3333 if test x$ac_cv_sizeof_void_p = x ; then
3334 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3335 echo "$as_me: error: cannot determine a size for void *" >&2;}
3336 { (exit 1); exit 1; }; }
3338 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3339 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3341 cat >>confdefs.h <<_ACEOF
3342 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3343 _ACEOF
3346 echo "$as_me:$LINENO: checking size of short" >&5
3347 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3348 if test "${ac_cv_sizeof_short+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3352 cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h. */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3358 #include "confdefs.h"
3359 #include <sys/types.h>
3363 main ()
3365 switch (0) case 0: case (sizeof (short) == $ac_size):;
3367 return 0;
3369 _ACEOF
3370 rm -f conftest.$ac_objext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372 (eval $ac_compile) 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try='test -z "$ac_c_werror_flag"
3380 || test ! -s conftest.err'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 (eval $ac_try) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 (eval $ac_try) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 ac_cv_sizeof_short=$ac_size
3393 else
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3399 if test x$ac_cv_sizeof_short != x ; then break; fi
3400 done
3404 if test x$ac_cv_sizeof_short = x ; then
3405 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3406 echo "$as_me: error: cannot determine a size for short" >&2;}
3407 { (exit 1); exit 1; }; }
3409 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3410 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3412 cat >>confdefs.h <<_ACEOF
3413 #define SIZEOF_SHORT $ac_cv_sizeof_short
3414 _ACEOF
3417 echo "$as_me:$LINENO: checking size of int" >&5
3418 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3419 if test "${ac_cv_sizeof_int+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3423 cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h. */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3429 #include "confdefs.h"
3430 #include <sys/types.h>
3434 main ()
3436 switch (0) case 0: case (sizeof (int) == $ac_size):;
3438 return 0;
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443 (eval $ac_compile) 2>conftest.er1
3444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
3450 { ac_try='test -z "$ac_c_werror_flag"
3451 || test ! -s conftest.err'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 (eval $ac_try) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; } &&
3457 { ac_try='test -s conftest.$ac_objext'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459 (eval $ac_try) 2>&5
3460 ac_status=$?
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; }; then
3463 ac_cv_sizeof_int=$ac_size
3464 else
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3470 if test x$ac_cv_sizeof_int != x ; then break; fi
3471 done
3475 if test x$ac_cv_sizeof_int = x ; then
3476 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3477 echo "$as_me: error: cannot determine a size for int" >&2;}
3478 { (exit 1); exit 1; }; }
3480 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3481 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3483 cat >>confdefs.h <<_ACEOF
3484 #define SIZEOF_INT $ac_cv_sizeof_int
3485 _ACEOF
3488 echo "$as_me:$LINENO: checking size of long" >&5
3489 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3490 if test "${ac_cv_sizeof_long+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3494 cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h. */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500 #include "confdefs.h"
3501 #include <sys/types.h>
3505 main ()
3507 switch (0) case 0: case (sizeof (long) == $ac_size):;
3509 return 0;
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_cv_sizeof_long=$ac_size
3535 else
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3541 if test x$ac_cv_sizeof_long != x ; then break; fi
3542 done
3546 if test x$ac_cv_sizeof_long = x ; then
3547 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3548 echo "$as_me: error: cannot determine a size for long" >&2;}
3549 { (exit 1); exit 1; }; }
3551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3552 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3554 cat >>confdefs.h <<_ACEOF
3555 #define SIZEOF_LONG $ac_cv_sizeof_long
3556 _ACEOF
3559 if test $ac_cv_c_long_long = yes; then
3560 echo "$as_me:$LINENO: checking size of long long" >&5
3561 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3562 if test "${ac_cv_sizeof_long_long+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3566 cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 #include "confdefs.h"
3573 #include <sys/types.h>
3577 main ()
3579 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3581 return 0;
3583 _ACEOF
3584 rm -f conftest.$ac_objext
3585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3586 (eval $ac_compile) 2>conftest.er1
3587 ac_status=$?
3588 grep -v '^ *+' conftest.er1 >conftest.err
3589 rm -f conftest.er1
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } &&
3593 { ac_try='test -z "$ac_c_werror_flag"
3594 || test ! -s conftest.err'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596 (eval $ac_try) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; } &&
3600 { ac_try='test -s conftest.$ac_objext'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 (eval $ac_try) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3606 ac_cv_sizeof_long_long=$ac_size
3607 else
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3613 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3614 done
3618 if test x$ac_cv_sizeof_long_long = x ; then
3619 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3620 echo "$as_me: error: cannot determine a size for long long" >&2;}
3621 { (exit 1); exit 1; }; }
3623 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3624 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3626 cat >>confdefs.h <<_ACEOF
3627 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3628 _ACEOF
3632 if test $ac_cv_c___int64 = yes; then
3633 echo "$as_me:$LINENO: checking size of __int64" >&5
3634 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3635 if test "${ac_cv_sizeof___int64+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3639 cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h. */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645 #include "confdefs.h"
3646 #include <sys/types.h>
3650 main ()
3652 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3654 return 0;
3656 _ACEOF
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_cv_sizeof___int64=$ac_size
3680 else
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3686 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3687 done
3691 if test x$ac_cv_sizeof___int64 = x ; then
3692 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3693 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3694 { (exit 1); exit 1; }; }
3696 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3697 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3699 cat >>confdefs.h <<_ACEOF
3700 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3701 _ACEOF
3706 # ---------------------
3707 # Warnings and checking
3708 # ---------------------
3710 # Check $CC warning features (if it's GCC).
3711 # We want to use -pedantic, but we don't want warnings about
3712 # * 'long long'
3713 # * variadic macros
3714 # So, we only use -pedantic if we can disable those warnings.
3716 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3717 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3718 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721 save_CFLAGS="$CFLAGS"
3722 CFLAGS="-Wno-long-long"
3723 cat >conftest.$ac_ext <<_ACEOF
3724 /* confdefs.h. */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3730 _ACEOF
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733 (eval $ac_compile) 2>conftest.er1
3734 ac_status=$?
3735 grep -v '^ *+' conftest.er1 >conftest.err
3736 rm -f conftest.er1
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } &&
3740 { ac_try='test -z "$ac_c_werror_flag"
3741 || test ! -s conftest.err'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 (eval $ac_try) 2>&5
3744 ac_status=$?
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; } &&
3747 { ac_try='test -s conftest.$ac_objext'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; }; then
3753 ac_cv_prog_cc_w_no_long_long=yes
3754 else
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3758 ac_cv_prog_cc_w_no_long_long=no
3760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3761 CFLAGS="$save_CFLAGS"
3764 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3765 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3767 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3768 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3769 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 save_CFLAGS="$CFLAGS"
3773 CFLAGS="-Wno-variadic-macros"
3774 cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h. */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3781 _ACEOF
3782 rm -f conftest.$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784 (eval $ac_compile) 2>conftest.er1
3785 ac_status=$?
3786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try='test -z "$ac_c_werror_flag"
3792 || test ! -s conftest.err'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; } &&
3798 { ac_try='test -s conftest.$ac_objext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 (eval $ac_try) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 ac_cv_prog_cc_w_no_variadic_macros=yes
3805 else
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 ac_cv_prog_cc_w_no_variadic_macros=no
3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3812 CFLAGS="$save_CFLAGS"
3815 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3816 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3818 strict1_warn=
3819 if test $ac_cv_prog_cc_w_no_long_long = yes \
3820 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3821 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3825 # Add -Wold-style-definition if it's accepted
3826 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3827 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3828 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 save_CFLAGS="$CFLAGS"
3832 CFLAGS="-Wold-style-definition"
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3840 _ACEOF
3841 rm -f conftest.$ac_objext
3842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3843 (eval $ac_compile) 2>conftest.er1
3844 ac_status=$?
3845 grep -v '^ *+' conftest.er1 >conftest.err
3846 rm -f conftest.er1
3847 cat conftest.err >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } &&
3850 { ac_try='test -z "$ac_c_werror_flag"
3851 || test ! -s conftest.err'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 (eval $ac_try) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest.$ac_objext'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 (eval $ac_try) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; }; then
3863 ac_cv_prog_cc_w_old_style_definition=yes
3864 else
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3868 ac_cv_prog_cc_w_old_style_definition=no
3870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3871 CFLAGS="$save_CFLAGS"
3874 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3875 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3876 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3877 strict1_warn="${strict1_warn} -Wold-style-definition"
3880 # Enable -Werror, period.
3881 # Check whether --enable-werror_always or --disable-werror_always was given.
3882 if test "${enable_werror_always+set}" = set; then
3883 enableval="$enable_werror_always"
3885 else
3886 enable_werror_always=no
3888 if test x${enable_werror_always} = xyes ; then
3889 strict1_warn="${strict1_warn} -Werror"
3890 WERROR=-Werror
3893 # If the native compiler is GCC, we can enable warnings even in stage1.
3894 # That's useful for people building cross-compilers, or just running a
3895 # quick `make'.
3896 warn_cflags=
3897 if test "x$GCC" = "xyes"; then
3898 warn_cflags='$(GCC_WARN_CFLAGS)'
3902 # Enable -Werror in bootstrap stage2 and later.
3903 # Change the default to "no" on release branches.
3904 # Check whether --enable-werror or --disable-werror was given.
3905 if test "${enable_werror+set}" = set; then
3906 enableval="$enable_werror"
3908 else
3909 enable_werror=yes
3911 if test x$enable_werror = xyes ; then
3912 WERROR=-Werror
3916 # Enable expensive internal checks
3917 # Check whether --enable-checking or --disable-checking was given.
3918 if test "${enable_checking+set}" = set; then
3919 enableval="$enable_checking"
3920 ac_checking=
3921 ac_tree_checking=
3922 ac_rtl_checking=
3923 ac_rtlflag_checking=
3924 ac_gc_checking=
3925 ac_gc_always_collect=
3926 ac_fold_checking=
3927 case "${enableval}" in
3928 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3929 ac_rtlflag_checking=1 ;;
3930 no) ;;
3931 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3932 set fnord $enableval; shift
3933 IFS="$ac_save_IFS"
3934 for check
3936 case $check in
3937 misc) ac_checking=1 ;;
3938 tree) ac_tree_checking=1 ;;
3939 rtlflag) ac_rtlflag_checking=1 ;;
3940 rtl) ac_rtl_checking=1 ;;
3941 gc) ac_gc_checking=1 ;;
3942 gcac) ac_gc_always_collect=1 ;;
3943 fold) ac_fold_checking=1 ;;
3944 valgrind) ac_checking_valgrind=1 ;;
3945 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3946 echo "$as_me: error: unknown check category $check" >&2;}
3947 { (exit 1); exit 1; }; } ;;
3948 esac
3949 done
3951 esac
3953 else
3954 # Enable some checks by default for development versions of GCC
3955 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3957 nocommon_flag=""
3958 if test x$ac_checking != x ; then
3960 cat >>confdefs.h <<\_ACEOF
3961 #define ENABLE_CHECKING 1
3962 _ACEOF
3964 nocommon_flag=-fno-common
3967 if test x$ac_tree_checking != x ; then
3969 cat >>confdefs.h <<\_ACEOF
3970 #define ENABLE_TREE_CHECKING 1
3971 _ACEOF
3973 TREEBROWSER=tree-browser.o
3976 if test x$ac_rtl_checking != x ; then
3978 cat >>confdefs.h <<\_ACEOF
3979 #define ENABLE_RTL_CHECKING 1
3980 _ACEOF
3983 if test x$ac_rtlflag_checking != x ; then
3985 cat >>confdefs.h <<\_ACEOF
3986 #define ENABLE_RTL_FLAG_CHECKING 1
3987 _ACEOF
3990 if test x$ac_gc_checking != x ; then
3992 cat >>confdefs.h <<\_ACEOF
3993 #define ENABLE_GC_CHECKING 1
3994 _ACEOF
3997 if test x$ac_gc_always_collect != x ; then
3999 cat >>confdefs.h <<\_ACEOF
4000 #define ENABLE_GC_ALWAYS_COLLECT 1
4001 _ACEOF
4004 if test x$ac_fold_checking != x ; then
4006 cat >>confdefs.h <<\_ACEOF
4007 #define ENABLE_FOLD_CHECKING 1
4008 _ACEOF
4011 valgrind_path_defines=
4012 valgrind_command=
4015 echo "$as_me:$LINENO: checking for egrep" >&5
4016 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4017 if test "${ac_cv_prog_egrep+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4021 then ac_cv_prog_egrep='grep -E'
4022 else ac_cv_prog_egrep='egrep'
4025 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4026 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4027 EGREP=$ac_cv_prog_egrep
4030 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4031 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4032 if test "${ac_cv_header_stdc+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035 cat >conftest.$ac_ext <<_ACEOF
4036 /* confdefs.h. */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4041 #include <stdlib.h>
4042 #include <stdarg.h>
4043 #include <string.h>
4044 #include <float.h>
4047 main ()
4051 return 0;
4053 _ACEOF
4054 rm -f conftest.$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056 (eval $ac_compile) 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try='test -z "$ac_c_werror_flag"
4064 || test ! -s conftest.err'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 (eval $ac_try) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; } &&
4070 { ac_try='test -s conftest.$ac_objext'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 ac_cv_header_stdc=yes
4077 else
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4081 ac_cv_header_stdc=no
4083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4085 if test $ac_cv_header_stdc = yes; then
4086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4087 cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h. */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4093 #include <string.h>
4095 _ACEOF
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 $EGREP "memchr" >/dev/null 2>&1; then
4099 else
4100 ac_cv_header_stdc=no
4102 rm -f conftest*
4106 if test $ac_cv_header_stdc = yes; then
4107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4108 cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h. */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 #include <stdlib.h>
4116 _ACEOF
4117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4118 $EGREP "free" >/dev/null 2>&1; then
4120 else
4121 ac_cv_header_stdc=no
4123 rm -f conftest*
4127 if test $ac_cv_header_stdc = yes; then
4128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4129 if test "$cross_compiling" = yes; then
4131 else
4132 cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h. */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 #include <ctype.h>
4139 #if ((' ' & 0x0FF) == 0x020)
4140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4142 #else
4143 # define ISLOWER(c) \
4144 (('a' <= (c) && (c) <= 'i') \
4145 || ('j' <= (c) && (c) <= 'r') \
4146 || ('s' <= (c) && (c) <= 'z'))
4147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4148 #endif
4150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4152 main ()
4154 int i;
4155 for (i = 0; i < 256; i++)
4156 if (XOR (islower (i), ISLOWER (i))
4157 || toupper (i) != TOUPPER (i))
4158 exit(2);
4159 exit (0);
4161 _ACEOF
4162 rm -f conftest$ac_exeext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164 (eval $ac_link) 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 (eval $ac_try) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4174 else
4175 echo "$as_me: program exited with status $ac_status" >&5
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4179 ( exit $ac_status )
4180 ac_cv_header_stdc=no
4182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4186 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4187 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4188 if test $ac_cv_header_stdc = yes; then
4190 cat >>confdefs.h <<\_ACEOF
4191 #define STDC_HEADERS 1
4192 _ACEOF
4196 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4206 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4207 inttypes.h stdint.h unistd.h
4209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4210 echo "$as_me:$LINENO: checking for $ac_header" >&5
4211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215 cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h. */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 $ac_includes_default
4223 #include <$ac_header>
4224 _ACEOF
4225 rm -f conftest.$ac_objext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>conftest.er1
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -z "$ac_c_werror_flag"
4235 || test ! -s conftest.err'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 (eval $ac_try) 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; } &&
4241 { ac_try='test -s conftest.$ac_objext'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 (eval $ac_try) 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
4247 eval "$as_ac_Header=yes"
4248 else
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4252 eval "$as_ac_Header=no"
4254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4259 cat >>confdefs.h <<_ACEOF
4260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4261 _ACEOF
4265 done
4268 if test "${ac_cv_header_valgrind_h+set}" = set; then
4269 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4270 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4271 if test "${ac_cv_header_valgrind_h+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4275 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4276 else
4277 # Is the header compilable?
4278 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4279 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4280 cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h. */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 $ac_includes_default
4287 #include <valgrind.h>
4288 _ACEOF
4289 rm -f conftest.$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>conftest.er1
4292 ac_status=$?
4293 grep -v '^ *+' conftest.er1 >conftest.err
4294 rm -f conftest.er1
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try='test -z "$ac_c_werror_flag"
4299 || test ! -s conftest.err'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 ac_header_compiler=yes
4312 else
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4316 ac_header_compiler=no
4318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4320 echo "${ECHO_T}$ac_header_compiler" >&6
4322 # Is the header present?
4323 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4324 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4325 cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h. */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 #include <valgrind.h>
4332 _ACEOF
4333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4335 ac_status=$?
4336 grep -v '^ *+' conftest.er1 >conftest.err
4337 rm -f conftest.er1
4338 cat conftest.err >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } >/dev/null; then
4341 if test -s conftest.err; then
4342 ac_cpp_err=$ac_c_preproc_warn_flag
4343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4344 else
4345 ac_cpp_err=
4347 else
4348 ac_cpp_err=yes
4350 if test -z "$ac_cpp_err"; then
4351 ac_header_preproc=yes
4352 else
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 ac_header_preproc=no
4358 rm -f conftest.err conftest.$ac_ext
4359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4360 echo "${ECHO_T}$ac_header_preproc" >&6
4362 # So? What about this header?
4363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4364 yes:no: )
4365 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4366 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4367 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4368 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4369 ac_header_preproc=yes
4371 no:yes:* )
4372 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4373 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4374 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4375 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4376 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4377 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4378 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4379 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4380 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4381 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4382 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4383 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4385 cat <<\_ASBOX
4386 ## ------------------------------------------ ##
4387 ## Report this to the AC_PACKAGE_NAME lists. ##
4388 ## ------------------------------------------ ##
4389 _ASBOX
4391 sed "s/^/$as_me: WARNING: /" >&2
4393 esac
4394 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4395 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4396 if test "${ac_cv_header_valgrind_h+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 ac_cv_header_valgrind_h=$ac_header_preproc
4401 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4402 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4405 if test $ac_cv_header_valgrind_h = yes; then
4406 have_valgrind_h=yes
4407 else
4408 have_valgrind_h=no
4413 if test x$ac_checking_valgrind != x ; then
4414 # It is certainly possible that there's valgrind but no valgrind.h.
4415 # GCC relies on making annotations so we must have both.
4416 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4417 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h. */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 #include <valgrind/memcheck.h>
4425 #ifndef VALGRIND_DISCARD
4426 #error VALGRIND_DISCARD not defined
4427 #endif
4428 _ACEOF
4429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4431 ac_status=$?
4432 grep -v '^ *+' conftest.er1 >conftest.err
4433 rm -f conftest.er1
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } >/dev/null; then
4437 if test -s conftest.err; then
4438 ac_cpp_err=$ac_c_preproc_warn_flag
4439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4440 else
4441 ac_cpp_err=
4443 else
4444 ac_cpp_err=yes
4446 if test -z "$ac_cpp_err"; then
4447 gcc_cv_header_valgrind_memcheck_h=yes
4448 else
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 gcc_cv_header_valgrind_memcheck_h=no
4454 rm -f conftest.err conftest.$ac_ext
4455 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4456 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4457 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4458 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4459 cat >conftest.$ac_ext <<_ACEOF
4460 /* confdefs.h. */
4461 _ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 #include <memcheck.h>
4466 #ifndef VALGRIND_DISCARD
4467 #error VALGRIND_DISCARD not defined
4468 #endif
4469 _ACEOF
4470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4472 ac_status=$?
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } >/dev/null; then
4478 if test -s conftest.err; then
4479 ac_cpp_err=$ac_c_preproc_warn_flag
4480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4481 else
4482 ac_cpp_err=
4484 else
4485 ac_cpp_err=yes
4487 if test -z "$ac_cpp_err"; then
4488 gcc_cv_header_memcheck_h=yes
4489 else
4490 echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4493 gcc_cv_header_memcheck_h=no
4495 rm -f conftest.err conftest.$ac_ext
4496 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4497 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4499 # Prepare PATH_SEPARATOR.
4500 # The user is always right.
4501 if test "${PATH_SEPARATOR+set}" != set; then
4502 echo "#! /bin/sh" >conf$$.sh
4503 echo "exit 0" >>conf$$.sh
4504 chmod +x conf$$.sh
4505 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4506 PATH_SEPARATOR=';'
4507 else
4508 PATH_SEPARATOR=:
4510 rm -f conf$$.sh
4513 # Find out how to test for executable files. Don't use a zero-byte file,
4514 # as systems may use methods other than mode bits to determine executability.
4515 cat >conf$$.file <<_ASEOF
4516 #! /bin/sh
4517 exit 0
4518 _ASEOF
4519 chmod +x conf$$.file
4520 if test -x conf$$.file >/dev/null 2>&1; then
4521 ac_executable_p="test -x"
4522 else
4523 ac_executable_p="test -f"
4525 rm -f conf$$.file
4527 # Extract the first word of "valgrind", so it can be a program name with args.
4528 set dummy valgrind; ac_word=$2
4529 echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531 if test "${ac_cv_path_valgrind_path+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534 case "$valgrind_path" in
4535 [\\/]* | ?:[\\/]*)
4536 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4539 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4540 for ac_dir in $PATH; do
4541 IFS="$ac_save_IFS"
4542 test -z "$ac_dir" && ac_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4545 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4546 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4547 break 2
4550 done
4551 done
4552 IFS="$ac_save_IFS"
4554 esac
4556 valgrind_path="$ac_cv_path_valgrind_path"
4557 if test -n "$valgrind_path"; then
4558 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4559 echo "${ECHO_T}$valgrind_path" >&6
4560 else
4561 echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6
4565 if test "x$valgrind_path" = "x" \
4566 || (test $have_valgrind_h = no \
4567 && test $gcc_cv_header_memcheck_h = no \
4568 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4569 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4570 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4571 { (exit 1); exit 1; }; }
4573 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4574 valgrind_command="$valgrind_path -q"
4576 cat >>confdefs.h <<\_ACEOF
4577 #define ENABLE_VALGRIND_CHECKING 1
4578 _ACEOF
4580 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4582 cat >>confdefs.h <<\_ACEOF
4583 #define HAVE_VALGRIND_MEMCHECK_H 1
4584 _ACEOF
4587 if test $gcc_cv_header_memcheck_h = yes; then
4589 cat >>confdefs.h <<\_ACEOF
4590 #define HAVE_MEMCHECK_H 1
4591 _ACEOF
4598 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4599 if test "${enable_mapped_location+set}" = set; then
4600 enableval="$enable_mapped_location"
4602 else
4603 enable_mapped_location=no
4606 if test "$enable_mapped_location" = yes ; then
4608 cat >>confdefs.h <<\_ACEOF
4609 #define USE_MAPPED_LOCATION 1
4610 _ACEOF
4614 # Enable code coverage collection
4615 # Check whether --enable-coverage or --disable-coverage was given.
4616 if test "${enable_coverage+set}" = set; then
4617 enableval="$enable_coverage"
4618 case "${enableval}" in
4619 yes|noopt)
4620 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4622 opt)
4623 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4626 # a.k.a. --disable-coverage
4627 coverage_flags=""
4630 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4631 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4632 { (exit 1); exit 1; }; }
4634 esac
4635 else
4636 coverage_flags=""
4640 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4641 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4642 enableval="$enable_gather_detailed_mem_stats"
4644 else
4645 enable_gather_detailed_mem_stats=no
4647 if test x$enable_gather_detailed_mem_stats = xyes ; then
4649 cat >>confdefs.h <<\_ACEOF
4650 #define GATHER_STATISTICS 1
4651 _ACEOF
4655 # -------------------------------
4656 # Miscenalleous configure options
4657 # -------------------------------
4659 # With stabs
4661 # Check whether --with-stabs or --without-stabs was given.
4662 if test "${with_stabs+set}" = set; then
4663 withval="$with_stabs"
4664 stabs="$with_stabs"
4665 else
4666 stabs=no
4669 # Determine whether or not multilibs are enabled.
4670 # Check whether --enable-multilib or --disable-multilib was given.
4671 if test "${enable_multilib+set}" = set; then
4672 enableval="$enable_multilib"
4674 else
4675 enable_multilib=yes
4679 # Enable __cxa_atexit for C++.
4680 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4681 if test "${enable___cxa_atexit+set}" = set; then
4682 enableval="$enable___cxa_atexit"
4686 # Enable threads
4687 # Pass with no value to take the default
4688 # Pass with a value to specify a thread package
4689 # Check whether --enable-threads or --disable-threads was given.
4690 if test "${enable_threads+set}" = set; then
4691 enableval="$enable_threads"
4693 else
4694 enable_threads=''
4697 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4698 if test "${enable_objc_gc+set}" = set; then
4699 enableval="$enable_objc_gc"
4700 if test x$enable_objc_gc = xno; then
4701 objc_boehm_gc=''
4702 else
4703 objc_boehm_gc=1
4705 else
4706 objc_boehm_gc=''
4710 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4711 if test "${with_dwarf2+set}" = set; then
4712 withval="$with_dwarf2"
4713 dwarf2="$with_dwarf2"
4714 else
4715 dwarf2=no
4718 # Check whether --enable-shared or --disable-shared was given.
4719 if test "${enable_shared+set}" = set; then
4720 enableval="$enable_shared"
4722 case $enable_shared in
4723 yes | no) ;;
4725 enable_shared=no
4726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4727 for pkg in $enableval; do
4728 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4729 enable_shared=yes
4731 done
4732 IFS="$ac_save_ifs"
4734 esac
4736 else
4737 enable_shared=yes
4742 # Check whether --with-sysroot or --without-sysroot was given.
4743 if test "${with_sysroot+set}" = set; then
4744 withval="$with_sysroot"
4746 case ${with_sysroot} in
4747 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4748 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4749 esac
4751 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4752 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4754 if test "x$exec_prefix" = xNONE; then
4755 if test "x$prefix" = xNONE; then
4756 test_prefix=/usr/local
4757 else
4758 test_prefix=$prefix
4760 else
4761 test_prefix=$exec_prefix
4763 case ${TARGET_SYSTEM_ROOT} in
4764 "${test_prefix}"|"${test_prefix}/"*|\
4765 '${exec_prefix}'|'${exec_prefix}/'*)
4766 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4767 TARGET_SYSTEM_ROOT_DEFINE="$t"
4769 esac
4771 else
4773 TARGET_SYSTEM_ROOT=
4774 TARGET_SYSTEM_ROOT_DEFINE=
4775 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4782 # Build with intermodule optimisations
4783 # Check whether --enable-intermodule or --disable-intermodule was given.
4784 if test "${enable_intermodule+set}" = set; then
4785 enableval="$enable_intermodule"
4786 case ${enable_intermodule} in
4787 yes) onestep="-onestep";;
4788 *) onestep="";;
4789 esac
4790 else
4791 onestep=""
4795 # Sanity check enable_languages in case someone does not run the toplevel
4796 # configure # script.
4797 # Check whether --enable-languages or --disable-languages was given.
4798 if test "${enable_languages+set}" = set; then
4799 enableval="$enable_languages"
4800 case ,${enable_languages}, in
4801 ,,|,yes,)
4802 # go safe -- we cannot be much sure without the toplevel
4803 # configure's
4804 # analysis of which target libs are present and usable
4805 enable_languages=c
4807 *,all,*)
4808 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4809 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4810 { (exit 1); exit 1; }; }
4812 *,c,*)
4815 enable_languages=c,${enable_languages}
4817 esac
4818 else
4819 enable_languages=c
4822 subdirs=
4823 for lang in ${srcdir}/*/config-lang.in
4825 case $lang in
4826 # The odd quoting in the next line works around
4827 # an apparent bug in bash 1.12 on linux.
4828 ${srcdir}/[*]/config-lang.in) ;;
4830 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4831 if test "x$lang_alias" = x
4832 then
4833 echo "$lang doesn't set \$language." 1>&2
4834 exit 1
4836 case ",$enable_languages," in
4837 *,$lang_alias,*)
4838 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4839 esac
4841 esac
4842 done
4845 # -------------------------
4846 # Checks for other programs
4847 # -------------------------
4849 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4850 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4851 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4852 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855 cat >conftest.make <<\_ACEOF
4856 all:
4857 @echo 'ac_maketemp="$(MAKE)"'
4858 _ACEOF
4859 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4860 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4861 if test -n "$ac_maketemp"; then
4862 eval ac_cv_prog_make_${ac_make}_set=yes
4863 else
4864 eval ac_cv_prog_make_${ac_make}_set=no
4866 rm -f conftest.make
4868 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4869 echo "$as_me:$LINENO: result: yes" >&5
4870 echo "${ECHO_T}yes" >&6
4871 SET_MAKE=
4872 else
4873 echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6
4875 SET_MAKE="MAKE=${MAKE-make}"
4879 # Find some useful tools
4880 for ac_prog in gawk mawk nawk awk
4882 # Extract the first word of "$ac_prog", so it can be a program name with args.
4883 set dummy $ac_prog; ac_word=$2
4884 echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886 if test "${ac_cv_prog_AWK+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889 if test -n "$AWK"; then
4890 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_AWK="$ac_prog"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4903 done
4904 done
4908 AWK=$ac_cv_prog_AWK
4909 if test -n "$AWK"; then
4910 echo "$as_me:$LINENO: result: $AWK" >&5
4911 echo "${ECHO_T}$AWK" >&6
4912 else
4913 echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4917 test -n "$AWK" && break
4918 done
4920 # We need awk to create options.c and options.h.
4921 # Bail out if it's missing.
4922 case ${AWK} in
4923 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4924 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4925 { (exit 1); exit 1; }; } ;;
4926 esac
4928 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4929 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4930 if test "${gcc_cv_prog_LN_S+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933 rm -f conftestdata_t
4934 echo >conftestdata_f
4935 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4936 then
4937 gcc_cv_prog_LN_S="ln -s"
4938 else
4939 if ln conftestdata_f conftestdata_t 2>/dev/null
4940 then
4941 gcc_cv_prog_LN_S=ln
4942 else
4943 gcc_cv_prog_LN_S=cp
4946 rm -f conftestdata_f conftestdata_t
4949 LN_S="$gcc_cv_prog_LN_S"
4950 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4951 echo "$as_me:$LINENO: result: yes" >&5
4952 echo "${ECHO_T}yes" >&6
4953 else
4954 if test "$gcc_cv_prog_LN_S" = "ln"; then
4955 echo "$as_me:$LINENO: result: no, using ln" >&5
4956 echo "${ECHO_T}no, using ln" >&6
4957 else
4958 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4959 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4963 echo "$as_me:$LINENO: checking whether ln works" >&5
4964 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4965 if test "${acx_cv_prog_LN+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968 rm -f conftestdata_t
4969 echo >conftestdata_f
4970 if ln conftestdata_f conftestdata_t 2>/dev/null
4971 then
4972 acx_cv_prog_LN=ln
4973 else
4974 acx_cv_prog_LN=no
4976 rm -f conftestdata_f conftestdata_t
4979 if test $acx_cv_prog_LN = no; then
4980 LN="$LN_S"
4981 echo "$as_me:$LINENO: result: no, using $LN" >&5
4982 echo "${ECHO_T}no, using $LN" >&6
4983 else
4984 LN="$acx_cv_prog_LN"
4985 echo "$as_me:$LINENO: result: yes" >&5
4986 echo "${ECHO_T}yes" >&6
4989 if test -n "$ac_tool_prefix"; then
4990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4991 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4992 echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4994 if test "${ac_cv_prog_RANLIB+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997 if test -n "$RANLIB"; then
4998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 break 2
5011 done
5012 done
5016 RANLIB=$ac_cv_prog_RANLIB
5017 if test -n "$RANLIB"; then
5018 echo "$as_me:$LINENO: result: $RANLIB" >&5
5019 echo "${ECHO_T}$RANLIB" >&6
5020 else
5021 echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6
5026 if test -z "$ac_cv_prog_RANLIB"; then
5027 ac_ct_RANLIB=$RANLIB
5028 # Extract the first word of "ranlib", so it can be a program name with args.
5029 set dummy ranlib; ac_word=$2
5030 echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035 if test -n "$ac_ct_RANLIB"; then
5036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_ac_ct_RANLIB="ranlib"
5046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5049 done
5050 done
5052 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5056 if test -n "$ac_ct_RANLIB"; then
5057 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5058 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5059 else
5060 echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6
5064 RANLIB=$ac_ct_RANLIB
5065 else
5066 RANLIB="$ac_cv_prog_RANLIB"
5069 case "${host}" in
5070 *-*-darwin*)
5071 # By default, the Darwin ranlib will not treat common symbols as
5072 # definitions when building the archive table of contents. Other
5073 # ranlibs do that; pass an option to the Darwin ranlib that makes
5074 # it behave similarly.
5075 ranlib_flags="-c"
5078 ranlib_flags=""
5079 esac
5082 # Find a good install program. We prefer a C program (faster),
5083 # so one script is as good as another. But avoid the broken or
5084 # incompatible versions:
5085 # SysV /etc/install, /usr/sbin/install
5086 # SunOS /usr/etc/install
5087 # IRIX /sbin/install
5088 # AIX /bin/install
5089 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5090 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5091 # ./install, which can be erroneously created by make from ./install.sh.
5092 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5093 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5094 if test -z "$INSTALL"; then
5095 if test "${ac_cv_path_install+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5099 for ac_dir in $PATH; do
5100 # Account for people who put trailing slashes in PATH elements.
5101 case "$ac_dir/" in
5102 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5104 # OSF1 and SCO ODT 3.0 have their own names for install.
5105 for ac_prog in ginstall scoinst install; do
5106 if test -f $ac_dir/$ac_prog; then
5107 if test $ac_prog = install &&
5108 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5109 # AIX install. It has an incompatible calling convention.
5110 # OSF/1 installbsd also uses dspmsg, but is usable.
5112 else
5113 ac_cv_path_install="$ac_dir/$ac_prog -c"
5114 break 2
5117 done
5119 esac
5120 done
5121 IFS="$ac_save_IFS"
5124 if test "${ac_cv_path_install+set}" = set; then
5125 INSTALL="$ac_cv_path_install"
5126 else
5127 # As a last resort, use the slow shell script. We don't cache a
5128 # path for INSTALL within a source directory, because that will
5129 # break other packages using the cache if that directory is
5130 # removed, or if the path is relative.
5131 INSTALL="$ac_install_sh"
5134 echo "$as_me:$LINENO: result: $INSTALL" >&5
5135 echo "${ECHO_T}$INSTALL" >&6
5137 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5138 # It thinks the first close brace ends the variable substitution.
5139 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5141 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5144 # See if cmp has --ignore-initial.
5145 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5146 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5147 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150 echo abfoo >t1
5151 echo cdfoo >t2
5152 gcc_cv_prog_cmp_skip=slowcompare
5153 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5154 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5156 else
5157 gcc_cv_prog_cmp_skip=gnucompare
5160 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5161 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5162 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5164 else
5165 gcc_cv_prog_cmp_skip=fastcompare
5169 rm t1 t2
5172 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5173 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5174 make_compare_target=$gcc_cv_prog_cmp_skip
5178 # See if we have the mktemp command.
5179 # Extract the first word of "mktemp", so it can be a program name with args.
5180 set dummy mktemp; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186 if test -n "$have_mktemp_command"; then
5187 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_have_mktemp_command="yes"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5203 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5206 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5207 if test -n "$have_mktemp_command"; then
5208 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5209 echo "${ECHO_T}$have_mktemp_command" >&6
5210 else
5211 echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5216 # Do we have a single-tree copy of texinfo?
5217 if test -f $srcdir/../texinfo/Makefile.in; then
5218 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5219 gcc_cv_prog_makeinfo_modern=yes
5220 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5221 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5222 else
5223 # See if makeinfo has been installed and is modern enough
5224 # that we can use it.
5225 # Extract the first word of "makeinfo", so it can be a program name with args.
5226 set dummy makeinfo; ac_word=$2
5227 echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5229 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232 if test -n "$MAKEINFO"; then
5233 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5234 else
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242 ac_cv_prog_MAKEINFO="makeinfo"
5243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5246 done
5247 done
5251 MAKEINFO=$ac_cv_prog_MAKEINFO
5252 if test -n "$MAKEINFO"; then
5253 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5254 echo "${ECHO_T}$MAKEINFO" >&6
5255 else
5256 echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6
5260 if test -n "$MAKEINFO"; then
5261 # Found it, now check the version.
5262 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5263 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5264 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267 ac_prog_version=`$MAKEINFO --version 2>&1 |
5268 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5269 echo "configure:5269: version of makeinfo is $ac_prog_version" >&5
5270 case $ac_prog_version in
5271 '') gcc_cv_prog_makeinfo_modern=no;;
5272 4.[2-9]*)
5273 gcc_cv_prog_makeinfo_modern=yes;;
5274 *) gcc_cv_prog_makeinfo_modern=no;;
5275 esac
5278 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5279 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5280 else
5281 gcc_cv_prog_makeinfo_modern=no
5286 if test $gcc_cv_prog_makeinfo_modern = no; then
5287 { echo "$as_me:$LINENO: WARNING:
5288 *** Makeinfo is missing or too old.
5289 *** Info documentation will not be built." >&5
5290 echo "$as_me: WARNING:
5291 *** Makeinfo is missing or too old.
5292 *** Info documentation will not be built." >&2;}
5293 BUILD_INFO=
5294 else
5295 BUILD_INFO=info
5298 # Is pod2man recent enough to regenerate manpages?
5299 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5300 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5301 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5302 echo "$as_me:$LINENO: result: yes" >&5
5303 echo "${ECHO_T}yes" >&6
5304 GENERATED_MANPAGES=generated-manpages
5305 else
5306 echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6
5308 GENERATED_MANPAGES=
5311 # How about lex?
5312 if test x${build} = x${host} && test -f $srcdir/../flex/skel.c; then
5313 FLEX='$(objdir)/../flex/flex'
5314 else
5315 # Extract the first word of "flex", so it can be a program name with args.
5316 set dummy flex; ac_word=$2
5317 echo "$as_me:$LINENO: checking for $ac_word" >&5
5318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5319 if test "${ac_cv_prog_FLEX+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322 if test -n "$FLEX"; then
5323 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332 ac_cv_prog_FLEX="flex"
5333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5336 done
5337 done
5339 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5342 FLEX=$ac_cv_prog_FLEX
5343 if test -n "$FLEX"; then
5344 echo "$as_me:$LINENO: result: $FLEX" >&5
5345 echo "${ECHO_T}$FLEX" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5353 # Bison?
5354 # The -L switch is so bison can find its skeleton file.
5355 if test x${build} = x${host} && test -f $srcdir/../bison/bison.simple; then
5356 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5357 else
5358 # Extract the first word of "bison", so it can be a program name with args.
5359 set dummy bison; ac_word=$2
5360 echo "$as_me:$LINENO: checking for $ac_word" >&5
5361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5362 if test "${ac_cv_prog_BISON+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365 if test -n "$BISON"; then
5366 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5367 else
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5371 IFS=$as_save_IFS
5372 test -z "$as_dir" && as_dir=.
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5375 ac_cv_prog_BISON="bison"
5376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5377 break 2
5379 done
5380 done
5382 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5385 BISON=$ac_cv_prog_BISON
5386 if test -n "$BISON"; then
5387 echo "$as_me:$LINENO: result: $BISON" >&5
5388 echo "${ECHO_T}$BISON" >&6
5389 else
5390 echo "$as_me:$LINENO: result: no" >&5
5391 echo "${ECHO_T}no" >&6
5396 # --------------------
5397 # Checks for C headers
5398 # --------------------
5400 echo "$as_me:$LINENO: checking for GNU C library" >&5
5401 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5402 if test "${gcc_cv_glibc+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405 cat >conftest.$ac_ext <<_ACEOF
5406 /* confdefs.h. */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <features.h>
5413 main ()
5416 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5417 #error Not a GNU C library system
5418 #endif
5420 return 0;
5422 _ACEOF
5423 rm -f conftest.$ac_objext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -z "$ac_c_werror_flag"
5433 || test ! -s conftest.err'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest.$ac_objext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 gcc_cv_glibc=yes
5446 else
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 gcc_cv_glibc=no
5452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5455 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5456 echo "${ECHO_T}$gcc_cv_glibc" >&6
5457 if test $gcc_cv_glibc = yes; then
5459 cat >>confdefs.h <<\_ACEOF
5460 #define _GNU_SOURCE 1
5461 _ACEOF
5465 # Need to reject headers which give warnings, so that the -Werror bootstrap
5466 # works later. *sigh* This needs to come before all header checks.
5468 ac_c_preproc_warn_flag=yes
5470 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5471 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5472 if test "${ac_cv_header_stdc+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 #include <stdlib.h>
5482 #include <stdarg.h>
5483 #include <string.h>
5484 #include <float.h>
5487 main ()
5491 return 0;
5493 _ACEOF
5494 rm -f conftest.$ac_objext
5495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5496 (eval $ac_compile) 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } &&
5503 { ac_try='test -z "$ac_c_werror_flag"
5504 || test ! -s conftest.err'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 (eval $ac_try) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; } &&
5510 { ac_try='test -s conftest.$ac_objext'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 (eval $ac_try) 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; }; then
5516 ac_cv_header_stdc=yes
5517 else
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5521 ac_cv_header_stdc=no
5523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5525 if test $ac_cv_header_stdc = yes; then
5526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5527 cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h. */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 #include <string.h>
5535 _ACEOF
5536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5537 $EGREP "memchr" >/dev/null 2>&1; then
5539 else
5540 ac_cv_header_stdc=no
5542 rm -f conftest*
5546 if test $ac_cv_header_stdc = yes; then
5547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5548 cat >conftest.$ac_ext <<_ACEOF
5549 /* confdefs.h. */
5550 _ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5554 #include <stdlib.h>
5556 _ACEOF
5557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5558 $EGREP "free" >/dev/null 2>&1; then
5560 else
5561 ac_cv_header_stdc=no
5563 rm -f conftest*
5567 if test $ac_cv_header_stdc = yes; then
5568 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5569 if test "$cross_compiling" = yes; then
5571 else
5572 cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h. */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 #include <ctype.h>
5579 #if ((' ' & 0x0FF) == 0x020)
5580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5582 #else
5583 # define ISLOWER(c) \
5584 (('a' <= (c) && (c) <= 'i') \
5585 || ('j' <= (c) && (c) <= 'r') \
5586 || ('s' <= (c) && (c) <= 'z'))
5587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5588 #endif
5590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5592 main ()
5594 int i;
5595 for (i = 0; i < 256; i++)
5596 if (XOR (islower (i), ISLOWER (i))
5597 || toupper (i) != TOUPPER (i))
5598 exit(2);
5599 exit (0);
5601 _ACEOF
5602 rm -f conftest$ac_exeext
5603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5604 (eval $ac_link) 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 (eval $ac_try) 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5614 else
5615 echo "$as_me: program exited with status $ac_status" >&5
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5619 ( exit $ac_status )
5620 ac_cv_header_stdc=no
5622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5626 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5627 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5628 if test $ac_cv_header_stdc = yes; then
5630 cat >>confdefs.h <<\_ACEOF
5631 #define STDC_HEADERS 1
5632 _ACEOF
5636 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5637 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5638 if test "${ac_cv_header_time+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h. */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 #include <sys/types.h>
5648 #include <sys/time.h>
5649 #include <time.h>
5652 main ()
5654 if ((struct tm *) 0)
5655 return 0;
5657 return 0;
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -z "$ac_c_werror_flag"
5670 || test ! -s conftest.err'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; } &&
5676 { ac_try='test -s conftest.$ac_objext'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 (eval $ac_try) 2>&5
5679 ac_status=$?
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
5682 ac_cv_header_time=yes
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5687 ac_cv_header_time=no
5689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5692 echo "${ECHO_T}$ac_cv_header_time" >&6
5693 if test $ac_cv_header_time = yes; then
5695 cat >>confdefs.h <<\_ACEOF
5696 #define TIME_WITH_SYS_TIME 1
5697 _ACEOF
5701 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5702 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5703 if test "${gcc_cv_header_string+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h. */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 #include <string.h>
5713 #include <strings.h>
5715 main ()
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"
5732 || test ! -s conftest.err'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 (eval $ac_try) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; } &&
5738 { ac_try='test -s conftest.$ac_objext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 (eval $ac_try) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 gcc_cv_header_string=yes
5745 else
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5749 gcc_cv_header_string=no
5751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5753 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5754 echo "${ECHO_T}$gcc_cv_header_string" >&6
5755 if test $gcc_cv_header_string = yes; then
5757 cat >>confdefs.h <<\_ACEOF
5758 #define STRING_WITH_STRINGS 1
5759 _ACEOF
5763 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5764 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5765 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h. */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 #include <sys/types.h>
5775 #include <sys/wait.h>
5776 #ifndef WEXITSTATUS
5777 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5778 #endif
5779 #ifndef WIFEXITED
5780 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5781 #endif
5784 main ()
5786 int s;
5787 wait (&s);
5788 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5790 return 0;
5792 _ACEOF
5793 rm -f conftest.$ac_objext
5794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5795 (eval $ac_compile) 2>conftest.er1
5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try='test -z "$ac_c_werror_flag"
5803 || test ! -s conftest.err'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 (eval $ac_try) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try='test -s conftest.$ac_objext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 ac_cv_header_sys_wait_h=yes
5816 else
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5820 ac_cv_header_sys_wait_h=no
5822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5824 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5825 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5826 if test $ac_cv_header_sys_wait_h = yes; then
5828 cat >>confdefs.h <<\_ACEOF
5829 #define HAVE_SYS_WAIT_H 1
5830 _ACEOF
5855 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5856 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5857 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5858 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5861 echo "$as_me:$LINENO: checking for $ac_header" >&5
5862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866 cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h. */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 #include <$ac_header>
5873 _ACEOF
5874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } >/dev/null; then
5882 if test -s conftest.err; then
5883 ac_cpp_err=$ac_c_preproc_warn_flag
5884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5885 else
5886 ac_cpp_err=
5888 else
5889 ac_cpp_err=yes
5891 if test -z "$ac_cpp_err"; then
5892 eval "$as_ac_Header=yes"
5893 else
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5897 eval "$as_ac_Header=no"
5899 rm -f conftest.err conftest.$ac_ext
5901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5904 cat >>confdefs.h <<_ACEOF
5905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5906 _ACEOF
5909 done
5912 # Check for thread headers.
5913 echo "$as_me:$LINENO: checking for thread.h" >&5
5914 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5915 if test "${ac_cv_header_thread_h+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918 cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h. */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 #include <thread.h>
5925 _ACEOF
5926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } >/dev/null; then
5934 if test -s conftest.err; then
5935 ac_cpp_err=$ac_c_preproc_warn_flag
5936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5937 else
5938 ac_cpp_err=
5940 else
5941 ac_cpp_err=yes
5943 if test -z "$ac_cpp_err"; then
5944 ac_cv_header_thread_h=yes
5945 else
5946 echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5949 ac_cv_header_thread_h=no
5951 rm -f conftest.err conftest.$ac_ext
5953 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5954 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5955 if test $ac_cv_header_thread_h = yes; then
5956 have_thread_h=yes
5957 else
5958 have_thread_h=
5961 echo "$as_me:$LINENO: checking for pthread.h" >&5
5962 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5963 if test "${ac_cv_header_pthread_h+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <pthread.h>
5973 _ACEOF
5974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } >/dev/null; then
5982 if test -s conftest.err; then
5983 ac_cpp_err=$ac_c_preproc_warn_flag
5984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5985 else
5986 ac_cpp_err=
5988 else
5989 ac_cpp_err=yes
5991 if test -z "$ac_cpp_err"; then
5992 ac_cv_header_pthread_h=yes
5993 else
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_cv_header_pthread_h=no
5999 rm -f conftest.err conftest.$ac_ext
6001 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6002 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6003 if test $ac_cv_header_pthread_h = yes; then
6004 have_pthread_h=yes
6005 else
6006 have_pthread_h=
6010 # These tests can't be done till we know if we have limits.h.
6011 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6012 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6013 if test "${gcc_cv_decl_char_bit+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #ifdef HAVE_LIMITS_H
6023 #include <limits.h>
6024 #endif
6025 #ifdef CHAR_BIT
6026 found
6027 #endif
6028 _ACEOF
6029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6030 $EGREP "found" >/dev/null 2>&1; then
6031 gcc_cv_decl_char_bit=yes
6032 else
6033 gcc_cv_decl_char_bit=no
6035 rm -f conftest*
6039 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6040 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6041 if test $gcc_cv_decl_char_bit = no; then
6042 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6043 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6044 if test "${gcc_cv_c_nbby+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6048 gcc_cv_c_nbby=
6049 while test $i -lt 65; do
6050 cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h. */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6058 main ()
6060 switch(0) {
6061 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6062 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6065 return 0;
6067 _ACEOF
6068 rm -f conftest.$ac_objext
6069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070 (eval $ac_compile) 2>conftest.er1
6071 ac_status=$?
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
6077 { ac_try='test -z "$ac_c_werror_flag"
6078 || test ! -s conftest.err'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 (eval $ac_try) 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try='test -s conftest.$ac_objext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 gcc_cv_c_nbby=$i; break
6091 else
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6097 i=`expr $i + 1`
6098 done
6099 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6102 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6103 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6104 if test $gcc_cv_c_nbby = failed; then
6105 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6106 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6107 { (exit 1); exit 1; }; }
6108 else
6110 cat >>confdefs.h <<_ACEOF
6111 #define CHAR_BIT $gcc_cv_c_nbby
6112 _ACEOF
6116 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6117 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6118 if test "${ac_cv_c_bigendian+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121 ac_cv_c_bigendian=unknown
6122 # See if sys/param.h defines the BYTE_ORDER macro.
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h. */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 #include <sys/types.h>
6130 #include <sys/param.h>
6132 main ()
6135 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6136 bogus endian macros
6137 #endif
6139 return 0;
6141 _ACEOF
6142 rm -f conftest.$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>conftest.er1
6145 ac_status=$?
6146 grep -v '^ *+' conftest.er1 >conftest.err
6147 rm -f conftest.er1
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -z "$ac_c_werror_flag"
6152 || test ! -s conftest.err'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; } &&
6158 { ac_try='test -s conftest.$ac_objext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 (eval $ac_try) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 # It does; now see whether it defined to BIG_ENDIAN or not.
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 #include <sys/types.h>
6172 #include <sys/param.h>
6174 main ()
6177 #if BYTE_ORDER != BIG_ENDIAN
6178 not big endian
6179 #endif
6181 return 0;
6183 _ACEOF
6184 rm -f conftest.$ac_objext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6186 (eval $ac_compile) 2>conftest.er1
6187 ac_status=$?
6188 grep -v '^ *+' conftest.er1 >conftest.err
6189 rm -f conftest.er1
6190 cat conftest.err >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } &&
6193 { ac_try='test -z "$ac_c_werror_flag"
6194 || test ! -s conftest.err'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 (eval $ac_try) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; } &&
6200 { ac_try='test -s conftest.$ac_objext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 (eval $ac_try) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 ac_cv_c_bigendian=yes
6207 else
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6211 ac_cv_c_bigendian=no
6213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6214 else
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6220 if test $ac_cv_c_bigendian = unknown; then
6221 if test "$cross_compiling" = yes; then
6222 echo $ac_n "cross-compiling... " 2>&6
6223 else
6224 cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h. */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 main () {
6231 /* Are we little or big endian? From Harbison&Steele. */
6232 union
6234 long l;
6235 char c[sizeof (long)];
6236 } u;
6237 u.l = 1;
6238 exit (u.c[sizeof (long) - 1] == 1);
6240 _ACEOF
6241 rm -f conftest$ac_exeext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6243 (eval $ac_link) 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 ac_cv_c_bigendian=no
6253 else
6254 echo "$as_me: program exited with status $ac_status" >&5
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6258 ( exit $ac_status )
6259 ac_cv_c_bigendian=yes
6261 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6265 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6266 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6267 if test $ac_cv_c_bigendian = unknown; then
6268 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6269 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6271 cat >conftest.c <<EOF
6272 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6273 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6274 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6275 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6276 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6277 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6278 int main() { _ascii (); _ebcdic (); return 0; }
6280 if test -f conftest.c ; then
6281 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6282 if test `grep -l BIGenDianSyS conftest.o` ; then
6283 echo $ac_n ' big endian probe OK, ' 1>&6
6284 ac_cv_c_bigendian=yes
6286 if test `grep -l LiTTleEnDian conftest.o` ; then
6287 echo $ac_n ' little endian probe OK, ' 1>&6
6288 if test $ac_cv_c_bigendian = yes ; then
6289 ac_cv_c_bigendian=unknown;
6290 else
6291 ac_cv_c_bigendian=no
6294 echo $ac_n 'guessing bigendian ... ' >&6
6297 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6298 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6300 if test $ac_cv_c_bigendian = yes; then
6302 cat >>confdefs.h <<\_ACEOF
6303 #define WORDS_BIGENDIAN 1
6304 _ACEOF
6307 cat >>confdefs.h <<\_ACEOF
6308 #define HOST_WORDS_BIG_ENDIAN 1
6309 _ACEOF
6311 BYTEORDER=4321
6312 else
6313 BYTEORDER=1234
6316 cat >>confdefs.h <<_ACEOF
6317 #define BYTEORDER $BYTEORDER
6318 _ACEOF
6320 if test $ac_cv_c_bigendian = unknown; then
6321 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6322 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6323 { (exit 1); exit 1; }; }
6327 # --------
6328 # UNSORTED
6329 # --------
6331 # Stage specific cflags for build.
6332 stage1_cflags=
6333 case $build in
6334 vax-*-*)
6335 if test x$GCC = xyes
6336 then
6337 stage1_cflags="-Wa,-J"
6338 else
6339 stage1_cflags="-J"
6342 powerpc-*-darwin*)
6343 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6344 # sources; use -no-cpp-precomp to get to GNU cpp.
6345 # Apple's GCC has bugs in designated initializer handling, so disable
6346 # that too.
6347 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6349 esac
6352 # These libraries may be used by collect2.
6353 # We may need a special search path to get them linked.
6354 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6355 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6356 if test "${gcc_cv_collect2_libs+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359 save_LIBS="$LIBS"
6360 for libs in '' -lld -lmld \
6361 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6362 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6364 LIBS="$libs"
6365 cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h. */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6372 /* Override any gcc2 internal prototype to avoid an error. */
6373 #ifdef __cplusplus
6374 extern "C"
6375 #endif
6376 /* We use char because int might match the return type of a gcc2
6377 builtin and then its argument prototype would still apply. */
6378 char ldopen ();
6380 main ()
6382 ldopen ();
6384 return 0;
6386 _ACEOF
6387 rm -f conftest.$ac_objext conftest$ac_exeext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389 (eval $ac_link) 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest$ac_exeext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 (eval $ac_try) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 gcc_cv_collect2_libs="$libs"; break
6410 else
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6415 rm -f conftest.err conftest.$ac_objext \
6416 conftest$ac_exeext conftest.$ac_ext
6417 done
6418 LIBS="$save_LIBS"
6419 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6421 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6422 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6423 case $gcc_cv_collect2_libs in
6424 "none required") ;;
6425 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6426 esac
6429 # When building Ada code on Alpha, we need exc_resume which is usually in
6430 # -lexc. So test for it.
6431 save_LIBS="$LIBS"
6432 LIBS=
6433 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6434 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6435 if test "${ac_cv_search_exc_resume+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438 ac_func_search_save_LIBS=$LIBS
6439 ac_cv_search_exc_resume=no
6440 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h. */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6447 /* Override any gcc2 internal prototype to avoid an error. */
6448 #ifdef __cplusplus
6449 extern "C"
6450 #endif
6451 /* We use char because int might match the return type of a gcc2
6452 builtin and then its argument prototype would still apply. */
6453 char exc_resume ();
6455 main ()
6457 exc_resume ();
6459 return 0;
6461 _ACEOF
6462 rm -f conftest.$ac_objext conftest$ac_exeext
6463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6464 (eval $ac_link) 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } &&
6471 { ac_try='test -z "$ac_c_werror_flag"
6472 || test ! -s conftest.err'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 (eval $ac_try) 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; } &&
6478 { ac_try='test -s conftest$ac_exeext'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 (eval $ac_try) 2>&5
6481 ac_status=$?
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; }; then
6484 ac_cv_search_exc_resume="none required"
6485 else
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6490 rm -f conftest.err conftest.$ac_objext \
6491 conftest$ac_exeext conftest.$ac_ext
6492 if test "$ac_cv_search_exc_resume" = no; then
6493 for ac_lib in exc; do
6494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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"
6527 || test ! -s conftest.err'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; } &&
6533 { ac_try='test -s conftest$ac_exeext'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 (eval $ac_try) 2>&5
6536 ac_status=$?
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 ac_cv_search_exc_resume="-l$ac_lib"
6540 break
6541 else
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6546 rm -f conftest.err conftest.$ac_objext \
6547 conftest$ac_exeext conftest.$ac_ext
6548 done
6550 LIBS=$ac_func_search_save_LIBS
6552 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6553 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6554 if test "$ac_cv_search_exc_resume" != no; then
6555 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6559 GNAT_LIBEXC="$LIBS"
6560 LIBS="$save_LIBS"
6563 # Some systems put ldexp and frexp in libm instead of libc; assume
6564 # they're both in the same place. jcf-dump needs them.
6565 save_LIBS="$LIBS"
6566 LIBS=
6567 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6568 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6569 if test "${ac_cv_search_ldexp+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572 ac_func_search_save_LIBS=$LIBS
6573 ac_cv_search_ldexp=no
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h. */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6581 /* Override any gcc2 internal prototype to avoid an error. */
6582 #ifdef __cplusplus
6583 extern "C"
6584 #endif
6585 /* We use char because int might match the return type of a gcc2
6586 builtin and then its argument prototype would still apply. */
6587 char ldexp ();
6589 main ()
6591 ldexp ();
6593 return 0;
6595 _ACEOF
6596 rm -f conftest.$ac_objext conftest$ac_exeext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598 (eval $ac_link) 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -z "$ac_c_werror_flag"
6606 || test ! -s conftest.err'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 ac_cv_search_ldexp="none required"
6619 else
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6624 rm -f conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6626 if test "$ac_cv_search_ldexp" = no; then
6627 for ac_lib in m; do
6628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h. */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6636 /* Override any gcc2 internal prototype to avoid an error. */
6637 #ifdef __cplusplus
6638 extern "C"
6639 #endif
6640 /* We use char because int might match the return type of a gcc2
6641 builtin and then its argument prototype would still apply. */
6642 char ldexp ();
6644 main ()
6646 ldexp ();
6648 return 0;
6650 _ACEOF
6651 rm -f conftest.$ac_objext conftest$ac_exeext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6653 (eval $ac_link) 2>conftest.er1
6654 ac_status=$?
6655 grep -v '^ *+' conftest.er1 >conftest.err
6656 rm -f conftest.er1
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try='test -z "$ac_c_werror_flag"
6661 || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest$ac_exeext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 (eval $ac_try) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 ac_cv_search_ldexp="-l$ac_lib"
6674 break
6675 else
6676 echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6680 rm -f conftest.err conftest.$ac_objext \
6681 conftest$ac_exeext conftest.$ac_ext
6682 done
6684 LIBS=$ac_func_search_save_LIBS
6686 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6687 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6688 if test "$ac_cv_search_ldexp" != no; then
6689 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6693 LDEXP_LIB="$LIBS"
6694 LIBS="$save_LIBS"
6697 # Use <inttypes.h> only if it exists,
6698 # doesn't clash with <sys/types.h>, and declares intmax_t.
6699 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6700 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6701 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 else
6704 cat >conftest.$ac_ext <<_ACEOF
6705 /* confdefs.h. */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6710 #include <sys/types.h>
6711 #include <inttypes.h>
6713 main ()
6715 intmax_t i = -1;
6717 return 0;
6719 _ACEOF
6720 rm -f conftest.$ac_objext
6721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6722 (eval $ac_compile) 2>conftest.er1
6723 ac_status=$?
6724 grep -v '^ *+' conftest.er1 >conftest.err
6725 rm -f conftest.er1
6726 cat conftest.err >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); } &&
6729 { ac_try='test -z "$ac_c_werror_flag"
6730 || test ! -s conftest.err'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732 (eval $ac_try) 2>&5
6733 ac_status=$?
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; } &&
6736 { ac_try='test -s conftest.$ac_objext'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 (eval $ac_try) 2>&5
6739 ac_status=$?
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6742 gcc_cv_header_inttypes_h=yes
6743 else
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6747 gcc_cv_header_inttypes_h=no
6749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6752 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6753 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6754 if test $gcc_cv_header_inttypes_h = yes; then
6756 cat >>confdefs.h <<\_ACEOF
6757 #define HAVE_INTTYPES_H 1
6758 _ACEOF
6788 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6789 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6790 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6791 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6792 setlocale
6794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6795 echo "$as_me:$LINENO: checking for $ac_func" >&5
6796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6797 if eval "test \"\${$as_ac_var+set}\" = set"; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800 cat >conftest.$ac_ext <<_ACEOF
6801 /* confdefs.h. */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6808 #define $ac_func innocuous_$ac_func
6810 /* System header to define __stub macros and hopefully few prototypes,
6811 which can conflict with char $ac_func (); below.
6812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6813 <limits.h> exists even on freestanding compilers. */
6815 #ifdef __STDC__
6816 # include <limits.h>
6817 #else
6818 # include <assert.h>
6819 #endif
6821 #undef $ac_func
6823 /* Override any gcc2 internal prototype to avoid an error. */
6824 #ifdef __cplusplus
6825 extern "C"
6827 #endif
6828 /* We use char because int might match the return type of a gcc2
6829 builtin and then its argument prototype would still apply. */
6830 char $ac_func ();
6831 /* The GNU C library defines this for functions which it implements
6832 to always fail with ENOSYS. Some functions are actually named
6833 something starting with __ and the normal name is an alias. */
6834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6835 choke me
6836 #else
6837 char (*f) () = $ac_func;
6838 #endif
6839 #ifdef __cplusplus
6841 #endif
6844 main ()
6846 return f != $ac_func;
6848 return 0;
6850 _ACEOF
6851 rm -f conftest.$ac_objext conftest$ac_exeext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853 (eval $ac_link) 2>conftest.er1
6854 ac_status=$?
6855 grep -v '^ *+' conftest.er1 >conftest.err
6856 rm -f conftest.er1
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } &&
6860 { ac_try='test -z "$ac_c_werror_flag"
6861 || test ! -s conftest.err'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 (eval $ac_try) 2>&5
6864 ac_status=$?
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; } &&
6867 { ac_try='test -s conftest$ac_exeext'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 (eval $ac_try) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; }; then
6873 eval "$as_ac_var=yes"
6874 else
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6878 eval "$as_ac_var=no"
6880 rm -f conftest.err conftest.$ac_objext \
6881 conftest$ac_exeext conftest.$ac_ext
6883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6885 if test `eval echo '${'$as_ac_var'}'` = yes; then
6886 cat >>confdefs.h <<_ACEOF
6887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6888 _ACEOF
6891 done
6894 if test x$ac_cv_func_mbstowcs = xyes; then
6895 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6896 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6897 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900 if test "$cross_compiling" = yes; then
6901 gcc_cv_func_mbstowcs_works=yes
6902 else
6903 cat >conftest.$ac_ext <<_ACEOF
6904 /* confdefs.h. */
6905 _ACEOF
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h. */
6909 #include <stdlib.h>
6910 int main()
6912 mbstowcs(0, "", 0);
6913 return 0;
6915 _ACEOF
6916 rm -f conftest$ac_exeext
6917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6918 (eval $ac_link) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 (eval $ac_try) 2>&5
6924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; }; then
6927 gcc_cv_func_mbstowcs_works=yes
6928 else
6929 echo "$as_me: program exited with status $ac_status" >&5
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6933 ( exit $ac_status )
6934 gcc_cv_func_mbstowcs_works=no
6936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6939 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6940 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6941 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6943 cat >>confdefs.h <<\_ACEOF
6944 #define HAVE_WORKING_MBSTOWCS 1
6945 _ACEOF
6950 echo "$as_me:$LINENO: checking for ssize_t" >&5
6951 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6952 if test "${ac_cv_type_ssize_t+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955 cat >conftest.$ac_ext <<_ACEOF
6956 /* confdefs.h. */
6957 _ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h. */
6961 $ac_includes_default
6963 main ()
6965 if ((ssize_t *) 0)
6966 return 0;
6967 if (sizeof (ssize_t))
6968 return 0;
6970 return 0;
6972 _ACEOF
6973 rm -f conftest.$ac_objext
6974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6975 (eval $ac_compile) 2>conftest.er1
6976 ac_status=$?
6977 grep -v '^ *+' conftest.er1 >conftest.err
6978 rm -f conftest.er1
6979 cat conftest.err >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } &&
6982 { ac_try='test -z "$ac_c_werror_flag"
6983 || test ! -s conftest.err'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; } &&
6989 { ac_try='test -s conftest.$ac_objext'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 (eval $ac_try) 2>&5
6992 ac_status=$?
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; }; then
6995 ac_cv_type_ssize_t=yes
6996 else
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
7000 ac_cv_type_ssize_t=no
7002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7004 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7005 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7006 if test $ac_cv_type_ssize_t = yes; then
7008 else
7010 cat >>confdefs.h <<_ACEOF
7011 #define ssize_t int
7012 _ACEOF
7017 # Try to determine the array type of the second argument of getgroups
7018 # for the target system (int or gid_t).
7019 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7020 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7021 if test "${ac_cv_type_uid_t+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024 cat >conftest.$ac_ext <<_ACEOF
7025 /* confdefs.h. */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7030 #include <sys/types.h>
7032 _ACEOF
7033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7034 $EGREP "uid_t" >/dev/null 2>&1; then
7035 ac_cv_type_uid_t=yes
7036 else
7037 ac_cv_type_uid_t=no
7039 rm -f conftest*
7042 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7043 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7044 if test $ac_cv_type_uid_t = no; then
7046 cat >>confdefs.h <<\_ACEOF
7047 #define uid_t int
7048 _ACEOF
7051 cat >>confdefs.h <<\_ACEOF
7052 #define gid_t int
7053 _ACEOF
7057 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7058 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7059 if test "${ac_cv_type_getgroups+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062 if test "$cross_compiling" = yes; then
7063 ac_cv_type_getgroups=cross
7064 else
7065 cat >conftest.$ac_ext <<_ACEOF
7066 /* confdefs.h. */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7071 /* Thanks to Mike Rendell for this test. */
7072 #include <sys/types.h>
7073 #define NGID 256
7074 #undef MAX
7075 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7078 main ()
7080 gid_t gidset[NGID];
7081 int i, n;
7082 union { gid_t gval; long lval; } val;
7084 val.lval = -1;
7085 for (i = 0; i < NGID; i++)
7086 gidset[i] = val.gval;
7087 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7088 gidset);
7089 /* Exit non-zero if getgroups seems to require an array of ints. This
7090 happens when gid_t is short but getgroups modifies an array of ints. */
7091 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7093 _ACEOF
7094 rm -f conftest$ac_exeext
7095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7096 (eval $ac_link) 2>&5
7097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 (eval $ac_try) 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7105 ac_cv_type_getgroups=gid_t
7106 else
7107 echo "$as_me: program exited with status $ac_status" >&5
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7111 ( exit $ac_status )
7112 ac_cv_type_getgroups=int
7114 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7116 if test $ac_cv_type_getgroups = cross; then
7117 cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h. */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 #include <unistd.h>
7125 _ACEOF
7126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7127 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7128 ac_cv_type_getgroups=gid_t
7129 else
7130 ac_cv_type_getgroups=int
7132 rm -f conftest*
7136 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7137 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7139 cat >>confdefs.h <<_ACEOF
7140 #define GETGROUPS_T $ac_cv_type_getgroups
7141 _ACEOF
7144 if test "${target}" = "${build}"; then
7145 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7146 else
7147 case "${target}" in
7148 # This condition may need some tweaking. It should include all
7149 # targets where the array type of the second argument of getgroups
7150 # is int and the type of gid_t is not equivalent to int.
7151 *-*-sunos* | *-*-ultrix*)
7152 TARGET_GETGROUPS_T=int
7155 TARGET_GETGROUPS_T=gid_t
7157 esac
7161 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7162 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7163 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 if test "$cross_compiling" = yes; then
7167 gcc_cv_func_printf_ptr=no
7168 else
7169 cat >conftest.$ac_ext <<_ACEOF
7170 /* confdefs.h. */
7171 _ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 #include <stdio.h>
7177 int main()
7179 char buf[64];
7180 char *p = buf, *q = NULL;
7181 sprintf(buf, "%p", p);
7182 sscanf(buf, "%p", &q);
7183 return (p != q);
7185 _ACEOF
7186 rm -f conftest$ac_exeext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7188 (eval $ac_link) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 (eval $ac_try) 2>&5
7194 ac_status=$?
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 gcc_cv_func_printf_ptr=yes
7198 else
7199 echo "$as_me: program exited with status $ac_status" >&5
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7203 ( exit $ac_status )
7204 gcc_cv_func_printf_ptr=no
7206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7208 rm -f core core.* *.core
7210 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7211 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7212 if test $gcc_cv_func_printf_ptr = yes ; then
7214 cat >>confdefs.h <<\_ACEOF
7215 #define HAVE_PRINTF_PTR 1
7216 _ACEOF
7220 if test $ac_cv_header_sys_mman_h != yes \
7221 || test $ac_cv_func_mmap != yes; then
7222 gcc_cv_func_mmap_file=no
7223 gcc_cv_func_mmap_dev_zero=no
7224 gcc_cv_func_mmap_anon=no
7225 else
7226 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7227 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7228 if test "${gcc_cv_func_mmap_file+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231 # Add a system to this blacklist if
7232 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7233 # memory area containing the same data that you'd get if you applied
7234 # read() to the same fd. The only system known to have a problem here
7235 # is VMS, where text files have record structure.
7236 case "$host_os" in
7237 vms* | ultrix*)
7238 gcc_cv_func_mmap_file=no ;;
7240 gcc_cv_func_mmap_file=yes;;
7241 esac
7243 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7244 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7245 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7246 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7247 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250 # Add a system to this blacklist if it has mmap() but /dev/zero
7251 # does not exist, or if mmapping /dev/zero does not give anonymous
7252 # zeroed pages with both the following properties:
7253 # 1. If you map N consecutive pages in with one call, and then
7254 # unmap any subset of those pages, the pages that were not
7255 # explicitly unmapped remain accessible.
7256 # 2. If you map two adjacent blocks of memory and then unmap them
7257 # both at once, they must both go away.
7258 # Systems known to be in this category are Windows (all variants),
7259 # VMS, and Darwin.
7260 case "$host_os" in
7261 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7262 gcc_cv_func_mmap_dev_zero=no ;;
7264 gcc_cv_func_mmap_dev_zero=yes;;
7265 esac
7267 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7268 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7270 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7271 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7272 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7273 if test "${gcc_cv_decl_map_anon+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276 cat >conftest.$ac_ext <<_ACEOF
7277 /* confdefs.h. */
7278 _ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7282 #include <sys/types.h>
7283 #include <sys/mman.h>
7284 #include <unistd.h>
7286 #ifndef MAP_ANONYMOUS
7287 #define MAP_ANONYMOUS MAP_ANON
7288 #endif
7291 main ()
7293 int n = MAP_ANONYMOUS;
7295 return 0;
7297 _ACEOF
7298 rm -f conftest.$ac_objext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7300 (eval $ac_compile) 2>conftest.er1
7301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try='test -z "$ac_c_werror_flag"
7308 || test ! -s conftest.err'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 (eval $ac_try) 2>&5
7311 ac_status=$?
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; } &&
7314 { ac_try='test -s conftest.$ac_objext'
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 (eval $ac_try) 2>&5
7317 ac_status=$?
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; }; then
7320 gcc_cv_decl_map_anon=yes
7321 else
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7325 gcc_cv_decl_map_anon=no
7327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7329 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7330 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7332 if test $gcc_cv_decl_map_anon = no; then
7333 gcc_cv_func_mmap_anon=no
7334 else
7335 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7336 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7337 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7341 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7342 # doesn't give anonymous zeroed pages with the same properties listed
7343 # above for use of /dev/zero.
7344 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7345 case "$host_os" in
7346 vms* | cygwin* | pe | mingw* | sco* | udk* )
7347 gcc_cv_func_mmap_anon=no ;;
7349 gcc_cv_func_mmap_anon=yes;;
7350 esac
7352 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7353 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7357 if test $gcc_cv_func_mmap_file = yes; then
7359 cat >>confdefs.h <<\_ACEOF
7360 #define HAVE_MMAP_FILE 1
7361 _ACEOF
7364 if test $gcc_cv_func_mmap_dev_zero = yes; then
7366 cat >>confdefs.h <<\_ACEOF
7367 #define HAVE_MMAP_DEV_ZERO 1
7368 _ACEOF
7371 if test $gcc_cv_func_mmap_anon = yes; then
7373 cat >>confdefs.h <<\_ACEOF
7374 #define HAVE_MMAP_ANON 1
7375 _ACEOF
7380 case "${host}" in
7381 *-*-*vms*)
7382 # Under VMS, vfork works very differently than on Unix. The standard test
7383 # won't work, and it isn't easily adaptable. It makes more sense to
7384 # just force it.
7385 ac_cv_func_vfork_works=yes
7387 esac
7388 echo "$as_me:$LINENO: checking for pid_t" >&5
7389 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7390 if test "${ac_cv_type_pid_t+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 else
7393 cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h. */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7401 main ()
7403 if ((pid_t *) 0)
7404 return 0;
7405 if (sizeof (pid_t))
7406 return 0;
7408 return 0;
7410 _ACEOF
7411 rm -f conftest.$ac_objext
7412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7413 (eval $ac_compile) 2>conftest.er1
7414 ac_status=$?
7415 grep -v '^ *+' conftest.er1 >conftest.err
7416 rm -f conftest.er1
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try='test -z "$ac_c_werror_flag"
7421 || test ! -s conftest.err'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423 (eval $ac_try) 2>&5
7424 ac_status=$?
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; } &&
7427 { ac_try='test -s conftest.$ac_objext'
7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 (eval $ac_try) 2>&5
7430 ac_status=$?
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; }; then
7433 ac_cv_type_pid_t=yes
7434 else
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7438 ac_cv_type_pid_t=no
7440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7442 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7443 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7444 if test $ac_cv_type_pid_t = yes; then
7446 else
7448 cat >>confdefs.h <<_ACEOF
7449 #define pid_t int
7450 _ACEOF
7456 for ac_header in unistd.h vfork.h
7458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7459 echo "$as_me:$LINENO: checking for $ac_header" >&5
7460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464 cat >conftest.$ac_ext <<_ACEOF
7465 /* confdefs.h. */
7466 _ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7470 #include <$ac_header>
7471 _ACEOF
7472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7474 ac_status=$?
7475 grep -v '^ *+' conftest.er1 >conftest.err
7476 rm -f conftest.er1
7477 cat conftest.err >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } >/dev/null; then
7480 if test -s conftest.err; then
7481 ac_cpp_err=$ac_c_preproc_warn_flag
7482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7483 else
7484 ac_cpp_err=
7486 else
7487 ac_cpp_err=yes
7489 if test -z "$ac_cpp_err"; then
7490 eval "$as_ac_Header=yes"
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7495 eval "$as_ac_Header=no"
7497 rm -f conftest.err conftest.$ac_ext
7499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7502 cat >>confdefs.h <<_ACEOF
7503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7504 _ACEOF
7507 done
7511 for ac_func in fork vfork
7513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7514 echo "$as_me:$LINENO: checking for $ac_func" >&5
7515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7516 if eval "test \"\${$as_ac_var+set}\" = set"; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519 cat >conftest.$ac_ext <<_ACEOF
7520 /* confdefs.h. */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7527 #define $ac_func innocuous_$ac_func
7529 /* System header to define __stub macros and hopefully few prototypes,
7530 which can conflict with char $ac_func (); below.
7531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7532 <limits.h> exists even on freestanding compilers. */
7534 #ifdef __STDC__
7535 # include <limits.h>
7536 #else
7537 # include <assert.h>
7538 #endif
7540 #undef $ac_func
7542 /* Override any gcc2 internal prototype to avoid an error. */
7543 #ifdef __cplusplus
7544 extern "C"
7546 #endif
7547 /* We use char because int might match the return type of a gcc2
7548 builtin and then its argument prototype would still apply. */
7549 char $ac_func ();
7550 /* The GNU C library defines this for functions which it implements
7551 to always fail with ENOSYS. Some functions are actually named
7552 something starting with __ and the normal name is an alias. */
7553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7554 choke me
7555 #else
7556 char (*f) () = $ac_func;
7557 #endif
7558 #ifdef __cplusplus
7560 #endif
7563 main ()
7565 return f != $ac_func;
7567 return 0;
7569 _ACEOF
7570 rm -f conftest.$ac_objext conftest$ac_exeext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572 (eval $ac_link) 2>conftest.er1
7573 ac_status=$?
7574 grep -v '^ *+' conftest.er1 >conftest.err
7575 rm -f conftest.er1
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try='test -z "$ac_c_werror_flag"
7580 || test ! -s conftest.err'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 (eval $ac_try) 2>&5
7583 ac_status=$?
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try='test -s conftest$ac_exeext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 (eval $ac_try) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 eval "$as_ac_var=yes"
7593 else
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 eval "$as_ac_var=no"
7599 rm -f conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
7602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7604 if test `eval echo '${'$as_ac_var'}'` = yes; then
7605 cat >>confdefs.h <<_ACEOF
7606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7607 _ACEOF
7610 done
7612 if test "x$ac_cv_func_fork" = xyes; then
7613 echo "$as_me:$LINENO: checking for working fork" >&5
7614 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7615 if test "${ac_cv_func_fork_works+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 else
7618 if test "$cross_compiling" = yes; then
7619 ac_cv_func_fork_works=cross
7620 else
7621 cat >conftest.$ac_ext <<_ACEOF
7622 /* By Ruediger Kuhlmann. */
7623 #include <sys/types.h>
7624 #if HAVE_UNISTD_H
7625 # include <unistd.h>
7626 #endif
7627 /* Some systems only have a dummy stub for fork() */
7628 int main ()
7630 if (fork() < 0)
7631 exit (1);
7632 exit (0);
7634 _ACEOF
7635 rm -f conftest$ac_exeext
7636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7637 (eval $ac_link) 2>&5
7638 ac_status=$?
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 (eval $ac_try) 2>&5
7643 ac_status=$?
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 ac_cv_func_fork_works=yes
7647 else
7648 echo "$as_me: program exited with status $ac_status" >&5
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7652 ( exit $ac_status )
7653 ac_cv_func_fork_works=no
7655 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7658 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7659 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7661 else
7662 ac_cv_func_fork_works=$ac_cv_func_fork
7664 if test "x$ac_cv_func_fork_works" = xcross; then
7665 case $host in
7666 *-*-amigaos* | *-*-msdosdjgpp*)
7667 # Override, as these systems have only a dummy fork() stub
7668 ac_cv_func_fork_works=no
7671 ac_cv_func_fork_works=yes
7673 esac
7674 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7675 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7677 ac_cv_func_vfork_works=$ac_cv_func_vfork
7678 if test "x$ac_cv_func_vfork" = xyes; then
7679 echo "$as_me:$LINENO: checking for working vfork" >&5
7680 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7681 if test "${ac_cv_func_vfork_works+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684 if test "$cross_compiling" = yes; then
7685 ac_cv_func_vfork_works=cross
7686 else
7687 cat >conftest.$ac_ext <<_ACEOF
7688 /* confdefs.h. */
7689 _ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7693 /* Thanks to Paul Eggert for this test. */
7694 #include <stdio.h>
7695 #include <stdlib.h>
7696 #include <sys/types.h>
7697 #include <sys/stat.h>
7698 #include <sys/wait.h>
7699 #if HAVE_UNISTD_H
7700 # include <unistd.h>
7701 #endif
7702 #if HAVE_VFORK_H
7703 # include <vfork.h>
7704 #endif
7705 /* On some sparc systems, changes by the child to local and incoming
7706 argument registers are propagated back to the parent. The compiler
7707 is told about this with #include <vfork.h>, but some compilers
7708 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7709 static variable whose address is put into a register that is
7710 clobbered by the vfork. */
7711 static void
7712 #ifdef __cplusplus
7713 sparc_address_test (int arg)
7714 # else
7715 sparc_address_test (arg) int arg;
7716 #endif
7718 static pid_t child;
7719 if (!child) {
7720 child = vfork ();
7721 if (child < 0) {
7722 perror ("vfork");
7723 _exit(2);
7725 if (!child) {
7726 arg = getpid();
7727 write(-1, "", 0);
7728 _exit (arg);
7734 main ()
7736 pid_t parent = getpid ();
7737 pid_t child;
7739 sparc_address_test (0);
7741 child = vfork ();
7743 if (child == 0) {
7744 /* Here is another test for sparc vfork register problems. This
7745 test uses lots of local variables, at least as many local
7746 variables as main has allocated so far including compiler
7747 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7748 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7749 reuse the register of parent for one of the local variables,
7750 since it will think that parent can't possibly be used any more
7751 in this routine. Assigning to the local variable will thus
7752 munge parent in the parent process. */
7753 pid_t
7754 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7755 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7756 /* Convince the compiler that p..p7 are live; otherwise, it might
7757 use the same hardware register for all 8 local variables. */
7758 if (p != p1 || p != p2 || p != p3 || p != p4
7759 || p != p5 || p != p6 || p != p7)
7760 _exit(1);
7762 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7763 from child file descriptors. If the child closes a descriptor
7764 before it execs or exits, this munges the parent's descriptor
7765 as well. Test for this by closing stdout in the child. */
7766 _exit(close(fileno(stdout)) != 0);
7767 } else {
7768 int status;
7769 struct stat st;
7771 while (wait(&status) != child)
7773 exit(
7774 /* Was there some problem with vforking? */
7775 child < 0
7777 /* Did the child fail? (This shouldn't happen.) */
7778 || status
7780 /* Did the vfork/compiler bug occur? */
7781 || parent != getpid()
7783 /* Did the file descriptor bug occur? */
7784 || fstat(fileno(stdout), &st) != 0
7788 _ACEOF
7789 rm -f conftest$ac_exeext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7791 (eval $ac_link) 2>&5
7792 ac_status=$?
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 (eval $ac_try) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7800 ac_cv_func_vfork_works=yes
7801 else
7802 echo "$as_me: program exited with status $ac_status" >&5
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7806 ( exit $ac_status )
7807 ac_cv_func_vfork_works=no
7809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7812 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7813 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7816 if test "x$ac_cv_func_fork_works" = xcross; then
7817 ac_cv_func_vfork_works=$ac_cv_func_vfork
7818 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7819 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7822 if test "x$ac_cv_func_vfork_works" = xyes; then
7824 cat >>confdefs.h <<\_ACEOF
7825 #define HAVE_WORKING_VFORK 1
7826 _ACEOF
7828 else
7830 cat >>confdefs.h <<\_ACEOF
7831 #define vfork fork
7832 _ACEOF
7835 if test "x$ac_cv_func_fork_works" = xyes; then
7837 cat >>confdefs.h <<\_ACEOF
7838 #define HAVE_WORKING_FORK 1
7839 _ACEOF
7846 am_cv_lib_iconv_ldpath=
7848 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7849 if test "${with_libiconv_prefix+set}" = set; then
7850 withval="$with_libiconv_prefix"
7852 for dir in `echo "$withval" | tr : ' '`; do
7853 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7854 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7855 done
7860 for ac_header in iconv.h
7862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7863 echo "$as_me:$LINENO: checking for $ac_header" >&5
7864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868 cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h. */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7874 #include <$ac_header>
7875 _ACEOF
7876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7878 ac_status=$?
7879 grep -v '^ *+' conftest.er1 >conftest.err
7880 rm -f conftest.er1
7881 cat conftest.err >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } >/dev/null; then
7884 if test -s conftest.err; then
7885 ac_cpp_err=$ac_c_preproc_warn_flag
7886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7887 else
7888 ac_cpp_err=
7890 else
7891 ac_cpp_err=yes
7893 if test -z "$ac_cpp_err"; then
7894 eval "$as_ac_Header=yes"
7895 else
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 eval "$as_ac_Header=no"
7901 rm -f conftest.err conftest.$ac_ext
7903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7906 cat >>confdefs.h <<_ACEOF
7907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7908 _ACEOF
7911 done
7914 echo "$as_me:$LINENO: checking for iconv" >&5
7915 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7916 if test "${am_cv_func_iconv+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7920 am_cv_func_iconv="no, consider installing GNU libiconv"
7921 am_cv_lib_iconv=no
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h. */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 #include <stdlib.h>
7929 #include <iconv.h>
7931 main ()
7933 iconv_t cd = iconv_open("","");
7934 iconv(cd,NULL,NULL,NULL,NULL);
7935 iconv_close(cd);
7937 return 0;
7939 _ACEOF
7940 rm -f conftest.$ac_objext conftest$ac_exeext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7942 (eval $ac_link) 2>conftest.er1
7943 ac_status=$?
7944 grep -v '^ *+' conftest.er1 >conftest.err
7945 rm -f conftest.er1
7946 cat conftest.err >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } &&
7949 { ac_try='test -z "$ac_c_werror_flag"
7950 || test ! -s conftest.err'
7951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952 (eval $ac_try) 2>&5
7953 ac_status=$?
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; } &&
7956 { ac_try='test -s conftest$ac_exeext'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 (eval $ac_try) 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 am_cv_func_iconv=yes
7963 else
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7968 rm -f conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970 if test "$am_cv_func_iconv" != yes; then
7971 am_save_LIBS="$LIBS"
7972 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7973 cat >conftest.$ac_ext <<_ACEOF
7974 /* confdefs.h. */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7979 #include <stdlib.h>
7980 #include <iconv.h>
7982 main ()
7984 iconv_t cd = iconv_open("","");
7985 iconv(cd,NULL,NULL,NULL,NULL);
7986 iconv_close(cd);
7988 return 0;
7990 _ACEOF
7991 rm -f conftest.$ac_objext conftest$ac_exeext
7992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7993 (eval $ac_link) 2>conftest.er1
7994 ac_status=$?
7995 grep -v '^ *+' conftest.er1 >conftest.err
7996 rm -f conftest.er1
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -z "$ac_c_werror_flag"
8001 || test ! -s conftest.err'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 (eval $ac_try) 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; } &&
8007 { ac_try='test -s conftest$ac_exeext'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009 (eval $ac_try) 2>&5
8010 ac_status=$?
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; }; then
8013 am_cv_lib_iconv=yes
8014 am_cv_func_iconv=yes
8015 else
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8020 rm -f conftest.err conftest.$ac_objext \
8021 conftest$ac_exeext conftest.$ac_ext
8022 LIBS="$am_save_LIBS"
8026 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8027 echo "${ECHO_T}$am_cv_func_iconv" >&6
8028 if test "$am_cv_func_iconv" = yes; then
8030 cat >>confdefs.h <<\_ACEOF
8031 #define HAVE_ICONV 1
8032 _ACEOF
8034 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8035 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8036 if test "${am_cv_proto_iconv+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8040 cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h. */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8047 #include <stdlib.h>
8048 #include <iconv.h>
8049 extern
8050 #ifdef __cplusplus
8052 #endif
8053 #if defined(__STDC__) || defined(__cplusplus)
8054 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8055 #else
8056 size_t iconv();
8057 #endif
8060 main ()
8064 return 0;
8066 _ACEOF
8067 rm -f conftest.$ac_objext
8068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8069 (eval $ac_compile) 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try='test -z "$ac_c_werror_flag"
8077 || test ! -s conftest.err'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 (eval $ac_try) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest.$ac_objext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 am_cv_proto_iconv_arg1=""
8090 else
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8094 am_cv_proto_iconv_arg1="const"
8096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8097 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);"
8100 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8101 echo "$as_me:$LINENO: result: ${ac_t:-
8102 }$am_cv_proto_iconv" >&5
8103 echo "${ECHO_T}${ac_t:-
8104 }$am_cv_proto_iconv" >&6
8106 cat >>confdefs.h <<_ACEOF
8107 #define ICONV_CONST $am_cv_proto_iconv_arg1
8108 _ACEOF
8111 LIBICONV=
8112 if test "$am_cv_lib_iconv" = yes; then
8113 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8117 # Until we have in-tree GNU iconv:
8118 LIBICONV_DEP=
8122 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8123 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8124 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 else
8127 cat >conftest.$ac_ext <<_ACEOF
8128 /* confdefs.h. */
8129 _ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 #include <locale.h>
8135 main ()
8137 return LC_MESSAGES
8139 return 0;
8141 _ACEOF
8142 rm -f conftest.$ac_objext conftest$ac_exeext
8143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8144 (eval $ac_link) 2>conftest.er1
8145 ac_status=$?
8146 grep -v '^ *+' conftest.er1 >conftest.err
8147 rm -f conftest.er1
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } &&
8151 { ac_try='test -z "$ac_c_werror_flag"
8152 || test ! -s conftest.err'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 (eval $ac_try) 2>&5
8155 ac_status=$?
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; } &&
8158 { ac_try='test -s conftest$ac_exeext'
8159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160 (eval $ac_try) 2>&5
8161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; }; then
8164 am_cv_val_LC_MESSAGES=yes
8165 else
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 am_cv_val_LC_MESSAGES=no
8171 rm -f conftest.err conftest.$ac_objext \
8172 conftest$ac_exeext conftest.$ac_ext
8174 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8175 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8176 if test $am_cv_val_LC_MESSAGES = yes; then
8178 cat >>confdefs.h <<\_ACEOF
8179 #define HAVE_LC_MESSAGES 1
8180 _ACEOF
8185 # We will need to find libiberty.h and ansidecl.h
8186 saved_CFLAGS="$CFLAGS"
8187 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8212 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8213 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8214 fprintf_unlocked strstr errno snprintf vasprintf \
8215 malloc realloc calloc free basename getopt clock getpagesize
8217 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8218 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8219 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8220 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223 cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h. */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 #undef $ac_tr_decl
8230 #define $ac_tr_decl 1
8232 #include "ansidecl.h"
8233 #include "system.h"
8236 main ()
8238 #ifndef $ac_func
8239 char *(*pfn) = (char *(*)) $ac_func ;
8240 #endif
8242 return 0;
8244 _ACEOF
8245 rm -f conftest.$ac_objext
8246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8247 (eval $ac_compile) 2>conftest.er1
8248 ac_status=$?
8249 grep -v '^ *+' conftest.er1 >conftest.err
8250 rm -f conftest.er1
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -z "$ac_c_werror_flag"
8255 || test ! -s conftest.err'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 (eval $ac_try) 2>&5
8258 ac_status=$?
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; } &&
8261 { ac_try='test -s conftest.$ac_objext'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 (eval $ac_try) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 eval "gcc_cv_have_decl_$ac_func=yes"
8268 else
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8272 eval "gcc_cv_have_decl_$ac_func=no"
8274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8277 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8278 echo "$as_me:$LINENO: result: yes" >&5
8279 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8280 #define $ac_tr_decl 1
8281 _ACEOF
8283 else
8284 echo "$as_me:$LINENO: result: no" >&5
8285 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8286 #define $ac_tr_decl 0
8287 _ACEOF
8291 done
8297 for ac_func in getrlimit setrlimit getrusage
8299 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8300 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8301 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8302 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305 cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h. */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 #undef $ac_tr_decl
8312 #define $ac_tr_decl 1
8314 #include "ansidecl.h"
8315 #include "system.h"
8316 #ifdef HAVE_SYS_RESOURCE_H
8317 #include <sys/resource.h>
8318 #endif
8322 main ()
8324 #ifndef $ac_func
8325 char *(*pfn) = (char *(*)) $ac_func ;
8326 #endif
8328 return 0;
8330 _ACEOF
8331 rm -f conftest.$ac_objext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8333 (eval $ac_compile) 2>conftest.er1
8334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try='test -z "$ac_c_werror_flag"
8341 || test ! -s conftest.err'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 (eval $ac_try) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest.$ac_objext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 (eval $ac_try) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 eval "gcc_cv_have_decl_$ac_func=yes"
8354 else
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8358 eval "gcc_cv_have_decl_$ac_func=no"
8360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8363 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8364 echo "$as_me:$LINENO: result: yes" >&5
8365 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8366 #define $ac_tr_decl 1
8367 _ACEOF
8369 else
8370 echo "$as_me:$LINENO: result: no" >&5
8371 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8372 #define $ac_tr_decl 0
8373 _ACEOF
8377 done
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h. */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8387 #include "ansidecl.h"
8388 #include "system.h"
8389 #ifdef HAVE_SYS_RESOURCE_H
8390 #include <sys/resource.h>
8391 #endif
8394 main ()
8396 rlim_t l = 0;
8398 return 0;
8400 _ACEOF
8401 rm -f conftest.$ac_objext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8403 (eval $ac_compile) 2>conftest.er1
8404 ac_status=$?
8405 grep -v '^ *+' conftest.er1 >conftest.err
8406 rm -f conftest.er1
8407 cat conftest.err >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } &&
8410 { ac_try='test -z "$ac_c_werror_flag"
8411 || test ! -s conftest.err'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest.$ac_objext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 (eval $ac_try) 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8424 else
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8429 cat >>confdefs.h <<\_ACEOF
8430 #define rlim_t long
8431 _ACEOF
8434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8437 for ac_func in ldgetname
8439 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8440 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8441 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8442 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445 cat >conftest.$ac_ext <<_ACEOF
8446 /* confdefs.h. */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8451 #undef $ac_tr_decl
8452 #define $ac_tr_decl 1
8454 #include "ansidecl.h"
8455 #include "system.h"
8456 #ifdef HAVE_LDFCN_H
8457 #include <ldfcn.h>
8458 #endif
8462 main ()
8464 #ifndef $ac_func
8465 char *(*pfn) = (char *(*)) $ac_func ;
8466 #endif
8468 return 0;
8470 _ACEOF
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473 (eval $ac_compile) 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -z "$ac_c_werror_flag"
8481 || test ! -s conftest.err'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 (eval $ac_try) 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; } &&
8487 { ac_try='test -s conftest.$ac_objext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 (eval $ac_try) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8493 eval "gcc_cv_have_decl_$ac_func=yes"
8494 else
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8498 eval "gcc_cv_have_decl_$ac_func=no"
8500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8503 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8504 echo "$as_me:$LINENO: result: yes" >&5
8505 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8506 #define $ac_tr_decl 1
8507 _ACEOF
8509 else
8510 echo "$as_me:$LINENO: result: no" >&5
8511 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8512 #define $ac_tr_decl 0
8513 _ACEOF
8517 done
8521 for ac_func in times
8523 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8524 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8525 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8526 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8528 else
8529 cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h. */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 #undef $ac_tr_decl
8536 #define $ac_tr_decl 1
8538 #include "ansidecl.h"
8539 #include "system.h"
8540 #ifdef HAVE_SYS_TIMES_H
8541 #include <sys/times.h>
8542 #endif
8546 main ()
8548 #ifndef $ac_func
8549 char *(*pfn) = (char *(*)) $ac_func ;
8550 #endif
8552 return 0;
8554 _ACEOF
8555 rm -f conftest.$ac_objext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8557 (eval $ac_compile) 2>conftest.er1
8558 ac_status=$?
8559 grep -v '^ *+' conftest.er1 >conftest.err
8560 rm -f conftest.er1
8561 cat conftest.err >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } &&
8564 { ac_try='test -z "$ac_c_werror_flag"
8565 || test ! -s conftest.err'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 (eval $ac_try) 2>&5
8568 ac_status=$?
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; } &&
8571 { ac_try='test -s conftest.$ac_objext'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 (eval $ac_try) 2>&5
8574 ac_status=$?
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; }; then
8577 eval "gcc_cv_have_decl_$ac_func=yes"
8578 else
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8582 eval "gcc_cv_have_decl_$ac_func=no"
8584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8587 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8588 echo "$as_me:$LINENO: result: yes" >&5
8589 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8590 #define $ac_tr_decl 1
8591 _ACEOF
8593 else
8594 echo "$as_me:$LINENO: result: no" >&5
8595 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8596 #define $ac_tr_decl 0
8597 _ACEOF
8601 done
8604 # More time-related stuff.
8605 echo "$as_me:$LINENO: checking for struct tms" >&5
8606 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8607 if test "${ac_cv_struct_tms+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8611 cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h. */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8618 #include "ansidecl.h"
8619 #include "system.h"
8620 #ifdef HAVE_SYS_TIMES_H
8621 #include <sys/times.h>
8622 #endif
8625 main ()
8627 struct tms tms;
8629 return 0;
8631 _ACEOF
8632 rm -f conftest.$ac_objext
8633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8634 (eval $ac_compile) 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } &&
8641 { ac_try='test -z "$ac_c_werror_flag"
8642 || test ! -s conftest.err'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 (eval $ac_try) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try='test -s conftest.$ac_objext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_cv_struct_tms=yes
8655 else
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 ac_cv_struct_tms=no
8661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8663 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8664 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8665 if test $ac_cv_struct_tms = yes; then
8667 cat >>confdefs.h <<\_ACEOF
8668 #define HAVE_STRUCT_TMS 1
8669 _ACEOF
8673 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8674 # revisit after autoconf 2.50.
8675 echo "$as_me:$LINENO: checking for clock_t" >&5
8676 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8677 if test "${gcc_cv_type_clock_t+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8681 cat >conftest.$ac_ext <<_ACEOF
8682 /* confdefs.h. */
8683 _ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8688 #include "ansidecl.h"
8689 #include "system.h"
8692 main ()
8694 clock_t x;
8696 return 0;
8698 _ACEOF
8699 rm -f conftest.$ac_objext
8700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8701 (eval $ac_compile) 2>conftest.er1
8702 ac_status=$?
8703 grep -v '^ *+' conftest.er1 >conftest.err
8704 rm -f conftest.er1
8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } &&
8708 { ac_try='test -z "$ac_c_werror_flag"
8709 || test ! -s conftest.err'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 (eval $ac_try) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; } &&
8715 { ac_try='test -s conftest.$ac_objext'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 (eval $ac_try) 2>&5
8718 ac_status=$?
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; }; then
8721 gcc_cv_type_clock_t=yes
8722 else
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8726 gcc_cv_type_clock_t=no
8728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8730 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8731 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8732 if test $gcc_cv_type_clock_t = yes; then
8734 cat >>confdefs.h <<\_ACEOF
8735 #define HAVE_CLOCK_T 1
8736 _ACEOF
8740 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8741 CFLAGS="$saved_CFLAGS"
8743 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8744 if test "${enable_initfini_array+set}" = set; then
8745 enableval="$enable_initfini_array"
8747 else
8749 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8750 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8751 if test "${gcc_cv_initfini_array+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754 if test "$cross_compiling" = yes; then
8755 gcc_cv_initfini_array=no
8756 else
8757 cat >conftest.$ac_ext <<_ACEOF
8758 /* confdefs.h. */
8759 _ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8764 static int x = -1;
8765 int main (void) { return x; }
8766 int foo (void) { x = 0; }
8767 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8768 _ACEOF
8769 rm -f conftest$ac_exeext
8770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8771 (eval $ac_link) 2>&5
8772 ac_status=$?
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 (eval $ac_try) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 gcc_cv_initfini_array=yes
8781 else
8782 echo "$as_me: program exited with status $ac_status" >&5
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8786 ( exit $ac_status )
8787 gcc_cv_initfini_array=no
8789 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8792 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8793 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8794 enable_initfini_array=$gcc_cv_initfini_array
8797 if test $enable_initfini_array = yes; then
8799 cat >>confdefs.h <<\_ACEOF
8800 #define HAVE_INITFINI_ARRAY 1
8801 _ACEOF
8805 # mkdir takes a single argument on some systems.
8806 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8807 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8808 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811 cat >conftest.$ac_ext <<_ACEOF
8812 /* confdefs.h. */
8813 _ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h. */
8818 #include <sys/types.h>
8819 #ifdef HAVE_SYS_STAT_H
8820 # include <sys/stat.h>
8821 #endif
8822 #ifdef HAVE_UNISTD_H
8823 # include <unistd.h>
8824 #endif
8825 #ifdef HAVE_DIRECT_H
8826 # include <direct.h>
8827 #endif
8829 main ()
8831 mkdir ("foo", 0);
8833 return 0;
8835 _ACEOF
8836 rm -f conftest.$ac_objext
8837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8838 (eval $ac_compile) 2>conftest.er1
8839 ac_status=$?
8840 grep -v '^ *+' conftest.er1 >conftest.err
8841 rm -f conftest.er1
8842 cat conftest.err >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } &&
8845 { ac_try='test -z "$ac_c_werror_flag"
8846 || test ! -s conftest.err'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 (eval $ac_try) 2>&5
8849 ac_status=$?
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; } &&
8852 { ac_try='test -s conftest.$ac_objext'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 (eval $ac_try) 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8858 gcc_cv_mkdir_takes_one_arg=no
8859 else
8860 echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8863 gcc_cv_mkdir_takes_one_arg=yes
8865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8867 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8868 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8869 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8871 cat >>confdefs.h <<\_ACEOF
8872 #define MKDIR_TAKES_ONE_ARG 1
8873 _ACEOF
8878 # File extensions
8879 manext='.1'
8880 objext='.o'
8884 # With Setjmp/Longjmp based exception handling.
8885 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8886 if test "${enable_sjlj_exceptions+set}" = set; then
8887 enableval="$enable_sjlj_exceptions"
8888 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8890 cat >>confdefs.h <<_ACEOF
8891 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8892 _ACEOF
8896 if test x$host = x$target; then
8897 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8898 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8899 if test "${ac_cv_lib_unwind_main+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902 ac_check_lib_save_LIBS=$LIBS
8903 LIBS="-lunwind $LIBS"
8904 cat >conftest.$ac_ext <<_ACEOF
8905 /* confdefs.h. */
8906 _ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8913 main ()
8915 main ();
8917 return 0;
8919 _ACEOF
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -z "$ac_c_werror_flag"
8930 || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_cv_lib_unwind_main=yes
8943 else
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 ac_cv_lib_unwind_main=no
8949 rm -f conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8951 LIBS=$ac_check_lib_save_LIBS
8953 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8954 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8955 if test $ac_cv_lib_unwind_main = yes; then
8956 use_libunwind_default=yes
8957 else
8958 use_libunwind_default=no
8961 else
8962 use_libunwind_default=no
8964 # Use libunwind based exception handling.
8965 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8966 if test "${enable_libunwind_exceptions+set}" = set; then
8967 enableval="$enable_libunwind_exceptions"
8968 use_libunwind_exceptions=$enableval
8969 else
8970 use_libunwind_exceptions=$use_libunwind_default
8972 if test x"$use_libunwind_exceptions" = xyes; then
8974 cat >>confdefs.h <<\_ACEOF
8975 #define USE_LIBUNWIND_EXCEPTIONS 1
8976 _ACEOF
8980 # --------------------------------------------------------
8981 # Build, host, and target specific configuration fragments
8982 # --------------------------------------------------------
8984 # Collect build-machine-specific information.
8985 . ${srcdir}/config.build
8987 # Collect host-machine-specific information.
8988 . ${srcdir}/config.host
8990 target_gtfiles=
8992 # Collect target-machine-specific information.
8993 . ${srcdir}/config.gcc
8995 extra_objs="${host_extra_objs} ${extra_objs}"
8996 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
8998 # Default the target-machine variables that were not explicitly set.
8999 if test x"$tm_file" = x
9000 then tm_file=$cpu_type/$cpu_type.h; fi
9002 if test x"$extra_headers" = x
9003 then extra_headers=; fi
9005 if test x$md_file = x
9006 then md_file=$cpu_type/$cpu_type.md; fi
9008 if test x$out_file = x
9009 then out_file=$cpu_type/$cpu_type.c; fi
9011 if test x"$tmake_file" = x
9012 then tmake_file=$cpu_type/t-$cpu_type
9015 if test x"$dwarf2" = xyes
9016 then tm_file="$tm_file tm-dwarf2.h"
9019 # Say what files are being used for the output code and MD file.
9020 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9021 echo "Using \`$srcdir/config/$md_file' as machine description file."
9023 # If any of the xm_file variables contain nonexistent files, warn
9024 # about them and drop them.
9027 for x in $build_xm_file; do
9028 if test -f $srcdir/config/$x
9029 then bx="$bx $x"
9030 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9031 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9033 done
9034 build_xm_file="$bx"
9037 for x in $host_xm_file; do
9038 if test -f $srcdir/config/$x
9039 then hx="$hx $x"
9040 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9041 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9043 done
9044 host_xm_file="$hx"
9047 for x in $xm_file; do
9048 if test -f $srcdir/config/$x
9049 then tx="$tx $x"
9050 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9051 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9053 done
9054 xm_file="$tx"
9056 count=a
9057 for f in $tm_file; do
9058 count=${count}x
9059 done
9060 if test $count = ax; then
9061 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9062 else
9063 echo "Using the following target machine macro files:"
9064 for f in $tm_file; do
9065 echo " $srcdir/config/$f"
9066 done
9069 if test x$need_64bit_hwint = xyes; then
9071 cat >>confdefs.h <<\_ACEOF
9072 #define NEED_64BIT_HOST_WIDE_INT 1
9073 _ACEOF
9077 count=a
9078 for f in $host_xm_file; do
9079 count=${count}x
9080 done
9081 if test $count = a; then
9083 elif test $count = ax; then
9084 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9085 else
9086 echo "Using the following host machine macro files:"
9087 for f in $host_xm_file; do
9088 echo " $srcdir/config/$f"
9089 done
9091 echo "Using ${out_host_hook_obj} for host machine hooks."
9093 if test "$host_xm_file" != "$build_xm_file"; then
9094 count=a
9095 for f in $build_xm_file; do
9096 count=${count}x
9097 done
9098 if test $count = a; then
9100 elif test $count = ax; then
9101 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9102 else
9103 echo "Using the following build machine macro files:"
9104 for f in $build_xm_file; do
9105 echo " $srcdir/config/$f"
9106 done
9110 # ---------
9111 # Threading
9112 # ---------
9114 # Check if a valid thread package
9115 case ${enable_threads} in
9116 "" | no)
9117 # No threads
9118 target_thread_file='single'
9120 yes)
9121 # default
9122 target_thread_file='single'
9124 aix | dce | gnat | irix | posix | rtems | \
9125 single | solaris | vxworks | win32 )
9126 target_thread_file=${enable_threads}
9129 echo "${enable_threads} is an unknown thread package" 1>&2
9130 exit 1
9132 esac
9134 if test x${thread_file} = x; then
9135 # No thread file set by target-specific clauses in config.gcc,
9136 # so use file chosen by default logic above
9137 thread_file=${target_thread_file}
9140 # Make gthr-default.h if we have a thread file.
9141 gthread_flags=
9142 if test $thread_file != single; then
9143 rm -f gthr-default.h
9144 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9145 gthread_flags=-DHAVE_GTHR_DEFAULT
9149 # --------
9150 # UNSORTED
9151 # --------
9153 if test x$enable___cxa_atexit = xyes || \
9154 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9155 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9156 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9157 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160 cat >conftest.$ac_ext <<_ACEOF
9161 /* confdefs.h. */
9162 _ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9166 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9168 #define __cxa_atexit innocuous___cxa_atexit
9170 /* System header to define __stub macros and hopefully few prototypes,
9171 which can conflict with char __cxa_atexit (); below.
9172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9173 <limits.h> exists even on freestanding compilers. */
9175 #ifdef __STDC__
9176 # include <limits.h>
9177 #else
9178 # include <assert.h>
9179 #endif
9181 #undef __cxa_atexit
9183 /* Override any gcc2 internal prototype to avoid an error. */
9184 #ifdef __cplusplus
9185 extern "C"
9187 #endif
9188 /* We use char because int might match the return type of a gcc2
9189 builtin and then its argument prototype would still apply. */
9190 char __cxa_atexit ();
9191 /* The GNU C library defines this for functions which it implements
9192 to always fail with ENOSYS. Some functions are actually named
9193 something starting with __ and the normal name is an alias. */
9194 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9195 choke me
9196 #else
9197 char (*f) () = __cxa_atexit;
9198 #endif
9199 #ifdef __cplusplus
9201 #endif
9204 main ()
9206 return f != __cxa_atexit;
9208 return 0;
9210 _ACEOF
9211 rm -f conftest.$ac_objext conftest$ac_exeext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9213 (eval $ac_link) 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 (eval $ac_try) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest$ac_exeext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 ac_cv_func___cxa_atexit=yes
9234 else
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9238 ac_cv_func___cxa_atexit=no
9240 rm -f conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9243 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9244 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9245 if test $ac_cv_func___cxa_atexit = yes; then
9247 cat >>confdefs.h <<\_ACEOF
9248 #define DEFAULT_USE_CXA_ATEXIT 1
9249 _ACEOF
9251 else
9252 echo "__cxa_atexit can't be enabled on this target"
9257 # Look for a file containing extra machine modes.
9258 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9259 extra_modes_file='$(srcdir)'/config/${extra_modes}
9262 cat >>confdefs.h <<_ACEOF
9263 #define EXTRA_MODES_FILE "config/$extra_modes"
9264 _ACEOF
9268 # auto-host.h is the file containing items generated by autoconf and is
9269 # the first file included by config.h.
9270 # If host=build, it is correct to have bconfig include auto-host.h
9271 # as well. If host!=build, we are in error and need to do more
9272 # work to find out the build config parameters.
9273 if test x$host = x$build
9274 then
9275 build_auto=auto-host.h
9276 FORBUILD=..
9277 else
9278 # We create a subdir, then run autoconf in the subdir.
9279 # To prevent recursion we set host and build for the new
9280 # invocation of configure to the build for this invocation
9281 # of configure.
9282 tempdir=build.$$
9283 rm -rf $tempdir
9284 mkdir $tempdir
9285 cd $tempdir
9286 case ${srcdir} in
9287 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9288 *) realsrcdir=../${srcdir};;
9289 esac
9290 saved_CFLAGS="${CFLAGS}"
9291 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9292 ${realsrcdir}/configure \
9293 --enable-languages=${enable_languages-all} \
9294 --target=$target_alias --host=$build_alias --build=$build_alias
9295 CFLAGS="${saved_CFLAGS}"
9297 # We just finished tests for the build machine, so rename
9298 # the file auto-build.h in the gcc directory.
9299 mv auto-host.h ../auto-build.h
9300 cd ..
9301 rm -rf $tempdir
9302 build_auto=auto-build.h
9303 FORBUILD=../${build_subdir}
9307 tm_file="${tm_file} defaults.h"
9308 tm_p_file="${tm_p_file} tm-preds.h"
9309 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9310 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9311 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9312 # put this back in temporarily.
9313 xm_file="ansidecl.h ${xm_file}"
9315 # --------
9316 # UNSORTED
9317 # --------
9319 # Get the version trigger filename from the toplevel
9320 if test "${with_gcc_version_trigger+set}" = set; then
9321 gcc_version_trigger=$with_gcc_version_trigger
9322 else
9323 gcc_version_trigger=${srcdir}/version.c
9325 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9326 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9328 # Compile in configure arguments.
9329 if test -f configargs.h ; then
9330 # Being re-configured.
9331 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9332 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9333 else
9334 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9337 # Double all backslashes and backslash all quotes to turn
9338 # gcc_config_arguments into a C string.
9339 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9340 $gcc_config_arguments
9342 gcc_config_arguments_str=`cat conftest.out`
9343 rm -f conftest.out
9345 cat > configargs.h <<EOF
9346 /* Generated automatically. */
9347 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9348 static const char thread_model[] = "$thread_file";
9350 static const struct {
9351 const char *name, *value;
9352 } configure_default_options[] = $configure_default_options;
9355 # Internationalization
9356 PACKAGE=gcc
9357 VERSION="$gcc_version"
9361 # If we haven't got the data from the intl directory,
9362 # assume NLS is disabled.
9363 USE_NLS=no
9364 LIBINTL=
9365 LIBINTL_DEP=
9366 INCINTL=
9367 XGETTEXT=
9368 GMSGFMT=
9369 POSUB=
9370 if test -f ../intl/config.intl; then
9371 . ../intl/config.intl
9373 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9374 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9375 if test x"$USE_NLS" != xyes; then
9376 echo "$as_me:$LINENO: result: no" >&5
9377 echo "${ECHO_T}no" >&6
9378 else
9379 echo "$as_me:$LINENO: result: yes" >&5
9380 echo "${ECHO_T}yes" >&6
9382 cat >>confdefs.h <<\_ACEOF
9383 #define ENABLE_NLS 1
9384 _ACEOF
9387 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9388 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9389 # Look for .po and .gmo files in the source directory.
9390 CATALOGS=
9391 XLINGUAS=
9392 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9393 # If there aren't any .gmo files the shell will give us the
9394 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9395 # weeded out.
9396 case "$cat" in *\**)
9397 continue;;
9398 esac
9399 # The quadruple backslash is collapsed to a double backslash
9400 # by the backticks, then collapsed again by the double quotes,
9401 # leaving us with one backslash in the sed expression (right
9402 # before the dot that mustn't act as a wildcard).
9403 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9404 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9405 # The user is allowed to set LINGUAS to a list of languages to
9406 # install catalogs for. If it's empty that means "all of them."
9407 if test "x$LINGUAS" = x; then
9408 CATALOGS="$CATALOGS $cat"
9409 XLINGUAS="$XLINGUAS $lang"
9410 else
9411 case "$LINGUAS" in *$lang*)
9412 CATALOGS="$CATALOGS $cat"
9413 XLINGUAS="$XLINGUAS $lang"
9415 esac
9417 done
9418 LINGUAS="$XLINGUAS"
9419 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9420 echo "${ECHO_T}$LINGUAS" >&6
9423 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9424 # -liconv on the link line twice.
9425 case "$LIBINTL" in *$LIBICONV*)
9426 LIBICONV= ;;
9427 esac
9429 # Windows32 Registry support for specifying GCC installation paths.
9430 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9431 if test "${enable_win32_registry+set}" = set; then
9432 enableval="$enable_win32_registry"
9435 case $host_os in
9436 win32 | pe | cygwin* | mingw32* | uwin*)
9437 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9438 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9439 if test "x$enable_win32_registry" != xno; then
9441 cat >>confdefs.h <<\_ACEOF
9442 #define ENABLE_WIN32_REGISTRY 1
9443 _ACEOF
9445 echo "$as_me:$LINENO: result: yes" >&5
9446 echo "${ECHO_T}yes" >&6
9447 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9448 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9449 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9452 ac_func_search_save_LIBS=$LIBS
9453 ac_cv_search_RegOpenKeyExA=no
9454 cat >conftest.$ac_ext <<_ACEOF
9455 /* confdefs.h. */
9456 _ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h. */
9461 /* Override any gcc2 internal prototype to avoid an error. */
9462 #ifdef __cplusplus
9463 extern "C"
9464 #endif
9465 /* We use char because int might match the return type of a gcc2
9466 builtin and then its argument prototype would still apply. */
9467 char RegOpenKeyExA ();
9469 main ()
9471 RegOpenKeyExA ();
9473 return 0;
9475 _ACEOF
9476 rm -f conftest.$ac_objext conftest$ac_exeext
9477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478 (eval $ac_link) 2>conftest.er1
9479 ac_status=$?
9480 grep -v '^ *+' conftest.er1 >conftest.err
9481 rm -f conftest.er1
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
9485 { ac_try='test -z "$ac_c_werror_flag"
9486 || test ! -s conftest.err'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 (eval $ac_try) 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; } &&
9492 { ac_try='test -s conftest$ac_exeext'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 (eval $ac_try) 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 ac_cv_search_RegOpenKeyExA="none required"
9499 else
9500 echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9504 rm -f conftest.err conftest.$ac_objext \
9505 conftest$ac_exeext conftest.$ac_ext
9506 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9507 for ac_lib in advapi32; do
9508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9509 cat >conftest.$ac_ext <<_ACEOF
9510 /* confdefs.h. */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9516 /* Override any gcc2 internal prototype to avoid an error. */
9517 #ifdef __cplusplus
9518 extern "C"
9519 #endif
9520 /* We use char because int might match the return type of a gcc2
9521 builtin and then its argument prototype would still apply. */
9522 char RegOpenKeyExA ();
9524 main ()
9526 RegOpenKeyExA ();
9528 return 0;
9530 _ACEOF
9531 rm -f conftest.$ac_objext conftest$ac_exeext
9532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9533 (eval $ac_link) 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try='test -z "$ac_c_werror_flag"
9541 || test ! -s conftest.err'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 (eval $ac_try) 2>&5
9544 ac_status=$?
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; } &&
9547 { ac_try='test -s conftest$ac_exeext'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 (eval $ac_try) 2>&5
9550 ac_status=$?
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
9553 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9554 break
9555 else
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9560 rm -f conftest.err conftest.$ac_objext \
9561 conftest$ac_exeext conftest.$ac_ext
9562 done
9564 LIBS=$ac_func_search_save_LIBS
9566 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9567 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9568 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9569 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9573 else
9574 echo "$as_me:$LINENO: result: no" >&5
9575 echo "${ECHO_T}no" >&6
9578 # Check if user specified a different registry key.
9579 case "x${enable_win32_registry}" in
9580 x | xyes)
9581 # default.
9582 gcc_cv_win32_registry_key="$VERSION"
9584 xno)
9585 # no registry lookup.
9586 gcc_cv_win32_registry_key=''
9589 # user-specified key.
9590 gcc_cv_win32_registry_key="$enable_win32_registry"
9592 esac
9594 if test "x$enable_win32_registry" != xno; then
9595 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9596 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9598 cat >>confdefs.h <<_ACEOF
9599 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9600 _ACEOF
9602 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9603 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9606 esac
9608 # Get an absolute path to the GCC top-level source directory
9609 holddir=`${PWDCMD-pwd}`
9610 cd $srcdir
9611 topdir=`${PWDCMD-pwd}`
9612 cd $holddir
9614 # Conditionalize the makefile for this host machine.
9615 xmake_file=
9616 for f in ${host_xmake_file}
9618 if test -f ${srcdir}/config/$f
9619 then
9620 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9622 done
9624 # Conditionalize the makefile for this target machine.
9625 tmake_file_=
9626 for f in ${tmake_file}
9628 if test -f ${srcdir}/config/$f
9629 then
9630 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9632 done
9633 tmake_file="${tmake_file_}"
9635 symbolic_link='ln -s'
9637 # If the host doesn't support symlinks, modify CC in
9638 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9639 # Otherwise, we can use "CC=$(CC)".
9640 rm -f symtest.tem
9641 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9642 then
9643 cc_set_by_configure="\$(CC)"
9644 quoted_cc_set_by_configure="\$(CC)"
9645 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9646 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9647 else
9648 rm -f symtest.tem
9649 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9650 then
9651 symbolic_link="cp -p"
9652 else
9653 symbolic_link="cp"
9655 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9656 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9657 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9658 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9660 rm -f symtest.tem
9662 out_object_file=`basename $out_file .c`.o
9664 tm_file_list=
9665 tm_include_list=
9666 for f in $tm_file; do
9667 case $f in
9668 defaults.h )
9669 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9670 tm_include_list="${tm_include_list} $f"
9673 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9674 tm_include_list="${tm_include_list} config/$f"
9676 esac
9677 done
9679 tm_p_file_list=
9680 tm_p_include_list=
9681 for f in $tm_p_file; do
9682 case $f in
9683 tm-preds.h )
9684 tm_p_file_list="${tm_p_file_list} $f"
9685 tm_p_include_list="${tm_p_include_list} $f"
9688 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9689 tm_p_include_list="${tm_p_include_list} config/$f"
9690 esac
9691 done
9693 xm_file_list=
9694 xm_include_list=
9695 for f in $xm_file; do
9696 case $f in
9697 ansidecl.h )
9698 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9699 xm_include_list="${xm_include_list} $f"
9701 auto-host.h )
9702 xm_file_list="${xm_file_list} $f"
9703 xm_include_list="${xm_include_list} $f"
9706 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9707 xm_include_list="${xm_include_list} config/$f"
9709 esac
9710 done
9712 host_xm_file_list=
9713 host_xm_include_list=
9714 for f in $host_xm_file; do
9715 case $f in
9716 ansidecl.h )
9717 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9718 host_xm_include_list="${host_xm_include_list} $f"
9720 auto-host.h )
9721 host_xm_file_list="${host_xm_file_list} $f"
9722 host_xm_include_list="${host_xm_include_list} $f"
9725 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9726 host_xm_include_list="${host_xm_include_list} config/$f"
9728 esac
9729 done
9731 build_xm_file_list=
9732 for f in $build_xm_file; do
9733 case $f in
9734 ansidecl.h )
9735 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9736 build_xm_include_list="${build_xm_include_list} $f"
9738 auto-build.h | auto-host.h )
9739 build_xm_file_list="${build_xm_file_list} $f"
9740 build_xm_include_list="${build_xm_include_list} $f"
9743 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9744 build_xm_include_list="${build_xm_include_list} config/$f"
9746 esac
9747 done
9749 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9750 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9751 CROSS=
9752 ALL=all.internal
9753 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9754 if test x$host != x$target
9755 then
9756 CROSS="-DCROSS_COMPILE"
9757 ALL=all.cross
9758 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9759 case "$host","$target" in
9760 # Darwin crosses can use the host system's libraries and headers,
9761 # because of the fat library support. Of course, it must be the
9762 # same version of Darwin on both sides. Allow the user to
9763 # just say --target=foo-darwin without a version number to mean
9764 # "the version on this system".
9765 *-*-darwin*,*-*-darwin*)
9766 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9767 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9768 if test $hostos = $targetos -o $targetos = darwin ; then
9769 CROSS=
9770 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9771 with_headers=yes
9775 i?86-*-*,x86_64-*-* \
9776 | powerpc*-*-*,powerpc64*-*-*)
9777 CROSS="$CROSS -DNATIVE_CROSS" ;;
9778 esac
9779 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9780 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9781 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9784 # If this is a cross-compiler that does not
9785 # have its own set of headers then define
9786 # inhibit_libc
9788 # If this is using newlib, without having the headers available now,
9789 # then define inhibit_libc in LIBGCC2_CFLAGS.
9790 # This prevents libgcc2 from containing any code which requires libc
9791 # support.
9792 inhibit_libc=
9793 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9794 test x$with_newlib = xyes ; } &&
9795 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9796 inhibit_libc=-Dinhibit_libc
9800 # When building gcc with a cross-compiler, we need to adjust things so
9801 # that the generator programs are still built with the native compiler.
9802 # Also, we cannot run fixincludes or fix-header.
9804 # These are the normal (build=host) settings:
9805 BUILD_PREFIX=
9806 BUILD_PREFIX_1=ignore-
9807 CC_FOR_BUILD='$(CC)'
9808 BUILD_CFLAGS='$(ALL_CFLAGS)'
9810 STMP_FIXINC=stmp-fixinc
9812 # Possibly disable fixproto, on a per-target basis.
9813 case ${use_fixproto} in
9815 STMP_FIXPROTO=
9817 yes)
9818 STMP_FIXPROTO=stmp-fixproto
9820 esac
9823 # And these apply if build != host, or we are generating coverage data
9824 if test x$build != x$host || test "x$coverage_flags" != x
9825 then
9826 BUILD_PREFIX=build-
9827 BUILD_PREFIX_1=build-
9828 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9830 if test "x$TARGET_SYSTEM_ROOT" = x; then
9831 STMP_FIXINC=
9832 STMP_FIXPROTO=
9836 # Expand extra_headers to include complete path.
9837 # This substitutes for lots of t-* files.
9838 extra_headers_list=
9839 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9840 for file in ${extra_headers} ; do
9841 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9842 done
9844 # Define collect2 in Makefile.
9845 case $host_can_use_collect2 in
9846 no) collect2= ;;
9847 *) collect2='collect2$(exeext)' ;;
9848 esac
9851 # Add a definition of USE_COLLECT2 if system wants one.
9852 case $use_collect2 in
9853 no) use_collect2= ;;
9854 "") ;;
9856 host_xm_defines="${host_xm_defines} USE_COLLECT2"
9857 xm_defines="${xm_defines} USE_COLLECT2"
9858 case $host_can_use_collect2 in
9860 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
9861 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
9862 { (exit 1); exit 1; }; }
9864 esac
9866 esac
9868 # ---------------------------
9869 # Assembler & linker features
9870 # ---------------------------
9872 # Identify the assembler which will work hand-in-glove with the newly
9873 # built GCC, so that we can examine its features. This is the assembler
9874 # which will be driven by the driver program.
9876 # If build != host, and we aren't building gas in-tree, we identify a
9877 # build->target assembler and hope that it will have the same features
9878 # as the host->target assembler we'll be using.
9879 echo "$as_me:$LINENO: checking what assembler to use" >&5
9880 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9881 in_tree_gas=no
9882 gcc_cv_as=
9883 gcc_cv_gas_major_version=
9884 gcc_cv_gas_minor_version=
9885 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9886 if test -x "$DEFAULT_ASSEMBLER"; then
9887 gcc_cv_as="$DEFAULT_ASSEMBLER"
9888 elif test -x as$host_exeext; then
9889 # Build using assembler in the current directory.
9890 gcc_cv_as=./as$host_exeext
9891 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9892 && test -f ../gas/Makefile \
9893 && test x$build = x$host; then
9894 # Single tree build which includes gas. We want to prefer it
9895 # over whatever linker top-level may have detected, since
9896 # we'll use what we're building after installation anyway.
9897 in_tree_gas=yes
9898 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9899 for f in $gcc_cv_as_bfd_srcdir/configure \
9900 $gcc_cv_as_gas_srcdir/configure \
9901 $gcc_cv_as_gas_srcdir/configure.in \
9902 $gcc_cv_as_gas_srcdir/Makefile.in ; do
9903 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9904 if test x$gcc_cv_gas_version != x; then
9905 break
9907 done
9908 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9909 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9910 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9911 case $gcc_cv_gas_patch_version in
9912 "") gcc_cv_gas_patch_version="0" ;;
9913 esac
9914 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9915 + $gcc_cv_gas_minor_version \) \* 1000 \
9916 + $gcc_cv_gas_patch_version`
9918 rm -f as$host_exeext
9919 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9920 in_tree_gas_is_elf=no
9921 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9922 || (grep 'obj_format = multi' ../gas/Makefile \
9923 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9924 then
9925 in_tree_gas_is_elf=yes
9927 elif test -x "$AS_FOR_TARGET"; then
9928 gcc_cv_as="$AS_FOR_TARGET"
9929 elif test -x "$AS" && test x$host = x$target; then
9930 gcc_cv_as="$AS"
9933 if test "x$gcc_cv_as" = x; then
9934 # Search the same directories that the installed compiler will
9935 # search. Else we may find the wrong assembler and lose. If we
9936 # do not find a suitable assembler binary, then try the user's
9937 # path.
9939 # Also note we have to check MD_EXEC_PREFIX before checking the
9940 # user's path. Unfortunately, there is no good way to get at the
9941 # value of MD_EXEC_PREFIX here. So we do a brute force search
9942 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9943 # to be fixed as part of the make/configure rewrite too.
9945 if test "x$exec_prefix" = xNONE; then
9946 if test "x$prefix" = xNONE; then
9947 test_prefix=/usr/local
9948 else
9949 test_prefix=$prefix
9951 else
9952 test_prefix=$exec_prefix
9955 # If the loop below does not find an assembler, then use whatever
9956 # one we can find in the users's path.
9957 # user's path.
9958 if test "x$program_prefix" != xNONE; then
9959 gcc_cv_as=${program_prefix}as$host_exeext
9960 else
9961 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
9964 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9965 $test_prefix/libexec/gcc/$target_noncanonical \
9966 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9967 /usr/lib/gcc/$target_noncanonical \
9968 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9969 $test_prefix/$target_noncanonical/bin"
9971 if test x$host = x$target; then
9972 test_dirs="$test_dirs \
9973 /usr/libexec \
9974 /usr/ccs/gcc \
9975 /usr/ccs/bin \
9976 /udk/usr/ccs/bin \
9977 /bsd43/usr/lib/cmplrs/cc \
9978 /usr/cross64/usr/bin \
9979 /usr/lib/cmplrs/cc \
9980 /sysv/usr/lib/cmplrs/cc \
9981 /svr4/usr/lib/cmplrs/cc \
9982 /usr/bin"
9985 for dir in $test_dirs; do
9986 if test -x $dir/as$host_exeext; then
9987 gcc_cv_as=$dir/as$host_exeext
9988 break;
9990 done
9992 case $in_tree_gas in
9993 yes)
9994 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9995 echo "${ECHO_T}\"newly built gas\"" >&6
9998 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9999 echo "${ECHO_T}$gcc_cv_as" >&6
10001 esac
10003 # Identify the linker which will work hand-in-glove with the newly
10004 # built GCC, so that we can examine its features. This is the linker
10005 # which will be driven by the driver program.
10007 # If build != host, and we aren't building gas in-tree, we identify a
10008 # build->target linker and hope that it will have the same features
10009 # as the host->target linker we'll be using.
10010 echo "$as_me:$LINENO: checking what linker to use" >&5
10011 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10012 in_tree_ld=no
10013 gcc_cv_ld=
10014 gcc_cv_gld_major_version=
10015 gcc_cv_gld_minor_version=
10016 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10017 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10018 if test -x "$DEFAULT_LINKER"; then
10019 gcc_cv_ld="$DEFAULT_LINKER"
10020 elif test -x collect-ld$host_exeext; then
10021 # Build using linker in the current directory.
10022 gcc_cv_ld=./collect-ld$host_exeext
10023 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10024 && test -f ../ld/Makefile \
10025 && test x$build = x$host; then
10026 # Single tree build which includes ld. We want to prefer it
10027 # over whatever linker top-level may have detected, since
10028 # we'll use what we're building after installation anyway.
10029 in_tree_ld=yes
10030 in_tree_ld_is_elf=no
10031 if (grep 'EMUL = .*elf' ../ld/Makefile \
10032 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10033 in_tree_ld_is_elf=yes
10035 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
10037 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10038 if test x$gcc_cv_gld_version != x; then
10039 break
10041 done
10042 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10043 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10044 rm -f collect-ld$host_exeext
10045 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10046 2>/dev/null
10047 elif test -x "$LD_FOR_TARGET"; then
10048 gcc_cv_ld="$LD_FOR_TARGET"
10049 elif test -x "$LD" && test x$host = x$target; then
10050 gcc_cv_ld="$LD"
10053 if test "x$gcc_cv_ld" = x; then
10054 # Search the same directories that the installed compiler will
10055 # search. Else we may find the wrong linker and lose. If we
10056 # do not find a suitable linker binary, then try the user's
10057 # path.
10059 # Also note we have to check MD_EXEC_PREFIX before checking the
10060 # user's path. Unfortunately, there is no good way to get at the
10061 # value of MD_EXEC_PREFIX here. So we do a brute force search
10062 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10063 # to be fixed as part of the make/configure rewrite too.
10065 if test "x$exec_prefix" = xNONE; then
10066 if test "x$prefix" = xNONE; then
10067 test_prefix=/usr/local
10068 else
10069 test_prefix=$prefix
10071 else
10072 test_prefix=$exec_prefix
10075 # If the loop below does not find an linker, then use whatever
10076 # one we can find in the users's path.
10077 # user's path.
10078 if test "x$program_prefix" != xNONE; then
10079 gcc_cv_ld=${program_prefix}ld$host_exeext
10080 else
10081 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10084 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10085 $test_prefix/libexec/gcc/$target_noncanonical \
10086 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10087 /usr/lib/gcc/$target_noncanonical \
10088 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10089 $test_prefix/$target_noncanonical/bin"
10091 if test x$host = x$target; then
10092 test_dirs="$test_dirs \
10093 /usr/libexec \
10094 /usr/ccs/gcc \
10095 /usr/ccs/bin \
10096 /udk/usr/ccs/bin \
10097 /bsd43/usr/lib/cmplrs/cc \
10098 /usr/cross64/usr/bin \
10099 /usr/lib/cmplrs/cc \
10100 /sysv/usr/lib/cmplrs/cc \
10101 /svr4/usr/lib/cmplrs/cc \
10102 /usr/bin"
10105 for dir in $test_dirs; do
10106 if test -x $dir/ld$host_exeext; then
10107 gcc_cv_ld=$dir/ld$host_exeext
10108 break;
10110 done
10112 case $in_tree_ld in
10113 yes)
10114 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10115 echo "${ECHO_T}\"newly built ld\"" >&6
10118 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10119 echo "${ECHO_T}$gcc_cv_ld" >&6
10121 esac
10123 # Figure out what nm we will be using.
10124 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10125 echo "$as_me:$LINENO: checking what nm to use" >&5
10126 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10127 in_tree_nm=no
10128 if test -x nm$host_exeext; then
10129 gcc_cv_nm=./nm$host_exeext
10130 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10131 && test -f ../binutils/Makefile; then
10132 # Single tree build which includes binutils.
10133 in_tree_nm=yes
10134 gcc_cv_nm=./nm$host_exeext
10135 rm -f nm$host_exeext
10136 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10137 elif test "x$program_prefix" != xNONE; then
10138 gcc_cv_nm=${program_prefix}nm$host_exeext
10139 else
10140 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10142 case $in_tree_nm in
10143 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10144 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10145 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10146 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10147 esac
10149 # Figure out what objdump we will be using.
10150 echo "$as_me:$LINENO: checking what objdump to use" >&5
10151 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10152 in_tree_objdump=no
10153 if test -x objdump$host_exeext; then
10154 gcc_cv_objdump=./objdump$host_exeext
10155 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10156 && test -f ../binutils/Makefile; then
10157 # Single tree build which includes binutils.
10158 in_tree_objdump=yes
10159 gcc_cv_objdump=./objdump$host_exeext
10160 rm -f objdump$host_exeext
10161 $symbolic_link ../binutils/objdump$host_exeext \
10162 objdump$host_exeext 2>/dev/null
10163 elif test "x$program_prefix" != xNONE; then
10164 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10165 else
10166 gcc_cv_objdump=`echo objdump | \
10167 sed "${program_transform_name}"`$host_exeext
10169 case $in_tree_objdump in
10170 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10171 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10172 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10173 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10174 esac
10176 # Figure out what assembler alignment features are present.
10177 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10178 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10179 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182 gcc_cv_as_balign_and_p2align=no
10183 if test $in_tree_gas = yes; then
10184 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10185 then gcc_cv_as_balign_and_p2align=yes
10187 elif test x$gcc_cv_as != x; then
10188 echo '.balign 4
10189 .p2align 2' > conftest.s
10190 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10193 ac_status=$?
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }
10196 then
10197 gcc_cv_as_balign_and_p2align=yes
10198 else
10199 echo "configure: failed program was" >&5
10200 cat conftest.s >&5
10202 rm -f conftest.o conftest.s
10205 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10206 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10207 if test $gcc_cv_as_balign_and_p2align = yes; then
10209 cat >>confdefs.h <<\_ACEOF
10210 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10211 _ACEOF
10215 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10216 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10217 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220 gcc_cv_as_max_skip_p2align=no
10221 if test $in_tree_gas = yes; then
10222 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10223 then gcc_cv_as_max_skip_p2align=yes
10225 elif test x$gcc_cv_as != x; then
10226 echo '.p2align 4,,7' > conftest.s
10227 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229 (eval $ac_try) 2>&5
10230 ac_status=$?
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; }
10233 then
10234 gcc_cv_as_max_skip_p2align=yes
10235 else
10236 echo "configure: failed program was" >&5
10237 cat conftest.s >&5
10239 rm -f conftest.o conftest.s
10242 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10243 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10244 if test $gcc_cv_as_max_skip_p2align = yes; then
10246 cat >>confdefs.h <<\_ACEOF
10247 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10248 _ACEOF
10252 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10253 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10254 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 else
10257 gcc_cv_as_subsection_m1=no
10258 if test $in_tree_gas = yes; then
10259 if test $in_tree_gas_is_elf = yes \
10260 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10261 then gcc_cv_as_subsection_m1=yes
10263 elif test x$gcc_cv_as != x; then
10264 echo 'conftest_label1: .word 0
10265 .subsection -1
10266 conftest_label2: .word 0
10267 .previous' > conftest.s
10268 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270 (eval $ac_try) 2>&5
10271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; }
10274 then
10275 if test x$gcc_cv_nm != x; then
10276 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10277 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10278 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10279 then :
10280 else gcc_cv_as_subsection_m1=yes
10282 rm -f conftest.nm1 conftest.nm2
10284 else
10285 echo "configure: failed program was" >&5
10286 cat conftest.s >&5
10288 rm -f conftest.o conftest.s
10291 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10292 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10293 if test $gcc_cv_as_subsection_m1 = yes; then
10295 cat >>confdefs.h <<\_ACEOF
10296 #define HAVE_GAS_SUBSECTION_ORDERING 1
10297 _ACEOF
10301 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10302 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10303 if test "${gcc_cv_as_weak+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 gcc_cv_as_weak=no
10307 if test $in_tree_gas = yes; then
10308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10309 then gcc_cv_as_weak=yes
10311 elif test x$gcc_cv_as != x; then
10312 echo ' .weak foobar' > conftest.s
10313 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }
10319 then
10320 gcc_cv_as_weak=yes
10321 else
10322 echo "configure: failed program was" >&5
10323 cat conftest.s >&5
10325 rm -f conftest.o conftest.s
10328 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10329 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10330 if test $gcc_cv_as_weak = yes; then
10332 cat >>confdefs.h <<\_ACEOF
10333 #define HAVE_GAS_WEAK 1
10334 _ACEOF
10338 # .hidden needs to be supported in both the assembler and the linker,
10339 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10340 # This is irritatingly difficult to feature test for; we have to check the
10341 # date string after the version number. If we've got an in-tree
10342 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10343 # to be safe.
10344 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10345 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10346 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10347 if test "${gcc_cv_as_hidden+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10349 else
10350 gcc_cv_as_hidden=no
10351 if test $in_tree_gas = yes; then
10352 if test $in_tree_gas_is_elf = yes \
10353 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10354 then gcc_cv_as_hidden=yes
10356 elif test x$gcc_cv_as != x; then
10357 echo ' .hidden foobar
10358 foobar:' > conftest.s
10359 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10362 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; }
10365 then
10366 gcc_cv_as_hidden=yes
10367 else
10368 echo "configure: failed program was" >&5
10369 cat conftest.s >&5
10371 rm -f conftest.o conftest.s
10374 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10375 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10378 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10379 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10380 if test "${gcc_cv_ld_hidden+set}" = set; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 else
10383 if test $in_tree_ld = yes ; then
10384 gcc_cv_ld_hidden=no
10385 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 \
10386 && test $in_tree_ld_is_elf = yes; then
10387 gcc_cv_ld_hidden=yes
10389 else
10390 gcc_cv_ld_hidden=yes
10391 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10392 if echo "$ld_ver" | grep GNU > /dev/null; then
10393 ld_vers=`echo $ld_ver | sed -n \
10394 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10395 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10396 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10397 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10398 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10399 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10400 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'`
10401 if test 0"$ld_date" -lt 20020404; then
10402 if test -n "$ld_date"; then
10403 # If there was date string, but was earlier than 2002-04-04, fail
10404 gcc_cv_ld_hidden=no
10405 elif test -z "$ld_vers"; then
10406 # If there was no date string nor ld version number, something is wrong
10407 gcc_cv_ld_hidden=no
10408 else
10409 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10410 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10411 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10412 test -z "$ld_vers_patch" && ld_vers_patch=0
10413 if test "$ld_vers_major" -lt 2; then
10414 gcc_cv_ld_hidden=no
10415 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10416 gcc_cv_ld_hidden="no"
10417 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10418 gcc_cv_ld_hidden=no
10422 else
10423 case "${target}" in
10424 hppa64*-*-hpux* | ia64*-*-hpux*)
10425 gcc_cv_ld_hidden=yes
10428 gcc_cv_ld_hidden=no
10430 esac
10434 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10435 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10436 libgcc_visibility=no
10438 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10439 libgcc_visibility=yes
10441 cat >>confdefs.h <<\_ACEOF
10442 #define HAVE_GAS_HIDDEN 1
10443 _ACEOF
10447 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10448 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10449 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10450 if test "${gcc_cv_as_leb128+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10452 else
10453 gcc_cv_as_leb128=no
10454 if test $in_tree_gas = yes; then
10455 if test $in_tree_gas_is_elf = yes \
10456 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10457 then gcc_cv_as_leb128=yes
10459 elif test x$gcc_cv_as != x; then
10460 echo ' .data
10461 .uleb128 L2 - L1
10463 .uleb128 1280
10464 .sleb128 -1010
10465 L2:' > conftest.s
10466 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }
10472 then
10473 # GAS versions before 2.11 do not support uleb128,
10474 # despite appearing to.
10475 # ??? There exists an elf-specific test that will crash
10476 # the assembler. Perhaps it's better to figure out whether
10477 # arbitrary sections are supported and try the test.
10478 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10479 if echo "$as_ver" | grep GNU > /dev/null; then
10480 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10481 as_major=`echo $as_ver | sed 's/\..*//'`
10482 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10483 if test $as_major -eq 2 && test $as_minor -lt 11
10484 then :
10485 else gcc_cv_as_leb128=yes
10488 else
10489 echo "configure: failed program was" >&5
10490 cat conftest.s >&5
10492 rm -f conftest.o conftest.s
10495 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10496 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10497 if test $gcc_cv_as_leb128 = yes; then
10499 cat >>confdefs.h <<\_ACEOF
10500 #define HAVE_AS_LEB128 1
10501 _ACEOF
10505 # GAS versions up to and including 2.11.0 may mis-optimize
10506 # .eh_frame data.
10507 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10508 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10509 if test "${gcc_cv_as_eh_frame+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512 gcc_cv_as_eh_frame=no
10513 if test $in_tree_gas = yes; then
10514 if test $in_tree_gas_is_elf = yes \
10515 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10516 then gcc_cv_as_eh_frame=yes
10518 elif test x$gcc_cv_as != x; then
10519 echo ' .text
10520 .LFB1:
10521 .4byte 0
10522 .L1:
10523 .4byte 0
10524 .LFE1:
10525 .section .eh_frame,"aw",@progbits
10526 __FRAME_BEGIN__:
10527 .4byte .LECIE1-.LSCIE1
10528 .LSCIE1:
10529 .4byte 0x0
10530 .byte 0x1
10531 .ascii "z\0"
10532 .byte 0x1
10533 .byte 0x78
10534 .byte 0x1a
10535 .byte 0x0
10536 .byte 0x4
10537 .4byte 1
10538 .p2align 1
10539 .LECIE1:
10540 .LSFDE1:
10541 .4byte .LEFDE1-.LASFDE1
10542 .LASFDE1:
10543 .4byte .LASFDE1-__FRAME_BEGIN__
10544 .4byte .LFB1
10545 .4byte .LFE1-.LFB1
10546 .byte 0x4
10547 .4byte .LFE1-.LFB1
10548 .byte 0x4
10549 .4byte .L1-.LFB1
10550 .LEFDE1:' > conftest.s
10551 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }
10557 then
10558 cat > conftest.lit <<EOF
10559 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10560 0010 01000000 12000000 18000000 00000000 ................
10561 0020 08000000 04080000 0044 .........D
10563 cat > conftest.big <<EOF
10564 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10565 0010 00000001 00000012 00000018 00000000 ................
10566 0020 00000008 04000000 0844 .........D
10568 # If the assembler didn't choke, and we can objdump,
10569 # and we got the correct data, then succeed.
10570 if test x$gcc_cv_objdump != x \
10571 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10572 | tail -3 > conftest.got \
10573 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10574 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10575 then
10576 gcc_cv_as_eh_frame=yes
10577 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; }; then
10583 gcc_cv_as_eh_frame=buggy
10584 else
10585 # Uh oh, what do we do now?
10586 gcc_cv_as_eh_frame=no
10588 else
10589 echo "configure: failed program was" >&5
10590 cat conftest.s >&5
10592 rm -f conftest.o conftest.s
10595 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10596 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10599 if test $gcc_cv_as_eh_frame = buggy; then
10601 cat >>confdefs.h <<\_ACEOF
10602 #define USE_AS_TRADITIONAL_FORMAT 1
10603 _ACEOF
10607 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10608 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10609 if test "${gcc_cv_as_shf_merge+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612 gcc_cv_as_shf_merge=no
10613 if test $in_tree_gas = yes; then
10614 if test $in_tree_gas_is_elf = yes \
10615 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10616 then gcc_cv_as_shf_merge=yes
10618 elif test x$gcc_cv_as != x; then
10619 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10620 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }
10626 then
10627 gcc_cv_as_shf_merge=yes
10628 else
10629 echo "configure: failed program was" >&5
10630 cat conftest.s >&5
10632 rm -f conftest.o conftest.s
10635 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10636 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10639 cat >>confdefs.h <<_ACEOF
10640 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10641 _ACEOF
10644 # Thread-local storage - the check is heavily parametrized.
10645 conftest_s=
10646 tls_first_major=
10647 tls_first_minor=
10648 tls_as_opt=
10649 case "$target" in
10650 alpha*-*-*)
10651 conftest_s='
10652 .section ".tdata","awT",@progbits
10653 foo: .long 25
10654 .text
10655 ldq $27,__tls_get_addr($29) !literal!1
10656 lda $16,foo($29) !tlsgd!1
10657 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10658 ldq $27,__tls_get_addr($29) !literal!2
10659 lda $16,foo($29) !tlsldm!2
10660 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10661 ldq $1,foo($29) !gotdtprel
10662 ldah $2,foo($29) !dtprelhi
10663 lda $3,foo($2) !dtprello
10664 lda $4,foo($29) !dtprel
10665 ldq $1,foo($29) !gottprel
10666 ldah $2,foo($29) !tprelhi
10667 lda $3,foo($2) !tprello
10668 lda $4,foo($29) !tprel'
10669 tls_first_major=2
10670 tls_first_minor=13
10671 tls_as_opt=--fatal-warnings
10673 i[34567]86-*-*)
10674 conftest_s='
10675 .section ".tdata","awT",@progbits
10676 foo: .long 25
10677 .text
10678 movl %gs:0, %eax
10679 leal foo@TLSGD(,%ebx,1), %eax
10680 leal foo@TLSLDM(%ebx), %eax
10681 leal foo@DTPOFF(%eax), %edx
10682 movl foo@GOTTPOFF(%ebx), %eax
10683 subl foo@GOTTPOFF(%ebx), %eax
10684 addl foo@GOTNTPOFF(%ebx), %eax
10685 movl foo@INDNTPOFF, %eax
10686 movl $foo@TPOFF, %eax
10687 subl $foo@TPOFF, %eax
10688 leal foo@NTPOFF(%ecx), %eax'
10689 tls_first_major=2
10690 tls_first_minor=14
10691 tls_as_opt=--fatal-warnings
10693 x86_64-*-*)
10694 conftest_s='
10695 .section ".tdata","awT",@progbits
10696 foo: .long 25
10697 .text
10698 movq %fs:0, %rax
10699 leaq foo@TLSGD(%rip), %rdi
10700 leaq foo@TLSLD(%rip), %rdi
10701 leaq foo@DTPOFF(%rax), %rdx
10702 movq foo@GOTTPOFF(%rip), %rax
10703 movq $foo@TPOFF, %rax'
10704 tls_first_major=2
10705 tls_first_minor=14
10706 tls_as_opt=--fatal-warnings
10708 ia64-*-*)
10709 conftest_s='
10710 .section ".tdata","awT",@progbits
10711 foo: data8 25
10712 .text
10713 addl r16 = @ltoff(@dtpmod(foo#)), gp
10714 addl r17 = @ltoff(@dtprel(foo#)), gp
10715 addl r18 = @ltoff(@tprel(foo#)), gp
10716 addl r19 = @dtprel(foo#), gp
10717 adds r21 = @dtprel(foo#), r13
10718 movl r23 = @dtprel(foo#)
10719 addl r20 = @tprel(foo#), gp
10720 adds r22 = @tprel(foo#), r13
10721 movl r24 = @tprel(foo#)'
10722 tls_first_major=2
10723 tls_first_minor=13
10724 tls_as_opt=--fatal-warnings
10726 powerpc-*-*)
10727 conftest_s='
10728 .section ".tdata","awT",@progbits
10729 .align 2
10730 ld0: .space 4
10731 ld1: .space 4
10732 x1: .space 4
10733 x2: .space 4
10734 x3: .space 4
10735 .text
10736 addi 3,31,ld0@got@tlsgd
10737 bl __tls_get_addr
10738 addi 3,31,x1@got@tlsld
10739 bl __tls_get_addr
10740 addi 9,3,x1@dtprel
10741 addis 9,3,x2@dtprel@ha
10742 addi 9,9,x2@dtprel@l
10743 lwz 9,x3@got@tprel(31)
10744 add 9,9,x@tls
10745 addi 9,2,x1@tprel
10746 addis 9,2,x2@tprel@ha
10747 addi 9,9,x2@tprel@l'
10748 tls_first_major=2
10749 tls_first_minor=14
10750 tls_as_opt="-a32 --fatal-warnings"
10752 powerpc64-*-*)
10753 conftest_s='
10754 .section ".tdata","awT",@progbits
10755 .align 3
10756 ld0: .space 8
10757 ld1: .space 8
10758 x1: .space 8
10759 x2: .space 8
10760 x3: .space 8
10761 .text
10762 addi 3,2,ld0@got@tlsgd
10763 bl .__tls_get_addr
10765 addi 3,2,ld1@toc
10766 bl .__tls_get_addr
10768 addi 3,2,x1@got@tlsld
10769 bl .__tls_get_addr
10771 addi 9,3,x1@dtprel
10772 bl .__tls_get_addr
10774 addis 9,3,x2@dtprel@ha
10775 addi 9,9,x2@dtprel@l
10776 bl .__tls_get_addr
10778 ld 9,x3@got@dtprel(2)
10779 add 9,9,3
10780 bl .__tls_get_addr
10781 nop'
10782 tls_first_major=2
10783 tls_first_minor=14
10784 tls_as_opt="-a64 --fatal-warnings"
10786 s390-*-*)
10787 conftest_s='
10788 .section ".tdata","awT",@progbits
10789 foo: .long 25
10790 .text
10791 .long foo@TLSGD
10792 .long foo@TLSLDM
10793 .long foo@DTPOFF
10794 .long foo@NTPOFF
10795 .long foo@GOTNTPOFF
10796 .long foo@INDNTPOFF
10797 l %r1,foo@GOTNTPOFF(%r12)
10798 l %r1,0(%r1):tls_load:foo
10799 bas %r14,0(%r1,%r13):tls_gdcall:foo
10800 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10801 tls_first_major=2
10802 tls_first_minor=14
10803 tls_as_opt="-m31 --fatal-warnings"
10805 s390x-*-*)
10806 conftest_s='
10807 .section ".tdata","awT",@progbits
10808 foo: .long 25
10809 .text
10810 .quad foo@TLSGD
10811 .quad foo@TLSLDM
10812 .quad foo@DTPOFF
10813 .quad foo@NTPOFF
10814 .quad foo@GOTNTPOFF
10815 lg %r1,foo@GOTNTPOFF(%r12)
10816 larl %r1,foo@INDNTPOFF
10817 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10818 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10819 tls_first_major=2
10820 tls_first_minor=14
10821 tls_as_opt="-m64 -Aesame --fatal-warnings"
10823 sh-*-* | sh[34]-*-*)
10824 conftest_s='
10825 .section ".tdata","awT",@progbits
10826 foo: .long 25
10827 .text
10828 .long foo@TLSGD
10829 .long foo@TLSLDM
10830 .long foo@DTPOFF
10831 .long foo@GOTTPOFF
10832 .long foo@TPOFF'
10833 tls_first_major=2
10834 tls_first_minor=13
10835 tls_as_opt=--fatal-warnings
10837 sparc*-*-*)
10838 case "$target" in
10839 sparc*-sun-solaris2.*)
10840 on_solaris=yes
10843 on_solaris=no
10845 esac
10846 if test x$on_solaris = xyes && test x$gas_flag = xno; then
10847 conftest_s='
10848 .section ".tdata",#alloc,#write,#tls
10849 foo: .long 25
10850 .text
10851 sethi %tgd_hi22(foo), %o0
10852 add %o0, %tgd_lo10(foo), %o1
10853 add %l7, %o1, %o0, %tgd_add(foo)
10854 call __tls_get_addr, %tgd_call(foo)
10855 sethi %tldm_hi22(foo), %l1
10856 add %l1, %tldm_lo10(foo), %l2
10857 add %l7, %l2, %o0, %tldm_add(foo)
10858 call __tls_get_addr, %tldm_call(foo)
10859 sethi %tldo_hix22(foo), %l3
10860 xor %l3, %tldo_lox10(foo), %l4
10861 add %o0, %l4, %l5, %tldo_add(foo)
10862 sethi %tie_hi22(foo), %o3
10863 add %o3, %tie_lo10(foo), %o3
10864 ld [%l7 + %o3], %o2, %tie_ld(foo)
10865 add %g7, %o2, %o4, %tie_add(foo)
10866 sethi %tle_hix22(foo), %l1
10867 xor %l1, %tle_lox10(foo), %o5
10868 ld [%g7 + %o5], %o1'
10869 tls_first_major=0
10870 tls_first_minor=0
10871 else
10872 conftest_s='
10873 .section ".tdata","awT",@progbits
10874 foo: .long 25
10875 .text
10876 sethi %tgd_hi22(foo), %o0
10877 add %o0, %tgd_lo10(foo), %o1
10878 add %l7, %o1, %o0, %tgd_add(foo)
10879 call __tls_get_addr, %tgd_call(foo)
10880 sethi %tldm_hi22(foo), %l1
10881 add %l1, %tldm_lo10(foo), %l2
10882 add %l7, %l2, %o0, %tldm_add(foo)
10883 call __tls_get_addr, %tldm_call(foo)
10884 sethi %tldo_hix22(foo), %l3
10885 xor %l3, %tldo_lox10(foo), %l4
10886 add %o0, %l4, %l5, %tldo_add(foo)
10887 sethi %tie_hi22(foo), %o3
10888 add %o3, %tie_lo10(foo), %o3
10889 ld [%l7 + %o3], %o2, %tie_ld(foo)
10890 add %g7, %o2, %o4, %tie_add(foo)
10891 sethi %tle_hix22(foo), %l1
10892 xor %l1, %tle_lox10(foo), %o5
10893 ld [%g7 + %o5], %o1'
10894 tls_first_major=2
10895 tls_first_minor=14
10896 tls_as_opt="-32 --fatal-warnings"
10899 esac
10900 if test -z "$tls_first_major"; then
10901 : # If we don't have a check, assume no support.
10902 else
10903 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10904 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10905 if test "${gcc_cv_as_tls+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908 gcc_cv_as_tls=no
10909 if test $in_tree_gas = yes; then
10910 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10911 then gcc_cv_as_tls=yes
10913 elif test x$gcc_cv_as != x; then
10914 echo "$conftest_s" > conftest.s
10915 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
10916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917 (eval $ac_try) 2>&5
10918 ac_status=$?
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }
10921 then
10922 gcc_cv_as_tls=yes
10923 else
10924 echo "configure: failed program was" >&5
10925 cat conftest.s >&5
10927 rm -f conftest.o conftest.s
10930 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10931 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10932 if test $gcc_cv_as_tls = yes; then
10934 cat >>confdefs.h <<\_ACEOF
10935 #define HAVE_AS_TLS 1
10936 _ACEOF
10941 # Target-specific assembler checks.
10943 if test x"$demangler_in_ld" = xyes; then
10944 echo "$as_me:$LINENO: checking linker --demangle support" >&5
10945 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
10946 gcc_cv_ld_demangle=no
10947 if test $in_tree_ld = yes; then
10948 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 \
10949 gcc_cv_ld_demangle=yes
10951 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
10952 # Check if the GNU linker supports --demangle option
10953 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
10954 gcc_cv_ld_demangle=yes
10957 if test x"$gcc_cv_ld_demangle" = xyes; then
10959 cat >>confdefs.h <<\_ACEOF
10960 #define HAVE_LD_DEMANGLE 1
10961 _ACEOF
10964 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
10965 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
10968 case "$target" in
10969 # All TARGET_ABI_OSF targets.
10970 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10971 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10972 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10973 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976 gcc_cv_as_alpha_explicit_relocs=no
10977 if test $in_tree_gas = yes; then
10978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10979 then gcc_cv_as_alpha_explicit_relocs=yes
10981 elif test x$gcc_cv_as != x; then
10982 echo ' .set nomacro
10983 .text
10984 extbl $3, $2, $3 !lituse_bytoff!1
10985 ldq $2, a($29) !literal!1
10986 ldq $4, b($29) !literal!2
10987 ldq_u $3, 0($2) !lituse_base!1
10988 ldq $27, f($29) !literal!5
10989 jsr $26, ($27), f !lituse_jsr!5
10990 ldah $29, 0($26) !gpdisp!3
10991 lda $0, c($29) !gprel
10992 ldah $1, d($29) !gprelhigh
10993 lda $1, d($1) !gprellow
10994 lda $29, 0($29) !gpdisp!3' > conftest.s
10995 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10998 ac_status=$?
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }
11001 then
11002 gcc_cv_as_alpha_explicit_relocs=yes
11003 else
11004 echo "configure: failed program was" >&5
11005 cat conftest.s >&5
11007 rm -f conftest.o conftest.s
11010 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11011 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11012 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11014 cat >>confdefs.h <<\_ACEOF
11015 #define HAVE_AS_EXPLICIT_RELOCS 1
11016 _ACEOF
11021 cris-*-*)
11022 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11023 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11024 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027 gcc_cv_as_cris_no_mul_bug=no
11028 if test $in_tree_gas = yes; then
11029 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11030 then gcc_cv_as_cris_no_mul_bug=yes
11032 elif test x$gcc_cv_as != x; then
11033 echo '.text' > conftest.s
11034 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11037 ac_status=$?
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; }
11040 then
11041 gcc_cv_as_cris_no_mul_bug=yes
11042 else
11043 echo "configure: failed program was" >&5
11044 cat conftest.s >&5
11046 rm -f conftest.o conftest.s
11049 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11050 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11051 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11053 cat >>confdefs.h <<\_ACEOF
11054 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11055 _ACEOF
11060 sparc*-*-*)
11061 echo "$as_me:$LINENO: checking assembler for .register" >&5
11062 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11063 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 else
11066 gcc_cv_as_sparc_register_op=no
11067 if test x$gcc_cv_as != x; then
11068 echo '.register %g2, #scratch' > conftest.s
11069 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }
11075 then
11076 gcc_cv_as_sparc_register_op=yes
11077 else
11078 echo "configure: failed program was" >&5
11079 cat conftest.s >&5
11081 rm -f conftest.o conftest.s
11084 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11085 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11086 if test $gcc_cv_as_sparc_register_op = yes; then
11088 cat >>confdefs.h <<\_ACEOF
11089 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11090 _ACEOF
11094 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11095 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11096 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 else
11099 gcc_cv_as_sparc_relax=no
11100 if test x$gcc_cv_as != x; then
11101 echo '.text' > conftest.s
11102 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104 (eval $ac_try) 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; }
11108 then
11109 gcc_cv_as_sparc_relax=yes
11110 else
11111 echo "configure: failed program was" >&5
11112 cat conftest.s >&5
11114 rm -f conftest.o conftest.s
11117 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11118 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11119 if test $gcc_cv_as_sparc_relax = yes; then
11121 cat >>confdefs.h <<\_ACEOF
11122 #define HAVE_AS_RELAX_OPTION 1
11123 _ACEOF
11127 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11128 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11129 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132 gcc_cv_as_sparc_ua_pcrel=no
11133 if test x$gcc_cv_as != x; then
11134 echo '.text
11135 foo:
11137 .data
11138 .align 4
11139 .byte 0
11140 .uaword %r_disp32(foo)' > conftest.s
11141 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }
11147 then
11148 if test x$gcc_cv_ld != x \
11149 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11150 gcc_cv_as_sparc_ua_pcrel=yes
11152 rm -f conftest
11153 else
11154 echo "configure: failed program was" >&5
11155 cat conftest.s >&5
11157 rm -f conftest.o conftest.s
11160 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11161 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11162 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11164 cat >>confdefs.h <<\_ACEOF
11165 #define HAVE_AS_SPARC_UA_PCREL 1
11166 _ACEOF
11169 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11170 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11171 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11172 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 else
11174 gcc_cv_as_sparc_ua_pcrel_hidden=no
11175 if test x$gcc_cv_as != x; then
11176 echo '.data
11177 .align 4
11178 .byte 0x31
11179 .uaword %r_disp32(foo)
11180 .byte 0x32, 0x33, 0x34
11181 .global foo
11182 .hidden foo
11183 foo:
11184 .skip 4' > conftest.s
11185 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }
11191 then
11192 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11193 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11194 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11195 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11196 if $gcc_cv_objdump -R conftest 2> /dev/null \
11197 | grep 'DISP32' > /dev/null 2>&1; then
11199 else
11200 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11203 rm -f conftest
11204 else
11205 echo "configure: failed program was" >&5
11206 cat conftest.s >&5
11208 rm -f conftest.o conftest.s
11211 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11212 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11213 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11215 cat >>confdefs.h <<\_ACEOF
11216 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11217 _ACEOF
11221 fi # unaligned pcrel relocs
11223 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11224 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11225 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11227 else
11228 gcc_cv_as_sparc_offsetable_lo10=no
11229 if test x$gcc_cv_as != x; then
11230 echo '.text
11231 or %g1, %lo(ab) + 12, %g1
11232 or %g1, %lo(ab + 12), %g1' > conftest.s
11233 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }
11239 then
11240 if test x$gcc_cv_objdump != x \
11241 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11242 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11243 gcc_cv_as_offsetable_lo10=yes
11245 else
11246 echo "configure: failed program was" >&5
11247 cat conftest.s >&5
11249 rm -f conftest.o conftest.s
11252 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11253 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11254 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11256 cat >>confdefs.h <<\_ACEOF
11257 #define HAVE_AS_OFFSETABLE_LO10 1
11258 _ACEOF
11263 i[34567]86-*-* | x86_64-*-*)
11264 case $target_os in
11265 cygwin* | pe | mingw32*)
11266 # Used for DWARF 2 in PE
11267 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11268 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11269 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11272 gcc_cv_as_ix86_pe_secrel32=no
11273 if test $in_tree_gas = yes; then
11274 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11275 then gcc_cv_as_ix86_pe_secrel32=yes
11277 elif test x$gcc_cv_as != x; then
11278 echo '.text
11279 foo: nop
11280 .data
11281 .secrel32 foo' > conftest.s
11282 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }
11288 then
11289 if test x$gcc_cv_ld != x \
11290 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11291 gcc_cv_as_ix86_pe_secrel32=yes
11293 rm -f conftest
11294 else
11295 echo "configure: failed program was" >&5
11296 cat conftest.s >&5
11298 rm -f conftest.o conftest.s
11301 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11302 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11303 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11305 cat >>confdefs.h <<\_ACEOF
11306 #define HAVE_GAS_PE_SECREL32_RELOC 1
11307 _ACEOF
11311 esac
11313 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11314 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11315 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318 gcc_cv_as_ix86_filds_fists=no
11319 if test $in_tree_gas = yes; then
11320 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11321 then gcc_cv_as_ix86_filds_fists=yes
11323 elif test x$gcc_cv_as != x; then
11324 echo 'filds mem; fists mem' > conftest.s
11325 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11328 ac_status=$?
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; }
11331 then
11332 gcc_cv_as_ix86_filds_fists=yes
11333 else
11334 echo "configure: failed program was" >&5
11335 cat conftest.s >&5
11337 rm -f conftest.o conftest.s
11340 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11341 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11342 if test $gcc_cv_as_ix86_filds_fists = yes; then
11344 cat >>confdefs.h <<\_ACEOF
11345 #define HAVE_GAS_FILDS_FISTS 1
11346 _ACEOF
11350 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11351 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11352 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 else
11355 gcc_cv_as_ix86_cmov_sun_syntax=no
11356 if test x$gcc_cv_as != x; then
11357 echo 'cmovl.l %edx, %eax' > conftest.s
11358 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360 (eval $ac_try) 2>&5
11361 ac_status=$?
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; }
11364 then
11365 gcc_cv_as_ix86_cmov_sun_syntax=yes
11366 else
11367 echo "configure: failed program was" >&5
11368 cat conftest.s >&5
11370 rm -f conftest.o conftest.s
11373 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11374 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11375 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11377 cat >>confdefs.h <<\_ACEOF
11378 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11379 _ACEOF
11383 # This one is used unconditionally by i386.[ch]; it is to be defined
11384 # to 1 if the feature is present, 0 otherwise.
11385 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11386 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11387 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390 gcc_cv_as_ix86_gotoff_in_data=no
11391 if test $in_tree_gas = yes; then
11392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11393 then gcc_cv_as_ix86_gotoff_in_data=yes
11395 elif test x$gcc_cv_as != x; then
11396 echo ' .text
11397 .L0:
11399 .data
11400 .long .L0@GOTOFF' > conftest.s
11401 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }
11407 then
11408 gcc_cv_as_ix86_gotoff_in_data=yes
11409 else
11410 echo "configure: failed program was" >&5
11411 cat conftest.s >&5
11413 rm -f conftest.o conftest.s
11416 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11417 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11420 cat >>confdefs.h <<_ACEOF
11421 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11422 _ACEOF
11426 ia64*-*-*)
11427 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11428 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11429 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 else
11432 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11433 if test $in_tree_gas = yes; then
11434 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11435 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11437 elif test x$gcc_cv_as != x; then
11438 echo ' .text
11439 addl r15 = @ltoffx(x#), gp
11441 ld8.mov r16 = [r15], x#' > conftest.s
11442 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }
11448 then
11449 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11450 else
11451 echo "configure: failed program was" >&5
11452 cat conftest.s >&5
11454 rm -f conftest.o conftest.s
11457 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11458 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11459 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11461 cat >>confdefs.h <<\_ACEOF
11462 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11463 _ACEOF
11469 powerpc*-*-*)
11470 case $target in
11471 *-*-aix*) conftest_s=' .csect .text[PR]
11472 mfcr 3,128';;
11473 *-*-darwin*) conftest_s=' .text
11474 mfcr r3,128';;
11475 *) conftest_s=' .text
11476 mfcr 3,128';;
11477 esac
11479 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11480 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11481 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484 gcc_cv_as_powerpc_mfcrf=no
11485 if test $in_tree_gas = yes; then
11486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11487 then gcc_cv_as_powerpc_mfcrf=yes
11489 elif test x$gcc_cv_as != x; then
11490 echo "$conftest_s" > conftest.s
11491 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }
11497 then
11498 gcc_cv_as_powerpc_mfcrf=yes
11499 else
11500 echo "configure: failed program was" >&5
11501 cat conftest.s >&5
11503 rm -f conftest.o conftest.s
11506 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11507 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11508 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11510 cat >>confdefs.h <<\_ACEOF
11511 #define HAVE_AS_MFCRF 1
11512 _ACEOF
11517 mips*-*-*)
11518 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11519 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11520 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 else
11523 gcc_cv_as_mips_explicit_relocs=no
11524 if test $in_tree_gas = yes; then
11525 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11526 then gcc_cv_as_mips_explicit_relocs=yes
11528 elif test x$gcc_cv_as != x; then
11529 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11530 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }
11536 then
11537 gcc_cv_as_mips_explicit_relocs=yes
11538 else
11539 echo "configure: failed program was" >&5
11540 cat conftest.s >&5
11542 rm -f conftest.o conftest.s
11545 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11546 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11547 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11548 if test x$target_cpu_default = x
11549 then target_cpu_default=MASK_EXPLICIT_RELOCS
11550 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11555 esac
11556 # ??? Not all targets support dwarf2 debug_line, even within a version
11557 # of gas. Moreover, we need to emit a valid instruction to trigger any
11558 # info to the output file. So, as supported targets are added to gas 2.11,
11559 # add some instruction here to (also) show we expect this might work.
11560 # ??? Once 2.11 is released, probably need to add first known working
11561 # version to the per-target configury.
11562 case "$target" in
11563 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11564 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11565 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11566 insn="nop"
11568 ia64*-*-* | s390*-*-*)
11569 insn="nop 0"
11571 mmix-*-*)
11572 insn="swym 0"
11574 esac
11575 if test x"$insn" != x; then
11576 conftest_s="\
11577 .file 1 \"conftest.s\"
11578 .loc 1 3 0
11579 $insn"
11580 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11581 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11582 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 else
11585 gcc_cv_as_dwarf2_debug_line=no
11586 if test $in_tree_gas = yes; then
11587 if test $in_tree_gas_is_elf = yes \
11588 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11589 then gcc_cv_as_dwarf2_debug_line=yes
11591 elif test x$gcc_cv_as != x; then
11592 echo "$conftest_s" > conftest.s
11593 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }
11599 then
11600 # ??? This fails with non-gnu grep. Maybe use objdump?
11601 if grep debug_line conftest.o > /dev/null 2>&1; then
11602 gcc_cv_as_dwarf2_debug_line=yes
11604 else
11605 echo "configure: failed program was" >&5
11606 cat conftest.s >&5
11608 rm -f conftest.o conftest.s
11611 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11612 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11615 # The .debug_line file table must be in the exact order that
11616 # we specified the files, since these indices are also used
11617 # by DW_AT_decl_file. Approximate this test by testing if
11618 # the assembler bitches if the same index is assigned twice.
11619 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11620 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11621 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624 gcc_cv_as_dwarf2_file_buggy=no
11625 if test x$gcc_cv_as != x; then
11626 echo ' .file 1 "foo.s"
11627 .file 1 "bar.s"' > conftest.s
11628 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; }
11634 then
11635 gcc_cv_as_dwarf2_file_buggy=yes
11636 else
11637 echo "configure: failed program was" >&5
11638 cat conftest.s >&5
11640 rm -f conftest.o conftest.s
11643 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11644 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11647 if test $gcc_cv_as_dwarf2_debug_line = yes \
11648 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11650 cat >>confdefs.h <<\_ACEOF
11651 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11652 _ACEOF
11656 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11657 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11658 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 else
11661 gcc_cv_as_gdwarf2_flag=no
11662 if test $in_tree_gas = yes; then
11663 if test $in_tree_gas_is_elf = yes \
11664 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11665 then gcc_cv_as_gdwarf2_flag=yes
11667 elif test x$gcc_cv_as != x; then
11668 echo "$insn" > conftest.s
11669 if { ac_try='$gcc_cv_as --gdwarf2 -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_gdwarf2_flag=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_gdwarf2_flag" >&5
11685 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11686 if test $gcc_cv_as_gdwarf2_flag = yes; then
11688 cat >>confdefs.h <<\_ACEOF
11689 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11690 _ACEOF
11694 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11695 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11696 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699 gcc_cv_as_gstabs_flag=no
11700 if test $in_tree_gas = yes; then
11701 if test $in_tree_gas_is_elf = yes \
11702 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11703 then gcc_cv_as_gstabs_flag=yes
11705 elif test x$gcc_cv_as != x; then
11706 echo "$insn" > conftest.s
11707 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11710 ac_status=$?
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }
11713 then
11714 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11715 # and warns about it, but still exits successfully. So check for
11716 # this.
11717 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }
11723 then :
11724 else gcc_cv_as_gstabs_flag=yes
11726 else
11727 echo "configure: failed program was" >&5
11728 cat conftest.s >&5
11730 rm -f conftest.o conftest.s
11733 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11734 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11735 if test $gcc_cv_as_gstabs_flag = yes; then
11737 cat >>confdefs.h <<\_ACEOF
11738 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11739 _ACEOF
11744 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11745 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11746 gcc_cv_ld_ro_rw_mix=unknown
11747 if test $in_tree_ld = yes ; then
11748 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 \
11749 && test $in_tree_ld_is_elf = yes; then
11750 gcc_cv_ld_ro_rw_mix=read-write
11752 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11753 echo '.section myfoosect, "a"' > conftest1.s
11754 echo '.section myfoosect, "aw"' > conftest2.s
11755 echo '.byte 1' >> conftest2.s
11756 echo '.section myfoosect, "a"' > conftest3.s
11757 echo '.byte 0' >> conftest3.s
11758 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11759 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11760 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11761 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11762 conftest2.o conftest3.o > /dev/null 2>&1; then
11763 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11764 | sed -e '/myfoosect/!d' -e N`
11765 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11766 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11767 gcc_cv_ld_ro_rw_mix=read-only
11768 else
11769 gcc_cv_ld_ro_rw_mix=read-write
11773 rm -f conftest.* conftest[123].*
11775 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11777 cat >>confdefs.h <<\_ACEOF
11778 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11779 _ACEOF
11782 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11783 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11785 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11786 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11787 gcc_cv_ld_eh_frame_hdr=no
11788 if test $in_tree_ld = yes ; then
11789 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 \
11790 && test $in_tree_ld_is_elf = yes; then
11791 gcc_cv_ld_eh_frame_hdr=yes
11793 elif test x$gcc_cv_ld != x; then
11794 # Check if linker supports --eh-frame-hdr option
11795 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11796 gcc_cv_ld_eh_frame_hdr=yes
11799 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11801 cat >>confdefs.h <<\_ACEOF
11802 #define HAVE_LD_EH_FRAME_HDR 1
11803 _ACEOF
11806 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11807 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11809 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11810 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11811 gcc_cv_ld_pie=no
11812 if test $in_tree_ld = yes ; then
11813 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 \
11814 && test $in_tree_ld_is_elf = yes; then
11815 gcc_cv_ld_pie=yes
11817 elif test x$gcc_cv_ld != x; then
11818 # Check if linker supports -pie option
11819 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11820 gcc_cv_ld_pie=yes
11823 if test x"$gcc_cv_ld_pie" = xyes; then
11825 cat >>confdefs.h <<\_ACEOF
11826 #define HAVE_LD_PIE 1
11827 _ACEOF
11830 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11831 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11833 # --------
11834 # UNSORTED
11835 # --------
11837 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11838 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11839 if test "${gcc_cv_ld_as_needed+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 else
11842 gcc_cv_ld_as_needed=no
11843 if test $in_tree_ld = yes ; then
11844 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 \
11845 && test $in_tree_ld_is_elf = yes; then
11846 gcc_cv_ld_as_needed=yes
11848 elif test x$gcc_cv_ld != x; then
11849 # Check if linker supports --as-needed and --no-as-needed options
11850 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
11851 gcc_cv_ld_as_needed=yes
11856 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
11857 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
11858 if test x"$gcc_cv_ld_as_needed" = xyes; then
11860 cat >>confdefs.h <<\_ACEOF
11861 #define HAVE_LD_AS_NEEDED 1
11862 _ACEOF
11866 if test x$with_sysroot = x && test x$host = x$target \
11867 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11869 cat >>confdefs.h <<_ACEOF
11870 #define PREFIX_INCLUDE_DIR "$prefix/include"
11871 _ACEOF
11875 # Find out what GC implementation we want, or may, use.
11877 # Check whether --with-gc or --without-gc was given.
11878 if test "${with_gc+set}" = set; then
11879 withval="$with_gc"
11880 case "$withval" in
11881 page | zone)
11882 GGC=ggc-$withval
11885 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11886 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11887 { (exit 1); exit 1; }; }
11889 esac
11890 else
11891 GGC=ggc-page
11894 echo "Using $GGC for garbage collection."
11896 # Use the system's zlib library.
11897 zlibdir=-L../zlib
11898 zlibinc="-I\$(srcdir)/../zlib"
11900 # Check whether --with-system-zlib or --without-system-zlib was given.
11901 if test "${with_system_zlib+set}" = set; then
11902 withval="$with_system_zlib"
11903 zlibdir=
11904 zlibinc=
11911 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11912 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11913 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11914 if test "${enable_maintainer_mode+set}" = set; then
11915 enableval="$enable_maintainer_mode"
11916 maintainer_mode=$enableval
11917 else
11918 maintainer_mode=no
11921 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11922 echo "${ECHO_T}$maintainer_mode" >&6
11924 if test "$maintainer_mode" = "yes"; then
11925 MAINT=''
11926 else
11927 MAINT='#'
11930 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
11931 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
11933 # Check whether --with-libbanshee or --without-libbanshee was given.
11934 if test "${with_libbanshee+set}" = set; then
11935 withval="$with_libbanshee"
11936 libbanshee="$with_libbanshee"
11937 else
11938 libbanshee=no
11941 if test x"$libbanshee" = xyes; then
11942 BANSHEELIB="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
11943 BANSHEEINC="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
11944 ANDER="tree-alias-ander.o"
11946 cat >>confdefs.h <<\_ACEOF
11947 #define HAVE_BANSHEE 1
11948 _ACEOF
11950 else
11951 BANSHEELIB=""
11952 BANSHEEINC=""
11953 ANDER=""
11955 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
11956 echo "${ECHO_T}$with_libbanshee" >&6
11962 # --------------
11963 # Language hooks
11964 # --------------
11966 # Make empty files to contain the specs and options for each language.
11967 # Then add #include lines to for a compiler that has specs and/or options.
11969 lang_opt_files=
11970 lang_specs_files=
11971 lang_tree_files=
11972 for subdir in . $subdirs
11974 if test -f $srcdir/$subdir/lang.opt; then
11975 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11977 if test -f $srcdir/$subdir/lang-specs.h; then
11978 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11980 if test -f $srcdir/$subdir/$subdir-tree.def; then
11981 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11983 done
11985 # These (without "all_") are set in each config-lang.in.
11986 # `language' must be a single word so is spelled singularly.
11987 all_languages=
11988 all_boot_languages=
11989 all_compilers=
11990 all_stagestuff=
11991 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
11992 # List of language makefile fragments.
11993 all_lang_makefrags=
11994 # List of language subdirectory makefiles. Deprecated.
11995 all_lang_makefiles=
11996 # Files for gengtype
11997 all_gtfiles="$target_gtfiles"
11998 # Files for gengtype with language
11999 all_gtfiles_files_langs=
12000 all_gtfiles_files_files=
12002 # Add the language fragments.
12003 # Languages are added via two mechanisms. Some information must be
12004 # recorded in makefile variables, these are defined in config-lang.in.
12005 # We accumulate them and plug them into the main Makefile.
12006 # The other mechanism is a set of hooks for each of the main targets
12007 # like `clean', `install', etc.
12009 language_hooks="Make-hooks"
12011 for s in $subdirs
12013 language=
12014 boot_language=
12015 compilers=
12016 stagestuff=
12017 outputs=
12018 gtfiles=
12019 . ${srcdir}/$s/config-lang.in
12020 if test "x$language" = x
12021 then
12022 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12023 exit 1
12025 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12026 if test -f ${srcdir}/$s/Makefile.in
12027 then all_lang_makefiles="$s/Makefile"
12029 all_languages="$all_languages $language"
12030 if test "x$boot_language" = xyes
12031 then
12032 all_boot_languages="$all_boot_languages $language"
12034 all_compilers="$all_compilers $compilers"
12035 all_stagestuff="$all_stagestuff $stagestuff"
12036 all_outputs="$all_outputs $outputs"
12037 all_gtfiles="$all_gtfiles $gtfiles"
12038 for f in $gtfiles
12040 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12041 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12042 done
12043 done
12045 # Pick up gtfiles for c
12046 gtfiles=
12047 s="c"
12048 . ${srcdir}/c-config-lang.in
12049 all_gtfiles="$all_gtfiles $gtfiles"
12050 for f in $gtfiles
12052 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12053 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12054 done
12056 check_languages=
12057 for language in $all_languages
12059 check_languages="$check_languages check-$language"
12060 done
12062 # We link each language in with a set of hooks, reached indirectly via
12063 # lang.${target}.
12065 rm -f Make-hooks
12066 touch Make-hooks
12067 target_list="all.build all.cross start.encap rest.encap tags \
12068 install-normal install-common install-man \
12069 uninstall info man srcextra srcman srcinfo \
12070 mostlyclean clean distclean maintainer-clean \
12071 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12072 for t in $target_list
12075 for lang in $all_languages
12077 x="$x $lang.$t"
12078 done
12079 echo "lang.$t: $x" >> Make-hooks
12080 done
12082 # --------
12083 # UNSORTED
12084 # --------
12086 # Create .gdbinit.
12088 echo "dir ." > .gdbinit
12089 echo "dir ${srcdir}" >> .gdbinit
12090 if test x$gdb_needs_out_file_path = xyes
12091 then
12092 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12094 if test "x$subdirs" != x; then
12095 for s in $subdirs
12097 echo "dir ${srcdir}/$s" >> .gdbinit
12098 done
12100 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12102 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12103 # absolute path for gcc_tooldir based on inserting the number of up-directory
12104 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12105 # $(libsubdir)/@(unlibsubdir) based path.
12106 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12107 # make and thus we'd get different behavior depending on where we built the
12108 # sources.
12109 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12110 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12111 else
12112 # An explanation of the sed strings:
12113 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12114 # -e 's|/$||' match a trailing forward slash and eliminates it
12115 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12116 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12118 # (*) Note this pattern overwrites the first character of the string
12119 # with a forward slash if one is not already present. This is not a
12120 # problem because the exact names of the sub-directories concerned is
12121 # unimportant, just the number of them matters.
12123 # The practical upshot of these patterns is like this:
12125 # prefix exec_prefix result
12126 # ------ ----------- ------
12127 # /foo /foo/bar ../
12128 # /foo/ /foo/bar ../
12129 # /foo /foo/bar/ ../
12130 # /foo/ /foo/bar/ ../
12131 # /foo /foo/bar/ugg ../../
12133 dollar='$$'
12134 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12139 # Find a directory in which to install a shared libgcc.
12141 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12142 if test "${enable_version_specific_runtime_libs+set}" = set; then
12143 enableval="$enable_version_specific_runtime_libs"
12148 # Check whether --with-slibdir or --without-slibdir was given.
12149 if test "${with_slibdir+set}" = set; then
12150 withval="$with_slibdir"
12151 slibdir="$with_slibdir"
12152 else
12153 if test "${enable_version_specific_runtime_libs+set}" = set; then
12154 slibdir='$(libsubdir)'
12155 elif test "$host" != "$target"; then
12156 slibdir='$(build_tooldir)/lib'
12157 else
12158 slibdir='$(libdir)'
12163 objdir=`${PWDCMD-pwd}`
12166 # Substitute configuration variables
12235 # If it doesn't already exist, create document directory
12236 echo "checking for the document directory." 1>&2
12237 if test -d doc ; then
12238 true
12239 else
12240 mkdir doc
12243 # Echo link setup.
12244 if test x${build} = x${host} ; then
12245 if test x${host} = x${target} ; then
12246 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12247 else
12248 echo "Links are now set up to build a cross-compiler" 1>&2
12249 echo " from ${host} to ${target}." 1>&2
12251 else
12252 if test x${host} = x${target} ; then
12253 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12254 echo " for ${target}." 1>&2
12255 else
12256 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12257 echo " from ${host} to ${target}." 1>&2
12264 # Configure the subdirectories
12265 # AC_CONFIG_SUBDIRS($subdirs)
12267 # Create the Makefile
12268 # and configure language subdirectories
12269 ac_config_files="$ac_config_files $all_outputs"
12272 ac_config_commands="$ac_config_commands default"
12274 cat >confcache <<\_ACEOF
12275 # This file is a shell script that caches the results of configure
12276 # tests run on this system so they can be shared between configure
12277 # scripts and configure runs, see configure's option --config-cache.
12278 # It is not useful on other systems. If it contains results you don't
12279 # want to keep, you may remove or edit it.
12281 # config.status only pays attention to the cache file if you give it
12282 # the --recheck option to rerun configure.
12284 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12285 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12286 # following values.
12288 _ACEOF
12290 # The following way of writing the cache mishandles newlines in values,
12291 # but we know of no workaround that is simple, portable, and efficient.
12292 # So, don't put newlines in cache variables' values.
12293 # Ultrix sh set writes to stderr and can't be redirected directly,
12294 # and sets the high bit in the cache file unless we assign to the vars.
12296 (set) 2>&1 |
12297 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12298 *ac_space=\ *)
12299 # `set' does not quote correctly, so add quotes (double-quote
12300 # substitution turns \\\\ into \\, and sed turns \\ into \).
12301 sed -n \
12302 "s/'/'\\\\''/g;
12303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12306 # `set' quotes correctly as required by POSIX, so do not add quotes.
12307 sed -n \
12308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12310 esac;
12312 sed '
12313 t clear
12314 : clear
12315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12316 t end
12317 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12318 : end' >>confcache
12319 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12320 if test -w $cache_file; then
12321 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12322 cat confcache >$cache_file
12323 else
12324 echo "not updating unwritable cache $cache_file"
12327 rm -f confcache
12329 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12330 # Let make expand exec_prefix.
12331 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12333 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12334 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12335 # trailing colons and then remove the whole line if VPATH becomes empty
12336 # (actually we leave an empty line to preserve line numbers).
12337 if test "x$srcdir" = x.; then
12338 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12339 s/:*\$(srcdir):*/:/;
12340 s/:*\${srcdir}:*/:/;
12341 s/:*@srcdir@:*/:/;
12342 s/^\([^=]*=[ ]*\):*/\1/;
12343 s/:*$//;
12344 s/^[^=]*=[ ]*$//;
12348 DEFS=-DHAVE_CONFIG_H
12350 ac_libobjs=
12351 ac_ltlibobjs=
12352 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12353 # 1. Remove the extension, and $U if already installed.
12354 ac_i=`echo "$ac_i" |
12355 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12356 # 2. Add them.
12357 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12358 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12359 done
12360 LIBOBJS=$ac_libobjs
12362 LTLIBOBJS=$ac_ltlibobjs
12366 : ${CONFIG_STATUS=./config.status}
12367 ac_clean_files_save=$ac_clean_files
12368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12369 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12370 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12371 cat >$CONFIG_STATUS <<_ACEOF
12372 #! $SHELL
12373 # Generated by $as_me.
12374 # Run this file to recreate the current configuration.
12375 # Compiler output produced by configure, useful for debugging
12376 # configure, is in config.log if it exists.
12378 debug=false
12379 ac_cs_recheck=false
12380 ac_cs_silent=false
12381 SHELL=\${CONFIG_SHELL-$SHELL}
12382 _ACEOF
12384 cat >>$CONFIG_STATUS <<\_ACEOF
12385 ## --------------------- ##
12386 ## M4sh Initialization. ##
12387 ## --------------------- ##
12389 # Be Bourne compatible
12390 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12391 emulate sh
12392 NULLCMD=:
12393 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12394 # is contrary to our usage. Disable this feature.
12395 alias -g '${1+"$@"}'='"$@"'
12396 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12397 set -o posix
12399 DUALCASE=1; export DUALCASE # for MKS sh
12401 # Support unset when possible.
12402 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12403 as_unset=unset
12404 else
12405 as_unset=false
12409 # Work around bugs in pre-3.0 UWIN ksh.
12410 $as_unset ENV MAIL MAILPATH
12411 PS1='$ '
12412 PS2='> '
12413 PS4='+ '
12415 # NLS nuisances.
12416 for as_var in \
12417 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12418 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12419 LC_TELEPHONE LC_TIME
12421 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12422 eval $as_var=C; export $as_var
12423 else
12424 $as_unset $as_var
12426 done
12428 # Required to use basename.
12429 if expr a : '\(a\)' >/dev/null 2>&1; then
12430 as_expr=expr
12431 else
12432 as_expr=false
12435 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12436 as_basename=basename
12437 else
12438 as_basename=false
12442 # Name of the executable.
12443 as_me=`$as_basename "$0" ||
12444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12445 X"$0" : 'X\(//\)$' \| \
12446 X"$0" : 'X\(/\)$' \| \
12447 . : '\(.\)' 2>/dev/null ||
12448 echo X/"$0" |
12449 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12450 /^X\/\(\/\/\)$/{ s//\1/; q; }
12451 /^X\/\(\/\).*/{ s//\1/; q; }
12452 s/.*/./; q'`
12455 # PATH needs CR, and LINENO needs CR and PATH.
12456 # Avoid depending upon Character Ranges.
12457 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12458 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12459 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12460 as_cr_digits='0123456789'
12461 as_cr_alnum=$as_cr_Letters$as_cr_digits
12463 # The user is always right.
12464 if test "${PATH_SEPARATOR+set}" != set; then
12465 echo "#! /bin/sh" >conf$$.sh
12466 echo "exit 0" >>conf$$.sh
12467 chmod +x conf$$.sh
12468 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12469 PATH_SEPARATOR=';'
12470 else
12471 PATH_SEPARATOR=:
12473 rm -f conf$$.sh
12477 as_lineno_1=$LINENO
12478 as_lineno_2=$LINENO
12479 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12480 test "x$as_lineno_1" != "x$as_lineno_2" &&
12481 test "x$as_lineno_3" = "x$as_lineno_2" || {
12482 # Find who we are. Look in the path if we contain no path at all
12483 # relative or not.
12484 case $0 in
12485 *[\\/]* ) as_myself=$0 ;;
12486 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487 for as_dir in $PATH
12489 IFS=$as_save_IFS
12490 test -z "$as_dir" && as_dir=.
12491 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12492 done
12495 esac
12496 # We did not find ourselves, most probably we were run as `sh COMMAND'
12497 # in which case we are not to be found in the path.
12498 if test "x$as_myself" = x; then
12499 as_myself=$0
12501 if test ! -f "$as_myself"; then
12502 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12503 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12504 { (exit 1); exit 1; }; }
12506 case $CONFIG_SHELL in
12508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12511 IFS=$as_save_IFS
12512 test -z "$as_dir" && as_dir=.
12513 for as_base in sh bash ksh sh5; do
12514 case $as_dir in
12516 if ("$as_dir/$as_base" -c '
12517 as_lineno_1=$LINENO
12518 as_lineno_2=$LINENO
12519 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12520 test "x$as_lineno_1" != "x$as_lineno_2" &&
12521 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12522 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12523 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12524 CONFIG_SHELL=$as_dir/$as_base
12525 export CONFIG_SHELL
12526 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12527 fi;;
12528 esac
12529 done
12530 done
12532 esac
12534 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12535 # uniformly replaced by the line number. The first 'sed' inserts a
12536 # line-number line before each line; the second 'sed' does the real
12537 # work. The second script uses 'N' to pair each line-number line
12538 # with the numbered line, and appends trailing '-' during
12539 # substitution so that $LINENO is not a special case at line end.
12540 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12541 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12542 sed '=' <$as_myself |
12543 sed '
12545 s,$,-,
12546 : loop
12547 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12548 t loop
12549 s,-$,,
12550 s,^['$as_cr_digits']*\n,,
12551 ' >$as_me.lineno &&
12552 chmod +x $as_me.lineno ||
12553 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12554 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12555 { (exit 1); exit 1; }; }
12557 # Don't try to exec as it changes $[0], causing all sort of problems
12558 # (the dirname of $[0] is not the place where we might find the
12559 # original and so on. Autoconf is especially sensible to this).
12560 . ./$as_me.lineno
12561 # Exit status is that of the last command.
12562 exit
12566 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12567 *c*,-n*) ECHO_N= ECHO_C='
12568 ' ECHO_T=' ' ;;
12569 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12570 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12571 esac
12573 if expr a : '\(a\)' >/dev/null 2>&1; then
12574 as_expr=expr
12575 else
12576 as_expr=false
12579 rm -f conf$$ conf$$.exe conf$$.file
12580 echo >conf$$.file
12581 if ln -s conf$$.file conf$$ 2>/dev/null; then
12582 # We could just check for DJGPP; but this test a) works b) is more generic
12583 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12584 if test -f conf$$.exe; then
12585 # Don't use ln at all; we don't have any links
12586 as_ln_s='cp -p'
12587 else
12588 as_ln_s='ln -s'
12590 elif ln conf$$.file conf$$ 2>/dev/null; then
12591 as_ln_s=ln
12592 else
12593 as_ln_s='cp -p'
12595 rm -f conf$$ conf$$.exe conf$$.file
12597 if mkdir -p . 2>/dev/null; then
12598 as_mkdir_p=:
12599 else
12600 test -d ./-p && rmdir ./-p
12601 as_mkdir_p=false
12604 as_executable_p="test -f"
12606 # Sed expression to map a string onto a valid CPP name.
12607 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12609 # Sed expression to map a string onto a valid variable name.
12610 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12613 # IFS
12614 # We need space, tab and new line, in precisely that order.
12615 as_nl='
12617 IFS=" $as_nl"
12619 # CDPATH.
12620 $as_unset CDPATH
12622 exec 6>&1
12624 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12625 # report actual input values of CONFIG_FILES etc. instead of their
12626 # values after options handling. Logging --version etc. is OK.
12627 exec 5>>config.log
12629 echo
12630 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12631 ## Running $as_me. ##
12632 _ASBOX
12633 } >&5
12634 cat >&5 <<_CSEOF
12636 This file was extended by $as_me, which was
12637 generated by GNU Autoconf 2.59. Invocation command line was
12639 CONFIG_FILES = $CONFIG_FILES
12640 CONFIG_HEADERS = $CONFIG_HEADERS
12641 CONFIG_LINKS = $CONFIG_LINKS
12642 CONFIG_COMMANDS = $CONFIG_COMMANDS
12643 $ $0 $@
12645 _CSEOF
12646 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12647 echo >&5
12648 _ACEOF
12650 # Files that config.status was made for.
12651 if test -n "$ac_config_files"; then
12652 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12655 if test -n "$ac_config_headers"; then
12656 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12659 if test -n "$ac_config_links"; then
12660 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12663 if test -n "$ac_config_commands"; then
12664 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12667 cat >>$CONFIG_STATUS <<\_ACEOF
12669 ac_cs_usage="\
12670 \`$as_me' instantiates files from templates according to the
12671 current configuration.
12673 Usage: $0 [OPTIONS] [FILE]...
12675 -h, --help print this help, then exit
12676 -V, --version print version number, then exit
12677 -q, --quiet do not print progress messages
12678 -d, --debug don't remove temporary files
12679 --recheck update $as_me by reconfiguring in the same conditions
12680 --file=FILE[:TEMPLATE]
12681 instantiate the configuration file FILE
12682 --header=FILE[:TEMPLATE]
12683 instantiate the configuration header FILE
12685 Configuration files:
12686 $config_files
12688 Configuration headers:
12689 $config_headers
12691 Configuration commands:
12692 $config_commands
12694 Report bugs to <bug-autoconf@gnu.org>."
12695 _ACEOF
12697 cat >>$CONFIG_STATUS <<_ACEOF
12698 ac_cs_version="\\
12699 config.status
12700 configured by $0, generated by GNU Autoconf 2.59,
12701 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12703 Copyright (C) 2003 Free Software Foundation, Inc.
12704 This config.status script is free software; the Free Software Foundation
12705 gives unlimited permission to copy, distribute and modify it."
12706 srcdir=$srcdir
12707 _ACEOF
12709 cat >>$CONFIG_STATUS <<\_ACEOF
12710 # If no file are specified by the user, then we need to provide default
12711 # value. By we need to know if files were specified by the user.
12712 ac_need_defaults=:
12713 while test $# != 0
12715 case $1 in
12716 --*=*)
12717 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12718 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12719 ac_shift=:
12722 ac_option=$1
12723 ac_optarg=$2
12724 ac_shift=shift
12726 *) # This is not an option, so the user has probably given explicit
12727 # arguments.
12728 ac_option=$1
12729 ac_need_defaults=false;;
12730 esac
12732 case $ac_option in
12733 # Handling of the options.
12734 _ACEOF
12735 cat >>$CONFIG_STATUS <<\_ACEOF
12736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12737 ac_cs_recheck=: ;;
12738 --version | --vers* | -V )
12739 echo "$ac_cs_version"; exit 0 ;;
12740 --he | --h)
12741 # Conflict between --help and --header
12742 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12743 Try \`$0 --help' for more information." >&5
12744 echo "$as_me: error: ambiguous option: $1
12745 Try \`$0 --help' for more information." >&2;}
12746 { (exit 1); exit 1; }; };;
12747 --help | --hel | -h )
12748 echo "$ac_cs_usage"; exit 0 ;;
12749 --debug | --d* | -d )
12750 debug=: ;;
12751 --file | --fil | --fi | --f )
12752 $ac_shift
12753 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12754 ac_need_defaults=false;;
12755 --header | --heade | --head | --hea )
12756 $ac_shift
12757 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12758 ac_need_defaults=false;;
12759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12760 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12761 ac_cs_silent=: ;;
12763 # This is an error.
12764 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12765 Try \`$0 --help' for more information." >&5
12766 echo "$as_me: error: unrecognized option: $1
12767 Try \`$0 --help' for more information." >&2;}
12768 { (exit 1); exit 1; }; } ;;
12770 *) ac_config_targets="$ac_config_targets $1" ;;
12772 esac
12773 shift
12774 done
12776 ac_configure_extra_args=
12778 if $ac_cs_silent; then
12779 exec 6>/dev/null
12780 ac_configure_extra_args="$ac_configure_extra_args --silent"
12783 _ACEOF
12784 cat >>$CONFIG_STATUS <<_ACEOF
12785 if \$ac_cs_recheck; then
12786 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12787 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12790 _ACEOF
12792 cat >>$CONFIG_STATUS <<_ACEOF
12794 # INIT-COMMANDS section.
12797 subdirs='$subdirs'
12798 symbolic_link='$symbolic_link'
12801 _ACEOF
12805 cat >>$CONFIG_STATUS <<\_ACEOF
12806 for ac_config_target in $ac_config_targets
12808 case "$ac_config_target" in
12809 # Handling of arguments.
12810 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12811 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12812 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12813 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12814 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12815 { (exit 1); exit 1; }; };;
12816 esac
12817 done
12819 # If the user did not use the arguments to specify the items to instantiate,
12820 # then the envvar interface is used. Set only those that are not.
12821 # We use the long form for the default assignment because of an extremely
12822 # bizarre bug on SunOS 4.1.3.
12823 if $ac_need_defaults; then
12824 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12825 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12826 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12829 # Have a temporary directory for convenience. Make it in the build tree
12830 # simply because there is no reason to put it here, and in addition,
12831 # creating and moving files from /tmp can sometimes cause problems.
12832 # Create a temporary directory, and hook for its removal unless debugging.
12833 $debug ||
12835 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12836 trap '{ (exit 1); exit 1; }' 1 2 13 15
12839 # Create a (secure) tmp directory for tmp files.
12842 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12843 test -n "$tmp" && test -d "$tmp"
12844 } ||
12846 tmp=./confstat$$-$RANDOM
12847 (umask 077 && mkdir $tmp)
12848 } ||
12850 echo "$me: cannot create a temporary directory in ." >&2
12851 { (exit 1); exit 1; }
12854 _ACEOF
12856 cat >>$CONFIG_STATUS <<_ACEOF
12859 # CONFIG_FILES section.
12862 # No need to generate the scripts if there are no CONFIG_FILES.
12863 # This happens for instance when ./config.status config.h
12864 if test -n "\$CONFIG_FILES"; then
12865 # Protect against being on the right side of a sed subst in config.status.
12866 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12867 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12868 s,@SHELL@,$SHELL,;t t
12869 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12870 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12871 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12872 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12873 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12874 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12875 s,@exec_prefix@,$exec_prefix,;t t
12876 s,@prefix@,$prefix,;t t
12877 s,@program_transform_name@,$program_transform_name,;t t
12878 s,@bindir@,$bindir,;t t
12879 s,@sbindir@,$sbindir,;t t
12880 s,@libexecdir@,$libexecdir,;t t
12881 s,@datadir@,$datadir,;t t
12882 s,@sysconfdir@,$sysconfdir,;t t
12883 s,@sharedstatedir@,$sharedstatedir,;t t
12884 s,@localstatedir@,$localstatedir,;t t
12885 s,@libdir@,$libdir,;t t
12886 s,@includedir@,$includedir,;t t
12887 s,@oldincludedir@,$oldincludedir,;t t
12888 s,@infodir@,$infodir,;t t
12889 s,@mandir@,$mandir,;t t
12890 s,@build_alias@,$build_alias,;t t
12891 s,@host_alias@,$host_alias,;t t
12892 s,@target_alias@,$target_alias,;t t
12893 s,@DEFS@,$DEFS,;t t
12894 s,@ECHO_C@,$ECHO_C,;t t
12895 s,@ECHO_N@,$ECHO_N,;t t
12896 s,@ECHO_T@,$ECHO_T,;t t
12897 s,@LIBS@,$LIBS,;t t
12898 s,@build@,$build,;t t
12899 s,@build_cpu@,$build_cpu,;t t
12900 s,@build_vendor@,$build_vendor,;t t
12901 s,@build_os@,$build_os,;t t
12902 s,@host@,$host,;t t
12903 s,@host_cpu@,$host_cpu,;t t
12904 s,@host_vendor@,$host_vendor,;t t
12905 s,@host_os@,$host_os,;t t
12906 s,@target@,$target,;t t
12907 s,@target_cpu@,$target_cpu,;t t
12908 s,@target_vendor@,$target_vendor,;t t
12909 s,@target_os@,$target_os,;t t
12910 s,@build_subdir@,$build_subdir,;t t
12911 s,@host_subdir@,$host_subdir,;t t
12912 s,@target_subdir@,$target_subdir,;t t
12913 s,@GENINSRC@,$GENINSRC,;t t
12914 s,@CC@,$CC,;t t
12915 s,@CFLAGS@,$CFLAGS,;t t
12916 s,@LDFLAGS@,$LDFLAGS,;t t
12917 s,@CPPFLAGS@,$CPPFLAGS,;t t
12918 s,@ac_ct_CC@,$ac_ct_CC,;t t
12919 s,@EXEEXT@,$EXEEXT,;t t
12920 s,@OBJEXT@,$OBJEXT,;t t
12921 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12922 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12923 s,@CPP@,$CPP,;t t
12924 s,@strict1_warn@,$strict1_warn,;t t
12925 s,@warn_cflags@,$warn_cflags,;t t
12926 s,@WERROR@,$WERROR,;t t
12927 s,@nocommon_flag@,$nocommon_flag,;t t
12928 s,@TREEBROWSER@,$TREEBROWSER,;t t
12929 s,@EGREP@,$EGREP,;t t
12930 s,@valgrind_path@,$valgrind_path,;t t
12931 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12932 s,@valgrind_command@,$valgrind_command,;t t
12933 s,@coverage_flags@,$coverage_flags,;t t
12934 s,@enable_multilib@,$enable_multilib,;t t
12935 s,@enable_shared@,$enable_shared,;t t
12936 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12937 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12938 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12939 s,@onestep@,$onestep,;t t
12940 s,@SET_MAKE@,$SET_MAKE,;t t
12941 s,@AWK@,$AWK,;t t
12942 s,@LN_S@,$LN_S,;t t
12943 s,@LN@,$LN,;t t
12944 s,@RANLIB@,$RANLIB,;t t
12945 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12946 s,@ranlib_flags@,$ranlib_flags,;t t
12947 s,@INSTALL@,$INSTALL,;t t
12948 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12949 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12950 s,@make_compare_target@,$make_compare_target,;t t
12951 s,@have_mktemp_command@,$have_mktemp_command,;t t
12952 s,@MAKEINFO@,$MAKEINFO,;t t
12953 s,@BUILD_INFO@,$BUILD_INFO,;t t
12954 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12955 s,@FLEX@,$FLEX,;t t
12956 s,@BISON@,$BISON,;t t
12957 s,@stage1_cflags@,$stage1_cflags,;t t
12958 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12959 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12960 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12961 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12962 s,@LIBICONV@,$LIBICONV,;t t
12963 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12964 s,@manext@,$manext,;t t
12965 s,@objext@,$objext,;t t
12966 s,@gthread_flags@,$gthread_flags,;t t
12967 s,@extra_modes_file@,$extra_modes_file,;t t
12968 s,@FORBUILD@,$FORBUILD,;t t
12969 s,@PACKAGE@,$PACKAGE,;t t
12970 s,@VERSION@,$VERSION,;t t
12971 s,@USE_NLS@,$USE_NLS,;t t
12972 s,@LIBINTL@,$LIBINTL,;t t
12973 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12974 s,@INCINTL@,$INCINTL,;t t
12975 s,@XGETTEXT@,$XGETTEXT,;t t
12976 s,@GMSGFMT@,$GMSGFMT,;t t
12977 s,@POSUB@,$POSUB,;t t
12978 s,@CATALOGS@,$CATALOGS,;t t
12979 s,@CROSS@,$CROSS,;t t
12980 s,@ALL@,$ALL,;t t
12981 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12982 s,@inhibit_libc@,$inhibit_libc,;t t
12983 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12984 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12985 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12986 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12987 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12988 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12989 s,@collect2@,$collect2,;t t
12990 s,@libgcc_visibility@,$libgcc_visibility,;t t
12991 s,@GGC@,$GGC,;t t
12992 s,@zlibdir@,$zlibdir,;t t
12993 s,@zlibinc@,$zlibinc,;t t
12994 s,@MAINT@,$MAINT,;t t
12995 s,@ANDER@,$ANDER,;t t
12996 s,@BANSHEEINC@,$BANSHEEINC,;t t
12997 s,@BANSHEELIB@,$BANSHEELIB,;t t
12998 s,@gcc_tooldir@,$gcc_tooldir,;t t
12999 s,@dollar@,$dollar,;t t
13000 s,@slibdir@,$slibdir,;t t
13001 s,@objdir@,$objdir,;t t
13002 s,@subdirs@,$subdirs,;t t
13003 s,@srcdir@,$srcdir,;t t
13004 s,@all_boot_languages@,$all_boot_languages,;t t
13005 s,@all_compilers@,$all_compilers,;t t
13006 s,@all_gtfiles@,$all_gtfiles,;t t
13007 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13008 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13009 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13010 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13011 s,@all_languages@,$all_languages,;t t
13012 s,@all_stagestuff@,$all_stagestuff,;t t
13013 s,@build_exeext@,$build_exeext,;t t
13014 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13015 s,@build_xm_file_list@,$build_xm_file_list,;t t
13016 s,@build_xm_include_list@,$build_xm_include_list,;t t
13017 s,@build_xm_defines@,$build_xm_defines,;t t
13018 s,@check_languages@,$check_languages,;t t
13019 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13020 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13021 s,@cpp_install_dir@,$cpp_install_dir,;t t
13022 s,@xmake_file@,$xmake_file,;t t
13023 s,@tmake_file@,$tmake_file,;t t
13024 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13025 s,@extra_headers_list@,$extra_headers_list,;t t
13026 s,@extra_objs@,$extra_objs,;t t
13027 s,@extra_parts@,$extra_parts,;t t
13028 s,@extra_passes@,$extra_passes,;t t
13029 s,@extra_programs@,$extra_programs,;t t
13030 s,@float_h_file@,$float_h_file,;t t
13031 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13032 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13033 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13034 s,@gcc_version@,$gcc_version,;t t
13035 s,@gcc_version_full@,$gcc_version_full,;t t
13036 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13037 s,@host_exeext@,$host_exeext,;t t
13038 s,@host_xm_file_list@,$host_xm_file_list,;t t
13039 s,@host_xm_include_list@,$host_xm_include_list,;t t
13040 s,@host_xm_defines@,$host_xm_defines,;t t
13041 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13042 s,@install@,$install,;t t
13043 s,@lang_opt_files@,$lang_opt_files,;t t
13044 s,@lang_specs_files@,$lang_specs_files,;t t
13045 s,@lang_tree_files@,$lang_tree_files,;t t
13046 s,@local_prefix@,$local_prefix,;t t
13047 s,@md_file@,$md_file,;t t
13048 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13049 s,@out_file@,$out_file,;t t
13050 s,@out_object_file@,$out_object_file,;t t
13051 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13052 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13053 s,@symbolic_link@,$symbolic_link,;t t
13054 s,@thread_file@,$thread_file,;t t
13055 s,@tm_file_list@,$tm_file_list,;t t
13056 s,@tm_include_list@,$tm_include_list,;t t
13057 s,@tm_defines@,$tm_defines,;t t
13058 s,@tm_p_file_list@,$tm_p_file_list,;t t
13059 s,@tm_p_include_list@,$tm_p_include_list,;t t
13060 s,@xm_file_list@,$xm_file_list,;t t
13061 s,@xm_include_list@,$xm_include_list,;t t
13062 s,@xm_defines@,$xm_defines,;t t
13063 s,@target_noncanonical@,$target_noncanonical,;t t
13064 s,@c_target_objs@,$c_target_objs,;t t
13065 s,@cxx_target_objs@,$cxx_target_objs,;t t
13066 s,@target_cpu_default@,$target_cpu_default,;t t
13067 s,@GMPLIBS@,$GMPLIBS,;t t
13068 s,@GMPINC@,$GMPINC,;t t
13069 s,@LIBOBJS@,$LIBOBJS,;t t
13070 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13071 /@language_hooks@/r $language_hooks
13072 s,@language_hooks@,,;t t
13073 CEOF
13075 _ACEOF
13077 cat >>$CONFIG_STATUS <<\_ACEOF
13078 # Split the substitutions into bite-sized pieces for seds with
13079 # small command number limits, like on Digital OSF/1 and HP-UX.
13080 ac_max_sed_lines=48
13081 ac_sed_frag=1 # Number of current file.
13082 ac_beg=1 # First line for current file.
13083 ac_end=$ac_max_sed_lines # Line after last line for current file.
13084 ac_more_lines=:
13085 ac_sed_cmds=
13086 while $ac_more_lines; do
13087 if test $ac_beg -gt 1; then
13088 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13089 else
13090 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13092 if test ! -s $tmp/subs.frag; then
13093 ac_more_lines=false
13094 else
13095 # The purpose of the label and of the branching condition is to
13096 # speed up the sed processing (if there are no `@' at all, there
13097 # is no need to browse any of the substitutions).
13098 # These are the two extra sed commands mentioned above.
13099 (echo ':t
13100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13101 if test -z "$ac_sed_cmds"; then
13102 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13103 else
13104 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13106 ac_sed_frag=`expr $ac_sed_frag + 1`
13107 ac_beg=$ac_end
13108 ac_end=`expr $ac_end + $ac_max_sed_lines`
13110 done
13111 if test -z "$ac_sed_cmds"; then
13112 ac_sed_cmds=cat
13114 fi # test -n "$CONFIG_FILES"
13116 _ACEOF
13117 cat >>$CONFIG_STATUS <<\_ACEOF
13118 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13119 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13120 case $ac_file in
13121 - | *:- | *:-:* ) # input from stdin
13122 cat >$tmp/stdin
13123 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13124 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13125 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13127 * ) ac_file_in=$ac_file.in ;;
13128 esac
13130 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13131 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13133 X"$ac_file" : 'X\(//\)[^/]' \| \
13134 X"$ac_file" : 'X\(//\)$' \| \
13135 X"$ac_file" : 'X\(/\)' \| \
13136 . : '\(.\)' 2>/dev/null ||
13137 echo X"$ac_file" |
13138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13140 /^X\(\/\/\)$/{ s//\1/; q; }
13141 /^X\(\/\).*/{ s//\1/; q; }
13142 s/.*/./; q'`
13143 { if $as_mkdir_p; then
13144 mkdir -p "$ac_dir"
13145 else
13146 as_dir="$ac_dir"
13147 as_dirs=
13148 while test ! -d "$as_dir"; do
13149 as_dirs="$as_dir $as_dirs"
13150 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13152 X"$as_dir" : 'X\(//\)[^/]' \| \
13153 X"$as_dir" : 'X\(//\)$' \| \
13154 X"$as_dir" : 'X\(/\)' \| \
13155 . : '\(.\)' 2>/dev/null ||
13156 echo X"$as_dir" |
13157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13159 /^X\(\/\/\)$/{ s//\1/; q; }
13160 /^X\(\/\).*/{ s//\1/; q; }
13161 s/.*/./; q'`
13162 done
13163 test ! -n "$as_dirs" || mkdir $as_dirs
13164 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13165 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13166 { (exit 1); exit 1; }; }; }
13168 ac_builddir=.
13170 if test "$ac_dir" != .; then
13171 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13172 # A "../" for each directory in $ac_dir_suffix.
13173 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13174 else
13175 ac_dir_suffix= ac_top_builddir=
13178 case $srcdir in
13179 .) # No --srcdir option. We are building in place.
13180 ac_srcdir=.
13181 if test -z "$ac_top_builddir"; then
13182 ac_top_srcdir=.
13183 else
13184 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13185 fi ;;
13186 [\\/]* | ?:[\\/]* ) # Absolute path.
13187 ac_srcdir=$srcdir$ac_dir_suffix;
13188 ac_top_srcdir=$srcdir ;;
13189 *) # Relative path.
13190 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13191 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13192 esac
13194 # Do not use `cd foo && pwd` to compute absolute paths, because
13195 # the directories may not exist.
13196 case `pwd` in
13197 .) ac_abs_builddir="$ac_dir";;
13199 case "$ac_dir" in
13200 .) ac_abs_builddir=`pwd`;;
13201 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13202 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13203 esac;;
13204 esac
13205 case $ac_abs_builddir in
13206 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13208 case ${ac_top_builddir}. in
13209 .) ac_abs_top_builddir=$ac_abs_builddir;;
13210 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13211 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13212 esac;;
13213 esac
13214 case $ac_abs_builddir in
13215 .) ac_abs_srcdir=$ac_srcdir;;
13217 case $ac_srcdir in
13218 .) ac_abs_srcdir=$ac_abs_builddir;;
13219 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13220 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13221 esac;;
13222 esac
13223 case $ac_abs_builddir in
13224 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13226 case $ac_top_srcdir in
13227 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13228 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13229 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13230 esac;;
13231 esac
13235 if test x"$ac_file" != x-; then
13236 { echo "$as_me:$LINENO: creating $ac_file" >&5
13237 echo "$as_me: creating $ac_file" >&6;}
13238 rm -f "$ac_file"
13240 # Let's still pretend it is `configure' which instantiates (i.e., don't
13241 # use $as_me), people would be surprised to read:
13242 # /* config.h. Generated by config.status. */
13243 if test x"$ac_file" = x-; then
13244 configure_input=
13245 else
13246 configure_input="$ac_file. "
13248 configure_input=$configure_input"Generated from `echo $ac_file_in |
13249 sed 's,.*/,,'` by configure."
13251 # First look for the input files in the build tree, otherwise in the
13252 # src tree.
13253 ac_file_inputs=`IFS=:
13254 for f in $ac_file_in; do
13255 case $f in
13256 -) echo $tmp/stdin ;;
13257 [\\/$]*)
13258 # Absolute (can't be DOS-style, as IFS=:)
13259 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13260 echo "$as_me: error: cannot find input file: $f" >&2;}
13261 { (exit 1); exit 1; }; }
13262 echo "$f";;
13263 *) # Relative
13264 if test -f "$f"; then
13265 # Build tree
13266 echo "$f"
13267 elif test -f "$srcdir/$f"; then
13268 # Source tree
13269 echo "$srcdir/$f"
13270 else
13271 # /dev/null tree
13272 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13273 echo "$as_me: error: cannot find input file: $f" >&2;}
13274 { (exit 1); exit 1; }; }
13275 fi;;
13276 esac
13277 done` || { (exit 1); exit 1; }
13278 _ACEOF
13279 cat >>$CONFIG_STATUS <<_ACEOF
13280 sed "$ac_vpsub
13281 $extrasub
13282 _ACEOF
13283 cat >>$CONFIG_STATUS <<\_ACEOF
13285 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13286 s,@configure_input@,$configure_input,;t t
13287 s,@srcdir@,$ac_srcdir,;t t
13288 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13289 s,@top_srcdir@,$ac_top_srcdir,;t t
13290 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13291 s,@builddir@,$ac_builddir,;t t
13292 s,@abs_builddir@,$ac_abs_builddir,;t t
13293 s,@top_builddir@,$ac_top_builddir,;t t
13294 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13295 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13296 rm -f $tmp/stdin
13297 if test x"$ac_file" != x-; then
13298 mv $tmp/out $ac_file
13299 else
13300 cat $tmp/out
13301 rm -f $tmp/out
13304 done
13305 _ACEOF
13306 cat >>$CONFIG_STATUS <<\_ACEOF
13309 # CONFIG_HEADER section.
13312 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13313 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13315 # ac_d sets the value in "#define NAME VALUE" lines.
13316 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13317 ac_dB='[ ].*$,\1#\2'
13318 ac_dC=' '
13319 ac_dD=',;t'
13320 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13321 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13322 ac_uB='$,\1#\2define\3'
13323 ac_uC=' '
13324 ac_uD=',;t'
13326 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13327 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13328 case $ac_file in
13329 - | *:- | *:-:* ) # input from stdin
13330 cat >$tmp/stdin
13331 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13332 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13333 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13334 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13335 * ) ac_file_in=$ac_file.in ;;
13336 esac
13338 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13339 echo "$as_me: creating $ac_file" >&6;}
13341 # First look for the input files in the build tree, otherwise in the
13342 # src tree.
13343 ac_file_inputs=`IFS=:
13344 for f in $ac_file_in; do
13345 case $f in
13346 -) echo $tmp/stdin ;;
13347 [\\/$]*)
13348 # Absolute (can't be DOS-style, as IFS=:)
13349 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13350 echo "$as_me: error: cannot find input file: $f" >&2;}
13351 { (exit 1); exit 1; }; }
13352 # Do quote $f, to prevent DOS paths from being IFS'd.
13353 echo "$f";;
13354 *) # Relative
13355 if test -f "$f"; then
13356 # Build tree
13357 echo "$f"
13358 elif test -f "$srcdir/$f"; then
13359 # Source tree
13360 echo "$srcdir/$f"
13361 else
13362 # /dev/null tree
13363 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13364 echo "$as_me: error: cannot find input file: $f" >&2;}
13365 { (exit 1); exit 1; }; }
13366 fi;;
13367 esac
13368 done` || { (exit 1); exit 1; }
13369 # Remove the trailing spaces.
13370 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13372 _ACEOF
13374 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13375 # `conftest.undefs', that substitutes the proper values into
13376 # config.h.in to produce config.h. The first handles `#define'
13377 # templates, and the second `#undef' templates.
13378 # And first: Protect against being on the right side of a sed subst in
13379 # config.status. Protect against being in an unquoted here document
13380 # in config.status.
13381 rm -f conftest.defines conftest.undefs
13382 # Using a here document instead of a string reduces the quoting nightmare.
13383 # Putting comments in sed scripts is not portable.
13385 # `end' is used to avoid that the second main sed command (meant for
13386 # 0-ary CPP macros) applies to n-ary macro definitions.
13387 # See the Autoconf documentation for `clear'.
13388 cat >confdef2sed.sed <<\_ACEOF
13389 s/[\\&,]/\\&/g
13390 s,[\\$`],\\&,g
13391 t clear
13392 : clear
13393 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13394 t end
13395 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13396 : end
13397 _ACEOF
13398 # If some macros were called several times there might be several times
13399 # the same #defines, which is useless. Nevertheless, we may not want to
13400 # sort them, since we want the *last* AC-DEFINE to be honored.
13401 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13402 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13403 rm -f confdef2sed.sed
13405 # This sed command replaces #undef with comments. This is necessary, for
13406 # example, in the case of _POSIX_SOURCE, which is predefined and required
13407 # on some systems where configure will not decide to define it.
13408 cat >>conftest.undefs <<\_ACEOF
13409 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13410 _ACEOF
13412 # Break up conftest.defines because some shells have a limit on the size
13413 # of here documents, and old seds have small limits too (100 cmds).
13414 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13415 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13416 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13417 echo ' :' >>$CONFIG_STATUS
13418 rm -f conftest.tail
13419 while grep . conftest.defines >/dev/null
13421 # Write a limited-size here document to $tmp/defines.sed.
13422 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13423 # Speed up: don't consider the non `#define' lines.
13424 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13425 # Work around the forget-to-reset-the-flag bug.
13426 echo 't clr' >>$CONFIG_STATUS
13427 echo ': clr' >>$CONFIG_STATUS
13428 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13429 echo 'CEOF
13430 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13431 rm -f $tmp/in
13432 mv $tmp/out $tmp/in
13433 ' >>$CONFIG_STATUS
13434 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13435 rm -f conftest.defines
13436 mv conftest.tail conftest.defines
13437 done
13438 rm -f conftest.defines
13439 echo ' fi # grep' >>$CONFIG_STATUS
13440 echo >>$CONFIG_STATUS
13442 # Break up conftest.undefs because some shells have a limit on the size
13443 # of here documents, and old seds have small limits too (100 cmds).
13444 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13445 rm -f conftest.tail
13446 while grep . conftest.undefs >/dev/null
13448 # Write a limited-size here document to $tmp/undefs.sed.
13449 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13450 # Speed up: don't consider the non `#undef'
13451 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13452 # Work around the forget-to-reset-the-flag bug.
13453 echo 't clr' >>$CONFIG_STATUS
13454 echo ': clr' >>$CONFIG_STATUS
13455 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13456 echo 'CEOF
13457 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13458 rm -f $tmp/in
13459 mv $tmp/out $tmp/in
13460 ' >>$CONFIG_STATUS
13461 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13462 rm -f conftest.undefs
13463 mv conftest.tail conftest.undefs
13464 done
13465 rm -f conftest.undefs
13467 cat >>$CONFIG_STATUS <<\_ACEOF
13468 # Let's still pretend it is `configure' which instantiates (i.e., don't
13469 # use $as_me), people would be surprised to read:
13470 # /* config.h. Generated by config.status. */
13471 if test x"$ac_file" = x-; then
13472 echo "/* Generated by configure. */" >$tmp/config.h
13473 else
13474 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13476 cat $tmp/in >>$tmp/config.h
13477 rm -f $tmp/in
13478 if test x"$ac_file" != x-; then
13479 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13480 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13481 echo "$as_me: $ac_file is unchanged" >&6;}
13482 else
13483 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13484 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13485 X"$ac_file" : 'X\(//\)[^/]' \| \
13486 X"$ac_file" : 'X\(//\)$' \| \
13487 X"$ac_file" : 'X\(/\)' \| \
13488 . : '\(.\)' 2>/dev/null ||
13489 echo X"$ac_file" |
13490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13492 /^X\(\/\/\)$/{ s//\1/; q; }
13493 /^X\(\/\).*/{ s//\1/; q; }
13494 s/.*/./; q'`
13495 { if $as_mkdir_p; then
13496 mkdir -p "$ac_dir"
13497 else
13498 as_dir="$ac_dir"
13499 as_dirs=
13500 while test ! -d "$as_dir"; do
13501 as_dirs="$as_dir $as_dirs"
13502 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13503 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13504 X"$as_dir" : 'X\(//\)[^/]' \| \
13505 X"$as_dir" : 'X\(//\)$' \| \
13506 X"$as_dir" : 'X\(/\)' \| \
13507 . : '\(.\)' 2>/dev/null ||
13508 echo X"$as_dir" |
13509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13511 /^X\(\/\/\)$/{ s//\1/; q; }
13512 /^X\(\/\).*/{ s//\1/; q; }
13513 s/.*/./; q'`
13514 done
13515 test ! -n "$as_dirs" || mkdir $as_dirs
13516 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13517 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13518 { (exit 1); exit 1; }; }; }
13520 rm -f $ac_file
13521 mv $tmp/config.h $ac_file
13523 else
13524 cat $tmp/config.h
13525 rm -f $tmp/config.h
13527 done
13528 _ACEOF
13529 cat >>$CONFIG_STATUS <<\_ACEOF
13532 # CONFIG_COMMANDS section.
13534 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13535 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13536 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13537 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13538 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13539 X"$ac_dest" : 'X\(//\)[^/]' \| \
13540 X"$ac_dest" : 'X\(//\)$' \| \
13541 X"$ac_dest" : 'X\(/\)' \| \
13542 . : '\(.\)' 2>/dev/null ||
13543 echo X"$ac_dest" |
13544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13546 /^X\(\/\/\)$/{ s//\1/; q; }
13547 /^X\(\/\).*/{ s//\1/; q; }
13548 s/.*/./; q'`
13549 { if $as_mkdir_p; then
13550 mkdir -p "$ac_dir"
13551 else
13552 as_dir="$ac_dir"
13553 as_dirs=
13554 while test ! -d "$as_dir"; do
13555 as_dirs="$as_dir $as_dirs"
13556 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13558 X"$as_dir" : 'X\(//\)[^/]' \| \
13559 X"$as_dir" : 'X\(//\)$' \| \
13560 X"$as_dir" : 'X\(/\)' \| \
13561 . : '\(.\)' 2>/dev/null ||
13562 echo X"$as_dir" |
13563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13565 /^X\(\/\/\)$/{ s//\1/; q; }
13566 /^X\(\/\).*/{ s//\1/; q; }
13567 s/.*/./; q'`
13568 done
13569 test ! -n "$as_dirs" || mkdir $as_dirs
13570 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13571 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13572 { (exit 1); exit 1; }; }; }
13574 ac_builddir=.
13576 if test "$ac_dir" != .; then
13577 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13578 # A "../" for each directory in $ac_dir_suffix.
13579 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13580 else
13581 ac_dir_suffix= ac_top_builddir=
13584 case $srcdir in
13585 .) # No --srcdir option. We are building in place.
13586 ac_srcdir=.
13587 if test -z "$ac_top_builddir"; then
13588 ac_top_srcdir=.
13589 else
13590 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13591 fi ;;
13592 [\\/]* | ?:[\\/]* ) # Absolute path.
13593 ac_srcdir=$srcdir$ac_dir_suffix;
13594 ac_top_srcdir=$srcdir ;;
13595 *) # Relative path.
13596 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13597 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13598 esac
13600 # Do not use `cd foo && pwd` to compute absolute paths, because
13601 # the directories may not exist.
13602 case `pwd` in
13603 .) ac_abs_builddir="$ac_dir";;
13605 case "$ac_dir" in
13606 .) ac_abs_builddir=`pwd`;;
13607 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13608 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13609 esac;;
13610 esac
13611 case $ac_abs_builddir in
13612 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13614 case ${ac_top_builddir}. in
13615 .) ac_abs_top_builddir=$ac_abs_builddir;;
13616 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13617 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13618 esac;;
13619 esac
13620 case $ac_abs_builddir in
13621 .) ac_abs_srcdir=$ac_srcdir;;
13623 case $ac_srcdir in
13624 .) ac_abs_srcdir=$ac_abs_builddir;;
13625 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13626 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13627 esac;;
13628 esac
13629 case $ac_abs_builddir in
13630 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13632 case $ac_top_srcdir in
13633 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13634 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13635 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13636 esac;;
13637 esac
13640 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13641 echo "$as_me: executing $ac_dest commands" >&6;}
13642 case $ac_dest in
13643 default )
13644 case ${CONFIG_HEADERS} in
13645 *auto-host.h:config.in*)
13646 echo > cstamp-h ;;
13647 esac
13648 # Make sure all the subdirs exist.
13649 for d in $subdirs
13651 test -d $d || mkdir $d
13652 done
13653 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13654 # bootstrapping and the installation procedure can still use
13655 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13656 # FLAGS_TO_PASS has been modified to solve the problem there.
13657 # This is virtually a duplicate of what happens in configure.lang; we do
13658 # an extra check to make sure this only happens if ln -s can be used.
13659 if test "$symbolic_link" = "ln -s"; then
13660 for d in ${subdirs} fixinc ; do
13661 STARTDIR=`${PWDCMD-pwd}`
13662 cd $d
13663 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13665 rm -f $t
13666 $symbolic_link ../$t $t 2>/dev/null
13667 done
13668 cd $STARTDIR
13669 done
13670 else true ; fi
13672 esac
13673 done
13674 _ACEOF
13676 cat >>$CONFIG_STATUS <<\_ACEOF
13678 { (exit 0); exit 0; }
13679 _ACEOF
13680 chmod +x $CONFIG_STATUS
13681 ac_clean_files=$ac_clean_files_save
13684 # configure is writing to config.log, and then calls config.status.
13685 # config.status does its own redirection, appending to config.log.
13686 # Unfortunately, on DOS this fails, as config.log is still kept open
13687 # by configure, so config.status won't be able to write to it; its
13688 # output is simply discarded. So we exec the FD to /dev/null,
13689 # effectively closing config.log, so it can be properly (re)opened and
13690 # appended to by config.status. When coming back to configure, we
13691 # need to make the FD available again.
13692 if test "$no_create" != yes; then
13693 ac_cs_success=:
13694 ac_config_status_args=
13695 test "$silent" = yes &&
13696 ac_config_status_args="$ac_config_status_args --quiet"
13697 exec 5>/dev/null
13698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13699 exec 5>>config.log
13700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13701 # would make configure fail if this is the last instruction.
13702 $ac_cs_success || { (exit 1); exit 1; }