2004-08-26 Matthias Klose <doko@debian.org>
[official-gcc.git] / gcc / configure
blobf7e2f303e7287635411156ee8554386f28181c3d
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 target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc 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 c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
840 cat <<\_ACEOF
842 Program names:
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
854 if test -n "$ac_init_help"; then
856 cat <<\_ACEOF
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: fold,gc,gcac,misc,rtlflag,rtl,
871 tree,valgrind; default is gc,misc,rtlflag,tree
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
878 default is noopt
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --enable-initfini-array use .init_array/.fini_array sections
890 --enable-sjlj-exceptions
891 arrange to use setjmp/longjmp exception handling
892 --enable-libunwind-exceptions force use libunwind for exceptions
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
899 of the registry key
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
907 Optional Packages:
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
925 --with-gc={page,zone} choose the garbage collection mechanism to use
926 with the compiler
927 --with-system-zlib use installed libz
928 --with-libbanshee enable libbanshee
929 --with-slibdir=DIR shared libraries in DIR LIBDIR
931 Some influential environment variables:
932 CC C compiler command
933 CFLAGS C compiler flags
934 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
935 nonstandard directory <lib dir>
936 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
937 headers in a nonstandard directory <include dir>
938 CPP C preprocessor
939 GMPLIBS How to link GMP
940 GMPINC How to find GMP include files
942 Use these variables to override the choices made by `configure' or to help
943 it to find libraries and programs with nonstandard names/locations.
945 _ACEOF
948 if test "$ac_init_help" = "recursive"; then
949 # If there are subdirs, report their specific --help.
950 ac_popdir=`pwd`
951 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
952 test -d $ac_dir || continue
953 ac_builddir=.
955 if test "$ac_dir" != .; then
956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
957 # A "../" for each directory in $ac_dir_suffix.
958 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
959 else
960 ac_dir_suffix= ac_top_builddir=
963 case $srcdir in
964 .) # No --srcdir option. We are building in place.
965 ac_srcdir=.
966 if test -z "$ac_top_builddir"; then
967 ac_top_srcdir=.
968 else
969 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
970 fi ;;
971 [\\/]* | ?:[\\/]* ) # Absolute path.
972 ac_srcdir=$srcdir$ac_dir_suffix;
973 ac_top_srcdir=$srcdir ;;
974 *) # Relative path.
975 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
976 ac_top_srcdir=$ac_top_builddir$srcdir ;;
977 esac
979 # Do not use `cd foo && pwd` to compute absolute paths, because
980 # the directories may not exist.
981 case `pwd` in
982 .) ac_abs_builddir="$ac_dir";;
984 case "$ac_dir" in
985 .) ac_abs_builddir=`pwd`;;
986 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
987 *) ac_abs_builddir=`pwd`/"$ac_dir";;
988 esac;;
989 esac
990 case $ac_abs_builddir in
991 .) ac_abs_top_builddir=${ac_top_builddir}.;;
993 case ${ac_top_builddir}. in
994 .) ac_abs_top_builddir=$ac_abs_builddir;;
995 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
996 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
997 esac;;
998 esac
999 case $ac_abs_builddir in
1000 .) ac_abs_srcdir=$ac_srcdir;;
1002 case $ac_srcdir in
1003 .) ac_abs_srcdir=$ac_abs_builddir;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1005 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1006 esac;;
1007 esac
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1011 case $ac_top_srcdir in
1012 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1015 esac;;
1016 esac
1018 cd $ac_dir
1019 # Check for guested configure; otherwise get Cygnus style configure.
1020 if test -f $ac_srcdir/configure.gnu; then
1021 echo
1022 $SHELL $ac_srcdir/configure.gnu --help=recursive
1023 elif test -f $ac_srcdir/configure; then
1024 echo
1025 $SHELL $ac_srcdir/configure --help=recursive
1026 elif test -f $ac_srcdir/configure.ac ||
1027 test -f $ac_srcdir/configure.in; then
1028 echo
1029 $ac_configure --help
1030 else
1031 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1033 cd $ac_popdir
1034 done
1037 test -n "$ac_init_help" && exit 0
1038 if $ac_init_version; then
1039 cat <<\_ACEOF
1041 Copyright (C) 2003 Free Software Foundation, Inc.
1042 This configure script is free software; the Free Software Foundation
1043 gives unlimited permission to copy, distribute and modify it.
1044 _ACEOF
1045 exit 0
1047 exec 5>config.log
1048 cat >&5 <<_ACEOF
1049 This file contains any messages produced by compilers while
1050 running configure, to aid debugging if configure makes a mistake.
1052 It was created by $as_me, which was
1053 generated by GNU Autoconf 2.59. Invocation command line was
1055 $ $0 $@
1057 _ACEOF
1059 cat <<_ASUNAME
1060 ## --------- ##
1061 ## Platform. ##
1062 ## --------- ##
1064 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1065 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1066 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1067 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1068 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1070 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1071 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1073 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1074 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1075 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1076 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1077 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1078 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1079 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1081 _ASUNAME
1083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1084 for as_dir in $PATH
1086 IFS=$as_save_IFS
1087 test -z "$as_dir" && as_dir=.
1088 echo "PATH: $as_dir"
1089 done
1091 } >&5
1093 cat >&5 <<_ACEOF
1096 ## ----------- ##
1097 ## Core tests. ##
1098 ## ----------- ##
1100 _ACEOF
1103 # Keep a trace of the command line.
1104 # Strip out --no-create and --no-recursion so they do not pile up.
1105 # Strip out --silent because we don't want to record it for future runs.
1106 # Also quote any args containing shell meta-characters.
1107 # Make two passes to allow for proper duplicate-argument suppression.
1108 ac_configure_args=
1109 ac_configure_args0=
1110 ac_configure_args1=
1111 ac_sep=
1112 ac_must_keep_next=false
1113 for ac_pass in 1 2
1115 for ac_arg
1117 case $ac_arg in
1118 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1121 continue ;;
1122 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1123 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1124 esac
1125 case $ac_pass in
1126 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1128 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1129 if test $ac_must_keep_next = true; then
1130 ac_must_keep_next=false # Got value, back to normal.
1131 else
1132 case $ac_arg in
1133 *=* | --config-cache | -C | -disable-* | --disable-* \
1134 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1135 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1136 | -with-* | --with-* | -without-* | --without-* | --x)
1137 case "$ac_configure_args0 " in
1138 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1139 esac
1141 -* ) ac_must_keep_next=true ;;
1142 esac
1144 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1145 # Get rid of the leading space.
1146 ac_sep=" "
1148 esac
1149 done
1150 done
1151 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1152 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1154 # When interrupted or exit'd, cleanup temporary files, and complete
1155 # config.log. We remove comments because anyway the quotes in there
1156 # would cause problems or look ugly.
1157 # WARNING: Be sure not to use single quotes in there, as some shells,
1158 # such as our DU 5.0 friend, will then `close' the trap.
1159 trap 'exit_status=$?
1160 # Save into config.log some information that might help in debugging.
1162 echo
1164 cat <<\_ASBOX
1165 ## ---------------- ##
1166 ## Cache variables. ##
1167 ## ---------------- ##
1168 _ASBOX
1169 echo
1170 # The following way of writing the cache mishandles newlines in values,
1172 (set) 2>&1 |
1173 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1174 *ac_space=\ *)
1175 sed -n \
1176 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1180 sed -n \
1181 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1183 esac;
1185 echo
1187 cat <<\_ASBOX
1188 ## ----------------- ##
1189 ## Output variables. ##
1190 ## ----------------- ##
1191 _ASBOX
1192 echo
1193 for ac_var in $ac_subst_vars
1195 eval ac_val=$`echo $ac_var`
1196 echo "$ac_var='"'"'$ac_val'"'"'"
1197 done | sort
1198 echo
1200 if test -n "$ac_subst_files"; then
1201 cat <<\_ASBOX
1202 ## ------------- ##
1203 ## Output files. ##
1204 ## ------------- ##
1205 _ASBOX
1206 echo
1207 for ac_var in $ac_subst_files
1209 eval ac_val=$`echo $ac_var`
1210 echo "$ac_var='"'"'$ac_val'"'"'"
1211 done | sort
1212 echo
1215 if test -s confdefs.h; then
1216 cat <<\_ASBOX
1217 ## ----------- ##
1218 ## confdefs.h. ##
1219 ## ----------- ##
1220 _ASBOX
1221 echo
1222 sed "/^$/d" confdefs.h | sort
1223 echo
1225 test "$ac_signal" != 0 &&
1226 echo "$as_me: caught signal $ac_signal"
1227 echo "$as_me: exit $exit_status"
1228 } >&5
1229 rm -f core *.core &&
1230 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1231 exit $exit_status
1233 for ac_signal in 1 2 13 15; do
1234 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1235 done
1236 ac_signal=0
1238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1239 rm -rf conftest* confdefs.h
1240 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1241 echo >confdefs.h
1243 # Predefined preprocessor variables.
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_NAME "$PACKAGE_NAME"
1247 _ACEOF
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1252 _ACEOF
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1257 _ACEOF
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_STRING "$PACKAGE_STRING"
1262 _ACEOF
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1267 _ACEOF
1270 # Let the site file select an alternate cache file if it wants to.
1271 # Prefer explicitly selected file to automatically selected ones.
1272 if test -z "$CONFIG_SITE"; then
1273 if test "x$prefix" != xNONE; then
1274 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1275 else
1276 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279 for ac_site_file in $CONFIG_SITE; do
1280 if test -r "$ac_site_file"; then
1281 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1282 echo "$as_me: loading site script $ac_site_file" >&6;}
1283 sed 's/^/| /' "$ac_site_file" >&5
1284 . "$ac_site_file"
1286 done
1288 if test -r "$cache_file"; then
1289 # Some versions of bash will fail to source /dev/null (special
1290 # files actually), so we avoid doing that.
1291 if test -f "$cache_file"; then
1292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1293 echo "$as_me: loading cache $cache_file" >&6;}
1294 case $cache_file in
1295 [\\/]* | ?:[\\/]* ) . $cache_file;;
1296 *) . ./$cache_file;;
1297 esac
1299 else
1300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1301 echo "$as_me: creating cache $cache_file" >&6;}
1302 >$cache_file
1305 # Check that the precious variables saved in the cache have kept the same
1306 # value.
1307 ac_cache_corrupted=false
1308 for ac_var in `(set) 2>&1 |
1309 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1311 eval ac_new_set=\$ac_env_${ac_var}_set
1312 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1313 eval ac_new_val="\$ac_env_${ac_var}_value"
1314 case $ac_old_set,$ac_new_set in
1315 set,)
1316 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1317 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1318 ac_cache_corrupted=: ;;
1319 ,set)
1320 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1322 ac_cache_corrupted=: ;;
1323 ,);;
1325 if test "x$ac_old_val" != "x$ac_new_val"; then
1326 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1327 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1328 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1329 echo "$as_me: former value: $ac_old_val" >&2;}
1330 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1331 echo "$as_me: current value: $ac_new_val" >&2;}
1332 ac_cache_corrupted=:
1333 fi;;
1334 esac
1335 # Pass precious variables to config.status.
1336 if test "$ac_new_set" = set; then
1337 case $ac_new_val in
1338 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1340 *) ac_arg=$ac_var=$ac_new_val ;;
1341 esac
1342 case " $ac_configure_args " in
1343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1344 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1345 esac
1347 done
1348 if $ac_cache_corrupted; then
1349 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1350 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1351 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1352 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1353 { (exit 1); exit 1; }; }
1356 ac_ext=c
1357 ac_cpp='$CPP $CPPFLAGS'
1358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1384 # Determine the host, build, and target systems
1385 ac_aux_dir=
1386 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1387 if test -f $ac_dir/install-sh; then
1388 ac_aux_dir=$ac_dir
1389 ac_install_sh="$ac_aux_dir/install-sh -c"
1390 break
1391 elif test -f $ac_dir/install.sh; then
1392 ac_aux_dir=$ac_dir
1393 ac_install_sh="$ac_aux_dir/install.sh -c"
1394 break
1395 elif test -f $ac_dir/shtool; then
1396 ac_aux_dir=$ac_dir
1397 ac_install_sh="$ac_aux_dir/shtool install -c"
1398 break
1400 done
1401 if test -z "$ac_aux_dir"; then
1402 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1403 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1404 { (exit 1); exit 1; }; }
1406 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1407 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1408 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1410 # Make sure we can run config.sub.
1411 $ac_config_sub sun4 >/dev/null 2>&1 ||
1412 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1413 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1414 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: checking build system type" >&5
1417 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1418 if test "${ac_cv_build+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421 ac_cv_build_alias=$build_alias
1422 test -z "$ac_cv_build_alias" &&
1423 ac_cv_build_alias=`$ac_config_guess`
1424 test -z "$ac_cv_build_alias" &&
1425 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1426 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1427 { (exit 1); exit 1; }; }
1428 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1429 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1430 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1431 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1435 echo "${ECHO_T}$ac_cv_build" >&6
1436 build=$ac_cv_build
1437 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1438 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1439 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1442 echo "$as_me:$LINENO: checking host system type" >&5
1443 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1444 if test "${ac_cv_host+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447 ac_cv_host_alias=$host_alias
1448 test -z "$ac_cv_host_alias" &&
1449 ac_cv_host_alias=$ac_cv_build_alias
1450 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1451 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1452 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1453 { (exit 1); exit 1; }; }
1456 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1457 echo "${ECHO_T}$ac_cv_host" >&6
1458 host=$ac_cv_host
1459 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1460 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1461 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464 echo "$as_me:$LINENO: checking target system type" >&5
1465 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1466 if test "${ac_cv_target+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469 ac_cv_target_alias=$target_alias
1470 test "x$ac_cv_target_alias" = "x" &&
1471 ac_cv_target_alias=$ac_cv_host_alias
1472 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1473 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1474 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1475 { (exit 1); exit 1; }; }
1478 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1479 echo "${ECHO_T}$ac_cv_target" >&6
1480 target=$ac_cv_target
1481 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1486 # The aliases save the names the user supplied, while $host etc.
1487 # will get canonicalized.
1488 test -n "$target_alias" &&
1489 test "$program_prefix$program_suffix$program_transform_name" = \
1490 NONENONEs,x,x, &&
1491 program_prefix=${target_alias}-
1493 # Determine the noncanonical target name, for directory use.
1494 case ${build_alias} in
1495 "") build_noncanonical=${build} ;;
1496 *) build_noncanonical=${build_alias} ;;
1497 esac
1499 case ${host_alias} in
1500 "") host_noncanonical=${build_noncanonical} ;;
1501 *) host_noncanonical=${host_alias} ;;
1502 esac
1504 case ${target_alias} in
1505 "") target_noncanonical=${host_noncanonical} ;;
1506 *) target_noncanonical=${target_alias} ;;
1507 esac
1512 # Determine the target- and build-specific subdirectories
1513 # Prefix 'build-' so this never conflicts with target_subdir.
1514 build_subdir="build-${build_noncanonical}"
1515 # Not really a subdirectory, but here for completeness.
1516 host_subdir=.
1517 # No prefix.
1518 target_subdir=${target_noncanonical}
1521 # Set program_transform_name
1522 test "$program_prefix" != NONE &&
1523 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1524 # Use a double $ so make ignores it.
1525 test "$program_suffix" != NONE &&
1526 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1527 # Double any \ or $. echo might interpret backslashes.
1528 # By default was `s,x,x', remove it if useless.
1529 cat <<\_ACEOF >conftest.sed
1530 s/[\\$]/&&/g;s/;s,x,x,$//
1531 _ACEOF
1532 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1533 rm conftest.sed
1536 # Check for bogus environment variables.
1537 # Test if LIBRARY_PATH contains the notation for the current directory
1538 # since this would lead to problems installing/building glibc.
1539 # LIBRARY_PATH contains the current directory if one of the following
1540 # is true:
1541 # - one of the terminals (":" and ";") is the first or last sign
1542 # - two terminals occur directly after each other
1543 # - the path contains an element with a dot in it
1544 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1545 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1546 case ${LIBRARY_PATH} in
1547 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1548 library_path_setting="contains current directory"
1551 library_path_setting="ok"
1553 esac
1554 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1555 echo "${ECHO_T}$library_path_setting" >&6
1556 if test "$library_path_setting" != "ok"; then
1557 { { echo "$as_me:$LINENO: error:
1558 *** LIBRARY_PATH shouldn't contain the current directory when
1559 *** building gcc. Please change the environment variable
1560 *** and run configure again." >&5
1561 echo "$as_me: error:
1562 *** LIBRARY_PATH shouldn't contain the current directory when
1563 *** building gcc. Please change the environment variable
1564 *** and run configure again." >&2;}
1565 { (exit 1); exit 1; }; }
1568 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1569 # since this would lead to problems installing/building glibc.
1570 # GCC_EXEC_PREFIX contains the current directory if one of the following
1571 # is true:
1572 # - one of the terminals (":" and ";") is the first or last sign
1573 # - two terminals occur directly after each other
1574 # - the path contains an element with a dot in it
1575 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1576 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1577 case ${GCC_EXEC_PREFIX} in
1578 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1579 gcc_exec_prefix_setting="contains current directory"
1582 gcc_exec_prefix_setting="ok"
1584 esac
1585 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1586 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1587 if test "$gcc_exec_prefix_setting" != "ok"; then
1588 { { echo "$as_me:$LINENO: error:
1589 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1590 *** building gcc. Please change the environment variable
1591 *** and run configure again." >&5
1592 echo "$as_me: error:
1593 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1594 *** building gcc. Please change the environment variable
1595 *** and run configure again." >&2;}
1596 { (exit 1); exit 1; }; }
1599 # -----------
1600 # Directories
1601 # -----------
1603 # Specify the local prefix
1604 local_prefix=
1606 # Check whether --with-local-prefix or --without-local-prefix was given.
1607 if test "${with_local_prefix+set}" = set; then
1608 withval="$with_local_prefix"
1609 case "${withval}" in
1610 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1611 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1612 { (exit 1); exit 1; }; } ;;
1613 no) ;;
1614 *) local_prefix=$with_local_prefix ;;
1615 esac
1618 # Default local prefix if it is empty
1619 if test x$local_prefix = x; then
1620 local_prefix=/usr/local
1623 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1624 # passed in by the toplevel make and thus we'd get different behavior
1625 # depending on where we built the sources.
1626 gcc_gxx_include_dir=
1627 # Specify the g++ header file directory
1629 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1630 if test "${with_gxx_include_dir+set}" = set; then
1631 withval="$with_gxx_include_dir"
1632 case "${withval}" in
1633 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1634 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1635 { (exit 1); exit 1; }; } ;;
1636 no) ;;
1637 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1638 esac
1641 if test x${gcc_gxx_include_dir} = x; then
1642 if test x${enable_version_specific_runtime_libs} = xyes; then
1643 gcc_gxx_include_dir='${libsubdir}/include/c++'
1644 else
1645 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1646 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1651 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1652 if test "${with_cpp_install_dir+set}" = set; then
1653 withval="$with_cpp_install_dir"
1654 if test x$withval = xyes; then
1655 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1656 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1657 { (exit 1); exit 1; }; }
1658 elif test x$withval != xno; then
1659 cpp_install_dir=$withval
1663 # We would like to our source tree to be readonly. However when releases or
1664 # pre-releases are generated, the flex/bison generated files as well as the
1665 # various formats of manuals need to be included along with the rest of the
1666 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1667 # just that.
1669 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1670 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1671 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1672 if test "${enable_generated_files_in_srcdir+set}" = set; then
1673 enableval="$enable_generated_files_in_srcdir"
1674 generated_files_in_srcdir=$enableval
1675 else
1676 generated_files_in_srcdir=no
1679 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1680 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1682 if test "$generated_files_in_srcdir" = "yes"; then
1683 GENINSRC=''
1684 else
1685 GENINSRC='#'
1689 # -------------------
1690 # Find default linker
1691 # -------------------
1693 # With GNU ld
1695 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1696 if test "${with_gnu_ld+set}" = set; then
1697 withval="$with_gnu_ld"
1698 gnu_ld_flag="$with_gnu_ld"
1699 else
1700 gnu_ld_flag=no
1703 # With pre-defined ld
1705 # Check whether --with-ld or --without-ld was given.
1706 if test "${with_ld+set}" = set; then
1707 withval="$with_ld"
1708 DEFAULT_LINKER="$with_ld"
1710 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1711 if test ! -x "$DEFAULT_LINKER"; then
1712 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1713 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1714 { (exit 1); exit 1; }; }
1715 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1716 gnu_ld_flag=yes
1719 cat >>confdefs.h <<_ACEOF
1720 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1721 _ACEOF
1725 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1726 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1727 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1728 if test x"$gnu_ld_flag" = x"no"; then
1729 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1730 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1731 else
1732 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1733 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1735 else
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1740 # With demangler in GNU ld
1742 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1743 if test "${with_demangler_in_ld+set}" = set; then
1744 withval="$with_demangler_in_ld"
1745 demangler_in_ld="$with_demangler_in_ld"
1746 else
1747 demangler_in_ld=no
1750 # ----------------------
1751 # Find default assembler
1752 # ----------------------
1754 # With GNU as
1756 # Check whether --with-gnu-as or --without-gnu-as was given.
1757 if test "${with_gnu_as+set}" = set; then
1758 withval="$with_gnu_as"
1759 gas_flag="$with_gnu_as"
1760 else
1761 gas_flag=no
1765 # Check whether --with-as or --without-as was given.
1766 if test "${with_as+set}" = set; then
1767 withval="$with_as"
1768 DEFAULT_ASSEMBLER="$with_as"
1770 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1771 if test ! -x "$DEFAULT_ASSEMBLER"; then
1772 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1773 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1774 { (exit 1); exit 1; }; }
1775 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1776 gas_flag=yes
1779 cat >>confdefs.h <<_ACEOF
1780 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1781 _ACEOF
1785 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1786 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1787 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1788 if test x"$gas_flag" = x"no"; then
1789 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1790 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1791 else
1792 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1793 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1795 else
1796 echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1800 # ---------------
1801 # Find C compiler
1802 # ---------------
1804 # If a non-executable a.out is present (e.g. created by GNU as above even if
1805 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1806 # file, even when creating an executable, so an execution test fails.
1807 # Remove possible default executable files to avoid this.
1809 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1810 # Autoconf includes it.
1811 rm -f a.out a.exe b.out
1813 # Find the native compiler
1814 ac_ext=c
1815 ac_cpp='$CPP $CPPFLAGS'
1816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819 if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1826 else
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1829 else
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 break 2
1841 done
1842 done
1846 CC=$ac_cv_prog_CC
1847 if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1850 else
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1856 if test -z "$ac_cv_prog_CC"; then
1857 ac_ct_CC=$CC
1858 # Extract the first word of "gcc", so it can be a program name with args.
1859 set dummy gcc; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC="gcc"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 break 2
1879 done
1880 done
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1888 else
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1893 CC=$ac_ct_CC
1894 else
1895 CC="$ac_cv_prog_CC"
1898 if test -z "$CC"; then
1899 if test -n "$ac_tool_prefix"; then
1900 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1901 set dummy ${ac_tool_prefix}cc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 if test -n "$CC"; then
1908 ac_cv_prog_CC="$CC" # Let the user override the test.
1909 else
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_CC="${ac_tool_prefix}cc"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 break 2
1921 done
1922 done
1926 CC=$ac_cv_prog_CC
1927 if test -n "$CC"; then
1928 echo "$as_me:$LINENO: result: $CC" >&5
1929 echo "${ECHO_T}$CC" >&6
1930 else
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1936 if test -z "$ac_cv_prog_CC"; then
1937 ac_ct_CC=$CC
1938 # Extract the first word of "cc", so it can be a program name with args.
1939 set dummy cc; ac_word=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945 if test -n "$ac_ct_CC"; then
1946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1947 else
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1951 IFS=$as_save_IFS
1952 test -z "$as_dir" && as_dir=.
1953 for ac_exec_ext in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 ac_cv_prog_ac_ct_CC="cc"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 break 2
1959 done
1960 done
1964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1965 if test -n "$ac_ct_CC"; then
1966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967 echo "${ECHO_T}$ac_ct_CC" >&6
1968 else
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1973 CC=$ac_ct_CC
1974 else
1975 CC="$ac_cv_prog_CC"
1979 if test -z "$CC"; then
1980 # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987 if test -n "$CC"; then
1988 ac_cv_prog_CC="$CC" # Let the user override the test.
1989 else
1990 ac_prog_rejected=no
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1999 ac_prog_rejected=yes
2000 continue
2002 ac_cv_prog_CC="cc"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2006 done
2007 done
2009 if test $ac_prog_rejected = yes; then
2010 # We found a bogon in the path, so make sure we never use it.
2011 set dummy $ac_cv_prog_CC
2012 shift
2013 if test $# != 0; then
2014 # We chose a different compiler from the bogus one.
2015 # However, it has the same basename, so the bogon will be chosen
2016 # first if we set CC to just the basename; use the full file name.
2017 shift
2018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2023 CC=$ac_cv_prog_CC
2024 if test -n "$CC"; then
2025 echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6
2027 else
2028 echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2033 if test -z "$CC"; then
2034 if test -n "$ac_tool_prefix"; then
2035 for ac_prog in cl
2037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_CC+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044 if test -n "$CC"; then
2045 ac_cv_prog_CC="$CC" # Let the user override the test.
2046 else
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 break 2
2058 done
2059 done
2063 CC=$ac_cv_prog_CC
2064 if test -n "$CC"; then
2065 echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6
2067 else
2068 echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2072 test -n "$CC" && break
2073 done
2075 if test -z "$CC"; then
2076 ac_ct_CC=$CC
2077 for ac_prog in cl
2079 # Extract the first word of "$ac_prog", so it can be a program name with args.
2080 set dummy $ac_prog; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086 if test -n "$ac_ct_CC"; then
2087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_ac_ct_CC="$ac_prog"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2100 done
2101 done
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6
2109 else
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2114 test -n "$ac_ct_CC" && break
2115 done
2117 CC=$ac_ct_CC
2123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&2;}
2127 { (exit 1); exit 1; }; }
2129 # Provide some information about the compiler.
2130 echo "$as_me:$LINENO:" \
2131 "checking for C compiler version" >&5
2132 ac_compiler=`set X $ac_compile; echo $2`
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134 (eval $ac_compiler --version </dev/null >&5) 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139 (eval $ac_compiler -v </dev/null >&5) 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2144 (eval $ac_compiler -V </dev/null >&5) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2149 cat >conftest.$ac_ext <<_ACEOF
2150 /* confdefs.h. */
2151 _ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h. */
2157 main ()
2161 return 0;
2163 _ACEOF
2164 ac_clean_files_save=$ac_clean_files
2165 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166 # Try to create an executable without -o first, disregard a.out.
2167 # It will help us diagnose broken compilers, and finding out an intuition
2168 # of exeext.
2169 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2171 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173 (eval $ac_link_default) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; then
2177 # Find the output, starting from the most likely. This scheme is
2178 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179 # resort.
2181 # Be careful to initialize this variable, since it used to be cached.
2182 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2183 ac_cv_exeext=
2184 # b.out is created by i960 compilers.
2185 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2187 test -f "$ac_file" || continue
2188 case $ac_file in
2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2191 conftest.$ac_ext )
2192 # This is the source file.
2194 [ab].out )
2195 # We found the default executable, but exeext='' is most
2196 # certainly right.
2197 break;;
2198 *.* )
2199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 # FIXME: I believe we export ac_cv_exeext for Libtool,
2201 # but it would be cool to find out if it's true. Does anybody
2202 # maintain Libtool? --akim.
2203 export ac_cv_exeext
2204 break;;
2206 break;;
2207 esac
2208 done
2209 else
2210 echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2213 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&2;}
2217 { (exit 77); exit 77; }; }
2220 ac_exeext=$ac_cv_exeext
2221 echo "$as_me:$LINENO: result: $ac_file" >&5
2222 echo "${ECHO_T}$ac_file" >&6
2224 # Check the compiler produces executables we can run. If not, either
2225 # the compiler is broken, or we cross compile.
2226 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2228 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229 # If not cross compiling, check that we can run a simple program.
2230 if test "$cross_compiling" != yes; then
2231 if { ac_try='./$ac_file'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 (eval $ac_try) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2237 cross_compiling=no
2238 else
2239 if test "$cross_compiling" = maybe; then
2240 cross_compiling=yes
2241 else
2242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&2;}
2248 { (exit 1); exit 1; }; }
2252 echo "$as_me:$LINENO: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6
2255 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256 ac_clean_files=$ac_clean_files_save
2257 # Check the compiler produces executables we can run. If not, either
2258 # the compiler is broken, or we cross compile.
2259 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262 echo "${ECHO_T}$cross_compiling" >&6
2264 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267 (eval $ac_link) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2273 # work properly (i.e., refer to `conftest.exe'), while it won't with
2274 # `rm'.
2275 for ac_file in conftest.exe conftest conftest.*; do
2276 test -f "$ac_file" || continue
2277 case $ac_file in
2278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280 export ac_cv_exeext
2281 break;;
2282 * ) break;;
2283 esac
2284 done
2285 else
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2293 rm -f conftest$ac_cv_exeext
2294 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295 echo "${ECHO_T}$ac_cv_exeext" >&6
2297 rm -f conftest.$ac_ext
2298 EXEEXT=$ac_cv_exeext
2299 ac_exeext=$EXEEXT
2300 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302 if test "${ac_cv_objext+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305 cat >conftest.$ac_ext <<_ACEOF
2306 /* confdefs.h. */
2307 _ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h. */
2313 main ()
2317 return 0;
2319 _ACEOF
2320 rm -f conftest.o conftest.obj
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
2326 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2327 case $ac_file in
2328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330 break;;
2331 esac
2332 done
2333 else
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6
2348 OBJEXT=$ac_cv_objext
2349 ac_objext=$OBJEXT
2350 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355 cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2363 main ()
2365 #ifndef __GNUC__
2366 choke me
2367 #endif
2370 return 0;
2372 _ACEOF
2373 rm -f conftest.$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>conftest.er1
2376 ac_status=$?
2377 grep -v '^ *+' conftest.er1 >conftest.err
2378 rm -f conftest.er1
2379 cat conftest.err >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try='test -z "$ac_c_werror_flag"
2383 || test ! -s conftest.err'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 (eval $ac_try) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; } &&
2389 { ac_try='test -s conftest.$ac_objext'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2395 ac_compiler_gnu=yes
2396 else
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2400 ac_compiler_gnu=no
2402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2406 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408 GCC=`test $ac_compiler_gnu = yes && echo yes`
2409 ac_test_CFLAGS=${CFLAGS+set}
2410 ac_save_CFLAGS=$CFLAGS
2411 CFLAGS="-g"
2412 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414 if test "${ac_cv_prog_cc_g+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417 cat >conftest.$ac_ext <<_ACEOF
2418 /* confdefs.h. */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2425 main ()
2429 return 0;
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2435 ac_status=$?
2436 grep -v '^ *+' conftest.er1 >conftest.err
2437 rm -f conftest.er1
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2454 ac_cv_prog_cc_g=yes
2455 else
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2459 ac_cv_prog_cc_g=no
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465 if test "$ac_test_CFLAGS" = set; then
2466 CFLAGS=$ac_save_CFLAGS
2467 elif test $ac_cv_prog_cc_g = yes; then
2468 if test "$GCC" = yes; then
2469 CFLAGS="-g -O2"
2470 else
2471 CFLAGS="-g"
2473 else
2474 if test "$GCC" = yes; then
2475 CFLAGS="-O2"
2476 else
2477 CFLAGS=
2480 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 ac_cv_prog_cc_stdc=no
2486 ac_save_CC=$CC
2487 cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h. */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2493 #include <stdarg.h>
2494 #include <stdio.h>
2495 #include <sys/types.h>
2496 #include <sys/stat.h>
2497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2498 struct buf { int x; };
2499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500 static char *e (p, i)
2501 char **p;
2502 int i;
2504 return p[i];
2506 static char *f (char * (*g) (char **, int), char **p, ...)
2508 char *s;
2509 va_list v;
2510 va_start (v,p);
2511 s = g (p, va_arg (v,int));
2512 va_end (v);
2513 return s;
2516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2517 function prototypes and stuff, but not '\xHH' hex character constants.
2518 These don't provoke an error unfortunately, instead are silently treated
2519 as 'x'. The following induces an error, until -std1 is added to get
2520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2521 array size at least. It's necessary to write '\x00'==0 to get something
2522 that's true only with -std1. */
2523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2525 int test (int i, double x);
2526 struct s1 {int (*f) (int a);};
2527 struct s2 {int (*f) (double a);};
2528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529 int argc;
2530 char **argv;
2532 main ()
2534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2536 return 0;
2538 _ACEOF
2539 # Don't try gcc -ansi; that turns off useful extensions and
2540 # breaks some systems' header files.
2541 # AIX -qlanglvl=ansi
2542 # Ultrix and OSF/1 -std1
2543 # HP-UX 10.20 and later -Ae
2544 # HP-UX older versions -Aa -D_HPUX_SOURCE
2545 # SVR4 -Xc -D__EXTENSIONS__
2546 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2548 CC="$ac_save_CC $ac_arg"
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2552 ac_status=$?
2553 grep -v '^ *+' conftest.er1 >conftest.err
2554 rm -f conftest.er1
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 ac_cv_prog_cc_stdc=$ac_arg
2572 break
2573 else
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2578 rm -f conftest.err conftest.$ac_objext
2579 done
2580 rm -f conftest.$ac_ext conftest.$ac_objext
2581 CC=$ac_save_CC
2585 case "x$ac_cv_prog_cc_stdc" in
2586 x|xno)
2587 echo "$as_me:$LINENO: result: none needed" >&5
2588 echo "${ECHO_T}none needed" >&6 ;;
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592 CC="$CC $ac_cv_prog_cc_stdc" ;;
2593 esac
2595 # Some people use a C++ compiler to compile C. Since we use `exit',
2596 # in C++ we need to declare it. In case someone uses the same compiler
2597 # for both compiling C and C++ we need to have the C++ compiler decide
2598 # the declaration of exit, since it's the most demanding environment.
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #ifndef __cplusplus
2601 choke me
2602 #endif
2603 _ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>conftest.er1
2607 ac_status=$?
2608 grep -v '^ *+' conftest.er1 >conftest.err
2609 rm -f conftest.er1
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -z "$ac_c_werror_flag"
2614 || test ! -s conftest.err'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 for ac_declaration in \
2627 '' \
2628 'extern "C" void std::exit (int) throw (); using std::exit;' \
2629 'extern "C" void std::exit (int); using std::exit;' \
2630 'extern "C" void exit (int) throw ();' \
2631 'extern "C" void exit (int);' \
2632 'void exit (int);'
2634 cat >conftest.$ac_ext <<_ACEOF
2635 /* confdefs.h. */
2636 _ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2640 $ac_declaration
2641 #include <stdlib.h>
2643 main ()
2645 exit (42);
2647 return 0;
2649 _ACEOF
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652 (eval $ac_compile) 2>conftest.er1
2653 ac_status=$?
2654 grep -v '^ *+' conftest.er1 >conftest.err
2655 rm -f conftest.er1
2656 cat conftest.err >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -z "$ac_c_werror_flag"
2660 || test ! -s conftest.err'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2677 continue
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680 cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h. */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2686 $ac_declaration
2688 main ()
2690 exit (42);
2692 return 0;
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2698 ac_status=$?
2699 grep -v '^ *+' conftest.er1 >conftest.err
2700 rm -f conftest.er1
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -z "$ac_c_werror_flag"
2705 || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2717 break
2718 else
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724 done
2725 rm -f conftest*
2726 if test -n "$ac_declaration"; then
2727 echo '#ifdef __cplusplus' >>confdefs.h
2728 echo $ac_declaration >>confdefs.h
2729 echo '#endif' >>confdefs.h
2732 else
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ac_ext=c
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744 if test "x$CC" != xcc; then
2745 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2746 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2747 else
2748 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2749 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2751 set dummy $CC; ac_cc=`echo $2 |
2752 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2753 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756 cat >conftest.$ac_ext <<_ACEOF
2757 /* confdefs.h. */
2758 _ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2764 main ()
2768 return 0;
2770 _ACEOF
2771 # Make sure it works both with $CC and with simple cc.
2772 # We do the test twice because some compilers refuse to overwrite an
2773 # existing .o file with -o, though they will create one.
2774 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2775 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 (eval $ac_try) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); };
2785 then
2786 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2787 if test "x$CC" != xcc; then
2788 # Test first that cc exists at all.
2789 if { ac_try='cc -c conftest.$ac_ext >&5'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2796 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); };
2806 then
2807 # cc works too.
2809 else
2810 # cc exists but doesn't like -o.
2811 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2815 else
2816 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2818 rm -f conftest*
2821 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2822 echo "$as_me:$LINENO: result: yes" >&5
2823 echo "${ECHO_T}yes" >&6
2824 else
2825 echo "$as_me:$LINENO: result: no" >&5
2826 echo "${ECHO_T}no" >&6
2828 cat >>confdefs.h <<\_ACEOF
2829 #define NO_MINUS_C_MINUS_O 1
2830 _ACEOF
2834 # autoconf is lame and doesn't give us any substitution variable for this.
2835 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2836 NO_MINUS_C_MINUS_O=yes
2837 else
2838 OUTPUT_OPTION='-o $@'
2843 # -------------------------
2844 # Check C compiler features
2845 # -------------------------
2847 ac_ext=c
2848 ac_cpp='$CPP $CPPFLAGS'
2849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2852 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2853 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2854 # On Suns, sometimes $CPP names a directory.
2855 if test -n "$CPP" && test -d "$CPP"; then
2856 CPP=
2858 if test -z "$CPP"; then
2859 if test "${ac_cv_prog_CPP+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 # Double quotes because CPP needs to be expanded
2863 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2865 ac_preproc_ok=false
2866 for ac_c_preproc_warn_flag in '' yes
2868 # Use a header file that comes with gcc, so configuring glibc
2869 # with a fresh cross-compiler works.
2870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2871 # <limits.h> exists even on freestanding compilers.
2872 # On the NeXT, cc -E runs the code through the compiler's parser,
2873 # not just through cpp. "Syntax error" is here to catch this case.
2874 cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h. */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2880 #ifdef __STDC__
2881 # include <limits.h>
2882 #else
2883 # include <assert.h>
2884 #endif
2885 Syntax error
2886 _ACEOF
2887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2889 ac_status=$?
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } >/dev/null; then
2895 if test -s conftest.err; then
2896 ac_cpp_err=$ac_c_preproc_warn_flag
2897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2898 else
2899 ac_cpp_err=
2901 else
2902 ac_cpp_err=yes
2904 if test -z "$ac_cpp_err"; then
2906 else
2907 echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.$ac_ext >&5
2910 # Broken: fails on valid input.
2911 continue
2913 rm -f conftest.err conftest.$ac_ext
2915 # OK, works on sane cases. Now check whether non-existent headers
2916 # can be detected and how.
2917 cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h. */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923 #include <ac_nonexistent.h>
2924 _ACEOF
2925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2927 ac_status=$?
2928 grep -v '^ *+' conftest.er1 >conftest.err
2929 rm -f conftest.er1
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } >/dev/null; then
2933 if test -s conftest.err; then
2934 ac_cpp_err=$ac_c_preproc_warn_flag
2935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2936 else
2937 ac_cpp_err=
2939 else
2940 ac_cpp_err=yes
2942 if test -z "$ac_cpp_err"; then
2943 # Broken: success on invalid input.
2944 continue
2945 else
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2949 # Passes both tests.
2950 ac_preproc_ok=:
2951 break
2953 rm -f conftest.err conftest.$ac_ext
2955 done
2956 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2957 rm -f conftest.err conftest.$ac_ext
2958 if $ac_preproc_ok; then
2959 break
2962 done
2963 ac_cv_prog_CPP=$CPP
2966 CPP=$ac_cv_prog_CPP
2967 else
2968 ac_cv_prog_CPP=$CPP
2970 echo "$as_me:$LINENO: result: $CPP" >&5
2971 echo "${ECHO_T}$CPP" >&6
2972 ac_preproc_ok=false
2973 for ac_c_preproc_warn_flag in '' yes
2975 # Use a header file that comes with gcc, so configuring glibc
2976 # with a fresh cross-compiler works.
2977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2978 # <limits.h> exists even on freestanding compilers.
2979 # On the NeXT, cc -E runs the code through the compiler's parser,
2980 # not just through cpp. "Syntax error" is here to catch this case.
2981 cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h. */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2987 #ifdef __STDC__
2988 # include <limits.h>
2989 #else
2990 # include <assert.h>
2991 #endif
2992 Syntax error
2993 _ACEOF
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996 ac_status=$?
2997 grep -v '^ *+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null; then
3002 if test -s conftest.err; then
3003 ac_cpp_err=$ac_c_preproc_warn_flag
3004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3005 else
3006 ac_cpp_err=
3008 else
3009 ac_cpp_err=yes
3011 if test -z "$ac_cpp_err"; then
3013 else
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 # Broken: fails on valid input.
3018 continue
3020 rm -f conftest.err conftest.$ac_ext
3022 # OK, works on sane cases. Now check whether non-existent headers
3023 # can be detected and how.
3024 cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h. */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030 #include <ac_nonexistent.h>
3031 _ACEOF
3032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3034 ac_status=$?
3035 grep -v '^ *+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } >/dev/null; then
3040 if test -s conftest.err; then
3041 ac_cpp_err=$ac_c_preproc_warn_flag
3042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3043 else
3044 ac_cpp_err=
3046 else
3047 ac_cpp_err=yes
3049 if test -z "$ac_cpp_err"; then
3050 # Broken: success on invalid input.
3051 continue
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3056 # Passes both tests.
3057 ac_preproc_ok=:
3058 break
3060 rm -f conftest.err conftest.$ac_ext
3062 done
3063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3064 rm -f conftest.err conftest.$ac_ext
3065 if $ac_preproc_ok; then
3067 else
3068 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3069 See \`config.log' for more details." >&5
3070 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3071 See \`config.log' for more details." >&2;}
3072 { (exit 1); exit 1; }; }
3075 ac_ext=c
3076 ac_cpp='$CPP $CPPFLAGS'
3077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3082 echo "$as_me:$LINENO: checking for inline" >&5
3083 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3084 if test "${ac_cv_c_inline+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087 ac_cv_c_inline=no
3088 for ac_kw in inline __inline__ __inline; do
3089 cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h. */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3095 #ifndef __cplusplus
3096 typedef int foo_t;
3097 static $ac_kw foo_t static_foo () {return 0; }
3098 $ac_kw foo_t foo () {return 0; }
3099 #endif
3101 _ACEOF
3102 rm -f conftest.$ac_objext
3103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3104 (eval $ac_compile) 2>conftest.er1
3105 ac_status=$?
3106 grep -v '^ *+' conftest.er1 >conftest.err
3107 rm -f conftest.er1
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try='test -z "$ac_c_werror_flag"
3112 || test ! -s conftest.err'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 (eval $ac_try) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; } &&
3118 { ac_try='test -s conftest.$ac_objext'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 (eval $ac_try) 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3124 ac_cv_c_inline=$ac_kw; break
3125 else
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3131 done
3134 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3135 echo "${ECHO_T}$ac_cv_c_inline" >&6
3138 case $ac_cv_c_inline in
3139 inline | yes) ;;
3141 case $ac_cv_c_inline in
3142 no) ac_val=;;
3143 *) ac_val=$ac_cv_c_inline;;
3144 esac
3145 cat >>confdefs.h <<_ACEOF
3146 #ifndef __cplusplus
3147 #define inline $ac_val
3148 #endif
3149 _ACEOF
3151 esac
3154 echo "$as_me:$LINENO: checking for long long int" >&5
3155 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3156 if test "${ac_cv_c_long_long+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159 cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h. */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3167 main ()
3169 long long int i;
3171 return 0;
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3176 (eval $ac_compile) 2>conftest.er1
3177 ac_status=$?
3178 grep -v '^ *+' conftest.er1 >conftest.err
3179 rm -f conftest.er1
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } &&
3183 { ac_try='test -z "$ac_c_werror_flag"
3184 || test ! -s conftest.err'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 (eval $ac_try) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; } &&
3190 { ac_try='test -s conftest.$ac_objext'
3191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 (eval $ac_try) 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3196 ac_cv_c_long_long=yes
3197 else
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3201 ac_cv_c_long_long=no
3203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3205 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3206 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3207 if test $ac_cv_c_long_long = yes; then
3209 cat >>confdefs.h <<\_ACEOF
3210 #define HAVE_LONG_LONG 1
3211 _ACEOF
3214 echo "$as_me:$LINENO: checking for __int64" >&5
3215 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3216 if test "${ac_cv_c___int64+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219 cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h. */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3227 main ()
3229 __int64 i;
3231 return 0;
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236 (eval $ac_compile) 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try='test -z "$ac_c_werror_flag"
3244 || test ! -s conftest.err'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 (eval $ac_try) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 (eval $ac_try) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 ac_cv_c___int64=yes
3257 else
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 ac_cv_c___int64=no
3263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3265 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3266 echo "${ECHO_T}$ac_cv_c___int64" >&6
3267 if test $ac_cv_c___int64 = yes; then
3269 cat >>confdefs.h <<\_ACEOF
3270 #define HAVE___INT64 1
3271 _ACEOF
3276 # sizeof(char) is 1 by definition.
3277 echo "$as_me:$LINENO: checking size of void *" >&5
3278 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3279 if test "${ac_cv_sizeof_void_p+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3283 cat >conftest.$ac_ext <<_ACEOF
3284 /* confdefs.h. */
3285 _ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289 #include "confdefs.h"
3290 #include <sys/types.h>
3294 main ()
3296 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3298 return 0;
3300 _ACEOF
3301 rm -f conftest.$ac_objext
3302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3303 (eval $ac_compile) 2>conftest.er1
3304 ac_status=$?
3305 grep -v '^ *+' conftest.er1 >conftest.err
3306 rm -f conftest.er1
3307 cat conftest.err >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } &&
3310 { ac_try='test -z "$ac_c_werror_flag"
3311 || test ! -s conftest.err'
3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 (eval $ac_try) 2>&5
3314 ac_status=$?
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; } &&
3317 { ac_try='test -s conftest.$ac_objext'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 (eval $ac_try) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; }; then
3323 ac_cv_sizeof_void_p=$ac_size
3324 else
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3330 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3331 done
3335 if test x$ac_cv_sizeof_void_p = x ; then
3336 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3337 echo "$as_me: error: cannot determine a size for void *" >&2;}
3338 { (exit 1); exit 1; }; }
3340 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3341 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3343 cat >>confdefs.h <<_ACEOF
3344 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3345 _ACEOF
3348 echo "$as_me:$LINENO: checking size of short" >&5
3349 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3350 if test "${ac_cv_sizeof_short+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3354 cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h. */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 #include "confdefs.h"
3361 #include <sys/types.h>
3365 main ()
3367 switch (0) case 0: case (sizeof (short) == $ac_size):;
3369 return 0;
3371 _ACEOF
3372 rm -f conftest.$ac_objext
3373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3374 (eval $ac_compile) 2>conftest.er1
3375 ac_status=$?
3376 grep -v '^ *+' conftest.er1 >conftest.err
3377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } &&
3381 { ac_try='test -z "$ac_c_werror_flag"
3382 || test ! -s conftest.err'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 (eval $ac_try) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; } &&
3388 { ac_try='test -s conftest.$ac_objext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_sizeof_short=$ac_size
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3401 if test x$ac_cv_sizeof_short != x ; then break; fi
3402 done
3406 if test x$ac_cv_sizeof_short = x ; then
3407 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3408 echo "$as_me: error: cannot determine a size for short" >&2;}
3409 { (exit 1); exit 1; }; }
3411 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3412 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3414 cat >>confdefs.h <<_ACEOF
3415 #define SIZEOF_SHORT $ac_cv_sizeof_short
3416 _ACEOF
3419 echo "$as_me:$LINENO: checking size of int" >&5
3420 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3421 if test "${ac_cv_sizeof_int+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3425 cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h. */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3431 #include "confdefs.h"
3432 #include <sys/types.h>
3436 main ()
3438 switch (0) case 0: case (sizeof (int) == $ac_size):;
3440 return 0;
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_c_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 ac_cv_sizeof_int=$ac_size
3466 else
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3472 if test x$ac_cv_sizeof_int != x ; then break; fi
3473 done
3477 if test x$ac_cv_sizeof_int = x ; then
3478 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3479 echo "$as_me: error: cannot determine a size for int" >&2;}
3480 { (exit 1); exit 1; }; }
3482 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3483 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3485 cat >>confdefs.h <<_ACEOF
3486 #define SIZEOF_INT $ac_cv_sizeof_int
3487 _ACEOF
3490 echo "$as_me:$LINENO: checking size of long" >&5
3491 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3492 if test "${ac_cv_sizeof_long+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3496 cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h. */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 #include "confdefs.h"
3503 #include <sys/types.h>
3507 main ()
3509 switch (0) case 0: case (sizeof (long) == $ac_size):;
3511 return 0;
3513 _ACEOF
3514 rm -f conftest.$ac_objext
3515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3516 (eval $ac_compile) 2>conftest.er1
3517 ac_status=$?
3518 grep -v '^ *+' conftest.er1 >conftest.err
3519 rm -f conftest.er1
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } &&
3523 { ac_try='test -z "$ac_c_werror_flag"
3524 || test ! -s conftest.err'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; } &&
3530 { ac_try='test -s conftest.$ac_objext'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; }; then
3536 ac_cv_sizeof_long=$ac_size
3537 else
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3543 if test x$ac_cv_sizeof_long != x ; then break; fi
3544 done
3548 if test x$ac_cv_sizeof_long = x ; then
3549 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3550 echo "$as_me: error: cannot determine a size for long" >&2;}
3551 { (exit 1); exit 1; }; }
3553 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3554 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3556 cat >>confdefs.h <<_ACEOF
3557 #define SIZEOF_LONG $ac_cv_sizeof_long
3558 _ACEOF
3561 if test $ac_cv_c_long_long = yes; then
3562 echo "$as_me:$LINENO: checking size of long long" >&5
3563 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3564 if test "${ac_cv_sizeof_long_long+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 else
3567 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 #include "confdefs.h"
3575 #include <sys/types.h>
3579 main ()
3581 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3583 return 0;
3585 _ACEOF
3586 rm -f conftest.$ac_objext
3587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>conftest.er1
3589 ac_status=$?
3590 grep -v '^ *+' conftest.er1 >conftest.err
3591 rm -f conftest.er1
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } &&
3595 { ac_try='test -z "$ac_c_werror_flag"
3596 || test ! -s conftest.err'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 (eval $ac_try) 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; } &&
3602 { ac_try='test -s conftest.$ac_objext'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 (eval $ac_try) 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; }; then
3608 ac_cv_sizeof_long_long=$ac_size
3609 else
3610 echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3615 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3616 done
3620 if test x$ac_cv_sizeof_long_long = x ; then
3621 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3622 echo "$as_me: error: cannot determine a size for long long" >&2;}
3623 { (exit 1); exit 1; }; }
3625 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3626 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3628 cat >>confdefs.h <<_ACEOF
3629 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3630 _ACEOF
3634 if test $ac_cv_c___int64 = yes; then
3635 echo "$as_me:$LINENO: checking size of __int64" >&5
3636 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3637 if test "${ac_cv_sizeof___int64+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3641 cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h. */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3647 #include "confdefs.h"
3648 #include <sys/types.h>
3652 main ()
3654 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3656 return 0;
3658 _ACEOF
3659 rm -f conftest.$ac_objext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3661 (eval $ac_compile) 2>conftest.er1
3662 ac_status=$?
3663 grep -v '^ *+' conftest.er1 >conftest.err
3664 rm -f conftest.er1
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try='test -z "$ac_c_werror_flag"
3669 || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest.$ac_objext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_cv_sizeof___int64=$ac_size
3682 else
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3688 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3689 done
3693 if test x$ac_cv_sizeof___int64 = x ; then
3694 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3695 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3696 { (exit 1); exit 1; }; }
3698 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3699 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3701 cat >>confdefs.h <<_ACEOF
3702 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3703 _ACEOF
3708 # ---------------------
3709 # Warnings and checking
3710 # ---------------------
3712 # Check $CC warning features (if it's GCC).
3713 # We want to use -pedantic, but we don't want warnings about
3714 # * 'long long'
3715 # * variadic macros
3716 # So, we only use -pedantic if we can disable those warnings.
3718 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3719 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3720 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 save_CFLAGS="$CFLAGS"
3724 CFLAGS="-Wno-long-long"
3725 cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h. */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3732 _ACEOF
3733 rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>conftest.er1
3736 ac_status=$?
3737 grep -v '^ *+' conftest.er1 >conftest.err
3738 rm -f conftest.er1
3739 cat conftest.err >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -z "$ac_c_werror_flag"
3743 || test ! -s conftest.err'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 (eval $ac_try) 2>&5
3746 ac_status=$?
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; } &&
3749 { ac_try='test -s conftest.$ac_objext'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 (eval $ac_try) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3755 ac_cv_prog_cc_w_no_long_long=yes
3756 else
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3760 ac_cv_prog_cc_w_no_long_long=no
3762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3763 CFLAGS="$save_CFLAGS"
3766 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3767 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3769 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3770 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3771 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 save_CFLAGS="$CFLAGS"
3775 CFLAGS="-Wno-variadic-macros"
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3783 _ACEOF
3784 rm -f conftest.$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -z "$ac_c_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 ac_cv_prog_cc_w_no_variadic_macros=yes
3807 else
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 ac_cv_prog_cc_w_no_variadic_macros=no
3813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814 CFLAGS="$save_CFLAGS"
3817 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3818 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3820 strict1_warn=
3821 if test $ac_cv_prog_cc_w_no_long_long = yes \
3822 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3823 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3827 # Add -Wold-style-definition if it's accepted
3828 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3829 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3830 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833 save_CFLAGS="$CFLAGS"
3834 CFLAGS="-Wold-style-definition"
3835 cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h. */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3842 _ACEOF
3843 rm -f conftest.$ac_objext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag"
3853 || test ! -s conftest.err'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 (eval $ac_try) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try='test -s conftest.$ac_objext'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 (eval $ac_try) 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 ac_cv_prog_cc_w_old_style_definition=yes
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 ac_cv_prog_cc_w_old_style_definition=no
3872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3873 CFLAGS="$save_CFLAGS"
3876 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3877 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3878 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3879 strict1_warn="${strict1_warn} -Wold-style-definition"
3882 # Enable -Werror, period.
3883 # Check whether --enable-werror_always or --disable-werror_always was given.
3884 if test "${enable_werror_always+set}" = set; then
3885 enableval="$enable_werror_always"
3887 else
3888 enable_werror_always=no
3890 if test x${enable_werror_always} = xyes ; then
3891 strict1_warn="${strict1_warn} -Werror"
3892 WERROR=-Werror
3895 # If the native compiler is GCC, we can enable warnings even in stage1.
3896 # That's useful for people building cross-compilers, or just running a
3897 # quick `make'.
3898 warn_cflags=
3899 if test "x$GCC" = "xyes"; then
3900 warn_cflags='$(GCC_WARN_CFLAGS)'
3904 # Enable -Werror in bootstrap stage2 and later.
3905 # Change the default to "no" on release branches.
3906 # Check whether --enable-werror or --disable-werror was given.
3907 if test "${enable_werror+set}" = set; then
3908 enableval="$enable_werror"
3910 else
3911 enable_werror=yes
3913 if test x$enable_werror = xyes ; then
3914 WERROR=-Werror
3918 # Enable expensive internal checks
3919 # Check whether --enable-checking or --disable-checking was given.
3920 if test "${enable_checking+set}" = set; then
3921 enableval="$enable_checking"
3922 ac_checking=
3923 ac_tree_checking=
3924 ac_rtl_checking=
3925 ac_rtlflag_checking=
3926 ac_gc_checking=
3927 ac_gc_always_collect=
3928 ac_fold_checking=
3929 case "${enableval}" in
3930 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3931 ac_rtlflag_checking=1 ;;
3932 no) ;;
3933 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3934 set fnord $enableval; shift
3935 IFS="$ac_save_IFS"
3936 for check
3938 case $check in
3939 fold) ac_fold_checking=1 ;;
3940 gc) ac_gc_checking=1 ;;
3941 gcac) ac_gc_always_collect=1 ;;
3942 misc) ac_checking=1 ;;
3943 rtlflag) ac_rtlflag_checking=1 ;;
3944 rtl) ac_rtl_checking=1 ;;
3945 tree) ac_tree_checking=1 ;;
3946 valgrind) ac_checking_valgrind=1 ;;
3947 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3948 echo "$as_me: error: unknown check category $check" >&2;}
3949 { (exit 1); exit 1; }; } ;;
3950 esac
3951 done
3953 esac
3955 else
3956 # Enable some checks by default for development versions of GCC
3957 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3959 nocommon_flag=""
3960 if test x$ac_checking != x ; then
3962 cat >>confdefs.h <<\_ACEOF
3963 #define ENABLE_CHECKING 1
3964 _ACEOF
3966 nocommon_flag=-fno-common
3969 if test x$ac_tree_checking != x ; then
3971 cat >>confdefs.h <<\_ACEOF
3972 #define ENABLE_TREE_CHECKING 1
3973 _ACEOF
3975 TREEBROWSER=tree-browser.o
3978 if test x$ac_rtl_checking != x ; then
3980 cat >>confdefs.h <<\_ACEOF
3981 #define ENABLE_RTL_CHECKING 1
3982 _ACEOF
3985 if test x$ac_rtlflag_checking != x ; then
3987 cat >>confdefs.h <<\_ACEOF
3988 #define ENABLE_RTL_FLAG_CHECKING 1
3989 _ACEOF
3992 if test x$ac_gc_checking != x ; then
3994 cat >>confdefs.h <<\_ACEOF
3995 #define ENABLE_GC_CHECKING 1
3996 _ACEOF
3999 if test x$ac_gc_always_collect != x ; then
4001 cat >>confdefs.h <<\_ACEOF
4002 #define ENABLE_GC_ALWAYS_COLLECT 1
4003 _ACEOF
4006 if test x$ac_fold_checking != x ; then
4008 cat >>confdefs.h <<\_ACEOF
4009 #define ENABLE_FOLD_CHECKING 1
4010 _ACEOF
4013 valgrind_path_defines=
4014 valgrind_command=
4017 echo "$as_me:$LINENO: checking for egrep" >&5
4018 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4019 if test "${ac_cv_prog_egrep+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4023 then ac_cv_prog_egrep='grep -E'
4024 else ac_cv_prog_egrep='egrep'
4027 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4028 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4029 EGREP=$ac_cv_prog_egrep
4032 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4033 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4034 if test "${ac_cv_header_stdc+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037 cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h. */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 #include <stdlib.h>
4044 #include <stdarg.h>
4045 #include <string.h>
4046 #include <float.h>
4049 main ()
4053 return 0;
4055 _ACEOF
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_cv_header_stdc=yes
4079 else
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4083 ac_cv_header_stdc=no
4085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4087 if test $ac_cv_header_stdc = yes; then
4088 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4089 cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h. */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 #include <string.h>
4097 _ACEOF
4098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4099 $EGREP "memchr" >/dev/null 2>&1; then
4101 else
4102 ac_cv_header_stdc=no
4104 rm -f conftest*
4108 if test $ac_cv_header_stdc = yes; then
4109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4110 cat >conftest.$ac_ext <<_ACEOF
4111 /* confdefs.h. */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 #include <stdlib.h>
4118 _ACEOF
4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120 $EGREP "free" >/dev/null 2>&1; then
4122 else
4123 ac_cv_header_stdc=no
4125 rm -f conftest*
4129 if test $ac_cv_header_stdc = yes; then
4130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4131 if test "$cross_compiling" = yes; then
4133 else
4134 cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h. */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #include <ctype.h>
4141 #if ((' ' & 0x0FF) == 0x020)
4142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4144 #else
4145 # define ISLOWER(c) \
4146 (('a' <= (c) && (c) <= 'i') \
4147 || ('j' <= (c) && (c) <= 'r') \
4148 || ('s' <= (c) && (c) <= 'z'))
4149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4150 #endif
4152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4154 main ()
4156 int i;
4157 for (i = 0; i < 256; i++)
4158 if (XOR (islower (i), ISLOWER (i))
4159 || toupper (i) != TOUPPER (i))
4160 exit(2);
4161 exit (0);
4163 _ACEOF
4164 rm -f conftest$ac_exeext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4166 (eval $ac_link) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4176 else
4177 echo "$as_me: program exited with status $ac_status" >&5
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4181 ( exit $ac_status )
4182 ac_cv_header_stdc=no
4184 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4188 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4189 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4190 if test $ac_cv_header_stdc = yes; then
4192 cat >>confdefs.h <<\_ACEOF
4193 #define STDC_HEADERS 1
4194 _ACEOF
4198 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4208 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4209 inttypes.h stdint.h unistd.h
4211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4212 echo "$as_me:$LINENO: checking for $ac_header" >&5
4213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 $ac_includes_default
4225 #include <$ac_header>
4226 _ACEOF
4227 rm -f conftest.$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229 (eval $ac_compile) 2>conftest.er1
4230 ac_status=$?
4231 grep -v '^ *+' conftest.er1 >conftest.err
4232 rm -f conftest.er1
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try='test -z "$ac_c_werror_flag"
4237 || test ! -s conftest.err'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 (eval $ac_try) 2>&5
4240 ac_status=$?
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; } &&
4243 { ac_try='test -s conftest.$ac_objext'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 (eval $ac_try) 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4249 eval "$as_ac_Header=yes"
4250 else
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 eval "$as_ac_Header=no"
4256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4261 cat >>confdefs.h <<_ACEOF
4262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4263 _ACEOF
4267 done
4270 if test "${ac_cv_header_valgrind_h+set}" = set; then
4271 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4272 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4273 if test "${ac_cv_header_valgrind_h+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4277 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4278 else
4279 # Is the header compilable?
4280 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4281 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4282 cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h. */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 $ac_includes_default
4289 #include <valgrind.h>
4290 _ACEOF
4291 rm -f conftest.$ac_objext
4292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4293 (eval $ac_compile) 2>conftest.er1
4294 ac_status=$?
4295 grep -v '^ *+' conftest.er1 >conftest.err
4296 rm -f conftest.er1
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } &&
4300 { ac_try='test -z "$ac_c_werror_flag"
4301 || test ! -s conftest.err'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 (eval $ac_try) 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; } &&
4307 { ac_try='test -s conftest.$ac_objext'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 (eval $ac_try) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; }; then
4313 ac_header_compiler=yes
4314 else
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4318 ac_header_compiler=no
4320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4322 echo "${ECHO_T}$ac_header_compiler" >&6
4324 # Is the header present?
4325 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4326 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h. */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 #include <valgrind.h>
4334 _ACEOF
4335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4337 ac_status=$?
4338 grep -v '^ *+' conftest.er1 >conftest.err
4339 rm -f conftest.er1
4340 cat conftest.err >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } >/dev/null; then
4343 if test -s conftest.err; then
4344 ac_cpp_err=$ac_c_preproc_warn_flag
4345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4346 else
4347 ac_cpp_err=
4349 else
4350 ac_cpp_err=yes
4352 if test -z "$ac_cpp_err"; then
4353 ac_header_preproc=yes
4354 else
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4358 ac_header_preproc=no
4360 rm -f conftest.err conftest.$ac_ext
4361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4362 echo "${ECHO_T}$ac_header_preproc" >&6
4364 # So? What about this header?
4365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4366 yes:no: )
4367 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4368 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4369 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4370 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4371 ac_header_preproc=yes
4373 no:yes:* )
4374 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4375 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4376 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4377 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4378 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4379 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4380 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4381 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4382 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4383 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4384 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4385 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4387 cat <<\_ASBOX
4388 ## ------------------------------------------ ##
4389 ## Report this to the AC_PACKAGE_NAME lists. ##
4390 ## ------------------------------------------ ##
4391 _ASBOX
4393 sed "s/^/$as_me: WARNING: /" >&2
4395 esac
4396 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4397 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4398 if test "${ac_cv_header_valgrind_h+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401 ac_cv_header_valgrind_h=$ac_header_preproc
4403 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4404 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4407 if test $ac_cv_header_valgrind_h = yes; then
4408 have_valgrind_h=yes
4409 else
4410 have_valgrind_h=no
4415 if test x$ac_checking_valgrind != x ; then
4416 # It is certainly possible that there's valgrind but no valgrind.h.
4417 # GCC relies on making annotations so we must have both.
4418 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4419 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4420 cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h. */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 #include <valgrind/memcheck.h>
4427 #ifndef VALGRIND_DISCARD
4428 #error VALGRIND_DISCARD not defined
4429 #endif
4430 _ACEOF
4431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4433 ac_status=$?
4434 grep -v '^ *+' conftest.er1 >conftest.err
4435 rm -f conftest.er1
4436 cat conftest.err >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } >/dev/null; then
4439 if test -s conftest.err; then
4440 ac_cpp_err=$ac_c_preproc_warn_flag
4441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4442 else
4443 ac_cpp_err=
4445 else
4446 ac_cpp_err=yes
4448 if test -z "$ac_cpp_err"; then
4449 gcc_cv_header_valgrind_memcheck_h=yes
4450 else
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 gcc_cv_header_valgrind_memcheck_h=no
4456 rm -f conftest.err conftest.$ac_ext
4457 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4458 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4459 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4460 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h. */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 #include <memcheck.h>
4468 #ifndef VALGRIND_DISCARD
4469 #error VALGRIND_DISCARD not defined
4470 #endif
4471 _ACEOF
4472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4474 ac_status=$?
4475 grep -v '^ *+' conftest.er1 >conftest.err
4476 rm -f conftest.er1
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } >/dev/null; then
4480 if test -s conftest.err; then
4481 ac_cpp_err=$ac_c_preproc_warn_flag
4482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4483 else
4484 ac_cpp_err=
4486 else
4487 ac_cpp_err=yes
4489 if test -z "$ac_cpp_err"; then
4490 gcc_cv_header_memcheck_h=yes
4491 else
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 gcc_cv_header_memcheck_h=no
4497 rm -f conftest.err conftest.$ac_ext
4498 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4499 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4501 # Prepare PATH_SEPARATOR.
4502 # The user is always right.
4503 if test "${PATH_SEPARATOR+set}" != set; then
4504 echo "#! /bin/sh" >conf$$.sh
4505 echo "exit 0" >>conf$$.sh
4506 chmod +x conf$$.sh
4507 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4508 PATH_SEPARATOR=';'
4509 else
4510 PATH_SEPARATOR=:
4512 rm -f conf$$.sh
4515 # Find out how to test for executable files. Don't use a zero-byte file,
4516 # as systems may use methods other than mode bits to determine executability.
4517 cat >conf$$.file <<_ASEOF
4518 #! /bin/sh
4519 exit 0
4520 _ASEOF
4521 chmod +x conf$$.file
4522 if test -x conf$$.file >/dev/null 2>&1; then
4523 ac_executable_p="test -x"
4524 else
4525 ac_executable_p="test -f"
4527 rm -f conf$$.file
4529 # Extract the first word of "valgrind", so it can be a program name with args.
4530 set dummy valgrind; ac_word=$2
4531 echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4533 if test "${ac_cv_path_valgrind_path+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536 case "$valgrind_path" in
4537 [\\/]* | ?:[\\/]*)
4538 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4541 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4542 for ac_dir in $PATH; do
4543 IFS="$ac_save_IFS"
4544 test -z "$ac_dir" && ac_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4547 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4548 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4549 break 2
4552 done
4553 done
4554 IFS="$ac_save_IFS"
4556 esac
4558 valgrind_path="$ac_cv_path_valgrind_path"
4559 if test -n "$valgrind_path"; then
4560 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4561 echo "${ECHO_T}$valgrind_path" >&6
4562 else
4563 echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6
4567 if test "x$valgrind_path" = "x" \
4568 || (test $have_valgrind_h = no \
4569 && test $gcc_cv_header_memcheck_h = no \
4570 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4571 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4572 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4573 { (exit 1); exit 1; }; }
4575 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4576 valgrind_command="$valgrind_path -q"
4578 cat >>confdefs.h <<\_ACEOF
4579 #define ENABLE_VALGRIND_CHECKING 1
4580 _ACEOF
4582 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4584 cat >>confdefs.h <<\_ACEOF
4585 #define HAVE_VALGRIND_MEMCHECK_H 1
4586 _ACEOF
4589 if test $gcc_cv_header_memcheck_h = yes; then
4591 cat >>confdefs.h <<\_ACEOF
4592 #define HAVE_MEMCHECK_H 1
4593 _ACEOF
4600 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4601 if test "${enable_mapped_location+set}" = set; then
4602 enableval="$enable_mapped_location"
4604 else
4605 enable_mapped_location=no
4608 if test "$enable_mapped_location" = yes ; then
4610 cat >>confdefs.h <<\_ACEOF
4611 #define USE_MAPPED_LOCATION 1
4612 _ACEOF
4616 # Enable code coverage collection
4617 # Check whether --enable-coverage or --disable-coverage was given.
4618 if test "${enable_coverage+set}" = set; then
4619 enableval="$enable_coverage"
4620 case "${enableval}" in
4621 yes|noopt)
4622 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4624 opt)
4625 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4628 # a.k.a. --disable-coverage
4629 coverage_flags=""
4632 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4633 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4634 { (exit 1); exit 1; }; }
4636 esac
4637 else
4638 coverage_flags=""
4642 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4643 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4644 enableval="$enable_gather_detailed_mem_stats"
4646 else
4647 enable_gather_detailed_mem_stats=no
4649 if test x$enable_gather_detailed_mem_stats = xyes ; then
4651 cat >>confdefs.h <<\_ACEOF
4652 #define GATHER_STATISTICS 1
4653 _ACEOF
4657 # -------------------------------
4658 # Miscenalleous configure options
4659 # -------------------------------
4661 # With stabs
4663 # Check whether --with-stabs or --without-stabs was given.
4664 if test "${with_stabs+set}" = set; then
4665 withval="$with_stabs"
4666 stabs="$with_stabs"
4667 else
4668 stabs=no
4671 # Determine whether or not multilibs are enabled.
4672 # Check whether --enable-multilib or --disable-multilib was given.
4673 if test "${enable_multilib+set}" = set; then
4674 enableval="$enable_multilib"
4676 else
4677 enable_multilib=yes
4681 # Enable __cxa_atexit for C++.
4682 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4683 if test "${enable___cxa_atexit+set}" = set; then
4684 enableval="$enable___cxa_atexit"
4688 # Enable threads
4689 # Pass with no value to take the default
4690 # Pass with a value to specify a thread package
4691 # Check whether --enable-threads or --disable-threads was given.
4692 if test "${enable_threads+set}" = set; then
4693 enableval="$enable_threads"
4695 else
4696 enable_threads=''
4699 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4700 if test "${enable_objc_gc+set}" = set; then
4701 enableval="$enable_objc_gc"
4702 if test x$enable_objc_gc = xno; then
4703 objc_boehm_gc=''
4704 else
4705 objc_boehm_gc=1
4707 else
4708 objc_boehm_gc=''
4712 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4713 if test "${with_dwarf2+set}" = set; then
4714 withval="$with_dwarf2"
4715 dwarf2="$with_dwarf2"
4716 else
4717 dwarf2=no
4720 # Check whether --enable-shared or --disable-shared was given.
4721 if test "${enable_shared+set}" = set; then
4722 enableval="$enable_shared"
4724 case $enable_shared in
4725 yes | no) ;;
4727 enable_shared=no
4728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4729 for pkg in $enableval; do
4730 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4731 enable_shared=yes
4733 done
4734 IFS="$ac_save_ifs"
4736 esac
4738 else
4739 enable_shared=yes
4744 # Check whether --with-sysroot or --without-sysroot was given.
4745 if test "${with_sysroot+set}" = set; then
4746 withval="$with_sysroot"
4748 case ${with_sysroot} in
4749 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4750 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4751 esac
4753 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4754 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4756 if test "x$exec_prefix" = xNONE; then
4757 if test "x$prefix" = xNONE; then
4758 test_prefix=/usr/local
4759 else
4760 test_prefix=$prefix
4762 else
4763 test_prefix=$exec_prefix
4765 case ${TARGET_SYSTEM_ROOT} in
4766 "${test_prefix}"|"${test_prefix}/"*|\
4767 '${exec_prefix}'|'${exec_prefix}/'*)
4768 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4769 TARGET_SYSTEM_ROOT_DEFINE="$t"
4771 esac
4773 else
4775 TARGET_SYSTEM_ROOT=
4776 TARGET_SYSTEM_ROOT_DEFINE=
4777 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4784 # Build with intermodule optimisations
4785 # Check whether --enable-intermodule or --disable-intermodule was given.
4786 if test "${enable_intermodule+set}" = set; then
4787 enableval="$enable_intermodule"
4788 case ${enable_intermodule} in
4789 yes) onestep="-onestep";;
4790 *) onestep="";;
4791 esac
4792 else
4793 onestep=""
4797 # Sanity check enable_languages in case someone does not run the toplevel
4798 # configure # script.
4799 # Check whether --enable-languages or --disable-languages was given.
4800 if test "${enable_languages+set}" = set; then
4801 enableval="$enable_languages"
4802 case ,${enable_languages}, in
4803 ,,|,yes,)
4804 # go safe -- we cannot be much sure without the toplevel
4805 # configure's
4806 # analysis of which target libs are present and usable
4807 enable_languages=c
4809 *,all,*)
4810 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4811 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4812 { (exit 1); exit 1; }; }
4814 *,c,*)
4817 enable_languages=c,${enable_languages}
4819 esac
4820 else
4821 enable_languages=c
4824 subdirs=
4825 for lang in ${srcdir}/*/config-lang.in
4827 case $lang in
4828 # The odd quoting in the next line works around
4829 # an apparent bug in bash 1.12 on linux.
4830 ${srcdir}/[*]/config-lang.in) ;;
4832 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4833 if test "x$lang_alias" = x
4834 then
4835 echo "$lang doesn't set \$language." 1>&2
4836 exit 1
4838 case ",$enable_languages," in
4839 *,$lang_alias,*)
4840 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4841 esac
4843 esac
4844 done
4847 # -------------------------
4848 # Checks for other programs
4849 # -------------------------
4851 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4852 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4853 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4854 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857 cat >conftest.make <<\_ACEOF
4858 all:
4859 @echo 'ac_maketemp="$(MAKE)"'
4860 _ACEOF
4861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4862 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4863 if test -n "$ac_maketemp"; then
4864 eval ac_cv_prog_make_${ac_make}_set=yes
4865 else
4866 eval ac_cv_prog_make_${ac_make}_set=no
4868 rm -f conftest.make
4870 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4871 echo "$as_me:$LINENO: result: yes" >&5
4872 echo "${ECHO_T}yes" >&6
4873 SET_MAKE=
4874 else
4875 echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6
4877 SET_MAKE="MAKE=${MAKE-make}"
4881 # Find some useful tools
4882 for ac_prog in gawk mawk nawk awk
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy $ac_prog; ac_word=$2
4886 echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4888 if test "${ac_cv_prog_AWK+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891 if test -n "$AWK"; then
4892 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_prog_AWK="$ac_prog"
4902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4905 done
4906 done
4910 AWK=$ac_cv_prog_AWK
4911 if test -n "$AWK"; then
4912 echo "$as_me:$LINENO: result: $AWK" >&5
4913 echo "${ECHO_T}$AWK" >&6
4914 else
4915 echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6
4919 test -n "$AWK" && break
4920 done
4922 # We need awk to create options.c and options.h.
4923 # Bail out if it's missing.
4924 case ${AWK} in
4925 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4926 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4927 { (exit 1); exit 1; }; } ;;
4928 esac
4930 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4931 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4932 if test "${gcc_cv_prog_LN_S+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 rm -f conftestdata_t
4936 echo >conftestdata_f
4937 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4938 then
4939 gcc_cv_prog_LN_S="ln -s"
4940 else
4941 if ln conftestdata_f conftestdata_t 2>/dev/null
4942 then
4943 gcc_cv_prog_LN_S=ln
4944 else
4945 gcc_cv_prog_LN_S=cp
4948 rm -f conftestdata_f conftestdata_t
4951 LN_S="$gcc_cv_prog_LN_S"
4952 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4953 echo "$as_me:$LINENO: result: yes" >&5
4954 echo "${ECHO_T}yes" >&6
4955 else
4956 if test "$gcc_cv_prog_LN_S" = "ln"; then
4957 echo "$as_me:$LINENO: result: no, using ln" >&5
4958 echo "${ECHO_T}no, using ln" >&6
4959 else
4960 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4961 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4965 echo "$as_me:$LINENO: checking whether ln works" >&5
4966 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4967 if test "${acx_cv_prog_LN+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970 rm -f conftestdata_t
4971 echo >conftestdata_f
4972 if ln conftestdata_f conftestdata_t 2>/dev/null
4973 then
4974 acx_cv_prog_LN=ln
4975 else
4976 acx_cv_prog_LN=no
4978 rm -f conftestdata_f conftestdata_t
4981 if test $acx_cv_prog_LN = no; then
4982 LN="$LN_S"
4983 echo "$as_me:$LINENO: result: no, using $LN" >&5
4984 echo "${ECHO_T}no, using $LN" >&6
4985 else
4986 LN="$acx_cv_prog_LN"
4987 echo "$as_me:$LINENO: result: yes" >&5
4988 echo "${ECHO_T}yes" >&6
4991 if test -n "$ac_tool_prefix"; then
4992 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4993 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4994 echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4996 if test "${ac_cv_prog_RANLIB+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999 if test -n "$RANLIB"; then
5000 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 break 2
5013 done
5014 done
5018 RANLIB=$ac_cv_prog_RANLIB
5019 if test -n "$RANLIB"; then
5020 echo "$as_me:$LINENO: result: $RANLIB" >&5
5021 echo "${ECHO_T}$RANLIB" >&6
5022 else
5023 echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6
5028 if test -z "$ac_cv_prog_RANLIB"; then
5029 ac_ct_RANLIB=$RANLIB
5030 # Extract the first word of "ranlib", so it can be a program name with args.
5031 set dummy ranlib; ac_word=$2
5032 echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5034 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037 if test -n "$ac_ct_RANLIB"; then
5038 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5047 ac_cv_prog_ac_ct_RANLIB="ranlib"
5048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 break 2
5051 done
5052 done
5054 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5057 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5058 if test -n "$ac_ct_RANLIB"; then
5059 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5060 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5061 else
5062 echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6
5066 RANLIB=$ac_ct_RANLIB
5067 else
5068 RANLIB="$ac_cv_prog_RANLIB"
5071 case "${host}" in
5072 *-*-darwin*)
5073 # By default, the Darwin ranlib will not treat common symbols as
5074 # definitions when building the archive table of contents. Other
5075 # ranlibs do that; pass an option to the Darwin ranlib that makes
5076 # it behave similarly.
5077 ranlib_flags="-c"
5080 ranlib_flags=""
5081 esac
5084 # Find a good install program. We prefer a C program (faster),
5085 # so one script is as good as another. But avoid the broken or
5086 # incompatible versions:
5087 # SysV /etc/install, /usr/sbin/install
5088 # SunOS /usr/etc/install
5089 # IRIX /sbin/install
5090 # AIX /bin/install
5091 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5092 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5093 # ./install, which can be erroneously created by make from ./install.sh.
5094 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5095 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5096 if test -z "$INSTALL"; then
5097 if test "${ac_cv_path_install+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5101 for ac_dir in $PATH; do
5102 # Account for people who put trailing slashes in PATH elements.
5103 case "$ac_dir/" in
5104 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5106 # OSF1 and SCO ODT 3.0 have their own names for install.
5107 for ac_prog in ginstall scoinst install; do
5108 if test -f $ac_dir/$ac_prog; then
5109 if test $ac_prog = install &&
5110 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5111 # AIX install. It has an incompatible calling convention.
5112 # OSF/1 installbsd also uses dspmsg, but is usable.
5114 else
5115 ac_cv_path_install="$ac_dir/$ac_prog -c"
5116 break 2
5119 done
5121 esac
5122 done
5123 IFS="$ac_save_IFS"
5126 if test "${ac_cv_path_install+set}" = set; then
5127 INSTALL="$ac_cv_path_install"
5128 else
5129 # As a last resort, use the slow shell script. We don't cache a
5130 # path for INSTALL within a source directory, because that will
5131 # break other packages using the cache if that directory is
5132 # removed, or if the path is relative.
5133 INSTALL="$ac_install_sh"
5136 echo "$as_me:$LINENO: result: $INSTALL" >&5
5137 echo "${ECHO_T}$INSTALL" >&6
5139 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5140 # It thinks the first close brace ends the variable substitution.
5141 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5143 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5146 # See if cmp has --ignore-initial.
5147 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5148 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5149 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152 echo abfoo >t1
5153 echo cdfoo >t2
5154 gcc_cv_prog_cmp_skip=slowcompare
5155 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5156 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5158 else
5159 gcc_cv_prog_cmp_skip=gnucompare
5162 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5163 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5164 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5166 else
5167 gcc_cv_prog_cmp_skip=fastcompare
5171 rm t1 t2
5174 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5175 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5176 make_compare_target=$gcc_cv_prog_cmp_skip
5180 # See if we have the mktemp command.
5181 # Extract the first word of "mktemp", so it can be a program name with args.
5182 set dummy mktemp; ac_word=$2
5183 echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188 if test -n "$have_mktemp_command"; then
5189 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_prog_have_mktemp_command="yes"
5199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5202 done
5203 done
5205 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5208 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5209 if test -n "$have_mktemp_command"; then
5210 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5211 echo "${ECHO_T}$have_mktemp_command" >&6
5212 else
5213 echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6
5218 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
5220 # See if makeinfo has been installed and is modern enough
5221 # that we can use it.
5222 # Extract the first word of "makeinfo", so it can be a program name with args.
5223 set dummy makeinfo; ac_word=$2
5224 echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5226 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 if test -n "$MAKEINFO"; then
5230 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239 ac_cv_prog_MAKEINFO="makeinfo"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5243 done
5244 done
5248 MAKEINFO=$ac_cv_prog_MAKEINFO
5249 if test -n "$MAKEINFO"; then
5250 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5251 echo "${ECHO_T}$MAKEINFO" >&6
5252 else
5253 echo "$as_me:$LINENO: result: no" >&5
5254 echo "${ECHO_T}no" >&6
5257 if test -n "$MAKEINFO"; then
5258 # Found it, now check the version.
5259 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5260 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5261 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 else
5264 ac_prog_version=`$MAKEINFO --version 2>&1 |
5265 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5266 echo "configure:5266: version of makeinfo is $ac_prog_version" >&5
5267 case $ac_prog_version in
5268 '') gcc_cv_prog_makeinfo_modern=no;;
5269 4.[2-9]*)
5270 gcc_cv_prog_makeinfo_modern=yes;;
5271 *) gcc_cv_prog_makeinfo_modern=no;;
5272 esac
5275 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5276 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5277 else
5278 gcc_cv_prog_makeinfo_modern=no
5281 if test $gcc_cv_prog_makeinfo_modern = no; then
5282 MAKEINFO="$MISSING makeinfo"
5283 { echo "$as_me:$LINENO: WARNING:
5284 *** Makeinfo is missing or too old.
5285 *** Info documentation will not be built." >&5
5286 echo "$as_me: WARNING:
5287 *** Makeinfo is missing or too old.
5288 *** Info documentation will not be built." >&2;}
5289 BUILD_INFO=
5290 else
5291 BUILD_INFO=info
5295 # Is pod2man recent enough to regenerate manpages?
5296 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5297 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5298 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5299 echo "$as_me:$LINENO: result: yes" >&5
5300 echo "${ECHO_T}yes" >&6
5301 GENERATED_MANPAGES=generated-manpages
5302 else
5303 echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6
5305 GENERATED_MANPAGES=
5309 # How about lex?
5310 for ac_prog in flex
5312 # Extract the first word of "$ac_prog", so it can be a program name with args.
5313 set dummy $ac_prog; ac_word=$2
5314 echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316 if test "${ac_cv_prog_FLEX+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 if test -n "$FLEX"; then
5320 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_prog_FLEX="$ac_prog"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5333 done
5334 done
5338 FLEX=$ac_cv_prog_FLEX
5339 if test -n "$FLEX"; then
5340 echo "$as_me:$LINENO: result: $FLEX" >&5
5341 echo "${ECHO_T}$FLEX" >&6
5342 else
5343 echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6
5347 test -n "$FLEX" && break
5348 done
5349 test -n "$FLEX" || FLEX="$MISSING flex"
5352 # Bison?
5353 for ac_prog in bison
5355 # Extract the first word of "$ac_prog", so it can be a program name with args.
5356 set dummy $ac_prog; ac_word=$2
5357 echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5359 if test "${ac_cv_prog_BISON+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362 if test -n "$BISON"; then
5363 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372 ac_cv_prog_BISON="$ac_prog"
5373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5376 done
5377 done
5381 BISON=$ac_cv_prog_BISON
5382 if test -n "$BISON"; then
5383 echo "$as_me:$LINENO: result: $BISON" >&5
5384 echo "${ECHO_T}$BISON" >&6
5385 else
5386 echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6
5390 test -n "$BISON" && break
5391 done
5392 test -n "$BISON" || BISON="$MISSING bison"
5395 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
5396 # check for build == host before using them.
5398 # NM
5399 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
5400 && test -d ../binutils ; then
5401 NM='$(objdir)/../binutils/nm-new'
5402 else
5403 # Extract the first word of "nm", so it can be a program name with args.
5404 set dummy nm; ac_word=$2
5405 echo "$as_me:$LINENO: checking for $ac_word" >&5
5406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5407 if test "${ac_cv_prog_NM+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410 if test -n "$NM"; then
5411 ac_cv_prog_NM="$NM" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420 ac_cv_prog_NM="nm"
5421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 break 2
5424 done
5425 done
5427 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
5430 NM=$ac_cv_prog_NM
5431 if test -n "$NM"; then
5432 echo "$as_me:$LINENO: result: $NM" >&5
5433 echo "${ECHO_T}$NM" >&6
5434 else
5435 echo "$as_me:$LINENO: result: no" >&5
5436 echo "${ECHO_T}no" >&6
5441 # AR
5442 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
5443 && test -d ../binutils ; then
5444 AR='$(objdir)/../binutils/ar'
5445 else
5446 # Extract the first word of "ar", so it can be a program name with args.
5447 set dummy ar; ac_word=$2
5448 echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450 if test "${ac_cv_prog_AR+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453 if test -n "$AR"; then
5454 ac_cv_prog_AR="$AR" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_AR="ar"
5464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5467 done
5468 done
5470 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
5473 AR=$ac_cv_prog_AR
5474 if test -n "$AR"; then
5475 echo "$as_me:$LINENO: result: $AR" >&5
5476 echo "${ECHO_T}$AR" >&6
5477 else
5478 echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6
5485 # --------------------
5486 # Checks for C headers
5487 # --------------------
5489 echo "$as_me:$LINENO: checking for GNU C library" >&5
5490 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5491 if test "${gcc_cv_glibc+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 else
5494 cat >conftest.$ac_ext <<_ACEOF
5495 /* confdefs.h. */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 #include <features.h>
5502 main ()
5505 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5506 #error Not a GNU C library system
5507 #endif
5509 return 0;
5511 _ACEOF
5512 rm -f conftest.$ac_objext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5514 (eval $ac_compile) 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -z "$ac_c_werror_flag"
5522 || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 (eval $ac_try) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try='test -s conftest.$ac_objext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 gcc_cv_glibc=yes
5535 else
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 gcc_cv_glibc=no
5541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5544 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5545 echo "${ECHO_T}$gcc_cv_glibc" >&6
5546 if test $gcc_cv_glibc = yes; then
5548 cat >>confdefs.h <<\_ACEOF
5549 #define _GNU_SOURCE 1
5550 _ACEOF
5554 # Need to reject headers which give warnings, so that the -Werror bootstrap
5555 # works later. *sigh* This needs to come before all header checks.
5557 ac_c_preproc_warn_flag=yes
5559 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5560 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5561 if test "${ac_cv_header_stdc+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564 cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h. */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 #include <stdlib.h>
5571 #include <stdarg.h>
5572 #include <string.h>
5573 #include <float.h>
5576 main ()
5580 return 0;
5582 _ACEOF
5583 rm -f conftest.$ac_objext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5585 (eval $ac_compile) 2>conftest.er1
5586 ac_status=$?
5587 grep -v '^ *+' conftest.er1 >conftest.err
5588 rm -f conftest.er1
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try='test -z "$ac_c_werror_flag"
5593 || test ! -s conftest.err'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 (eval $ac_try) 2>&5
5596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; } &&
5599 { ac_try='test -s conftest.$ac_objext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_header_stdc=yes
5606 else
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5610 ac_cv_header_stdc=no
5612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5614 if test $ac_cv_header_stdc = yes; then
5615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5616 cat >conftest.$ac_ext <<_ACEOF
5617 /* confdefs.h. */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 #include <string.h>
5624 _ACEOF
5625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5626 $EGREP "memchr" >/dev/null 2>&1; then
5628 else
5629 ac_cv_header_stdc=no
5631 rm -f conftest*
5635 if test $ac_cv_header_stdc = yes; then
5636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5637 cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h. */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643 #include <stdlib.h>
5645 _ACEOF
5646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5647 $EGREP "free" >/dev/null 2>&1; then
5649 else
5650 ac_cv_header_stdc=no
5652 rm -f conftest*
5656 if test $ac_cv_header_stdc = yes; then
5657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5658 if test "$cross_compiling" = yes; then
5660 else
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h. */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 #include <ctype.h>
5668 #if ((' ' & 0x0FF) == 0x020)
5669 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5670 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5671 #else
5672 # define ISLOWER(c) \
5673 (('a' <= (c) && (c) <= 'i') \
5674 || ('j' <= (c) && (c) <= 'r') \
5675 || ('s' <= (c) && (c) <= 'z'))
5676 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5677 #endif
5679 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5681 main ()
5683 int i;
5684 for (i = 0; i < 256; i++)
5685 if (XOR (islower (i), ISLOWER (i))
5686 || toupper (i) != TOUPPER (i))
5687 exit(2);
5688 exit (0);
5690 _ACEOF
5691 rm -f conftest$ac_exeext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5693 (eval $ac_link) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5703 else
5704 echo "$as_me: program exited with status $ac_status" >&5
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5708 ( exit $ac_status )
5709 ac_cv_header_stdc=no
5711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5715 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5716 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5717 if test $ac_cv_header_stdc = yes; then
5719 cat >>confdefs.h <<\_ACEOF
5720 #define STDC_HEADERS 1
5721 _ACEOF
5725 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5726 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5727 if test "${ac_cv_header_time+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730 cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h. */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 #include <sys/types.h>
5737 #include <sys/time.h>
5738 #include <time.h>
5741 main ()
5743 if ((struct tm *) 0)
5744 return 0;
5746 return 0;
5748 _ACEOF
5749 rm -f conftest.$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>conftest.er1
5752 ac_status=$?
5753 grep -v '^ *+' conftest.er1 >conftest.err
5754 rm -f conftest.er1
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try='test -z "$ac_c_werror_flag"
5759 || test ! -s conftest.err'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761 (eval $ac_try) 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; } &&
5765 { ac_try='test -s conftest.$ac_objext'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 (eval $ac_try) 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; }; then
5771 ac_cv_header_time=yes
5772 else
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5776 ac_cv_header_time=no
5778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5780 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5781 echo "${ECHO_T}$ac_cv_header_time" >&6
5782 if test $ac_cv_header_time = yes; then
5784 cat >>confdefs.h <<\_ACEOF
5785 #define TIME_WITH_SYS_TIME 1
5786 _ACEOF
5790 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5791 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5792 if test "${gcc_cv_header_string+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 #include <string.h>
5802 #include <strings.h>
5804 main ()
5808 return 0;
5810 _ACEOF
5811 rm -f conftest.$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try='test -z "$ac_c_werror_flag"
5821 || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 gcc_cv_header_string=yes
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5838 gcc_cv_header_string=no
5840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5842 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5843 echo "${ECHO_T}$gcc_cv_header_string" >&6
5844 if test $gcc_cv_header_string = yes; then
5846 cat >>confdefs.h <<\_ACEOF
5847 #define STRING_WITH_STRINGS 1
5848 _ACEOF
5852 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5853 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5854 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857 cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h. */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 #include <sys/types.h>
5864 #include <sys/wait.h>
5865 #ifndef WEXITSTATUS
5866 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5867 #endif
5868 #ifndef WIFEXITED
5869 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5870 #endif
5873 main ()
5875 int s;
5876 wait (&s);
5877 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5879 return 0;
5881 _ACEOF
5882 rm -f conftest.$ac_objext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_c_werror_flag"
5892 || test ! -s conftest.err'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 (eval $ac_try) 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; } &&
5898 { ac_try='test -s conftest.$ac_objext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 (eval $ac_try) 2>&5
5901 ac_status=$?
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_cv_header_sys_wait_h=yes
5905 else
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5909 ac_cv_header_sys_wait_h=no
5911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5913 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5914 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5915 if test $ac_cv_header_sys_wait_h = yes; then
5917 cat >>confdefs.h <<\_ACEOF
5918 #define HAVE_SYS_WAIT_H 1
5919 _ACEOF
5944 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5945 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5946 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5947 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5950 echo "$as_me:$LINENO: checking for $ac_header" >&5
5951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955 cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h. */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 #include <$ac_header>
5962 _ACEOF
5963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5965 ac_status=$?
5966 grep -v '^ *+' conftest.er1 >conftest.err
5967 rm -f conftest.er1
5968 cat conftest.err >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } >/dev/null; then
5971 if test -s conftest.err; then
5972 ac_cpp_err=$ac_c_preproc_warn_flag
5973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5974 else
5975 ac_cpp_err=
5977 else
5978 ac_cpp_err=yes
5980 if test -z "$ac_cpp_err"; then
5981 eval "$as_ac_Header=yes"
5982 else
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986 eval "$as_ac_Header=no"
5988 rm -f conftest.err conftest.$ac_ext
5990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5993 cat >>confdefs.h <<_ACEOF
5994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5995 _ACEOF
5998 done
6001 # Check for thread headers.
6002 echo "$as_me:$LINENO: checking for thread.h" >&5
6003 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
6004 if test "${ac_cv_header_thread_h+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007 cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h. */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 #include <thread.h>
6014 _ACEOF
6015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6017 ac_status=$?
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } >/dev/null; then
6023 if test -s conftest.err; then
6024 ac_cpp_err=$ac_c_preproc_warn_flag
6025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6026 else
6027 ac_cpp_err=
6029 else
6030 ac_cpp_err=yes
6032 if test -z "$ac_cpp_err"; then
6033 ac_cv_header_thread_h=yes
6034 else
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 ac_cv_header_thread_h=no
6040 rm -f conftest.err conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6043 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6044 if test $ac_cv_header_thread_h = yes; then
6045 have_thread_h=yes
6046 else
6047 have_thread_h=
6050 echo "$as_me:$LINENO: checking for pthread.h" >&5
6051 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6052 if test "${ac_cv_header_pthread_h+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 #include <pthread.h>
6062 _ACEOF
6063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6065 ac_status=$?
6066 grep -v '^ *+' conftest.er1 >conftest.err
6067 rm -f conftest.er1
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } >/dev/null; then
6071 if test -s conftest.err; then
6072 ac_cpp_err=$ac_c_preproc_warn_flag
6073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6074 else
6075 ac_cpp_err=
6077 else
6078 ac_cpp_err=yes
6080 if test -z "$ac_cpp_err"; then
6081 ac_cv_header_pthread_h=yes
6082 else
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6086 ac_cv_header_pthread_h=no
6088 rm -f conftest.err conftest.$ac_ext
6090 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6091 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6092 if test $ac_cv_header_pthread_h = yes; then
6093 have_pthread_h=yes
6094 else
6095 have_pthread_h=
6099 # These tests can't be done till we know if we have limits.h.
6100 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6101 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6102 if test "${gcc_cv_decl_char_bit+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105 cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h. */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 #ifdef HAVE_LIMITS_H
6112 #include <limits.h>
6113 #endif
6114 #ifdef CHAR_BIT
6115 found
6116 #endif
6117 _ACEOF
6118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6119 $EGREP "found" >/dev/null 2>&1; then
6120 gcc_cv_decl_char_bit=yes
6121 else
6122 gcc_cv_decl_char_bit=no
6124 rm -f conftest*
6128 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6129 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6130 if test $gcc_cv_decl_char_bit = no; then
6131 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6132 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6133 if test "${gcc_cv_c_nbby+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6137 gcc_cv_c_nbby=
6138 while test $i -lt 65; do
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h. */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6147 main ()
6149 switch(0) {
6150 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6151 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6154 return 0;
6156 _ACEOF
6157 rm -f conftest.$ac_objext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try='test -z "$ac_c_werror_flag"
6167 || test ! -s conftest.err'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 (eval $ac_try) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try='test -s conftest.$ac_objext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 gcc_cv_c_nbby=$i; break
6180 else
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6186 i=`expr $i + 1`
6187 done
6188 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6191 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6192 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6193 if test $gcc_cv_c_nbby = failed; then
6194 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6195 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6196 { (exit 1); exit 1; }; }
6197 else
6199 cat >>confdefs.h <<_ACEOF
6200 #define CHAR_BIT $gcc_cv_c_nbby
6201 _ACEOF
6205 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6206 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6207 if test "${ac_cv_c_bigendian+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210 ac_cv_c_bigendian=unknown
6211 # See if sys/param.h defines the BYTE_ORDER macro.
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h. */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 #include <sys/types.h>
6219 #include <sys/param.h>
6221 main ()
6224 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6225 bogus endian macros
6226 #endif
6228 return 0;
6230 _ACEOF
6231 rm -f conftest.$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233 (eval $ac_compile) 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
6240 { ac_try='test -z "$ac_c_werror_flag"
6241 || test ! -s conftest.err'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 (eval $ac_try) 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; } &&
6247 { ac_try='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 (eval $ac_try) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 # It does; now see whether it defined to BIG_ENDIAN or not.
6254 cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h. */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6260 #include <sys/types.h>
6261 #include <sys/param.h>
6263 main ()
6266 #if BYTE_ORDER != BIG_ENDIAN
6267 not big endian
6268 #endif
6270 return 0;
6272 _ACEOF
6273 rm -f conftest.$ac_objext
6274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275 (eval $ac_compile) 2>conftest.er1
6276 ac_status=$?
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try='test -z "$ac_c_werror_flag"
6283 || test ! -s conftest.err'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 (eval $ac_try) 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; } &&
6289 { ac_try='test -s conftest.$ac_objext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 (eval $ac_try) 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_cv_c_bigendian=yes
6296 else
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6300 ac_cv_c_bigendian=no
6302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6303 else
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6309 if test $ac_cv_c_bigendian = unknown; then
6310 if test "$cross_compiling" = yes; then
6311 echo $ac_n "cross-compiling... " 2>&6
6312 else
6313 cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h. */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 main () {
6320 /* Are we little or big endian? From Harbison&Steele. */
6321 union
6323 long l;
6324 char c[sizeof (long)];
6325 } u;
6326 u.l = 1;
6327 exit (u.c[sizeof (long) - 1] == 1);
6329 _ACEOF
6330 rm -f conftest$ac_exeext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6332 (eval $ac_link) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 ac_cv_c_bigendian=no
6342 else
6343 echo "$as_me: program exited with status $ac_status" >&5
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6347 ( exit $ac_status )
6348 ac_cv_c_bigendian=yes
6350 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6354 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6355 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6356 if test $ac_cv_c_bigendian = unknown; then
6357 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6358 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6360 cat >conftest.c <<EOF
6361 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6362 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6363 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6364 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6365 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6366 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6367 int main() { _ascii (); _ebcdic (); return 0; }
6369 if test -f conftest.c ; then
6370 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6371 if test `grep -l BIGenDianSyS conftest.o` ; then
6372 echo $ac_n ' big endian probe OK, ' 1>&6
6373 ac_cv_c_bigendian=yes
6375 if test `grep -l LiTTleEnDian conftest.o` ; then
6376 echo $ac_n ' little endian probe OK, ' 1>&6
6377 if test $ac_cv_c_bigendian = yes ; then
6378 ac_cv_c_bigendian=unknown;
6379 else
6380 ac_cv_c_bigendian=no
6383 echo $ac_n 'guessing bigendian ... ' >&6
6386 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6387 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6389 if test $ac_cv_c_bigendian = yes; then
6391 cat >>confdefs.h <<\_ACEOF
6392 #define WORDS_BIGENDIAN 1
6393 _ACEOF
6396 cat >>confdefs.h <<\_ACEOF
6397 #define HOST_WORDS_BIG_ENDIAN 1
6398 _ACEOF
6400 BYTEORDER=4321
6401 else
6402 BYTEORDER=1234
6405 cat >>confdefs.h <<_ACEOF
6406 #define BYTEORDER $BYTEORDER
6407 _ACEOF
6409 if test $ac_cv_c_bigendian = unknown; then
6410 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6411 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6412 { (exit 1); exit 1; }; }
6416 # --------
6417 # UNSORTED
6418 # --------
6420 # Stage specific cflags for build.
6421 stage1_cflags=
6422 case $build in
6423 vax-*-*)
6424 if test x$GCC = xyes
6425 then
6426 stage1_cflags="-Wa,-J"
6427 else
6428 stage1_cflags="-J"
6431 powerpc-*-darwin*)
6432 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6433 # sources; use -no-cpp-precomp to get to GNU cpp.
6434 # Apple's GCC has bugs in designated initializer handling, so disable
6435 # that too.
6436 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6438 esac
6441 # These libraries may be used by collect2.
6442 # We may need a special search path to get them linked.
6443 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6444 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6445 if test "${gcc_cv_collect2_libs+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448 save_LIBS="$LIBS"
6449 for libs in '' -lld -lmld \
6450 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6451 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6453 LIBS="$libs"
6454 cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h. */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6461 /* Override any gcc2 internal prototype to avoid an error. */
6462 #ifdef __cplusplus
6463 extern "C"
6464 #endif
6465 /* We use char because int might match the return type of a gcc2
6466 builtin and then its argument prototype would still apply. */
6467 char ldopen ();
6469 main ()
6471 ldopen ();
6473 return 0;
6475 _ACEOF
6476 rm -f conftest.$ac_objext conftest$ac_exeext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478 (eval $ac_link) 2>conftest.er1
6479 ac_status=$?
6480 grep -v '^ *+' conftest.er1 >conftest.err
6481 rm -f conftest.er1
6482 cat conftest.err >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try='test -z "$ac_c_werror_flag"
6486 || test ! -s conftest.err'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; } &&
6492 { ac_try='test -s conftest$ac_exeext'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 (eval $ac_try) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; }; then
6498 gcc_cv_collect2_libs="$libs"; break
6499 else
6500 echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6504 rm -f conftest.err conftest.$ac_objext \
6505 conftest$ac_exeext conftest.$ac_ext
6506 done
6507 LIBS="$save_LIBS"
6508 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6510 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6511 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6512 case $gcc_cv_collect2_libs in
6513 "none required") ;;
6514 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6515 esac
6518 # When building Ada code on Alpha, we need exc_resume which is usually in
6519 # -lexc. So test for it.
6520 save_LIBS="$LIBS"
6521 LIBS=
6522 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6523 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6524 if test "${ac_cv_search_exc_resume+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 ac_func_search_save_LIBS=$LIBS
6528 ac_cv_search_exc_resume=no
6529 cat >conftest.$ac_ext <<_ACEOF
6530 /* confdefs.h. */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6536 /* Override any gcc2 internal prototype to avoid an error. */
6537 #ifdef __cplusplus
6538 extern "C"
6539 #endif
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6542 char exc_resume ();
6544 main ()
6546 exc_resume ();
6548 return 0;
6550 _ACEOF
6551 rm -f conftest.$ac_objext conftest$ac_exeext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553 (eval $ac_link) 2>conftest.er1
6554 ac_status=$?
6555 grep -v '^ *+' conftest.er1 >conftest.err
6556 rm -f conftest.er1
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
6560 { ac_try='test -z "$ac_c_werror_flag"
6561 || test ! -s conftest.err'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; } &&
6567 { ac_try='test -s conftest$ac_exeext'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 (eval $ac_try) 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6573 ac_cv_search_exc_resume="none required"
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6579 rm -f conftest.err conftest.$ac_objext \
6580 conftest$ac_exeext conftest.$ac_ext
6581 if test "$ac_cv_search_exc_resume" = no; then
6582 for ac_lib in exc; do
6583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6591 /* Override any gcc2 internal prototype to avoid an error. */
6592 #ifdef __cplusplus
6593 extern "C"
6594 #endif
6595 /* We use char because int might match the return type of a gcc2
6596 builtin and then its argument prototype would still apply. */
6597 char exc_resume ();
6599 main ()
6601 exc_resume ();
6603 return 0;
6605 _ACEOF
6606 rm -f conftest.$ac_objext conftest$ac_exeext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6608 (eval $ac_link) 2>conftest.er1
6609 ac_status=$?
6610 grep -v '^ *+' conftest.er1 >conftest.err
6611 rm -f conftest.er1
6612 cat conftest.err >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } &&
6615 { ac_try='test -z "$ac_c_werror_flag"
6616 || test ! -s conftest.err'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 (eval $ac_try) 2>&5
6619 ac_status=$?
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; } &&
6622 { ac_try='test -s conftest$ac_exeext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 (eval $ac_try) 2>&5
6625 ac_status=$?
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
6628 ac_cv_search_exc_resume="-l$ac_lib"
6629 break
6630 else
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6635 rm -f conftest.err conftest.$ac_objext \
6636 conftest$ac_exeext conftest.$ac_ext
6637 done
6639 LIBS=$ac_func_search_save_LIBS
6641 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6642 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6643 if test "$ac_cv_search_exc_resume" != no; then
6644 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6648 GNAT_LIBEXC="$LIBS"
6649 LIBS="$save_LIBS"
6652 # Some systems put ldexp and frexp in libm instead of libc; assume
6653 # they're both in the same place. jcf-dump needs them.
6654 save_LIBS="$LIBS"
6655 LIBS=
6656 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6657 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6658 if test "${ac_cv_search_ldexp+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661 ac_func_search_save_LIBS=$LIBS
6662 ac_cv_search_ldexp=no
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h. */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6670 /* Override any gcc2 internal prototype to avoid an error. */
6671 #ifdef __cplusplus
6672 extern "C"
6673 #endif
6674 /* We use char because int might match the return type of a gcc2
6675 builtin and then its argument prototype would still apply. */
6676 char ldexp ();
6678 main ()
6680 ldexp ();
6682 return 0;
6684 _ACEOF
6685 rm -f conftest.$ac_objext conftest$ac_exeext
6686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6687 (eval $ac_link) 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } &&
6694 { ac_try='test -z "$ac_c_werror_flag"
6695 || test ! -s conftest.err'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 (eval $ac_try) 2>&5
6698 ac_status=$?
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; } &&
6701 { ac_try='test -s conftest$ac_exeext'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6707 ac_cv_search_ldexp="none required"
6708 else
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6713 rm -f conftest.err conftest.$ac_objext \
6714 conftest$ac_exeext conftest.$ac_ext
6715 if test "$ac_cv_search_ldexp" = no; then
6716 for ac_lib in m; do
6717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6718 cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h. */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6725 /* Override any gcc2 internal prototype to avoid an error. */
6726 #ifdef __cplusplus
6727 extern "C"
6728 #endif
6729 /* We use char because int might match the return type of a gcc2
6730 builtin and then its argument prototype would still apply. */
6731 char ldexp ();
6733 main ()
6735 ldexp ();
6737 return 0;
6739 _ACEOF
6740 rm -f conftest.$ac_objext conftest$ac_exeext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742 (eval $ac_link) 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_c_werror_flag"
6750 || test ! -s conftest.err'
6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 (eval $ac_try) 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; } &&
6756 { ac_try='test -s conftest$ac_exeext'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 (eval $ac_try) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
6762 ac_cv_search_ldexp="-l$ac_lib"
6763 break
6764 else
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6769 rm -f conftest.err conftest.$ac_objext \
6770 conftest$ac_exeext conftest.$ac_ext
6771 done
6773 LIBS=$ac_func_search_save_LIBS
6775 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6776 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6777 if test "$ac_cv_search_ldexp" != no; then
6778 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6782 LDEXP_LIB="$LIBS"
6783 LIBS="$save_LIBS"
6786 # Use <inttypes.h> only if it exists,
6787 # doesn't clash with <sys/types.h>, and declares intmax_t.
6788 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6789 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6790 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 cat >conftest.$ac_ext <<_ACEOF
6794 /* confdefs.h. */
6795 _ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h. */
6799 #include <sys/types.h>
6800 #include <inttypes.h>
6802 main ()
6804 intmax_t i = -1;
6806 return 0;
6808 _ACEOF
6809 rm -f conftest.$ac_objext
6810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6811 (eval $ac_compile) 2>conftest.er1
6812 ac_status=$?
6813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
6818 { ac_try='test -z "$ac_c_werror_flag"
6819 || test ! -s conftest.err'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 (eval $ac_try) 2>&5
6822 ac_status=$?
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; } &&
6825 { ac_try='test -s conftest.$ac_objext'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 (eval $ac_try) 2>&5
6828 ac_status=$?
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6831 gcc_cv_header_inttypes_h=yes
6832 else
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6836 gcc_cv_header_inttypes_h=no
6838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6841 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6842 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6843 if test $gcc_cv_header_inttypes_h = yes; then
6845 cat >>confdefs.h <<\_ACEOF
6846 #define HAVE_INTTYPES_H 1
6847 _ACEOF
6877 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6878 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6879 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6880 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6881 setlocale
6883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6884 echo "$as_me:$LINENO: checking for $ac_func" >&5
6885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6886 if eval "test \"\${$as_ac_var+set}\" = set"; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889 cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h. */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6897 #define $ac_func innocuous_$ac_func
6899 /* System header to define __stub macros and hopefully few prototypes,
6900 which can conflict with char $ac_func (); below.
6901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6902 <limits.h> exists even on freestanding compilers. */
6904 #ifdef __STDC__
6905 # include <limits.h>
6906 #else
6907 # include <assert.h>
6908 #endif
6910 #undef $ac_func
6912 /* Override any gcc2 internal prototype to avoid an error. */
6913 #ifdef __cplusplus
6914 extern "C"
6916 #endif
6917 /* We use char because int might match the return type of a gcc2
6918 builtin and then its argument prototype would still apply. */
6919 char $ac_func ();
6920 /* The GNU C library defines this for functions which it implements
6921 to always fail with ENOSYS. Some functions are actually named
6922 something starting with __ and the normal name is an alias. */
6923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6924 choke me
6925 #else
6926 char (*f) () = $ac_func;
6927 #endif
6928 #ifdef __cplusplus
6930 #endif
6933 main ()
6935 return f != $ac_func;
6937 return 0;
6939 _ACEOF
6940 rm -f conftest.$ac_objext conftest$ac_exeext
6941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6942 (eval $ac_link) 2>conftest.er1
6943 ac_status=$?
6944 grep -v '^ *+' conftest.er1 >conftest.err
6945 rm -f conftest.er1
6946 cat conftest.err >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } &&
6949 { ac_try='test -z "$ac_c_werror_flag"
6950 || test ! -s conftest.err'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; } &&
6956 { ac_try='test -s conftest$ac_exeext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 eval "$as_ac_var=yes"
6963 else
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6967 eval "$as_ac_var=no"
6969 rm -f conftest.err conftest.$ac_objext \
6970 conftest$ac_exeext conftest.$ac_ext
6972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6974 if test `eval echo '${'$as_ac_var'}'` = yes; then
6975 cat >>confdefs.h <<_ACEOF
6976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6977 _ACEOF
6980 done
6983 if test x$ac_cv_func_mbstowcs = xyes; then
6984 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6985 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6986 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 if test "$cross_compiling" = yes; then
6990 gcc_cv_func_mbstowcs_works=yes
6991 else
6992 cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h. */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 #include <stdlib.h>
6999 int main()
7001 mbstowcs(0, "", 0);
7002 return 0;
7004 _ACEOF
7005 rm -f conftest$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 gcc_cv_func_mbstowcs_works=yes
7017 else
7018 echo "$as_me: program exited with status $ac_status" >&5
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7022 ( exit $ac_status )
7023 gcc_cv_func_mbstowcs_works=no
7025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7028 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
7029 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
7030 if test x$gcc_cv_func_mbstowcs_works = xyes; then
7032 cat >>confdefs.h <<\_ACEOF
7033 #define HAVE_WORKING_MBSTOWCS 1
7034 _ACEOF
7039 echo "$as_me:$LINENO: checking for ssize_t" >&5
7040 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7041 if test "${ac_cv_type_ssize_t+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044 cat >conftest.$ac_ext <<_ACEOF
7045 /* confdefs.h. */
7046 _ACEOF
7047 cat confdefs.h >>conftest.$ac_ext
7048 cat >>conftest.$ac_ext <<_ACEOF
7049 /* end confdefs.h. */
7050 $ac_includes_default
7052 main ()
7054 if ((ssize_t *) 0)
7055 return 0;
7056 if (sizeof (ssize_t))
7057 return 0;
7059 return 0;
7061 _ACEOF
7062 rm -f conftest.$ac_objext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064 (eval $ac_compile) 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try='test -z "$ac_c_werror_flag"
7072 || test ! -s conftest.err'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 (eval $ac_try) 2>&5
7075 ac_status=$?
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; } &&
7078 { ac_try='test -s conftest.$ac_objext'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 (eval $ac_try) 2>&5
7081 ac_status=$?
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; }; then
7084 ac_cv_type_ssize_t=yes
7085 else
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 ac_cv_type_ssize_t=no
7091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7093 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7094 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7095 if test $ac_cv_type_ssize_t = yes; then
7097 else
7099 cat >>confdefs.h <<_ACEOF
7100 #define ssize_t int
7101 _ACEOF
7106 # Try to determine the array type of the second argument of getgroups
7107 # for the target system (int or gid_t).
7108 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7109 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7110 if test "${ac_cv_type_uid_t+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h. */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 #include <sys/types.h>
7121 _ACEOF
7122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7123 $EGREP "uid_t" >/dev/null 2>&1; then
7124 ac_cv_type_uid_t=yes
7125 else
7126 ac_cv_type_uid_t=no
7128 rm -f conftest*
7131 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7132 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7133 if test $ac_cv_type_uid_t = no; then
7135 cat >>confdefs.h <<\_ACEOF
7136 #define uid_t int
7137 _ACEOF
7140 cat >>confdefs.h <<\_ACEOF
7141 #define gid_t int
7142 _ACEOF
7146 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7147 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7148 if test "${ac_cv_type_getgroups+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151 if test "$cross_compiling" = yes; then
7152 ac_cv_type_getgroups=cross
7153 else
7154 cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h. */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 /* Thanks to Mike Rendell for this test. */
7161 #include <sys/types.h>
7162 #define NGID 256
7163 #undef MAX
7164 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7167 main ()
7169 gid_t gidset[NGID];
7170 int i, n;
7171 union { gid_t gval; long lval; } val;
7173 val.lval = -1;
7174 for (i = 0; i < NGID; i++)
7175 gidset[i] = val.gval;
7176 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7177 gidset);
7178 /* Exit non-zero if getgroups seems to require an array of ints. This
7179 happens when gid_t is short but getgroups modifies an array of ints. */
7180 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7182 _ACEOF
7183 rm -f conftest$ac_exeext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7185 (eval $ac_link) 2>&5
7186 ac_status=$?
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 (eval $ac_try) 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 ac_cv_type_getgroups=gid_t
7195 else
7196 echo "$as_me: program exited with status $ac_status" >&5
7197 echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.$ac_ext >&5
7200 ( exit $ac_status )
7201 ac_cv_type_getgroups=int
7203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7205 if test $ac_cv_type_getgroups = cross; then
7206 cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h. */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 #include <unistd.h>
7214 _ACEOF
7215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7216 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7217 ac_cv_type_getgroups=gid_t
7218 else
7219 ac_cv_type_getgroups=int
7221 rm -f conftest*
7225 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7226 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7228 cat >>confdefs.h <<_ACEOF
7229 #define GETGROUPS_T $ac_cv_type_getgroups
7230 _ACEOF
7233 if test "${target}" = "${build}"; then
7234 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7235 else
7236 case "${target}" in
7237 # This condition may need some tweaking. It should include all
7238 # targets where the array type of the second argument of getgroups
7239 # is int and the type of gid_t is not equivalent to int.
7240 *-*-sunos* | *-*-ultrix*)
7241 TARGET_GETGROUPS_T=int
7244 TARGET_GETGROUPS_T=gid_t
7246 esac
7250 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7251 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7252 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255 if test "$cross_compiling" = yes; then
7256 gcc_cv_func_printf_ptr=no
7257 else
7258 cat >conftest.$ac_ext <<_ACEOF
7259 /* confdefs.h. */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 #include <stdio.h>
7266 int main()
7268 char buf[64];
7269 char *p = buf, *q = NULL;
7270 sprintf(buf, "%p", p);
7271 sscanf(buf, "%p", &q);
7272 return (p != q);
7274 _ACEOF
7275 rm -f conftest$ac_exeext
7276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7277 (eval $ac_link) 2>&5
7278 ac_status=$?
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 (eval $ac_try) 2>&5
7283 ac_status=$?
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 gcc_cv_func_printf_ptr=yes
7287 else
7288 echo "$as_me: program exited with status $ac_status" >&5
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7292 ( exit $ac_status )
7293 gcc_cv_func_printf_ptr=no
7295 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7297 rm -f core core.* *.core
7299 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7300 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7301 if test $gcc_cv_func_printf_ptr = yes ; then
7303 cat >>confdefs.h <<\_ACEOF
7304 #define HAVE_PRINTF_PTR 1
7305 _ACEOF
7310 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
7311 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
7312 if test "${ac_cv_header_sys_mman_h+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315 cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h. */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 #include <sys/mman.h>
7322 _ACEOF
7323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7325 ac_status=$?
7326 grep -v '^ *+' conftest.er1 >conftest.err
7327 rm -f conftest.er1
7328 cat conftest.err >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } >/dev/null; then
7331 if test -s conftest.err; then
7332 ac_cpp_err=$ac_c_preproc_warn_flag
7333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7334 else
7335 ac_cpp_err=
7337 else
7338 ac_cpp_err=yes
7340 if test -z "$ac_cpp_err"; then
7341 ac_cv_header_sys_mman_h=yes
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7346 ac_cv_header_sys_mman_h=no
7348 rm -f conftest.err conftest.$ac_ext
7350 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
7351 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
7352 if test $ac_cv_header_sys_mman_h = yes; then
7353 gcc_header_sys_mman_h=yes
7354 else
7355 gcc_header_sys_mman_h=no
7358 echo "$as_me:$LINENO: checking for mmap" >&5
7359 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
7360 if test "${ac_cv_func_mmap+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363 cat >conftest.$ac_ext <<_ACEOF
7364 /* confdefs.h. */
7365 _ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7369 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
7370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7371 #define mmap innocuous_mmap
7373 /* System header to define __stub macros and hopefully few prototypes,
7374 which can conflict with char mmap (); below.
7375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7376 <limits.h> exists even on freestanding compilers. */
7378 #ifdef __STDC__
7379 # include <limits.h>
7380 #else
7381 # include <assert.h>
7382 #endif
7384 #undef mmap
7386 /* Override any gcc2 internal prototype to avoid an error. */
7387 #ifdef __cplusplus
7388 extern "C"
7390 #endif
7391 /* We use char because int might match the return type of a gcc2
7392 builtin and then its argument prototype would still apply. */
7393 char mmap ();
7394 /* The GNU C library defines this for functions which it implements
7395 to always fail with ENOSYS. Some functions are actually named
7396 something starting with __ and the normal name is an alias. */
7397 #if defined (__stub_mmap) || defined (__stub___mmap)
7398 choke me
7399 #else
7400 char (*f) () = mmap;
7401 #endif
7402 #ifdef __cplusplus
7404 #endif
7407 main ()
7409 return f != mmap;
7411 return 0;
7413 _ACEOF
7414 rm -f conftest.$ac_objext conftest$ac_exeext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7416 (eval $ac_link) 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try='test -z "$ac_c_werror_flag"
7424 || test ! -s conftest.err'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 (eval $ac_try) 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try='test -s conftest$ac_exeext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 (eval $ac_try) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_cv_func_mmap=yes
7437 else
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7441 ac_cv_func_mmap=no
7443 rm -f conftest.err conftest.$ac_objext \
7444 conftest$ac_exeext conftest.$ac_ext
7446 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
7447 echo "${ECHO_T}$ac_cv_func_mmap" >&6
7448 if test $ac_cv_func_mmap = yes; then
7449 gcc_func_mmap=yes
7450 else
7451 gcc_func_mmap=no
7454 if test "$gcc_header_sys_mman_h" != yes \
7455 || test "$gcc_func_mmap" != yes; then
7456 gcc_cv_func_mmap_file=no
7457 gcc_cv_func_mmap_dev_zero=no
7458 gcc_cv_func_mmap_anon=no
7459 else
7460 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7461 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7462 if test "${gcc_cv_func_mmap_file+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465 # Add a system to this blacklist if
7466 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7467 # memory area containing the same data that you'd get if you applied
7468 # read() to the same fd. The only system known to have a problem here
7469 # is VMS, where text files have record structure.
7470 case "$host_os" in
7471 vms* | ultrix*)
7472 gcc_cv_func_mmap_file=no ;;
7474 gcc_cv_func_mmap_file=yes;;
7475 esac
7477 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7478 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7479 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7480 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7481 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484 # Add a system to this blacklist if it has mmap() but /dev/zero
7485 # does not exist, or if mmapping /dev/zero does not give anonymous
7486 # zeroed pages with both the following properties:
7487 # 1. If you map N consecutive pages in with one call, and then
7488 # unmap any subset of those pages, the pages that were not
7489 # explicitly unmapped remain accessible.
7490 # 2. If you map two adjacent blocks of memory and then unmap them
7491 # both at once, they must both go away.
7492 # Systems known to be in this category are Windows (all variants),
7493 # VMS, and Darwin.
7494 case "$host_os" in
7495 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7496 gcc_cv_func_mmap_dev_zero=no ;;
7498 gcc_cv_func_mmap_dev_zero=yes;;
7499 esac
7501 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7502 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7504 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7505 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7506 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7507 if test "${gcc_cv_decl_map_anon+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510 cat >conftest.$ac_ext <<_ACEOF
7511 /* confdefs.h. */
7512 _ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 #include <sys/types.h>
7517 #include <sys/mman.h>
7518 #include <unistd.h>
7520 #ifndef MAP_ANONYMOUS
7521 #define MAP_ANONYMOUS MAP_ANON
7522 #endif
7525 main ()
7527 int n = MAP_ANONYMOUS;
7529 return 0;
7531 _ACEOF
7532 rm -f conftest.$ac_objext
7533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7534 (eval $ac_compile) 2>conftest.er1
7535 ac_status=$?
7536 grep -v '^ *+' conftest.er1 >conftest.err
7537 rm -f conftest.er1
7538 cat conftest.err >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try='test -z "$ac_c_werror_flag"
7542 || test ! -s conftest.err'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 (eval $ac_try) 2>&5
7545 ac_status=$?
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; } &&
7548 { ac_try='test -s conftest.$ac_objext'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
7554 gcc_cv_decl_map_anon=yes
7555 else
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7559 gcc_cv_decl_map_anon=no
7561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7563 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7564 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7566 if test $gcc_cv_decl_map_anon = no; then
7567 gcc_cv_func_mmap_anon=no
7568 else
7569 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7570 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7571 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7575 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7576 # doesn't give anonymous zeroed pages with the same properties listed
7577 # above for use of /dev/zero.
7578 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7579 case "$host_os" in
7580 vms* | cygwin* | pe | mingw* | sco* | udk* )
7581 gcc_cv_func_mmap_anon=no ;;
7583 gcc_cv_func_mmap_anon=yes;;
7584 esac
7586 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7587 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7591 if test $gcc_cv_func_mmap_file = yes; then
7593 cat >>confdefs.h <<\_ACEOF
7594 #define HAVE_MMAP_FILE 1
7595 _ACEOF
7598 if test $gcc_cv_func_mmap_dev_zero = yes; then
7600 cat >>confdefs.h <<\_ACEOF
7601 #define HAVE_MMAP_DEV_ZERO 1
7602 _ACEOF
7605 if test $gcc_cv_func_mmap_anon = yes; then
7607 cat >>confdefs.h <<\_ACEOF
7608 #define HAVE_MMAP_ANON 1
7609 _ACEOF
7614 case "${host}" in
7615 *-*-*vms*)
7616 # Under VMS, vfork works very differently than on Unix. The standard test
7617 # won't work, and it isn't easily adaptable. It makes more sense to
7618 # just force it.
7619 ac_cv_func_vfork_works=yes
7621 esac
7622 echo "$as_me:$LINENO: checking for pid_t" >&5
7623 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7624 if test "${ac_cv_type_pid_t+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h. */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7633 $ac_includes_default
7635 main ()
7637 if ((pid_t *) 0)
7638 return 0;
7639 if (sizeof (pid_t))
7640 return 0;
7642 return 0;
7644 _ACEOF
7645 rm -f conftest.$ac_objext
7646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647 (eval $ac_compile) 2>conftest.er1
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } &&
7654 { ac_try='test -z "$ac_c_werror_flag"
7655 || test ! -s conftest.err'
7656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 (eval $ac_try) 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; } &&
7661 { ac_try='test -s conftest.$ac_objext'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 (eval $ac_try) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; }; then
7667 ac_cv_type_pid_t=yes
7668 else
7669 echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7672 ac_cv_type_pid_t=no
7674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7676 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7677 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7678 if test $ac_cv_type_pid_t = yes; then
7680 else
7682 cat >>confdefs.h <<_ACEOF
7683 #define pid_t int
7684 _ACEOF
7690 for ac_header in unistd.h vfork.h
7692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7693 echo "$as_me:$LINENO: checking for $ac_header" >&5
7694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 else
7698 cat >conftest.$ac_ext <<_ACEOF
7699 /* confdefs.h. */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7704 #include <$ac_header>
7705 _ACEOF
7706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7708 ac_status=$?
7709 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } >/dev/null; then
7714 if test -s conftest.err; then
7715 ac_cpp_err=$ac_c_preproc_warn_flag
7716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7717 else
7718 ac_cpp_err=
7720 else
7721 ac_cpp_err=yes
7723 if test -z "$ac_cpp_err"; then
7724 eval "$as_ac_Header=yes"
7725 else
7726 echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7729 eval "$as_ac_Header=no"
7731 rm -f conftest.err conftest.$ac_ext
7733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7736 cat >>confdefs.h <<_ACEOF
7737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7738 _ACEOF
7741 done
7745 for ac_func in fork vfork
7747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7748 echo "$as_me:$LINENO: checking for $ac_func" >&5
7749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7750 if eval "test \"\${$as_ac_var+set}\" = set"; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753 cat >conftest.$ac_ext <<_ACEOF
7754 /* confdefs.h. */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7761 #define $ac_func innocuous_$ac_func
7763 /* System header to define __stub macros and hopefully few prototypes,
7764 which can conflict with char $ac_func (); below.
7765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7766 <limits.h> exists even on freestanding compilers. */
7768 #ifdef __STDC__
7769 # include <limits.h>
7770 #else
7771 # include <assert.h>
7772 #endif
7774 #undef $ac_func
7776 /* Override any gcc2 internal prototype to avoid an error. */
7777 #ifdef __cplusplus
7778 extern "C"
7780 #endif
7781 /* We use char because int might match the return type of a gcc2
7782 builtin and then its argument prototype would still apply. */
7783 char $ac_func ();
7784 /* The GNU C library defines this for functions which it implements
7785 to always fail with ENOSYS. Some functions are actually named
7786 something starting with __ and the normal name is an alias. */
7787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7788 choke me
7789 #else
7790 char (*f) () = $ac_func;
7791 #endif
7792 #ifdef __cplusplus
7794 #endif
7797 main ()
7799 return f != $ac_func;
7801 return 0;
7803 _ACEOF
7804 rm -f conftest.$ac_objext conftest$ac_exeext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7806 (eval $ac_link) 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -z "$ac_c_werror_flag"
7814 || test ! -s conftest.err'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816 (eval $ac_try) 2>&5
7817 ac_status=$?
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; } &&
7820 { ac_try='test -s conftest$ac_exeext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 eval "$as_ac_var=yes"
7827 else
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 eval "$as_ac_var=no"
7833 rm -f conftest.err conftest.$ac_objext \
7834 conftest$ac_exeext conftest.$ac_ext
7836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7838 if test `eval echo '${'$as_ac_var'}'` = yes; then
7839 cat >>confdefs.h <<_ACEOF
7840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7841 _ACEOF
7844 done
7846 if test "x$ac_cv_func_fork" = xyes; then
7847 echo "$as_me:$LINENO: checking for working fork" >&5
7848 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7849 if test "${ac_cv_func_fork_works+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852 if test "$cross_compiling" = yes; then
7853 ac_cv_func_fork_works=cross
7854 else
7855 cat >conftest.$ac_ext <<_ACEOF
7856 /* By Ruediger Kuhlmann. */
7857 #include <sys/types.h>
7858 #if HAVE_UNISTD_H
7859 # include <unistd.h>
7860 #endif
7861 /* Some systems only have a dummy stub for fork() */
7862 int main ()
7864 if (fork() < 0)
7865 exit (1);
7866 exit (0);
7868 _ACEOF
7869 rm -f conftest$ac_exeext
7870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7871 (eval $ac_link) 2>&5
7872 ac_status=$?
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 (eval $ac_try) 2>&5
7877 ac_status=$?
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7880 ac_cv_func_fork_works=yes
7881 else
7882 echo "$as_me: program exited with status $ac_status" >&5
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7886 ( exit $ac_status )
7887 ac_cv_func_fork_works=no
7889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7892 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7893 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7895 else
7896 ac_cv_func_fork_works=$ac_cv_func_fork
7898 if test "x$ac_cv_func_fork_works" = xcross; then
7899 case $host in
7900 *-*-amigaos* | *-*-msdosdjgpp*)
7901 # Override, as these systems have only a dummy fork() stub
7902 ac_cv_func_fork_works=no
7905 ac_cv_func_fork_works=yes
7907 esac
7908 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7909 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7911 ac_cv_func_vfork_works=$ac_cv_func_vfork
7912 if test "x$ac_cv_func_vfork" = xyes; then
7913 echo "$as_me:$LINENO: checking for working vfork" >&5
7914 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7915 if test "${ac_cv_func_vfork_works+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918 if test "$cross_compiling" = yes; then
7919 ac_cv_func_vfork_works=cross
7920 else
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 /* Thanks to Paul Eggert for this test. */
7928 #include <stdio.h>
7929 #include <stdlib.h>
7930 #include <sys/types.h>
7931 #include <sys/stat.h>
7932 #include <sys/wait.h>
7933 #if HAVE_UNISTD_H
7934 # include <unistd.h>
7935 #endif
7936 #if HAVE_VFORK_H
7937 # include <vfork.h>
7938 #endif
7939 /* On some sparc systems, changes by the child to local and incoming
7940 argument registers are propagated back to the parent. The compiler
7941 is told about this with #include <vfork.h>, but some compilers
7942 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7943 static variable whose address is put into a register that is
7944 clobbered by the vfork. */
7945 static void
7946 #ifdef __cplusplus
7947 sparc_address_test (int arg)
7948 # else
7949 sparc_address_test (arg) int arg;
7950 #endif
7952 static pid_t child;
7953 if (!child) {
7954 child = vfork ();
7955 if (child < 0) {
7956 perror ("vfork");
7957 _exit(2);
7959 if (!child) {
7960 arg = getpid();
7961 write(-1, "", 0);
7962 _exit (arg);
7968 main ()
7970 pid_t parent = getpid ();
7971 pid_t child;
7973 sparc_address_test (0);
7975 child = vfork ();
7977 if (child == 0) {
7978 /* Here is another test for sparc vfork register problems. This
7979 test uses lots of local variables, at least as many local
7980 variables as main has allocated so far including compiler
7981 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7982 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7983 reuse the register of parent for one of the local variables,
7984 since it will think that parent can't possibly be used any more
7985 in this routine. Assigning to the local variable will thus
7986 munge parent in the parent process. */
7987 pid_t
7988 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7989 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7990 /* Convince the compiler that p..p7 are live; otherwise, it might
7991 use the same hardware register for all 8 local variables. */
7992 if (p != p1 || p != p2 || p != p3 || p != p4
7993 || p != p5 || p != p6 || p != p7)
7994 _exit(1);
7996 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7997 from child file descriptors. If the child closes a descriptor
7998 before it execs or exits, this munges the parent's descriptor
7999 as well. Test for this by closing stdout in the child. */
8000 _exit(close(fileno(stdout)) != 0);
8001 } else {
8002 int status;
8003 struct stat st;
8005 while (wait(&status) != child)
8007 exit(
8008 /* Was there some problem with vforking? */
8009 child < 0
8011 /* Did the child fail? (This shouldn't happen.) */
8012 || status
8014 /* Did the vfork/compiler bug occur? */
8015 || parent != getpid()
8017 /* Did the file descriptor bug occur? */
8018 || fstat(fileno(stdout), &st) != 0
8022 _ACEOF
8023 rm -f conftest$ac_exeext
8024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8025 (eval $ac_link) 2>&5
8026 ac_status=$?
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 (eval $ac_try) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
8034 ac_cv_func_vfork_works=yes
8035 else
8036 echo "$as_me: program exited with status $ac_status" >&5
8037 echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8040 ( exit $ac_status )
8041 ac_cv_func_vfork_works=no
8043 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8046 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8047 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8050 if test "x$ac_cv_func_fork_works" = xcross; then
8051 ac_cv_func_vfork_works=$ac_cv_func_vfork
8052 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8053 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8056 if test "x$ac_cv_func_vfork_works" = xyes; then
8058 cat >>confdefs.h <<\_ACEOF
8059 #define HAVE_WORKING_VFORK 1
8060 _ACEOF
8062 else
8064 cat >>confdefs.h <<\_ACEOF
8065 #define vfork fork
8066 _ACEOF
8069 if test "x$ac_cv_func_fork_works" = xyes; then
8071 cat >>confdefs.h <<\_ACEOF
8072 #define HAVE_WORKING_FORK 1
8073 _ACEOF
8080 am_cv_lib_iconv_ldpath=
8082 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8083 if test "${with_libiconv_prefix+set}" = set; then
8084 withval="$with_libiconv_prefix"
8086 for dir in `echo "$withval" | tr : ' '`; do
8087 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
8088 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
8089 done
8094 for ac_header in iconv.h
8096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8097 echo "$as_me:$LINENO: checking for $ac_header" >&5
8098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102 cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h. */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8108 #include <$ac_header>
8109 _ACEOF
8110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } >/dev/null; then
8118 if test -s conftest.err; then
8119 ac_cpp_err=$ac_c_preproc_warn_flag
8120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8121 else
8122 ac_cpp_err=
8124 else
8125 ac_cpp_err=yes
8127 if test -z "$ac_cpp_err"; then
8128 eval "$as_ac_Header=yes"
8129 else
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8133 eval "$as_ac_Header=no"
8135 rm -f conftest.err conftest.$ac_ext
8137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8140 cat >>confdefs.h <<_ACEOF
8141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8142 _ACEOF
8145 done
8148 echo "$as_me:$LINENO: checking for iconv" >&5
8149 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8150 if test "${am_cv_func_iconv+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8154 am_cv_func_iconv="no, consider installing GNU libiconv"
8155 am_cv_lib_iconv=no
8156 cat >conftest.$ac_ext <<_ACEOF
8157 /* confdefs.h. */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8162 #include <stdlib.h>
8163 #include <iconv.h>
8165 main ()
8167 iconv_t cd = iconv_open("","");
8168 iconv(cd,NULL,NULL,NULL,NULL);
8169 iconv_close(cd);
8171 return 0;
8173 _ACEOF
8174 rm -f conftest.$ac_objext conftest$ac_exeext
8175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8176 (eval $ac_link) 2>conftest.er1
8177 ac_status=$?
8178 grep -v '^ *+' conftest.er1 >conftest.err
8179 rm -f conftest.er1
8180 cat conftest.err >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } &&
8183 { ac_try='test -z "$ac_c_werror_flag"
8184 || test ! -s conftest.err'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; } &&
8190 { ac_try='test -s conftest$ac_exeext'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 (eval $ac_try) 2>&5
8193 ac_status=$?
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8196 am_cv_func_iconv=yes
8197 else
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8202 rm -f conftest.err conftest.$ac_objext \
8203 conftest$ac_exeext conftest.$ac_ext
8204 if test "$am_cv_func_iconv" != yes; then
8205 am_save_LIBS="$LIBS"
8206 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8207 cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h. */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213 #include <stdlib.h>
8214 #include <iconv.h>
8216 main ()
8218 iconv_t cd = iconv_open("","");
8219 iconv(cd,NULL,NULL,NULL,NULL);
8220 iconv_close(cd);
8222 return 0;
8224 _ACEOF
8225 rm -f conftest.$ac_objext conftest$ac_exeext
8226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8227 (eval $ac_link) 2>conftest.er1
8228 ac_status=$?
8229 grep -v '^ *+' conftest.er1 >conftest.err
8230 rm -f conftest.er1
8231 cat conftest.err >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
8234 { ac_try='test -z "$ac_c_werror_flag"
8235 || test ! -s conftest.err'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 (eval $ac_try) 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; } &&
8241 { ac_try='test -s conftest$ac_exeext'
8242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 (eval $ac_try) 2>&5
8244 ac_status=$?
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; }; then
8247 am_cv_lib_iconv=yes
8248 am_cv_func_iconv=yes
8249 else
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8254 rm -f conftest.err conftest.$ac_objext \
8255 conftest$ac_exeext conftest.$ac_ext
8256 LIBS="$am_save_LIBS"
8260 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8261 echo "${ECHO_T}$am_cv_func_iconv" >&6
8262 if test "$am_cv_func_iconv" = yes; then
8264 cat >>confdefs.h <<\_ACEOF
8265 #define HAVE_ICONV 1
8266 _ACEOF
8268 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8269 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8270 if test "${am_cv_proto_iconv+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8274 cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h. */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8281 #include <stdlib.h>
8282 #include <iconv.h>
8283 extern
8284 #ifdef __cplusplus
8286 #endif
8287 #if defined(__STDC__) || defined(__cplusplus)
8288 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8289 #else
8290 size_t iconv();
8291 #endif
8294 main ()
8298 return 0;
8300 _ACEOF
8301 rm -f conftest.$ac_objext
8302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8303 (eval $ac_compile) 2>conftest.er1
8304 ac_status=$?
8305 grep -v '^ *+' conftest.er1 >conftest.err
8306 rm -f conftest.er1
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try='test -z "$ac_c_werror_flag"
8311 || test ! -s conftest.err'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 (eval $ac_try) 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; } &&
8317 { ac_try='test -s conftest.$ac_objext'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 (eval $ac_try) 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 am_cv_proto_iconv_arg1=""
8324 else
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 am_cv_proto_iconv_arg1="const"
8330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8331 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);"
8334 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8335 echo "$as_me:$LINENO: result: ${ac_t:-
8336 }$am_cv_proto_iconv" >&5
8337 echo "${ECHO_T}${ac_t:-
8338 }$am_cv_proto_iconv" >&6
8340 cat >>confdefs.h <<_ACEOF
8341 #define ICONV_CONST $am_cv_proto_iconv_arg1
8342 _ACEOF
8345 LIBICONV=
8346 if test "$am_cv_lib_iconv" = yes; then
8347 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8351 # Until we have in-tree GNU iconv:
8352 LIBICONV_DEP=
8356 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8357 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8358 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361 cat >conftest.$ac_ext <<_ACEOF
8362 /* confdefs.h. */
8363 _ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8367 #include <locale.h>
8369 main ()
8371 return LC_MESSAGES
8373 return 0;
8375 _ACEOF
8376 rm -f conftest.$ac_objext conftest$ac_exeext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8378 (eval $ac_link) 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -z "$ac_c_werror_flag"
8386 || test ! -s conftest.err'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 (eval $ac_try) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } &&
8392 { ac_try='test -s conftest$ac_exeext'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 (eval $ac_try) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8398 am_cv_val_LC_MESSAGES=yes
8399 else
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8403 am_cv_val_LC_MESSAGES=no
8405 rm -f conftest.err conftest.$ac_objext \
8406 conftest$ac_exeext conftest.$ac_ext
8408 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8409 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8410 if test $am_cv_val_LC_MESSAGES = yes; then
8412 cat >>confdefs.h <<\_ACEOF
8413 #define HAVE_LC_MESSAGES 1
8414 _ACEOF
8419 # We will need to find libiberty.h and ansidecl.h
8420 saved_CFLAGS="$CFLAGS"
8421 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8446 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8447 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8448 fprintf_unlocked strstr errno snprintf vasprintf \
8449 malloc realloc calloc free basename getopt clock getpagesize
8451 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8452 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8453 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8454 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h. */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8463 #undef $ac_tr_decl
8464 #define $ac_tr_decl 1
8466 #include "ansidecl.h"
8467 #include "system.h"
8470 main ()
8472 #ifndef $ac_func
8473 char *(*pfn) = (char *(*)) $ac_func ;
8474 #endif
8476 return 0;
8478 _ACEOF
8479 rm -f conftest.$ac_objext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8481 (eval $ac_compile) 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -z "$ac_c_werror_flag"
8489 || test ! -s conftest.err'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 (eval $ac_try) 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; } &&
8495 { ac_try='test -s conftest.$ac_objext'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 (eval $ac_try) 2>&5
8498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8501 eval "gcc_cv_have_decl_$ac_func=yes"
8502 else
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8506 eval "gcc_cv_have_decl_$ac_func=no"
8508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8511 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8512 echo "$as_me:$LINENO: result: yes" >&5
8513 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8514 #define $ac_tr_decl 1
8515 _ACEOF
8517 else
8518 echo "$as_me:$LINENO: result: no" >&5
8519 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8520 #define $ac_tr_decl 0
8521 _ACEOF
8525 done
8531 for ac_func in getrlimit setrlimit getrusage
8533 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8534 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8535 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8536 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h. */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545 #undef $ac_tr_decl
8546 #define $ac_tr_decl 1
8548 #include "ansidecl.h"
8549 #include "system.h"
8550 #ifdef HAVE_SYS_RESOURCE_H
8551 #include <sys/resource.h>
8552 #endif
8556 main ()
8558 #ifndef $ac_func
8559 char *(*pfn) = (char *(*)) $ac_func ;
8560 #endif
8562 return 0;
8564 _ACEOF
8565 rm -f conftest.$ac_objext
8566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8567 (eval $ac_compile) 2>conftest.er1
8568 ac_status=$?
8569 grep -v '^ *+' conftest.er1 >conftest.err
8570 rm -f conftest.er1
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try='test -z "$ac_c_werror_flag"
8575 || test ! -s conftest.err'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 (eval $ac_try) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; } &&
8581 { ac_try='test -s conftest.$ac_objext'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
8587 eval "gcc_cv_have_decl_$ac_func=yes"
8588 else
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8592 eval "gcc_cv_have_decl_$ac_func=no"
8594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8597 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8598 echo "$as_me:$LINENO: result: yes" >&5
8599 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8600 #define $ac_tr_decl 1
8601 _ACEOF
8603 else
8604 echo "$as_me:$LINENO: result: no" >&5
8605 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8606 #define $ac_tr_decl 0
8607 _ACEOF
8611 done
8614 cat >conftest.$ac_ext <<_ACEOF
8615 /* confdefs.h. */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8621 #include "ansidecl.h"
8622 #include "system.h"
8623 #ifdef HAVE_SYS_RESOURCE_H
8624 #include <sys/resource.h>
8625 #endif
8628 main ()
8630 rlim_t l = 0;
8632 return 0;
8634 _ACEOF
8635 rm -f conftest.$ac_objext
8636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8637 (eval $ac_compile) 2>conftest.er1
8638 ac_status=$?
8639 grep -v '^ *+' conftest.er1 >conftest.err
8640 rm -f conftest.er1
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } &&
8644 { ac_try='test -z "$ac_c_werror_flag"
8645 || test ! -s conftest.err'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 (eval $ac_try) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; } &&
8651 { ac_try='test -s conftest.$ac_objext'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 (eval $ac_try) 2>&5
8654 ac_status=$?
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; }; then
8658 else
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8663 cat >>confdefs.h <<\_ACEOF
8664 #define rlim_t long
8665 _ACEOF
8668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8671 for ac_func in ldgetname
8673 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8674 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8675 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8676 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 #undef $ac_tr_decl
8686 #define $ac_tr_decl 1
8688 #include "ansidecl.h"
8689 #include "system.h"
8690 #ifdef HAVE_LDFCN_H
8691 #include <ldfcn.h>
8692 #endif
8696 main ()
8698 #ifndef $ac_func
8699 char *(*pfn) = (char *(*)) $ac_func ;
8700 #endif
8702 return 0;
8704 _ACEOF
8705 rm -f conftest.$ac_objext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8707 (eval $ac_compile) 2>conftest.er1
8708 ac_status=$?
8709 grep -v '^ *+' conftest.er1 >conftest.err
8710 rm -f conftest.er1
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } &&
8714 { ac_try='test -z "$ac_c_werror_flag"
8715 || test ! -s conftest.err'
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); }; } &&
8721 { ac_try='test -s conftest.$ac_objext'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 (eval $ac_try) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; }; then
8727 eval "gcc_cv_have_decl_$ac_func=yes"
8728 else
8729 echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8732 eval "gcc_cv_have_decl_$ac_func=no"
8734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8737 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8738 echo "$as_me:$LINENO: result: yes" >&5
8739 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8740 #define $ac_tr_decl 1
8741 _ACEOF
8743 else
8744 echo "$as_me:$LINENO: result: no" >&5
8745 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8746 #define $ac_tr_decl 0
8747 _ACEOF
8751 done
8755 for ac_func in times
8757 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8758 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8759 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8760 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 else
8763 cat >conftest.$ac_ext <<_ACEOF
8764 /* confdefs.h. */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8769 #undef $ac_tr_decl
8770 #define $ac_tr_decl 1
8772 #include "ansidecl.h"
8773 #include "system.h"
8774 #ifdef HAVE_SYS_TIMES_H
8775 #include <sys/times.h>
8776 #endif
8780 main ()
8782 #ifndef $ac_func
8783 char *(*pfn) = (char *(*)) $ac_func ;
8784 #endif
8786 return 0;
8788 _ACEOF
8789 rm -f conftest.$ac_objext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8791 (eval $ac_compile) 2>conftest.er1
8792 ac_status=$?
8793 grep -v '^ *+' conftest.er1 >conftest.err
8794 rm -f conftest.er1
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try='test -z "$ac_c_werror_flag"
8799 || test ! -s conftest.err'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 (eval $ac_try) 2>&5
8802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; } &&
8805 { ac_try='test -s conftest.$ac_objext'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 (eval $ac_try) 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 eval "gcc_cv_have_decl_$ac_func=yes"
8812 else
8813 echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8816 eval "gcc_cv_have_decl_$ac_func=no"
8818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8821 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8822 echo "$as_me:$LINENO: result: yes" >&5
8823 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8824 #define $ac_tr_decl 1
8825 _ACEOF
8827 else
8828 echo "$as_me:$LINENO: result: no" >&5
8829 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8830 #define $ac_tr_decl 0
8831 _ACEOF
8835 done
8838 # More time-related stuff.
8839 echo "$as_me:$LINENO: checking for struct tms" >&5
8840 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8841 if test "${ac_cv_struct_tms+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8845 cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h. */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8852 #include "ansidecl.h"
8853 #include "system.h"
8854 #ifdef HAVE_SYS_TIMES_H
8855 #include <sys/times.h>
8856 #endif
8859 main ()
8861 struct tms tms;
8863 return 0;
8865 _ACEOF
8866 rm -f conftest.$ac_objext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8868 (eval $ac_compile) 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -z "$ac_c_werror_flag"
8876 || test ! -s conftest.err'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 (eval $ac_try) 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try='test -s conftest.$ac_objext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_cv_struct_tms=yes
8889 else
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8893 ac_cv_struct_tms=no
8895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8897 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8898 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8899 if test $ac_cv_struct_tms = yes; then
8901 cat >>confdefs.h <<\_ACEOF
8902 #define HAVE_STRUCT_TMS 1
8903 _ACEOF
8907 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8908 # revisit after autoconf 2.50.
8909 echo "$as_me:$LINENO: checking for clock_t" >&5
8910 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8911 if test "${gcc_cv_type_clock_t+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8913 else
8915 cat >conftest.$ac_ext <<_ACEOF
8916 /* confdefs.h. */
8917 _ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8922 #include "ansidecl.h"
8923 #include "system.h"
8926 main ()
8928 clock_t x;
8930 return 0;
8932 _ACEOF
8933 rm -f conftest.$ac_objext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8935 (eval $ac_compile) 2>conftest.er1
8936 ac_status=$?
8937 grep -v '^ *+' conftest.er1 >conftest.err
8938 rm -f conftest.er1
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -z "$ac_c_werror_flag"
8943 || test ! -s conftest.err'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 (eval $ac_try) 2>&5
8946 ac_status=$?
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; } &&
8949 { ac_try='test -s conftest.$ac_objext'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 (eval $ac_try) 2>&5
8952 ac_status=$?
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8955 gcc_cv_type_clock_t=yes
8956 else
8957 echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8960 gcc_cv_type_clock_t=no
8962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8964 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8965 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8966 if test $gcc_cv_type_clock_t = yes; then
8968 cat >>confdefs.h <<\_ACEOF
8969 #define HAVE_CLOCK_T 1
8970 _ACEOF
8974 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8975 CFLAGS="$saved_CFLAGS"
8977 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8978 if test "${enable_initfini_array+set}" = set; then
8979 enableval="$enable_initfini_array"
8981 else
8983 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8984 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8985 if test "${gcc_cv_initfini_array+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8987 else
8988 if test "$cross_compiling" = yes; then
8989 gcc_cv_initfini_array=no
8990 else
8991 cat >conftest.$ac_ext <<_ACEOF
8992 /* confdefs.h. */
8993 _ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
8998 static int x = -1;
8999 int main (void) { return x; }
9000 int foo (void) { x = 0; }
9001 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
9002 _ACEOF
9003 rm -f conftest$ac_exeext
9004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9005 (eval $ac_link) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 gcc_cv_initfini_array=yes
9015 else
9016 echo "$as_me: program exited with status $ac_status" >&5
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9020 ( exit $ac_status )
9021 gcc_cv_initfini_array=no
9023 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9026 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
9027 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
9028 enable_initfini_array=$gcc_cv_initfini_array
9031 if test $enable_initfini_array = yes; then
9033 cat >>confdefs.h <<\_ACEOF
9034 #define HAVE_INITFINI_ARRAY 1
9035 _ACEOF
9039 # mkdir takes a single argument on some systems.
9040 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
9041 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
9042 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045 cat >conftest.$ac_ext <<_ACEOF
9046 /* confdefs.h. */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9052 #include <sys/types.h>
9053 #ifdef HAVE_SYS_STAT_H
9054 # include <sys/stat.h>
9055 #endif
9056 #ifdef HAVE_UNISTD_H
9057 # include <unistd.h>
9058 #endif
9059 #ifdef HAVE_DIRECT_H
9060 # include <direct.h>
9061 #endif
9063 main ()
9065 mkdir ("foo", 0);
9067 return 0;
9069 _ACEOF
9070 rm -f conftest.$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>conftest.er1
9073 ac_status=$?
9074 grep -v '^ *+' conftest.er1 >conftest.err
9075 rm -f conftest.er1
9076 cat conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try='test -s conftest.$ac_objext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 (eval $ac_try) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 gcc_cv_mkdir_takes_one_arg=no
9093 else
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9097 gcc_cv_mkdir_takes_one_arg=yes
9099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9101 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9102 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9103 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9105 cat >>confdefs.h <<\_ACEOF
9106 #define MKDIR_TAKES_ONE_ARG 1
9107 _ACEOF
9112 # File extensions
9113 manext='.1'
9114 objext='.o'
9118 # With Setjmp/Longjmp based exception handling.
9119 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9120 if test "${enable_sjlj_exceptions+set}" = set; then
9121 enableval="$enable_sjlj_exceptions"
9122 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9124 cat >>confdefs.h <<_ACEOF
9125 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9126 _ACEOF
9130 if test x$host = x$target; then
9131 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9132 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9133 if test "${ac_cv_lib_unwind_main+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 else
9136 ac_check_lib_save_LIBS=$LIBS
9137 LIBS="-lunwind $LIBS"
9138 cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h. */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9147 main ()
9149 main ();
9151 return 0;
9153 _ACEOF
9154 rm -f conftest.$ac_objext conftest$ac_exeext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9156 (eval $ac_link) 2>conftest.er1
9157 ac_status=$?
9158 grep -v '^ *+' conftest.er1 >conftest.err
9159 rm -f conftest.er1
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } &&
9163 { ac_try='test -z "$ac_c_werror_flag"
9164 || test ! -s conftest.err'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest$ac_exeext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 ac_cv_lib_unwind_main=yes
9177 else
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 ac_cv_lib_unwind_main=no
9183 rm -f conftest.err conftest.$ac_objext \
9184 conftest$ac_exeext conftest.$ac_ext
9185 LIBS=$ac_check_lib_save_LIBS
9187 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9188 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9189 if test $ac_cv_lib_unwind_main = yes; then
9190 use_libunwind_default=yes
9191 else
9192 use_libunwind_default=no
9195 else
9196 use_libunwind_default=no
9198 # Use libunwind based exception handling.
9199 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9200 if test "${enable_libunwind_exceptions+set}" = set; then
9201 enableval="$enable_libunwind_exceptions"
9202 use_libunwind_exceptions=$enableval
9203 else
9204 use_libunwind_exceptions=$use_libunwind_default
9206 if test x"$use_libunwind_exceptions" = xyes; then
9208 cat >>confdefs.h <<\_ACEOF
9209 #define USE_LIBUNWIND_EXCEPTIONS 1
9210 _ACEOF
9214 # --------------------------------------------------------
9215 # Build, host, and target specific configuration fragments
9216 # --------------------------------------------------------
9218 # Collect build-machine-specific information.
9219 . ${srcdir}/config.build
9221 # Collect host-machine-specific information.
9222 . ${srcdir}/config.host
9224 target_gtfiles=
9226 # Collect target-machine-specific information.
9227 . ${srcdir}/config.gcc
9229 extra_objs="${host_extra_objs} ${extra_objs}"
9230 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9232 # Default the target-machine variables that were not explicitly set.
9233 if test x"$tm_file" = x
9234 then tm_file=$cpu_type/$cpu_type.h; fi
9236 if test x"$extra_headers" = x
9237 then extra_headers=; fi
9239 if test x$md_file = x
9240 then md_file=$cpu_type/$cpu_type.md; fi
9242 if test x$out_file = x
9243 then out_file=$cpu_type/$cpu_type.c; fi
9245 if test x"$tmake_file" = x
9246 then tmake_file=$cpu_type/t-$cpu_type
9249 if test x"$dwarf2" = xyes
9250 then tm_file="$tm_file tm-dwarf2.h"
9253 # Say what files are being used for the output code and MD file.
9254 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9255 echo "Using \`$srcdir/config/$md_file' as machine description file."
9257 # If any of the xm_file variables contain nonexistent files, warn
9258 # about them and drop them.
9261 for x in $build_xm_file; do
9262 if test -f $srcdir/config/$x
9263 then bx="$bx $x"
9264 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9265 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9267 done
9268 build_xm_file="$bx"
9271 for x in $host_xm_file; do
9272 if test -f $srcdir/config/$x
9273 then hx="$hx $x"
9274 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9275 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9277 done
9278 host_xm_file="$hx"
9281 for x in $xm_file; do
9282 if test -f $srcdir/config/$x
9283 then tx="$tx $x"
9284 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9285 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9287 done
9288 xm_file="$tx"
9290 count=a
9291 for f in $tm_file; do
9292 count=${count}x
9293 done
9294 if test $count = ax; then
9295 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9296 else
9297 echo "Using the following target machine macro files:"
9298 for f in $tm_file; do
9299 echo " $srcdir/config/$f"
9300 done
9303 if test x$need_64bit_hwint = xyes; then
9305 cat >>confdefs.h <<\_ACEOF
9306 #define NEED_64BIT_HOST_WIDE_INT 1
9307 _ACEOF
9311 count=a
9312 for f in $host_xm_file; do
9313 count=${count}x
9314 done
9315 if test $count = a; then
9317 elif test $count = ax; then
9318 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9319 else
9320 echo "Using the following host machine macro files:"
9321 for f in $host_xm_file; do
9322 echo " $srcdir/config/$f"
9323 done
9325 echo "Using ${out_host_hook_obj} for host machine hooks."
9327 if test "$host_xm_file" != "$build_xm_file"; then
9328 count=a
9329 for f in $build_xm_file; do
9330 count=${count}x
9331 done
9332 if test $count = a; then
9334 elif test $count = ax; then
9335 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9336 else
9337 echo "Using the following build machine macro files:"
9338 for f in $build_xm_file; do
9339 echo " $srcdir/config/$f"
9340 done
9344 # ---------
9345 # Threading
9346 # ---------
9348 # Check if a valid thread package
9349 case ${enable_threads} in
9350 "" | no)
9351 # No threads
9352 target_thread_file='single'
9354 yes)
9355 # default
9356 target_thread_file='single'
9358 aix | dce | gnat | irix | posix | rtems | \
9359 single | solaris | vxworks | win32 )
9360 target_thread_file=${enable_threads}
9363 echo "${enable_threads} is an unknown thread package" 1>&2
9364 exit 1
9366 esac
9368 if test x${thread_file} = x; then
9369 # No thread file set by target-specific clauses in config.gcc,
9370 # so use file chosen by default logic above
9371 thread_file=${target_thread_file}
9374 # Make gthr-default.h if we have a thread file.
9375 gthread_flags=
9376 if test $thread_file != single; then
9377 rm -f gthr-default.h
9378 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9379 gthread_flags=-DHAVE_GTHR_DEFAULT
9383 # --------
9384 # UNSORTED
9385 # --------
9387 if test x$enable___cxa_atexit = xyes || \
9388 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9389 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9390 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9391 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 else
9394 cat >conftest.$ac_ext <<_ACEOF
9395 /* confdefs.h. */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9400 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9402 #define __cxa_atexit innocuous___cxa_atexit
9404 /* System header to define __stub macros and hopefully few prototypes,
9405 which can conflict with char __cxa_atexit (); below.
9406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9407 <limits.h> exists even on freestanding compilers. */
9409 #ifdef __STDC__
9410 # include <limits.h>
9411 #else
9412 # include <assert.h>
9413 #endif
9415 #undef __cxa_atexit
9417 /* Override any gcc2 internal prototype to avoid an error. */
9418 #ifdef __cplusplus
9419 extern "C"
9421 #endif
9422 /* We use char because int might match the return type of a gcc2
9423 builtin and then its argument prototype would still apply. */
9424 char __cxa_atexit ();
9425 /* The GNU C library defines this for functions which it implements
9426 to always fail with ENOSYS. Some functions are actually named
9427 something starting with __ and the normal name is an alias. */
9428 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9429 choke me
9430 #else
9431 char (*f) () = __cxa_atexit;
9432 #endif
9433 #ifdef __cplusplus
9435 #endif
9438 main ()
9440 return f != __cxa_atexit;
9442 return 0;
9444 _ACEOF
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447 (eval $ac_link) 2>conftest.er1
9448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -z "$ac_c_werror_flag"
9455 || test ! -s conftest.err'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 (eval $ac_try) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; } &&
9461 { ac_try='test -s conftest$ac_exeext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 (eval $ac_try) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 ac_cv_func___cxa_atexit=yes
9468 else
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9472 ac_cv_func___cxa_atexit=no
9474 rm -f conftest.err conftest.$ac_objext \
9475 conftest$ac_exeext conftest.$ac_ext
9477 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9478 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9479 if test $ac_cv_func___cxa_atexit = yes; then
9481 cat >>confdefs.h <<\_ACEOF
9482 #define DEFAULT_USE_CXA_ATEXIT 1
9483 _ACEOF
9485 else
9486 echo "__cxa_atexit can't be enabled on this target"
9491 # Look for a file containing extra machine modes.
9492 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9493 extra_modes_file='$(srcdir)'/config/${extra_modes}
9496 cat >>confdefs.h <<_ACEOF
9497 #define EXTRA_MODES_FILE "config/$extra_modes"
9498 _ACEOF
9502 # auto-host.h is the file containing items generated by autoconf and is
9503 # the first file included by config.h.
9504 # If host=build, it is correct to have bconfig include auto-host.h
9505 # as well. If host!=build, we are in error and need to do more
9506 # work to find out the build config parameters.
9507 if test x$host = x$build
9508 then
9509 build_auto=auto-host.h
9510 FORBUILD=..
9511 else
9512 # We create a subdir, then run autoconf in the subdir.
9513 # To prevent recursion we set host and build for the new
9514 # invocation of configure to the build for this invocation
9515 # of configure.
9516 tempdir=build.$$
9517 rm -rf $tempdir
9518 mkdir $tempdir
9519 cd $tempdir
9520 case ${srcdir} in
9521 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9522 *) realsrcdir=../${srcdir};;
9523 esac
9524 saved_CFLAGS="${CFLAGS}"
9525 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9526 ${realsrcdir}/configure \
9527 --enable-languages=${enable_languages-all} \
9528 --target=$target_alias --host=$build_alias --build=$build_alias
9529 CFLAGS="${saved_CFLAGS}"
9531 # We just finished tests for the build machine, so rename
9532 # the file auto-build.h in the gcc directory.
9533 mv auto-host.h ../auto-build.h
9534 cd ..
9535 rm -rf $tempdir
9536 build_auto=auto-build.h
9537 FORBUILD=../${build_subdir}
9541 tm_file="${tm_file} defaults.h"
9542 tm_p_file="${tm_p_file} tm-preds.h"
9543 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9544 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9545 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9546 # put this back in temporarily.
9547 xm_file="ansidecl.h ${xm_file}"
9549 # --------
9550 # UNSORTED
9551 # --------
9553 # Get the version trigger filename from the toplevel
9554 if test "${with_gcc_version_trigger+set}" = set; then
9555 gcc_version_trigger=$with_gcc_version_trigger
9556 else
9557 gcc_version_trigger=${srcdir}/version.c
9559 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9560 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9562 # Compile in configure arguments.
9563 if test -f configargs.h ; then
9564 # Being re-configured.
9565 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9566 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9567 else
9568 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9571 # Double all backslashes and backslash all quotes to turn
9572 # gcc_config_arguments into a C string.
9573 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9574 $gcc_config_arguments
9576 gcc_config_arguments_str=`cat conftest.out`
9577 rm -f conftest.out
9579 cat > configargs.h <<EOF
9580 /* Generated automatically. */
9581 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9582 static const char thread_model[] = "$thread_file";
9584 static const struct {
9585 const char *name, *value;
9586 } configure_default_options[] = $configure_default_options;
9589 # Internationalization
9590 PACKAGE=gcc
9591 VERSION="$gcc_version"
9593 cat >>confdefs.h <<_ACEOF
9594 #define PACKAGE "$PACKAGE"
9595 _ACEOF
9600 # If we haven't got the data from the intl directory,
9601 # assume NLS is disabled.
9602 USE_NLS=no
9603 LIBINTL=
9604 LIBINTL_DEP=
9605 INCINTL=
9606 XGETTEXT=
9607 GMSGFMT=
9608 POSUB=
9609 if test -f ../intl/config.intl; then
9610 . ../intl/config.intl
9612 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9613 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9614 if test x"$USE_NLS" != xyes; then
9615 echo "$as_me:$LINENO: result: no" >&5
9616 echo "${ECHO_T}no" >&6
9617 else
9618 echo "$as_me:$LINENO: result: yes" >&5
9619 echo "${ECHO_T}yes" >&6
9621 cat >>confdefs.h <<\_ACEOF
9622 #define ENABLE_NLS 1
9623 _ACEOF
9626 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9627 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9628 # Look for .po and .gmo files in the source directory.
9629 CATALOGS=
9630 XLINGUAS=
9631 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9632 # If there aren't any .gmo files the shell will give us the
9633 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9634 # weeded out.
9635 case "$cat" in *\**)
9636 continue;;
9637 esac
9638 # The quadruple backslash is collapsed to a double backslash
9639 # by the backticks, then collapsed again by the double quotes,
9640 # leaving us with one backslash in the sed expression (right
9641 # before the dot that mustn't act as a wildcard).
9642 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9643 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9644 # The user is allowed to set LINGUAS to a list of languages to
9645 # install catalogs for. If it's empty that means "all of them."
9646 if test "x$LINGUAS" = x; then
9647 CATALOGS="$CATALOGS $cat"
9648 XLINGUAS="$XLINGUAS $lang"
9649 else
9650 case "$LINGUAS" in *$lang*)
9651 CATALOGS="$CATALOGS $cat"
9652 XLINGUAS="$XLINGUAS $lang"
9654 esac
9656 done
9657 LINGUAS="$XLINGUAS"
9658 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9659 echo "${ECHO_T}$LINGUAS" >&6
9662 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9663 # -liconv on the link line twice.
9664 case "$LIBINTL" in *$LIBICONV*)
9665 LIBICONV= ;;
9666 esac
9668 # Windows32 Registry support for specifying GCC installation paths.
9669 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9670 if test "${enable_win32_registry+set}" = set; then
9671 enableval="$enable_win32_registry"
9674 case $host_os in
9675 win32 | pe | cygwin* | mingw32* | uwin*)
9676 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9677 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9678 if test "x$enable_win32_registry" != xno; then
9680 cat >>confdefs.h <<\_ACEOF
9681 #define ENABLE_WIN32_REGISTRY 1
9682 _ACEOF
9684 echo "$as_me:$LINENO: result: yes" >&5
9685 echo "${ECHO_T}yes" >&6
9686 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9687 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9688 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691 ac_func_search_save_LIBS=$LIBS
9692 ac_cv_search_RegOpenKeyExA=no
9693 cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h. */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9700 /* Override any gcc2 internal prototype to avoid an error. */
9701 #ifdef __cplusplus
9702 extern "C"
9703 #endif
9704 /* We use char because int might match the return type of a gcc2
9705 builtin and then its argument prototype would still apply. */
9706 char RegOpenKeyExA ();
9708 main ()
9710 RegOpenKeyExA ();
9712 return 0;
9714 _ACEOF
9715 rm -f conftest.$ac_objext conftest$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717 (eval $ac_link) 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -z "$ac_c_werror_flag"
9725 || test ! -s conftest.err'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 (eval $ac_try) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; } &&
9731 { ac_try='test -s conftest$ac_exeext'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9737 ac_cv_search_RegOpenKeyExA="none required"
9738 else
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9743 rm -f conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9746 for ac_lib in advapi32; do
9747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9748 cat >conftest.$ac_ext <<_ACEOF
9749 /* confdefs.h. */
9750 _ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9755 /* Override any gcc2 internal prototype to avoid an error. */
9756 #ifdef __cplusplus
9757 extern "C"
9758 #endif
9759 /* We use char because int might match the return type of a gcc2
9760 builtin and then its argument prototype would still apply. */
9761 char RegOpenKeyExA ();
9763 main ()
9765 RegOpenKeyExA ();
9767 return 0;
9769 _ACEOF
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772 (eval $ac_link) 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try='test -z "$ac_c_werror_flag"
9780 || test ! -s conftest.err'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; } &&
9786 { ac_try='test -s conftest$ac_exeext'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9792 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9793 break
9794 else
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9799 rm -f conftest.err conftest.$ac_objext \
9800 conftest$ac_exeext conftest.$ac_ext
9801 done
9803 LIBS=$ac_func_search_save_LIBS
9805 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9806 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9807 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9808 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9812 else
9813 echo "$as_me:$LINENO: result: no" >&5
9814 echo "${ECHO_T}no" >&6
9817 # Check if user specified a different registry key.
9818 case "x${enable_win32_registry}" in
9819 x | xyes)
9820 # default.
9821 gcc_cv_win32_registry_key="$VERSION"
9823 xno)
9824 # no registry lookup.
9825 gcc_cv_win32_registry_key=''
9828 # user-specified key.
9829 gcc_cv_win32_registry_key="$enable_win32_registry"
9831 esac
9833 if test "x$enable_win32_registry" != xno; then
9834 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9835 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9837 cat >>confdefs.h <<_ACEOF
9838 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9839 _ACEOF
9841 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9842 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9845 esac
9847 # Get an absolute path to the GCC top-level source directory
9848 holddir=`${PWDCMD-pwd}`
9849 cd $srcdir
9850 topdir=`${PWDCMD-pwd}`
9851 cd $holddir
9853 # Conditionalize the makefile for this host machine.
9854 xmake_file=
9855 for f in ${host_xmake_file}
9857 if test -f ${srcdir}/config/$f
9858 then
9859 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9861 done
9863 # Conditionalize the makefile for this target machine.
9864 tmake_file_=
9865 for f in ${tmake_file}
9867 if test -f ${srcdir}/config/$f
9868 then
9869 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9871 done
9872 tmake_file="${tmake_file_}"
9874 symbolic_link='ln -s'
9876 # If the host doesn't support symlinks, modify CC in
9877 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9878 # Otherwise, we can use "CC=$(CC)".
9879 rm -f symtest.tem
9880 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9881 then
9882 cc_set_by_configure="\$(CC)"
9883 quoted_cc_set_by_configure="\$(CC)"
9884 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9885 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9886 else
9887 rm -f symtest.tem
9888 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9889 then
9890 symbolic_link="cp -p"
9891 else
9892 symbolic_link="cp"
9894 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9895 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9896 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9897 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9899 rm -f symtest.tem
9901 out_object_file=`basename $out_file .c`.o
9903 tm_file_list=
9904 tm_include_list=
9905 for f in $tm_file; do
9906 case $f in
9907 defaults.h )
9908 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9909 tm_include_list="${tm_include_list} $f"
9912 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9913 tm_include_list="${tm_include_list} config/$f"
9915 esac
9916 done
9918 tm_p_file_list=
9919 tm_p_include_list=
9920 for f in $tm_p_file; do
9921 case $f in
9922 tm-preds.h )
9923 tm_p_file_list="${tm_p_file_list} $f"
9924 tm_p_include_list="${tm_p_include_list} $f"
9927 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9928 tm_p_include_list="${tm_p_include_list} config/$f"
9929 esac
9930 done
9932 xm_file_list=
9933 xm_include_list=
9934 for f in $xm_file; do
9935 case $f in
9936 ansidecl.h )
9937 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9938 xm_include_list="${xm_include_list} $f"
9940 auto-host.h )
9941 xm_file_list="${xm_file_list} $f"
9942 xm_include_list="${xm_include_list} $f"
9945 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9946 xm_include_list="${xm_include_list} config/$f"
9948 esac
9949 done
9951 host_xm_file_list=
9952 host_xm_include_list=
9953 for f in $host_xm_file; do
9954 case $f in
9955 ansidecl.h )
9956 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9957 host_xm_include_list="${host_xm_include_list} $f"
9959 auto-host.h )
9960 host_xm_file_list="${host_xm_file_list} $f"
9961 host_xm_include_list="${host_xm_include_list} $f"
9964 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9965 host_xm_include_list="${host_xm_include_list} config/$f"
9967 esac
9968 done
9970 build_xm_file_list=
9971 for f in $build_xm_file; do
9972 case $f in
9973 ansidecl.h )
9974 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9975 build_xm_include_list="${build_xm_include_list} $f"
9977 auto-build.h | auto-host.h )
9978 build_xm_file_list="${build_xm_file_list} $f"
9979 build_xm_include_list="${build_xm_include_list} $f"
9982 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9983 build_xm_include_list="${build_xm_include_list} config/$f"
9985 esac
9986 done
9988 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9989 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9990 CROSS=
9991 ALL=all.internal
9992 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9993 if test x$host != x$target
9994 then
9995 CROSS="-DCROSS_COMPILE"
9996 ALL=all.cross
9997 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9998 case "$host","$target" in
9999 # Darwin crosses can use the host system's libraries and headers,
10000 # because of the fat library support. Of course, it must be the
10001 # same version of Darwin on both sides. Allow the user to
10002 # just say --target=foo-darwin without a version number to mean
10003 # "the version on this system".
10004 *-*-darwin*,*-*-darwin*)
10005 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10006 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10007 if test $hostos = $targetos -o $targetos = darwin ; then
10008 CROSS=
10009 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10010 with_headers=yes
10014 i?86-*-*,x86_64-*-* \
10015 | powerpc*-*-*,powerpc64*-*-*)
10016 CROSS="$CROSS -DNATIVE_CROSS" ;;
10017 esac
10018 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10019 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
10020 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
10023 # If this is a cross-compiler that does not
10024 # have its own set of headers then define
10025 # inhibit_libc
10027 # If this is using newlib, without having the headers available now,
10028 # then define inhibit_libc in LIBGCC2_CFLAGS.
10029 # This prevents libgcc2 from containing any code which requires libc
10030 # support.
10031 inhibit_libc=
10032 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10033 test x$with_newlib = xyes ; } &&
10034 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10035 inhibit_libc=-Dinhibit_libc
10039 # When building gcc with a cross-compiler, we need to adjust things so
10040 # that the generator programs are still built with the native compiler.
10041 # Also, we cannot run fixincludes or fix-header.
10043 # These are the normal (build=host) settings:
10044 CC_FOR_BUILD='$(CC)'
10045 BUILD_CFLAGS='$(ALL_CFLAGS)'
10046 STMP_FIXINC=stmp-fixinc
10048 # Possibly disable fixproto, on a per-target basis.
10049 case ${use_fixproto} in
10051 STMP_FIXPROTO=
10053 yes)
10054 STMP_FIXPROTO=stmp-fixproto
10056 esac
10059 # And these apply if build != host, or we are generating coverage data
10060 if test x$build != x$host || test "x$coverage_flags" != x
10061 then
10062 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10064 if test "x$TARGET_SYSTEM_ROOT" = x; then
10065 STMP_FIXINC=
10066 STMP_FIXPROTO=
10070 # Expand extra_headers to include complete path.
10071 # This substitutes for lots of t-* files.
10072 extra_headers_list=
10073 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10074 for file in ${extra_headers} ; do
10075 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10076 done
10078 # Define collect2 in Makefile.
10079 case $host_can_use_collect2 in
10080 no) collect2= ;;
10081 *) collect2='collect2$(exeext)' ;;
10082 esac
10085 # Add a definition of USE_COLLECT2 if system wants one.
10086 case $use_collect2 in
10087 no) use_collect2= ;;
10088 "") ;;
10090 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10091 xm_defines="${xm_defines} USE_COLLECT2"
10092 case $host_can_use_collect2 in
10094 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
10095 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
10096 { (exit 1); exit 1; }; }
10098 esac
10100 esac
10102 # ---------------------------
10103 # Assembler & linker features
10104 # ---------------------------
10106 # Identify the assembler which will work hand-in-glove with the newly
10107 # built GCC, so that we can examine its features. This is the assembler
10108 # which will be driven by the driver program.
10110 # If build != host, and we aren't building gas in-tree, we identify a
10111 # build->target assembler and hope that it will have the same features
10112 # as the host->target assembler we'll be using.
10113 echo "$as_me:$LINENO: checking what assembler to use" >&5
10114 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10115 in_tree_gas=no
10116 gcc_cv_as=
10117 gcc_cv_gas_major_version=
10118 gcc_cv_gas_minor_version=
10119 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10120 if test -x "$DEFAULT_ASSEMBLER"; then
10121 gcc_cv_as="$DEFAULT_ASSEMBLER"
10122 elif test -x as$host_exeext; then
10123 # Build using assembler in the current directory.
10124 gcc_cv_as=./as$host_exeext
10125 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10126 && test -f ../gas/Makefile \
10127 && test x$build = x$host; then
10128 # Single tree build which includes gas. We want to prefer it
10129 # over whatever linker top-level may have detected, since
10130 # we'll use what we're building after installation anyway.
10131 in_tree_gas=yes
10132 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10133 for f in $gcc_cv_as_bfd_srcdir/configure \
10134 $gcc_cv_as_gas_srcdir/configure \
10135 $gcc_cv_as_gas_srcdir/configure.in \
10136 $gcc_cv_as_gas_srcdir/Makefile.in ; do
10137 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10138 if test x$gcc_cv_gas_version != x; then
10139 break
10141 done
10142 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10143 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10144 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10145 case $gcc_cv_gas_patch_version in
10146 "") gcc_cv_gas_patch_version="0" ;;
10147 esac
10148 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10149 + $gcc_cv_gas_minor_version \) \* 1000 \
10150 + $gcc_cv_gas_patch_version`
10152 rm -f as$host_exeext
10153 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10154 in_tree_gas_is_elf=no
10155 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10156 || (grep 'obj_format = multi' ../gas/Makefile \
10157 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10158 then
10159 in_tree_gas_is_elf=yes
10161 elif test -x "$AS_FOR_TARGET"; then
10162 gcc_cv_as="$AS_FOR_TARGET"
10163 elif test -x "$AS" && test x$host = x$target; then
10164 gcc_cv_as="$AS"
10167 if test "x$gcc_cv_as" = x; then
10168 # Search the same directories that the installed compiler will
10169 # search. Else we may find the wrong assembler and lose. If we
10170 # do not find a suitable assembler binary, then try the user's
10171 # path.
10173 # Also note we have to check MD_EXEC_PREFIX before checking the
10174 # user's path. Unfortunately, there is no good way to get at the
10175 # value of MD_EXEC_PREFIX here. So we do a brute force search
10176 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10177 # to be fixed as part of the make/configure rewrite too.
10179 if test "x$exec_prefix" = xNONE; then
10180 if test "x$prefix" = xNONE; then
10181 test_prefix=/usr/local
10182 else
10183 test_prefix=$prefix
10185 else
10186 test_prefix=$exec_prefix
10189 # If the loop below does not find an assembler, then use whatever
10190 # one we can find in the users's path.
10191 # user's path.
10192 if test "x$program_prefix" != xNONE; then
10193 gcc_cv_as=${program_prefix}as$host_exeext
10194 else
10195 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10198 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10199 $test_prefix/libexec/gcc/$target_noncanonical \
10200 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10201 /usr/lib/gcc/$target_noncanonical \
10202 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10203 $test_prefix/$target_noncanonical/bin"
10205 if test x$host = x$target; then
10206 test_dirs="$test_dirs \
10207 /usr/libexec \
10208 /usr/ccs/gcc \
10209 /usr/ccs/bin \
10210 /udk/usr/ccs/bin \
10211 /bsd43/usr/lib/cmplrs/cc \
10212 /usr/cross64/usr/bin \
10213 /usr/lib/cmplrs/cc \
10214 /sysv/usr/lib/cmplrs/cc \
10215 /svr4/usr/lib/cmplrs/cc \
10216 /usr/bin"
10219 for dir in $test_dirs; do
10220 if test -x $dir/as$host_exeext; then
10221 gcc_cv_as=$dir/as$host_exeext
10222 break;
10224 done
10226 case $in_tree_gas in
10227 yes)
10228 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10229 echo "${ECHO_T}\"newly built gas\"" >&6
10232 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10233 echo "${ECHO_T}$gcc_cv_as" >&6
10235 esac
10237 # Identify the linker which will work hand-in-glove with the newly
10238 # built GCC, so that we can examine its features. This is the linker
10239 # which will be driven by the driver program.
10241 # If build != host, and we aren't building gas in-tree, we identify a
10242 # build->target linker and hope that it will have the same features
10243 # as the host->target linker we'll be using.
10244 echo "$as_me:$LINENO: checking what linker to use" >&5
10245 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10246 in_tree_ld=no
10247 gcc_cv_ld=
10248 gcc_cv_gld_major_version=
10249 gcc_cv_gld_minor_version=
10250 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10251 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10252 if test -x "$DEFAULT_LINKER"; then
10253 gcc_cv_ld="$DEFAULT_LINKER"
10254 elif test -x collect-ld$host_exeext; then
10255 # Build using linker in the current directory.
10256 gcc_cv_ld=./collect-ld$host_exeext
10257 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10258 && test -f ../ld/Makefile \
10259 && test x$build = x$host; then
10260 # Single tree build which includes ld. We want to prefer it
10261 # over whatever linker top-level may have detected, since
10262 # we'll use what we're building after installation anyway.
10263 in_tree_ld=yes
10264 in_tree_ld_is_elf=no
10265 if (grep 'EMUL = .*elf' ../ld/Makefile \
10266 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10267 in_tree_ld_is_elf=yes
10269 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
10271 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10272 if test x$gcc_cv_gld_version != x; then
10273 break
10275 done
10276 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10277 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10278 rm -f collect-ld$host_exeext
10279 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10280 2>/dev/null
10281 elif test -x "$LD_FOR_TARGET"; then
10282 gcc_cv_ld="$LD_FOR_TARGET"
10283 elif test -x "$LD" && test x$host = x$target; then
10284 gcc_cv_ld="$LD"
10287 if test "x$gcc_cv_ld" = x; then
10288 # Search the same directories that the installed compiler will
10289 # search. Else we may find the wrong linker and lose. If we
10290 # do not find a suitable linker binary, then try the user's
10291 # path.
10293 # Also note we have to check MD_EXEC_PREFIX before checking the
10294 # user's path. Unfortunately, there is no good way to get at the
10295 # value of MD_EXEC_PREFIX here. So we do a brute force search
10296 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10297 # to be fixed as part of the make/configure rewrite too.
10299 if test "x$exec_prefix" = xNONE; then
10300 if test "x$prefix" = xNONE; then
10301 test_prefix=/usr/local
10302 else
10303 test_prefix=$prefix
10305 else
10306 test_prefix=$exec_prefix
10309 # If the loop below does not find an linker, then use whatever
10310 # one we can find in the users's path.
10311 # user's path.
10312 if test "x$program_prefix" != xNONE; then
10313 gcc_cv_ld=${program_prefix}ld$host_exeext
10314 else
10315 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10318 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10319 $test_prefix/libexec/gcc/$target_noncanonical \
10320 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10321 /usr/lib/gcc/$target_noncanonical \
10322 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10323 $test_prefix/$target_noncanonical/bin"
10325 if test x$host = x$target; then
10326 test_dirs="$test_dirs \
10327 /usr/libexec \
10328 /usr/ccs/gcc \
10329 /usr/ccs/bin \
10330 /udk/usr/ccs/bin \
10331 /bsd43/usr/lib/cmplrs/cc \
10332 /usr/cross64/usr/bin \
10333 /usr/lib/cmplrs/cc \
10334 /sysv/usr/lib/cmplrs/cc \
10335 /svr4/usr/lib/cmplrs/cc \
10336 /usr/bin"
10339 for dir in $test_dirs; do
10340 if test -x $dir/ld$host_exeext; then
10341 gcc_cv_ld=$dir/ld$host_exeext
10342 break;
10344 done
10346 case $in_tree_ld in
10347 yes)
10348 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10349 echo "${ECHO_T}\"newly built ld\"" >&6
10352 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10353 echo "${ECHO_T}$gcc_cv_ld" >&6
10355 esac
10357 # Figure out what nm we will be using.
10358 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10359 echo "$as_me:$LINENO: checking what nm to use" >&5
10360 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10361 in_tree_nm=no
10362 if test -x nm$host_exeext; then
10363 gcc_cv_nm=./nm$host_exeext
10364 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10365 && test -f ../binutils/Makefile; then
10366 # Single tree build which includes binutils.
10367 in_tree_nm=yes
10368 gcc_cv_nm=./nm$host_exeext
10369 rm -f nm$host_exeext
10370 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10371 elif test "x$program_prefix" != xNONE; then
10372 gcc_cv_nm=${program_prefix}nm$host_exeext
10373 else
10374 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10376 case $in_tree_nm in
10377 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10378 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10379 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10380 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10381 esac
10383 # Figure out what objdump we will be using.
10384 echo "$as_me:$LINENO: checking what objdump to use" >&5
10385 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10386 in_tree_objdump=no
10387 if test -x objdump$host_exeext; then
10388 gcc_cv_objdump=./objdump$host_exeext
10389 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10390 && test -f ../binutils/Makefile; then
10391 # Single tree build which includes binutils.
10392 in_tree_objdump=yes
10393 gcc_cv_objdump=./objdump$host_exeext
10394 rm -f objdump$host_exeext
10395 $symbolic_link ../binutils/objdump$host_exeext \
10396 objdump$host_exeext 2>/dev/null
10397 elif test "x$program_prefix" != xNONE; then
10398 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10399 else
10400 gcc_cv_objdump=`echo objdump | \
10401 sed "${program_transform_name}"`$host_exeext
10403 case $in_tree_objdump in
10404 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10405 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10406 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10407 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10408 esac
10410 # Figure out what assembler alignment features are present.
10411 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10412 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10413 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 else
10416 gcc_cv_as_balign_and_p2align=no
10417 if test $in_tree_gas = yes; then
10418 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10419 then gcc_cv_as_balign_and_p2align=yes
10421 elif test x$gcc_cv_as != x; then
10422 echo '.balign 4
10423 .p2align 2' > conftest.s
10424 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }
10430 then
10431 gcc_cv_as_balign_and_p2align=yes
10432 else
10433 echo "configure: failed program was" >&5
10434 cat conftest.s >&5
10436 rm -f conftest.o conftest.s
10439 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10440 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10441 if test $gcc_cv_as_balign_and_p2align = yes; then
10443 cat >>confdefs.h <<\_ACEOF
10444 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10445 _ACEOF
10449 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10450 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10451 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454 gcc_cv_as_max_skip_p2align=no
10455 if test $in_tree_gas = yes; then
10456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10457 then gcc_cv_as_max_skip_p2align=yes
10459 elif test x$gcc_cv_as != x; then
10460 echo '.p2align 4,,7' > conftest.s
10461 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }
10467 then
10468 gcc_cv_as_max_skip_p2align=yes
10469 else
10470 echo "configure: failed program was" >&5
10471 cat conftest.s >&5
10473 rm -f conftest.o conftest.s
10476 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10477 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10478 if test $gcc_cv_as_max_skip_p2align = yes; then
10480 cat >>confdefs.h <<\_ACEOF
10481 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10482 _ACEOF
10486 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10487 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10488 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491 gcc_cv_as_subsection_m1=no
10492 if test $in_tree_gas = yes; then
10493 if test $in_tree_gas_is_elf = yes \
10494 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10495 then gcc_cv_as_subsection_m1=yes
10497 elif test x$gcc_cv_as != x; then
10498 echo 'conftest_label1: .word 0
10499 .subsection -1
10500 conftest_label2: .word 0
10501 .previous' > conftest.s
10502 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504 (eval $ac_try) 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; }
10508 then
10509 if test x$gcc_cv_nm != x; then
10510 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10511 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10512 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10513 then :
10514 else gcc_cv_as_subsection_m1=yes
10516 rm -f conftest.nm1 conftest.nm2
10518 else
10519 echo "configure: failed program was" >&5
10520 cat conftest.s >&5
10522 rm -f conftest.o conftest.s
10525 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10526 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10527 if test $gcc_cv_as_subsection_m1 = yes; then
10529 cat >>confdefs.h <<\_ACEOF
10530 #define HAVE_GAS_SUBSECTION_ORDERING 1
10531 _ACEOF
10535 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10536 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10537 if test "${gcc_cv_as_weak+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 else
10540 gcc_cv_as_weak=no
10541 if test $in_tree_gas = yes; then
10542 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10543 then gcc_cv_as_weak=yes
10545 elif test x$gcc_cv_as != x; then
10546 echo ' .weak foobar' > conftest.s
10547 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }
10553 then
10554 gcc_cv_as_weak=yes
10555 else
10556 echo "configure: failed program was" >&5
10557 cat conftest.s >&5
10559 rm -f conftest.o conftest.s
10562 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10563 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10564 if test $gcc_cv_as_weak = yes; then
10566 cat >>confdefs.h <<\_ACEOF
10567 #define HAVE_GAS_WEAK 1
10568 _ACEOF
10572 # .hidden needs to be supported in both the assembler and the linker,
10573 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10574 # This is irritatingly difficult to feature test for; we have to check the
10575 # date string after the version number. If we've got an in-tree
10576 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10577 # to be safe.
10578 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10579 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10580 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10581 if test "${gcc_cv_as_hidden+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 else
10584 gcc_cv_as_hidden=no
10585 if test $in_tree_gas = yes; then
10586 if test $in_tree_gas_is_elf = yes \
10587 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10588 then gcc_cv_as_hidden=yes
10590 elif test x$gcc_cv_as != x; then
10591 echo ' .hidden foobar
10592 foobar:' > conftest.s
10593 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }
10599 then
10600 gcc_cv_as_hidden=yes
10601 else
10602 echo "configure: failed program was" >&5
10603 cat conftest.s >&5
10605 rm -f conftest.o conftest.s
10608 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10609 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10612 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10613 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10614 if test "${gcc_cv_ld_hidden+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617 if test $in_tree_ld = yes ; then
10618 gcc_cv_ld_hidden=no
10619 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 \
10620 && test $in_tree_ld_is_elf = yes; then
10621 gcc_cv_ld_hidden=yes
10623 else
10624 gcc_cv_ld_hidden=yes
10625 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10626 if echo "$ld_ver" | grep GNU > /dev/null; then
10627 ld_vers=`echo $ld_ver | sed -n \
10628 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10629 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10630 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10631 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10632 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10633 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10634 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'`
10635 if test 0"$ld_date" -lt 20020404; then
10636 if test -n "$ld_date"; then
10637 # If there was date string, but was earlier than 2002-04-04, fail
10638 gcc_cv_ld_hidden=no
10639 elif test -z "$ld_vers"; then
10640 # If there was no date string nor ld version number, something is wrong
10641 gcc_cv_ld_hidden=no
10642 else
10643 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10644 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10645 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10646 test -z "$ld_vers_patch" && ld_vers_patch=0
10647 if test "$ld_vers_major" -lt 2; then
10648 gcc_cv_ld_hidden=no
10649 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10650 gcc_cv_ld_hidden="no"
10651 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10652 gcc_cv_ld_hidden=no
10656 else
10657 case "${target}" in
10658 hppa64*-*-hpux* | ia64*-*-hpux*)
10659 gcc_cv_ld_hidden=yes
10662 gcc_cv_ld_hidden=no
10664 esac
10668 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10669 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10670 libgcc_visibility=no
10672 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10673 libgcc_visibility=yes
10675 cat >>confdefs.h <<\_ACEOF
10676 #define HAVE_GAS_HIDDEN 1
10677 _ACEOF
10681 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10682 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10683 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10684 if test "${gcc_cv_as_leb128+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 else
10687 gcc_cv_as_leb128=no
10688 if test $in_tree_gas = yes; then
10689 if test $in_tree_gas_is_elf = yes \
10690 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10691 then gcc_cv_as_leb128=yes
10693 elif test x$gcc_cv_as != x; then
10694 echo ' .data
10695 .uleb128 L2 - L1
10697 .uleb128 1280
10698 .sleb128 -1010
10699 L2:' > conftest.s
10700 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; }
10706 then
10707 # GAS versions before 2.11 do not support uleb128,
10708 # despite appearing to.
10709 # ??? There exists an elf-specific test that will crash
10710 # the assembler. Perhaps it's better to figure out whether
10711 # arbitrary sections are supported and try the test.
10712 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10713 if echo "$as_ver" | grep GNU > /dev/null; then
10714 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10715 as_major=`echo $as_ver | sed 's/\..*//'`
10716 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10717 if test $as_major -eq 2 && test $as_minor -lt 11
10718 then :
10719 else gcc_cv_as_leb128=yes
10722 else
10723 echo "configure: failed program was" >&5
10724 cat conftest.s >&5
10726 rm -f conftest.o conftest.s
10729 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10730 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10731 if test $gcc_cv_as_leb128 = yes; then
10733 cat >>confdefs.h <<\_ACEOF
10734 #define HAVE_AS_LEB128 1
10735 _ACEOF
10739 # GAS versions up to and including 2.11.0 may mis-optimize
10740 # .eh_frame data.
10741 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10742 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10743 if test "${gcc_cv_as_eh_frame+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746 gcc_cv_as_eh_frame=no
10747 if test $in_tree_gas = yes; then
10748 if test $in_tree_gas_is_elf = yes \
10749 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10750 then gcc_cv_as_eh_frame=yes
10752 elif test x$gcc_cv_as != x; then
10753 echo ' .text
10754 .LFB1:
10755 .4byte 0
10756 .L1:
10757 .4byte 0
10758 .LFE1:
10759 .section .eh_frame,"aw",@progbits
10760 __FRAME_BEGIN__:
10761 .4byte .LECIE1-.LSCIE1
10762 .LSCIE1:
10763 .4byte 0x0
10764 .byte 0x1
10765 .ascii "z\0"
10766 .byte 0x1
10767 .byte 0x78
10768 .byte 0x1a
10769 .byte 0x0
10770 .byte 0x4
10771 .4byte 1
10772 .p2align 1
10773 .LECIE1:
10774 .LSFDE1:
10775 .4byte .LEFDE1-.LASFDE1
10776 .LASFDE1:
10777 .4byte .LASFDE1-__FRAME_BEGIN__
10778 .4byte .LFB1
10779 .4byte .LFE1-.LFB1
10780 .byte 0x4
10781 .4byte .LFE1-.LFB1
10782 .byte 0x4
10783 .4byte .L1-.LFB1
10784 .LEFDE1:' > conftest.s
10785 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10788 ac_status=$?
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }
10791 then
10792 cat > conftest.lit <<EOF
10793 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10794 0010 01000000 12000000 18000000 00000000 ................
10795 0020 08000000 04080000 0044 .........D
10797 cat > conftest.big <<EOF
10798 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10799 0010 00000001 00000012 00000018 00000000 ................
10800 0020 00000008 04000000 0844 .........D
10802 # If the assembler didn't choke, and we can objdump,
10803 # and we got the correct data, then succeed.
10804 if test x$gcc_cv_objdump != x \
10805 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10806 | tail -3 > conftest.got \
10807 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10808 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10809 then
10810 gcc_cv_as_eh_frame=yes
10811 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 gcc_cv_as_eh_frame=buggy
10818 else
10819 # Uh oh, what do we do now?
10820 gcc_cv_as_eh_frame=no
10822 else
10823 echo "configure: failed program was" >&5
10824 cat conftest.s >&5
10826 rm -f conftest.o conftest.s
10829 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10830 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10833 if test $gcc_cv_as_eh_frame = buggy; then
10835 cat >>confdefs.h <<\_ACEOF
10836 #define USE_AS_TRADITIONAL_FORMAT 1
10837 _ACEOF
10841 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10842 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10843 if test "${gcc_cv_as_shf_merge+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846 gcc_cv_as_shf_merge=no
10847 if test $in_tree_gas = yes; then
10848 if test $in_tree_gas_is_elf = yes \
10849 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10850 then gcc_cv_as_shf_merge=yes
10852 elif test x$gcc_cv_as != x; then
10853 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10854 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }
10860 then
10861 gcc_cv_as_shf_merge=yes
10862 else
10863 echo "configure: failed program was" >&5
10864 cat conftest.s >&5
10866 rm -f conftest.o conftest.s
10869 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10870 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10873 cat >>confdefs.h <<_ACEOF
10874 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10875 _ACEOF
10878 # Thread-local storage - the check is heavily parametrized.
10879 conftest_s=
10880 tls_first_major=
10881 tls_first_minor=
10882 tls_as_opt=
10883 case "$target" in
10884 alpha*-*-*)
10885 conftest_s='
10886 .section ".tdata","awT",@progbits
10887 foo: .long 25
10888 .text
10889 ldq $27,__tls_get_addr($29) !literal!1
10890 lda $16,foo($29) !tlsgd!1
10891 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10892 ldq $27,__tls_get_addr($29) !literal!2
10893 lda $16,foo($29) !tlsldm!2
10894 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10895 ldq $1,foo($29) !gotdtprel
10896 ldah $2,foo($29) !dtprelhi
10897 lda $3,foo($2) !dtprello
10898 lda $4,foo($29) !dtprel
10899 ldq $1,foo($29) !gottprel
10900 ldah $2,foo($29) !tprelhi
10901 lda $3,foo($2) !tprello
10902 lda $4,foo($29) !tprel'
10903 tls_first_major=2
10904 tls_first_minor=13
10905 tls_as_opt=--fatal-warnings
10907 i[34567]86-*-*)
10908 conftest_s='
10909 .section ".tdata","awT",@progbits
10910 foo: .long 25
10911 .text
10912 movl %gs:0, %eax
10913 leal foo@TLSGD(,%ebx,1), %eax
10914 leal foo@TLSLDM(%ebx), %eax
10915 leal foo@DTPOFF(%eax), %edx
10916 movl foo@GOTTPOFF(%ebx), %eax
10917 subl foo@GOTTPOFF(%ebx), %eax
10918 addl foo@GOTNTPOFF(%ebx), %eax
10919 movl foo@INDNTPOFF, %eax
10920 movl $foo@TPOFF, %eax
10921 subl $foo@TPOFF, %eax
10922 leal foo@NTPOFF(%ecx), %eax'
10923 tls_first_major=2
10924 tls_first_minor=14
10925 tls_as_opt=--fatal-warnings
10927 x86_64-*-*)
10928 conftest_s='
10929 .section ".tdata","awT",@progbits
10930 foo: .long 25
10931 .text
10932 movq %fs:0, %rax
10933 leaq foo@TLSGD(%rip), %rdi
10934 leaq foo@TLSLD(%rip), %rdi
10935 leaq foo@DTPOFF(%rax), %rdx
10936 movq foo@GOTTPOFF(%rip), %rax
10937 movq $foo@TPOFF, %rax'
10938 tls_first_major=2
10939 tls_first_minor=14
10940 tls_as_opt=--fatal-warnings
10942 ia64-*-*)
10943 conftest_s='
10944 .section ".tdata","awT",@progbits
10945 foo: data8 25
10946 .text
10947 addl r16 = @ltoff(@dtpmod(foo#)), gp
10948 addl r17 = @ltoff(@dtprel(foo#)), gp
10949 addl r18 = @ltoff(@tprel(foo#)), gp
10950 addl r19 = @dtprel(foo#), gp
10951 adds r21 = @dtprel(foo#), r13
10952 movl r23 = @dtprel(foo#)
10953 addl r20 = @tprel(foo#), gp
10954 adds r22 = @tprel(foo#), r13
10955 movl r24 = @tprel(foo#)'
10956 tls_first_major=2
10957 tls_first_minor=13
10958 tls_as_opt=--fatal-warnings
10960 powerpc-*-*)
10961 conftest_s='
10962 .section ".tdata","awT",@progbits
10963 .align 2
10964 ld0: .space 4
10965 ld1: .space 4
10966 x1: .space 4
10967 x2: .space 4
10968 x3: .space 4
10969 .text
10970 addi 3,31,ld0@got@tlsgd
10971 bl __tls_get_addr
10972 addi 3,31,x1@got@tlsld
10973 bl __tls_get_addr
10974 addi 9,3,x1@dtprel
10975 addis 9,3,x2@dtprel@ha
10976 addi 9,9,x2@dtprel@l
10977 lwz 9,x3@got@tprel(31)
10978 add 9,9,x@tls
10979 addi 9,2,x1@tprel
10980 addis 9,2,x2@tprel@ha
10981 addi 9,9,x2@tprel@l'
10982 tls_first_major=2
10983 tls_first_minor=14
10984 tls_as_opt="-a32 --fatal-warnings"
10986 powerpc64-*-*)
10987 conftest_s='
10988 .section ".tdata","awT",@progbits
10989 .align 3
10990 ld0: .space 8
10991 ld1: .space 8
10992 x1: .space 8
10993 x2: .space 8
10994 x3: .space 8
10995 .text
10996 addi 3,2,ld0@got@tlsgd
10997 bl .__tls_get_addr
10999 addi 3,2,ld1@toc
11000 bl .__tls_get_addr
11002 addi 3,2,x1@got@tlsld
11003 bl .__tls_get_addr
11005 addi 9,3,x1@dtprel
11006 bl .__tls_get_addr
11008 addis 9,3,x2@dtprel@ha
11009 addi 9,9,x2@dtprel@l
11010 bl .__tls_get_addr
11012 ld 9,x3@got@dtprel(2)
11013 add 9,9,3
11014 bl .__tls_get_addr
11015 nop'
11016 tls_first_major=2
11017 tls_first_minor=14
11018 tls_as_opt="-a64 --fatal-warnings"
11020 s390-*-*)
11021 conftest_s='
11022 .section ".tdata","awT",@progbits
11023 foo: .long 25
11024 .text
11025 .long foo@TLSGD
11026 .long foo@TLSLDM
11027 .long foo@DTPOFF
11028 .long foo@NTPOFF
11029 .long foo@GOTNTPOFF
11030 .long foo@INDNTPOFF
11031 l %r1,foo@GOTNTPOFF(%r12)
11032 l %r1,0(%r1):tls_load:foo
11033 bas %r14,0(%r1,%r13):tls_gdcall:foo
11034 bas %r14,0(%r1,%r13):tls_ldcall:foo'
11035 tls_first_major=2
11036 tls_first_minor=14
11037 tls_as_opt="-m31 --fatal-warnings"
11039 s390x-*-*)
11040 conftest_s='
11041 .section ".tdata","awT",@progbits
11042 foo: .long 25
11043 .text
11044 .quad foo@TLSGD
11045 .quad foo@TLSLDM
11046 .quad foo@DTPOFF
11047 .quad foo@NTPOFF
11048 .quad foo@GOTNTPOFF
11049 lg %r1,foo@GOTNTPOFF(%r12)
11050 larl %r1,foo@INDNTPOFF
11051 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
11052 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
11053 tls_first_major=2
11054 tls_first_minor=14
11055 tls_as_opt="-m64 -Aesame --fatal-warnings"
11057 sh-*-* | sh[34]-*-*)
11058 conftest_s='
11059 .section ".tdata","awT",@progbits
11060 foo: .long 25
11061 .text
11062 .long foo@TLSGD
11063 .long foo@TLSLDM
11064 .long foo@DTPOFF
11065 .long foo@GOTTPOFF
11066 .long foo@TPOFF'
11067 tls_first_major=2
11068 tls_first_minor=13
11069 tls_as_opt=--fatal-warnings
11071 sparc*-*-*)
11072 case "$target" in
11073 sparc*-sun-solaris2.*)
11074 on_solaris=yes
11077 on_solaris=no
11079 esac
11080 if test x$on_solaris = xyes && test x$gas_flag = xno; then
11081 conftest_s='
11082 .section ".tdata",#alloc,#write,#tls
11083 foo: .long 25
11084 .text
11085 sethi %tgd_hi22(foo), %o0
11086 add %o0, %tgd_lo10(foo), %o1
11087 add %l7, %o1, %o0, %tgd_add(foo)
11088 call __tls_get_addr, %tgd_call(foo)
11089 sethi %tldm_hi22(foo), %l1
11090 add %l1, %tldm_lo10(foo), %l2
11091 add %l7, %l2, %o0, %tldm_add(foo)
11092 call __tls_get_addr, %tldm_call(foo)
11093 sethi %tldo_hix22(foo), %l3
11094 xor %l3, %tldo_lox10(foo), %l4
11095 add %o0, %l4, %l5, %tldo_add(foo)
11096 sethi %tie_hi22(foo), %o3
11097 add %o3, %tie_lo10(foo), %o3
11098 ld [%l7 + %o3], %o2, %tie_ld(foo)
11099 add %g7, %o2, %o4, %tie_add(foo)
11100 sethi %tle_hix22(foo), %l1
11101 xor %l1, %tle_lox10(foo), %o5
11102 ld [%g7 + %o5], %o1'
11103 tls_first_major=0
11104 tls_first_minor=0
11105 else
11106 conftest_s='
11107 .section ".tdata","awT",@progbits
11108 foo: .long 25
11109 .text
11110 sethi %tgd_hi22(foo), %o0
11111 add %o0, %tgd_lo10(foo), %o1
11112 add %l7, %o1, %o0, %tgd_add(foo)
11113 call __tls_get_addr, %tgd_call(foo)
11114 sethi %tldm_hi22(foo), %l1
11115 add %l1, %tldm_lo10(foo), %l2
11116 add %l7, %l2, %o0, %tldm_add(foo)
11117 call __tls_get_addr, %tldm_call(foo)
11118 sethi %tldo_hix22(foo), %l3
11119 xor %l3, %tldo_lox10(foo), %l4
11120 add %o0, %l4, %l5, %tldo_add(foo)
11121 sethi %tie_hi22(foo), %o3
11122 add %o3, %tie_lo10(foo), %o3
11123 ld [%l7 + %o3], %o2, %tie_ld(foo)
11124 add %g7, %o2, %o4, %tie_add(foo)
11125 sethi %tle_hix22(foo), %l1
11126 xor %l1, %tle_lox10(foo), %o5
11127 ld [%g7 + %o5], %o1'
11128 tls_first_major=2
11129 tls_first_minor=14
11130 tls_as_opt="-32 --fatal-warnings"
11133 esac
11134 if test -z "$tls_first_major"; then
11135 : # If we don't have a check, assume no support.
11136 else
11137 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11138 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11139 if test "${gcc_cv_as_tls+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 else
11142 gcc_cv_as_tls=no
11143 if test $in_tree_gas = yes; then
11144 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11145 then gcc_cv_as_tls=yes
11147 elif test x$gcc_cv_as != x; then
11148 echo "$conftest_s" > conftest.s
11149 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }
11155 then
11156 gcc_cv_as_tls=yes
11157 else
11158 echo "configure: failed program was" >&5
11159 cat conftest.s >&5
11161 rm -f conftest.o conftest.s
11164 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11165 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11166 if test $gcc_cv_as_tls = yes; then
11168 cat >>confdefs.h <<\_ACEOF
11169 #define HAVE_AS_TLS 1
11170 _ACEOF
11175 # Target-specific assembler checks.
11177 if test x"$demangler_in_ld" = xyes; then
11178 echo "$as_me:$LINENO: checking linker --demangle support" >&5
11179 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
11180 gcc_cv_ld_demangle=no
11181 if test $in_tree_ld = yes; then
11182 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 \
11183 gcc_cv_ld_demangle=yes
11185 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
11186 # Check if the GNU linker supports --demangle option
11187 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
11188 gcc_cv_ld_demangle=yes
11191 if test x"$gcc_cv_ld_demangle" = xyes; then
11193 cat >>confdefs.h <<\_ACEOF
11194 #define HAVE_LD_DEMANGLE 1
11195 _ACEOF
11198 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
11199 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
11202 case "$target" in
11203 # All TARGET_ABI_OSF targets.
11204 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11205 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11206 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11207 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 else
11210 gcc_cv_as_alpha_explicit_relocs=no
11211 if test $in_tree_gas = yes; then
11212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11213 then gcc_cv_as_alpha_explicit_relocs=yes
11215 elif test x$gcc_cv_as != x; then
11216 echo ' .set nomacro
11217 .text
11218 extbl $3, $2, $3 !lituse_bytoff!1
11219 ldq $2, a($29) !literal!1
11220 ldq $4, b($29) !literal!2
11221 ldq_u $3, 0($2) !lituse_base!1
11222 ldq $27, f($29) !literal!5
11223 jsr $26, ($27), f !lituse_jsr!5
11224 ldah $29, 0($26) !gpdisp!3
11225 lda $0, c($29) !gprel
11226 ldah $1, d($29) !gprelhigh
11227 lda $1, d($1) !gprellow
11228 lda $29, 0($29) !gpdisp!3' > conftest.s
11229 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }
11235 then
11236 gcc_cv_as_alpha_explicit_relocs=yes
11237 else
11238 echo "configure: failed program was" >&5
11239 cat conftest.s >&5
11241 rm -f conftest.o conftest.s
11244 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11245 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11246 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11248 cat >>confdefs.h <<\_ACEOF
11249 #define HAVE_AS_EXPLICIT_RELOCS 1
11250 _ACEOF
11255 cris-*-*)
11256 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11257 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11258 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 else
11261 gcc_cv_as_cris_no_mul_bug=no
11262 if test $in_tree_gas = yes; then
11263 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11264 then gcc_cv_as_cris_no_mul_bug=yes
11266 elif test x$gcc_cv_as != x; then
11267 echo '.text' > conftest.s
11268 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; }
11274 then
11275 gcc_cv_as_cris_no_mul_bug=yes
11276 else
11277 echo "configure: failed program was" >&5
11278 cat conftest.s >&5
11280 rm -f conftest.o conftest.s
11283 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11284 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11285 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11287 cat >>confdefs.h <<\_ACEOF
11288 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11289 _ACEOF
11294 sparc*-*-*)
11295 echo "$as_me:$LINENO: checking assembler for .register" >&5
11296 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11297 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300 gcc_cv_as_sparc_register_op=no
11301 if test x$gcc_cv_as != x; then
11302 echo '.register %g2, #scratch' > conftest.s
11303 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; }
11309 then
11310 gcc_cv_as_sparc_register_op=yes
11311 else
11312 echo "configure: failed program was" >&5
11313 cat conftest.s >&5
11315 rm -f conftest.o conftest.s
11318 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11319 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11320 if test $gcc_cv_as_sparc_register_op = yes; then
11322 cat >>confdefs.h <<\_ACEOF
11323 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11324 _ACEOF
11328 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11329 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11330 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333 gcc_cv_as_sparc_relax=no
11334 if test x$gcc_cv_as != x; then
11335 echo '.text' > conftest.s
11336 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }
11342 then
11343 gcc_cv_as_sparc_relax=yes
11344 else
11345 echo "configure: failed program was" >&5
11346 cat conftest.s >&5
11348 rm -f conftest.o conftest.s
11351 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11352 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11353 if test $gcc_cv_as_sparc_relax = yes; then
11355 cat >>confdefs.h <<\_ACEOF
11356 #define HAVE_AS_RELAX_OPTION 1
11357 _ACEOF
11361 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11362 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11363 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 else
11366 gcc_cv_as_sparc_ua_pcrel=no
11367 if test x$gcc_cv_as != x; then
11368 echo '.text
11369 foo:
11371 .data
11372 .align 4
11373 .byte 0
11374 .uaword %r_disp32(foo)' > conftest.s
11375 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }
11381 then
11382 if test x$gcc_cv_ld != x \
11383 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11384 gcc_cv_as_sparc_ua_pcrel=yes
11386 rm -f conftest
11387 else
11388 echo "configure: failed program was" >&5
11389 cat conftest.s >&5
11391 rm -f conftest.o conftest.s
11394 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11395 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11396 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11398 cat >>confdefs.h <<\_ACEOF
11399 #define HAVE_AS_SPARC_UA_PCREL 1
11400 _ACEOF
11403 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11404 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11405 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408 gcc_cv_as_sparc_ua_pcrel_hidden=no
11409 if test x$gcc_cv_as != x; then
11410 echo '.data
11411 .align 4
11412 .byte 0x31
11413 .uaword %r_disp32(foo)
11414 .byte 0x32, 0x33, 0x34
11415 .global foo
11416 .hidden foo
11417 foo:
11418 .skip 4' > conftest.s
11419 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11422 ac_status=$?
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }
11425 then
11426 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11427 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11428 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11429 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11430 if $gcc_cv_objdump -R conftest 2> /dev/null \
11431 | grep 'DISP32' > /dev/null 2>&1; then
11433 else
11434 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11437 rm -f conftest
11438 else
11439 echo "configure: failed program was" >&5
11440 cat conftest.s >&5
11442 rm -f conftest.o conftest.s
11445 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11446 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11447 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11449 cat >>confdefs.h <<\_ACEOF
11450 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11451 _ACEOF
11455 fi # unaligned pcrel relocs
11457 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11458 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11459 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462 gcc_cv_as_sparc_offsetable_lo10=no
11463 if test x$gcc_cv_as != x; then
11464 echo '.text
11465 or %g1, %lo(ab) + 12, %g1
11466 or %g1, %lo(ab + 12), %g1' > conftest.s
11467 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }
11473 then
11474 if test x$gcc_cv_objdump != x \
11475 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11476 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11477 gcc_cv_as_offsetable_lo10=yes
11479 else
11480 echo "configure: failed program was" >&5
11481 cat conftest.s >&5
11483 rm -f conftest.o conftest.s
11486 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11487 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11488 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11490 cat >>confdefs.h <<\_ACEOF
11491 #define HAVE_AS_OFFSETABLE_LO10 1
11492 _ACEOF
11497 i[34567]86-*-* | x86_64-*-*)
11498 case $target_os in
11499 cygwin* | pe | mingw32*)
11500 # Used for DWARF 2 in PE
11501 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11502 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11503 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 else
11506 gcc_cv_as_ix86_pe_secrel32=no
11507 if test $in_tree_gas = yes; then
11508 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11509 then gcc_cv_as_ix86_pe_secrel32=yes
11511 elif test x$gcc_cv_as != x; then
11512 echo '.text
11513 foo: nop
11514 .data
11515 .secrel32 foo' > conftest.s
11516 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }
11522 then
11523 if test x$gcc_cv_ld != x \
11524 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11525 gcc_cv_as_ix86_pe_secrel32=yes
11527 rm -f conftest
11528 else
11529 echo "configure: failed program was" >&5
11530 cat conftest.s >&5
11532 rm -f conftest.o conftest.s
11535 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11536 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11537 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11539 cat >>confdefs.h <<\_ACEOF
11540 #define HAVE_GAS_PE_SECREL32_RELOC 1
11541 _ACEOF
11545 esac
11547 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11548 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11549 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11551 else
11552 gcc_cv_as_ix86_filds_fists=no
11553 if test $in_tree_gas = yes; then
11554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11555 then gcc_cv_as_ix86_filds_fists=yes
11557 elif test x$gcc_cv_as != x; then
11558 echo 'filds mem; fists mem' > conftest.s
11559 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }
11565 then
11566 gcc_cv_as_ix86_filds_fists=yes
11567 else
11568 echo "configure: failed program was" >&5
11569 cat conftest.s >&5
11571 rm -f conftest.o conftest.s
11574 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11575 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11576 if test $gcc_cv_as_ix86_filds_fists = yes; then
11578 cat >>confdefs.h <<\_ACEOF
11579 #define HAVE_GAS_FILDS_FISTS 1
11580 _ACEOF
11584 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11585 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11586 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589 gcc_cv_as_ix86_cmov_sun_syntax=no
11590 if test x$gcc_cv_as != x; then
11591 echo 'cmovl.l %edx, %eax' > conftest.s
11592 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11595 ac_status=$?
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }
11598 then
11599 gcc_cv_as_ix86_cmov_sun_syntax=yes
11600 else
11601 echo "configure: failed program was" >&5
11602 cat conftest.s >&5
11604 rm -f conftest.o conftest.s
11607 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11608 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11609 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11611 cat >>confdefs.h <<\_ACEOF
11612 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11613 _ACEOF
11617 # This one is used unconditionally by i386.[ch]; it is to be defined
11618 # to 1 if the feature is present, 0 otherwise.
11619 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11620 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11621 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624 gcc_cv_as_ix86_gotoff_in_data=no
11625 if test $in_tree_gas = yes; then
11626 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11627 then gcc_cv_as_ix86_gotoff_in_data=yes
11629 elif test x$gcc_cv_as != x; then
11630 echo ' .text
11631 .L0:
11633 .data
11634 .long .L0@GOTOFF' > conftest.s
11635 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637 (eval $ac_try) 2>&5
11638 ac_status=$?
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; }
11641 then
11642 gcc_cv_as_ix86_gotoff_in_data=yes
11643 else
11644 echo "configure: failed program was" >&5
11645 cat conftest.s >&5
11647 rm -f conftest.o conftest.s
11650 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11651 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11654 cat >>confdefs.h <<_ACEOF
11655 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11656 _ACEOF
11660 ia64*-*-*)
11661 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11662 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11663 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 else
11666 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11667 if test $in_tree_gas = yes; then
11668 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11669 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11671 elif test x$gcc_cv_as != x; then
11672 echo ' .text
11673 addl r15 = @ltoffx(x#), gp
11675 ld8.mov r16 = [r15], x#' > conftest.s
11676 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }
11682 then
11683 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11684 else
11685 echo "configure: failed program was" >&5
11686 cat conftest.s >&5
11688 rm -f conftest.o conftest.s
11691 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11692 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11693 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11695 cat >>confdefs.h <<\_ACEOF
11696 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11697 _ACEOF
11703 powerpc*-*-*)
11704 case $target in
11705 *-*-aix*) conftest_s=' .csect .text[PR]
11706 mfcr 3,128';;
11707 *-*-darwin*) conftest_s=' .text
11708 mfcr r3,128';;
11709 *) conftest_s=' .text
11710 mfcr 3,128';;
11711 esac
11713 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11714 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11715 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718 gcc_cv_as_powerpc_mfcrf=no
11719 if test $in_tree_gas = yes; then
11720 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11721 then gcc_cv_as_powerpc_mfcrf=yes
11723 elif test x$gcc_cv_as != x; then
11724 echo "$conftest_s" > conftest.s
11725 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }
11731 then
11732 gcc_cv_as_powerpc_mfcrf=yes
11733 else
11734 echo "configure: failed program was" >&5
11735 cat conftest.s >&5
11737 rm -f conftest.o conftest.s
11740 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11741 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11742 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11744 cat >>confdefs.h <<\_ACEOF
11745 #define HAVE_AS_MFCRF 1
11746 _ACEOF
11751 mips*-*-*)
11752 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11753 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11754 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 else
11757 gcc_cv_as_mips_explicit_relocs=no
11758 if test $in_tree_gas = yes; then
11759 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11760 then gcc_cv_as_mips_explicit_relocs=yes
11762 elif test x$gcc_cv_as != x; then
11763 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11764 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766 (eval $ac_try) 2>&5
11767 ac_status=$?
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; }
11770 then
11771 gcc_cv_as_mips_explicit_relocs=yes
11772 else
11773 echo "configure: failed program was" >&5
11774 cat conftest.s >&5
11776 rm -f conftest.o conftest.s
11779 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11780 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11781 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11782 if test x$target_cpu_default = x
11783 then target_cpu_default=MASK_EXPLICIT_RELOCS
11784 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11788 if test x$gas_flag = xyes \
11789 || test x"$host" != x"$build" \
11790 || test ! -x "$gcc_cv_as" \
11791 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
11793 else
11794 echo "*** This configuration requires the GNU assembler" >&2
11795 exit 1
11798 esac
11799 # ??? Not all targets support dwarf2 debug_line, even within a version
11800 # of gas. Moreover, we need to emit a valid instruction to trigger any
11801 # info to the output file. So, as supported targets are added to gas 2.11,
11802 # add some instruction here to (also) show we expect this might work.
11803 # ??? Once 2.11 is released, probably need to add first known working
11804 # version to the per-target configury.
11805 case "$target" in
11806 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11807 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11808 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11809 insn="nop"
11811 ia64*-*-* | s390*-*-*)
11812 insn="nop 0"
11814 mmix-*-*)
11815 insn="swym 0"
11817 esac
11818 if test x"$insn" != x; then
11819 conftest_s="\
11820 .file 1 \"conftest.s\"
11821 .loc 1 3 0
11822 $insn"
11823 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11824 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11825 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828 gcc_cv_as_dwarf2_debug_line=no
11829 if test $in_tree_gas = yes; then
11830 if test $in_tree_gas_is_elf = yes \
11831 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11832 then gcc_cv_as_dwarf2_debug_line=yes
11834 elif test x$gcc_cv_as != x; then
11835 echo "$conftest_s" > conftest.s
11836 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }
11842 then
11843 # ??? This fails with non-gnu grep. Maybe use objdump?
11844 if grep debug_line conftest.o > /dev/null 2>&1; then
11845 gcc_cv_as_dwarf2_debug_line=yes
11847 else
11848 echo "configure: failed program was" >&5
11849 cat conftest.s >&5
11851 rm -f conftest.o conftest.s
11854 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11855 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11858 # The .debug_line file table must be in the exact order that
11859 # we specified the files, since these indices are also used
11860 # by DW_AT_decl_file. Approximate this test by testing if
11861 # the assembler bitches if the same index is assigned twice.
11862 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11863 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11864 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 else
11867 gcc_cv_as_dwarf2_file_buggy=no
11868 if test x$gcc_cv_as != x; then
11869 echo ' .file 1 "foo.s"
11870 .file 1 "bar.s"' > conftest.s
11871 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }
11877 then
11878 gcc_cv_as_dwarf2_file_buggy=yes
11879 else
11880 echo "configure: failed program was" >&5
11881 cat conftest.s >&5
11883 rm -f conftest.o conftest.s
11886 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11887 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11890 if test $gcc_cv_as_dwarf2_debug_line = yes \
11891 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11893 cat >>confdefs.h <<\_ACEOF
11894 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11895 _ACEOF
11899 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11900 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11901 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 else
11904 gcc_cv_as_gdwarf2_flag=no
11905 if test $in_tree_gas = yes; then
11906 if test $in_tree_gas_is_elf = yes \
11907 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11908 then gcc_cv_as_gdwarf2_flag=yes
11910 elif test x$gcc_cv_as != x; then
11911 echo "$insn" > conftest.s
11912 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }
11918 then
11919 gcc_cv_as_gdwarf2_flag=yes
11920 else
11921 echo "configure: failed program was" >&5
11922 cat conftest.s >&5
11924 rm -f conftest.o conftest.s
11927 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11928 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11929 if test $gcc_cv_as_gdwarf2_flag = yes; then
11931 cat >>confdefs.h <<\_ACEOF
11932 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11933 _ACEOF
11937 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11938 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11939 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942 gcc_cv_as_gstabs_flag=no
11943 if test $in_tree_gas = yes; then
11944 if test $in_tree_gas_is_elf = yes \
11945 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11946 then gcc_cv_as_gstabs_flag=yes
11948 elif test x$gcc_cv_as != x; then
11949 echo "$insn" > conftest.s
11950 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11953 ac_status=$?
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }
11956 then
11957 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11958 # and warns about it, but still exits successfully. So check for
11959 # this.
11960 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; }
11966 then :
11967 else gcc_cv_as_gstabs_flag=yes
11969 else
11970 echo "configure: failed program was" >&5
11971 cat conftest.s >&5
11973 rm -f conftest.o conftest.s
11976 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11977 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11978 if test $gcc_cv_as_gstabs_flag = yes; then
11980 cat >>confdefs.h <<\_ACEOF
11981 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11982 _ACEOF
11987 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11988 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11989 gcc_cv_ld_ro_rw_mix=unknown
11990 if test $in_tree_ld = yes ; then
11991 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
11992 && test $in_tree_ld_is_elf = yes; then
11993 gcc_cv_ld_ro_rw_mix=read-write
11995 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11996 echo '.section myfoosect, "a"' > conftest1.s
11997 echo '.section myfoosect, "aw"' > conftest2.s
11998 echo '.byte 1' >> conftest2.s
11999 echo '.section myfoosect, "a"' > conftest3.s
12000 echo '.byte 0' >> conftest3.s
12001 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
12002 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
12003 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
12004 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
12005 conftest2.o conftest3.o > /dev/null 2>&1; then
12006 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
12007 | sed -e '/myfoosect/!d' -e N`
12008 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
12009 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
12010 gcc_cv_ld_ro_rw_mix=read-only
12011 else
12012 gcc_cv_ld_ro_rw_mix=read-write
12016 rm -f conftest.* conftest[123].*
12018 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
12020 cat >>confdefs.h <<\_ACEOF
12021 #define HAVE_LD_RO_RW_SECTION_MIXING 1
12022 _ACEOF
12025 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
12026 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
12028 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
12029 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
12030 gcc_cv_ld_eh_frame_hdr=no
12031 if test $in_tree_ld = yes ; then
12032 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 \
12033 && test $in_tree_ld_is_elf = yes; then
12034 gcc_cv_ld_eh_frame_hdr=yes
12036 elif test x$gcc_cv_ld != x; then
12037 # Check if linker supports --eh-frame-hdr option
12038 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
12039 gcc_cv_ld_eh_frame_hdr=yes
12042 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
12044 cat >>confdefs.h <<\_ACEOF
12045 #define HAVE_LD_EH_FRAME_HDR 1
12046 _ACEOF
12049 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
12050 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
12052 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
12053 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
12054 gcc_cv_ld_pie=no
12055 if test $in_tree_ld = yes ; then
12056 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 \
12057 && test $in_tree_ld_is_elf = yes; then
12058 gcc_cv_ld_pie=yes
12060 elif test x$gcc_cv_ld != x; then
12061 # Check if linker supports -pie option
12062 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
12063 gcc_cv_ld_pie=yes
12066 if test x"$gcc_cv_ld_pie" = xyes; then
12068 cat >>confdefs.h <<\_ACEOF
12069 #define HAVE_LD_PIE 1
12070 _ACEOF
12073 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
12074 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
12076 # --------
12077 # UNSORTED
12078 # --------
12080 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
12081 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
12082 if test "${gcc_cv_ld_as_needed+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085 gcc_cv_ld_as_needed=no
12086 if test $in_tree_ld = yes ; then
12087 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 \
12088 && test $in_tree_ld_is_elf = yes; then
12089 gcc_cv_ld_as_needed=yes
12091 elif test x$gcc_cv_ld != x; then
12092 # Check if linker supports --as-needed and --no-as-needed options
12093 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
12094 gcc_cv_ld_as_needed=yes
12099 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
12100 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
12101 if test x"$gcc_cv_ld_as_needed" = xyes; then
12103 cat >>confdefs.h <<\_ACEOF
12104 #define HAVE_LD_AS_NEEDED 1
12105 _ACEOF
12109 case "$target" in
12110 powerpc64*-*-linux*)
12111 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
12112 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
12113 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 else
12116 gcc_cv_ld_no_dot_syms=no
12117 if test $in_tree_ld = yes ; then
12118 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
12119 gcc_cv_ld_no_dot_syms=yes
12121 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
12122 cat > conftest1.s <<EOF
12123 .text
12124 bl .foo
12126 cat > conftest2.s <<EOF
12127 .section ".opd","aw"
12128 .align 3
12129 .globl foo
12130 .type foo,@function
12131 foo:
12132 .quad .LEfoo,.TOC.@tocbase,0
12133 .text
12134 .LEfoo:
12136 .size foo,.-.LEfoo
12138 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
12139 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
12140 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
12141 gcc_cv_ld_no_dot_syms=yes
12143 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
12147 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
12148 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
12149 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
12151 cat >>confdefs.h <<\_ACEOF
12152 #define HAVE_LD_NO_DOT_SYMS 1
12153 _ACEOF
12157 esac
12159 if test x$with_sysroot = x && test x$host = x$target \
12160 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12162 cat >>confdefs.h <<_ACEOF
12163 #define PREFIX_INCLUDE_DIR "$prefix/include"
12164 _ACEOF
12168 # Find out what GC implementation we want, or may, use.
12170 # Check whether --with-gc or --without-gc was given.
12171 if test "${with_gc+set}" = set; then
12172 withval="$with_gc"
12173 case "$withval" in
12174 page | zone)
12175 GGC=ggc-$withval
12178 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12179 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12180 { (exit 1); exit 1; }; }
12182 esac
12183 else
12184 GGC=ggc-page
12187 echo "Using $GGC for garbage collection."
12189 # Use the system's zlib library.
12190 zlibdir=-L../zlib
12191 zlibinc="-I\$(srcdir)/../zlib"
12193 # Check whether --with-system-zlib or --without-system-zlib was given.
12194 if test "${with_system_zlib+set}" = set; then
12195 withval="$with_system_zlib"
12196 zlibdir=
12197 zlibinc=
12204 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12205 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12206 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12207 if test "${enable_maintainer_mode+set}" = set; then
12208 enableval="$enable_maintainer_mode"
12209 maintainer_mode=$enableval
12210 else
12211 maintainer_mode=no
12214 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12215 echo "${ECHO_T}$maintainer_mode" >&6
12217 if test "$maintainer_mode" = "yes"; then
12218 MAINT=''
12219 else
12220 MAINT='#'
12223 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
12224 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
12226 # Check whether --with-libbanshee or --without-libbanshee was given.
12227 if test "${with_libbanshee+set}" = set; then
12228 withval="$with_libbanshee"
12229 libbanshee="$with_libbanshee"
12230 else
12231 libbanshee=no
12234 if test x"$libbanshee" = xyes; then
12235 BANSHEELIB="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
12236 BANSHEEINC="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
12237 ANDER="tree-alias-ander.o"
12239 cat >>confdefs.h <<\_ACEOF
12240 #define HAVE_BANSHEE 1
12241 _ACEOF
12243 else
12244 BANSHEELIB=""
12245 BANSHEEINC=""
12246 ANDER=""
12248 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
12249 echo "${ECHO_T}$with_libbanshee" >&6
12255 # --------------
12256 # Language hooks
12257 # --------------
12259 # Make empty files to contain the specs and options for each language.
12260 # Then add #include lines to for a compiler that has specs and/or options.
12262 lang_opt_files=
12263 lang_specs_files=
12264 lang_tree_files=
12265 for subdir in . $subdirs
12267 if test -f $srcdir/$subdir/lang.opt; then
12268 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12270 if test -f $srcdir/$subdir/lang-specs.h; then
12271 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12273 if test -f $srcdir/$subdir/$subdir-tree.def; then
12274 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12276 done
12278 # These (without "all_") are set in each config-lang.in.
12279 # `language' must be a single word so is spelled singularly.
12280 all_languages=
12281 all_boot_languages=
12282 all_compilers=
12283 all_stagestuff=
12284 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
12285 # List of language makefile fragments.
12286 all_lang_makefrags=
12287 # List of language subdirectory makefiles. Deprecated.
12288 all_lang_makefiles=
12289 # Files for gengtype
12290 all_gtfiles="$target_gtfiles"
12291 # Files for gengtype with language
12292 all_gtfiles_files_langs=
12293 all_gtfiles_files_files=
12295 # Add the language fragments.
12296 # Languages are added via two mechanisms. Some information must be
12297 # recorded in makefile variables, these are defined in config-lang.in.
12298 # We accumulate them and plug them into the main Makefile.
12299 # The other mechanism is a set of hooks for each of the main targets
12300 # like `clean', `install', etc.
12302 language_hooks="Make-hooks"
12304 for s in $subdirs
12306 language=
12307 boot_language=
12308 compilers=
12309 stagestuff=
12310 outputs=
12311 gtfiles=
12312 . ${srcdir}/$s/config-lang.in
12313 if test "x$language" = x
12314 then
12315 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12316 exit 1
12318 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12319 if test -f ${srcdir}/$s/Makefile.in
12320 then all_lang_makefiles="$s/Makefile"
12322 all_languages="$all_languages $language"
12323 if test "x$boot_language" = xyes
12324 then
12325 all_boot_languages="$all_boot_languages $language"
12327 all_compilers="$all_compilers $compilers"
12328 all_stagestuff="$all_stagestuff $stagestuff"
12329 all_outputs="$all_outputs $outputs"
12330 all_gtfiles="$all_gtfiles $gtfiles"
12331 for f in $gtfiles
12333 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12334 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12335 done
12336 done
12338 # Pick up gtfiles for c
12339 gtfiles=
12340 s="c"
12341 . ${srcdir}/c-config-lang.in
12342 all_gtfiles="$all_gtfiles $gtfiles"
12343 for f in $gtfiles
12345 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12346 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12347 done
12349 check_languages=
12350 for language in $all_languages
12352 check_languages="$check_languages check-$language"
12353 done
12355 # We link each language in with a set of hooks, reached indirectly via
12356 # lang.${target}.
12358 rm -f Make-hooks
12359 touch Make-hooks
12360 target_list="all.build all.cross start.encap rest.encap tags \
12361 install-normal install-common install-man \
12362 uninstall info man srcextra srcman srcinfo \
12363 mostlyclean clean distclean maintainer-clean \
12364 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12365 for t in $target_list
12368 for lang in $all_languages
12370 x="$x $lang.$t"
12371 done
12372 echo "lang.$t: $x" >> Make-hooks
12373 done
12375 # --------
12376 # UNSORTED
12377 # --------
12379 # Create .gdbinit.
12381 echo "dir ." > .gdbinit
12382 echo "dir ${srcdir}" >> .gdbinit
12383 if test x$gdb_needs_out_file_path = xyes
12384 then
12385 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12387 if test "x$subdirs" != x; then
12388 for s in $subdirs
12390 echo "dir ${srcdir}/$s" >> .gdbinit
12391 done
12393 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12395 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12396 # absolute path for gcc_tooldir based on inserting the number of up-directory
12397 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12398 # $(libsubdir)/@(unlibsubdir) based path.
12399 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12400 # make and thus we'd get different behavior depending on where we built the
12401 # sources.
12402 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12403 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12404 else
12405 # An explanation of the sed strings:
12406 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12407 # -e 's|/$||' match a trailing forward slash and eliminates it
12408 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12409 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12411 # (*) Note this pattern overwrites the first character of the string
12412 # with a forward slash if one is not already present. This is not a
12413 # problem because the exact names of the sub-directories concerned is
12414 # unimportant, just the number of them matters.
12416 # The practical upshot of these patterns is like this:
12418 # prefix exec_prefix result
12419 # ------ ----------- ------
12420 # /foo /foo/bar ../
12421 # /foo/ /foo/bar ../
12422 # /foo /foo/bar/ ../
12423 # /foo/ /foo/bar/ ../
12424 # /foo /foo/bar/ugg ../../
12426 dollar='$$'
12427 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12432 # Find a directory in which to install a shared libgcc.
12434 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12435 if test "${enable_version_specific_runtime_libs+set}" = set; then
12436 enableval="$enable_version_specific_runtime_libs"
12441 # Check whether --with-slibdir or --without-slibdir was given.
12442 if test "${with_slibdir+set}" = set; then
12443 withval="$with_slibdir"
12444 slibdir="$with_slibdir"
12445 else
12446 if test "${enable_version_specific_runtime_libs+set}" = set; then
12447 slibdir='$(libsubdir)'
12448 elif test "$host" != "$target"; then
12449 slibdir='$(build_tooldir)/lib'
12450 else
12451 slibdir='$(libdir)'
12456 objdir=`${PWDCMD-pwd}`
12459 # Substitute configuration variables
12527 # If it doesn't already exist, create document directory
12528 echo "checking for the document directory." 1>&2
12529 if test -d doc ; then
12530 true
12531 else
12532 mkdir doc
12535 # Echo link setup.
12536 if test x${build} = x${host} ; then
12537 if test x${host} = x${target} ; then
12538 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12539 else
12540 echo "Links are now set up to build a cross-compiler" 1>&2
12541 echo " from ${host} to ${target}." 1>&2
12543 else
12544 if test x${host} = x${target} ; then
12545 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12546 echo " for ${target}." 1>&2
12547 else
12548 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12549 echo " from ${host} to ${target}." 1>&2
12556 # Configure the subdirectories
12557 # AC_CONFIG_SUBDIRS($subdirs)
12559 # Create the Makefile
12560 # and configure language subdirectories
12561 ac_config_files="$ac_config_files $all_outputs"
12564 ac_config_commands="$ac_config_commands default"
12566 cat >confcache <<\_ACEOF
12567 # This file is a shell script that caches the results of configure
12568 # tests run on this system so they can be shared between configure
12569 # scripts and configure runs, see configure's option --config-cache.
12570 # It is not useful on other systems. If it contains results you don't
12571 # want to keep, you may remove or edit it.
12573 # config.status only pays attention to the cache file if you give it
12574 # the --recheck option to rerun configure.
12576 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12577 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12578 # following values.
12580 _ACEOF
12582 # The following way of writing the cache mishandles newlines in values,
12583 # but we know of no workaround that is simple, portable, and efficient.
12584 # So, don't put newlines in cache variables' values.
12585 # Ultrix sh set writes to stderr and can't be redirected directly,
12586 # and sets the high bit in the cache file unless we assign to the vars.
12588 (set) 2>&1 |
12589 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12590 *ac_space=\ *)
12591 # `set' does not quote correctly, so add quotes (double-quote
12592 # substitution turns \\\\ into \\, and sed turns \\ into \).
12593 sed -n \
12594 "s/'/'\\\\''/g;
12595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12598 # `set' quotes correctly as required by POSIX, so do not add quotes.
12599 sed -n \
12600 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12602 esac;
12604 sed '
12605 t clear
12606 : clear
12607 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12608 t end
12609 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12610 : end' >>confcache
12611 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12612 if test -w $cache_file; then
12613 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12614 cat confcache >$cache_file
12615 else
12616 echo "not updating unwritable cache $cache_file"
12619 rm -f confcache
12621 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12622 # Let make expand exec_prefix.
12623 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12625 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12626 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12627 # trailing colons and then remove the whole line if VPATH becomes empty
12628 # (actually we leave an empty line to preserve line numbers).
12629 if test "x$srcdir" = x.; then
12630 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12631 s/:*\$(srcdir):*/:/;
12632 s/:*\${srcdir}:*/:/;
12633 s/:*@srcdir@:*/:/;
12634 s/^\([^=]*=[ ]*\):*/\1/;
12635 s/:*$//;
12636 s/^[^=]*=[ ]*$//;
12640 DEFS=-DHAVE_CONFIG_H
12642 ac_libobjs=
12643 ac_ltlibobjs=
12644 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12645 # 1. Remove the extension, and $U if already installed.
12646 ac_i=`echo "$ac_i" |
12647 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12648 # 2. Add them.
12649 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12650 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12651 done
12652 LIBOBJS=$ac_libobjs
12654 LTLIBOBJS=$ac_ltlibobjs
12658 : ${CONFIG_STATUS=./config.status}
12659 ac_clean_files_save=$ac_clean_files
12660 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12661 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12662 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12663 cat >$CONFIG_STATUS <<_ACEOF
12664 #! $SHELL
12665 # Generated by $as_me.
12666 # Run this file to recreate the current configuration.
12667 # Compiler output produced by configure, useful for debugging
12668 # configure, is in config.log if it exists.
12670 debug=false
12671 ac_cs_recheck=false
12672 ac_cs_silent=false
12673 SHELL=\${CONFIG_SHELL-$SHELL}
12674 _ACEOF
12676 cat >>$CONFIG_STATUS <<\_ACEOF
12677 ## --------------------- ##
12678 ## M4sh Initialization. ##
12679 ## --------------------- ##
12681 # Be Bourne compatible
12682 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12683 emulate sh
12684 NULLCMD=:
12685 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12686 # is contrary to our usage. Disable this feature.
12687 alias -g '${1+"$@"}'='"$@"'
12688 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12689 set -o posix
12691 DUALCASE=1; export DUALCASE # for MKS sh
12693 # Support unset when possible.
12694 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12695 as_unset=unset
12696 else
12697 as_unset=false
12701 # Work around bugs in pre-3.0 UWIN ksh.
12702 $as_unset ENV MAIL MAILPATH
12703 PS1='$ '
12704 PS2='> '
12705 PS4='+ '
12707 # NLS nuisances.
12708 for as_var in \
12709 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12710 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12711 LC_TELEPHONE LC_TIME
12713 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12714 eval $as_var=C; export $as_var
12715 else
12716 $as_unset $as_var
12718 done
12720 # Required to use basename.
12721 if expr a : '\(a\)' >/dev/null 2>&1; then
12722 as_expr=expr
12723 else
12724 as_expr=false
12727 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12728 as_basename=basename
12729 else
12730 as_basename=false
12734 # Name of the executable.
12735 as_me=`$as_basename "$0" ||
12736 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12737 X"$0" : 'X\(//\)$' \| \
12738 X"$0" : 'X\(/\)$' \| \
12739 . : '\(.\)' 2>/dev/null ||
12740 echo X/"$0" |
12741 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12742 /^X\/\(\/\/\)$/{ s//\1/; q; }
12743 /^X\/\(\/\).*/{ s//\1/; q; }
12744 s/.*/./; q'`
12747 # PATH needs CR, and LINENO needs CR and PATH.
12748 # Avoid depending upon Character Ranges.
12749 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12750 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12751 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12752 as_cr_digits='0123456789'
12753 as_cr_alnum=$as_cr_Letters$as_cr_digits
12755 # The user is always right.
12756 if test "${PATH_SEPARATOR+set}" != set; then
12757 echo "#! /bin/sh" >conf$$.sh
12758 echo "exit 0" >>conf$$.sh
12759 chmod +x conf$$.sh
12760 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12761 PATH_SEPARATOR=';'
12762 else
12763 PATH_SEPARATOR=:
12765 rm -f conf$$.sh
12769 as_lineno_1=$LINENO
12770 as_lineno_2=$LINENO
12771 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12772 test "x$as_lineno_1" != "x$as_lineno_2" &&
12773 test "x$as_lineno_3" = "x$as_lineno_2" || {
12774 # Find who we are. Look in the path if we contain no path at all
12775 # relative or not.
12776 case $0 in
12777 *[\\/]* ) as_myself=$0 ;;
12778 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779 for as_dir in $PATH
12781 IFS=$as_save_IFS
12782 test -z "$as_dir" && as_dir=.
12783 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12784 done
12787 esac
12788 # We did not find ourselves, most probably we were run as `sh COMMAND'
12789 # in which case we are not to be found in the path.
12790 if test "x$as_myself" = x; then
12791 as_myself=$0
12793 if test ! -f "$as_myself"; then
12794 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12795 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12796 { (exit 1); exit 1; }; }
12798 case $CONFIG_SHELL in
12800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12801 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12803 IFS=$as_save_IFS
12804 test -z "$as_dir" && as_dir=.
12805 for as_base in sh bash ksh sh5; do
12806 case $as_dir in
12808 if ("$as_dir/$as_base" -c '
12809 as_lineno_1=$LINENO
12810 as_lineno_2=$LINENO
12811 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12812 test "x$as_lineno_1" != "x$as_lineno_2" &&
12813 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12814 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12815 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12816 CONFIG_SHELL=$as_dir/$as_base
12817 export CONFIG_SHELL
12818 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12819 fi;;
12820 esac
12821 done
12822 done
12824 esac
12826 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12827 # uniformly replaced by the line number. The first 'sed' inserts a
12828 # line-number line before each line; the second 'sed' does the real
12829 # work. The second script uses 'N' to pair each line-number line
12830 # with the numbered line, and appends trailing '-' during
12831 # substitution so that $LINENO is not a special case at line end.
12832 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12833 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12834 sed '=' <$as_myself |
12835 sed '
12837 s,$,-,
12838 : loop
12839 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12840 t loop
12841 s,-$,,
12842 s,^['$as_cr_digits']*\n,,
12843 ' >$as_me.lineno &&
12844 chmod +x $as_me.lineno ||
12845 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12846 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12847 { (exit 1); exit 1; }; }
12849 # Don't try to exec as it changes $[0], causing all sort of problems
12850 # (the dirname of $[0] is not the place where we might find the
12851 # original and so on. Autoconf is especially sensible to this).
12852 . ./$as_me.lineno
12853 # Exit status is that of the last command.
12854 exit
12858 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12859 *c*,-n*) ECHO_N= ECHO_C='
12860 ' ECHO_T=' ' ;;
12861 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12862 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12863 esac
12865 if expr a : '\(a\)' >/dev/null 2>&1; then
12866 as_expr=expr
12867 else
12868 as_expr=false
12871 rm -f conf$$ conf$$.exe conf$$.file
12872 echo >conf$$.file
12873 if ln -s conf$$.file conf$$ 2>/dev/null; then
12874 # We could just check for DJGPP; but this test a) works b) is more generic
12875 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12876 if test -f conf$$.exe; then
12877 # Don't use ln at all; we don't have any links
12878 as_ln_s='cp -p'
12879 else
12880 as_ln_s='ln -s'
12882 elif ln conf$$.file conf$$ 2>/dev/null; then
12883 as_ln_s=ln
12884 else
12885 as_ln_s='cp -p'
12887 rm -f conf$$ conf$$.exe conf$$.file
12889 if mkdir -p . 2>/dev/null; then
12890 as_mkdir_p=:
12891 else
12892 test -d ./-p && rmdir ./-p
12893 as_mkdir_p=false
12896 as_executable_p="test -f"
12898 # Sed expression to map a string onto a valid CPP name.
12899 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12901 # Sed expression to map a string onto a valid variable name.
12902 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12905 # IFS
12906 # We need space, tab and new line, in precisely that order.
12907 as_nl='
12909 IFS=" $as_nl"
12911 # CDPATH.
12912 $as_unset CDPATH
12914 exec 6>&1
12916 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12917 # report actual input values of CONFIG_FILES etc. instead of their
12918 # values after options handling. Logging --version etc. is OK.
12919 exec 5>>config.log
12921 echo
12922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12923 ## Running $as_me. ##
12924 _ASBOX
12925 } >&5
12926 cat >&5 <<_CSEOF
12928 This file was extended by $as_me, which was
12929 generated by GNU Autoconf 2.59. Invocation command line was
12931 CONFIG_FILES = $CONFIG_FILES
12932 CONFIG_HEADERS = $CONFIG_HEADERS
12933 CONFIG_LINKS = $CONFIG_LINKS
12934 CONFIG_COMMANDS = $CONFIG_COMMANDS
12935 $ $0 $@
12937 _CSEOF
12938 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12939 echo >&5
12940 _ACEOF
12942 # Files that config.status was made for.
12943 if test -n "$ac_config_files"; then
12944 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12947 if test -n "$ac_config_headers"; then
12948 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12951 if test -n "$ac_config_links"; then
12952 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12955 if test -n "$ac_config_commands"; then
12956 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12959 cat >>$CONFIG_STATUS <<\_ACEOF
12961 ac_cs_usage="\
12962 \`$as_me' instantiates files from templates according to the
12963 current configuration.
12965 Usage: $0 [OPTIONS] [FILE]...
12967 -h, --help print this help, then exit
12968 -V, --version print version number, then exit
12969 -q, --quiet do not print progress messages
12970 -d, --debug don't remove temporary files
12971 --recheck update $as_me by reconfiguring in the same conditions
12972 --file=FILE[:TEMPLATE]
12973 instantiate the configuration file FILE
12974 --header=FILE[:TEMPLATE]
12975 instantiate the configuration header FILE
12977 Configuration files:
12978 $config_files
12980 Configuration headers:
12981 $config_headers
12983 Configuration commands:
12984 $config_commands
12986 Report bugs to <bug-autoconf@gnu.org>."
12987 _ACEOF
12989 cat >>$CONFIG_STATUS <<_ACEOF
12990 ac_cs_version="\\
12991 config.status
12992 configured by $0, generated by GNU Autoconf 2.59,
12993 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12995 Copyright (C) 2003 Free Software Foundation, Inc.
12996 This config.status script is free software; the Free Software Foundation
12997 gives unlimited permission to copy, distribute and modify it."
12998 srcdir=$srcdir
12999 _ACEOF
13001 cat >>$CONFIG_STATUS <<\_ACEOF
13002 # If no file are specified by the user, then we need to provide default
13003 # value. By we need to know if files were specified by the user.
13004 ac_need_defaults=:
13005 while test $# != 0
13007 case $1 in
13008 --*=*)
13009 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13010 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13011 ac_shift=:
13014 ac_option=$1
13015 ac_optarg=$2
13016 ac_shift=shift
13018 *) # This is not an option, so the user has probably given explicit
13019 # arguments.
13020 ac_option=$1
13021 ac_need_defaults=false;;
13022 esac
13024 case $ac_option in
13025 # Handling of the options.
13026 _ACEOF
13027 cat >>$CONFIG_STATUS <<\_ACEOF
13028 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13029 ac_cs_recheck=: ;;
13030 --version | --vers* | -V )
13031 echo "$ac_cs_version"; exit 0 ;;
13032 --he | --h)
13033 # Conflict between --help and --header
13034 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13035 Try \`$0 --help' for more information." >&5
13036 echo "$as_me: error: ambiguous option: $1
13037 Try \`$0 --help' for more information." >&2;}
13038 { (exit 1); exit 1; }; };;
13039 --help | --hel | -h )
13040 echo "$ac_cs_usage"; exit 0 ;;
13041 --debug | --d* | -d )
13042 debug=: ;;
13043 --file | --fil | --fi | --f )
13044 $ac_shift
13045 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13046 ac_need_defaults=false;;
13047 --header | --heade | --head | --hea )
13048 $ac_shift
13049 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13050 ac_need_defaults=false;;
13051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13052 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13053 ac_cs_silent=: ;;
13055 # This is an error.
13056 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13057 Try \`$0 --help' for more information." >&5
13058 echo "$as_me: error: unrecognized option: $1
13059 Try \`$0 --help' for more information." >&2;}
13060 { (exit 1); exit 1; }; } ;;
13062 *) ac_config_targets="$ac_config_targets $1" ;;
13064 esac
13065 shift
13066 done
13068 ac_configure_extra_args=
13070 if $ac_cs_silent; then
13071 exec 6>/dev/null
13072 ac_configure_extra_args="$ac_configure_extra_args --silent"
13075 _ACEOF
13076 cat >>$CONFIG_STATUS <<_ACEOF
13077 if \$ac_cs_recheck; then
13078 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13079 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13082 _ACEOF
13084 cat >>$CONFIG_STATUS <<_ACEOF
13086 # INIT-COMMANDS section.
13089 subdirs='$subdirs'
13090 symbolic_link='$symbolic_link'
13093 _ACEOF
13097 cat >>$CONFIG_STATUS <<\_ACEOF
13098 for ac_config_target in $ac_config_targets
13100 case "$ac_config_target" in
13101 # Handling of arguments.
13102 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
13103 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13104 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
13105 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13106 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13107 { (exit 1); exit 1; }; };;
13108 esac
13109 done
13111 # If the user did not use the arguments to specify the items to instantiate,
13112 # then the envvar interface is used. Set only those that are not.
13113 # We use the long form for the default assignment because of an extremely
13114 # bizarre bug on SunOS 4.1.3.
13115 if $ac_need_defaults; then
13116 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13117 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13118 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13121 # Have a temporary directory for convenience. Make it in the build tree
13122 # simply because there is no reason to put it here, and in addition,
13123 # creating and moving files from /tmp can sometimes cause problems.
13124 # Create a temporary directory, and hook for its removal unless debugging.
13125 $debug ||
13127 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13128 trap '{ (exit 1); exit 1; }' 1 2 13 15
13131 # Create a (secure) tmp directory for tmp files.
13134 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13135 test -n "$tmp" && test -d "$tmp"
13136 } ||
13138 tmp=./confstat$$-$RANDOM
13139 (umask 077 && mkdir $tmp)
13140 } ||
13142 echo "$me: cannot create a temporary directory in ." >&2
13143 { (exit 1); exit 1; }
13146 _ACEOF
13148 cat >>$CONFIG_STATUS <<_ACEOF
13151 # CONFIG_FILES section.
13154 # No need to generate the scripts if there are no CONFIG_FILES.
13155 # This happens for instance when ./config.status config.h
13156 if test -n "\$CONFIG_FILES"; then
13157 # Protect against being on the right side of a sed subst in config.status.
13158 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13159 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13160 s,@SHELL@,$SHELL,;t t
13161 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13162 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13163 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13164 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13165 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13166 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13167 s,@exec_prefix@,$exec_prefix,;t t
13168 s,@prefix@,$prefix,;t t
13169 s,@program_transform_name@,$program_transform_name,;t t
13170 s,@bindir@,$bindir,;t t
13171 s,@sbindir@,$sbindir,;t t
13172 s,@libexecdir@,$libexecdir,;t t
13173 s,@datadir@,$datadir,;t t
13174 s,@sysconfdir@,$sysconfdir,;t t
13175 s,@sharedstatedir@,$sharedstatedir,;t t
13176 s,@localstatedir@,$localstatedir,;t t
13177 s,@libdir@,$libdir,;t t
13178 s,@includedir@,$includedir,;t t
13179 s,@oldincludedir@,$oldincludedir,;t t
13180 s,@infodir@,$infodir,;t t
13181 s,@mandir@,$mandir,;t t
13182 s,@build_alias@,$build_alias,;t t
13183 s,@host_alias@,$host_alias,;t t
13184 s,@target_alias@,$target_alias,;t t
13185 s,@DEFS@,$DEFS,;t t
13186 s,@ECHO_C@,$ECHO_C,;t t
13187 s,@ECHO_N@,$ECHO_N,;t t
13188 s,@ECHO_T@,$ECHO_T,;t t
13189 s,@LIBS@,$LIBS,;t t
13190 s,@build@,$build,;t t
13191 s,@build_cpu@,$build_cpu,;t t
13192 s,@build_vendor@,$build_vendor,;t t
13193 s,@build_os@,$build_os,;t t
13194 s,@host@,$host,;t t
13195 s,@host_cpu@,$host_cpu,;t t
13196 s,@host_vendor@,$host_vendor,;t t
13197 s,@host_os@,$host_os,;t t
13198 s,@target@,$target,;t t
13199 s,@target_cpu@,$target_cpu,;t t
13200 s,@target_vendor@,$target_vendor,;t t
13201 s,@target_os@,$target_os,;t t
13202 s,@target_noncanonical@,$target_noncanonical,;t t
13203 s,@build_subdir@,$build_subdir,;t t
13204 s,@host_subdir@,$host_subdir,;t t
13205 s,@target_subdir@,$target_subdir,;t t
13206 s,@GENINSRC@,$GENINSRC,;t t
13207 s,@CC@,$CC,;t t
13208 s,@CFLAGS@,$CFLAGS,;t t
13209 s,@LDFLAGS@,$LDFLAGS,;t t
13210 s,@CPPFLAGS@,$CPPFLAGS,;t t
13211 s,@ac_ct_CC@,$ac_ct_CC,;t t
13212 s,@EXEEXT@,$EXEEXT,;t t
13213 s,@OBJEXT@,$OBJEXT,;t t
13214 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13215 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13216 s,@CPP@,$CPP,;t t
13217 s,@strict1_warn@,$strict1_warn,;t t
13218 s,@warn_cflags@,$warn_cflags,;t t
13219 s,@WERROR@,$WERROR,;t t
13220 s,@nocommon_flag@,$nocommon_flag,;t t
13221 s,@TREEBROWSER@,$TREEBROWSER,;t t
13222 s,@EGREP@,$EGREP,;t t
13223 s,@valgrind_path@,$valgrind_path,;t t
13224 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13225 s,@valgrind_command@,$valgrind_command,;t t
13226 s,@coverage_flags@,$coverage_flags,;t t
13227 s,@enable_multilib@,$enable_multilib,;t t
13228 s,@enable_shared@,$enable_shared,;t t
13229 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13230 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13231 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13232 s,@onestep@,$onestep,;t t
13233 s,@SET_MAKE@,$SET_MAKE,;t t
13234 s,@AWK@,$AWK,;t t
13235 s,@LN_S@,$LN_S,;t t
13236 s,@LN@,$LN,;t t
13237 s,@RANLIB@,$RANLIB,;t t
13238 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13239 s,@ranlib_flags@,$ranlib_flags,;t t
13240 s,@INSTALL@,$INSTALL,;t t
13241 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13242 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13243 s,@make_compare_target@,$make_compare_target,;t t
13244 s,@have_mktemp_command@,$have_mktemp_command,;t t
13245 s,@MAKEINFO@,$MAKEINFO,;t t
13246 s,@BUILD_INFO@,$BUILD_INFO,;t t
13247 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13248 s,@FLEX@,$FLEX,;t t
13249 s,@BISON@,$BISON,;t t
13250 s,@NM@,$NM,;t t
13251 s,@AR@,$AR,;t t
13252 s,@stage1_cflags@,$stage1_cflags,;t t
13253 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13254 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13255 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13256 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13257 s,@LIBICONV@,$LIBICONV,;t t
13258 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13259 s,@manext@,$manext,;t t
13260 s,@objext@,$objext,;t t
13261 s,@gthread_flags@,$gthread_flags,;t t
13262 s,@extra_modes_file@,$extra_modes_file,;t t
13263 s,@FORBUILD@,$FORBUILD,;t t
13264 s,@PACKAGE@,$PACKAGE,;t t
13265 s,@VERSION@,$VERSION,;t t
13266 s,@USE_NLS@,$USE_NLS,;t t
13267 s,@LIBINTL@,$LIBINTL,;t t
13268 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13269 s,@INCINTL@,$INCINTL,;t t
13270 s,@XGETTEXT@,$XGETTEXT,;t t
13271 s,@GMSGFMT@,$GMSGFMT,;t t
13272 s,@POSUB@,$POSUB,;t t
13273 s,@CATALOGS@,$CATALOGS,;t t
13274 s,@CROSS@,$CROSS,;t t
13275 s,@ALL@,$ALL,;t t
13276 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13277 s,@inhibit_libc@,$inhibit_libc,;t t
13278 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13279 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13280 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13281 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13282 s,@collect2@,$collect2,;t t
13283 s,@libgcc_visibility@,$libgcc_visibility,;t t
13284 s,@GGC@,$GGC,;t t
13285 s,@zlibdir@,$zlibdir,;t t
13286 s,@zlibinc@,$zlibinc,;t t
13287 s,@MAINT@,$MAINT,;t t
13288 s,@ANDER@,$ANDER,;t t
13289 s,@BANSHEEINC@,$BANSHEEINC,;t t
13290 s,@BANSHEELIB@,$BANSHEELIB,;t t
13291 s,@gcc_tooldir@,$gcc_tooldir,;t t
13292 s,@dollar@,$dollar,;t t
13293 s,@slibdir@,$slibdir,;t t
13294 s,@objdir@,$objdir,;t t
13295 s,@subdirs@,$subdirs,;t t
13296 s,@srcdir@,$srcdir,;t t
13297 s,@all_boot_languages@,$all_boot_languages,;t t
13298 s,@all_compilers@,$all_compilers,;t t
13299 s,@all_gtfiles@,$all_gtfiles,;t t
13300 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13301 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13302 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13303 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13304 s,@all_languages@,$all_languages,;t t
13305 s,@all_stagestuff@,$all_stagestuff,;t t
13306 s,@build_exeext@,$build_exeext,;t t
13307 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13308 s,@build_xm_file_list@,$build_xm_file_list,;t t
13309 s,@build_xm_include_list@,$build_xm_include_list,;t t
13310 s,@build_xm_defines@,$build_xm_defines,;t t
13311 s,@check_languages@,$check_languages,;t t
13312 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13313 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13314 s,@cpp_install_dir@,$cpp_install_dir,;t t
13315 s,@xmake_file@,$xmake_file,;t t
13316 s,@tmake_file@,$tmake_file,;t t
13317 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13318 s,@extra_headers_list@,$extra_headers_list,;t t
13319 s,@extra_objs@,$extra_objs,;t t
13320 s,@extra_parts@,$extra_parts,;t t
13321 s,@extra_passes@,$extra_passes,;t t
13322 s,@extra_programs@,$extra_programs,;t t
13323 s,@float_h_file@,$float_h_file,;t t
13324 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13325 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13326 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13327 s,@gcc_version@,$gcc_version,;t t
13328 s,@gcc_version_full@,$gcc_version_full,;t t
13329 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13330 s,@host_exeext@,$host_exeext,;t t
13331 s,@host_xm_file_list@,$host_xm_file_list,;t t
13332 s,@host_xm_include_list@,$host_xm_include_list,;t t
13333 s,@host_xm_defines@,$host_xm_defines,;t t
13334 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13335 s,@install@,$install,;t t
13336 s,@lang_opt_files@,$lang_opt_files,;t t
13337 s,@lang_specs_files@,$lang_specs_files,;t t
13338 s,@lang_tree_files@,$lang_tree_files,;t t
13339 s,@local_prefix@,$local_prefix,;t t
13340 s,@md_file@,$md_file,;t t
13341 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13342 s,@out_file@,$out_file,;t t
13343 s,@out_object_file@,$out_object_file,;t t
13344 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13345 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13346 s,@symbolic_link@,$symbolic_link,;t t
13347 s,@thread_file@,$thread_file,;t t
13348 s,@tm_file_list@,$tm_file_list,;t t
13349 s,@tm_include_list@,$tm_include_list,;t t
13350 s,@tm_defines@,$tm_defines,;t t
13351 s,@tm_p_file_list@,$tm_p_file_list,;t t
13352 s,@tm_p_include_list@,$tm_p_include_list,;t t
13353 s,@xm_file_list@,$xm_file_list,;t t
13354 s,@xm_include_list@,$xm_include_list,;t t
13355 s,@xm_defines@,$xm_defines,;t t
13356 s,@c_target_objs@,$c_target_objs,;t t
13357 s,@cxx_target_objs@,$cxx_target_objs,;t t
13358 s,@target_cpu_default@,$target_cpu_default,;t t
13359 s,@GMPLIBS@,$GMPLIBS,;t t
13360 s,@GMPINC@,$GMPINC,;t t
13361 s,@LIBOBJS@,$LIBOBJS,;t t
13362 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13363 /@language_hooks@/r $language_hooks
13364 s,@language_hooks@,,;t t
13365 CEOF
13367 _ACEOF
13369 cat >>$CONFIG_STATUS <<\_ACEOF
13370 # Split the substitutions into bite-sized pieces for seds with
13371 # small command number limits, like on Digital OSF/1 and HP-UX.
13372 ac_max_sed_lines=48
13373 ac_sed_frag=1 # Number of current file.
13374 ac_beg=1 # First line for current file.
13375 ac_end=$ac_max_sed_lines # Line after last line for current file.
13376 ac_more_lines=:
13377 ac_sed_cmds=
13378 while $ac_more_lines; do
13379 if test $ac_beg -gt 1; then
13380 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13381 else
13382 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13384 if test ! -s $tmp/subs.frag; then
13385 ac_more_lines=false
13386 else
13387 # The purpose of the label and of the branching condition is to
13388 # speed up the sed processing (if there are no `@' at all, there
13389 # is no need to browse any of the substitutions).
13390 # These are the two extra sed commands mentioned above.
13391 (echo ':t
13392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13393 if test -z "$ac_sed_cmds"; then
13394 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13395 else
13396 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13398 ac_sed_frag=`expr $ac_sed_frag + 1`
13399 ac_beg=$ac_end
13400 ac_end=`expr $ac_end + $ac_max_sed_lines`
13402 done
13403 if test -z "$ac_sed_cmds"; then
13404 ac_sed_cmds=cat
13406 fi # test -n "$CONFIG_FILES"
13408 _ACEOF
13409 cat >>$CONFIG_STATUS <<\_ACEOF
13410 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13412 case $ac_file in
13413 - | *:- | *:-:* ) # input from stdin
13414 cat >$tmp/stdin
13415 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13417 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13419 * ) ac_file_in=$ac_file.in ;;
13420 esac
13422 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13423 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13424 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13425 X"$ac_file" : 'X\(//\)[^/]' \| \
13426 X"$ac_file" : 'X\(//\)$' \| \
13427 X"$ac_file" : 'X\(/\)' \| \
13428 . : '\(.\)' 2>/dev/null ||
13429 echo X"$ac_file" |
13430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13432 /^X\(\/\/\)$/{ s//\1/; q; }
13433 /^X\(\/\).*/{ s//\1/; q; }
13434 s/.*/./; q'`
13435 { if $as_mkdir_p; then
13436 mkdir -p "$ac_dir"
13437 else
13438 as_dir="$ac_dir"
13439 as_dirs=
13440 while test ! -d "$as_dir"; do
13441 as_dirs="$as_dir $as_dirs"
13442 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13443 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13444 X"$as_dir" : 'X\(//\)[^/]' \| \
13445 X"$as_dir" : 'X\(//\)$' \| \
13446 X"$as_dir" : 'X\(/\)' \| \
13447 . : '\(.\)' 2>/dev/null ||
13448 echo X"$as_dir" |
13449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13450 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13451 /^X\(\/\/\)$/{ s//\1/; q; }
13452 /^X\(\/\).*/{ s//\1/; q; }
13453 s/.*/./; q'`
13454 done
13455 test ! -n "$as_dirs" || mkdir $as_dirs
13456 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13457 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13458 { (exit 1); exit 1; }; }; }
13460 ac_builddir=.
13462 if test "$ac_dir" != .; then
13463 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13464 # A "../" for each directory in $ac_dir_suffix.
13465 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13466 else
13467 ac_dir_suffix= ac_top_builddir=
13470 case $srcdir in
13471 .) # No --srcdir option. We are building in place.
13472 ac_srcdir=.
13473 if test -z "$ac_top_builddir"; then
13474 ac_top_srcdir=.
13475 else
13476 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13477 fi ;;
13478 [\\/]* | ?:[\\/]* ) # Absolute path.
13479 ac_srcdir=$srcdir$ac_dir_suffix;
13480 ac_top_srcdir=$srcdir ;;
13481 *) # Relative path.
13482 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13483 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13484 esac
13486 # Do not use `cd foo && pwd` to compute absolute paths, because
13487 # the directories may not exist.
13488 case `pwd` in
13489 .) ac_abs_builddir="$ac_dir";;
13491 case "$ac_dir" in
13492 .) ac_abs_builddir=`pwd`;;
13493 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13494 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13495 esac;;
13496 esac
13497 case $ac_abs_builddir in
13498 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13500 case ${ac_top_builddir}. in
13501 .) ac_abs_top_builddir=$ac_abs_builddir;;
13502 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13503 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13504 esac;;
13505 esac
13506 case $ac_abs_builddir in
13507 .) ac_abs_srcdir=$ac_srcdir;;
13509 case $ac_srcdir in
13510 .) ac_abs_srcdir=$ac_abs_builddir;;
13511 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13512 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13513 esac;;
13514 esac
13515 case $ac_abs_builddir in
13516 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13518 case $ac_top_srcdir in
13519 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13520 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13521 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13522 esac;;
13523 esac
13527 if test x"$ac_file" != x-; then
13528 { echo "$as_me:$LINENO: creating $ac_file" >&5
13529 echo "$as_me: creating $ac_file" >&6;}
13530 rm -f "$ac_file"
13532 # Let's still pretend it is `configure' which instantiates (i.e., don't
13533 # use $as_me), people would be surprised to read:
13534 # /* config.h. Generated by config.status. */
13535 if test x"$ac_file" = x-; then
13536 configure_input=
13537 else
13538 configure_input="$ac_file. "
13540 configure_input=$configure_input"Generated from `echo $ac_file_in |
13541 sed 's,.*/,,'` by configure."
13543 # First look for the input files in the build tree, otherwise in the
13544 # src tree.
13545 ac_file_inputs=`IFS=:
13546 for f in $ac_file_in; do
13547 case $f in
13548 -) echo $tmp/stdin ;;
13549 [\\/$]*)
13550 # Absolute (can't be DOS-style, as IFS=:)
13551 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13552 echo "$as_me: error: cannot find input file: $f" >&2;}
13553 { (exit 1); exit 1; }; }
13554 echo "$f";;
13555 *) # Relative
13556 if test -f "$f"; then
13557 # Build tree
13558 echo "$f"
13559 elif test -f "$srcdir/$f"; then
13560 # Source tree
13561 echo "$srcdir/$f"
13562 else
13563 # /dev/null tree
13564 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13565 echo "$as_me: error: cannot find input file: $f" >&2;}
13566 { (exit 1); exit 1; }; }
13567 fi;;
13568 esac
13569 done` || { (exit 1); exit 1; }
13570 _ACEOF
13571 cat >>$CONFIG_STATUS <<_ACEOF
13572 sed "$ac_vpsub
13573 $extrasub
13574 _ACEOF
13575 cat >>$CONFIG_STATUS <<\_ACEOF
13577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13578 s,@configure_input@,$configure_input,;t t
13579 s,@srcdir@,$ac_srcdir,;t t
13580 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13581 s,@top_srcdir@,$ac_top_srcdir,;t t
13582 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13583 s,@builddir@,$ac_builddir,;t t
13584 s,@abs_builddir@,$ac_abs_builddir,;t t
13585 s,@top_builddir@,$ac_top_builddir,;t t
13586 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13587 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13588 rm -f $tmp/stdin
13589 if test x"$ac_file" != x-; then
13590 mv $tmp/out $ac_file
13591 else
13592 cat $tmp/out
13593 rm -f $tmp/out
13596 done
13597 _ACEOF
13598 cat >>$CONFIG_STATUS <<\_ACEOF
13601 # CONFIG_HEADER section.
13604 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13605 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13607 # ac_d sets the value in "#define NAME VALUE" lines.
13608 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13609 ac_dB='[ ].*$,\1#\2'
13610 ac_dC=' '
13611 ac_dD=',;t'
13612 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13613 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13614 ac_uB='$,\1#\2define\3'
13615 ac_uC=' '
13616 ac_uD=',;t'
13618 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13619 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13620 case $ac_file in
13621 - | *:- | *:-:* ) # input from stdin
13622 cat >$tmp/stdin
13623 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13624 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13625 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13626 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13627 * ) ac_file_in=$ac_file.in ;;
13628 esac
13630 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13631 echo "$as_me: creating $ac_file" >&6;}
13633 # First look for the input files in the build tree, otherwise in the
13634 # src tree.
13635 ac_file_inputs=`IFS=:
13636 for f in $ac_file_in; do
13637 case $f in
13638 -) echo $tmp/stdin ;;
13639 [\\/$]*)
13640 # Absolute (can't be DOS-style, as IFS=:)
13641 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13642 echo "$as_me: error: cannot find input file: $f" >&2;}
13643 { (exit 1); exit 1; }; }
13644 # Do quote $f, to prevent DOS paths from being IFS'd.
13645 echo "$f";;
13646 *) # Relative
13647 if test -f "$f"; then
13648 # Build tree
13649 echo "$f"
13650 elif test -f "$srcdir/$f"; then
13651 # Source tree
13652 echo "$srcdir/$f"
13653 else
13654 # /dev/null tree
13655 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13656 echo "$as_me: error: cannot find input file: $f" >&2;}
13657 { (exit 1); exit 1; }; }
13658 fi;;
13659 esac
13660 done` || { (exit 1); exit 1; }
13661 # Remove the trailing spaces.
13662 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13664 _ACEOF
13666 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13667 # `conftest.undefs', that substitutes the proper values into
13668 # config.h.in to produce config.h. The first handles `#define'
13669 # templates, and the second `#undef' templates.
13670 # And first: Protect against being on the right side of a sed subst in
13671 # config.status. Protect against being in an unquoted here document
13672 # in config.status.
13673 rm -f conftest.defines conftest.undefs
13674 # Using a here document instead of a string reduces the quoting nightmare.
13675 # Putting comments in sed scripts is not portable.
13677 # `end' is used to avoid that the second main sed command (meant for
13678 # 0-ary CPP macros) applies to n-ary macro definitions.
13679 # See the Autoconf documentation for `clear'.
13680 cat >confdef2sed.sed <<\_ACEOF
13681 s/[\\&,]/\\&/g
13682 s,[\\$`],\\&,g
13683 t clear
13684 : clear
13685 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13686 t end
13687 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13688 : end
13689 _ACEOF
13690 # If some macros were called several times there might be several times
13691 # the same #defines, which is useless. Nevertheless, we may not want to
13692 # sort them, since we want the *last* AC-DEFINE to be honored.
13693 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13694 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13695 rm -f confdef2sed.sed
13697 # This sed command replaces #undef with comments. This is necessary, for
13698 # example, in the case of _POSIX_SOURCE, which is predefined and required
13699 # on some systems where configure will not decide to define it.
13700 cat >>conftest.undefs <<\_ACEOF
13701 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13702 _ACEOF
13704 # Break up conftest.defines because some shells have a limit on the size
13705 # of here documents, and old seds have small limits too (100 cmds).
13706 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13707 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13708 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13709 echo ' :' >>$CONFIG_STATUS
13710 rm -f conftest.tail
13711 while grep . conftest.defines >/dev/null
13713 # Write a limited-size here document to $tmp/defines.sed.
13714 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13715 # Speed up: don't consider the non `#define' lines.
13716 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13717 # Work around the forget-to-reset-the-flag bug.
13718 echo 't clr' >>$CONFIG_STATUS
13719 echo ': clr' >>$CONFIG_STATUS
13720 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13721 echo 'CEOF
13722 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13723 rm -f $tmp/in
13724 mv $tmp/out $tmp/in
13725 ' >>$CONFIG_STATUS
13726 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13727 rm -f conftest.defines
13728 mv conftest.tail conftest.defines
13729 done
13730 rm -f conftest.defines
13731 echo ' fi # grep' >>$CONFIG_STATUS
13732 echo >>$CONFIG_STATUS
13734 # Break up conftest.undefs because some shells have a limit on the size
13735 # of here documents, and old seds have small limits too (100 cmds).
13736 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13737 rm -f conftest.tail
13738 while grep . conftest.undefs >/dev/null
13740 # Write a limited-size here document to $tmp/undefs.sed.
13741 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13742 # Speed up: don't consider the non `#undef'
13743 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13744 # Work around the forget-to-reset-the-flag bug.
13745 echo 't clr' >>$CONFIG_STATUS
13746 echo ': clr' >>$CONFIG_STATUS
13747 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13748 echo 'CEOF
13749 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13750 rm -f $tmp/in
13751 mv $tmp/out $tmp/in
13752 ' >>$CONFIG_STATUS
13753 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13754 rm -f conftest.undefs
13755 mv conftest.tail conftest.undefs
13756 done
13757 rm -f conftest.undefs
13759 cat >>$CONFIG_STATUS <<\_ACEOF
13760 # Let's still pretend it is `configure' which instantiates (i.e., don't
13761 # use $as_me), people would be surprised to read:
13762 # /* config.h. Generated by config.status. */
13763 if test x"$ac_file" = x-; then
13764 echo "/* Generated by configure. */" >$tmp/config.h
13765 else
13766 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13768 cat $tmp/in >>$tmp/config.h
13769 rm -f $tmp/in
13770 if test x"$ac_file" != x-; then
13771 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13772 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13773 echo "$as_me: $ac_file is unchanged" >&6;}
13774 else
13775 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13776 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13777 X"$ac_file" : 'X\(//\)[^/]' \| \
13778 X"$ac_file" : 'X\(//\)$' \| \
13779 X"$ac_file" : 'X\(/\)' \| \
13780 . : '\(.\)' 2>/dev/null ||
13781 echo X"$ac_file" |
13782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13784 /^X\(\/\/\)$/{ s//\1/; q; }
13785 /^X\(\/\).*/{ s//\1/; q; }
13786 s/.*/./; q'`
13787 { if $as_mkdir_p; then
13788 mkdir -p "$ac_dir"
13789 else
13790 as_dir="$ac_dir"
13791 as_dirs=
13792 while test ! -d "$as_dir"; do
13793 as_dirs="$as_dir $as_dirs"
13794 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13796 X"$as_dir" : 'X\(//\)[^/]' \| \
13797 X"$as_dir" : 'X\(//\)$' \| \
13798 X"$as_dir" : 'X\(/\)' \| \
13799 . : '\(.\)' 2>/dev/null ||
13800 echo X"$as_dir" |
13801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13803 /^X\(\/\/\)$/{ s//\1/; q; }
13804 /^X\(\/\).*/{ s//\1/; q; }
13805 s/.*/./; q'`
13806 done
13807 test ! -n "$as_dirs" || mkdir $as_dirs
13808 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13809 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13810 { (exit 1); exit 1; }; }; }
13812 rm -f $ac_file
13813 mv $tmp/config.h $ac_file
13815 else
13816 cat $tmp/config.h
13817 rm -f $tmp/config.h
13819 done
13820 _ACEOF
13821 cat >>$CONFIG_STATUS <<\_ACEOF
13824 # CONFIG_COMMANDS section.
13826 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13827 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13828 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13829 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13830 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13831 X"$ac_dest" : 'X\(//\)[^/]' \| \
13832 X"$ac_dest" : 'X\(//\)$' \| \
13833 X"$ac_dest" : 'X\(/\)' \| \
13834 . : '\(.\)' 2>/dev/null ||
13835 echo X"$ac_dest" |
13836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13838 /^X\(\/\/\)$/{ s//\1/; q; }
13839 /^X\(\/\).*/{ s//\1/; q; }
13840 s/.*/./; q'`
13841 { if $as_mkdir_p; then
13842 mkdir -p "$ac_dir"
13843 else
13844 as_dir="$ac_dir"
13845 as_dirs=
13846 while test ! -d "$as_dir"; do
13847 as_dirs="$as_dir $as_dirs"
13848 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13849 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13850 X"$as_dir" : 'X\(//\)[^/]' \| \
13851 X"$as_dir" : 'X\(//\)$' \| \
13852 X"$as_dir" : 'X\(/\)' \| \
13853 . : '\(.\)' 2>/dev/null ||
13854 echo X"$as_dir" |
13855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13857 /^X\(\/\/\)$/{ s//\1/; q; }
13858 /^X\(\/\).*/{ s//\1/; q; }
13859 s/.*/./; q'`
13860 done
13861 test ! -n "$as_dirs" || mkdir $as_dirs
13862 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13863 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13864 { (exit 1); exit 1; }; }; }
13866 ac_builddir=.
13868 if test "$ac_dir" != .; then
13869 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13870 # A "../" for each directory in $ac_dir_suffix.
13871 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13872 else
13873 ac_dir_suffix= ac_top_builddir=
13876 case $srcdir in
13877 .) # No --srcdir option. We are building in place.
13878 ac_srcdir=.
13879 if test -z "$ac_top_builddir"; then
13880 ac_top_srcdir=.
13881 else
13882 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13883 fi ;;
13884 [\\/]* | ?:[\\/]* ) # Absolute path.
13885 ac_srcdir=$srcdir$ac_dir_suffix;
13886 ac_top_srcdir=$srcdir ;;
13887 *) # Relative path.
13888 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13889 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13890 esac
13892 # Do not use `cd foo && pwd` to compute absolute paths, because
13893 # the directories may not exist.
13894 case `pwd` in
13895 .) ac_abs_builddir="$ac_dir";;
13897 case "$ac_dir" in
13898 .) ac_abs_builddir=`pwd`;;
13899 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13900 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13901 esac;;
13902 esac
13903 case $ac_abs_builddir in
13904 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13906 case ${ac_top_builddir}. in
13907 .) ac_abs_top_builddir=$ac_abs_builddir;;
13908 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13909 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13910 esac;;
13911 esac
13912 case $ac_abs_builddir in
13913 .) ac_abs_srcdir=$ac_srcdir;;
13915 case $ac_srcdir in
13916 .) ac_abs_srcdir=$ac_abs_builddir;;
13917 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13918 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13919 esac;;
13920 esac
13921 case $ac_abs_builddir in
13922 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13924 case $ac_top_srcdir in
13925 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13926 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13927 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13928 esac;;
13929 esac
13932 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13933 echo "$as_me: executing $ac_dest commands" >&6;}
13934 case $ac_dest in
13935 default )
13936 case ${CONFIG_HEADERS} in
13937 *auto-host.h:config.in*)
13938 echo > cstamp-h ;;
13939 esac
13940 # Make sure all the subdirs exist.
13941 for d in $subdirs
13943 test -d $d || mkdir $d
13944 done
13945 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13946 # bootstrapping and the installation procedure can still use
13947 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13948 # FLAGS_TO_PASS has been modified to solve the problem there.
13949 # This is virtually a duplicate of what happens in configure.lang; we do
13950 # an extra check to make sure this only happens if ln -s can be used.
13951 if test "$symbolic_link" = "ln -s"; then
13952 for d in ${subdirs} fixinc ; do
13953 STARTDIR=`${PWDCMD-pwd}`
13954 cd $d
13955 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13957 rm -f $t
13958 $symbolic_link ../$t $t 2>/dev/null
13959 done
13960 cd $STARTDIR
13961 done
13962 else true ; fi
13964 esac
13965 done
13966 _ACEOF
13968 cat >>$CONFIG_STATUS <<\_ACEOF
13970 { (exit 0); exit 0; }
13971 _ACEOF
13972 chmod +x $CONFIG_STATUS
13973 ac_clean_files=$ac_clean_files_save
13976 # configure is writing to config.log, and then calls config.status.
13977 # config.status does its own redirection, appending to config.log.
13978 # Unfortunately, on DOS this fails, as config.log is still kept open
13979 # by configure, so config.status won't be able to write to it; its
13980 # output is simply discarded. So we exec the FD to /dev/null,
13981 # effectively closing config.log, so it can be properly (re)opened and
13982 # appended to by config.status. When coming back to configure, we
13983 # need to make the FD available again.
13984 if test "$no_create" != yes; then
13985 ac_cs_success=:
13986 ac_config_status_args=
13987 test "$silent" = yes &&
13988 ac_config_status_args="$ac_config_status_args --quiet"
13989 exec 5>/dev/null
13990 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13991 exec 5>>config.log
13992 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13993 # would make configure fail if this is the last instruction.
13994 $ac_cs_success || { (exit 1); exit 1; }