* trans.c (gfc_finish_block, gfc_add_expr_to_block): Build statement
[official-gcc.git] / gcc / configure
blob99b9901994d76ba274c3647d8b400763f39a24c3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT ANDER BANSHEEINC BANSHEELIB gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
840 cat <<\_ACEOF
842 Program names:
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
854 if test -n "$ac_init_help"; then
856 cat <<\_ACEOF
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
871 default is misc,tree,gc,rtlflag
872 --enable-coverage=LEVEL
873 enable compiler\'s code coverage collection.
874 Use to measure compiler performance and locate
875 unused parts of the compiler. With LEVEL, specify
876 optimization. Values are opt, noopt,
877 default is noopt
878 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
879 --enable-multilib enable library support for multiple ABIs
880 --enable-__cxa_atexit enable __cxa_atexit for C++
881 --enable-threads enable thread usage for target GCC
882 --enable-threads=LIB use LIB thread package for target GCC
883 --enable-objc-gc enable the use of Boehm's garbage collector with
884 the GNU Objective-C runtime
885 --disable-shared don't provide a shared libgcc
886 --enable-intermodule build the compiler in one step
887 --enable-languages=LIST specify which front-ends to build
888 --enable-initfini-array use .init_array/.fini_array sections
889 --enable-sjlj-exceptions
890 arrange to use setjmp/longjmp exception handling
891 --enable-libunwind-exceptions force use libunwind for exceptions
892 --disable-win32-registry
893 disable lookup of installation paths in the
894 Registry on Windows hosts
895 --enable-win32-registry enable registry lookup (default)
896 --enable-win32-registry=KEY
897 use KEY instead of GCC version as the last portion
898 of the registry key
899 --enable-maintainer-mode
900 enable make rules and dependencies not useful
901 (and sometimes confusing) to the casual installer
902 --enable-version-specific-runtime-libs
903 specify that runtime libraries should be
904 installed in a compiler-specific directory
906 Optional Packages:
907 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
908 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
909 --with-local-prefix=DIR specifies directory to put local include
910 --with-gxx-include-dir=DIR
911 specifies directory to put g++ header files
912 --with-cpp-install-dir=DIR
913 install the user visible C preprocessor in DIR
914 (relative to PREFIX) as well as PREFIX/bin
915 --with-gnu-ld arrange to work with GNU ld.
916 --with-ld arrange to use the specified ld (full pathname)
917 --with-gnu-as arrange to work with GNU as
918 --with-as arrange to use the specified as (full pathname)
919 --with-stabs arrange to use stabs instead of host debug format
920 --with-dwarf2 force the default debug format to be DWARF 2
921 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
922 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
923 --with-gc={page,zone} choose the garbage collection mechanism to use
924 with the compiler
925 --with-system-zlib use installed libz
926 --with-libbanshee enable libbanshee
927 --with-slibdir=DIR shared libraries in DIR LIBDIR
929 Some influential environment variables:
930 CC C compiler command
931 CFLAGS C compiler flags
932 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
933 nonstandard directory <lib dir>
934 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
935 headers in a nonstandard directory <include dir>
936 CPP C preprocessor
937 GMPLIBS How to link GMP
938 GMPINC How to find GMP include files
940 Use these variables to override the choices made by `configure' or to help
941 it to find libraries and programs with nonstandard names/locations.
943 _ACEOF
946 if test "$ac_init_help" = "recursive"; then
947 # If there are subdirs, report their specific --help.
948 ac_popdir=`pwd`
949 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
950 test -d $ac_dir || continue
951 ac_builddir=.
953 if test "$ac_dir" != .; then
954 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
955 # A "../" for each directory in $ac_dir_suffix.
956 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
957 else
958 ac_dir_suffix= ac_top_builddir=
961 case $srcdir in
962 .) # No --srcdir option. We are building in place.
963 ac_srcdir=.
964 if test -z "$ac_top_builddir"; then
965 ac_top_srcdir=.
966 else
967 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
968 fi ;;
969 [\\/]* | ?:[\\/]* ) # Absolute path.
970 ac_srcdir=$srcdir$ac_dir_suffix;
971 ac_top_srcdir=$srcdir ;;
972 *) # Relative path.
973 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
974 ac_top_srcdir=$ac_top_builddir$srcdir ;;
975 esac
977 # Do not use `cd foo && pwd` to compute absolute paths, because
978 # the directories may not exist.
979 case `pwd` in
980 .) ac_abs_builddir="$ac_dir";;
982 case "$ac_dir" in
983 .) ac_abs_builddir=`pwd`;;
984 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
985 *) ac_abs_builddir=`pwd`/"$ac_dir";;
986 esac;;
987 esac
988 case $ac_abs_builddir in
989 .) ac_abs_top_builddir=${ac_top_builddir}.;;
991 case ${ac_top_builddir}. in
992 .) ac_abs_top_builddir=$ac_abs_builddir;;
993 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
994 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
995 esac;;
996 esac
997 case $ac_abs_builddir in
998 .) ac_abs_srcdir=$ac_srcdir;;
1000 case $ac_srcdir in
1001 .) ac_abs_srcdir=$ac_abs_builddir;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1003 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1004 esac;;
1005 esac
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1009 case $ac_top_srcdir in
1010 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1012 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1013 esac;;
1014 esac
1016 cd $ac_dir
1017 # Check for guested configure; otherwise get Cygnus style configure.
1018 if test -f $ac_srcdir/configure.gnu; then
1019 echo
1020 $SHELL $ac_srcdir/configure.gnu --help=recursive
1021 elif test -f $ac_srcdir/configure; then
1022 echo
1023 $SHELL $ac_srcdir/configure --help=recursive
1024 elif test -f $ac_srcdir/configure.ac ||
1025 test -f $ac_srcdir/configure.in; then
1026 echo
1027 $ac_configure --help
1028 else
1029 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1031 cd $ac_popdir
1032 done
1035 test -n "$ac_init_help" && exit 0
1036 if $ac_init_version; then
1037 cat <<\_ACEOF
1039 Copyright (C) 2003 Free Software Foundation, Inc.
1040 This configure script is free software; the Free Software Foundation
1041 gives unlimited permission to copy, distribute and modify it.
1042 _ACEOF
1043 exit 0
1045 exec 5>config.log
1046 cat >&5 <<_ACEOF
1047 This file contains any messages produced by compilers while
1048 running configure, to aid debugging if configure makes a mistake.
1050 It was created by $as_me, which was
1051 generated by GNU Autoconf 2.59. Invocation command line was
1053 $ $0 $@
1055 _ACEOF
1057 cat <<_ASUNAME
1058 ## --------- ##
1059 ## Platform. ##
1060 ## --------- ##
1062 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1063 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1064 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1065 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1066 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1068 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1069 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1071 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1072 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1073 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1074 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1075 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1076 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1077 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1079 _ASUNAME
1081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1082 for as_dir in $PATH
1084 IFS=$as_save_IFS
1085 test -z "$as_dir" && as_dir=.
1086 echo "PATH: $as_dir"
1087 done
1089 } >&5
1091 cat >&5 <<_ACEOF
1094 ## ----------- ##
1095 ## Core tests. ##
1096 ## ----------- ##
1098 _ACEOF
1101 # Keep a trace of the command line.
1102 # Strip out --no-create and --no-recursion so they do not pile up.
1103 # Strip out --silent because we don't want to record it for future runs.
1104 # Also quote any args containing shell meta-characters.
1105 # Make two passes to allow for proper duplicate-argument suppression.
1106 ac_configure_args=
1107 ac_configure_args0=
1108 ac_configure_args1=
1109 ac_sep=
1110 ac_must_keep_next=false
1111 for ac_pass in 1 2
1113 for ac_arg
1115 case $ac_arg in
1116 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 continue ;;
1120 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1121 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1122 esac
1123 case $ac_pass in
1124 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1126 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1127 if test $ac_must_keep_next = true; then
1128 ac_must_keep_next=false # Got value, back to normal.
1129 else
1130 case $ac_arg in
1131 *=* | --config-cache | -C | -disable-* | --disable-* \
1132 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1133 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1134 | -with-* | --with-* | -without-* | --without-* | --x)
1135 case "$ac_configure_args0 " in
1136 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1137 esac
1139 -* ) ac_must_keep_next=true ;;
1140 esac
1142 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1143 # Get rid of the leading space.
1144 ac_sep=" "
1146 esac
1147 done
1148 done
1149 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1150 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1152 # When interrupted or exit'd, cleanup temporary files, and complete
1153 # config.log. We remove comments because anyway the quotes in there
1154 # would cause problems or look ugly.
1155 # WARNING: Be sure not to use single quotes in there, as some shells,
1156 # such as our DU 5.0 friend, will then `close' the trap.
1157 trap 'exit_status=$?
1158 # Save into config.log some information that might help in debugging.
1160 echo
1162 cat <<\_ASBOX
1163 ## ---------------- ##
1164 ## Cache variables. ##
1165 ## ---------------- ##
1166 _ASBOX
1167 echo
1168 # The following way of writing the cache mishandles newlines in values,
1170 (set) 2>&1 |
1171 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1172 *ac_space=\ *)
1173 sed -n \
1174 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1175 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1178 sed -n \
1179 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1181 esac;
1183 echo
1185 cat <<\_ASBOX
1186 ## ----------------- ##
1187 ## Output variables. ##
1188 ## ----------------- ##
1189 _ASBOX
1190 echo
1191 for ac_var in $ac_subst_vars
1193 eval ac_val=$`echo $ac_var`
1194 echo "$ac_var='"'"'$ac_val'"'"'"
1195 done | sort
1196 echo
1198 if test -n "$ac_subst_files"; then
1199 cat <<\_ASBOX
1200 ## ------------- ##
1201 ## Output files. ##
1202 ## ------------- ##
1203 _ASBOX
1204 echo
1205 for ac_var in $ac_subst_files
1207 eval ac_val=$`echo $ac_var`
1208 echo "$ac_var='"'"'$ac_val'"'"'"
1209 done | sort
1210 echo
1213 if test -s confdefs.h; then
1214 cat <<\_ASBOX
1215 ## ----------- ##
1216 ## confdefs.h. ##
1217 ## ----------- ##
1218 _ASBOX
1219 echo
1220 sed "/^$/d" confdefs.h | sort
1221 echo
1223 test "$ac_signal" != 0 &&
1224 echo "$as_me: caught signal $ac_signal"
1225 echo "$as_me: exit $exit_status"
1226 } >&5
1227 rm -f core *.core &&
1228 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1229 exit $exit_status
1231 for ac_signal in 1 2 13 15; do
1232 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1233 done
1234 ac_signal=0
1236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1237 rm -rf conftest* confdefs.h
1238 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1239 echo >confdefs.h
1241 # Predefined preprocessor variables.
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_NAME "$PACKAGE_NAME"
1245 _ACEOF
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1250 _ACEOF
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1255 _ACEOF
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_STRING "$PACKAGE_STRING"
1260 _ACEOF
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1265 _ACEOF
1268 # Let the site file select an alternate cache file if it wants to.
1269 # Prefer explicitly selected file to automatically selected ones.
1270 if test -z "$CONFIG_SITE"; then
1271 if test "x$prefix" != xNONE; then
1272 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1273 else
1274 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1277 for ac_site_file in $CONFIG_SITE; do
1278 if test -r "$ac_site_file"; then
1279 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1280 echo "$as_me: loading site script $ac_site_file" >&6;}
1281 sed 's/^/| /' "$ac_site_file" >&5
1282 . "$ac_site_file"
1284 done
1286 if test -r "$cache_file"; then
1287 # Some versions of bash will fail to source /dev/null (special
1288 # files actually), so we avoid doing that.
1289 if test -f "$cache_file"; then
1290 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1291 echo "$as_me: loading cache $cache_file" >&6;}
1292 case $cache_file in
1293 [\\/]* | ?:[\\/]* ) . $cache_file;;
1294 *) . ./$cache_file;;
1295 esac
1297 else
1298 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1299 echo "$as_me: creating cache $cache_file" >&6;}
1300 >$cache_file
1303 # Check that the precious variables saved in the cache have kept the same
1304 # value.
1305 ac_cache_corrupted=false
1306 for ac_var in `(set) 2>&1 |
1307 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1308 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1309 eval ac_new_set=\$ac_env_${ac_var}_set
1310 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1311 eval ac_new_val="\$ac_env_${ac_var}_value"
1312 case $ac_old_set,$ac_new_set in
1313 set,)
1314 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1315 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1316 ac_cache_corrupted=: ;;
1317 ,set)
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1320 ac_cache_corrupted=: ;;
1321 ,);;
1323 if test "x$ac_old_val" != "x$ac_new_val"; then
1324 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1325 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1326 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1327 echo "$as_me: former value: $ac_old_val" >&2;}
1328 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1329 echo "$as_me: current value: $ac_new_val" >&2;}
1330 ac_cache_corrupted=:
1331 fi;;
1332 esac
1333 # Pass precious variables to config.status.
1334 if test "$ac_new_set" = set; then
1335 case $ac_new_val in
1336 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1337 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1338 *) ac_arg=$ac_var=$ac_new_val ;;
1339 esac
1340 case " $ac_configure_args " in
1341 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1342 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1343 esac
1345 done
1346 if $ac_cache_corrupted; then
1347 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1348 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1349 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1350 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1351 { (exit 1); exit 1; }; }
1354 ac_ext=c
1355 ac_cpp='$CPP $CPPFLAGS'
1356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1379 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1382 # Determine the host, build, and target systems
1383 ac_aux_dir=
1384 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1385 if test -f $ac_dir/install-sh; then
1386 ac_aux_dir=$ac_dir
1387 ac_install_sh="$ac_aux_dir/install-sh -c"
1388 break
1389 elif test -f $ac_dir/install.sh; then
1390 ac_aux_dir=$ac_dir
1391 ac_install_sh="$ac_aux_dir/install.sh -c"
1392 break
1393 elif test -f $ac_dir/shtool; then
1394 ac_aux_dir=$ac_dir
1395 ac_install_sh="$ac_aux_dir/shtool install -c"
1396 break
1398 done
1399 if test -z "$ac_aux_dir"; then
1400 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1401 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1402 { (exit 1); exit 1; }; }
1404 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1405 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1406 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1408 # Make sure we can run config.sub.
1409 $ac_config_sub sun4 >/dev/null 2>&1 ||
1410 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1411 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1412 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: checking build system type" >&5
1415 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1416 if test "${ac_cv_build+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419 ac_cv_build_alias=$build_alias
1420 test -z "$ac_cv_build_alias" &&
1421 ac_cv_build_alias=`$ac_config_guess`
1422 test -z "$ac_cv_build_alias" &&
1423 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1424 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1425 { (exit 1); exit 1; }; }
1426 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1427 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1428 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1429 { (exit 1); exit 1; }; }
1432 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1433 echo "${ECHO_T}$ac_cv_build" >&6
1434 build=$ac_cv_build
1435 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1436 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1437 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1440 echo "$as_me:$LINENO: checking host system type" >&5
1441 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1442 if test "${ac_cv_host+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445 ac_cv_host_alias=$host_alias
1446 test -z "$ac_cv_host_alias" &&
1447 ac_cv_host_alias=$ac_cv_build_alias
1448 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1449 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1450 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1451 { (exit 1); exit 1; }; }
1454 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1455 echo "${ECHO_T}$ac_cv_host" >&6
1456 host=$ac_cv_host
1457 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1458 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1459 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1462 echo "$as_me:$LINENO: checking target system type" >&5
1463 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1464 if test "${ac_cv_target+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" >&6
1466 else
1467 ac_cv_target_alias=$target_alias
1468 test "x$ac_cv_target_alias" = "x" &&
1469 ac_cv_target_alias=$ac_cv_host_alias
1470 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1471 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1472 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1473 { (exit 1); exit 1; }; }
1476 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1477 echo "${ECHO_T}$ac_cv_target" >&6
1478 target=$ac_cv_target
1479 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1480 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1481 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1484 # The aliases save the names the user supplied, while $host etc.
1485 # will get canonicalized.
1486 test -n "$target_alias" &&
1487 test "$program_prefix$program_suffix$program_transform_name" = \
1488 NONENONEs,x,x, &&
1489 program_prefix=${target_alias}-
1491 # Determine the noncanonical target name, for directory use.
1492 case ${build_alias} in
1493 "") build_noncanonical=${build} ;;
1494 *) build_noncanonical=${build_alias} ;;
1495 esac
1497 case ${host_alias} in
1498 "") host_noncanonical=${build_noncanonical} ;;
1499 *) host_noncanonical=${host_alias} ;;
1500 esac
1502 case ${target_alias} in
1503 "") target_noncanonical=${host_noncanonical} ;;
1504 *) target_noncanonical=${target_alias} ;;
1505 esac
1508 # Determine the target- and build-specific subdirectories
1509 # Prefix 'build-' so this never conflicts with target_subdir.
1510 build_subdir="build-${build_noncanonical}"
1511 # Not really a subdirectory, but here for completeness.
1512 host_subdir=.
1513 # No prefix.
1514 target_subdir=${target_noncanonical}
1517 # Set program_transform_name
1518 test "$program_prefix" != NONE &&
1519 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1520 # Use a double $ so make ignores it.
1521 test "$program_suffix" != NONE &&
1522 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1523 # Double any \ or $. echo might interpret backslashes.
1524 # By default was `s,x,x', remove it if useless.
1525 cat <<\_ACEOF >conftest.sed
1526 s/[\\$]/&&/g;s/;s,x,x,$//
1527 _ACEOF
1528 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1529 rm conftest.sed
1532 # Check for bogus environment variables.
1533 # Test if LIBRARY_PATH contains the notation for the current directory
1534 # since this would lead to problems installing/building glibc.
1535 # LIBRARY_PATH contains the current directory if one of the following
1536 # is true:
1537 # - one of the terminals (":" and ";") is the first or last sign
1538 # - two terminals occur directly after each other
1539 # - the path contains an element with a dot in it
1540 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1541 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1542 case ${LIBRARY_PATH} in
1543 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1544 library_path_setting="contains current directory"
1547 library_path_setting="ok"
1549 esac
1550 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1551 echo "${ECHO_T}$library_path_setting" >&6
1552 if test "$library_path_setting" != "ok"; then
1553 { { echo "$as_me:$LINENO: error:
1554 *** LIBRARY_PATH shouldn't contain the current directory when
1555 *** building gcc. Please change the environment variable
1556 *** and run configure again." >&5
1557 echo "$as_me: error:
1558 *** LIBRARY_PATH shouldn't contain the current directory when
1559 *** building gcc. Please change the environment variable
1560 *** and run configure again." >&2;}
1561 { (exit 1); exit 1; }; }
1564 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1565 # since this would lead to problems installing/building glibc.
1566 # GCC_EXEC_PREFIX contains the current directory if one of the following
1567 # is true:
1568 # - one of the terminals (":" and ";") is the first or last sign
1569 # - two terminals occur directly after each other
1570 # - the path contains an element with a dot in it
1571 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1572 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1573 case ${GCC_EXEC_PREFIX} in
1574 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1575 gcc_exec_prefix_setting="contains current directory"
1578 gcc_exec_prefix_setting="ok"
1580 esac
1581 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1582 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1583 if test "$gcc_exec_prefix_setting" != "ok"; then
1584 { { echo "$as_me:$LINENO: error:
1585 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1586 *** building gcc. Please change the environment variable
1587 *** and run configure again." >&5
1588 echo "$as_me: 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." >&2;}
1592 { (exit 1); exit 1; }; }
1595 # -----------
1596 # Directories
1597 # -----------
1599 # Specify the local prefix
1600 local_prefix=
1602 # Check whether --with-local-prefix or --without-local-prefix was given.
1603 if test "${with_local_prefix+set}" = set; then
1604 withval="$with_local_prefix"
1605 case "${withval}" in
1606 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1607 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1608 { (exit 1); exit 1; }; } ;;
1609 no) ;;
1610 *) local_prefix=$with_local_prefix ;;
1611 esac
1614 # Default local prefix if it is empty
1615 if test x$local_prefix = x; then
1616 local_prefix=/usr/local
1619 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1620 # passed in by the toplevel make and thus we'd get different behavior
1621 # depending on where we built the sources.
1622 gcc_gxx_include_dir=
1623 # Specify the g++ header file directory
1625 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1626 if test "${with_gxx_include_dir+set}" = set; then
1627 withval="$with_gxx_include_dir"
1628 case "${withval}" in
1629 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1630 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1631 { (exit 1); exit 1; }; } ;;
1632 no) ;;
1633 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1634 esac
1637 if test x${gcc_gxx_include_dir} = x; then
1638 if test x${enable_version_specific_runtime_libs} = xyes; then
1639 gcc_gxx_include_dir='${libsubdir}/include/c++'
1640 else
1641 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1642 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1647 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1648 if test "${with_cpp_install_dir+set}" = set; then
1649 withval="$with_cpp_install_dir"
1650 if test x$withval = xyes; then
1651 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1652 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1653 { (exit 1); exit 1; }; }
1654 elif test x$withval != xno; then
1655 cpp_install_dir=$withval
1659 # We would like to our source tree to be readonly. However when releases or
1660 # pre-releases are generated, the flex/bison generated files as well as the
1661 # various formats of manuals need to be included along with the rest of the
1662 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1663 # just that.
1665 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1666 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1667 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1668 if test "${enable_generated_files_in_srcdir+set}" = set; then
1669 enableval="$enable_generated_files_in_srcdir"
1670 generated_files_in_srcdir=$enableval
1671 else
1672 generated_files_in_srcdir=no
1675 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1676 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1678 if test "$generated_files_in_srcdir" = "yes"; then
1679 GENINSRC=''
1680 else
1681 GENINSRC='#'
1685 # -------------------
1686 # Find default linker
1687 # -------------------
1689 # With GNU ld
1691 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1692 if test "${with_gnu_ld+set}" = set; then
1693 withval="$with_gnu_ld"
1694 gnu_ld_flag="$with_gnu_ld"
1695 else
1696 gnu_ld_flag=no
1699 # With pre-defined ld
1701 # Check whether --with-ld or --without-ld was given.
1702 if test "${with_ld+set}" = set; then
1703 withval="$with_ld"
1704 DEFAULT_LINKER="$with_ld"
1706 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1707 if test ! -x "$DEFAULT_LINKER"; then
1708 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1709 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1710 { (exit 1); exit 1; }; }
1711 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1712 gnu_ld_flag=yes
1715 cat >>confdefs.h <<_ACEOF
1716 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1717 _ACEOF
1721 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1722 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1723 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1724 if test x"$gnu_ld_flag" = x"no"; then
1725 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1726 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1727 else
1728 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1729 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1731 else
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1736 # ----------------------
1737 # Find default assembler
1738 # ----------------------
1740 # With GNU as
1742 # Check whether --with-gnu-as or --without-gnu-as was given.
1743 if test "${with_gnu_as+set}" = set; then
1744 withval="$with_gnu_as"
1745 gas_flag="$with_gnu_as"
1746 else
1747 gas_flag=no
1751 # Check whether --with-as or --without-as was given.
1752 if test "${with_as+set}" = set; then
1753 withval="$with_as"
1754 DEFAULT_ASSEMBLER="$with_as"
1756 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1757 if test ! -x "$DEFAULT_ASSEMBLER"; then
1758 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1759 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1760 { (exit 1); exit 1; }; }
1761 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1762 gas_flag=yes
1765 cat >>confdefs.h <<_ACEOF
1766 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1767 _ACEOF
1771 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1772 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1773 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1774 if test x"$gas_flag" = x"no"; then
1775 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1776 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1777 else
1778 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1779 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1781 else
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1786 # ---------------
1787 # Find C compiler
1788 # ---------------
1790 # If a non-executable a.out is present (e.g. created by GNU as above even if
1791 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1792 # file, even when creating an executable, so an execution test fails.
1793 # Remove possible default executable files to avoid this.
1795 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1796 # Autoconf includes it.
1797 rm -f a.out a.exe b.out
1799 # Find the native compiler
1800 ac_ext=c
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805 if test -n "$ac_tool_prefix"; then
1806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1807 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813 if test -n "$CC"; then
1814 ac_cv_prog_CC="$CC" # Let the user override the test.
1815 else
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
1827 done
1828 done
1832 CC=$ac_cv_prog_CC
1833 if test -n "$CC"; then
1834 echo "$as_me:$LINENO: result: $CC" >&5
1835 echo "${ECHO_T}$CC" >&6
1836 else
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1842 if test -z "$ac_cv_prog_CC"; then
1843 ac_ct_CC=$CC
1844 # Extract the first word of "gcc", so it can be a program name with args.
1845 set dummy gcc; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851 if test -n "$ac_ct_CC"; then
1852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1853 else
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1857 IFS=$as_save_IFS
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 ac_cv_prog_ac_ct_CC="gcc"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 break 2
1865 done
1866 done
1870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1871 if test -n "$ac_ct_CC"; then
1872 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1873 echo "${ECHO_T}$ac_ct_CC" >&6
1874 else
1875 echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1879 CC=$ac_ct_CC
1880 else
1881 CC="$ac_cv_prog_CC"
1884 if test -z "$CC"; then
1885 if test -n "$ac_tool_prefix"; then
1886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1887 set dummy ${ac_tool_prefix}cc; ac_word=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC="$CC" # Let the user override the test.
1895 else
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1899 IFS=$as_save_IFS
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_CC="${ac_tool_prefix}cc"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 break 2
1907 done
1908 done
1912 CC=$ac_cv_prog_CC
1913 if test -n "$CC"; then
1914 echo "$as_me:$LINENO: result: $CC" >&5
1915 echo "${ECHO_T}$CC" >&6
1916 else
1917 echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1922 if test -z "$ac_cv_prog_CC"; then
1923 ac_ct_CC=$CC
1924 # Extract the first word of "cc", so it can be a program name with args.
1925 set dummy cc; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931 if test -n "$ac_ct_CC"; then
1932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1933 else
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 for as_dir in $PATH
1937 IFS=$as_save_IFS
1938 test -z "$as_dir" && as_dir=.
1939 for ac_exec_ext in '' $ac_executable_extensions; do
1940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941 ac_cv_prog_ac_ct_CC="cc"
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 break 2
1945 done
1946 done
1950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1951 if test -n "$ac_ct_CC"; then
1952 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1953 echo "${ECHO_T}$ac_ct_CC" >&6
1954 else
1955 echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1959 CC=$ac_ct_CC
1960 else
1961 CC="$ac_cv_prog_CC"
1965 if test -z "$CC"; then
1966 # Extract the first word of "cc", so it can be a program name with args.
1967 set dummy cc; ac_word=$2
1968 echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970 if test "${ac_cv_prog_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 if test -n "$CC"; then
1974 ac_cv_prog_CC="$CC" # Let the user override the test.
1975 else
1976 ac_prog_rejected=no
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1985 ac_prog_rejected=yes
1986 continue
1988 ac_cv_prog_CC="cc"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 break 2
1992 done
1993 done
1995 if test $ac_prog_rejected = yes; then
1996 # We found a bogon in the path, so make sure we never use it.
1997 set dummy $ac_cv_prog_CC
1998 shift
1999 if test $# != 0; then
2000 # We chose a different compiler from the bogus one.
2001 # However, it has the same basename, so the bogon will be chosen
2002 # first if we set CC to just the basename; use the full file name.
2003 shift
2004 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2009 CC=$ac_cv_prog_CC
2010 if test -n "$CC"; then
2011 echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6
2013 else
2014 echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2019 if test -z "$CC"; then
2020 if test -n "$ac_tool_prefix"; then
2021 for ac_prog in cl
2023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030 if test -n "$CC"; then
2031 ac_cv_prog_CC="$CC" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 break 2
2044 done
2045 done
2049 CC=$ac_cv_prog_CC
2050 if test -n "$CC"; then
2051 echo "$as_me:$LINENO: result: $CC" >&5
2052 echo "${ECHO_T}$CC" >&6
2053 else
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2058 test -n "$CC" && break
2059 done
2061 if test -z "$CC"; then
2062 ac_ct_CC=$CC
2063 for ac_prog in cl
2065 # Extract the first word of "$ac_prog", so it can be a program name with args.
2066 set dummy $ac_prog; ac_word=$2
2067 echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072 if test -n "$ac_ct_CC"; then
2073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2074 else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082 ac_cv_prog_ac_ct_CC="$ac_prog"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 break 2
2086 done
2087 done
2091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2092 if test -n "$ac_ct_CC"; then
2093 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094 echo "${ECHO_T}$ac_ct_CC" >&6
2095 else
2096 echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6
2100 test -n "$ac_ct_CC" && break
2101 done
2103 CC=$ac_ct_CC
2109 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2110 See \`config.log' for more details." >&5
2111 echo "$as_me: error: no acceptable C compiler found in \$PATH
2112 See \`config.log' for more details." >&2;}
2113 { (exit 1); exit 1; }; }
2115 # Provide some information about the compiler.
2116 echo "$as_me:$LINENO:" \
2117 "checking for C compiler version" >&5
2118 ac_compiler=`set X $ac_compile; echo $2`
2119 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2120 (eval $ac_compiler --version </dev/null >&5) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2124 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2125 (eval $ac_compiler -v </dev/null >&5) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }
2129 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2130 (eval $ac_compiler -V </dev/null >&5) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2135 cat >conftest.$ac_ext <<_ACEOF
2136 /* confdefs.h. */
2137 _ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2143 main ()
2147 return 0;
2149 _ACEOF
2150 ac_clean_files_save=$ac_clean_files
2151 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2152 # Try to create an executable without -o first, disregard a.out.
2153 # It will help us diagnose broken compilers, and finding out an intuition
2154 # of exeext.
2155 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2156 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2157 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2158 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2159 (eval $ac_link_default) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; then
2163 # Find the output, starting from the most likely. This scheme is
2164 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2165 # resort.
2167 # Be careful to initialize this variable, since it used to be cached.
2168 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2169 ac_cv_exeext=
2170 # b.out is created by i960 compilers.
2171 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2173 test -f "$ac_file" || continue
2174 case $ac_file in
2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2177 conftest.$ac_ext )
2178 # This is the source file.
2180 [ab].out )
2181 # We found the default executable, but exeext='' is most
2182 # certainly right.
2183 break;;
2184 *.* )
2185 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186 # FIXME: I believe we export ac_cv_exeext for Libtool,
2187 # but it would be cool to find out if it's true. Does anybody
2188 # maintain Libtool? --akim.
2189 export ac_cv_exeext
2190 break;;
2192 break;;
2193 esac
2194 done
2195 else
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2199 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&5
2201 echo "$as_me: error: C compiler cannot create executables
2202 See \`config.log' for more details." >&2;}
2203 { (exit 77); exit 77; }; }
2206 ac_exeext=$ac_cv_exeext
2207 echo "$as_me:$LINENO: result: $ac_file" >&5
2208 echo "${ECHO_T}$ac_file" >&6
2210 # Check the compiler produces executables we can run. If not, either
2211 # the compiler is broken, or we cross compile.
2212 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2213 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2214 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215 # If not cross compiling, check that we can run a simple program.
2216 if test "$cross_compiling" != yes; then
2217 if { ac_try='./$ac_file'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; }; then
2223 cross_compiling=no
2224 else
2225 if test "$cross_compiling" = maybe; then
2226 cross_compiling=yes
2227 else
2228 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: cannot run C compiled programs.
2232 If you meant to cross compile, use \`--host'.
2233 See \`config.log' for more details." >&2;}
2234 { (exit 1); exit 1; }; }
2238 echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6
2241 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2242 ac_clean_files=$ac_clean_files_save
2243 # Check the compiler produces executables we can run. If not, either
2244 # the compiler is broken, or we cross compile.
2245 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2246 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2247 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2248 echo "${ECHO_T}$cross_compiling" >&6
2250 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2251 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2253 (eval $ac_link) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; then
2257 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2258 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2259 # work properly (i.e., refer to `conftest.exe'), while it won't with
2260 # `rm'.
2261 for ac_file in conftest.exe conftest conftest.*; do
2262 test -f "$ac_file" || continue
2263 case $ac_file in
2264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2265 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2266 export ac_cv_exeext
2267 break;;
2268 * ) break;;
2269 esac
2270 done
2271 else
2272 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&5
2274 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2275 See \`config.log' for more details." >&2;}
2276 { (exit 1); exit 1; }; }
2279 rm -f conftest$ac_cv_exeext
2280 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2281 echo "${ECHO_T}$ac_cv_exeext" >&6
2283 rm -f conftest.$ac_ext
2284 EXEEXT=$ac_cv_exeext
2285 ac_exeext=$EXEEXT
2286 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2287 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2288 if test "${ac_cv_objext+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291 cat >conftest.$ac_ext <<_ACEOF
2292 /* confdefs.h. */
2293 _ACEOF
2294 cat confdefs.h >>conftest.$ac_ext
2295 cat >>conftest.$ac_ext <<_ACEOF
2296 /* end confdefs.h. */
2299 main ()
2303 return 0;
2305 _ACEOF
2306 rm -f conftest.o conftest.obj
2307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308 (eval $ac_compile) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; then
2312 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2313 case $ac_file in
2314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2315 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2316 break;;
2317 esac
2318 done
2319 else
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2323 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2324 See \`config.log' for more details." >&5
2325 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2326 See \`config.log' for more details." >&2;}
2327 { (exit 1); exit 1; }; }
2330 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2332 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2333 echo "${ECHO_T}$ac_cv_objext" >&6
2334 OBJEXT=$ac_cv_objext
2335 ac_objext=$OBJEXT
2336 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2337 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2338 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341 cat >conftest.$ac_ext <<_ACEOF
2342 /* confdefs.h. */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2349 main ()
2351 #ifndef __GNUC__
2352 choke me
2353 #endif
2356 return 0;
2358 _ACEOF
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361 (eval $ac_compile) 2>conftest.er1
2362 ac_status=$?
2363 grep -v '^ *+' conftest.er1 >conftest.err
2364 rm -f conftest.er1
2365 cat conftest.err >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); } &&
2368 { ac_try='test -z "$ac_c_werror_flag"
2369 || test ! -s conftest.err'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 (eval $ac_try) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; } &&
2375 { ac_try='test -s conftest.$ac_objext'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 (eval $ac_try) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; }; then
2381 ac_compiler_gnu=yes
2382 else
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2386 ac_compiler_gnu=no
2388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2392 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2393 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2394 GCC=`test $ac_compiler_gnu = yes && echo yes`
2395 ac_test_CFLAGS=${CFLAGS+set}
2396 ac_save_CFLAGS=$CFLAGS
2397 CFLAGS="-g"
2398 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2399 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2400 if test "${ac_cv_prog_cc_g+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403 cat >conftest.$ac_ext <<_ACEOF
2404 /* confdefs.h. */
2405 _ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2411 main ()
2415 return 0;
2417 _ACEOF
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>conftest.er1
2421 ac_status=$?
2422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
2427 { ac_try='test -z "$ac_c_werror_flag"
2428 || test ! -s conftest.err'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try='test -s conftest.$ac_objext'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 (eval $ac_try) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2440 ac_cv_prog_cc_g=yes
2441 else
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2445 ac_cv_prog_cc_g=no
2447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2449 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2450 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2451 if test "$ac_test_CFLAGS" = set; then
2452 CFLAGS=$ac_save_CFLAGS
2453 elif test $ac_cv_prog_cc_g = yes; then
2454 if test "$GCC" = yes; then
2455 CFLAGS="-g -O2"
2456 else
2457 CFLAGS="-g"
2459 else
2460 if test "$GCC" = yes; then
2461 CFLAGS="-O2"
2462 else
2463 CFLAGS=
2466 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2467 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2468 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471 ac_cv_prog_cc_stdc=no
2472 ac_save_CC=$CC
2473 cat >conftest.$ac_ext <<_ACEOF
2474 /* confdefs.h. */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2479 #include <stdarg.h>
2480 #include <stdio.h>
2481 #include <sys/types.h>
2482 #include <sys/stat.h>
2483 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2484 struct buf { int x; };
2485 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2486 static char *e (p, i)
2487 char **p;
2488 int i;
2490 return p[i];
2492 static char *f (char * (*g) (char **, int), char **p, ...)
2494 char *s;
2495 va_list v;
2496 va_start (v,p);
2497 s = g (p, va_arg (v,int));
2498 va_end (v);
2499 return s;
2502 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2503 function prototypes and stuff, but not '\xHH' hex character constants.
2504 These don't provoke an error unfortunately, instead are silently treated
2505 as 'x'. The following induces an error, until -std1 is added to get
2506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2507 array size at least. It's necessary to write '\x00'==0 to get something
2508 that's true only with -std1. */
2509 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2511 int test (int i, double x);
2512 struct s1 {int (*f) (int a);};
2513 struct s2 {int (*f) (double a);};
2514 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2515 int argc;
2516 char **argv;
2518 main ()
2520 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2522 return 0;
2524 _ACEOF
2525 # Don't try gcc -ansi; that turns off useful extensions and
2526 # breaks some systems' header files.
2527 # AIX -qlanglvl=ansi
2528 # Ultrix and OSF/1 -std1
2529 # HP-UX 10.20 and later -Ae
2530 # HP-UX older versions -Aa -D_HPUX_SOURCE
2531 # SVR4 -Xc -D__EXTENSIONS__
2532 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2534 CC="$ac_save_CC $ac_arg"
2535 rm -f conftest.$ac_objext
2536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537 (eval $ac_compile) 2>conftest.er1
2538 ac_status=$?
2539 grep -v '^ *+' conftest.er1 >conftest.err
2540 rm -f conftest.er1
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } &&
2544 { ac_try='test -z "$ac_c_werror_flag"
2545 || test ! -s conftest.err'
2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 (eval $ac_try) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; } &&
2551 { ac_try='test -s conftest.$ac_objext'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 (eval $ac_try) 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2557 ac_cv_prog_cc_stdc=$ac_arg
2558 break
2559 else
2560 echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2564 rm -f conftest.err conftest.$ac_objext
2565 done
2566 rm -f conftest.$ac_ext conftest.$ac_objext
2567 CC=$ac_save_CC
2571 case "x$ac_cv_prog_cc_stdc" in
2572 x|xno)
2573 echo "$as_me:$LINENO: result: none needed" >&5
2574 echo "${ECHO_T}none needed" >&6 ;;
2576 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2577 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2578 CC="$CC $ac_cv_prog_cc_stdc" ;;
2579 esac
2581 # Some people use a C++ compiler to compile C. Since we use `exit',
2582 # in C++ we need to declare it. In case someone uses the same compiler
2583 # for both compiling C and C++ we need to have the C++ compiler decide
2584 # the declaration of exit, since it's the most demanding environment.
2585 cat >conftest.$ac_ext <<_ACEOF
2586 #ifndef __cplusplus
2587 choke me
2588 #endif
2589 _ACEOF
2590 rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592 (eval $ac_compile) 2>conftest.er1
2593 ac_status=$?
2594 grep -v '^ *+' conftest.er1 >conftest.err
2595 rm -f conftest.er1
2596 cat conftest.err >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -z "$ac_c_werror_flag"
2600 || test ! -s conftest.err'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 (eval $ac_try) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; } &&
2606 { ac_try='test -s conftest.$ac_objext'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 (eval $ac_try) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; }; then
2612 for ac_declaration in \
2613 '' \
2614 'extern "C" void std::exit (int) throw (); using std::exit;' \
2615 'extern "C" void std::exit (int); using std::exit;' \
2616 'extern "C" void exit (int) throw ();' \
2617 'extern "C" void exit (int);' \
2618 'void exit (int);'
2620 cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h. */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2626 $ac_declaration
2627 #include <stdlib.h>
2629 main ()
2631 exit (42);
2633 return 0;
2635 _ACEOF
2636 rm -f conftest.$ac_objext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638 (eval $ac_compile) 2>conftest.er1
2639 ac_status=$?
2640 grep -v '^ *+' conftest.er1 >conftest.err
2641 rm -f conftest.er1
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_c_werror_flag"
2646 || test ! -s conftest.err'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 (eval $ac_try) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; } &&
2652 { ac_try='test -s conftest.$ac_objext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 (eval $ac_try) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2659 else
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2663 continue
2665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2666 cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h. */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2672 $ac_declaration
2674 main ()
2676 exit (42);
2678 return 0;
2680 _ACEOF
2681 rm -f conftest.$ac_objext
2682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683 (eval $ac_compile) 2>conftest.er1
2684 ac_status=$?
2685 grep -v '^ *+' conftest.er1 >conftest.err
2686 rm -f conftest.er1
2687 cat conftest.err >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
2690 { ac_try='test -z "$ac_c_werror_flag"
2691 || test ! -s conftest.err'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 (eval $ac_try) 2>&5
2694 ac_status=$?
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; } &&
2697 { ac_try='test -s conftest.$ac_objext'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 (eval $ac_try) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; }; then
2703 break
2704 else
2705 echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2710 done
2711 rm -f conftest*
2712 if test -n "$ac_declaration"; then
2713 echo '#ifdef __cplusplus' >>confdefs.h
2714 echo $ac_declaration >>confdefs.h
2715 echo '#endif' >>confdefs.h
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 ac_ext=c
2725 ac_cpp='$CPP $CPPFLAGS'
2726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730 if test "x$CC" != xcc; then
2731 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2732 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2733 else
2734 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2735 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2737 set dummy $CC; ac_cc=`echo $2 |
2738 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2739 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742 cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h. */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2750 main ()
2754 return 0;
2756 _ACEOF
2757 # Make sure it works both with $CC and with simple cc.
2758 # We do the test twice because some compilers refuse to overwrite an
2759 # existing .o file with -o, though they will create one.
2760 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2761 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); };
2771 then
2772 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2773 if test "x$CC" != xcc; then
2774 # Test first that cc exists at all.
2775 if { ac_try='cc -c conftest.$ac_ext >&5'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2782 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 (eval $ac_try) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); };
2792 then
2793 # cc works too.
2795 else
2796 # cc exists but doesn't like -o.
2797 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2801 else
2802 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2804 rm -f conftest*
2807 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2808 echo "$as_me:$LINENO: result: yes" >&5
2809 echo "${ECHO_T}yes" >&6
2810 else
2811 echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2814 cat >>confdefs.h <<\_ACEOF
2815 #define NO_MINUS_C_MINUS_O 1
2816 _ACEOF
2820 # autoconf is lame and doesn't give us any substitution variable for this.
2821 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2822 NO_MINUS_C_MINUS_O=yes
2823 else
2824 OUTPUT_OPTION='-o $@'
2829 # -------------------------
2830 # Check C compiler features
2831 # -------------------------
2833 ac_ext=c
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2839 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2840 # On Suns, sometimes $CPP names a directory.
2841 if test -n "$CPP" && test -d "$CPP"; then
2842 CPP=
2844 if test -z "$CPP"; then
2845 if test "${ac_cv_prog_CPP+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848 # Double quotes because CPP needs to be expanded
2849 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2851 ac_preproc_ok=false
2852 for ac_c_preproc_warn_flag in '' yes
2854 # Use a header file that comes with gcc, so configuring glibc
2855 # with a fresh cross-compiler works.
2856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2857 # <limits.h> exists even on freestanding compilers.
2858 # On the NeXT, cc -E runs the code through the compiler's parser,
2859 # not just through cpp. "Syntax error" is here to catch this case.
2860 cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h. */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2866 #ifdef __STDC__
2867 # include <limits.h>
2868 #else
2869 # include <assert.h>
2870 #endif
2871 Syntax error
2872 _ACEOF
2873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2875 ac_status=$?
2876 grep -v '^ *+' conftest.er1 >conftest.err
2877 rm -f conftest.er1
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } >/dev/null; then
2881 if test -s conftest.err; then
2882 ac_cpp_err=$ac_c_preproc_warn_flag
2883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2884 else
2885 ac_cpp_err=
2887 else
2888 ac_cpp_err=yes
2890 if test -z "$ac_cpp_err"; then
2892 else
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2896 # Broken: fails on valid input.
2897 continue
2899 rm -f conftest.err conftest.$ac_ext
2901 # OK, works on sane cases. Now check whether non-existent headers
2902 # can be detected and how.
2903 cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h. */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2909 #include <ac_nonexistent.h>
2910 _ACEOF
2911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2913 ac_status=$?
2914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } >/dev/null; then
2919 if test -s conftest.err; then
2920 ac_cpp_err=$ac_c_preproc_warn_flag
2921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2922 else
2923 ac_cpp_err=
2925 else
2926 ac_cpp_err=yes
2928 if test -z "$ac_cpp_err"; then
2929 # Broken: success on invalid input.
2930 continue
2931 else
2932 echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2935 # Passes both tests.
2936 ac_preproc_ok=:
2937 break
2939 rm -f conftest.err conftest.$ac_ext
2941 done
2942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2943 rm -f conftest.err conftest.$ac_ext
2944 if $ac_preproc_ok; then
2945 break
2948 done
2949 ac_cv_prog_CPP=$CPP
2952 CPP=$ac_cv_prog_CPP
2953 else
2954 ac_cv_prog_CPP=$CPP
2956 echo "$as_me:$LINENO: result: $CPP" >&5
2957 echo "${ECHO_T}$CPP" >&6
2958 ac_preproc_ok=false
2959 for ac_c_preproc_warn_flag in '' yes
2961 # Use a header file that comes with gcc, so configuring glibc
2962 # with a fresh cross-compiler works.
2963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2964 # <limits.h> exists even on freestanding compilers.
2965 # On the NeXT, cc -E runs the code through the compiler's parser,
2966 # not just through cpp. "Syntax error" is here to catch this case.
2967 cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h. */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2973 #ifdef __STDC__
2974 # include <limits.h>
2975 #else
2976 # include <assert.h>
2977 #endif
2978 Syntax error
2979 _ACEOF
2980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2982 ac_status=$?
2983 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -f conftest.er1
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } >/dev/null; then
2988 if test -s conftest.err; then
2989 ac_cpp_err=$ac_c_preproc_warn_flag
2990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2991 else
2992 ac_cpp_err=
2994 else
2995 ac_cpp_err=yes
2997 if test -z "$ac_cpp_err"; then
2999 else
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3003 # Broken: fails on valid input.
3004 continue
3006 rm -f conftest.err conftest.$ac_ext
3008 # OK, works on sane cases. Now check whether non-existent headers
3009 # can be detected and how.
3010 cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h. */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3016 #include <ac_nonexistent.h>
3017 _ACEOF
3018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3020 ac_status=$?
3021 grep -v '^ *+' conftest.er1 >conftest.err
3022 rm -f conftest.er1
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } >/dev/null; then
3026 if test -s conftest.err; then
3027 ac_cpp_err=$ac_c_preproc_warn_flag
3028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3029 else
3030 ac_cpp_err=
3032 else
3033 ac_cpp_err=yes
3035 if test -z "$ac_cpp_err"; then
3036 # Broken: success on invalid input.
3037 continue
3038 else
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3042 # Passes both tests.
3043 ac_preproc_ok=:
3044 break
3046 rm -f conftest.err conftest.$ac_ext
3048 done
3049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3050 rm -f conftest.err conftest.$ac_ext
3051 if $ac_preproc_ok; then
3053 else
3054 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3055 See \`config.log' for more details." >&5
3056 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3057 See \`config.log' for more details." >&2;}
3058 { (exit 1); exit 1; }; }
3061 ac_ext=c
3062 ac_cpp='$CPP $CPPFLAGS'
3063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3068 echo "$as_me:$LINENO: checking for inline" >&5
3069 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3070 if test "${ac_cv_c_inline+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073 ac_cv_c_inline=no
3074 for ac_kw in inline __inline__ __inline; do
3075 cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h. */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3081 #ifndef __cplusplus
3082 typedef int foo_t;
3083 static $ac_kw foo_t static_foo () {return 0; }
3084 $ac_kw foo_t foo () {return 0; }
3085 #endif
3087 _ACEOF
3088 rm -f conftest.$ac_objext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 (eval $ac_try) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 ac_cv_c_inline=$ac_kw; break
3111 else
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3117 done
3120 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3121 echo "${ECHO_T}$ac_cv_c_inline" >&6
3124 case $ac_cv_c_inline in
3125 inline | yes) ;;
3127 case $ac_cv_c_inline in
3128 no) ac_val=;;
3129 *) ac_val=$ac_cv_c_inline;;
3130 esac
3131 cat >>confdefs.h <<_ACEOF
3132 #ifndef __cplusplus
3133 #define inline $ac_val
3134 #endif
3135 _ACEOF
3137 esac
3140 echo "$as_me:$LINENO: checking for long long int" >&5
3141 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3142 if test "${ac_cv_c_long_long+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145 cat >conftest.$ac_ext <<_ACEOF
3146 /* confdefs.h. */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3153 main ()
3155 long long int i;
3157 return 0;
3159 _ACEOF
3160 rm -f conftest.$ac_objext
3161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3162 (eval $ac_compile) 2>conftest.er1
3163 ac_status=$?
3164 grep -v '^ *+' conftest.er1 >conftest.err
3165 rm -f conftest.er1
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_c_werror_flag"
3170 || test ! -s conftest.err'
3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172 (eval $ac_try) 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; } &&
3176 { ac_try='test -s conftest.$ac_objext'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 ac_cv_c_long_long=yes
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 ac_cv_c_long_long=no
3189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3191 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3192 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3193 if test $ac_cv_c_long_long = yes; then
3195 cat >>confdefs.h <<\_ACEOF
3196 #define HAVE_LONG_LONG 1
3197 _ACEOF
3200 echo "$as_me:$LINENO: checking for __int64" >&5
3201 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3202 if test "${ac_cv_c___int64+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 cat >conftest.$ac_ext <<_ACEOF
3206 /* confdefs.h. */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3213 main ()
3215 __int64 i;
3217 return 0;
3219 _ACEOF
3220 rm -f conftest.$ac_objext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>conftest.er1
3223 ac_status=$?
3224 grep -v '^ *+' conftest.er1 >conftest.err
3225 rm -f conftest.er1
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -z "$ac_c_werror_flag"
3230 || test ! -s conftest.err'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 (eval $ac_try) 2>&5
3233 ac_status=$?
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; } &&
3236 { ac_try='test -s conftest.$ac_objext'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238 (eval $ac_try) 2>&5
3239 ac_status=$?
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3242 ac_cv_c___int64=yes
3243 else
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3247 ac_cv_c___int64=no
3249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3251 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3252 echo "${ECHO_T}$ac_cv_c___int64" >&6
3253 if test $ac_cv_c___int64 = yes; then
3255 cat >>confdefs.h <<\_ACEOF
3256 #define HAVE___INT64 1
3257 _ACEOF
3262 # sizeof(char) is 1 by definition.
3263 echo "$as_me:$LINENO: checking size of void *" >&5
3264 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3265 if test "${ac_cv_sizeof_void_p+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3269 cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h. */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3275 #include "confdefs.h"
3276 #include <sys/types.h>
3280 main ()
3282 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3284 return 0;
3286 _ACEOF
3287 rm -f conftest.$ac_objext
3288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289 (eval $ac_compile) 2>conftest.er1
3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try='test -z "$ac_c_werror_flag"
3297 || test ! -s conftest.err'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 (eval $ac_try) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; } &&
3303 { ac_try='test -s conftest.$ac_objext'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 (eval $ac_try) 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; }; then
3309 ac_cv_sizeof_void_p=$ac_size
3310 else
3311 echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3316 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3317 done
3321 if test x$ac_cv_sizeof_void_p = x ; then
3322 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3323 echo "$as_me: error: cannot determine a size for void *" >&2;}
3324 { (exit 1); exit 1; }; }
3326 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3327 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3329 cat >>confdefs.h <<_ACEOF
3330 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3331 _ACEOF
3334 echo "$as_me:$LINENO: checking size of short" >&5
3335 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3336 if test "${ac_cv_sizeof_short+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3340 cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h. */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3346 #include "confdefs.h"
3347 #include <sys/types.h>
3351 main ()
3353 switch (0) case 0: case (sizeof (short) == $ac_size):;
3355 return 0;
3357 _ACEOF
3358 rm -f conftest.$ac_objext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360 (eval $ac_compile) 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
3367 { ac_try='test -z "$ac_c_werror_flag"
3368 || test ! -s conftest.err'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; } &&
3374 { ac_try='test -s conftest.$ac_objext'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 (eval $ac_try) 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3380 ac_cv_sizeof_short=$ac_size
3381 else
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3387 if test x$ac_cv_sizeof_short != x ; then break; fi
3388 done
3392 if test x$ac_cv_sizeof_short = x ; then
3393 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3394 echo "$as_me: error: cannot determine a size for short" >&2;}
3395 { (exit 1); exit 1; }; }
3397 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3398 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3400 cat >>confdefs.h <<_ACEOF
3401 #define SIZEOF_SHORT $ac_cv_sizeof_short
3402 _ACEOF
3405 echo "$as_me:$LINENO: checking size of int" >&5
3406 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3407 if test "${ac_cv_sizeof_int+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3411 cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h. */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3417 #include "confdefs.h"
3418 #include <sys/types.h>
3422 main ()
3424 switch (0) case 0: case (sizeof (int) == $ac_size):;
3426 return 0;
3428 _ACEOF
3429 rm -f conftest.$ac_objext
3430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431 (eval $ac_compile) 2>conftest.er1
3432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try='test -z "$ac_c_werror_flag"
3439 || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 (eval $ac_try) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 (eval $ac_try) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_sizeof_int=$ac_size
3452 else
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3458 if test x$ac_cv_sizeof_int != x ; then break; fi
3459 done
3463 if test x$ac_cv_sizeof_int = x ; then
3464 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3465 echo "$as_me: error: cannot determine a size for int" >&2;}
3466 { (exit 1); exit 1; }; }
3468 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3469 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3471 cat >>confdefs.h <<_ACEOF
3472 #define SIZEOF_INT $ac_cv_sizeof_int
3473 _ACEOF
3476 echo "$as_me:$LINENO: checking size of long" >&5
3477 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3478 if test "${ac_cv_sizeof_long+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3482 cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h. */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3488 #include "confdefs.h"
3489 #include <sys/types.h>
3493 main ()
3495 switch (0) case 0: case (sizeof (long) == $ac_size):;
3497 return 0;
3499 _ACEOF
3500 rm -f conftest.$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502 (eval $ac_compile) 2>conftest.er1
3503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -z "$ac_c_werror_flag"
3510 || test ! -s conftest.err'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 ac_cv_sizeof_long=$ac_size
3523 else
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3529 if test x$ac_cv_sizeof_long != x ; then break; fi
3530 done
3534 if test x$ac_cv_sizeof_long = x ; then
3535 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3536 echo "$as_me: error: cannot determine a size for long" >&2;}
3537 { (exit 1); exit 1; }; }
3539 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3540 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3542 cat >>confdefs.h <<_ACEOF
3543 #define SIZEOF_LONG $ac_cv_sizeof_long
3544 _ACEOF
3547 if test $ac_cv_c_long_long = yes; then
3548 echo "$as_me:$LINENO: checking size of long long" >&5
3549 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3550 if test "${ac_cv_sizeof_long_long+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 #include "confdefs.h"
3561 #include <sys/types.h>
3565 main ()
3567 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3569 return 0;
3571 _ACEOF
3572 rm -f conftest.$ac_objext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574 (eval $ac_compile) 2>conftest.er1
3575 ac_status=$?
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } &&
3581 { ac_try='test -z "$ac_c_werror_flag"
3582 || test ! -s conftest.err'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; } &&
3588 { ac_try='test -s conftest.$ac_objext'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 (eval $ac_try) 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3594 ac_cv_sizeof_long_long=$ac_size
3595 else
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3601 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3602 done
3606 if test x$ac_cv_sizeof_long_long = x ; then
3607 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3608 echo "$as_me: error: cannot determine a size for long long" >&2;}
3609 { (exit 1); exit 1; }; }
3611 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3612 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3614 cat >>confdefs.h <<_ACEOF
3615 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3616 _ACEOF
3620 if test $ac_cv_c___int64 = yes; then
3621 echo "$as_me:$LINENO: checking size of __int64" >&5
3622 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3623 if test "${ac_cv_sizeof___int64+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3627 cat >conftest.$ac_ext <<_ACEOF
3628 /* confdefs.h. */
3629 _ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3633 #include "confdefs.h"
3634 #include <sys/types.h>
3638 main ()
3640 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3642 return 0;
3644 _ACEOF
3645 rm -f conftest.$ac_objext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647 (eval $ac_compile) 2>conftest.er1
3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -z "$ac_c_werror_flag"
3655 || test ! -s conftest.err'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 (eval $ac_try) 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; } &&
3661 { ac_try='test -s conftest.$ac_objext'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3667 ac_cv_sizeof___int64=$ac_size
3668 else
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3674 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3675 done
3679 if test x$ac_cv_sizeof___int64 = x ; then
3680 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3681 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3682 { (exit 1); exit 1; }; }
3684 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3685 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3687 cat >>confdefs.h <<_ACEOF
3688 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3689 _ACEOF
3694 # ---------------------
3695 # Warnings and checking
3696 # ---------------------
3698 # Check $CC warning features (if it's GCC).
3699 # We want to use -pedantic, but we don't want warnings about
3700 # * 'long long'
3701 # * variadic macros
3702 # So, we only use -pedantic if we can disable those warnings.
3704 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3705 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3706 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 save_CFLAGS="$CFLAGS"
3710 CFLAGS="-Wno-long-long"
3711 cat >conftest.$ac_ext <<_ACEOF
3712 /* confdefs.h. */
3713 _ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3718 _ACEOF
3719 rm -f conftest.$ac_objext
3720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3721 (eval $ac_compile) 2>conftest.er1
3722 ac_status=$?
3723 grep -v '^ *+' conftest.er1 >conftest.err
3724 rm -f conftest.er1
3725 cat conftest.err >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
3728 { ac_try='test -z "$ac_c_werror_flag"
3729 || test ! -s conftest.err'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 (eval $ac_try) 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; } &&
3735 { ac_try='test -s conftest.$ac_objext'
3736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 (eval $ac_try) 2>&5
3738 ac_status=$?
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; }; then
3741 ac_cv_prog_cc_w_no_long_long=yes
3742 else
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3746 ac_cv_prog_cc_w_no_long_long=no
3748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3749 CFLAGS="$save_CFLAGS"
3752 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3753 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3755 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3756 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3757 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760 save_CFLAGS="$CFLAGS"
3761 CFLAGS="-Wno-variadic-macros"
3762 cat >conftest.$ac_ext <<_ACEOF
3763 /* confdefs.h. */
3764 _ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3769 _ACEOF
3770 rm -f conftest.$ac_objext
3771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772 (eval $ac_compile) 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } &&
3779 { ac_try='test -z "$ac_c_werror_flag"
3780 || test ! -s conftest.err'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 (eval $ac_try) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; } &&
3786 { ac_try='test -s conftest.$ac_objext'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 (eval $ac_try) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 ac_cv_prog_cc_w_no_variadic_macros=yes
3793 else
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 ac_cv_prog_cc_w_no_variadic_macros=no
3799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3800 CFLAGS="$save_CFLAGS"
3803 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3804 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3806 strict1_warn=
3807 if test $ac_cv_prog_cc_w_no_long_long = yes \
3808 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3809 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3813 # Add -Wold-style-definition if it's accepted
3814 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3815 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3816 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 save_CFLAGS="$CFLAGS"
3820 CFLAGS="-Wold-style-definition"
3821 cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h. */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_c_werror_flag"
3839 || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 ac_cv_prog_cc_w_old_style_definition=yes
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3856 ac_cv_prog_cc_w_old_style_definition=no
3858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859 CFLAGS="$save_CFLAGS"
3862 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3863 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3864 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3865 strict1_warn="${strict1_warn} -Wold-style-definition"
3868 # Enable -Werror, period.
3869 # Check whether --enable-werror_always or --disable-werror_always was given.
3870 if test "${enable_werror_always+set}" = set; then
3871 enableval="$enable_werror_always"
3873 else
3874 enable_werror_always=no
3876 if test x${enable_werror_always} = xyes ; then
3877 strict1_warn="${strict1_warn} -Werror"
3878 WERROR=-Werror
3881 # If the native compiler is GCC, we can enable warnings even in stage1.
3882 # That's useful for people building cross-compilers, or just running a
3883 # quick `make'.
3884 warn_cflags=
3885 if test "x$GCC" = "xyes"; then
3886 warn_cflags='$(GCC_WARN_CFLAGS)'
3890 # Enable -Werror in bootstrap stage2 and later.
3891 # Change the default to "no" on release branches.
3892 # Check whether --enable-werror or --disable-werror was given.
3893 if test "${enable_werror+set}" = set; then
3894 enableval="$enable_werror"
3896 else
3897 enable_werror=yes
3899 if test x$enable_werror = xyes ; then
3900 WERROR=-Werror
3904 # Enable expensive internal checks
3905 # Check whether --enable-checking or --disable-checking was given.
3906 if test "${enable_checking+set}" = set; then
3907 enableval="$enable_checking"
3908 ac_checking=
3909 ac_tree_checking=
3910 ac_rtl_checking=
3911 ac_rtlflag_checking=
3912 ac_gc_checking=
3913 ac_gc_always_collect=
3914 ac_fold_checking=
3915 case "${enableval}" in
3916 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3917 ac_rtlflag_checking=1 ;;
3918 no) ;;
3919 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3920 set fnord $enableval; shift
3921 IFS="$ac_save_IFS"
3922 for check
3924 case $check in
3925 misc) ac_checking=1 ;;
3926 tree) ac_tree_checking=1 ;;
3927 rtlflag) ac_rtlflag_checking=1 ;;
3928 rtl) ac_rtl_checking=1 ;;
3929 gc) ac_gc_checking=1 ;;
3930 gcac) ac_gc_always_collect=1 ;;
3931 fold) ac_fold_checking=1 ;;
3932 valgrind) ac_checking_valgrind=1 ;;
3933 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3934 echo "$as_me: error: unknown check category $check" >&2;}
3935 { (exit 1); exit 1; }; } ;;
3936 esac
3937 done
3939 esac
3941 else
3942 # Enable some checks by default for development versions of GCC
3943 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3945 nocommon_flag=""
3946 if test x$ac_checking != x ; then
3948 cat >>confdefs.h <<\_ACEOF
3949 #define ENABLE_CHECKING 1
3950 _ACEOF
3952 nocommon_flag=-fno-common
3955 if test x$ac_tree_checking != x ; then
3957 cat >>confdefs.h <<\_ACEOF
3958 #define ENABLE_TREE_CHECKING 1
3959 _ACEOF
3961 TREEBROWSER=tree-browser.o
3964 if test x$ac_rtl_checking != x ; then
3966 cat >>confdefs.h <<\_ACEOF
3967 #define ENABLE_RTL_CHECKING 1
3968 _ACEOF
3971 if test x$ac_rtlflag_checking != x ; then
3973 cat >>confdefs.h <<\_ACEOF
3974 #define ENABLE_RTL_FLAG_CHECKING 1
3975 _ACEOF
3978 if test x$ac_gc_checking != x ; then
3980 cat >>confdefs.h <<\_ACEOF
3981 #define ENABLE_GC_CHECKING 1
3982 _ACEOF
3985 if test x$ac_gc_always_collect != x ; then
3987 cat >>confdefs.h <<\_ACEOF
3988 #define ENABLE_GC_ALWAYS_COLLECT 1
3989 _ACEOF
3992 if test x$ac_fold_checking != x ; then
3994 cat >>confdefs.h <<\_ACEOF
3995 #define ENABLE_FOLD_CHECKING 1
3996 _ACEOF
3999 valgrind_path_defines=
4000 valgrind_command=
4003 echo "$as_me:$LINENO: checking for egrep" >&5
4004 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4005 if test "${ac_cv_prog_egrep+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4009 then ac_cv_prog_egrep='grep -E'
4010 else ac_cv_prog_egrep='egrep'
4013 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4014 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4015 EGREP=$ac_cv_prog_egrep
4018 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4019 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4020 if test "${ac_cv_header_stdc+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023 cat >conftest.$ac_ext <<_ACEOF
4024 /* confdefs.h. */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4029 #include <stdlib.h>
4030 #include <stdarg.h>
4031 #include <string.h>
4032 #include <float.h>
4035 main ()
4039 return 0;
4041 _ACEOF
4042 rm -f conftest.$ac_objext
4043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4044 (eval $ac_compile) 2>conftest.er1
4045 ac_status=$?
4046 grep -v '^ *+' conftest.er1 >conftest.err
4047 rm -f conftest.er1
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } &&
4051 { ac_try='test -z "$ac_c_werror_flag"
4052 || test ! -s conftest.err'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; } &&
4058 { ac_try='test -s conftest.$ac_objext'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060 (eval $ac_try) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; }; then
4064 ac_cv_header_stdc=yes
4065 else
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4069 ac_cv_header_stdc=no
4071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073 if test $ac_cv_header_stdc = yes; then
4074 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4075 cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h. */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4081 #include <string.h>
4083 _ACEOF
4084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4085 $EGREP "memchr" >/dev/null 2>&1; then
4087 else
4088 ac_cv_header_stdc=no
4090 rm -f conftest*
4094 if test $ac_cv_header_stdc = yes; then
4095 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4096 cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h. */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4102 #include <stdlib.h>
4104 _ACEOF
4105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4106 $EGREP "free" >/dev/null 2>&1; then
4108 else
4109 ac_cv_header_stdc=no
4111 rm -f conftest*
4115 if test $ac_cv_header_stdc = yes; then
4116 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4117 if test "$cross_compiling" = yes; then
4119 else
4120 cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h. */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 #include <ctype.h>
4127 #if ((' ' & 0x0FF) == 0x020)
4128 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4129 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4130 #else
4131 # define ISLOWER(c) \
4132 (('a' <= (c) && (c) <= 'i') \
4133 || ('j' <= (c) && (c) <= 'r') \
4134 || ('s' <= (c) && (c) <= 'z'))
4135 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4136 #endif
4138 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4140 main ()
4142 int i;
4143 for (i = 0; i < 256; i++)
4144 if (XOR (islower (i), ISLOWER (i))
4145 || toupper (i) != TOUPPER (i))
4146 exit(2);
4147 exit (0);
4149 _ACEOF
4150 rm -f conftest$ac_exeext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4152 (eval $ac_link) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 (eval $ac_try) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4162 else
4163 echo "$as_me: program exited with status $ac_status" >&5
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4167 ( exit $ac_status )
4168 ac_cv_header_stdc=no
4170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4174 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4175 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4176 if test $ac_cv_header_stdc = yes; then
4178 cat >>confdefs.h <<\_ACEOF
4179 #define STDC_HEADERS 1
4180 _ACEOF
4184 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4194 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4195 inttypes.h stdint.h unistd.h
4197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4198 echo "$as_me:$LINENO: checking for $ac_header" >&5
4199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203 cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h. */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4209 $ac_includes_default
4211 #include <$ac_header>
4212 _ACEOF
4213 rm -f conftest.$ac_objext
4214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4215 (eval $ac_compile) 2>conftest.er1
4216 ac_status=$?
4217 grep -v '^ *+' conftest.er1 >conftest.err
4218 rm -f conftest.er1
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try='test -z "$ac_c_werror_flag"
4223 || test ! -s conftest.err'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 (eval $ac_try) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 (eval $ac_try) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 eval "$as_ac_Header=yes"
4236 else
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 eval "$as_ac_Header=no"
4242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4247 cat >>confdefs.h <<_ACEOF
4248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4249 _ACEOF
4253 done
4256 if test "${ac_cv_header_valgrind_h+set}" = set; then
4257 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4258 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4259 if test "${ac_cv_header_valgrind_h+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4263 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4264 else
4265 # Is the header compilable?
4266 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4267 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4268 cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h. */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 $ac_includes_default
4275 #include <valgrind.h>
4276 _ACEOF
4277 rm -f conftest.$ac_objext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279 (eval $ac_compile) 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -z "$ac_c_werror_flag"
4287 || test ! -s conftest.err'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 (eval $ac_try) 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; } &&
4293 { ac_try='test -s conftest.$ac_objext'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4299 ac_header_compiler=yes
4300 else
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4304 ac_header_compiler=no
4306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4308 echo "${ECHO_T}$ac_header_compiler" >&6
4310 # Is the header present?
4311 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4312 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4313 cat >conftest.$ac_ext <<_ACEOF
4314 /* confdefs.h. */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 #include <valgrind.h>
4320 _ACEOF
4321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4323 ac_status=$?
4324 grep -v '^ *+' conftest.er1 >conftest.err
4325 rm -f conftest.er1
4326 cat conftest.err >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } >/dev/null; then
4329 if test -s conftest.err; then
4330 ac_cpp_err=$ac_c_preproc_warn_flag
4331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4332 else
4333 ac_cpp_err=
4335 else
4336 ac_cpp_err=yes
4338 if test -z "$ac_cpp_err"; then
4339 ac_header_preproc=yes
4340 else
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 ac_header_preproc=no
4346 rm -f conftest.err conftest.$ac_ext
4347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4348 echo "${ECHO_T}$ac_header_preproc" >&6
4350 # So? What about this header?
4351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4352 yes:no: )
4353 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4354 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4355 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4356 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4357 ac_header_preproc=yes
4359 no:yes:* )
4360 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4361 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4362 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4363 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4364 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4365 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4366 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4367 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4368 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4369 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4370 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4371 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4373 cat <<\_ASBOX
4374 ## ------------------------------------------ ##
4375 ## Report this to the AC_PACKAGE_NAME lists. ##
4376 ## ------------------------------------------ ##
4377 _ASBOX
4379 sed "s/^/$as_me: WARNING: /" >&2
4381 esac
4382 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4383 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4384 if test "${ac_cv_header_valgrind_h+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387 ac_cv_header_valgrind_h=$ac_header_preproc
4389 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4390 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4393 if test $ac_cv_header_valgrind_h = yes; then
4394 have_valgrind_h=yes
4395 else
4396 have_valgrind_h=no
4401 if test x$ac_checking_valgrind != x ; then
4402 # It is certainly possible that there's valgrind but no valgrind.h.
4403 # GCC relies on making annotations so we must have both.
4404 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4405 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h. */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 #include <valgrind/memcheck.h>
4413 #ifndef VALGRIND_DISCARD
4414 #error VALGRIND_DISCARD not defined
4415 #endif
4416 _ACEOF
4417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4419 ac_status=$?
4420 grep -v '^ *+' conftest.er1 >conftest.err
4421 rm -f conftest.er1
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } >/dev/null; then
4425 if test -s conftest.err; then
4426 ac_cpp_err=$ac_c_preproc_warn_flag
4427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4428 else
4429 ac_cpp_err=
4431 else
4432 ac_cpp_err=yes
4434 if test -z "$ac_cpp_err"; then
4435 gcc_cv_header_valgrind_memcheck_h=yes
4436 else
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 gcc_cv_header_valgrind_memcheck_h=no
4442 rm -f conftest.err conftest.$ac_ext
4443 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4444 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4445 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4446 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 #include <memcheck.h>
4454 #ifndef VALGRIND_DISCARD
4455 #error VALGRIND_DISCARD not defined
4456 #endif
4457 _ACEOF
4458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } >/dev/null; then
4466 if test -s conftest.err; then
4467 ac_cpp_err=$ac_c_preproc_warn_flag
4468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4469 else
4470 ac_cpp_err=
4472 else
4473 ac_cpp_err=yes
4475 if test -z "$ac_cpp_err"; then
4476 gcc_cv_header_memcheck_h=yes
4477 else
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 gcc_cv_header_memcheck_h=no
4483 rm -f conftest.err conftest.$ac_ext
4484 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4485 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4487 # Prepare PATH_SEPARATOR.
4488 # The user is always right.
4489 if test "${PATH_SEPARATOR+set}" != set; then
4490 echo "#! /bin/sh" >conf$$.sh
4491 echo "exit 0" >>conf$$.sh
4492 chmod +x conf$$.sh
4493 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4494 PATH_SEPARATOR=';'
4495 else
4496 PATH_SEPARATOR=:
4498 rm -f conf$$.sh
4501 # Find out how to test for executable files. Don't use a zero-byte file,
4502 # as systems may use methods other than mode bits to determine executability.
4503 cat >conf$$.file <<_ASEOF
4504 #! /bin/sh
4505 exit 0
4506 _ASEOF
4507 chmod +x conf$$.file
4508 if test -x conf$$.file >/dev/null 2>&1; then
4509 ac_executable_p="test -x"
4510 else
4511 ac_executable_p="test -f"
4513 rm -f conf$$.file
4515 # Extract the first word of "valgrind", so it can be a program name with args.
4516 set dummy valgrind; ac_word=$2
4517 echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4519 if test "${ac_cv_path_valgrind_path+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 case "$valgrind_path" in
4523 [\\/]* | ?:[\\/]*)
4524 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4527 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4528 for ac_dir in $PATH; do
4529 IFS="$ac_save_IFS"
4530 test -z "$ac_dir" && ac_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4533 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4534 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4535 break 2
4538 done
4539 done
4540 IFS="$ac_save_IFS"
4542 esac
4544 valgrind_path="$ac_cv_path_valgrind_path"
4545 if test -n "$valgrind_path"; then
4546 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4547 echo "${ECHO_T}$valgrind_path" >&6
4548 else
4549 echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4553 if test "x$valgrind_path" = "x" \
4554 || (test $have_valgrind_h = no \
4555 && test $gcc_cv_header_memcheck_h = no \
4556 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4557 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4558 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4559 { (exit 1); exit 1; }; }
4561 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4562 valgrind_command="$valgrind_path -q"
4564 cat >>confdefs.h <<\_ACEOF
4565 #define ENABLE_VALGRIND_CHECKING 1
4566 _ACEOF
4568 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4570 cat >>confdefs.h <<\_ACEOF
4571 #define HAVE_VALGRIND_MEMCHECK_H 1
4572 _ACEOF
4575 if test $gcc_cv_header_memcheck_h = yes; then
4577 cat >>confdefs.h <<\_ACEOF
4578 #define HAVE_MEMCHECK_H 1
4579 _ACEOF
4586 # Enable code coverage collection
4587 # Check whether --enable-coverage or --disable-coverage was given.
4588 if test "${enable_coverage+set}" = set; then
4589 enableval="$enable_coverage"
4590 case "${enableval}" in
4591 yes|noopt)
4592 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4594 opt)
4595 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4598 # a.k.a. --disable-coverage
4599 coverage_flags=""
4602 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4603 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4604 { (exit 1); exit 1; }; }
4606 esac
4607 else
4608 coverage_flags=""
4612 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4613 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4614 enableval="$enable_gather_detailed_mem_stats"
4616 else
4617 enable_gather_detailed_mem_stats=no
4619 if test x$enable_gather_detailed_mem_stats = xyes ; then
4621 cat >>confdefs.h <<\_ACEOF
4622 #define GATHER_STATISTICS 1
4623 _ACEOF
4627 # -------------------------------
4628 # Miscenalleous configure options
4629 # -------------------------------
4631 # With stabs
4633 # Check whether --with-stabs or --without-stabs was given.
4634 if test "${with_stabs+set}" = set; then
4635 withval="$with_stabs"
4636 stabs="$with_stabs"
4637 else
4638 stabs=no
4641 # Determine whether or not multilibs are enabled.
4642 # Check whether --enable-multilib or --disable-multilib was given.
4643 if test "${enable_multilib+set}" = set; then
4644 enableval="$enable_multilib"
4646 else
4647 enable_multilib=yes
4651 # Enable __cxa_atexit for C++.
4652 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4653 if test "${enable___cxa_atexit+set}" = set; then
4654 enableval="$enable___cxa_atexit"
4658 # Enable threads
4659 # Pass with no value to take the default
4660 # Pass with a value to specify a thread package
4661 # Check whether --enable-threads or --disable-threads was given.
4662 if test "${enable_threads+set}" = set; then
4663 enableval="$enable_threads"
4665 else
4666 enable_threads=''
4669 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4670 if test "${enable_objc_gc+set}" = set; then
4671 enableval="$enable_objc_gc"
4672 if test x$enable_objc_gc = xno; then
4673 objc_boehm_gc=''
4674 else
4675 objc_boehm_gc=1
4677 else
4678 objc_boehm_gc=''
4682 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4683 if test "${with_dwarf2+set}" = set; then
4684 withval="$with_dwarf2"
4685 dwarf2="$with_dwarf2"
4686 else
4687 dwarf2=no
4690 # Check whether --enable-shared or --disable-shared was given.
4691 if test "${enable_shared+set}" = set; then
4692 enableval="$enable_shared"
4694 case $enable_shared in
4695 yes | no) ;;
4697 enable_shared=no
4698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4699 for pkg in $enableval; do
4700 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4701 enable_shared=yes
4703 done
4704 IFS="$ac_save_ifs"
4706 esac
4708 else
4709 enable_shared=yes
4714 # Check whether --with-sysroot or --without-sysroot was given.
4715 if test "${with_sysroot+set}" = set; then
4716 withval="$with_sysroot"
4718 case ${with_sysroot} in
4719 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4720 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4721 esac
4723 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4724 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4726 if test "x$exec_prefix" = xNONE; then
4727 if test "x$prefix" = xNONE; then
4728 test_prefix=/usr/local
4729 else
4730 test_prefix=$prefix
4732 else
4733 test_prefix=$exec_prefix
4735 case ${TARGET_SYSTEM_ROOT} in
4736 "${test_prefix}"|"${test_prefix}/"*|\
4737 '${exec_prefix}'|'${exec_prefix}/'*)
4738 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4739 TARGET_SYSTEM_ROOT_DEFINE="$t"
4741 esac
4743 else
4745 TARGET_SYSTEM_ROOT=
4746 TARGET_SYSTEM_ROOT_DEFINE=
4747 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4754 # Build with intermodule optimisations
4755 # Check whether --enable-intermodule or --disable-intermodule was given.
4756 if test "${enable_intermodule+set}" = set; then
4757 enableval="$enable_intermodule"
4758 case ${enable_intermodule} in
4759 yes) onestep="-onestep";;
4760 *) onestep="";;
4761 esac
4762 else
4763 onestep=""
4767 # Sanity check enable_languages in case someone does not run the toplevel
4768 # configure # script.
4769 # Check whether --enable-languages or --disable-languages was given.
4770 if test "${enable_languages+set}" = set; then
4771 enableval="$enable_languages"
4772 case ,${enable_languages}, in
4773 ,,|,yes,)
4774 # go safe -- we cannot be much sure without the toplevel
4775 # configure's
4776 # analysis of which target libs are present and usable
4777 enable_languages=c
4779 *,all,*)
4780 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4781 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4782 { (exit 1); exit 1; }; }
4784 *,c,*)
4787 enable_languages=c,${enable_languages}
4789 esac
4790 else
4791 enable_languages=c
4794 subdirs=
4795 for lang in ${srcdir}/*/config-lang.in
4797 case $lang in
4798 # The odd quoting in the next line works around
4799 # an apparent bug in bash 1.12 on linux.
4800 ${srcdir}/[*]/config-lang.in) ;;
4802 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4803 if test "x$lang_alias" = x
4804 then
4805 echo "$lang doesn't set \$language." 1>&2
4806 exit 1
4808 case ",$enable_languages," in
4809 *,$lang_alias,*)
4810 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4811 esac
4813 esac
4814 done
4817 # -------------------------
4818 # Checks for other programs
4819 # -------------------------
4821 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4822 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4823 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4824 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 cat >conftest.make <<\_ACEOF
4828 all:
4829 @echo 'ac_maketemp="$(MAKE)"'
4830 _ACEOF
4831 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4832 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4833 if test -n "$ac_maketemp"; then
4834 eval ac_cv_prog_make_${ac_make}_set=yes
4835 else
4836 eval ac_cv_prog_make_${ac_make}_set=no
4838 rm -f conftest.make
4840 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4841 echo "$as_me:$LINENO: result: yes" >&5
4842 echo "${ECHO_T}yes" >&6
4843 SET_MAKE=
4844 else
4845 echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6
4847 SET_MAKE="MAKE=${MAKE-make}"
4851 # Find some useful tools
4852 for ac_prog in gawk mawk nawk awk
4854 # Extract the first word of "$ac_prog", so it can be a program name with args.
4855 set dummy $ac_prog; ac_word=$2
4856 echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4858 if test "${ac_cv_prog_AWK+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861 if test -n "$AWK"; then
4862 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_AWK="$ac_prog"
4872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4875 done
4876 done
4880 AWK=$ac_cv_prog_AWK
4881 if test -n "$AWK"; then
4882 echo "$as_me:$LINENO: result: $AWK" >&5
4883 echo "${ECHO_T}$AWK" >&6
4884 else
4885 echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4889 test -n "$AWK" && break
4890 done
4892 # We need awk to run opts.sh (to create options.c and options.h).
4893 # Bail out if it's missing.
4894 case ${AWK} in
4895 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4896 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4898 esac
4900 echo "$as_me:$LINENO: checking whether ln works" >&5
4901 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4902 if test "${gcc_cv_prog_LN+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905 rm -f conftestdata_t
4906 echo >conftestdata_f
4907 if ln conftestdata_f conftestdata_t 2>/dev/null
4908 then
4909 gcc_cv_prog_LN="ln"
4910 else
4911 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4912 then
4913 gcc_cv_prog_LN="ln -s"
4914 else
4915 gcc_cv_prog_LN=cp
4918 rm -f conftestdata_f conftestdata_t
4921 LN="$gcc_cv_prog_LN"
4922 if test "$gcc_cv_prog_LN" = "ln"; then
4923 echo "$as_me:$LINENO: result: yes" >&5
4924 echo "${ECHO_T}yes" >&6
4925 else
4926 if test "$gcc_cv_prog_LN" = "ln -s"; then
4927 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4928 echo "${ECHO_T}no, using ln -s" >&6
4929 else
4930 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4931 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4935 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4936 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4937 if test "${gcc_cv_prog_LN_S+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940 rm -f conftestdata_t
4941 echo >conftestdata_f
4942 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4943 then
4944 gcc_cv_prog_LN_S="ln -s"
4945 else
4946 if ln conftestdata_f conftestdata_t 2>/dev/null
4947 then
4948 gcc_cv_prog_LN_S=ln
4949 else
4950 gcc_cv_prog_LN_S=cp
4953 rm -f conftestdata_f conftestdata_t
4956 LN_S="$gcc_cv_prog_LN_S"
4957 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4958 echo "$as_me:$LINENO: result: yes" >&5
4959 echo "${ECHO_T}yes" >&6
4960 else
4961 if test "$gcc_cv_prog_LN_S" = "ln"; then
4962 echo "$as_me:$LINENO: result: no, using ln" >&5
4963 echo "${ECHO_T}no, using ln" >&6
4964 else
4965 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4966 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4970 if test -n "$ac_tool_prefix"; then
4971 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4972 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4973 echo "$as_me:$LINENO: checking for $ac_word" >&5
4974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4975 if test "${ac_cv_prog_RANLIB+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 if test -n "$RANLIB"; then
4979 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4992 done
4993 done
4997 RANLIB=$ac_cv_prog_RANLIB
4998 if test -n "$RANLIB"; then
4999 echo "$as_me:$LINENO: result: $RANLIB" >&5
5000 echo "${ECHO_T}$RANLIB" >&6
5001 else
5002 echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6
5007 if test -z "$ac_cv_prog_RANLIB"; then
5008 ac_ct_RANLIB=$RANLIB
5009 # Extract the first word of "ranlib", so it can be a program name with args.
5010 set dummy ranlib; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016 if test -n "$ac_ct_RANLIB"; then
5017 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_ac_ct_RANLIB="ranlib"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5030 done
5031 done
5033 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5036 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5037 if test -n "$ac_ct_RANLIB"; then
5038 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5039 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5040 else
5041 echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6
5045 RANLIB=$ac_ct_RANLIB
5046 else
5047 RANLIB="$ac_cv_prog_RANLIB"
5050 # Find a good install program. We prefer a C program (faster),
5051 # so one script is as good as another. But avoid the broken or
5052 # incompatible versions:
5053 # SysV /etc/install, /usr/sbin/install
5054 # SunOS /usr/etc/install
5055 # IRIX /sbin/install
5056 # AIX /bin/install
5057 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5058 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5059 # ./install, which can be erroneously created by make from ./install.sh.
5060 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5061 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5062 if test -z "$INSTALL"; then
5063 if test "${ac_cv_path_install+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5067 for ac_dir in $PATH; do
5068 # Account for people who put trailing slashes in PATH elements.
5069 case "$ac_dir/" in
5070 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5072 # OSF1 and SCO ODT 3.0 have their own names for install.
5073 for ac_prog in ginstall scoinst install; do
5074 if test -f $ac_dir/$ac_prog; then
5075 if test $ac_prog = install &&
5076 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5077 # AIX install. It has an incompatible calling convention.
5078 # OSF/1 installbsd also uses dspmsg, but is usable.
5080 else
5081 ac_cv_path_install="$ac_dir/$ac_prog -c"
5082 break 2
5085 done
5087 esac
5088 done
5089 IFS="$ac_save_IFS"
5092 if test "${ac_cv_path_install+set}" = set; then
5093 INSTALL="$ac_cv_path_install"
5094 else
5095 # As a last resort, use the slow shell script. We don't cache a
5096 # path for INSTALL within a source directory, because that will
5097 # break other packages using the cache if that directory is
5098 # removed, or if the path is relative.
5099 INSTALL="$ac_install_sh"
5102 echo "$as_me:$LINENO: result: $INSTALL" >&5
5103 echo "${ECHO_T}$INSTALL" >&6
5105 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5106 # It thinks the first close brace ends the variable substitution.
5107 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5109 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5112 # See if cmp has --ignore-initial.
5113 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5114 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5115 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118 echo abfoo >t1
5119 echo cdfoo >t2
5120 gcc_cv_prog_cmp_skip=slowcompare
5121 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5122 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5124 else
5125 gcc_cv_prog_cmp_skip=gnucompare
5128 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5129 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5130 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5132 else
5133 gcc_cv_prog_cmp_skip=fastcompare
5137 rm t1 t2
5140 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5141 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5142 make_compare_target=$gcc_cv_prog_cmp_skip
5146 # See if we have the mktemp command.
5147 # Extract the first word of "mktemp", so it can be a program name with args.
5148 set dummy mktemp; ac_word=$2
5149 echo "$as_me:$LINENO: checking for $ac_word" >&5
5150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5151 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 else
5154 if test -n "$have_mktemp_command"; then
5155 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_have_mktemp_command="yes"
5165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5168 done
5169 done
5171 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5174 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5175 if test -n "$have_mktemp_command"; then
5176 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5177 echo "${ECHO_T}$have_mktemp_command" >&6
5178 else
5179 echo "$as_me:$LINENO: result: no" >&5
5180 echo "${ECHO_T}no" >&6
5184 # Do we have a single-tree copy of texinfo?
5185 if test -f $srcdir/../texinfo/Makefile.in; then
5186 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5187 gcc_cv_prog_makeinfo_modern=yes
5188 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5189 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5190 else
5191 # See if makeinfo has been installed and is modern enough
5192 # that we can use it.
5193 # Extract the first word of "makeinfo", so it can be a program name with args.
5194 set dummy makeinfo; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 if test -n "$MAKEINFO"; then
5201 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_MAKEINFO="makeinfo"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5214 done
5215 done
5219 MAKEINFO=$ac_cv_prog_MAKEINFO
5220 if test -n "$MAKEINFO"; then
5221 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5222 echo "${ECHO_T}$MAKEINFO" >&6
5223 else
5224 echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6
5228 if test -n "$MAKEINFO"; then
5229 # Found it, now check the version.
5230 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5231 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5232 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235 ac_prog_version=`$MAKEINFO --version 2>&1 |
5236 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5237 echo "configure:5237: version of makeinfo is $ac_prog_version" >&5
5238 case $ac_prog_version in
5239 '') gcc_cv_prog_makeinfo_modern=no;;
5240 4.[2-9]*)
5241 gcc_cv_prog_makeinfo_modern=yes;;
5242 *) gcc_cv_prog_makeinfo_modern=no;;
5243 esac
5246 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5247 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5248 else
5249 gcc_cv_prog_makeinfo_modern=no
5254 if test $gcc_cv_prog_makeinfo_modern = no; then
5255 { echo "$as_me:$LINENO: WARNING:
5256 *** Makeinfo is missing or too old.
5257 *** Info documentation will not be built." >&5
5258 echo "$as_me: WARNING:
5259 *** Makeinfo is missing or too old.
5260 *** Info documentation will not be built." >&2;}
5261 BUILD_INFO=
5262 else
5263 BUILD_INFO=info
5266 # Is pod2man recent enough to regenerate manpages?
5267 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5268 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5269 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5270 echo "$as_me:$LINENO: result: yes" >&5
5271 echo "${ECHO_T}yes" >&6
5272 GENERATED_MANPAGES=generated-manpages
5273 else
5274 echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6
5276 GENERATED_MANPAGES=
5279 # How about lex?
5280 if test x${build} = x${host} && test -f $srcdir/../flex/skel.c; then
5281 FLEX='$(objdir)/../flex/flex'
5282 else
5283 # Extract the first word of "flex", so it can be a program name with args.
5284 set dummy flex; ac_word=$2
5285 echo "$as_me:$LINENO: checking for $ac_word" >&5
5286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5287 if test "${ac_cv_prog_FLEX+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290 if test -n "$FLEX"; then
5291 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_FLEX="flex"
5301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5304 done
5305 done
5307 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5310 FLEX=$ac_cv_prog_FLEX
5311 if test -n "$FLEX"; then
5312 echo "$as_me:$LINENO: result: $FLEX" >&5
5313 echo "${ECHO_T}$FLEX" >&6
5314 else
5315 echo "$as_me:$LINENO: result: no" >&5
5316 echo "${ECHO_T}no" >&6
5321 # Bison?
5322 # The -L switch is so bison can find its skeleton file.
5323 if test x${build} = x${host} && test -f $srcdir/../bison/bison.simple; then
5324 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5325 else
5326 # Extract the first word of "bison", so it can be a program name with args.
5327 set dummy bison; ac_word=$2
5328 echo "$as_me:$LINENO: checking for $ac_word" >&5
5329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330 if test "${ac_cv_prog_BISON+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333 if test -n "$BISON"; then
5334 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5335 else
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343 ac_cv_prog_BISON="bison"
5344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2
5347 done
5348 done
5350 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5353 BISON=$ac_cv_prog_BISON
5354 if test -n "$BISON"; then
5355 echo "$as_me:$LINENO: result: $BISON" >&5
5356 echo "${ECHO_T}$BISON" >&6
5357 else
5358 echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6
5364 # --------------------
5365 # Checks for C headers
5366 # --------------------
5368 echo "$as_me:$LINENO: checking for GNU C library" >&5
5369 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5370 if test "${gcc_cv_glibc+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373 cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h. */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 #include <features.h>
5381 main ()
5384 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5385 #error Not a GNU C library system
5386 #endif
5388 return 0;
5390 _ACEOF
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } &&
5400 { ac_try='test -z "$ac_c_werror_flag"
5401 || test ! -s conftest.err'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 (eval $ac_try) 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; } &&
5407 { ac_try='test -s conftest.$ac_objext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 (eval $ac_try) 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 gcc_cv_glibc=yes
5414 else
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5418 gcc_cv_glibc=no
5420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5423 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5424 echo "${ECHO_T}$gcc_cv_glibc" >&6
5425 if test $gcc_cv_glibc = yes; then
5427 cat >>confdefs.h <<\_ACEOF
5428 #define _GNU_SOURCE 1
5429 _ACEOF
5433 # Need to reject headers which give warnings, so that the -Werror bootstrap
5434 # works later. *sigh* This needs to come before all header checks.
5436 ac_c_preproc_warn_flag=yes
5438 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5439 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5440 if test "${ac_cv_header_stdc+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443 cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h. */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 #include <stdlib.h>
5450 #include <stdarg.h>
5451 #include <string.h>
5452 #include <float.h>
5455 main ()
5459 return 0;
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464 (eval $ac_compile) 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try='test -z "$ac_c_werror_flag"
5472 || test ! -s conftest.err'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 (eval $ac_try) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; } &&
5478 { ac_try='test -s conftest.$ac_objext'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 (eval $ac_try) 2>&5
5481 ac_status=$?
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5484 ac_cv_header_stdc=yes
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 ac_cv_header_stdc=no
5491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5493 if test $ac_cv_header_stdc = yes; then
5494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 #include <string.h>
5503 _ACEOF
5504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5505 $EGREP "memchr" >/dev/null 2>&1; then
5507 else
5508 ac_cv_header_stdc=no
5510 rm -f conftest*
5514 if test $ac_cv_header_stdc = yes; then
5515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h. */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 #include <stdlib.h>
5524 _ACEOF
5525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5526 $EGREP "free" >/dev/null 2>&1; then
5528 else
5529 ac_cv_header_stdc=no
5531 rm -f conftest*
5535 if test $ac_cv_header_stdc = yes; then
5536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5537 if test "$cross_compiling" = yes; then
5539 else
5540 cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h. */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 #include <ctype.h>
5547 #if ((' ' & 0x0FF) == 0x020)
5548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5550 #else
5551 # define ISLOWER(c) \
5552 (('a' <= (c) && (c) <= 'i') \
5553 || ('j' <= (c) && (c) <= 'r') \
5554 || ('s' <= (c) && (c) <= 'z'))
5555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5556 #endif
5558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5560 main ()
5562 int i;
5563 for (i = 0; i < 256; i++)
5564 if (XOR (islower (i), ISLOWER (i))
5565 || toupper (i) != TOUPPER (i))
5566 exit(2);
5567 exit (0);
5569 _ACEOF
5570 rm -f conftest$ac_exeext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5572 (eval $ac_link) 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 (eval $ac_try) 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5582 else
5583 echo "$as_me: program exited with status $ac_status" >&5
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5587 ( exit $ac_status )
5588 ac_cv_header_stdc=no
5590 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5594 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5595 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5596 if test $ac_cv_header_stdc = yes; then
5598 cat >>confdefs.h <<\_ACEOF
5599 #define STDC_HEADERS 1
5600 _ACEOF
5604 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5605 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5606 if test "${ac_cv_header_time+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609 cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h. */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 #include <sys/types.h>
5616 #include <sys/time.h>
5617 #include <time.h>
5620 main ()
5622 if ((struct tm *) 0)
5623 return 0;
5625 return 0;
5627 _ACEOF
5628 rm -f conftest.$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630 (eval $ac_compile) 2>conftest.er1
5631 ac_status=$?
5632 grep -v '^ *+' conftest.er1 >conftest.err
5633 rm -f conftest.er1
5634 cat conftest.err >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } &&
5637 { ac_try='test -z "$ac_c_werror_flag"
5638 || test ! -s conftest.err'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 (eval $ac_try) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; } &&
5644 { ac_try='test -s conftest.$ac_objext'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 (eval $ac_try) 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; }; then
5650 ac_cv_header_time=yes
5651 else
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5655 ac_cv_header_time=no
5657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5659 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5660 echo "${ECHO_T}$ac_cv_header_time" >&6
5661 if test $ac_cv_header_time = yes; then
5663 cat >>confdefs.h <<\_ACEOF
5664 #define TIME_WITH_SYS_TIME 1
5665 _ACEOF
5669 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5670 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5671 if test "${ac_cv_header_stdbool_h+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 #include <stdbool.h>
5682 main ()
5684 bool foo = false;
5686 return 0;
5688 _ACEOF
5689 rm -f conftest.$ac_objext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691 (eval $ac_compile) 2>conftest.er1
5692 ac_status=$?
5693 grep -v '^ *+' conftest.er1 >conftest.err
5694 rm -f conftest.er1
5695 cat conftest.err >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } &&
5698 { ac_try='test -z "$ac_c_werror_flag"
5699 || test ! -s conftest.err'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 (eval $ac_try) 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; } &&
5705 { ac_try='test -s conftest.$ac_objext'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 (eval $ac_try) 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; }; then
5711 ac_cv_header_stdbool_h=yes
5712 else
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5716 ac_cv_header_stdbool_h=no
5718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5720 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5721 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5722 if test $ac_cv_header_stdbool_h = yes; then
5724 cat >>confdefs.h <<\_ACEOF
5725 #define HAVE_STDBOOL_H 1
5726 _ACEOF
5729 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
5730 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
5731 if test "${gcc_cv_c__bool+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5742 main ()
5744 _Bool foo;
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 gcc_cv_c__bool=yes
5772 else
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5776 gcc_cv_c__bool=no
5778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5781 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
5782 echo "${ECHO_T}$gcc_cv_c__bool" >&6
5783 if test $gcc_cv_c__bool = yes; then
5785 cat >>confdefs.h <<\_ACEOF
5786 #define HAVE__BOOL 1
5787 _ACEOF
5791 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5792 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5793 if test "${gcc_cv_header_string+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796 cat >conftest.$ac_ext <<_ACEOF
5797 /* confdefs.h. */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #include <string.h>
5803 #include <strings.h>
5805 main ()
5809 return 0;
5811 _ACEOF
5812 rm -f conftest.$ac_objext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag"
5822 || test ! -s conftest.err'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 (eval $ac_try) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; } &&
5828 { ac_try='test -s conftest.$ac_objext'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5834 gcc_cv_header_string=yes
5835 else
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5839 gcc_cv_header_string=no
5841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5843 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5844 echo "${ECHO_T}$gcc_cv_header_string" >&6
5845 if test $gcc_cv_header_string = yes; then
5847 cat >>confdefs.h <<\_ACEOF
5848 #define STRING_WITH_STRINGS 1
5849 _ACEOF
5853 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5854 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5855 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h. */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 #include <sys/types.h>
5865 #include <sys/wait.h>
5866 #ifndef WEXITSTATUS
5867 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5868 #endif
5869 #ifndef WIFEXITED
5870 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5871 #endif
5874 main ()
5876 int s;
5877 wait (&s);
5878 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5880 return 0;
5882 _ACEOF
5883 rm -f conftest.$ac_objext
5884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5885 (eval $ac_compile) 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try='test -z "$ac_c_werror_flag"
5893 || test ! -s conftest.err'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 (eval $ac_try) 2>&5
5896 ac_status=$?
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; } &&
5899 { ac_try='test -s conftest.$ac_objext'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 (eval $ac_try) 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 ac_cv_header_sys_wait_h=yes
5906 else
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5910 ac_cv_header_sys_wait_h=no
5912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5914 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5915 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5916 if test $ac_cv_header_sys_wait_h = yes; then
5918 cat >>confdefs.h <<\_ACEOF
5919 #define HAVE_SYS_WAIT_H 1
5920 _ACEOF
5945 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5946 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5947 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5948 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5951 echo "$as_me:$LINENO: checking for $ac_header" >&5
5952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956 cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h. */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 #include <$ac_header>
5963 _ACEOF
5964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5966 ac_status=$?
5967 grep -v '^ *+' conftest.er1 >conftest.err
5968 rm -f conftest.er1
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } >/dev/null; then
5972 if test -s conftest.err; then
5973 ac_cpp_err=$ac_c_preproc_warn_flag
5974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5975 else
5976 ac_cpp_err=
5978 else
5979 ac_cpp_err=yes
5981 if test -z "$ac_cpp_err"; then
5982 eval "$as_ac_Header=yes"
5983 else
5984 echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5987 eval "$as_ac_Header=no"
5989 rm -f conftest.err conftest.$ac_ext
5991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5994 cat >>confdefs.h <<_ACEOF
5995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5996 _ACEOF
5999 done
6002 # Check for thread headers.
6003 echo "$as_me:$LINENO: checking for thread.h" >&5
6004 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
6005 if test "${ac_cv_header_thread_h+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h. */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 #include <thread.h>
6015 _ACEOF
6016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6018 ac_status=$?
6019 grep -v '^ *+' conftest.er1 >conftest.err
6020 rm -f conftest.er1
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } >/dev/null; then
6024 if test -s conftest.err; then
6025 ac_cpp_err=$ac_c_preproc_warn_flag
6026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6027 else
6028 ac_cpp_err=
6030 else
6031 ac_cpp_err=yes
6033 if test -z "$ac_cpp_err"; then
6034 ac_cv_header_thread_h=yes
6035 else
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_cv_header_thread_h=no
6041 rm -f conftest.err conftest.$ac_ext
6043 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6044 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6045 if test $ac_cv_header_thread_h = yes; then
6046 have_thread_h=yes
6047 else
6048 have_thread_h=
6051 echo "$as_me:$LINENO: checking for pthread.h" >&5
6052 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6053 if test "${ac_cv_header_pthread_h+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h. */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <pthread.h>
6063 _ACEOF
6064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } >/dev/null; then
6072 if test -s conftest.err; then
6073 ac_cpp_err=$ac_c_preproc_warn_flag
6074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6075 else
6076 ac_cpp_err=
6078 else
6079 ac_cpp_err=yes
6081 if test -z "$ac_cpp_err"; then
6082 ac_cv_header_pthread_h=yes
6083 else
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 ac_cv_header_pthread_h=no
6089 rm -f conftest.err conftest.$ac_ext
6091 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6092 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6093 if test $ac_cv_header_pthread_h = yes; then
6094 have_pthread_h=yes
6095 else
6096 have_pthread_h=
6100 # These tests can't be done till we know if we have limits.h.
6101 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6102 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6103 if test "${gcc_cv_decl_char_bit+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 #ifdef HAVE_LIMITS_H
6113 #include <limits.h>
6114 #endif
6115 #ifdef CHAR_BIT
6116 found
6117 #endif
6118 _ACEOF
6119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6120 $EGREP "found" >/dev/null 2>&1; then
6121 gcc_cv_decl_char_bit=yes
6122 else
6123 gcc_cv_decl_char_bit=no
6125 rm -f conftest*
6129 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6130 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6131 if test $gcc_cv_decl_char_bit = no; then
6132 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6133 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6134 if test "${gcc_cv_c_nbby+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6138 gcc_cv_c_nbby=
6139 while test $i -lt 65; do
6140 cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h. */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6148 main ()
6150 switch(0) {
6151 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6152 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6155 return 0;
6157 _ACEOF
6158 rm -f conftest.$ac_objext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>conftest.er1
6161 ac_status=$?
6162 grep -v '^ *+' conftest.er1 >conftest.err
6163 rm -f conftest.er1
6164 cat conftest.err >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } &&
6167 { ac_try='test -z "$ac_c_werror_flag"
6168 || test ! -s conftest.err'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 (eval $ac_try) 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; } &&
6174 { ac_try='test -s conftest.$ac_objext'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 (eval $ac_try) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 gcc_cv_c_nbby=$i; break
6181 else
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6187 i=`expr $i + 1`
6188 done
6189 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6192 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6193 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6194 if test $gcc_cv_c_nbby = failed; then
6195 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6196 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6197 { (exit 1); exit 1; }; }
6198 else
6200 cat >>confdefs.h <<_ACEOF
6201 #define CHAR_BIT $gcc_cv_c_nbby
6202 _ACEOF
6206 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6207 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6208 if test "${ac_cv_c_bigendian+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211 ac_cv_c_bigendian=unknown
6212 # See if sys/param.h defines the BYTE_ORDER macro.
6213 cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h. */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6219 #include <sys/types.h>
6220 #include <sys/param.h>
6222 main ()
6225 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6226 bogus endian macros
6227 #endif
6229 return 0;
6231 _ACEOF
6232 rm -f conftest.$ac_objext
6233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6234 (eval $ac_compile) 2>conftest.er1
6235 ac_status=$?
6236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
6241 { ac_try='test -z "$ac_c_werror_flag"
6242 || test ! -s conftest.err'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; } &&
6248 { ac_try='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 # It does; now see whether it defined to BIG_ENDIAN or not.
6255 cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h. */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261 #include <sys/types.h>
6262 #include <sys/param.h>
6264 main ()
6267 #if BYTE_ORDER != BIG_ENDIAN
6268 not big endian
6269 #endif
6271 return 0;
6273 _ACEOF
6274 rm -f conftest.$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>conftest.er1
6277 ac_status=$?
6278 grep -v '^ *+' conftest.er1 >conftest.err
6279 rm -f conftest.er1
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } &&
6283 { ac_try='test -z "$ac_c_werror_flag"
6284 || test ! -s conftest.err'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; } &&
6290 { ac_try='test -s conftest.$ac_objext'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 (eval $ac_try) 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; }; then
6296 ac_cv_c_bigendian=yes
6297 else
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6301 ac_cv_c_bigendian=no
6303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6304 else
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6310 if test $ac_cv_c_bigendian = unknown; then
6311 if test "$cross_compiling" = yes; then
6312 echo $ac_n "cross-compiling... " 2>&6
6313 else
6314 cat >conftest.$ac_ext <<_ACEOF
6315 /* confdefs.h. */
6316 _ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6320 main () {
6321 /* Are we little or big endian? From Harbison&Steele. */
6322 union
6324 long l;
6325 char c[sizeof (long)];
6326 } u;
6327 u.l = 1;
6328 exit (u.c[sizeof (long) - 1] == 1);
6330 _ACEOF
6331 rm -f conftest$ac_exeext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6333 (eval $ac_link) 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 (eval $ac_try) 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; }; then
6342 ac_cv_c_bigendian=no
6343 else
6344 echo "$as_me: program exited with status $ac_status" >&5
6345 echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.$ac_ext >&5
6348 ( exit $ac_status )
6349 ac_cv_c_bigendian=yes
6351 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6355 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6356 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6357 if test $ac_cv_c_bigendian = unknown; then
6358 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6359 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6361 cat >conftest.c <<EOF
6362 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6363 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6364 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6365 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6366 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6367 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6368 int main() { _ascii (); _ebcdic (); return 0; }
6370 if test -f conftest.c ; then
6371 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6372 if test `grep -l BIGenDianSyS conftest.o` ; then
6373 echo $ac_n ' big endian probe OK, ' 1>&6
6374 ac_cv_c_bigendian=yes
6376 if test `grep -l LiTTleEnDian conftest.o` ; then
6377 echo $ac_n ' little endian probe OK, ' 1>&6
6378 if test $ac_cv_c_bigendian = yes ; then
6379 ac_cv_c_bigendian=unknown;
6380 else
6381 ac_cv_c_bigendian=no
6384 echo $ac_n 'guessing bigendian ... ' >&6
6387 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6388 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6390 if test $ac_cv_c_bigendian = yes; then
6392 cat >>confdefs.h <<\_ACEOF
6393 #define WORDS_BIGENDIAN 1
6394 _ACEOF
6397 cat >>confdefs.h <<\_ACEOF
6398 #define HOST_WORDS_BIG_ENDIAN 1
6399 _ACEOF
6401 BYTEORDER=4321
6402 else
6403 BYTEORDER=1234
6406 cat >>confdefs.h <<_ACEOF
6407 #define BYTEORDER $BYTEORDER
6408 _ACEOF
6410 if test $ac_cv_c_bigendian = unknown; then
6411 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6412 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6413 { (exit 1); exit 1; }; }
6417 # --------
6418 # UNSORTED
6419 # --------
6421 # Stage specific cflags for build.
6422 stage1_cflags=
6423 case $build in
6424 vax-*-*)
6425 if test x$GCC = xyes
6426 then
6427 stage1_cflags="-Wa,-J"
6428 else
6429 stage1_cflags="-J"
6432 powerpc-*-darwin*)
6433 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6434 # sources; use -no-cpp-precomp to get to GNU cpp.
6435 # Apple's GCC has bugs in designated initializer handling, so disable
6436 # that too.
6437 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6439 esac
6442 # These libraries may be used by collect2.
6443 # We may need a special search path to get them linked.
6444 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6445 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6446 if test "${gcc_cv_collect2_libs+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449 save_LIBS="$LIBS"
6450 for libs in '' -lld -lmld \
6451 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6452 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6454 LIBS="$libs"
6455 cat >conftest.$ac_ext <<_ACEOF
6456 /* confdefs.h. */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6462 /* Override any gcc2 internal prototype to avoid an error. */
6463 #ifdef __cplusplus
6464 extern "C"
6465 #endif
6466 /* We use char because int might match the return type of a gcc2
6467 builtin and then its argument prototype would still apply. */
6468 char ldopen ();
6470 main ()
6472 ldopen ();
6474 return 0;
6476 _ACEOF
6477 rm -f conftest.$ac_objext conftest$ac_exeext
6478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6479 (eval $ac_link) 2>conftest.er1
6480 ac_status=$?
6481 grep -v '^ *+' conftest.er1 >conftest.err
6482 rm -f conftest.er1
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -z "$ac_c_werror_flag"
6487 || test ! -s conftest.err'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 (eval $ac_try) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; } &&
6493 { ac_try='test -s conftest$ac_exeext'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 (eval $ac_try) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6499 gcc_cv_collect2_libs="$libs"; break
6500 else
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6505 rm -f conftest.err conftest.$ac_objext \
6506 conftest$ac_exeext conftest.$ac_ext
6507 done
6508 LIBS="$save_LIBS"
6509 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6511 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6512 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6513 case $gcc_cv_collect2_libs in
6514 "none required") ;;
6515 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6516 esac
6519 # When building Ada code on Alpha, we need exc_resume which is usually in
6520 # -lexc. So test for it.
6521 save_LIBS="$LIBS"
6522 LIBS=
6523 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6524 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6525 if test "${ac_cv_search_exc_resume+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528 ac_func_search_save_LIBS=$LIBS
6529 ac_cv_search_exc_resume=no
6530 cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h. */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6537 /* Override any gcc2 internal prototype to avoid an error. */
6538 #ifdef __cplusplus
6539 extern "C"
6540 #endif
6541 /* We use char because int might match the return type of a gcc2
6542 builtin and then its argument prototype would still apply. */
6543 char exc_resume ();
6545 main ()
6547 exc_resume ();
6549 return 0;
6551 _ACEOF
6552 rm -f conftest.$ac_objext conftest$ac_exeext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6554 (eval $ac_link) 2>conftest.er1
6555 ac_status=$?
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try='test -z "$ac_c_werror_flag"
6562 || test ! -s conftest.err'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 (eval $ac_try) 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; } &&
6568 { ac_try='test -s conftest$ac_exeext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 (eval $ac_try) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_cv_search_exc_resume="none required"
6575 else
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6580 rm -f conftest.err conftest.$ac_objext \
6581 conftest$ac_exeext conftest.$ac_ext
6582 if test "$ac_cv_search_exc_resume" = no; then
6583 for ac_lib in exc; do
6584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6585 cat >conftest.$ac_ext <<_ACEOF
6586 /* confdefs.h. */
6587 _ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6592 /* Override any gcc2 internal prototype to avoid an error. */
6593 #ifdef __cplusplus
6594 extern "C"
6595 #endif
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6598 char exc_resume ();
6600 main ()
6602 exc_resume ();
6604 return 0;
6606 _ACEOF
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6609 (eval $ac_link) 2>conftest.er1
6610 ac_status=$?
6611 grep -v '^ *+' conftest.er1 >conftest.err
6612 rm -f conftest.er1
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -z "$ac_c_werror_flag"
6617 || test ! -s conftest.err'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 (eval $ac_try) 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; } &&
6623 { ac_try='test -s conftest$ac_exeext'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 (eval $ac_try) 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6629 ac_cv_search_exc_resume="-l$ac_lib"
6630 break
6631 else
6632 echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6636 rm -f conftest.err conftest.$ac_objext \
6637 conftest$ac_exeext conftest.$ac_ext
6638 done
6640 LIBS=$ac_func_search_save_LIBS
6642 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6643 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6644 if test "$ac_cv_search_exc_resume" != no; then
6645 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6649 GNAT_LIBEXC="$LIBS"
6650 LIBS="$save_LIBS"
6653 # Some systems put ldexp and frexp in libm instead of libc; assume
6654 # they're both in the same place. jcf-dump needs them.
6655 save_LIBS="$LIBS"
6656 LIBS=
6657 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6658 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6659 if test "${ac_cv_search_ldexp+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662 ac_func_search_save_LIBS=$LIBS
6663 ac_cv_search_ldexp=no
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6671 /* Override any gcc2 internal prototype to avoid an error. */
6672 #ifdef __cplusplus
6673 extern "C"
6674 #endif
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6677 char ldexp ();
6679 main ()
6681 ldexp ();
6683 return 0;
6685 _ACEOF
6686 rm -f conftest.$ac_objext conftest$ac_exeext
6687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688 (eval $ac_link) 2>conftest.er1
6689 ac_status=$?
6690 grep -v '^ *+' conftest.er1 >conftest.err
6691 rm -f conftest.er1
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } &&
6695 { ac_try='test -z "$ac_c_werror_flag"
6696 || test ! -s conftest.err'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 (eval $ac_try) 2>&5
6699 ac_status=$?
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; } &&
6702 { ac_try='test -s conftest$ac_exeext'
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 (eval $ac_try) 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; }; then
6708 ac_cv_search_ldexp="none required"
6709 else
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6714 rm -f conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
6716 if test "$ac_cv_search_ldexp" = no; then
6717 for ac_lib in m; do
6718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6719 cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h. */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6726 /* Override any gcc2 internal prototype to avoid an error. */
6727 #ifdef __cplusplus
6728 extern "C"
6729 #endif
6730 /* We use char because int might match the return type of a gcc2
6731 builtin and then its argument prototype would still apply. */
6732 char ldexp ();
6734 main ()
6736 ldexp ();
6738 return 0;
6740 _ACEOF
6741 rm -f conftest.$ac_objext conftest$ac_exeext
6742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743 (eval $ac_link) 2>conftest.er1
6744 ac_status=$?
6745 grep -v '^ *+' conftest.er1 >conftest.err
6746 rm -f conftest.er1
6747 cat conftest.err >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } &&
6750 { ac_try='test -z "$ac_c_werror_flag"
6751 || test ! -s conftest.err'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 (eval $ac_try) 2>&5
6754 ac_status=$?
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; } &&
6757 { ac_try='test -s conftest$ac_exeext'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 (eval $ac_try) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6763 ac_cv_search_ldexp="-l$ac_lib"
6764 break
6765 else
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6770 rm -f conftest.err conftest.$ac_objext \
6771 conftest$ac_exeext conftest.$ac_ext
6772 done
6774 LIBS=$ac_func_search_save_LIBS
6776 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6777 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6778 if test "$ac_cv_search_ldexp" != no; then
6779 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6783 LDEXP_LIB="$LIBS"
6784 LIBS="$save_LIBS"
6787 # Use <inttypes.h> only if it exists,
6788 # doesn't clash with <sys/types.h>, and declares intmax_t.
6789 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6790 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6791 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794 cat >conftest.$ac_ext <<_ACEOF
6795 /* confdefs.h. */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6800 #include <sys/types.h>
6801 #include <inttypes.h>
6803 main ()
6805 intmax_t i = -1;
6807 return 0;
6809 _ACEOF
6810 rm -f conftest.$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>conftest.er1
6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
6819 { ac_try='test -z "$ac_c_werror_flag"
6820 || test ! -s conftest.err'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; } &&
6826 { ac_try='test -s conftest.$ac_objext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 gcc_cv_header_inttypes_h=yes
6833 else
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6837 gcc_cv_header_inttypes_h=no
6839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6842 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6843 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6844 if test $gcc_cv_header_inttypes_h = yes; then
6846 cat >>confdefs.h <<\_ACEOF
6847 #define HAVE_INTTYPES_H 1
6848 _ACEOF
6878 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6879 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6880 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6881 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6882 setlocale
6884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6885 echo "$as_me:$LINENO: checking for $ac_func" >&5
6886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6887 if eval "test \"\${$as_ac_var+set}\" = set"; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890 cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h. */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6898 #define $ac_func innocuous_$ac_func
6900 /* System header to define __stub macros and hopefully few prototypes,
6901 which can conflict with char $ac_func (); below.
6902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6903 <limits.h> exists even on freestanding compilers. */
6905 #ifdef __STDC__
6906 # include <limits.h>
6907 #else
6908 # include <assert.h>
6909 #endif
6911 #undef $ac_func
6913 /* Override any gcc2 internal prototype to avoid an error. */
6914 #ifdef __cplusplus
6915 extern "C"
6917 #endif
6918 /* We use char because int might match the return type of a gcc2
6919 builtin and then its argument prototype would still apply. */
6920 char $ac_func ();
6921 /* The GNU C library defines this for functions which it implements
6922 to always fail with ENOSYS. Some functions are actually named
6923 something starting with __ and the normal name is an alias. */
6924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6925 choke me
6926 #else
6927 char (*f) () = $ac_func;
6928 #endif
6929 #ifdef __cplusplus
6931 #endif
6934 main ()
6936 return f != $ac_func;
6938 return 0;
6940 _ACEOF
6941 rm -f conftest.$ac_objext conftest$ac_exeext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943 (eval $ac_link) 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -z "$ac_c_werror_flag"
6951 || test ! -s conftest.err'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; } &&
6957 { ac_try='test -s conftest$ac_exeext'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 (eval $ac_try) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6963 eval "$as_ac_var=yes"
6964 else
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6968 eval "$as_ac_var=no"
6970 rm -f conftest.err conftest.$ac_objext \
6971 conftest$ac_exeext conftest.$ac_ext
6973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6975 if test `eval echo '${'$as_ac_var'}'` = yes; then
6976 cat >>confdefs.h <<_ACEOF
6977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6978 _ACEOF
6981 done
6984 if test x$ac_cv_func_mbstowcs = xyes; then
6985 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6986 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6987 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990 if test "$cross_compiling" = yes; then
6991 gcc_cv_func_mbstowcs_works=yes
6992 else
6993 cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h. */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 #include <stdlib.h>
7000 int main()
7002 mbstowcs(0, "", 0);
7003 return 0;
7005 _ACEOF
7006 rm -f conftest$ac_exeext
7007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7008 (eval $ac_link) 2>&5
7009 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 (eval $ac_try) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7017 gcc_cv_func_mbstowcs_works=yes
7018 else
7019 echo "$as_me: program exited with status $ac_status" >&5
7020 echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7023 ( exit $ac_status )
7024 gcc_cv_func_mbstowcs_works=no
7026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7029 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
7030 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
7031 if test x$gcc_cv_func_mbstowcs_works = xyes; then
7033 cat >>confdefs.h <<\_ACEOF
7034 #define HAVE_WORKING_MBSTOWCS 1
7035 _ACEOF
7040 echo "$as_me:$LINENO: checking for ssize_t" >&5
7041 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7042 if test "${ac_cv_type_ssize_t+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 $ac_includes_default
7053 main ()
7055 if ((ssize_t *) 0)
7056 return 0;
7057 if (sizeof (ssize_t))
7058 return 0;
7060 return 0;
7062 _ACEOF
7063 rm -f conftest.$ac_objext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065 (eval $ac_compile) 2>conftest.er1
7066 ac_status=$?
7067 grep -v '^ *+' conftest.er1 >conftest.err
7068 rm -f conftest.er1
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } &&
7072 { ac_try='test -z "$ac_c_werror_flag"
7073 || test ! -s conftest.err'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 (eval $ac_try) 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; } &&
7079 { ac_try='test -s conftest.$ac_objext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 (eval $ac_try) 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 ac_cv_type_ssize_t=yes
7086 else
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_type_ssize_t=no
7092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7094 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7095 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7096 if test $ac_cv_type_ssize_t = yes; then
7098 else
7100 cat >>confdefs.h <<_ACEOF
7101 #define ssize_t int
7102 _ACEOF
7107 # Try to determine the array type of the second argument of getgroups
7108 # for the target system (int or gid_t).
7109 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7110 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7111 if test "${ac_cv_type_uid_t+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114 cat >conftest.$ac_ext <<_ACEOF
7115 /* confdefs.h. */
7116 _ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7120 #include <sys/types.h>
7122 _ACEOF
7123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7124 $EGREP "uid_t" >/dev/null 2>&1; then
7125 ac_cv_type_uid_t=yes
7126 else
7127 ac_cv_type_uid_t=no
7129 rm -f conftest*
7132 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7133 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7134 if test $ac_cv_type_uid_t = no; then
7136 cat >>confdefs.h <<\_ACEOF
7137 #define uid_t int
7138 _ACEOF
7141 cat >>confdefs.h <<\_ACEOF
7142 #define gid_t int
7143 _ACEOF
7147 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7148 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7149 if test "${ac_cv_type_getgroups+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152 if test "$cross_compiling" = yes; then
7153 ac_cv_type_getgroups=cross
7154 else
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h. */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 /* Thanks to Mike Rendell for this test. */
7162 #include <sys/types.h>
7163 #define NGID 256
7164 #undef MAX
7165 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7168 main ()
7170 gid_t gidset[NGID];
7171 int i, n;
7172 union { gid_t gval; long lval; } val;
7174 val.lval = -1;
7175 for (i = 0; i < NGID; i++)
7176 gidset[i] = val.gval;
7177 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7178 gidset);
7179 /* Exit non-zero if getgroups seems to require an array of ints. This
7180 happens when gid_t is short but getgroups modifies an array of ints. */
7181 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7183 _ACEOF
7184 rm -f conftest$ac_exeext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7186 (eval $ac_link) 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 ac_cv_type_getgroups=gid_t
7196 else
7197 echo "$as_me: program exited with status $ac_status" >&5
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7201 ( exit $ac_status )
7202 ac_cv_type_getgroups=int
7204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7206 if test $ac_cv_type_getgroups = cross; then
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h. */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 #include <unistd.h>
7215 _ACEOF
7216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7217 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7218 ac_cv_type_getgroups=gid_t
7219 else
7220 ac_cv_type_getgroups=int
7222 rm -f conftest*
7226 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7227 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7229 cat >>confdefs.h <<_ACEOF
7230 #define GETGROUPS_T $ac_cv_type_getgroups
7231 _ACEOF
7234 if test "${target}" = "${build}"; then
7235 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7236 else
7237 case "${target}" in
7238 # This condition may need some tweaking. It should include all
7239 # targets where the array type of the second argument of getgroups
7240 # is int and the type of gid_t is not equivalent to int.
7241 *-*-sunos* | *-*-ultrix*)
7242 TARGET_GETGROUPS_T=int
7245 TARGET_GETGROUPS_T=gid_t
7247 esac
7251 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7252 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7253 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256 if test "$cross_compiling" = yes; then
7257 gcc_cv_func_printf_ptr=no
7258 else
7259 cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h. */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 #include <stdio.h>
7267 int main()
7269 char buf[64];
7270 char *p = buf, *q = NULL;
7271 sprintf(buf, "%p", p);
7272 sscanf(buf, "%p", &q);
7273 return (p != q);
7275 _ACEOF
7276 rm -f conftest$ac_exeext
7277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7278 (eval $ac_link) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 (eval $ac_try) 2>&5
7284 ac_status=$?
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; }; then
7287 gcc_cv_func_printf_ptr=yes
7288 else
7289 echo "$as_me: program exited with status $ac_status" >&5
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293 ( exit $ac_status )
7294 gcc_cv_func_printf_ptr=no
7296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7298 rm -f core core.* *.core
7300 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7301 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7302 if test $gcc_cv_func_printf_ptr = yes ; then
7304 cat >>confdefs.h <<\_ACEOF
7305 #define HAVE_PRINTF_PTR 1
7306 _ACEOF
7310 if test $ac_cv_header_sys_mman_h != yes \
7311 || test $ac_cv_func_mmap != yes; then
7312 gcc_cv_func_mmap_file=no
7313 gcc_cv_func_mmap_dev_zero=no
7314 gcc_cv_func_mmap_anon=no
7315 else
7316 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7317 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7318 if test "${gcc_cv_func_mmap_file+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321 # Add a system to this blacklist if
7322 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7323 # memory area containing the same data that you'd get if you applied
7324 # read() to the same fd. The only system known to have a problem here
7325 # is VMS, where text files have record structure.
7326 case "$host_os" in
7327 vms* | ultrix*)
7328 gcc_cv_func_mmap_file=no ;;
7330 gcc_cv_func_mmap_file=yes;;
7331 esac
7333 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7334 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7335 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7336 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7337 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340 # Add a system to this blacklist if it has mmap() but /dev/zero
7341 # does not exist, or if mmapping /dev/zero does not give anonymous
7342 # zeroed pages with both the following properties:
7343 # 1. If you map N consecutive pages in with one call, and then
7344 # unmap any subset of those pages, the pages that were not
7345 # explicitly unmapped remain accessible.
7346 # 2. If you map two adjacent blocks of memory and then unmap them
7347 # both at once, they must both go away.
7348 # Systems known to be in this category are Windows (all variants),
7349 # VMS, and Darwin.
7350 case "$host_os" in
7351 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7352 gcc_cv_func_mmap_dev_zero=no ;;
7354 gcc_cv_func_mmap_dev_zero=yes;;
7355 esac
7357 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7358 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7360 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7361 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7362 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7363 if test "${gcc_cv_decl_map_anon+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 #include <sys/types.h>
7373 #include <sys/mman.h>
7374 #include <unistd.h>
7376 #ifndef MAP_ANONYMOUS
7377 #define MAP_ANONYMOUS MAP_ANON
7378 #endif
7381 main ()
7383 int n = MAP_ANONYMOUS;
7385 return 0;
7387 _ACEOF
7388 rm -f conftest.$ac_objext
7389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7390 (eval $ac_compile) 2>conftest.er1
7391 ac_status=$?
7392 grep -v '^ *+' conftest.er1 >conftest.err
7393 rm -f conftest.er1
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } &&
7397 { ac_try='test -z "$ac_c_werror_flag"
7398 || test ! -s conftest.err'
7399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400 (eval $ac_try) 2>&5
7401 ac_status=$?
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); }; } &&
7404 { ac_try='test -s conftest.$ac_objext'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 (eval $ac_try) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; }; then
7410 gcc_cv_decl_map_anon=yes
7411 else
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7415 gcc_cv_decl_map_anon=no
7417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7419 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7420 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7422 if test $gcc_cv_decl_map_anon = no; then
7423 gcc_cv_func_mmap_anon=no
7424 else
7425 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7426 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7427 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7431 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7432 # doesn't give anonymous zeroed pages with the same properties listed
7433 # above for use of /dev/zero.
7434 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7435 case "$host_os" in
7436 vms* | cygwin* | pe | mingw* | sco* | udk* )
7437 gcc_cv_func_mmap_anon=no ;;
7439 gcc_cv_func_mmap_anon=yes;;
7440 esac
7442 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7443 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7447 if test $gcc_cv_func_mmap_file = yes; then
7449 cat >>confdefs.h <<\_ACEOF
7450 #define HAVE_MMAP_FILE 1
7451 _ACEOF
7454 if test $gcc_cv_func_mmap_dev_zero = yes; then
7456 cat >>confdefs.h <<\_ACEOF
7457 #define HAVE_MMAP_DEV_ZERO 1
7458 _ACEOF
7461 if test $gcc_cv_func_mmap_anon = yes; then
7463 cat >>confdefs.h <<\_ACEOF
7464 #define HAVE_MMAP_ANON 1
7465 _ACEOF
7470 case "${host}" in
7471 *-*-*vms*)
7472 # Under VMS, vfork works very differently than on Unix. The standard test
7473 # won't work, and it isn't easily adaptable. It makes more sense to
7474 # just force it.
7475 ac_cv_func_vfork_works=yes
7477 esac
7478 echo "$as_me:$LINENO: checking for pid_t" >&5
7479 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7480 if test "${ac_cv_type_pid_t+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483 cat >conftest.$ac_ext <<_ACEOF
7484 /* confdefs.h. */
7485 _ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489 $ac_includes_default
7491 main ()
7493 if ((pid_t *) 0)
7494 return 0;
7495 if (sizeof (pid_t))
7496 return 0;
7498 return 0;
7500 _ACEOF
7501 rm -f conftest.$ac_objext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7503 (eval $ac_compile) 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } &&
7510 { ac_try='test -z "$ac_c_werror_flag"
7511 || test ! -s conftest.err'
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 (eval $ac_try) 2>&5
7514 ac_status=$?
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; } &&
7517 { ac_try='test -s conftest.$ac_objext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 (eval $ac_try) 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 ac_cv_type_pid_t=yes
7524 else
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7528 ac_cv_type_pid_t=no
7530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7532 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7533 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7534 if test $ac_cv_type_pid_t = yes; then
7536 else
7538 cat >>confdefs.h <<_ACEOF
7539 #define pid_t int
7540 _ACEOF
7546 for ac_header in unistd.h vfork.h
7548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7549 echo "$as_me:$LINENO: checking for $ac_header" >&5
7550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 cat >conftest.$ac_ext <<_ACEOF
7555 /* confdefs.h. */
7556 _ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7560 #include <$ac_header>
7561 _ACEOF
7562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7564 ac_status=$?
7565 grep -v '^ *+' conftest.er1 >conftest.err
7566 rm -f conftest.er1
7567 cat conftest.err >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } >/dev/null; then
7570 if test -s conftest.err; then
7571 ac_cpp_err=$ac_c_preproc_warn_flag
7572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7573 else
7574 ac_cpp_err=
7576 else
7577 ac_cpp_err=yes
7579 if test -z "$ac_cpp_err"; then
7580 eval "$as_ac_Header=yes"
7581 else
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7585 eval "$as_ac_Header=no"
7587 rm -f conftest.err conftest.$ac_ext
7589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7592 cat >>confdefs.h <<_ACEOF
7593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7594 _ACEOF
7597 done
7601 for ac_func in fork vfork
7603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7604 echo "$as_me:$LINENO: checking for $ac_func" >&5
7605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7606 if eval "test \"\${$as_ac_var+set}\" = set"; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609 cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h. */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7617 #define $ac_func innocuous_$ac_func
7619 /* System header to define __stub macros and hopefully few prototypes,
7620 which can conflict with char $ac_func (); below.
7621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7622 <limits.h> exists even on freestanding compilers. */
7624 #ifdef __STDC__
7625 # include <limits.h>
7626 #else
7627 # include <assert.h>
7628 #endif
7630 #undef $ac_func
7632 /* Override any gcc2 internal prototype to avoid an error. */
7633 #ifdef __cplusplus
7634 extern "C"
7636 #endif
7637 /* We use char because int might match the return type of a gcc2
7638 builtin and then its argument prototype would still apply. */
7639 char $ac_func ();
7640 /* The GNU C library defines this for functions which it implements
7641 to always fail with ENOSYS. Some functions are actually named
7642 something starting with __ and the normal name is an alias. */
7643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7644 choke me
7645 #else
7646 char (*f) () = $ac_func;
7647 #endif
7648 #ifdef __cplusplus
7650 #endif
7653 main ()
7655 return f != $ac_func;
7657 return 0;
7659 _ACEOF
7660 rm -f conftest.$ac_objext conftest$ac_exeext
7661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7662 (eval $ac_link) 2>conftest.er1
7663 ac_status=$?
7664 grep -v '^ *+' conftest.er1 >conftest.err
7665 rm -f conftest.er1
7666 cat conftest.err >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try='test -z "$ac_c_werror_flag"
7670 || test ! -s conftest.err'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672 (eval $ac_try) 2>&5
7673 ac_status=$?
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; } &&
7676 { ac_try='test -s conftest$ac_exeext'
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 (eval $ac_try) 2>&5
7679 ac_status=$?
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; }; then
7682 eval "$as_ac_var=yes"
7683 else
7684 echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7687 eval "$as_ac_var=no"
7689 rm -f conftest.err conftest.$ac_objext \
7690 conftest$ac_exeext conftest.$ac_ext
7692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7694 if test `eval echo '${'$as_ac_var'}'` = yes; then
7695 cat >>confdefs.h <<_ACEOF
7696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7697 _ACEOF
7700 done
7702 if test "x$ac_cv_func_fork" = xyes; then
7703 echo "$as_me:$LINENO: checking for working fork" >&5
7704 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7705 if test "${ac_cv_func_fork_works+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708 if test "$cross_compiling" = yes; then
7709 ac_cv_func_fork_works=cross
7710 else
7711 cat >conftest.$ac_ext <<_ACEOF
7712 /* By Ruediger Kuhlmann. */
7713 #include <sys/types.h>
7714 #if HAVE_UNISTD_H
7715 # include <unistd.h>
7716 #endif
7717 /* Some systems only have a dummy stub for fork() */
7718 int main ()
7720 if (fork() < 0)
7721 exit (1);
7722 exit (0);
7724 _ACEOF
7725 rm -f conftest$ac_exeext
7726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7727 (eval $ac_link) 2>&5
7728 ac_status=$?
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 (eval $ac_try) 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; }; then
7736 ac_cv_func_fork_works=yes
7737 else
7738 echo "$as_me: program exited with status $ac_status" >&5
7739 echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7742 ( exit $ac_status )
7743 ac_cv_func_fork_works=no
7745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7748 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7749 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7751 else
7752 ac_cv_func_fork_works=$ac_cv_func_fork
7754 if test "x$ac_cv_func_fork_works" = xcross; then
7755 case $host in
7756 *-*-amigaos* | *-*-msdosdjgpp*)
7757 # Override, as these systems have only a dummy fork() stub
7758 ac_cv_func_fork_works=no
7761 ac_cv_func_fork_works=yes
7763 esac
7764 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7765 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7767 ac_cv_func_vfork_works=$ac_cv_func_vfork
7768 if test "x$ac_cv_func_vfork" = xyes; then
7769 echo "$as_me:$LINENO: checking for working vfork" >&5
7770 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7771 if test "${ac_cv_func_vfork_works+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774 if test "$cross_compiling" = yes; then
7775 ac_cv_func_vfork_works=cross
7776 else
7777 cat >conftest.$ac_ext <<_ACEOF
7778 /* confdefs.h. */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7783 /* Thanks to Paul Eggert for this test. */
7784 #include <stdio.h>
7785 #include <stdlib.h>
7786 #include <sys/types.h>
7787 #include <sys/stat.h>
7788 #include <sys/wait.h>
7789 #if HAVE_UNISTD_H
7790 # include <unistd.h>
7791 #endif
7792 #if HAVE_VFORK_H
7793 # include <vfork.h>
7794 #endif
7795 /* On some sparc systems, changes by the child to local and incoming
7796 argument registers are propagated back to the parent. The compiler
7797 is told about this with #include <vfork.h>, but some compilers
7798 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7799 static variable whose address is put into a register that is
7800 clobbered by the vfork. */
7801 static void
7802 #ifdef __cplusplus
7803 sparc_address_test (int arg)
7804 # else
7805 sparc_address_test (arg) int arg;
7806 #endif
7808 static pid_t child;
7809 if (!child) {
7810 child = vfork ();
7811 if (child < 0) {
7812 perror ("vfork");
7813 _exit(2);
7815 if (!child) {
7816 arg = getpid();
7817 write(-1, "", 0);
7818 _exit (arg);
7824 main ()
7826 pid_t parent = getpid ();
7827 pid_t child;
7829 sparc_address_test (0);
7831 child = vfork ();
7833 if (child == 0) {
7834 /* Here is another test for sparc vfork register problems. This
7835 test uses lots of local variables, at least as many local
7836 variables as main has allocated so far including compiler
7837 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7838 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7839 reuse the register of parent for one of the local variables,
7840 since it will think that parent can't possibly be used any more
7841 in this routine. Assigning to the local variable will thus
7842 munge parent in the parent process. */
7843 pid_t
7844 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7845 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7846 /* Convince the compiler that p..p7 are live; otherwise, it might
7847 use the same hardware register for all 8 local variables. */
7848 if (p != p1 || p != p2 || p != p3 || p != p4
7849 || p != p5 || p != p6 || p != p7)
7850 _exit(1);
7852 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7853 from child file descriptors. If the child closes a descriptor
7854 before it execs or exits, this munges the parent's descriptor
7855 as well. Test for this by closing stdout in the child. */
7856 _exit(close(fileno(stdout)) != 0);
7857 } else {
7858 int status;
7859 struct stat st;
7861 while (wait(&status) != child)
7863 exit(
7864 /* Was there some problem with vforking? */
7865 child < 0
7867 /* Did the child fail? (This shouldn't happen.) */
7868 || status
7870 /* Did the vfork/compiler bug occur? */
7871 || parent != getpid()
7873 /* Did the file descriptor bug occur? */
7874 || fstat(fileno(stdout), &st) != 0
7878 _ACEOF
7879 rm -f conftest$ac_exeext
7880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7881 (eval $ac_link) 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 (eval $ac_try) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; }; then
7890 ac_cv_func_vfork_works=yes
7891 else
7892 echo "$as_me: program exited with status $ac_status" >&5
7893 echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7896 ( exit $ac_status )
7897 ac_cv_func_vfork_works=no
7899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7902 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7903 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7906 if test "x$ac_cv_func_fork_works" = xcross; then
7907 ac_cv_func_vfork_works=$ac_cv_func_vfork
7908 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7909 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7912 if test "x$ac_cv_func_vfork_works" = xyes; then
7914 cat >>confdefs.h <<\_ACEOF
7915 #define HAVE_WORKING_VFORK 1
7916 _ACEOF
7918 else
7920 cat >>confdefs.h <<\_ACEOF
7921 #define vfork fork
7922 _ACEOF
7925 if test "x$ac_cv_func_fork_works" = xyes; then
7927 cat >>confdefs.h <<\_ACEOF
7928 #define HAVE_WORKING_FORK 1
7929 _ACEOF
7936 am_cv_lib_iconv_ldpath=
7938 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7939 if test "${with_libiconv_prefix+set}" = set; then
7940 withval="$with_libiconv_prefix"
7942 for dir in `echo "$withval" | tr : ' '`; do
7943 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7944 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7945 done
7950 for ac_header in iconv.h
7952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7953 echo "$as_me:$LINENO: checking for $ac_header" >&5
7954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958 cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h. */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7964 #include <$ac_header>
7965 _ACEOF
7966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7968 ac_status=$?
7969 grep -v '^ *+' conftest.er1 >conftest.err
7970 rm -f conftest.er1
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } >/dev/null; then
7974 if test -s conftest.err; then
7975 ac_cpp_err=$ac_c_preproc_warn_flag
7976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7977 else
7978 ac_cpp_err=
7980 else
7981 ac_cpp_err=yes
7983 if test -z "$ac_cpp_err"; then
7984 eval "$as_ac_Header=yes"
7985 else
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 eval "$as_ac_Header=no"
7991 rm -f conftest.err conftest.$ac_ext
7993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7996 cat >>confdefs.h <<_ACEOF
7997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7998 _ACEOF
8001 done
8004 echo "$as_me:$LINENO: checking for iconv" >&5
8005 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8006 if test "${am_cv_func_iconv+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8010 am_cv_func_iconv="no, consider installing GNU libiconv"
8011 am_cv_lib_iconv=no
8012 cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h. */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 #include <stdlib.h>
8019 #include <iconv.h>
8021 main ()
8023 iconv_t cd = iconv_open("","");
8024 iconv(cd,NULL,NULL,NULL,NULL);
8025 iconv_close(cd);
8027 return 0;
8029 _ACEOF
8030 rm -f conftest.$ac_objext conftest$ac_exeext
8031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8032 (eval $ac_link) 2>conftest.er1
8033 ac_status=$?
8034 grep -v '^ *+' conftest.er1 >conftest.err
8035 rm -f conftest.er1
8036 cat conftest.err >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } &&
8039 { ac_try='test -z "$ac_c_werror_flag"
8040 || test ! -s conftest.err'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 (eval $ac_try) 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; } &&
8046 { ac_try='test -s conftest$ac_exeext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 (eval $ac_try) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8052 am_cv_func_iconv=yes
8053 else
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8058 rm -f conftest.err conftest.$ac_objext \
8059 conftest$ac_exeext conftest.$ac_ext
8060 if test "$am_cv_func_iconv" != yes; then
8061 am_save_LIBS="$LIBS"
8062 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8063 cat >conftest.$ac_ext <<_ACEOF
8064 /* confdefs.h. */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8069 #include <stdlib.h>
8070 #include <iconv.h>
8072 main ()
8074 iconv_t cd = iconv_open("","");
8075 iconv(cd,NULL,NULL,NULL,NULL);
8076 iconv_close(cd);
8078 return 0;
8080 _ACEOF
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083 (eval $ac_link) 2>conftest.er1
8084 ac_status=$?
8085 grep -v '^ *+' conftest.er1 >conftest.err
8086 rm -f conftest.er1
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } &&
8090 { ac_try='test -z "$ac_c_werror_flag"
8091 || test ! -s conftest.err'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 (eval $ac_try) 2>&5
8094 ac_status=$?
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; } &&
8097 { ac_try='test -s conftest$ac_exeext'
8098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 (eval $ac_try) 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; }; then
8103 am_cv_lib_iconv=yes
8104 am_cv_func_iconv=yes
8105 else
8106 echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8110 rm -f conftest.err conftest.$ac_objext \
8111 conftest$ac_exeext conftest.$ac_ext
8112 LIBS="$am_save_LIBS"
8116 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8117 echo "${ECHO_T}$am_cv_func_iconv" >&6
8118 if test "$am_cv_func_iconv" = yes; then
8120 cat >>confdefs.h <<\_ACEOF
8121 #define HAVE_ICONV 1
8122 _ACEOF
8124 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8125 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8126 if test "${am_cv_proto_iconv+set}" = set; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8130 cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h. */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8137 #include <stdlib.h>
8138 #include <iconv.h>
8139 extern
8140 #ifdef __cplusplus
8142 #endif
8143 #if defined(__STDC__) || defined(__cplusplus)
8144 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8145 #else
8146 size_t iconv();
8147 #endif
8150 main ()
8154 return 0;
8156 _ACEOF
8157 rm -f conftest.$ac_objext
8158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8159 (eval $ac_compile) 2>conftest.er1
8160 ac_status=$?
8161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -z "$ac_c_werror_flag"
8167 || test ! -s conftest.err'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169 (eval $ac_try) 2>&5
8170 ac_status=$?
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; } &&
8173 { ac_try='test -s conftest.$ac_objext'
8174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175 (eval $ac_try) 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
8179 am_cv_proto_iconv_arg1=""
8180 else
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 am_cv_proto_iconv_arg1="const"
8186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8187 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);"
8190 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8191 echo "$as_me:$LINENO: result: ${ac_t:-
8192 }$am_cv_proto_iconv" >&5
8193 echo "${ECHO_T}${ac_t:-
8194 }$am_cv_proto_iconv" >&6
8196 cat >>confdefs.h <<_ACEOF
8197 #define ICONV_CONST $am_cv_proto_iconv_arg1
8198 _ACEOF
8201 LIBICONV=
8202 if test "$am_cv_lib_iconv" = yes; then
8203 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8207 # Until we have in-tree GNU iconv:
8208 LIBICONV_DEP=
8212 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8213 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8214 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217 cat >conftest.$ac_ext <<_ACEOF
8218 /* confdefs.h. */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8223 #include <locale.h>
8225 main ()
8227 return LC_MESSAGES
8229 return 0;
8231 _ACEOF
8232 rm -f conftest.$ac_objext conftest$ac_exeext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8234 (eval $ac_link) 2>conftest.er1
8235 ac_status=$?
8236 grep -v '^ *+' conftest.er1 >conftest.err
8237 rm -f conftest.er1
8238 cat conftest.err >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try='test -z "$ac_c_werror_flag"
8242 || test ! -s conftest.err'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 (eval $ac_try) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; } &&
8248 { ac_try='test -s conftest$ac_exeext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 (eval $ac_try) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 am_cv_val_LC_MESSAGES=yes
8255 else
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8259 am_cv_val_LC_MESSAGES=no
8261 rm -f conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8264 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8265 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8266 if test $am_cv_val_LC_MESSAGES = yes; then
8268 cat >>confdefs.h <<\_ACEOF
8269 #define HAVE_LC_MESSAGES 1
8270 _ACEOF
8275 # We will need to find libiberty.h and ansidecl.h
8276 saved_CFLAGS="$CFLAGS"
8277 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8278 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8279 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8280 fprintf_unlocked strstr errno snprintf vasprintf \
8281 malloc realloc calloc free basename getopt clock
8283 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8284 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8285 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8286 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289 cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h. */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8295 #undef $ac_tr_decl
8296 #define $ac_tr_decl 1
8298 #include "ansidecl.h"
8299 #include "system.h"
8302 main ()
8304 #ifndef $ac_func
8305 char *(*pfn) = (char *(*)) $ac_func ;
8306 #endif
8308 return 0;
8310 _ACEOF
8311 rm -f conftest.$ac_objext
8312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8313 (eval $ac_compile) 2>conftest.er1
8314 ac_status=$?
8315 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } &&
8320 { ac_try='test -z "$ac_c_werror_flag"
8321 || test ! -s conftest.err'
8322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8323 (eval $ac_try) 2>&5
8324 ac_status=$?
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; } &&
8327 { ac_try='test -s conftest.$ac_objext'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
8333 eval "gcc_cv_have_decl_$ac_func=yes"
8334 else
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8338 eval "gcc_cv_have_decl_$ac_func=no"
8340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8343 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8344 echo "$as_me:$LINENO: result: yes" >&5
8345 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8346 #define $ac_tr_decl 1
8347 _ACEOF
8349 else
8350 echo "$as_me:$LINENO: result: no" >&5
8351 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8352 #define $ac_tr_decl 0
8353 _ACEOF
8357 done
8358 if test x = y ; then
8360 cat >>confdefs.h <<\_ACEOF
8361 #define HAVE_DECL_GETENV 1
8362 _ACEOF
8364 cat >>confdefs.h <<\_ACEOF
8365 #define HAVE_DECL_ATOL 1
8366 _ACEOF
8368 cat >>confdefs.h <<\_ACEOF
8369 #define HAVE_DECL_SBRK 1
8370 _ACEOF
8372 cat >>confdefs.h <<\_ACEOF
8373 #define HAVE_DECL_ABORT 1
8374 _ACEOF
8376 cat >>confdefs.h <<\_ACEOF
8377 #define HAVE_DECL_ATOF 1
8378 _ACEOF
8380 cat >>confdefs.h <<\_ACEOF
8381 #define HAVE_DECL_GETCWD 1
8382 _ACEOF
8384 cat >>confdefs.h <<\_ACEOF
8385 #define HAVE_DECL_GETWD 1
8386 _ACEOF
8389 cat >>confdefs.h <<\_ACEOF
8390 #define HAVE_DECL_STRSIGNAL 1
8391 _ACEOF
8393 cat >>confdefs.h <<\_ACEOF
8394 #define HAVE_DECL_PUTC_UNLOCKED 1
8395 _ACEOF
8397 cat >>confdefs.h <<\_ACEOF
8398 #define HAVE_DECL_FPUTS_UNLOCKED 1
8399 _ACEOF
8401 cat >>confdefs.h <<\_ACEOF
8402 #define HAVE_DECL_FWRITE_UNLOCKED 1
8403 _ACEOF
8406 cat >>confdefs.h <<\_ACEOF
8407 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8408 _ACEOF
8410 cat >>confdefs.h <<\_ACEOF
8411 #define HAVE_DECL_STRSTR 1
8412 _ACEOF
8414 cat >>confdefs.h <<\_ACEOF
8415 #define HAVE_DECL_ERRNO 1
8416 _ACEOF
8418 cat >>confdefs.h <<\_ACEOF
8419 #define HAVE_DECL_SNPRINTF 1
8420 _ACEOF
8422 cat >>confdefs.h <<\_ACEOF
8423 #define HAVE_DECL_VASPRINTF 1
8424 _ACEOF
8427 cat >>confdefs.h <<\_ACEOF
8428 #define HAVE_DECL_MALLOC 1
8429 _ACEOF
8431 cat >>confdefs.h <<\_ACEOF
8432 #define HAVE_DECL_REALLOC 1
8433 _ACEOF
8435 cat >>confdefs.h <<\_ACEOF
8436 #define HAVE_DECL_CALLOC 1
8437 _ACEOF
8439 cat >>confdefs.h <<\_ACEOF
8440 #define HAVE_DECL_FREE 1
8441 _ACEOF
8443 cat >>confdefs.h <<\_ACEOF
8444 #define HAVE_DECL_BASENAME 1
8445 _ACEOF
8447 cat >>confdefs.h <<\_ACEOF
8448 #define HAVE_DECL_GETOPT 1
8449 _ACEOF
8451 cat >>confdefs.h <<\_ACEOF
8452 #define HAVE_DECL_CLOCK 1
8453 _ACEOF
8457 for ac_func in getrlimit setrlimit getrusage
8459 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8460 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8461 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8462 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 else
8465 cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h. */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471 #undef $ac_tr_decl
8472 #define $ac_tr_decl 1
8474 #include "ansidecl.h"
8475 #include "system.h"
8476 #ifdef HAVE_SYS_RESOURCE_H
8477 #include <sys/resource.h>
8478 #endif
8482 main ()
8484 #ifndef $ac_func
8485 char *(*pfn) = (char *(*)) $ac_func ;
8486 #endif
8488 return 0;
8490 _ACEOF
8491 rm -f conftest.$ac_objext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493 (eval $ac_compile) 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -z "$ac_c_werror_flag"
8501 || test ! -s conftest.err'
8502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 (eval $ac_try) 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest.$ac_objext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 (eval $ac_try) 2>&5
8510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 eval "gcc_cv_have_decl_$ac_func=yes"
8514 else
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 eval "gcc_cv_have_decl_$ac_func=no"
8520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8523 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8524 echo "$as_me:$LINENO: result: yes" >&5
8525 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8526 #define $ac_tr_decl 1
8527 _ACEOF
8529 else
8530 echo "$as_me:$LINENO: result: no" >&5
8531 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8532 #define $ac_tr_decl 0
8533 _ACEOF
8537 done
8538 if test x = y ; then
8540 cat >>confdefs.h <<\_ACEOF
8541 #define HAVE_DECL_GETRLIMIT 1
8542 _ACEOF
8544 cat >>confdefs.h <<\_ACEOF
8545 #define HAVE_DECL_SETRLIMIT 1
8546 _ACEOF
8548 cat >>confdefs.h <<\_ACEOF
8549 #define HAVE_DECL_GETRUSAGE 1
8550 _ACEOF
8554 cat >conftest.$ac_ext <<_ACEOF
8555 /* confdefs.h. */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8561 #include "ansidecl.h"
8562 #include "system.h"
8563 #ifdef HAVE_SYS_RESOURCE_H
8564 #include <sys/resource.h>
8565 #endif
8568 main ()
8570 rlim_t l = 0;
8572 return 0;
8574 _ACEOF
8575 rm -f conftest.$ac_objext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8577 (eval $ac_compile) 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -z "$ac_c_werror_flag"
8585 || test ! -s conftest.err'
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 (eval $ac_try) 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest.$ac_objext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8598 else
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8603 cat >>confdefs.h <<\_ACEOF
8604 #define rlim_t long
8605 _ACEOF
8608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8610 for ac_func in ldgetname
8612 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8613 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8614 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8615 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 else
8618 cat >conftest.$ac_ext <<_ACEOF
8619 /* confdefs.h. */
8620 _ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8624 #undef $ac_tr_decl
8625 #define $ac_tr_decl 1
8627 #include "ansidecl.h"
8628 #include "system.h"
8629 #ifdef HAVE_LDFCN_H
8630 #include <ldfcn.h>
8631 #endif
8635 main ()
8637 #ifndef $ac_func
8638 char *(*pfn) = (char *(*)) $ac_func ;
8639 #endif
8641 return 0;
8643 _ACEOF
8644 rm -f conftest.$ac_objext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8646 (eval $ac_compile) 2>conftest.er1
8647 ac_status=$?
8648 grep -v '^ *+' conftest.er1 >conftest.err
8649 rm -f conftest.er1
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag"
8654 || test ! -s conftest.err'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; } &&
8660 { ac_try='test -s conftest.$ac_objext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 eval "gcc_cv_have_decl_$ac_func=yes"
8667 else
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8671 eval "gcc_cv_have_decl_$ac_func=no"
8673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8676 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8677 echo "$as_me:$LINENO: result: yes" >&5
8678 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8679 #define $ac_tr_decl 1
8680 _ACEOF
8682 else
8683 echo "$as_me:$LINENO: result: no" >&5
8684 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8685 #define $ac_tr_decl 0
8686 _ACEOF
8690 done
8691 if test x = y ; then
8693 cat >>confdefs.h <<\_ACEOF
8694 #define HAVE_DECL_LDGETNAME 1
8695 _ACEOF
8699 for ac_func in times
8701 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8702 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8703 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8704 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707 cat >conftest.$ac_ext <<_ACEOF
8708 /* confdefs.h. */
8709 _ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8713 #undef $ac_tr_decl
8714 #define $ac_tr_decl 1
8716 #include "ansidecl.h"
8717 #include "system.h"
8718 #ifdef HAVE_SYS_TIMES_H
8719 #include <sys/times.h>
8720 #endif
8724 main ()
8726 #ifndef $ac_func
8727 char *(*pfn) = (char *(*)) $ac_func ;
8728 #endif
8730 return 0;
8732 _ACEOF
8733 rm -f conftest.$ac_objext
8734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8735 (eval $ac_compile) 2>conftest.er1
8736 ac_status=$?
8737 grep -v '^ *+' conftest.er1 >conftest.err
8738 rm -f conftest.er1
8739 cat conftest.err >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } &&
8742 { ac_try='test -z "$ac_c_werror_flag"
8743 || test ! -s conftest.err'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 (eval $ac_try) 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; } &&
8749 { ac_try='test -s conftest.$ac_objext'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751 (eval $ac_try) 2>&5
8752 ac_status=$?
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
8755 eval "gcc_cv_have_decl_$ac_func=yes"
8756 else
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8760 eval "gcc_cv_have_decl_$ac_func=no"
8762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8765 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8766 echo "$as_me:$LINENO: result: yes" >&5
8767 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8768 #define $ac_tr_decl 1
8769 _ACEOF
8771 else
8772 echo "$as_me:$LINENO: result: no" >&5
8773 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8774 #define $ac_tr_decl 0
8775 _ACEOF
8779 done
8780 if test x = y ; then
8782 cat >>confdefs.h <<\_ACEOF
8783 #define HAVE_DECL_TIMES 1
8784 _ACEOF
8788 # More time-related stuff.
8789 echo "$as_me:$LINENO: checking for struct tms" >&5
8790 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8791 if test "${ac_cv_struct_tms+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h. */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8802 #include "ansidecl.h"
8803 #include "system.h"
8804 #ifdef HAVE_SYS_TIMES_H
8805 #include <sys/times.h>
8806 #endif
8809 main ()
8811 struct tms tms;
8813 return 0;
8815 _ACEOF
8816 rm -f conftest.$ac_objext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8818 (eval $ac_compile) 2>conftest.er1
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
8825 { ac_try='test -z "$ac_c_werror_flag"
8826 || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try='test -s conftest.$ac_objext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 ac_cv_struct_tms=yes
8839 else
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8843 ac_cv_struct_tms=no
8845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8847 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8848 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8849 if test $ac_cv_struct_tms = yes; then
8851 cat >>confdefs.h <<\_ACEOF
8852 #define HAVE_STRUCT_TMS 1
8853 _ACEOF
8857 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8858 # revisit after autoconf 2.50.
8859 echo "$as_me:$LINENO: checking for clock_t" >&5
8860 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8861 if test "${gcc_cv_type_clock_t+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8865 cat >conftest.$ac_ext <<_ACEOF
8866 /* confdefs.h. */
8867 _ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8872 #include "ansidecl.h"
8873 #include "system.h"
8876 main ()
8878 clock_t x;
8880 return 0;
8882 _ACEOF
8883 rm -f conftest.$ac_objext
8884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8885 (eval $ac_compile) 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try='test -z "$ac_c_werror_flag"
8893 || test ! -s conftest.err'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 (eval $ac_try) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; } &&
8899 { ac_try='test -s conftest.$ac_objext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 gcc_cv_type_clock_t=yes
8906 else
8907 echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8910 gcc_cv_type_clock_t=no
8912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8914 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8915 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8916 if test $gcc_cv_type_clock_t = yes; then
8918 cat >>confdefs.h <<\_ACEOF
8919 #define HAVE_CLOCK_T 1
8920 _ACEOF
8924 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8925 CFLAGS="$saved_CFLAGS"
8927 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8928 if test "${enable_initfini_array+set}" = set; then
8929 enableval="$enable_initfini_array"
8931 else
8933 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8934 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8935 if test "${gcc_cv_initfini_array+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938 if test "$cross_compiling" = yes; then
8939 gcc_cv_initfini_array=no
8940 else
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8948 static int x = -1;
8949 int main (void) { return x; }
8950 int foo (void) { x = 0; }
8951 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8952 _ACEOF
8953 rm -f conftest$ac_exeext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955 (eval $ac_link) 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 (eval $ac_try) 2>&5
8961 ac_status=$?
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 gcc_cv_initfini_array=yes
8965 else
8966 echo "$as_me: program exited with status $ac_status" >&5
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8970 ( exit $ac_status )
8971 gcc_cv_initfini_array=no
8973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8976 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8977 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8978 enable_initfini_array=$gcc_cv_initfini_array
8981 if test $enable_initfini_array = yes; then
8983 cat >>confdefs.h <<\_ACEOF
8984 #define HAVE_INITFINI_ARRAY 1
8985 _ACEOF
8989 # mkdir takes a single argument on some systems.
8990 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8991 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8992 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8995 cat >conftest.$ac_ext <<_ACEOF
8996 /* confdefs.h. */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9002 #include <sys/types.h>
9003 #ifdef HAVE_SYS_STAT_H
9004 # include <sys/stat.h>
9005 #endif
9006 #ifdef HAVE_UNISTD_H
9007 # include <unistd.h>
9008 #endif
9009 #ifdef HAVE_DIRECT_H
9010 # include <direct.h>
9011 #endif
9013 main ()
9015 mkdir ("foo", 0);
9017 return 0;
9019 _ACEOF
9020 rm -f conftest.$ac_objext
9021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9022 (eval $ac_compile) 2>conftest.er1
9023 ac_status=$?
9024 grep -v '^ *+' conftest.er1 >conftest.err
9025 rm -f conftest.er1
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try='test -z "$ac_c_werror_flag"
9030 || test ! -s conftest.err'
9031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032 (eval $ac_try) 2>&5
9033 ac_status=$?
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); }; } &&
9036 { ac_try='test -s conftest.$ac_objext'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 (eval $ac_try) 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; }; then
9042 gcc_cv_mkdir_takes_one_arg=no
9043 else
9044 echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9047 gcc_cv_mkdir_takes_one_arg=yes
9049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9051 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9052 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9053 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9055 cat >>confdefs.h <<\_ACEOF
9056 #define MKDIR_TAKES_ONE_ARG 1
9057 _ACEOF
9062 # File extensions
9063 manext='.1'
9064 objext='.o'
9068 # With Setjmp/Longjmp based exception handling.
9069 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9070 if test "${enable_sjlj_exceptions+set}" = set; then
9071 enableval="$enable_sjlj_exceptions"
9072 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9074 cat >>confdefs.h <<_ACEOF
9075 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9076 _ACEOF
9080 if test x$host = x$target; then
9081 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9082 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9083 if test "${ac_cv_lib_unwind_main+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 else
9086 ac_check_lib_save_LIBS=$LIBS
9087 LIBS="-lunwind $LIBS"
9088 cat >conftest.$ac_ext <<_ACEOF
9089 /* confdefs.h. */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9097 main ()
9099 main ();
9101 return 0;
9103 _ACEOF
9104 rm -f conftest.$ac_objext conftest$ac_exeext
9105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9106 (eval $ac_link) 2>conftest.er1
9107 ac_status=$?
9108 grep -v '^ *+' conftest.er1 >conftest.err
9109 rm -f conftest.er1
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -z "$ac_c_werror_flag"
9114 || test ! -s conftest.err'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; } &&
9120 { ac_try='test -s conftest$ac_exeext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 ac_cv_lib_unwind_main=yes
9127 else
9128 echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9131 ac_cv_lib_unwind_main=no
9133 rm -f conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9135 LIBS=$ac_check_lib_save_LIBS
9137 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9138 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9139 if test $ac_cv_lib_unwind_main = yes; then
9140 use_libunwind_default=yes
9141 else
9142 use_libunwind_default=no
9145 else
9146 use_libunwind_default=no
9148 # Use libunwind based exception handling.
9149 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9150 if test "${enable_libunwind_exceptions+set}" = set; then
9151 enableval="$enable_libunwind_exceptions"
9152 use_libunwind_exceptions=$enableval
9153 else
9154 use_libunwind_exceptions=$use_libunwind_default
9156 if test x"$use_libunwind_exceptions" = xyes; then
9158 cat >>confdefs.h <<\_ACEOF
9159 #define USE_LIBUNWIND_EXCEPTIONS 1
9160 _ACEOF
9164 # --------------------------------------------------------
9165 # Build, host, and target specific configuration fragments
9166 # --------------------------------------------------------
9168 # Collect build-machine-specific information.
9169 . ${srcdir}/config.build
9171 # Collect host-machine-specific information.
9172 . ${srcdir}/config.host
9174 target_gtfiles=
9176 # Collect target-machine-specific information.
9177 . ${srcdir}/config.gcc
9179 extra_objs="${host_extra_objs} ${extra_objs}"
9180 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9182 # Default the target-machine variables that were not explicitly set.
9183 if test x"$tm_file" = x
9184 then tm_file=$cpu_type/$cpu_type.h; fi
9186 if test x"$extra_headers" = x
9187 then extra_headers=; fi
9189 if test x$md_file = x
9190 then md_file=$cpu_type/$cpu_type.md; fi
9192 if test x$out_file = x
9193 then out_file=$cpu_type/$cpu_type.c; fi
9195 if test x"$tmake_file" = x
9196 then tmake_file=$cpu_type/t-$cpu_type
9199 if test x"$dwarf2" = xyes
9200 then tm_file="$tm_file tm-dwarf2.h"
9203 # Say what files are being used for the output code and MD file.
9204 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9205 echo "Using \`$srcdir/config/$md_file' as machine description file."
9207 # If any of the xm_file variables contain nonexistent files, warn
9208 # about them and drop them.
9211 for x in $build_xm_file; do
9212 if test -f $srcdir/config/$x
9213 then bx="$bx $x"
9214 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9215 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9217 done
9218 build_xm_file="$bx"
9221 for x in $host_xm_file; do
9222 if test -f $srcdir/config/$x
9223 then hx="$hx $x"
9224 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9225 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9227 done
9228 host_xm_file="$hx"
9231 for x in $xm_file; do
9232 if test -f $srcdir/config/$x
9233 then tx="$tx $x"
9234 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9235 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9237 done
9238 xm_file="$tx"
9240 count=a
9241 for f in $tm_file; do
9242 count=${count}x
9243 done
9244 if test $count = ax; then
9245 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9246 else
9247 echo "Using the following target machine macro files:"
9248 for f in $tm_file; do
9249 echo " $srcdir/config/$f"
9250 done
9253 if test x$need_64bit_hwint = xyes; then
9255 cat >>confdefs.h <<\_ACEOF
9256 #define NEED_64BIT_HOST_WIDE_INT 1
9257 _ACEOF
9261 count=a
9262 for f in $host_xm_file; do
9263 count=${count}x
9264 done
9265 if test $count = a; then
9267 elif test $count = ax; then
9268 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9269 else
9270 echo "Using the following host machine macro files:"
9271 for f in $host_xm_file; do
9272 echo " $srcdir/config/$f"
9273 done
9275 echo "Using ${out_host_hook_obj} for host machine hooks."
9277 if test "$host_xm_file" != "$build_xm_file"; then
9278 count=a
9279 for f in $build_xm_file; do
9280 count=${count}x
9281 done
9282 if test $count = a; then
9284 elif test $count = ax; then
9285 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9286 else
9287 echo "Using the following build machine macro files:"
9288 for f in $build_xm_file; do
9289 echo " $srcdir/config/$f"
9290 done
9294 # ---------
9295 # Threading
9296 # ---------
9298 # Check if a valid thread package
9299 case ${enable_threads} in
9300 "" | no)
9301 # No threads
9302 target_thread_file='single'
9304 yes)
9305 # default
9306 target_thread_file='single'
9308 aix | dce | gnat | irix | posix | rtems | \
9309 single | solaris | vxworks | win32 )
9310 target_thread_file=${enable_threads}
9313 echo "${enable_threads} is an unknown thread package" 1>&2
9314 exit 1
9316 esac
9318 if test x${thread_file} = x; then
9319 # No thread file set by target-specific clauses in config.gcc,
9320 # so use file chosen by default logic above
9321 thread_file=${target_thread_file}
9324 # Make gthr-default.h if we have a thread file.
9325 gthread_flags=
9326 if test $thread_file != single; then
9327 rm -f gthr-default.h
9328 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9329 gthread_flags=-DHAVE_GTHR_DEFAULT
9333 # --------
9334 # UNSORTED
9335 # --------
9337 if test x$enable___cxa_atexit = xyes || \
9338 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9339 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9340 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9341 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 else
9344 cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h. */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9352 #define __cxa_atexit innocuous___cxa_atexit
9354 /* System header to define __stub macros and hopefully few prototypes,
9355 which can conflict with char __cxa_atexit (); below.
9356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9357 <limits.h> exists even on freestanding compilers. */
9359 #ifdef __STDC__
9360 # include <limits.h>
9361 #else
9362 # include <assert.h>
9363 #endif
9365 #undef __cxa_atexit
9367 /* Override any gcc2 internal prototype to avoid an error. */
9368 #ifdef __cplusplus
9369 extern "C"
9371 #endif
9372 /* We use char because int might match the return type of a gcc2
9373 builtin and then its argument prototype would still apply. */
9374 char __cxa_atexit ();
9375 /* The GNU C library defines this for functions which it implements
9376 to always fail with ENOSYS. Some functions are actually named
9377 something starting with __ and the normal name is an alias. */
9378 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9379 choke me
9380 #else
9381 char (*f) () = __cxa_atexit;
9382 #endif
9383 #ifdef __cplusplus
9385 #endif
9388 main ()
9390 return f != __cxa_atexit;
9392 return 0;
9394 _ACEOF
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9397 (eval $ac_link) 2>conftest.er1
9398 ac_status=$?
9399 grep -v '^ *+' conftest.er1 >conftest.err
9400 rm -f conftest.er1
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try='test -z "$ac_c_werror_flag"
9405 || test ! -s conftest.err'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 (eval $ac_try) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; } &&
9411 { ac_try='test -s conftest$ac_exeext'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 (eval $ac_try) 2>&5
9414 ac_status=$?
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
9417 ac_cv_func___cxa_atexit=yes
9418 else
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9422 ac_cv_func___cxa_atexit=no
9424 rm -f conftest.err conftest.$ac_objext \
9425 conftest$ac_exeext conftest.$ac_ext
9427 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9428 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9429 if test $ac_cv_func___cxa_atexit = yes; then
9431 cat >>confdefs.h <<\_ACEOF
9432 #define DEFAULT_USE_CXA_ATEXIT 1
9433 _ACEOF
9435 else
9436 echo "__cxa_atexit can't be enabled on this target"
9441 # Look for a file containing extra machine modes.
9442 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9443 extra_modes_file='$(srcdir)'/config/${extra_modes}
9446 cat >>confdefs.h <<_ACEOF
9447 #define EXTRA_MODES_FILE "config/$extra_modes"
9448 _ACEOF
9452 # auto-host.h is the file containing items generated by autoconf and is
9453 # the first file included by config.h.
9454 # If host=build, it is correct to have bconfig include auto-host.h
9455 # as well. If host!=build, we are in error and need to do more
9456 # work to find out the build config parameters.
9457 if test x$host = x$build
9458 then
9459 build_auto=auto-host.h
9460 FORBUILD=..
9461 else
9462 # We create a subdir, then run autoconf in the subdir.
9463 # To prevent recursion we set host and build for the new
9464 # invocation of configure to the build for this invocation
9465 # of configure.
9466 tempdir=build.$$
9467 rm -rf $tempdir
9468 mkdir $tempdir
9469 cd $tempdir
9470 case ${srcdir} in
9471 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9472 *) realsrcdir=../${srcdir};;
9473 esac
9474 saved_CFLAGS="${CFLAGS}"
9475 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9476 ${realsrcdir}/configure \
9477 --enable-languages=${enable_languages-all} \
9478 --target=$target_alias --host=$build_alias --build=$build_alias
9479 CFLAGS="${saved_CFLAGS}"
9481 # We just finished tests for the build machine, so rename
9482 # the file auto-build.h in the gcc directory.
9483 mv auto-host.h ../auto-build.h
9484 cd ..
9485 rm -rf $tempdir
9486 build_auto=auto-build.h
9487 FORBUILD=../${build_subdir}
9491 tm_file="${tm_file} defaults.h"
9492 tm_p_file="${tm_p_file} tm-preds.h"
9493 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9494 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9495 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9496 # put this back in temporarily.
9497 xm_file="ansidecl.h ${xm_file}"
9499 # --------
9500 # UNSORTED
9501 # --------
9503 # Get the version trigger filename from the toplevel
9504 if test "${with_gcc_version_trigger+set}" = set; then
9505 gcc_version_trigger=$with_gcc_version_trigger
9506 else
9507 gcc_version_trigger=${srcdir}/version.c
9509 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9510 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9512 # Compile in configure arguments.
9513 if test -f configargs.h ; then
9514 # Being re-configured.
9515 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9516 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9517 else
9518 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9521 # Double all backslashes and backslash all quotes to turn
9522 # gcc_config_arguments into a C string.
9523 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9524 $gcc_config_arguments
9526 gcc_config_arguments_str=`cat conftest.out`
9527 rm -f conftest.out
9529 cat > configargs.h <<EOF
9530 /* Generated automatically. */
9531 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9532 static const char thread_model[] = "$thread_file";
9534 static const struct {
9535 const char *name, *value;
9536 } configure_default_options[] = $configure_default_options;
9539 # Internationalization
9540 PACKAGE=gcc
9541 VERSION="$gcc_version"
9545 # If we haven't got the data from the intl directory,
9546 # assume NLS is disabled.
9547 USE_NLS=no
9548 LIBINTL=
9549 LIBINTL_DEP=
9550 INCINTL=
9551 XGETTEXT=
9552 GMSGFMT=
9553 POSUB=
9554 if test -f ../intl/config.intl; then
9555 . ../intl/config.intl
9557 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9558 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9559 if test x"$USE_NLS" != xyes; then
9560 echo "$as_me:$LINENO: result: no" >&5
9561 echo "${ECHO_T}no" >&6
9562 else
9563 echo "$as_me:$LINENO: result: yes" >&5
9564 echo "${ECHO_T}yes" >&6
9566 cat >>confdefs.h <<\_ACEOF
9567 #define ENABLE_NLS 1
9568 _ACEOF
9571 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9572 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9573 # Look for .po and .gmo files in the source directory.
9574 CATALOGS=
9575 XLINGUAS=
9576 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9577 # If there aren't any .gmo files the shell will give us the
9578 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9579 # weeded out.
9580 case "$cat" in *\**)
9581 continue;;
9582 esac
9583 # The quadruple backslash is collapsed to a double backslash
9584 # by the backticks, then collapsed again by the double quotes,
9585 # leaving us with one backslash in the sed expression (right
9586 # before the dot that mustn't act as a wildcard).
9587 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9588 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9589 # The user is allowed to set LINGUAS to a list of languages to
9590 # install catalogs for. If it's empty that means "all of them."
9591 if test "x$LINGUAS" = x; then
9592 CATALOGS="$CATALOGS $cat"
9593 XLINGUAS="$XLINGUAS $lang"
9594 else
9595 case "$LINGUAS" in *$lang*)
9596 CATALOGS="$CATALOGS $cat"
9597 XLINGUAS="$XLINGUAS $lang"
9599 esac
9601 done
9602 LINGUAS="$XLINGUAS"
9603 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9604 echo "${ECHO_T}$LINGUAS" >&6
9607 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9608 # -liconv on the link line twice.
9609 case "$LIBINTL" in *$LIBICONV*)
9610 LIBICONV= ;;
9611 esac
9613 # Windows32 Registry support for specifying GCC installation paths.
9614 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9615 if test "${enable_win32_registry+set}" = set; then
9616 enableval="$enable_win32_registry"
9619 case $host_os in
9620 win32 | pe | cygwin* | mingw32* | uwin*)
9621 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9622 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9623 if test "x$enable_win32_registry" != xno; then
9625 cat >>confdefs.h <<\_ACEOF
9626 #define ENABLE_WIN32_REGISTRY 1
9627 _ACEOF
9629 echo "$as_me:$LINENO: result: yes" >&5
9630 echo "${ECHO_T}yes" >&6
9631 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9632 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9633 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9635 else
9636 ac_func_search_save_LIBS=$LIBS
9637 ac_cv_search_RegOpenKeyExA=no
9638 cat >conftest.$ac_ext <<_ACEOF
9639 /* confdefs.h. */
9640 _ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9645 /* Override any gcc2 internal prototype to avoid an error. */
9646 #ifdef __cplusplus
9647 extern "C"
9648 #endif
9649 /* We use char because int might match the return type of a gcc2
9650 builtin and then its argument prototype would still apply. */
9651 char RegOpenKeyExA ();
9653 main ()
9655 RegOpenKeyExA ();
9657 return 0;
9659 _ACEOF
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662 (eval $ac_link) 2>conftest.er1
9663 ac_status=$?
9664 grep -v '^ *+' conftest.er1 >conftest.err
9665 rm -f conftest.er1
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
9669 { ac_try='test -z "$ac_c_werror_flag"
9670 || test ! -s conftest.err'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 (eval $ac_try) 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest$ac_exeext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 ac_cv_search_RegOpenKeyExA="none required"
9683 else
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9688 rm -f conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9690 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9691 for ac_lib in advapi32; do
9692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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="-l$ac_lib"
9738 break
9739 else
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9744 rm -f conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
9746 done
9748 LIBS=$ac_func_search_save_LIBS
9750 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9751 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9752 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9753 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9757 else
9758 echo "$as_me:$LINENO: result: no" >&5
9759 echo "${ECHO_T}no" >&6
9762 # Check if user specified a different registry key.
9763 case "x${enable_win32_registry}" in
9764 x | xyes)
9765 # default.
9766 gcc_cv_win32_registry_key="$VERSION"
9768 xno)
9769 # no registry lookup.
9770 gcc_cv_win32_registry_key=''
9773 # user-specified key.
9774 gcc_cv_win32_registry_key="$enable_win32_registry"
9776 esac
9778 if test "x$enable_win32_registry" != xno; then
9779 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9780 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9782 cat >>confdefs.h <<_ACEOF
9783 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9784 _ACEOF
9786 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9787 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9790 esac
9792 # Get an absolute path to the GCC top-level source directory
9793 holddir=`${PWDCMD-pwd}`
9794 cd $srcdir
9795 topdir=`${PWDCMD-pwd}`
9796 cd $holddir
9798 # Conditionalize the makefile for this host machine.
9799 xmake_file=
9800 for f in ${host_xmake_file}
9802 if test -f ${srcdir}/config/$f
9803 then
9804 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9806 done
9808 # Conditionalize the makefile for this target machine.
9809 tmake_file_=
9810 for f in ${tmake_file}
9812 if test -f ${srcdir}/config/$f
9813 then
9814 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9816 done
9817 tmake_file="${tmake_file_}"
9819 symbolic_link='ln -s'
9821 # If the host doesn't support symlinks, modify CC in
9822 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9823 # Otherwise, we can use "CC=$(CC)".
9824 rm -f symtest.tem
9825 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9826 then
9827 cc_set_by_configure="\$(CC)"
9828 quoted_cc_set_by_configure="\$(CC)"
9829 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9830 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9831 else
9832 rm -f symtest.tem
9833 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9834 then
9835 symbolic_link="cp -p"
9836 else
9837 symbolic_link="cp"
9839 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9840 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9841 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9842 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9844 rm -f symtest.tem
9846 out_object_file=`basename $out_file .c`.o
9848 tm_file_list=
9849 tm_include_list=
9850 for f in $tm_file; do
9851 case $f in
9852 defaults.h )
9853 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9854 tm_include_list="${tm_include_list} $f"
9857 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9858 tm_include_list="${tm_include_list} config/$f"
9860 esac
9861 done
9863 tm_p_file_list=
9864 tm_p_include_list=
9865 for f in $tm_p_file; do
9866 case $f in
9867 tm-preds.h )
9868 tm_p_file_list="${tm_p_file_list} $f"
9869 tm_p_include_list="${tm_p_include_list} $f"
9872 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9873 tm_p_include_list="${tm_p_include_list} config/$f"
9874 esac
9875 done
9877 xm_file_list=
9878 xm_include_list=
9879 for f in $xm_file; do
9880 case $f in
9881 ansidecl.h )
9882 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9883 xm_include_list="${xm_include_list} $f"
9885 auto-host.h )
9886 xm_file_list="${xm_file_list} $f"
9887 xm_include_list="${xm_include_list} $f"
9890 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9891 xm_include_list="${xm_include_list} config/$f"
9893 esac
9894 done
9896 host_xm_file_list=
9897 host_xm_include_list=
9898 for f in $host_xm_file; do
9899 case $f in
9900 ansidecl.h )
9901 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9902 host_xm_include_list="${host_xm_include_list} $f"
9904 auto-host.h )
9905 host_xm_file_list="${host_xm_file_list} $f"
9906 host_xm_include_list="${host_xm_include_list} $f"
9909 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9910 host_xm_include_list="${host_xm_include_list} config/$f"
9912 esac
9913 done
9915 build_xm_file_list=
9916 for f in $build_xm_file; do
9917 case $f in
9918 ansidecl.h )
9919 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9920 build_xm_include_list="${build_xm_include_list} $f"
9922 auto-build.h | auto-host.h )
9923 build_xm_file_list="${build_xm_file_list} $f"
9924 build_xm_include_list="${build_xm_include_list} $f"
9927 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9928 build_xm_include_list="${build_xm_include_list} config/$f"
9930 esac
9931 done
9933 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9934 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9935 CROSS=
9936 ALL=all.internal
9937 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9938 if test x$host != x$target
9939 then
9940 CROSS="-DCROSS_COMPILE"
9941 ALL=all.cross
9942 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9943 case "$host","$target" in
9944 # Darwin crosses can use the host system's libraries and headers,
9945 # because of the fat library support. Of course, it must be the
9946 # same version of Darwin on both sides. Allow the user to
9947 # just say --target=foo-darwin without a version number to mean
9948 # "the version on this system".
9949 *-*-darwin*,*-*-darwin*)
9950 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9951 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9952 if test $hostos = $targetos -o $targetos = darwin ; then
9953 CROSS=
9954 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9955 with_headers=yes
9959 i?86-*-*,x86_64-*-* \
9960 | powerpc*-*-*,powerpc64*-*-*)
9961 CROSS="$CROSS -DNATIVE_CROSS" ;;
9962 esac
9963 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9964 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9965 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9968 # If this is a cross-compiler that does not
9969 # have its own set of headers then define
9970 # inhibit_libc
9972 # If this is using newlib, without having the headers available now,
9973 # then define inhibit_libc in LIBGCC2_CFLAGS.
9974 # This prevents libgcc2 from containing any code which requires libc
9975 # support.
9976 inhibit_libc=
9977 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9978 test x$with_newlib = xyes ; } &&
9979 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9980 inhibit_libc=-Dinhibit_libc
9984 # When building gcc with a cross-compiler, we need to adjust things so
9985 # that the generator programs are still built with the native compiler.
9986 # Also, we cannot run fixincludes or fix-header.
9988 # These are the normal (build=host) settings:
9989 BUILD_PREFIX=
9990 BUILD_PREFIX_1=ignore-
9991 CC_FOR_BUILD='$(CC)'
9992 BUILD_CFLAGS='$(ALL_CFLAGS)'
9994 STMP_FIXINC=stmp-fixinc
9996 # Possibly disable fixproto, on a per-target basis.
9997 case ${use_fixproto} in
9999 STMP_FIXPROTO=
10001 yes)
10002 STMP_FIXPROTO=stmp-fixproto
10004 esac
10007 # And these apply if build != host, or we are generating coverage data
10008 if test x$build != x$host || test "x$coverage_flags" != x
10009 then
10010 BUILD_PREFIX=build-
10011 BUILD_PREFIX_1=build-
10012 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10014 if test "x$TARGET_SYSTEM_ROOT" = x; then
10015 STMP_FIXINC=
10016 STMP_FIXPROTO=
10020 # Expand extra_headers to include complete path.
10021 # This substitutes for lots of t-* files.
10022 extra_headers_list=
10023 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10024 for file in ${extra_headers} ; do
10025 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10026 done
10028 # Define collect2 in Makefile.
10029 case $host_can_use_collect2 in
10030 no) collect2= ;;
10031 *) collect2='collect2$(exeext)' ;;
10032 esac
10035 # Add a definition of USE_COLLECT2 if system wants one.
10036 case $use_collect2 in
10037 no) use_collect2= ;;
10038 "") ;;
10040 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10041 xm_defines="${xm_defines} USE_COLLECT2"
10042 case $host_can_use_collect2 in
10044 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
10045 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
10046 { (exit 1); exit 1; }; }
10048 esac
10050 esac
10052 # ---------------------------
10053 # Assembler & linker features
10054 # ---------------------------
10056 # Identify the assembler which will work hand-in-glove with the newly
10057 # built GCC, so that we can examine its features. This is the assembler
10058 # which will be driven by the driver program.
10060 # If build != host, and we aren't building gas in-tree, we identify a
10061 # build->target assembler and hope that it will have the same features
10062 # as the host->target assembler we'll be using.
10063 echo "$as_me:$LINENO: checking what assembler to use" >&5
10064 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10065 in_tree_gas=no
10066 gcc_cv_as=
10067 gcc_cv_gas_major_version=
10068 gcc_cv_gas_minor_version=
10069 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10070 if test -x "$DEFAULT_ASSEMBLER"; then
10071 gcc_cv_as="$DEFAULT_ASSEMBLER"
10072 elif test -x as$host_exeext; then
10073 # Build using assembler in the current directory.
10074 gcc_cv_as=./as$host_exeext
10075 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10076 && test -f ../gas/Makefile \
10077 && test x$build = x$host; then
10078 # Single tree build which includes gas. We want to prefer it
10079 # over whatever linker top-level may have detected, since
10080 # we'll use what we're building after installation anyway.
10081 in_tree_gas=yes
10082 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10083 for f in $gcc_cv_as_bfd_srcdir/configure \
10084 $gcc_cv_as_gas_srcdir/configure \
10085 $gcc_cv_as_gas_srcdir/configure.in \
10086 $gcc_cv_as_gas_srcdir/Makefile.in ; do
10087 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10088 if test x$gcc_cv_gas_version != x; then
10089 break
10091 done
10092 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10093 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10094 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10095 case $gcc_cv_gas_patch_version in
10096 "") gcc_cv_gas_patch_version="0" ;;
10097 esac
10098 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10099 + $gcc_cv_gas_minor_version \) \* 1000 \
10100 + $gcc_cv_gas_patch_version`
10102 rm -f as$host_exeext
10103 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10104 in_tree_gas_is_elf=no
10105 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10106 || (grep 'obj_format = multi' ../gas/Makefile \
10107 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10108 then
10109 in_tree_gas_is_elf=yes
10111 elif test -x "$AS_FOR_TARGET"; then
10112 gcc_cv_as="$AS_FOR_TARGET"
10113 elif test -x "$AS" && test x$host = x$target; then
10114 gcc_cv_as="$AS"
10117 if test "x$gcc_cv_as" = x; then
10118 # Search the same directories that the installed compiler will
10119 # search. Else we may find the wrong assembler and lose. If we
10120 # do not find a suitable assembler binary, then try the user's
10121 # path.
10123 # Also note we have to check MD_EXEC_PREFIX before checking the
10124 # user's path. Unfortunately, there is no good way to get at the
10125 # value of MD_EXEC_PREFIX here. So we do a brute force search
10126 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10127 # to be fixed as part of the make/configure rewrite too.
10129 if test "x$exec_prefix" = xNONE; then
10130 if test "x$prefix" = xNONE; then
10131 test_prefix=/usr/local
10132 else
10133 test_prefix=$prefix
10135 else
10136 test_prefix=$exec_prefix
10139 # If the loop below does not find an assembler, then use whatever
10140 # one we can find in the users's path.
10141 # user's path.
10142 if test "x$program_prefix" != xNONE; then
10143 gcc_cv_as=${program_prefix}as$host_exeext
10144 else
10145 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10148 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10149 $test_prefix/libexec/gcc/$target_noncanonical \
10150 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10151 /usr/lib/gcc/$target_noncanonical \
10152 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10153 $test_prefix/$target_noncanonical/bin"
10155 if test x$host = x$target; then
10156 test_dirs="$test_dirs \
10157 /usr/libexec \
10158 /usr/ccs/gcc \
10159 /usr/ccs/bin \
10160 /udk/usr/ccs/bin \
10161 /bsd43/usr/lib/cmplrs/cc \
10162 /usr/cross64/usr/bin \
10163 /usr/lib/cmplrs/cc \
10164 /sysv/usr/lib/cmplrs/cc \
10165 /svr4/usr/lib/cmplrs/cc \
10166 /usr/bin"
10169 for dir in $test_dirs; do
10170 if test -x $dir/as$host_exeext; then
10171 gcc_cv_as=$dir/as$host_exeext
10172 break;
10174 done
10176 case $in_tree_gas in
10177 yes)
10178 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10179 echo "${ECHO_T}\"newly built gas\"" >&6
10182 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10183 echo "${ECHO_T}$gcc_cv_as" >&6
10185 esac
10187 # Identify the linker which will work hand-in-glove with the newly
10188 # built GCC, so that we can examine its features. This is the linker
10189 # which will be driven by the driver program.
10191 # If build != host, and we aren't building gas in-tree, we identify a
10192 # build->target linker and hope that it will have the same features
10193 # as the host->target linker we'll be using.
10194 echo "$as_me:$LINENO: checking what linker to use" >&5
10195 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10196 in_tree_ld=no
10197 gcc_cv_ld=
10198 gcc_cv_gld_major_version=
10199 gcc_cv_gld_minor_version=
10200 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10201 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10202 if test -x "$DEFAULT_LINKER"; then
10203 gcc_cv_ld="$DEFAULT_LINKER"
10204 elif test -x collect-ld$host_exeext; then
10205 # Build using linker in the current directory.
10206 gcc_cv_ld=./collect-ld$host_exeext
10207 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10208 && test -f ../ld/Makefile \
10209 && test x$build = x$host; then
10210 # Single tree build which includes ld. We want to prefer it
10211 # over whatever linker top-level may have detected, since
10212 # we'll use what we're building after installation anyway.
10213 in_tree_ld=yes
10214 in_tree_ld_is_elf=no
10215 if (grep 'EMUL = .*elf' ../ld/Makefile \
10216 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10217 in_tree_ld_is_elf=yes
10219 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
10221 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10222 if test x$gcc_cv_gld_version != x; then
10223 break
10225 done
10226 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10227 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10228 rm -f collect-ld$host_exeext
10229 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10230 2>/dev/null
10231 elif test -x "$LD_FOR_TARGET"; then
10232 gcc_cv_ld="$LD_FOR_TARGET"
10233 elif test -x "$LD" && test x$host = x$target; then
10234 gcc_cv_ld="$LD"
10237 if test "x$gcc_cv_ld" = x; then
10238 # Search the same directories that the installed compiler will
10239 # search. Else we may find the wrong linker and lose. If we
10240 # do not find a suitable linker binary, then try the user's
10241 # path.
10243 # Also note we have to check MD_EXEC_PREFIX before checking the
10244 # user's path. Unfortunately, there is no good way to get at the
10245 # value of MD_EXEC_PREFIX here. So we do a brute force search
10246 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10247 # to be fixed as part of the make/configure rewrite too.
10249 if test "x$exec_prefix" = xNONE; then
10250 if test "x$prefix" = xNONE; then
10251 test_prefix=/usr/local
10252 else
10253 test_prefix=$prefix
10255 else
10256 test_prefix=$exec_prefix
10259 # If the loop below does not find an linker, then use whatever
10260 # one we can find in the users's path.
10261 # user's path.
10262 if test "x$program_prefix" != xNONE; then
10263 gcc_cv_ld=${program_prefix}ld$host_exeext
10264 else
10265 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10268 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10269 $test_prefix/libexec/gcc/$target_noncanonical \
10270 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10271 /usr/lib/gcc/$target_noncanonical \
10272 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10273 $test_prefix/$target_noncanonical/bin"
10275 if test x$host = x$target; then
10276 test_dirs="$test_dirs \
10277 /usr/libexec \
10278 /usr/ccs/gcc \
10279 /usr/ccs/bin \
10280 /udk/usr/ccs/bin \
10281 /bsd43/usr/lib/cmplrs/cc \
10282 /usr/cross64/usr/bin \
10283 /usr/lib/cmplrs/cc \
10284 /sysv/usr/lib/cmplrs/cc \
10285 /svr4/usr/lib/cmplrs/cc \
10286 /usr/bin"
10289 for dir in $test_dirs; do
10290 if test -x $dir/ld$host_exeext; then
10291 gcc_cv_ld=$dir/ld$host_exeext
10292 break;
10294 done
10296 case $in_tree_ld in
10297 yes)
10298 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10299 echo "${ECHO_T}\"newly built ld\"" >&6
10302 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10303 echo "${ECHO_T}$gcc_cv_ld" >&6
10305 esac
10307 # Figure out what nm we will be using.
10308 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10309 echo "$as_me:$LINENO: checking what nm to use" >&5
10310 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10311 in_tree_nm=no
10312 if test -x nm$host_exeext; then
10313 gcc_cv_nm=./nm$host_exeext
10314 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10315 && test -f ../binutils/Makefile; then
10316 # Single tree build which includes binutils.
10317 in_tree_nm=yes
10318 gcc_cv_nm=./nm$host_exeext
10319 rm -f nm$host_exeext
10320 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10321 elif test "x$program_prefix" != xNONE; then
10322 gcc_cv_nm=${program_prefix}nm$host_exeext
10323 else
10324 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10326 case $in_tree_nm in
10327 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10328 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10329 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10330 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10331 esac
10333 # Figure out what objdump we will be using.
10334 echo "$as_me:$LINENO: checking what objdump to use" >&5
10335 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10336 in_tree_objdump=no
10337 if test -x objdump$host_exeext; then
10338 gcc_cv_objdump=./objdump$host_exeext
10339 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10340 && test -f ../binutils/Makefile; then
10341 # Single tree build which includes binutils.
10342 in_tree_objdump=yes
10343 gcc_cv_objdump=./objdump$host_exeext
10344 rm -f objdump$host_exeext
10345 $symbolic_link ../binutils/objdump$host_exeext \
10346 objdump$host_exeext 2>/dev/null
10347 elif test "x$program_prefix" != xNONE; then
10348 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10349 else
10350 gcc_cv_objdump=`echo objdump | \
10351 sed "${program_transform_name}"`$host_exeext
10353 case $in_tree_objdump in
10354 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10355 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10356 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10357 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10358 esac
10360 # Figure out what assembler alignment features are present.
10361 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10362 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10363 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366 gcc_cv_as_balign_and_p2align=no
10367 if test $in_tree_gas = yes; then
10368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10369 then gcc_cv_as_balign_and_p2align=yes
10371 elif test x$gcc_cv_as != x; then
10372 echo '.balign 4
10373 .p2align 2' > conftest.s
10374 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }
10380 then
10381 gcc_cv_as_balign_and_p2align=yes
10382 else
10383 echo "configure: failed program was" >&5
10384 cat conftest.s >&5
10386 rm -f conftest.o conftest.s
10389 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10390 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10391 if test $gcc_cv_as_balign_and_p2align = yes; then
10393 cat >>confdefs.h <<\_ACEOF
10394 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10395 _ACEOF
10399 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10400 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10401 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404 gcc_cv_as_max_skip_p2align=no
10405 if test $in_tree_gas = yes; then
10406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10407 then gcc_cv_as_max_skip_p2align=yes
10409 elif test x$gcc_cv_as != x; then
10410 echo '.p2align 4,,7' > conftest.s
10411 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }
10417 then
10418 gcc_cv_as_max_skip_p2align=yes
10419 else
10420 echo "configure: failed program was" >&5
10421 cat conftest.s >&5
10423 rm -f conftest.o conftest.s
10426 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10427 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10428 if test $gcc_cv_as_max_skip_p2align = yes; then
10430 cat >>confdefs.h <<\_ACEOF
10431 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10432 _ACEOF
10436 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10437 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10438 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10440 else
10441 gcc_cv_as_subsection_m1=no
10442 if test $in_tree_gas = yes; then
10443 if test $in_tree_gas_is_elf = yes \
10444 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10445 then gcc_cv_as_subsection_m1=yes
10447 elif test x$gcc_cv_as != x; then
10448 echo 'conftest_label1: .word 0
10449 .subsection -1
10450 conftest_label2: .word 0
10451 .previous' > conftest.s
10452 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; }
10458 then
10459 if test x$gcc_cv_nm != x; then
10460 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10461 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10462 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10463 then :
10464 else gcc_cv_as_subsection_m1=yes
10466 rm -f conftest.nm1 conftest.nm2
10468 else
10469 echo "configure: failed program was" >&5
10470 cat conftest.s >&5
10472 rm -f conftest.o conftest.s
10475 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10476 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10477 if test $gcc_cv_as_subsection_m1 = yes; then
10479 cat >>confdefs.h <<\_ACEOF
10480 #define HAVE_GAS_SUBSECTION_ORDERING 1
10481 _ACEOF
10485 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10486 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10487 if test "${gcc_cv_as_weak+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490 gcc_cv_as_weak=no
10491 if test $in_tree_gas = yes; then
10492 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10493 then gcc_cv_as_weak=yes
10495 elif test x$gcc_cv_as != x; then
10496 echo ' .weak foobar' > conftest.s
10497 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }
10503 then
10504 gcc_cv_as_weak=yes
10505 else
10506 echo "configure: failed program was" >&5
10507 cat conftest.s >&5
10509 rm -f conftest.o conftest.s
10512 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10513 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10514 if test $gcc_cv_as_weak = yes; then
10516 cat >>confdefs.h <<\_ACEOF
10517 #define HAVE_GAS_WEAK 1
10518 _ACEOF
10522 # .hidden needs to be supported in both the assembler and the linker,
10523 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10524 # This is irritatingly difficult to feature test for; we have to check the
10525 # date string after the version number. If we've got an in-tree
10526 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10527 # to be safe.
10528 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10529 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10530 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10531 if test "${gcc_cv_as_hidden+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10534 gcc_cv_as_hidden=no
10535 if test $in_tree_gas = yes; then
10536 if test $in_tree_gas_is_elf = yes \
10537 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10538 then gcc_cv_as_hidden=yes
10540 elif test x$gcc_cv_as != x; then
10541 echo ' .hidden foobar
10542 foobar:' > conftest.s
10543 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; }
10549 then
10550 gcc_cv_as_hidden=yes
10551 else
10552 echo "configure: failed program was" >&5
10553 cat conftest.s >&5
10555 rm -f conftest.o conftest.s
10558 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10559 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10562 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10563 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10564 if test "${gcc_cv_ld_hidden+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 else
10567 if test $in_tree_ld = yes ; then
10568 gcc_cv_ld_hidden=no
10569 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 \
10570 && test $in_tree_ld_is_elf = yes; then
10571 gcc_cv_ld_hidden=yes
10573 else
10574 gcc_cv_ld_hidden=yes
10575 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10576 if echo "$ld_ver" | grep GNU > /dev/null; then
10577 ld_vers=`echo $ld_ver | sed -n \
10578 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10579 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10580 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10581 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10582 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10583 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10584 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'`
10585 if test 0"$ld_date" -lt 20020404; then
10586 if test -n "$ld_date"; then
10587 # If there was date string, but was earlier than 2002-04-04, fail
10588 gcc_cv_ld_hidden=no
10589 elif test -z "$ld_vers"; then
10590 # If there was no date string nor ld version number, something is wrong
10591 gcc_cv_ld_hidden=no
10592 else
10593 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10594 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10595 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10596 test -z "$ld_vers_patch" && ld_vers_patch=0
10597 if test "$ld_vers_major" -lt 2; then
10598 gcc_cv_ld_hidden=no
10599 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10600 gcc_cv_ld_hidden="no"
10601 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10602 gcc_cv_ld_hidden=no
10606 else
10607 case "${target}" in
10608 hppa64*-*-hpux* | ia64*-*-hpux*)
10609 gcc_cv_ld_hidden=yes
10612 gcc_cv_ld_hidden=no
10614 esac
10618 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10619 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10620 libgcc_visibility=no
10622 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10623 libgcc_visibility=yes
10625 cat >>confdefs.h <<\_ACEOF
10626 #define HAVE_GAS_HIDDEN 1
10627 _ACEOF
10631 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10632 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10633 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10634 if test "${gcc_cv_as_leb128+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637 gcc_cv_as_leb128=no
10638 if test $in_tree_gas = yes; then
10639 if test $in_tree_gas_is_elf = yes \
10640 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10641 then gcc_cv_as_leb128=yes
10643 elif test x$gcc_cv_as != x; then
10644 echo ' .data
10645 .uleb128 L2 - L1
10647 .uleb128 1280
10648 .sleb128 -1010
10649 L2:' > conftest.s
10650 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }
10656 then
10657 # GAS versions before 2.11 do not support uleb128,
10658 # despite appearing to.
10659 # ??? There exists an elf-specific test that will crash
10660 # the assembler. Perhaps it's better to figure out whether
10661 # arbitrary sections are supported and try the test.
10662 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10663 if echo "$as_ver" | grep GNU > /dev/null; then
10664 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10665 as_major=`echo $as_ver | sed 's/\..*//'`
10666 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10667 if test $as_major -eq 2 && test $as_minor -lt 11
10668 then :
10669 else gcc_cv_as_leb128=yes
10672 else
10673 echo "configure: failed program was" >&5
10674 cat conftest.s >&5
10676 rm -f conftest.o conftest.s
10679 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10680 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10681 if test $gcc_cv_as_leb128 = yes; then
10683 cat >>confdefs.h <<\_ACEOF
10684 #define HAVE_AS_LEB128 1
10685 _ACEOF
10689 # GAS versions up to and including 2.11.0 may mis-optimize
10690 # .eh_frame data.
10691 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10692 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10693 if test "${gcc_cv_as_eh_frame+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10695 else
10696 gcc_cv_as_eh_frame=no
10697 if test $in_tree_gas = yes; then
10698 if test $in_tree_gas_is_elf = yes \
10699 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10700 then gcc_cv_as_eh_frame=yes
10702 elif test x$gcc_cv_as != x; then
10703 echo ' .text
10704 .LFB1:
10705 .4byte 0
10706 .L1:
10707 .4byte 0
10708 .LFE1:
10709 .section .eh_frame,"aw",@progbits
10710 __FRAME_BEGIN__:
10711 .4byte .LECIE1-.LSCIE1
10712 .LSCIE1:
10713 .4byte 0x0
10714 .byte 0x1
10715 .ascii "z\0"
10716 .byte 0x1
10717 .byte 0x78
10718 .byte 0x1a
10719 .byte 0x0
10720 .byte 0x4
10721 .4byte 1
10722 .p2align 1
10723 .LECIE1:
10724 .LSFDE1:
10725 .4byte .LEFDE1-.LASFDE1
10726 .LASFDE1:
10727 .4byte .LASFDE1-__FRAME_BEGIN__
10728 .4byte .LFB1
10729 .4byte .LFE1-.LFB1
10730 .byte 0x4
10731 .4byte .LFE1-.LFB1
10732 .byte 0x4
10733 .4byte .L1-.LFB1
10734 .LEFDE1:' > conftest.s
10735 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }
10741 then
10742 cat > conftest.lit <<EOF
10743 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10744 0010 01000000 12000000 18000000 00000000 ................
10745 0020 08000000 04080000 0044 .........D
10747 cat > conftest.big <<EOF
10748 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10749 0010 00000001 00000012 00000018 00000000 ................
10750 0020 00000008 04000000 0844 .........D
10752 # If the assembler didn't choke, and we can objdump,
10753 # and we got the correct data, then succeed.
10754 if test x$gcc_cv_objdump != x \
10755 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10756 | tail -3 > conftest.got \
10757 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10758 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10759 then
10760 gcc_cv_as_eh_frame=yes
10761 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 gcc_cv_as_eh_frame=buggy
10768 else
10769 # Uh oh, what do we do now?
10770 gcc_cv_as_eh_frame=no
10772 else
10773 echo "configure: failed program was" >&5
10774 cat conftest.s >&5
10776 rm -f conftest.o conftest.s
10779 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10780 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10783 if test $gcc_cv_as_eh_frame = buggy; then
10785 cat >>confdefs.h <<\_ACEOF
10786 #define USE_AS_TRADITIONAL_FORMAT 1
10787 _ACEOF
10791 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10792 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10793 if test "${gcc_cv_as_shf_merge+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796 gcc_cv_as_shf_merge=no
10797 if test $in_tree_gas = yes; then
10798 if test $in_tree_gas_is_elf = yes \
10799 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10800 then gcc_cv_as_shf_merge=yes
10802 elif test x$gcc_cv_as != x; then
10803 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10804 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }
10810 then
10811 gcc_cv_as_shf_merge=yes
10812 else
10813 echo "configure: failed program was" >&5
10814 cat conftest.s >&5
10816 rm -f conftest.o conftest.s
10819 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10820 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10823 cat >>confdefs.h <<_ACEOF
10824 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10825 _ACEOF
10828 # Thread-local storage - the check is heavily parametrized.
10829 conftest_s=
10830 tls_first_major=
10831 tls_first_minor=
10832 tls_as_opt=
10833 case "$target" in
10834 alpha*-*-*)
10835 conftest_s='
10836 .section ".tdata","awT",@progbits
10837 foo: .long 25
10838 .text
10839 ldq $27,__tls_get_addr($29) !literal!1
10840 lda $16,foo($29) !tlsgd!1
10841 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10842 ldq $27,__tls_get_addr($29) !literal!2
10843 lda $16,foo($29) !tlsldm!2
10844 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10845 ldq $1,foo($29) !gotdtprel
10846 ldah $2,foo($29) !dtprelhi
10847 lda $3,foo($2) !dtprello
10848 lda $4,foo($29) !dtprel
10849 ldq $1,foo($29) !gottprel
10850 ldah $2,foo($29) !tprelhi
10851 lda $3,foo($2) !tprello
10852 lda $4,foo($29) !tprel'
10853 tls_first_major=2
10854 tls_first_minor=13
10855 tls_as_opt=--fatal-warnings
10857 i[34567]86-*-*)
10858 conftest_s='
10859 .section ".tdata","awT",@progbits
10860 foo: .long 25
10861 .text
10862 movl %gs:0, %eax
10863 leal foo@TLSGD(,%ebx,1), %eax
10864 leal foo@TLSLDM(%ebx), %eax
10865 leal foo@DTPOFF(%eax), %edx
10866 movl foo@GOTTPOFF(%ebx), %eax
10867 subl foo@GOTTPOFF(%ebx), %eax
10868 addl foo@GOTNTPOFF(%ebx), %eax
10869 movl foo@INDNTPOFF, %eax
10870 movl $foo@TPOFF, %eax
10871 subl $foo@TPOFF, %eax
10872 leal foo@NTPOFF(%ecx), %eax'
10873 tls_first_major=2
10874 tls_first_minor=14
10875 tls_as_opt=--fatal-warnings
10877 x86_64-*-*)
10878 conftest_s='
10879 .section ".tdata","awT",@progbits
10880 foo: .long 25
10881 .text
10882 movq %fs:0, %rax
10883 leaq foo@TLSGD(%rip), %rdi
10884 leaq foo@TLSLD(%rip), %rdi
10885 leaq foo@DTPOFF(%rax), %rdx
10886 movq foo@GOTTPOFF(%rip), %rax
10887 movq $foo@TPOFF, %rax'
10888 tls_first_major=2
10889 tls_first_minor=14
10890 tls_as_opt=--fatal-warnings
10892 ia64-*-*)
10893 conftest_s='
10894 .section ".tdata","awT",@progbits
10895 foo: data8 25
10896 .text
10897 addl r16 = @ltoff(@dtpmod(foo#)), gp
10898 addl r17 = @ltoff(@dtprel(foo#)), gp
10899 addl r18 = @ltoff(@tprel(foo#)), gp
10900 addl r19 = @dtprel(foo#), gp
10901 adds r21 = @dtprel(foo#), r13
10902 movl r23 = @dtprel(foo#)
10903 addl r20 = @tprel(foo#), gp
10904 adds r22 = @tprel(foo#), r13
10905 movl r24 = @tprel(foo#)'
10906 tls_first_major=2
10907 tls_first_minor=13
10908 tls_as_opt=--fatal-warnings
10910 powerpc-*-*)
10911 conftest_s='
10912 .section ".tdata","awT",@progbits
10913 .align 2
10914 ld0: .space 4
10915 ld1: .space 4
10916 x1: .space 4
10917 x2: .space 4
10918 x3: .space 4
10919 .text
10920 addi 3,31,ld0@got@tlsgd
10921 bl __tls_get_addr
10922 addi 3,31,x1@got@tlsld
10923 bl __tls_get_addr
10924 addi 9,3,x1@dtprel
10925 addis 9,3,x2@dtprel@ha
10926 addi 9,9,x2@dtprel@l
10927 lwz 9,x3@got@tprel(31)
10928 add 9,9,x@tls
10929 addi 9,2,x1@tprel
10930 addis 9,2,x2@tprel@ha
10931 addi 9,9,x2@tprel@l'
10932 tls_first_major=2
10933 tls_first_minor=14
10934 tls_as_opt="-a32 --fatal-warnings"
10936 powerpc64-*-*)
10937 conftest_s='
10938 .section ".tdata","awT",@progbits
10939 .align 3
10940 ld0: .space 8
10941 ld1: .space 8
10942 x1: .space 8
10943 x2: .space 8
10944 x3: .space 8
10945 .text
10946 addi 3,2,ld0@got@tlsgd
10947 bl .__tls_get_addr
10949 addi 3,2,ld1@toc
10950 bl .__tls_get_addr
10952 addi 3,2,x1@got@tlsld
10953 bl .__tls_get_addr
10955 addi 9,3,x1@dtprel
10956 bl .__tls_get_addr
10958 addis 9,3,x2@dtprel@ha
10959 addi 9,9,x2@dtprel@l
10960 bl .__tls_get_addr
10962 ld 9,x3@got@dtprel(2)
10963 add 9,9,3
10964 bl .__tls_get_addr
10965 nop'
10966 tls_first_major=2
10967 tls_first_minor=14
10968 tls_as_opt="-a64 --fatal-warnings"
10970 s390-*-*)
10971 conftest_s='
10972 .section ".tdata","awT",@progbits
10973 foo: .long 25
10974 .text
10975 .long foo@TLSGD
10976 .long foo@TLSLDM
10977 .long foo@DTPOFF
10978 .long foo@NTPOFF
10979 .long foo@GOTNTPOFF
10980 .long foo@INDNTPOFF
10981 l %r1,foo@GOTNTPOFF(%r12)
10982 l %r1,0(%r1):tls_load:foo
10983 bas %r14,0(%r1,%r13):tls_gdcall:foo
10984 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10985 tls_first_major=2
10986 tls_first_minor=14
10987 tls_as_opt="-m31 --fatal-warnings"
10989 s390x-*-*)
10990 conftest_s='
10991 .section ".tdata","awT",@progbits
10992 foo: .long 25
10993 .text
10994 .quad foo@TLSGD
10995 .quad foo@TLSLDM
10996 .quad foo@DTPOFF
10997 .quad foo@NTPOFF
10998 .quad foo@GOTNTPOFF
10999 lg %r1,foo@GOTNTPOFF(%r12)
11000 larl %r1,foo@INDNTPOFF
11001 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
11002 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
11003 tls_first_major=2
11004 tls_first_minor=14
11005 tls_as_opt="-m64 -Aesame --fatal-warnings"
11007 sh-*-* | sh[34]-*-*)
11008 conftest_s='
11009 .section ".tdata","awT",@progbits
11010 foo: .long 25
11011 .text
11012 .long foo@TLSGD
11013 .long foo@TLSLDM
11014 .long foo@DTPOFF
11015 .long foo@GOTTPOFF
11016 .long foo@TPOFF'
11017 tls_first_major=2
11018 tls_first_minor=13
11019 tls_as_opt=--fatal-warnings
11021 sparc*-*-*)
11022 case "$target" in
11023 sparc*-sun-solaris2.*)
11024 on_solaris=yes
11027 on_solaris=no
11029 esac
11030 if test x$on_solaris = xyes && test x$gas_flag = xno; then
11031 conftest_s='
11032 .section ".tdata",#alloc,#write,#tls
11033 foo: .long 25
11034 .text
11035 sethi %tgd_hi22(foo), %o0
11036 add %o0, %tgd_lo10(foo), %o1
11037 add %l7, %o1, %o0, %tgd_add(foo)
11038 call __tls_get_addr, %tgd_call(foo)
11039 sethi %tldm_hi22(foo), %l1
11040 add %l1, %tldm_lo10(foo), %l2
11041 add %l7, %l2, %o0, %tldm_add(foo)
11042 call __tls_get_addr, %tldm_call(foo)
11043 sethi %tldo_hix22(foo), %l3
11044 xor %l3, %tldo_lox10(foo), %l4
11045 add %o0, %l4, %l5, %tldo_add(foo)
11046 sethi %tie_hi22(foo), %o3
11047 add %o3, %tie_lo10(foo), %o3
11048 ld [%l7 + %o3], %o2, %tie_ld(foo)
11049 add %g7, %o2, %o4, %tie_add(foo)
11050 sethi %tle_hix22(foo), %l1
11051 xor %l1, %tle_lox10(foo), %o5
11052 ld [%g7 + %o5], %o1'
11053 tls_first_major=0
11054 tls_first_minor=0
11055 else
11056 conftest_s='
11057 .section ".tdata","awT",@progbits
11058 foo: .long 25
11059 .text
11060 sethi %tgd_hi22(foo), %o0
11061 add %o0, %tgd_lo10(foo), %o1
11062 add %l7, %o1, %o0, %tgd_add(foo)
11063 call __tls_get_addr, %tgd_call(foo)
11064 sethi %tldm_hi22(foo), %l1
11065 add %l1, %tldm_lo10(foo), %l2
11066 add %l7, %l2, %o0, %tldm_add(foo)
11067 call __tls_get_addr, %tldm_call(foo)
11068 sethi %tldo_hix22(foo), %l3
11069 xor %l3, %tldo_lox10(foo), %l4
11070 add %o0, %l4, %l5, %tldo_add(foo)
11071 sethi %tie_hi22(foo), %o3
11072 add %o3, %tie_lo10(foo), %o3
11073 ld [%l7 + %o3], %o2, %tie_ld(foo)
11074 add %g7, %o2, %o4, %tie_add(foo)
11075 sethi %tle_hix22(foo), %l1
11076 xor %l1, %tle_lox10(foo), %o5
11077 ld [%g7 + %o5], %o1'
11078 tls_first_major=2
11079 tls_first_minor=14
11080 tls_as_opt="-32 --fatal-warnings"
11083 esac
11084 if test -z "$tls_first_major"; then
11085 : # If we don't have a check, assume no support.
11086 else
11087 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11088 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11089 if test "${gcc_cv_as_tls+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 else
11092 gcc_cv_as_tls=no
11093 if test $in_tree_gas = yes; then
11094 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11095 then gcc_cv_as_tls=yes
11097 elif test x$gcc_cv_as != x; then
11098 echo "$conftest_s" > conftest.s
11099 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; }
11105 then
11106 gcc_cv_as_tls=yes
11107 else
11108 echo "configure: failed program was" >&5
11109 cat conftest.s >&5
11111 rm -f conftest.o conftest.s
11114 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11115 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11116 if test $gcc_cv_as_tls = yes; then
11118 cat >>confdefs.h <<\_ACEOF
11119 #define HAVE_AS_TLS 1
11120 _ACEOF
11125 # Target-specific assembler checks.
11127 case "$target" in
11128 # All TARGET_ABI_OSF targets.
11129 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11130 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11131 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11132 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 else
11135 gcc_cv_as_alpha_explicit_relocs=no
11136 if test $in_tree_gas = yes; then
11137 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11138 then gcc_cv_as_alpha_explicit_relocs=yes
11140 elif test x$gcc_cv_as != x; then
11141 echo ' .set nomacro
11142 .text
11143 extbl $3, $2, $3 !lituse_bytoff!1
11144 ldq $2, a($29) !literal!1
11145 ldq $4, b($29) !literal!2
11146 ldq_u $3, 0($2) !lituse_base!1
11147 ldq $27, f($29) !literal!5
11148 jsr $26, ($27), f !lituse_jsr!5
11149 ldah $29, 0($26) !gpdisp!3
11150 lda $0, c($29) !gprel
11151 ldah $1, d($29) !gprelhigh
11152 lda $1, d($1) !gprellow
11153 lda $29, 0($29) !gpdisp!3' > conftest.s
11154 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; }
11160 then
11161 gcc_cv_as_alpha_explicit_relocs=yes
11162 else
11163 echo "configure: failed program was" >&5
11164 cat conftest.s >&5
11166 rm -f conftest.o conftest.s
11169 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11170 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11171 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11173 cat >>confdefs.h <<\_ACEOF
11174 #define HAVE_AS_EXPLICIT_RELOCS 1
11175 _ACEOF
11180 cris-*-*)
11181 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11182 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11183 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 gcc_cv_as_cris_no_mul_bug=no
11187 if test $in_tree_gas = yes; then
11188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11189 then gcc_cv_as_cris_no_mul_bug=yes
11191 elif test x$gcc_cv_as != x; then
11192 echo '.text' > conftest.s
11193 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }
11199 then
11200 gcc_cv_as_cris_no_mul_bug=yes
11201 else
11202 echo "configure: failed program was" >&5
11203 cat conftest.s >&5
11205 rm -f conftest.o conftest.s
11208 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11209 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11210 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11212 cat >>confdefs.h <<\_ACEOF
11213 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11214 _ACEOF
11219 sparc*-*-*)
11220 echo "$as_me:$LINENO: checking assembler for .register" >&5
11221 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11222 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 else
11225 gcc_cv_as_sparc_register_op=no
11226 if test x$gcc_cv_as != x; then
11227 echo '.register %g2, #scratch' > conftest.s
11228 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }
11234 then
11235 gcc_cv_as_sparc_register_op=yes
11236 else
11237 echo "configure: failed program was" >&5
11238 cat conftest.s >&5
11240 rm -f conftest.o conftest.s
11243 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11244 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11245 if test $gcc_cv_as_sparc_register_op = yes; then
11247 cat >>confdefs.h <<\_ACEOF
11248 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11249 _ACEOF
11253 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11254 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11255 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258 gcc_cv_as_sparc_relax=no
11259 if test x$gcc_cv_as != x; then
11260 echo '.text' > conftest.s
11261 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11264 ac_status=$?
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; }
11267 then
11268 gcc_cv_as_sparc_relax=yes
11269 else
11270 echo "configure: failed program was" >&5
11271 cat conftest.s >&5
11273 rm -f conftest.o conftest.s
11276 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11277 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11278 if test $gcc_cv_as_sparc_relax = yes; then
11280 cat >>confdefs.h <<\_ACEOF
11281 #define HAVE_AS_RELAX_OPTION 1
11282 _ACEOF
11286 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11287 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11288 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291 gcc_cv_as_sparc_ua_pcrel=no
11292 if test x$gcc_cv_as != x; then
11293 echo '.text
11294 foo:
11296 .data
11297 .align 4
11298 .byte 0
11299 .uaword %r_disp32(foo)' > conftest.s
11300 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; }
11306 then
11307 if test x$gcc_cv_ld != x \
11308 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11309 gcc_cv_as_sparc_ua_pcrel=yes
11311 rm -f conftest
11312 else
11313 echo "configure: failed program was" >&5
11314 cat conftest.s >&5
11316 rm -f conftest.o conftest.s
11319 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11320 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11321 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11323 cat >>confdefs.h <<\_ACEOF
11324 #define HAVE_AS_SPARC_UA_PCREL 1
11325 _ACEOF
11328 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11329 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11330 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333 gcc_cv_as_sparc_ua_pcrel_hidden=no
11334 if test x$gcc_cv_as != x; then
11335 echo '.data
11336 .align 4
11337 .byte 0x31
11338 .uaword %r_disp32(foo)
11339 .byte 0x32, 0x33, 0x34
11340 .global foo
11341 .hidden foo
11342 foo:
11343 .skip 4' > conftest.s
11344 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }
11350 then
11351 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11352 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11353 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11354 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11355 if $gcc_cv_objdump -R conftest 2> /dev/null \
11356 | grep 'DISP32' > /dev/null 2>&1; then
11358 else
11359 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11362 rm -f conftest
11363 else
11364 echo "configure: failed program was" >&5
11365 cat conftest.s >&5
11367 rm -f conftest.o conftest.s
11370 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11371 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11372 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11374 cat >>confdefs.h <<\_ACEOF
11375 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11376 _ACEOF
11380 fi # unaligned pcrel relocs
11382 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11383 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11384 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387 gcc_cv_as_sparc_offsetable_lo10=no
11388 if test x$gcc_cv_as != x; then
11389 echo '.text
11390 or %g1, %lo(ab) + 12, %g1
11391 or %g1, %lo(ab + 12), %g1' > conftest.s
11392 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394 (eval $ac_try) 2>&5
11395 ac_status=$?
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; }
11398 then
11399 if test x$gcc_cv_objdump != x \
11400 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11401 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11402 gcc_cv_as_offsetable_lo10=yes
11404 else
11405 echo "configure: failed program was" >&5
11406 cat conftest.s >&5
11408 rm -f conftest.o conftest.s
11411 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11412 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11413 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11415 cat >>confdefs.h <<\_ACEOF
11416 #define HAVE_AS_OFFSETABLE_LO10 1
11417 _ACEOF
11422 i[34567]86-*-* | x86_64-*-*)
11423 case $target_os in
11424 cygwin* | pe | mingw32*)
11425 # Used for DWARF 2 in PE
11426 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11427 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11428 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11431 gcc_cv_as_ix86_pe_secrel32=no
11432 if test $in_tree_gas = yes; then
11433 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11434 then gcc_cv_as_ix86_pe_secrel32=yes
11436 elif test x$gcc_cv_as != x; then
11437 echo '.text
11438 foo: nop
11439 .data
11440 .secrel32 foo' > conftest.s
11441 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; }
11447 then
11448 if test x$gcc_cv_ld != x \
11449 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
11450 gcc_cv_as_ix86_pe_secrel32=yes
11452 rm -f conftest
11453 else
11454 echo "configure: failed program was" >&5
11455 cat conftest.s >&5
11457 rm -f conftest.o conftest.s
11460 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11461 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11462 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11464 cat >>confdefs.h <<\_ACEOF
11465 #define HAVE_GAS_PE_SECREL32_RELOC 1
11466 _ACEOF
11470 esac
11472 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11473 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11474 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 else
11477 gcc_cv_as_ix86_filds_fists=no
11478 if test $in_tree_gas = yes; then
11479 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11480 then gcc_cv_as_ix86_filds_fists=yes
11482 elif test x$gcc_cv_as != x; then
11483 echo 'filds mem; fists mem' > conftest.s
11484 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }
11490 then
11491 gcc_cv_as_ix86_filds_fists=yes
11492 else
11493 echo "configure: failed program was" >&5
11494 cat conftest.s >&5
11496 rm -f conftest.o conftest.s
11499 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11500 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11501 if test $gcc_cv_as_ix86_filds_fists = yes; then
11503 cat >>confdefs.h <<\_ACEOF
11504 #define HAVE_GAS_FILDS_FISTS 1
11505 _ACEOF
11509 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11510 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11511 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 else
11514 gcc_cv_as_ix86_cmov_sun_syntax=no
11515 if test x$gcc_cv_as != x; then
11516 echo 'cmovl.l %edx, %eax' > conftest.s
11517 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519 (eval $ac_try) 2>&5
11520 ac_status=$?
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; }
11523 then
11524 gcc_cv_as_ix86_cmov_sun_syntax=yes
11525 else
11526 echo "configure: failed program was" >&5
11527 cat conftest.s >&5
11529 rm -f conftest.o conftest.s
11532 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11533 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11534 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11536 cat >>confdefs.h <<\_ACEOF
11537 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11538 _ACEOF
11542 # This one is used unconditionally by i386.[ch]; it is to be defined
11543 # to 1 if the feature is present, 0 otherwise.
11544 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11545 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11546 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 else
11549 gcc_cv_as_ix86_gotoff_in_data=no
11550 if test $in_tree_gas = yes; then
11551 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11552 then gcc_cv_as_ix86_gotoff_in_data=yes
11554 elif test x$gcc_cv_as != x; then
11555 echo ' .text
11556 .L0:
11558 .data
11559 .long .L0@GOTOFF' > conftest.s
11560 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }
11566 then
11567 gcc_cv_as_ix86_gotoff_in_data=yes
11568 else
11569 echo "configure: failed program was" >&5
11570 cat conftest.s >&5
11572 rm -f conftest.o conftest.s
11575 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11576 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11579 cat >>confdefs.h <<_ACEOF
11580 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11581 _ACEOF
11585 ia64*-*-*)
11586 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11587 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11588 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11590 else
11591 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11592 if test $in_tree_gas = yes; then
11593 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11594 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11596 elif test x$gcc_cv_as != x; then
11597 echo ' .text
11598 addl r15 = @ltoffx(x#), gp
11600 ld8.mov r16 = [r15], x#' > conftest.s
11601 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; }
11607 then
11608 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11609 else
11610 echo "configure: failed program was" >&5
11611 cat conftest.s >&5
11613 rm -f conftest.o conftest.s
11616 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11617 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11618 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11620 cat >>confdefs.h <<\_ACEOF
11621 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11622 _ACEOF
11628 powerpc*-*-*)
11629 case $target in
11630 *-*-aix*) conftest_s=' .csect .text[PR]
11631 mfcr 3,128';;
11632 *-*-darwin*) conftest_s=' .text
11633 mfcr r3,128';;
11634 *) conftest_s=' .text
11635 mfcr 3,128';;
11636 esac
11638 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11639 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11640 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 else
11643 gcc_cv_as_powerpc_mfcrf=no
11644 if test $in_tree_gas = yes; then
11645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11646 then gcc_cv_as_powerpc_mfcrf=yes
11648 elif test x$gcc_cv_as != x; then
11649 echo "$conftest_s" > conftest.s
11650 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }
11656 then
11657 gcc_cv_as_powerpc_mfcrf=yes
11658 else
11659 echo "configure: failed program was" >&5
11660 cat conftest.s >&5
11662 rm -f conftest.o conftest.s
11665 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11666 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11667 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11669 cat >>confdefs.h <<\_ACEOF
11670 #define HAVE_AS_MFCRF 1
11671 _ACEOF
11676 mips*-*-*)
11677 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11678 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11679 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682 gcc_cv_as_mips_explicit_relocs=no
11683 if test $in_tree_gas = yes; then
11684 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11685 then gcc_cv_as_mips_explicit_relocs=yes
11687 elif test x$gcc_cv_as != x; then
11688 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11689 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691 (eval $ac_try) 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; }
11695 then
11696 gcc_cv_as_mips_explicit_relocs=yes
11697 else
11698 echo "configure: failed program was" >&5
11699 cat conftest.s >&5
11701 rm -f conftest.o conftest.s
11704 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11705 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11706 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11707 if test x$target_cpu_default = x
11708 then target_cpu_default=MASK_EXPLICIT_RELOCS
11709 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11714 esac
11715 # ??? Not all targets support dwarf2 debug_line, even within a version
11716 # of gas. Moreover, we need to emit a valid instruction to trigger any
11717 # info to the output file. So, as supported targets are added to gas 2.11,
11718 # add some instruction here to (also) show we expect this might work.
11719 # ??? Once 2.11 is released, probably need to add first known working
11720 # version to the per-target configury.
11721 case "$target" in
11722 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11723 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11724 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11725 insn="nop"
11727 ia64*-*-* | s390*-*-*)
11728 insn="nop 0"
11730 mmix-*-*)
11731 insn="swym 0"
11733 esac
11734 if test x"$insn" != x; then
11735 conftest_s="\
11736 .file 1 \"conftest.s\"
11737 .loc 1 3 0
11738 $insn"
11739 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11740 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11741 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744 gcc_cv_as_dwarf2_debug_line=no
11745 if test $in_tree_gas = yes; then
11746 if test $in_tree_gas_is_elf = yes \
11747 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11748 then gcc_cv_as_dwarf2_debug_line=yes
11750 elif test x$gcc_cv_as != x; then
11751 echo "$conftest_s" > conftest.s
11752 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }
11758 then
11759 # ??? This fails with non-gnu grep. Maybe use objdump?
11760 if grep debug_line conftest.o > /dev/null 2>&1; then
11761 gcc_cv_as_dwarf2_debug_line=yes
11763 else
11764 echo "configure: failed program was" >&5
11765 cat conftest.s >&5
11767 rm -f conftest.o conftest.s
11770 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11771 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11774 # The .debug_line file table must be in the exact order that
11775 # we specified the files, since these indices are also used
11776 # by DW_AT_decl_file. Approximate this test by testing if
11777 # the assembler bitches if the same index is assigned twice.
11778 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11779 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11780 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 else
11783 gcc_cv_as_dwarf2_file_buggy=no
11784 if test x$gcc_cv_as != x; then
11785 echo ' .file 1 "foo.s"
11786 .file 1 "bar.s"' > conftest.s
11787 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }
11793 then
11794 gcc_cv_as_dwarf2_file_buggy=yes
11795 else
11796 echo "configure: failed program was" >&5
11797 cat conftest.s >&5
11799 rm -f conftest.o conftest.s
11802 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11803 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11806 if test $gcc_cv_as_dwarf2_debug_line = yes \
11807 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11809 cat >>confdefs.h <<\_ACEOF
11810 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11811 _ACEOF
11815 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11816 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11817 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 else
11820 gcc_cv_as_gdwarf2_flag=no
11821 if test $in_tree_gas = yes; then
11822 if test $in_tree_gas_is_elf = yes \
11823 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11824 then gcc_cv_as_gdwarf2_flag=yes
11826 elif test x$gcc_cv_as != x; then
11827 echo "$insn" > conftest.s
11828 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }
11834 then
11835 gcc_cv_as_gdwarf2_flag=yes
11836 else
11837 echo "configure: failed program was" >&5
11838 cat conftest.s >&5
11840 rm -f conftest.o conftest.s
11843 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11844 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11845 if test $gcc_cv_as_gdwarf2_flag = yes; then
11847 cat >>confdefs.h <<\_ACEOF
11848 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11849 _ACEOF
11853 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11854 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11855 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 else
11858 gcc_cv_as_gstabs_flag=no
11859 if test $in_tree_gas = yes; then
11860 if test $in_tree_gas_is_elf = yes \
11861 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11862 then gcc_cv_as_gstabs_flag=yes
11864 elif test x$gcc_cv_as != x; then
11865 echo "$insn" > conftest.s
11866 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868 (eval $ac_try) 2>&5
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; }
11872 then
11873 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11874 # and warns about it, but still exits successfully. So check for
11875 # this.
11876 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }
11882 then :
11883 else gcc_cv_as_gstabs_flag=yes
11885 else
11886 echo "configure: failed program was" >&5
11887 cat conftest.s >&5
11889 rm -f conftest.o conftest.s
11892 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11893 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11894 if test $gcc_cv_as_gstabs_flag = yes; then
11896 cat >>confdefs.h <<\_ACEOF
11897 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11898 _ACEOF
11903 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11904 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11905 gcc_cv_ld_ro_rw_mix=unknown
11906 if test $in_tree_ld = yes ; then
11907 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 \
11908 && test $in_tree_ld_is_elf = yes; then
11909 gcc_cv_ld_ro_rw_mix=read-write
11911 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11912 echo '.section myfoosect, "a"' > conftest1.s
11913 echo '.section myfoosect, "aw"' > conftest2.s
11914 echo '.byte 1' >> conftest2.s
11915 echo '.section myfoosect, "a"' > conftest3.s
11916 echo '.byte 0' >> conftest3.s
11917 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11918 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11919 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11920 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11921 conftest2.o conftest3.o > /dev/null 2>&1; then
11922 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11923 | sed -e '/myfoosect/!d' -e N`
11924 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11925 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11926 gcc_cv_ld_ro_rw_mix=read-only
11927 else
11928 gcc_cv_ld_ro_rw_mix=read-write
11932 rm -f conftest.* conftest[123].*
11934 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11936 cat >>confdefs.h <<\_ACEOF
11937 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11938 _ACEOF
11941 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11942 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11944 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11945 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11946 gcc_cv_ld_eh_frame_hdr=no
11947 if test $in_tree_ld = yes ; then
11948 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 \
11949 && test $in_tree_ld_is_elf = yes; then
11950 gcc_cv_ld_eh_frame_hdr=yes
11952 elif test x$gcc_cv_ld != x; then
11953 # Check if linker supports --eh-frame-hdr option
11954 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11955 gcc_cv_ld_eh_frame_hdr=yes
11958 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11960 cat >>confdefs.h <<\_ACEOF
11961 #define HAVE_LD_EH_FRAME_HDR 1
11962 _ACEOF
11965 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11966 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11968 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11969 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11970 gcc_cv_ld_pie=no
11971 if test $in_tree_ld = yes ; then
11972 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 \
11973 && test $in_tree_ld_is_elf = yes; then
11974 gcc_cv_ld_pie=yes
11976 elif test x$gcc_cv_ld != x; then
11977 # Check if linker supports -pie option
11978 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11979 gcc_cv_ld_pie=yes
11982 if test x"$gcc_cv_ld_pie" = xyes; then
11984 cat >>confdefs.h <<\_ACEOF
11985 #define HAVE_LD_PIE 1
11986 _ACEOF
11989 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11990 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11992 # --------
11993 # UNSORTED
11994 # --------
11996 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11997 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11998 if test "${gcc_cv_ld_as_needed+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001 gcc_cv_ld_as_needed=no
12002 if test $in_tree_ld = yes ; then
12003 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 \
12004 && test $in_tree_ld_is_elf = yes; then
12005 gcc_cv_ld_as_needed=yes
12007 elif test x$gcc_cv_ld != x; then
12008 # Check if linker supports --as-needed and --no-as-needed options
12009 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
12010 gcc_cv_ld_as_needed=yes
12015 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
12016 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
12017 if test x"$gcc_cv_ld_as_needed" = xyes; then
12019 cat >>confdefs.h <<\_ACEOF
12020 #define HAVE_LD_AS_NEEDED 1
12021 _ACEOF
12025 if test x$with_sysroot = x && test x$host = x$target \
12026 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12028 cat >>confdefs.h <<_ACEOF
12029 #define PREFIX_INCLUDE_DIR "$prefix/include"
12030 _ACEOF
12034 # Find out what GC implementation we want, or may, use.
12036 # Check whether --with-gc or --without-gc was given.
12037 if test "${with_gc+set}" = set; then
12038 withval="$with_gc"
12039 case "$withval" in
12040 page | zone)
12041 GGC=ggc-$withval
12044 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12045 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12046 { (exit 1); exit 1; }; }
12048 esac
12049 else
12050 GGC=ggc-page
12053 echo "Using $GGC for garbage collection."
12055 # Use the system's zlib library.
12056 zlibdir=-L../zlib
12057 zlibinc="-I\$(srcdir)/../zlib"
12059 # Check whether --with-system-zlib or --without-system-zlib was given.
12060 if test "${with_system_zlib+set}" = set; then
12061 withval="$with_system_zlib"
12062 zlibdir=
12063 zlibinc=
12070 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12071 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12072 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12073 if test "${enable_maintainer_mode+set}" = set; then
12074 enableval="$enable_maintainer_mode"
12075 maintainer_mode=$enableval
12076 else
12077 maintainer_mode=no
12080 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12081 echo "${ECHO_T}$maintainer_mode" >&6
12083 if test "$maintainer_mode" = "yes"; then
12084 MAINT=''
12085 else
12086 MAINT='#'
12089 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
12090 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
12092 # Check whether --with-libbanshee or --without-libbanshee was given.
12093 if test "${with_libbanshee+set}" = set; then
12094 withval="$with_libbanshee"
12095 libbanshee="$with_libbanshee"
12096 else
12097 libbanshee=no
12100 if test x"$libbanshee" = xyes; then
12101 BANSHEELIB="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
12102 BANSHEEINC="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
12103 ANDER="tree-alias-ander.o"
12105 cat >>confdefs.h <<\_ACEOF
12106 #define HAVE_BANSHEE 1
12107 _ACEOF
12109 else
12110 BANSHEELIB=""
12111 BANSHEEINC=""
12112 ANDER=""
12114 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
12115 echo "${ECHO_T}$with_libbanshee" >&6
12121 # --------------
12122 # Language hooks
12123 # --------------
12125 # Make empty files to contain the specs and options for each language.
12126 # Then add #include lines to for a compiler that has specs and/or options.
12128 lang_opt_files=
12129 lang_specs_files=
12130 lang_tree_files=
12131 for subdir in . $subdirs
12133 if test -f $srcdir/$subdir/lang.opt; then
12134 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12136 if test -f $srcdir/$subdir/lang-specs.h; then
12137 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12139 if test -f $srcdir/$subdir/$subdir-tree.def; then
12140 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12142 done
12144 # These (without "all_") are set in each config-lang.in.
12145 # `language' must be a single word so is spelled singularly.
12146 all_languages=
12147 all_boot_languages=
12148 all_compilers=
12149 all_stagestuff=
12150 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
12151 # List of language makefile fragments.
12152 all_lang_makefrags=
12153 # List of language subdirectory makefiles. Deprecated.
12154 all_lang_makefiles=
12155 # Files for gengtype
12156 all_gtfiles="$target_gtfiles"
12157 # Files for gengtype with language
12158 all_gtfiles_files_langs=
12159 all_gtfiles_files_files=
12161 # Add the language fragments.
12162 # Languages are added via two mechanisms. Some information must be
12163 # recorded in makefile variables, these are defined in config-lang.in.
12164 # We accumulate them and plug them into the main Makefile.
12165 # The other mechanism is a set of hooks for each of the main targets
12166 # like `clean', `install', etc.
12168 language_hooks="Make-hooks"
12170 for s in $subdirs
12172 language=
12173 boot_language=
12174 compilers=
12175 stagestuff=
12176 outputs=
12177 gtfiles=
12178 . ${srcdir}/$s/config-lang.in
12179 if test "x$language" = x
12180 then
12181 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12182 exit 1
12184 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12185 if test -f ${srcdir}/$s/Makefile.in
12186 then all_lang_makefiles="$s/Makefile"
12188 all_languages="$all_languages $language"
12189 if test "x$boot_language" = xyes
12190 then
12191 all_boot_languages="$all_boot_languages $language"
12193 all_compilers="$all_compilers $compilers"
12194 all_stagestuff="$all_stagestuff $stagestuff"
12195 all_outputs="$all_outputs $outputs"
12196 all_gtfiles="$all_gtfiles $gtfiles"
12197 for f in $gtfiles
12199 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12200 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12201 done
12202 done
12204 # Pick up gtfiles for c
12205 gtfiles=
12206 s="c"
12207 . ${srcdir}/c-config-lang.in
12208 all_gtfiles="$all_gtfiles $gtfiles"
12209 for f in $gtfiles
12211 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12212 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12213 done
12215 check_languages=
12216 for language in $all_languages
12218 check_languages="$check_languages check-$language"
12219 done
12221 # We link each language in with a set of hooks, reached indirectly via
12222 # lang.${target}.
12224 rm -f Make-hooks
12225 touch Make-hooks
12226 target_list="all.build all.cross start.encap rest.encap tags \
12227 install-normal install-common install-man \
12228 uninstall info man srcextra srcman srcinfo \
12229 mostlyclean clean distclean maintainer-clean \
12230 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12231 for t in $target_list
12234 for lang in $all_languages
12236 x="$x $lang.$t"
12237 done
12238 echo "lang.$t: $x" >> Make-hooks
12239 done
12241 # --------
12242 # UNSORTED
12243 # --------
12245 # Create .gdbinit.
12247 echo "dir ." > .gdbinit
12248 echo "dir ${srcdir}" >> .gdbinit
12249 if test x$gdb_needs_out_file_path = xyes
12250 then
12251 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12253 if test "x$subdirs" != x; then
12254 for s in $subdirs
12256 echo "dir ${srcdir}/$s" >> .gdbinit
12257 done
12259 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12261 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12262 # absolute path for gcc_tooldir based on inserting the number of up-directory
12263 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12264 # $(libsubdir)/@(unlibsubdir) based path.
12265 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12266 # make and thus we'd get different behavior depending on where we built the
12267 # sources.
12268 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12269 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12270 else
12271 # An explanation of the sed strings:
12272 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12273 # -e 's|/$||' match a trailing forward slash and eliminates it
12274 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12275 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12277 # (*) Note this pattern overwrites the first character of the string
12278 # with a forward slash if one is not already present. This is not a
12279 # problem because the exact names of the sub-directories concerned is
12280 # unimportant, just the number of them matters.
12282 # The practical upshot of these patterns is like this:
12284 # prefix exec_prefix result
12285 # ------ ----------- ------
12286 # /foo /foo/bar ../
12287 # /foo/ /foo/bar ../
12288 # /foo /foo/bar/ ../
12289 # /foo/ /foo/bar/ ../
12290 # /foo /foo/bar/ugg ../../
12292 dollar='$$'
12293 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12298 # Find a directory in which to install a shared libgcc.
12300 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12301 if test "${enable_version_specific_runtime_libs+set}" = set; then
12302 enableval="$enable_version_specific_runtime_libs"
12307 # Check whether --with-slibdir or --without-slibdir was given.
12308 if test "${with_slibdir+set}" = set; then
12309 withval="$with_slibdir"
12310 slibdir="$with_slibdir"
12311 else
12312 if test "${enable_version_specific_runtime_libs+set}" = set; then
12313 slibdir='$(libsubdir)'
12314 elif test "$host" != "$target"; then
12315 slibdir='$(build_tooldir)/lib'
12316 else
12317 slibdir='$(libdir)'
12322 objdir=`${PWDCMD-pwd}`
12325 # Substitute configuration variables
12394 # If it doesn't already exist, create document directory
12395 echo "checking for the document directory." 1>&2
12396 if test -d doc ; then
12397 true
12398 else
12399 mkdir doc
12402 # Echo link setup.
12403 if test x${build} = x${host} ; then
12404 if test x${host} = x${target} ; then
12405 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12406 else
12407 echo "Links are now set up to build a cross-compiler" 1>&2
12408 echo " from ${host} to ${target}." 1>&2
12410 else
12411 if test x${host} = x${target} ; then
12412 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12413 echo " for ${target}." 1>&2
12414 else
12415 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12416 echo " from ${host} to ${target}." 1>&2
12423 # Configure the subdirectories
12424 # AC_CONFIG_SUBDIRS($subdirs)
12426 # Create the Makefile
12427 # and configure language subdirectories
12428 ac_config_files="$ac_config_files $all_outputs"
12431 ac_config_commands="$ac_config_commands default"
12433 cat >confcache <<\_ACEOF
12434 # This file is a shell script that caches the results of configure
12435 # tests run on this system so they can be shared between configure
12436 # scripts and configure runs, see configure's option --config-cache.
12437 # It is not useful on other systems. If it contains results you don't
12438 # want to keep, you may remove or edit it.
12440 # config.status only pays attention to the cache file if you give it
12441 # the --recheck option to rerun configure.
12443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12445 # following values.
12447 _ACEOF
12449 # The following way of writing the cache mishandles newlines in values,
12450 # but we know of no workaround that is simple, portable, and efficient.
12451 # So, don't put newlines in cache variables' values.
12452 # Ultrix sh set writes to stderr and can't be redirected directly,
12453 # and sets the high bit in the cache file unless we assign to the vars.
12455 (set) 2>&1 |
12456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12457 *ac_space=\ *)
12458 # `set' does not quote correctly, so add quotes (double-quote
12459 # substitution turns \\\\ into \\, and sed turns \\ into \).
12460 sed -n \
12461 "s/'/'\\\\''/g;
12462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12465 # `set' quotes correctly as required by POSIX, so do not add quotes.
12466 sed -n \
12467 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12469 esac;
12471 sed '
12472 t clear
12473 : clear
12474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12475 t end
12476 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12477 : end' >>confcache
12478 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12479 if test -w $cache_file; then
12480 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12481 cat confcache >$cache_file
12482 else
12483 echo "not updating unwritable cache $cache_file"
12486 rm -f confcache
12488 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12489 # Let make expand exec_prefix.
12490 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12494 # trailing colons and then remove the whole line if VPATH becomes empty
12495 # (actually we leave an empty line to preserve line numbers).
12496 if test "x$srcdir" = x.; then
12497 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12498 s/:*\$(srcdir):*/:/;
12499 s/:*\${srcdir}:*/:/;
12500 s/:*@srcdir@:*/:/;
12501 s/^\([^=]*=[ ]*\):*/\1/;
12502 s/:*$//;
12503 s/^[^=]*=[ ]*$//;
12507 DEFS=-DHAVE_CONFIG_H
12509 ac_libobjs=
12510 ac_ltlibobjs=
12511 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12512 # 1. Remove the extension, and $U if already installed.
12513 ac_i=`echo "$ac_i" |
12514 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12515 # 2. Add them.
12516 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12517 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12518 done
12519 LIBOBJS=$ac_libobjs
12521 LTLIBOBJS=$ac_ltlibobjs
12525 : ${CONFIG_STATUS=./config.status}
12526 ac_clean_files_save=$ac_clean_files
12527 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12528 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12529 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12530 cat >$CONFIG_STATUS <<_ACEOF
12531 #! $SHELL
12532 # Generated by $as_me.
12533 # Run this file to recreate the current configuration.
12534 # Compiler output produced by configure, useful for debugging
12535 # configure, is in config.log if it exists.
12537 debug=false
12538 ac_cs_recheck=false
12539 ac_cs_silent=false
12540 SHELL=\${CONFIG_SHELL-$SHELL}
12541 _ACEOF
12543 cat >>$CONFIG_STATUS <<\_ACEOF
12544 ## --------------------- ##
12545 ## M4sh Initialization. ##
12546 ## --------------------- ##
12548 # Be Bourne compatible
12549 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12550 emulate sh
12551 NULLCMD=:
12552 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12553 # is contrary to our usage. Disable this feature.
12554 alias -g '${1+"$@"}'='"$@"'
12555 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12556 set -o posix
12558 DUALCASE=1; export DUALCASE # for MKS sh
12560 # Support unset when possible.
12561 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12562 as_unset=unset
12563 else
12564 as_unset=false
12568 # Work around bugs in pre-3.0 UWIN ksh.
12569 $as_unset ENV MAIL MAILPATH
12570 PS1='$ '
12571 PS2='> '
12572 PS4='+ '
12574 # NLS nuisances.
12575 for as_var in \
12576 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12577 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12578 LC_TELEPHONE LC_TIME
12580 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12581 eval $as_var=C; export $as_var
12582 else
12583 $as_unset $as_var
12585 done
12587 # Required to use basename.
12588 if expr a : '\(a\)' >/dev/null 2>&1; then
12589 as_expr=expr
12590 else
12591 as_expr=false
12594 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12595 as_basename=basename
12596 else
12597 as_basename=false
12601 # Name of the executable.
12602 as_me=`$as_basename "$0" ||
12603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12604 X"$0" : 'X\(//\)$' \| \
12605 X"$0" : 'X\(/\)$' \| \
12606 . : '\(.\)' 2>/dev/null ||
12607 echo X/"$0" |
12608 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12609 /^X\/\(\/\/\)$/{ s//\1/; q; }
12610 /^X\/\(\/\).*/{ s//\1/; q; }
12611 s/.*/./; q'`
12614 # PATH needs CR, and LINENO needs CR and PATH.
12615 # Avoid depending upon Character Ranges.
12616 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12617 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12618 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12619 as_cr_digits='0123456789'
12620 as_cr_alnum=$as_cr_Letters$as_cr_digits
12622 # The user is always right.
12623 if test "${PATH_SEPARATOR+set}" != set; then
12624 echo "#! /bin/sh" >conf$$.sh
12625 echo "exit 0" >>conf$$.sh
12626 chmod +x conf$$.sh
12627 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12628 PATH_SEPARATOR=';'
12629 else
12630 PATH_SEPARATOR=:
12632 rm -f conf$$.sh
12636 as_lineno_1=$LINENO
12637 as_lineno_2=$LINENO
12638 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12639 test "x$as_lineno_1" != "x$as_lineno_2" &&
12640 test "x$as_lineno_3" = "x$as_lineno_2" || {
12641 # Find who we are. Look in the path if we contain no path at all
12642 # relative or not.
12643 case $0 in
12644 *[\\/]* ) as_myself=$0 ;;
12645 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12648 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=.
12650 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12651 done
12654 esac
12655 # We did not find ourselves, most probably we were run as `sh COMMAND'
12656 # in which case we are not to be found in the path.
12657 if test "x$as_myself" = x; then
12658 as_myself=$0
12660 if test ! -f "$as_myself"; then
12661 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12662 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12663 { (exit 1); exit 1; }; }
12665 case $CONFIG_SHELL in
12667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12670 IFS=$as_save_IFS
12671 test -z "$as_dir" && as_dir=.
12672 for as_base in sh bash ksh sh5; do
12673 case $as_dir in
12675 if ("$as_dir/$as_base" -c '
12676 as_lineno_1=$LINENO
12677 as_lineno_2=$LINENO
12678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12679 test "x$as_lineno_1" != "x$as_lineno_2" &&
12680 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12681 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12682 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12683 CONFIG_SHELL=$as_dir/$as_base
12684 export CONFIG_SHELL
12685 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12686 fi;;
12687 esac
12688 done
12689 done
12691 esac
12693 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12694 # uniformly replaced by the line number. The first 'sed' inserts a
12695 # line-number line before each line; the second 'sed' does the real
12696 # work. The second script uses 'N' to pair each line-number line
12697 # with the numbered line, and appends trailing '-' during
12698 # substitution so that $LINENO is not a special case at line end.
12699 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12700 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12701 sed '=' <$as_myself |
12702 sed '
12704 s,$,-,
12705 : loop
12706 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12707 t loop
12708 s,-$,,
12709 s,^['$as_cr_digits']*\n,,
12710 ' >$as_me.lineno &&
12711 chmod +x $as_me.lineno ||
12712 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12713 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12714 { (exit 1); exit 1; }; }
12716 # Don't try to exec as it changes $[0], causing all sort of problems
12717 # (the dirname of $[0] is not the place where we might find the
12718 # original and so on. Autoconf is especially sensible to this).
12719 . ./$as_me.lineno
12720 # Exit status is that of the last command.
12721 exit
12725 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12726 *c*,-n*) ECHO_N= ECHO_C='
12727 ' ECHO_T=' ' ;;
12728 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12729 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12730 esac
12732 if expr a : '\(a\)' >/dev/null 2>&1; then
12733 as_expr=expr
12734 else
12735 as_expr=false
12738 rm -f conf$$ conf$$.exe conf$$.file
12739 echo >conf$$.file
12740 if ln -s conf$$.file conf$$ 2>/dev/null; then
12741 # We could just check for DJGPP; but this test a) works b) is more generic
12742 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12743 if test -f conf$$.exe; then
12744 # Don't use ln at all; we don't have any links
12745 as_ln_s='cp -p'
12746 else
12747 as_ln_s='ln -s'
12749 elif ln conf$$.file conf$$ 2>/dev/null; then
12750 as_ln_s=ln
12751 else
12752 as_ln_s='cp -p'
12754 rm -f conf$$ conf$$.exe conf$$.file
12756 if mkdir -p . 2>/dev/null; then
12757 as_mkdir_p=:
12758 else
12759 test -d ./-p && rmdir ./-p
12760 as_mkdir_p=false
12763 as_executable_p="test -f"
12765 # Sed expression to map a string onto a valid CPP name.
12766 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12768 # Sed expression to map a string onto a valid variable name.
12769 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12772 # IFS
12773 # We need space, tab and new line, in precisely that order.
12774 as_nl='
12776 IFS=" $as_nl"
12778 # CDPATH.
12779 $as_unset CDPATH
12781 exec 6>&1
12783 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12784 # report actual input values of CONFIG_FILES etc. instead of their
12785 # values after options handling. Logging --version etc. is OK.
12786 exec 5>>config.log
12788 echo
12789 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12790 ## Running $as_me. ##
12791 _ASBOX
12792 } >&5
12793 cat >&5 <<_CSEOF
12795 This file was extended by $as_me, which was
12796 generated by GNU Autoconf 2.59. Invocation command line was
12798 CONFIG_FILES = $CONFIG_FILES
12799 CONFIG_HEADERS = $CONFIG_HEADERS
12800 CONFIG_LINKS = $CONFIG_LINKS
12801 CONFIG_COMMANDS = $CONFIG_COMMANDS
12802 $ $0 $@
12804 _CSEOF
12805 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12806 echo >&5
12807 _ACEOF
12809 # Files that config.status was made for.
12810 if test -n "$ac_config_files"; then
12811 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12814 if test -n "$ac_config_headers"; then
12815 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12818 if test -n "$ac_config_links"; then
12819 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12822 if test -n "$ac_config_commands"; then
12823 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12826 cat >>$CONFIG_STATUS <<\_ACEOF
12828 ac_cs_usage="\
12829 \`$as_me' instantiates files from templates according to the
12830 current configuration.
12832 Usage: $0 [OPTIONS] [FILE]...
12834 -h, --help print this help, then exit
12835 -V, --version print version number, then exit
12836 -q, --quiet do not print progress messages
12837 -d, --debug don't remove temporary files
12838 --recheck update $as_me by reconfiguring in the same conditions
12839 --file=FILE[:TEMPLATE]
12840 instantiate the configuration file FILE
12841 --header=FILE[:TEMPLATE]
12842 instantiate the configuration header FILE
12844 Configuration files:
12845 $config_files
12847 Configuration headers:
12848 $config_headers
12850 Configuration commands:
12851 $config_commands
12853 Report bugs to <bug-autoconf@gnu.org>."
12854 _ACEOF
12856 cat >>$CONFIG_STATUS <<_ACEOF
12857 ac_cs_version="\\
12858 config.status
12859 configured by $0, generated by GNU Autoconf 2.59,
12860 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12862 Copyright (C) 2003 Free Software Foundation, Inc.
12863 This config.status script is free software; the Free Software Foundation
12864 gives unlimited permission to copy, distribute and modify it."
12865 srcdir=$srcdir
12866 _ACEOF
12868 cat >>$CONFIG_STATUS <<\_ACEOF
12869 # If no file are specified by the user, then we need to provide default
12870 # value. By we need to know if files were specified by the user.
12871 ac_need_defaults=:
12872 while test $# != 0
12874 case $1 in
12875 --*=*)
12876 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12877 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12878 ac_shift=:
12881 ac_option=$1
12882 ac_optarg=$2
12883 ac_shift=shift
12885 *) # This is not an option, so the user has probably given explicit
12886 # arguments.
12887 ac_option=$1
12888 ac_need_defaults=false;;
12889 esac
12891 case $ac_option in
12892 # Handling of the options.
12893 _ACEOF
12894 cat >>$CONFIG_STATUS <<\_ACEOF
12895 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12896 ac_cs_recheck=: ;;
12897 --version | --vers* | -V )
12898 echo "$ac_cs_version"; exit 0 ;;
12899 --he | --h)
12900 # Conflict between --help and --header
12901 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12902 Try \`$0 --help' for more information." >&5
12903 echo "$as_me: error: ambiguous option: $1
12904 Try \`$0 --help' for more information." >&2;}
12905 { (exit 1); exit 1; }; };;
12906 --help | --hel | -h )
12907 echo "$ac_cs_usage"; exit 0 ;;
12908 --debug | --d* | -d )
12909 debug=: ;;
12910 --file | --fil | --fi | --f )
12911 $ac_shift
12912 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12913 ac_need_defaults=false;;
12914 --header | --heade | --head | --hea )
12915 $ac_shift
12916 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12917 ac_need_defaults=false;;
12918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12919 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12920 ac_cs_silent=: ;;
12922 # This is an error.
12923 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12924 Try \`$0 --help' for more information." >&5
12925 echo "$as_me: error: unrecognized option: $1
12926 Try \`$0 --help' for more information." >&2;}
12927 { (exit 1); exit 1; }; } ;;
12929 *) ac_config_targets="$ac_config_targets $1" ;;
12931 esac
12932 shift
12933 done
12935 ac_configure_extra_args=
12937 if $ac_cs_silent; then
12938 exec 6>/dev/null
12939 ac_configure_extra_args="$ac_configure_extra_args --silent"
12942 _ACEOF
12943 cat >>$CONFIG_STATUS <<_ACEOF
12944 if \$ac_cs_recheck; then
12945 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12946 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12949 _ACEOF
12951 cat >>$CONFIG_STATUS <<_ACEOF
12953 # INIT-COMMANDS section.
12956 subdirs='$subdirs'
12957 symbolic_link='$symbolic_link'
12960 _ACEOF
12964 cat >>$CONFIG_STATUS <<\_ACEOF
12965 for ac_config_target in $ac_config_targets
12967 case "$ac_config_target" in
12968 # Handling of arguments.
12969 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12970 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12971 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12972 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12973 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12974 { (exit 1); exit 1; }; };;
12975 esac
12976 done
12978 # If the user did not use the arguments to specify the items to instantiate,
12979 # then the envvar interface is used. Set only those that are not.
12980 # We use the long form for the default assignment because of an extremely
12981 # bizarre bug on SunOS 4.1.3.
12982 if $ac_need_defaults; then
12983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12984 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12985 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12988 # Have a temporary directory for convenience. Make it in the build tree
12989 # simply because there is no reason to put it here, and in addition,
12990 # creating and moving files from /tmp can sometimes cause problems.
12991 # Create a temporary directory, and hook for its removal unless debugging.
12992 $debug ||
12994 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12995 trap '{ (exit 1); exit 1; }' 1 2 13 15
12998 # Create a (secure) tmp directory for tmp files.
13001 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13002 test -n "$tmp" && test -d "$tmp"
13003 } ||
13005 tmp=./confstat$$-$RANDOM
13006 (umask 077 && mkdir $tmp)
13007 } ||
13009 echo "$me: cannot create a temporary directory in ." >&2
13010 { (exit 1); exit 1; }
13013 _ACEOF
13015 cat >>$CONFIG_STATUS <<_ACEOF
13018 # CONFIG_FILES section.
13021 # No need to generate the scripts if there are no CONFIG_FILES.
13022 # This happens for instance when ./config.status config.h
13023 if test -n "\$CONFIG_FILES"; then
13024 # Protect against being on the right side of a sed subst in config.status.
13025 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13026 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13027 s,@SHELL@,$SHELL,;t t
13028 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13029 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13030 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13031 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13032 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13033 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13034 s,@exec_prefix@,$exec_prefix,;t t
13035 s,@prefix@,$prefix,;t t
13036 s,@program_transform_name@,$program_transform_name,;t t
13037 s,@bindir@,$bindir,;t t
13038 s,@sbindir@,$sbindir,;t t
13039 s,@libexecdir@,$libexecdir,;t t
13040 s,@datadir@,$datadir,;t t
13041 s,@sysconfdir@,$sysconfdir,;t t
13042 s,@sharedstatedir@,$sharedstatedir,;t t
13043 s,@localstatedir@,$localstatedir,;t t
13044 s,@libdir@,$libdir,;t t
13045 s,@includedir@,$includedir,;t t
13046 s,@oldincludedir@,$oldincludedir,;t t
13047 s,@infodir@,$infodir,;t t
13048 s,@mandir@,$mandir,;t t
13049 s,@build_alias@,$build_alias,;t t
13050 s,@host_alias@,$host_alias,;t t
13051 s,@target_alias@,$target_alias,;t t
13052 s,@DEFS@,$DEFS,;t t
13053 s,@ECHO_C@,$ECHO_C,;t t
13054 s,@ECHO_N@,$ECHO_N,;t t
13055 s,@ECHO_T@,$ECHO_T,;t t
13056 s,@LIBS@,$LIBS,;t t
13057 s,@build@,$build,;t t
13058 s,@build_cpu@,$build_cpu,;t t
13059 s,@build_vendor@,$build_vendor,;t t
13060 s,@build_os@,$build_os,;t t
13061 s,@host@,$host,;t t
13062 s,@host_cpu@,$host_cpu,;t t
13063 s,@host_vendor@,$host_vendor,;t t
13064 s,@host_os@,$host_os,;t t
13065 s,@target@,$target,;t t
13066 s,@target_cpu@,$target_cpu,;t t
13067 s,@target_vendor@,$target_vendor,;t t
13068 s,@target_os@,$target_os,;t t
13069 s,@build_subdir@,$build_subdir,;t t
13070 s,@host_subdir@,$host_subdir,;t t
13071 s,@target_subdir@,$target_subdir,;t t
13072 s,@GENINSRC@,$GENINSRC,;t t
13073 s,@CC@,$CC,;t t
13074 s,@CFLAGS@,$CFLAGS,;t t
13075 s,@LDFLAGS@,$LDFLAGS,;t t
13076 s,@CPPFLAGS@,$CPPFLAGS,;t t
13077 s,@ac_ct_CC@,$ac_ct_CC,;t t
13078 s,@EXEEXT@,$EXEEXT,;t t
13079 s,@OBJEXT@,$OBJEXT,;t t
13080 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13081 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13082 s,@CPP@,$CPP,;t t
13083 s,@strict1_warn@,$strict1_warn,;t t
13084 s,@warn_cflags@,$warn_cflags,;t t
13085 s,@WERROR@,$WERROR,;t t
13086 s,@nocommon_flag@,$nocommon_flag,;t t
13087 s,@TREEBROWSER@,$TREEBROWSER,;t t
13088 s,@EGREP@,$EGREP,;t t
13089 s,@valgrind_path@,$valgrind_path,;t t
13090 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13091 s,@valgrind_command@,$valgrind_command,;t t
13092 s,@coverage_flags@,$coverage_flags,;t t
13093 s,@enable_multilib@,$enable_multilib,;t t
13094 s,@enable_shared@,$enable_shared,;t t
13095 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13096 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13097 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13098 s,@onestep@,$onestep,;t t
13099 s,@SET_MAKE@,$SET_MAKE,;t t
13100 s,@AWK@,$AWK,;t t
13101 s,@LN@,$LN,;t t
13102 s,@LN_S@,$LN_S,;t t
13103 s,@RANLIB@,$RANLIB,;t t
13104 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13105 s,@INSTALL@,$INSTALL,;t t
13106 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13107 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13108 s,@make_compare_target@,$make_compare_target,;t t
13109 s,@have_mktemp_command@,$have_mktemp_command,;t t
13110 s,@MAKEINFO@,$MAKEINFO,;t t
13111 s,@BUILD_INFO@,$BUILD_INFO,;t t
13112 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13113 s,@FLEX@,$FLEX,;t t
13114 s,@BISON@,$BISON,;t t
13115 s,@stage1_cflags@,$stage1_cflags,;t t
13116 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13117 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13118 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13119 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13120 s,@LIBICONV@,$LIBICONV,;t t
13121 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13122 s,@manext@,$manext,;t t
13123 s,@objext@,$objext,;t t
13124 s,@gthread_flags@,$gthread_flags,;t t
13125 s,@extra_modes_file@,$extra_modes_file,;t t
13126 s,@FORBUILD@,$FORBUILD,;t t
13127 s,@PACKAGE@,$PACKAGE,;t t
13128 s,@VERSION@,$VERSION,;t t
13129 s,@USE_NLS@,$USE_NLS,;t t
13130 s,@LIBINTL@,$LIBINTL,;t t
13131 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13132 s,@INCINTL@,$INCINTL,;t t
13133 s,@XGETTEXT@,$XGETTEXT,;t t
13134 s,@GMSGFMT@,$GMSGFMT,;t t
13135 s,@POSUB@,$POSUB,;t t
13136 s,@CATALOGS@,$CATALOGS,;t t
13137 s,@CROSS@,$CROSS,;t t
13138 s,@ALL@,$ALL,;t t
13139 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13140 s,@inhibit_libc@,$inhibit_libc,;t t
13141 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
13142 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
13143 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13144 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13145 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13146 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13147 s,@collect2@,$collect2,;t t
13148 s,@libgcc_visibility@,$libgcc_visibility,;t t
13149 s,@GGC@,$GGC,;t t
13150 s,@zlibdir@,$zlibdir,;t t
13151 s,@zlibinc@,$zlibinc,;t t
13152 s,@MAINT@,$MAINT,;t t
13153 s,@ANDER@,$ANDER,;t t
13154 s,@BANSHEEINC@,$BANSHEEINC,;t t
13155 s,@BANSHEELIB@,$BANSHEELIB,;t t
13156 s,@gcc_tooldir@,$gcc_tooldir,;t t
13157 s,@dollar@,$dollar,;t t
13158 s,@slibdir@,$slibdir,;t t
13159 s,@objdir@,$objdir,;t t
13160 s,@subdirs@,$subdirs,;t t
13161 s,@srcdir@,$srcdir,;t t
13162 s,@all_boot_languages@,$all_boot_languages,;t t
13163 s,@all_compilers@,$all_compilers,;t t
13164 s,@all_gtfiles@,$all_gtfiles,;t t
13165 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13166 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13167 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13168 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13169 s,@all_languages@,$all_languages,;t t
13170 s,@all_stagestuff@,$all_stagestuff,;t t
13171 s,@build_exeext@,$build_exeext,;t t
13172 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13173 s,@build_xm_file_list@,$build_xm_file_list,;t t
13174 s,@build_xm_include_list@,$build_xm_include_list,;t t
13175 s,@build_xm_defines@,$build_xm_defines,;t t
13176 s,@check_languages@,$check_languages,;t t
13177 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13178 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13179 s,@cpp_install_dir@,$cpp_install_dir,;t t
13180 s,@xmake_file@,$xmake_file,;t t
13181 s,@tmake_file@,$tmake_file,;t t
13182 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13183 s,@extra_headers_list@,$extra_headers_list,;t t
13184 s,@extra_objs@,$extra_objs,;t t
13185 s,@extra_parts@,$extra_parts,;t t
13186 s,@extra_passes@,$extra_passes,;t t
13187 s,@extra_programs@,$extra_programs,;t t
13188 s,@float_h_file@,$float_h_file,;t t
13189 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13190 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13191 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13192 s,@gcc_version@,$gcc_version,;t t
13193 s,@gcc_version_full@,$gcc_version_full,;t t
13194 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13195 s,@host_exeext@,$host_exeext,;t t
13196 s,@host_xm_file_list@,$host_xm_file_list,;t t
13197 s,@host_xm_include_list@,$host_xm_include_list,;t t
13198 s,@host_xm_defines@,$host_xm_defines,;t t
13199 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13200 s,@install@,$install,;t t
13201 s,@lang_opt_files@,$lang_opt_files,;t t
13202 s,@lang_specs_files@,$lang_specs_files,;t t
13203 s,@lang_tree_files@,$lang_tree_files,;t t
13204 s,@local_prefix@,$local_prefix,;t t
13205 s,@md_file@,$md_file,;t t
13206 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13207 s,@out_file@,$out_file,;t t
13208 s,@out_object_file@,$out_object_file,;t t
13209 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13210 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13211 s,@symbolic_link@,$symbolic_link,;t t
13212 s,@thread_file@,$thread_file,;t t
13213 s,@tm_file_list@,$tm_file_list,;t t
13214 s,@tm_include_list@,$tm_include_list,;t t
13215 s,@tm_defines@,$tm_defines,;t t
13216 s,@tm_p_file_list@,$tm_p_file_list,;t t
13217 s,@tm_p_include_list@,$tm_p_include_list,;t t
13218 s,@xm_file_list@,$xm_file_list,;t t
13219 s,@xm_include_list@,$xm_include_list,;t t
13220 s,@xm_defines@,$xm_defines,;t t
13221 s,@target_noncanonical@,$target_noncanonical,;t t
13222 s,@c_target_objs@,$c_target_objs,;t t
13223 s,@cxx_target_objs@,$cxx_target_objs,;t t
13224 s,@target_cpu_default@,$target_cpu_default,;t t
13225 s,@GMPLIBS@,$GMPLIBS,;t t
13226 s,@GMPINC@,$GMPINC,;t t
13227 s,@LIBOBJS@,$LIBOBJS,;t t
13228 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13229 /@language_hooks@/r $language_hooks
13230 s,@language_hooks@,,;t t
13231 CEOF
13233 _ACEOF
13235 cat >>$CONFIG_STATUS <<\_ACEOF
13236 # Split the substitutions into bite-sized pieces for seds with
13237 # small command number limits, like on Digital OSF/1 and HP-UX.
13238 ac_max_sed_lines=48
13239 ac_sed_frag=1 # Number of current file.
13240 ac_beg=1 # First line for current file.
13241 ac_end=$ac_max_sed_lines # Line after last line for current file.
13242 ac_more_lines=:
13243 ac_sed_cmds=
13244 while $ac_more_lines; do
13245 if test $ac_beg -gt 1; then
13246 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13247 else
13248 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13250 if test ! -s $tmp/subs.frag; then
13251 ac_more_lines=false
13252 else
13253 # The purpose of the label and of the branching condition is to
13254 # speed up the sed processing (if there are no `@' at all, there
13255 # is no need to browse any of the substitutions).
13256 # These are the two extra sed commands mentioned above.
13257 (echo ':t
13258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13259 if test -z "$ac_sed_cmds"; then
13260 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13261 else
13262 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13264 ac_sed_frag=`expr $ac_sed_frag + 1`
13265 ac_beg=$ac_end
13266 ac_end=`expr $ac_end + $ac_max_sed_lines`
13268 done
13269 if test -z "$ac_sed_cmds"; then
13270 ac_sed_cmds=cat
13272 fi # test -n "$CONFIG_FILES"
13274 _ACEOF
13275 cat >>$CONFIG_STATUS <<\_ACEOF
13276 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13277 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13278 case $ac_file in
13279 - | *:- | *:-:* ) # input from stdin
13280 cat >$tmp/stdin
13281 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13282 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13283 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13284 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13285 * ) ac_file_in=$ac_file.in ;;
13286 esac
13288 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13289 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13291 X"$ac_file" : 'X\(//\)[^/]' \| \
13292 X"$ac_file" : 'X\(//\)$' \| \
13293 X"$ac_file" : 'X\(/\)' \| \
13294 . : '\(.\)' 2>/dev/null ||
13295 echo X"$ac_file" |
13296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13298 /^X\(\/\/\)$/{ s//\1/; q; }
13299 /^X\(\/\).*/{ s//\1/; q; }
13300 s/.*/./; q'`
13301 { if $as_mkdir_p; then
13302 mkdir -p "$ac_dir"
13303 else
13304 as_dir="$ac_dir"
13305 as_dirs=
13306 while test ! -d "$as_dir"; do
13307 as_dirs="$as_dir $as_dirs"
13308 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13310 X"$as_dir" : 'X\(//\)[^/]' \| \
13311 X"$as_dir" : 'X\(//\)$' \| \
13312 X"$as_dir" : 'X\(/\)' \| \
13313 . : '\(.\)' 2>/dev/null ||
13314 echo X"$as_dir" |
13315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13317 /^X\(\/\/\)$/{ s//\1/; q; }
13318 /^X\(\/\).*/{ s//\1/; q; }
13319 s/.*/./; q'`
13320 done
13321 test ! -n "$as_dirs" || mkdir $as_dirs
13322 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13323 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13324 { (exit 1); exit 1; }; }; }
13326 ac_builddir=.
13328 if test "$ac_dir" != .; then
13329 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13330 # A "../" for each directory in $ac_dir_suffix.
13331 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13332 else
13333 ac_dir_suffix= ac_top_builddir=
13336 case $srcdir in
13337 .) # No --srcdir option. We are building in place.
13338 ac_srcdir=.
13339 if test -z "$ac_top_builddir"; then
13340 ac_top_srcdir=.
13341 else
13342 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13343 fi ;;
13344 [\\/]* | ?:[\\/]* ) # Absolute path.
13345 ac_srcdir=$srcdir$ac_dir_suffix;
13346 ac_top_srcdir=$srcdir ;;
13347 *) # Relative path.
13348 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13349 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13350 esac
13352 # Do not use `cd foo && pwd` to compute absolute paths, because
13353 # the directories may not exist.
13354 case `pwd` in
13355 .) ac_abs_builddir="$ac_dir";;
13357 case "$ac_dir" in
13358 .) ac_abs_builddir=`pwd`;;
13359 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13360 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13361 esac;;
13362 esac
13363 case $ac_abs_builddir in
13364 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13366 case ${ac_top_builddir}. in
13367 .) ac_abs_top_builddir=$ac_abs_builddir;;
13368 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13369 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13370 esac;;
13371 esac
13372 case $ac_abs_builddir in
13373 .) ac_abs_srcdir=$ac_srcdir;;
13375 case $ac_srcdir in
13376 .) ac_abs_srcdir=$ac_abs_builddir;;
13377 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13378 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13379 esac;;
13380 esac
13381 case $ac_abs_builddir in
13382 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13384 case $ac_top_srcdir in
13385 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13386 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13387 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13388 esac;;
13389 esac
13393 if test x"$ac_file" != x-; then
13394 { echo "$as_me:$LINENO: creating $ac_file" >&5
13395 echo "$as_me: creating $ac_file" >&6;}
13396 rm -f "$ac_file"
13398 # Let's still pretend it is `configure' which instantiates (i.e., don't
13399 # use $as_me), people would be surprised to read:
13400 # /* config.h. Generated by config.status. */
13401 if test x"$ac_file" = x-; then
13402 configure_input=
13403 else
13404 configure_input="$ac_file. "
13406 configure_input=$configure_input"Generated from `echo $ac_file_in |
13407 sed 's,.*/,,'` by configure."
13409 # First look for the input files in the build tree, otherwise in the
13410 # src tree.
13411 ac_file_inputs=`IFS=:
13412 for f in $ac_file_in; do
13413 case $f in
13414 -) echo $tmp/stdin ;;
13415 [\\/$]*)
13416 # Absolute (can't be DOS-style, as IFS=:)
13417 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13418 echo "$as_me: error: cannot find input file: $f" >&2;}
13419 { (exit 1); exit 1; }; }
13420 echo "$f";;
13421 *) # Relative
13422 if test -f "$f"; then
13423 # Build tree
13424 echo "$f"
13425 elif test -f "$srcdir/$f"; then
13426 # Source tree
13427 echo "$srcdir/$f"
13428 else
13429 # /dev/null tree
13430 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13431 echo "$as_me: error: cannot find input file: $f" >&2;}
13432 { (exit 1); exit 1; }; }
13433 fi;;
13434 esac
13435 done` || { (exit 1); exit 1; }
13436 _ACEOF
13437 cat >>$CONFIG_STATUS <<_ACEOF
13438 sed "$ac_vpsub
13439 $extrasub
13440 _ACEOF
13441 cat >>$CONFIG_STATUS <<\_ACEOF
13443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13444 s,@configure_input@,$configure_input,;t t
13445 s,@srcdir@,$ac_srcdir,;t t
13446 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13447 s,@top_srcdir@,$ac_top_srcdir,;t t
13448 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13449 s,@builddir@,$ac_builddir,;t t
13450 s,@abs_builddir@,$ac_abs_builddir,;t t
13451 s,@top_builddir@,$ac_top_builddir,;t t
13452 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13453 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13454 rm -f $tmp/stdin
13455 if test x"$ac_file" != x-; then
13456 mv $tmp/out $ac_file
13457 else
13458 cat $tmp/out
13459 rm -f $tmp/out
13462 done
13463 _ACEOF
13464 cat >>$CONFIG_STATUS <<\_ACEOF
13467 # CONFIG_HEADER section.
13470 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13471 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13473 # ac_d sets the value in "#define NAME VALUE" lines.
13474 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13475 ac_dB='[ ].*$,\1#\2'
13476 ac_dC=' '
13477 ac_dD=',;t'
13478 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13479 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13480 ac_uB='$,\1#\2define\3'
13481 ac_uC=' '
13482 ac_uD=',;t'
13484 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13485 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13486 case $ac_file in
13487 - | *:- | *:-:* ) # input from stdin
13488 cat >$tmp/stdin
13489 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13490 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13491 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13492 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13493 * ) ac_file_in=$ac_file.in ;;
13494 esac
13496 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13497 echo "$as_me: creating $ac_file" >&6;}
13499 # First look for the input files in the build tree, otherwise in the
13500 # src tree.
13501 ac_file_inputs=`IFS=:
13502 for f in $ac_file_in; do
13503 case $f in
13504 -) echo $tmp/stdin ;;
13505 [\\/$]*)
13506 # Absolute (can't be DOS-style, as IFS=:)
13507 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13508 echo "$as_me: error: cannot find input file: $f" >&2;}
13509 { (exit 1); exit 1; }; }
13510 # Do quote $f, to prevent DOS paths from being IFS'd.
13511 echo "$f";;
13512 *) # Relative
13513 if test -f "$f"; then
13514 # Build tree
13515 echo "$f"
13516 elif test -f "$srcdir/$f"; then
13517 # Source tree
13518 echo "$srcdir/$f"
13519 else
13520 # /dev/null tree
13521 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13522 echo "$as_me: error: cannot find input file: $f" >&2;}
13523 { (exit 1); exit 1; }; }
13524 fi;;
13525 esac
13526 done` || { (exit 1); exit 1; }
13527 # Remove the trailing spaces.
13528 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13530 _ACEOF
13532 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13533 # `conftest.undefs', that substitutes the proper values into
13534 # config.h.in to produce config.h. The first handles `#define'
13535 # templates, and the second `#undef' templates.
13536 # And first: Protect against being on the right side of a sed subst in
13537 # config.status. Protect against being in an unquoted here document
13538 # in config.status.
13539 rm -f conftest.defines conftest.undefs
13540 # Using a here document instead of a string reduces the quoting nightmare.
13541 # Putting comments in sed scripts is not portable.
13543 # `end' is used to avoid that the second main sed command (meant for
13544 # 0-ary CPP macros) applies to n-ary macro definitions.
13545 # See the Autoconf documentation for `clear'.
13546 cat >confdef2sed.sed <<\_ACEOF
13547 s/[\\&,]/\\&/g
13548 s,[\\$`],\\&,g
13549 t clear
13550 : clear
13551 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13552 t end
13553 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13554 : end
13555 _ACEOF
13556 # If some macros were called several times there might be several times
13557 # the same #defines, which is useless. Nevertheless, we may not want to
13558 # sort them, since we want the *last* AC-DEFINE to be honored.
13559 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13560 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13561 rm -f confdef2sed.sed
13563 # This sed command replaces #undef with comments. This is necessary, for
13564 # example, in the case of _POSIX_SOURCE, which is predefined and required
13565 # on some systems where configure will not decide to define it.
13566 cat >>conftest.undefs <<\_ACEOF
13567 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13568 _ACEOF
13570 # Break up conftest.defines because some shells have a limit on the size
13571 # of here documents, and old seds have small limits too (100 cmds).
13572 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13573 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13574 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13575 echo ' :' >>$CONFIG_STATUS
13576 rm -f conftest.tail
13577 while grep . conftest.defines >/dev/null
13579 # Write a limited-size here document to $tmp/defines.sed.
13580 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13581 # Speed up: don't consider the non `#define' lines.
13582 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13583 # Work around the forget-to-reset-the-flag bug.
13584 echo 't clr' >>$CONFIG_STATUS
13585 echo ': clr' >>$CONFIG_STATUS
13586 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13587 echo 'CEOF
13588 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13589 rm -f $tmp/in
13590 mv $tmp/out $tmp/in
13591 ' >>$CONFIG_STATUS
13592 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13593 rm -f conftest.defines
13594 mv conftest.tail conftest.defines
13595 done
13596 rm -f conftest.defines
13597 echo ' fi # grep' >>$CONFIG_STATUS
13598 echo >>$CONFIG_STATUS
13600 # Break up conftest.undefs because some shells have a limit on the size
13601 # of here documents, and old seds have small limits too (100 cmds).
13602 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13603 rm -f conftest.tail
13604 while grep . conftest.undefs >/dev/null
13606 # Write a limited-size here document to $tmp/undefs.sed.
13607 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13608 # Speed up: don't consider the non `#undef'
13609 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13610 # Work around the forget-to-reset-the-flag bug.
13611 echo 't clr' >>$CONFIG_STATUS
13612 echo ': clr' >>$CONFIG_STATUS
13613 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13614 echo 'CEOF
13615 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13616 rm -f $tmp/in
13617 mv $tmp/out $tmp/in
13618 ' >>$CONFIG_STATUS
13619 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13620 rm -f conftest.undefs
13621 mv conftest.tail conftest.undefs
13622 done
13623 rm -f conftest.undefs
13625 cat >>$CONFIG_STATUS <<\_ACEOF
13626 # Let's still pretend it is `configure' which instantiates (i.e., don't
13627 # use $as_me), people would be surprised to read:
13628 # /* config.h. Generated by config.status. */
13629 if test x"$ac_file" = x-; then
13630 echo "/* Generated by configure. */" >$tmp/config.h
13631 else
13632 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13634 cat $tmp/in >>$tmp/config.h
13635 rm -f $tmp/in
13636 if test x"$ac_file" != x-; then
13637 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13638 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13639 echo "$as_me: $ac_file is unchanged" >&6;}
13640 else
13641 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13643 X"$ac_file" : 'X\(//\)[^/]' \| \
13644 X"$ac_file" : 'X\(//\)$' \| \
13645 X"$ac_file" : 'X\(/\)' \| \
13646 . : '\(.\)' 2>/dev/null ||
13647 echo X"$ac_file" |
13648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13650 /^X\(\/\/\)$/{ s//\1/; q; }
13651 /^X\(\/\).*/{ s//\1/; q; }
13652 s/.*/./; q'`
13653 { if $as_mkdir_p; then
13654 mkdir -p "$ac_dir"
13655 else
13656 as_dir="$ac_dir"
13657 as_dirs=
13658 while test ! -d "$as_dir"; do
13659 as_dirs="$as_dir $as_dirs"
13660 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13662 X"$as_dir" : 'X\(//\)[^/]' \| \
13663 X"$as_dir" : 'X\(//\)$' \| \
13664 X"$as_dir" : 'X\(/\)' \| \
13665 . : '\(.\)' 2>/dev/null ||
13666 echo X"$as_dir" |
13667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13669 /^X\(\/\/\)$/{ s//\1/; q; }
13670 /^X\(\/\).*/{ s//\1/; q; }
13671 s/.*/./; q'`
13672 done
13673 test ! -n "$as_dirs" || mkdir $as_dirs
13674 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13675 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13676 { (exit 1); exit 1; }; }; }
13678 rm -f $ac_file
13679 mv $tmp/config.h $ac_file
13681 else
13682 cat $tmp/config.h
13683 rm -f $tmp/config.h
13685 done
13686 _ACEOF
13687 cat >>$CONFIG_STATUS <<\_ACEOF
13690 # CONFIG_COMMANDS section.
13692 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13693 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13694 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13695 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13696 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13697 X"$ac_dest" : 'X\(//\)[^/]' \| \
13698 X"$ac_dest" : 'X\(//\)$' \| \
13699 X"$ac_dest" : 'X\(/\)' \| \
13700 . : '\(.\)' 2>/dev/null ||
13701 echo X"$ac_dest" |
13702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13704 /^X\(\/\/\)$/{ s//\1/; q; }
13705 /^X\(\/\).*/{ s//\1/; q; }
13706 s/.*/./; q'`
13707 { if $as_mkdir_p; then
13708 mkdir -p "$ac_dir"
13709 else
13710 as_dir="$ac_dir"
13711 as_dirs=
13712 while test ! -d "$as_dir"; do
13713 as_dirs="$as_dir $as_dirs"
13714 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13716 X"$as_dir" : 'X\(//\)[^/]' \| \
13717 X"$as_dir" : 'X\(//\)$' \| \
13718 X"$as_dir" : 'X\(/\)' \| \
13719 . : '\(.\)' 2>/dev/null ||
13720 echo X"$as_dir" |
13721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13723 /^X\(\/\/\)$/{ s//\1/; q; }
13724 /^X\(\/\).*/{ s//\1/; q; }
13725 s/.*/./; q'`
13726 done
13727 test ! -n "$as_dirs" || mkdir $as_dirs
13728 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13729 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13730 { (exit 1); exit 1; }; }; }
13732 ac_builddir=.
13734 if test "$ac_dir" != .; then
13735 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13736 # A "../" for each directory in $ac_dir_suffix.
13737 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13738 else
13739 ac_dir_suffix= ac_top_builddir=
13742 case $srcdir in
13743 .) # No --srcdir option. We are building in place.
13744 ac_srcdir=.
13745 if test -z "$ac_top_builddir"; then
13746 ac_top_srcdir=.
13747 else
13748 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13749 fi ;;
13750 [\\/]* | ?:[\\/]* ) # Absolute path.
13751 ac_srcdir=$srcdir$ac_dir_suffix;
13752 ac_top_srcdir=$srcdir ;;
13753 *) # Relative path.
13754 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13755 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13756 esac
13758 # Do not use `cd foo && pwd` to compute absolute paths, because
13759 # the directories may not exist.
13760 case `pwd` in
13761 .) ac_abs_builddir="$ac_dir";;
13763 case "$ac_dir" in
13764 .) ac_abs_builddir=`pwd`;;
13765 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13766 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13767 esac;;
13768 esac
13769 case $ac_abs_builddir in
13770 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13772 case ${ac_top_builddir}. in
13773 .) ac_abs_top_builddir=$ac_abs_builddir;;
13774 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13775 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13776 esac;;
13777 esac
13778 case $ac_abs_builddir in
13779 .) ac_abs_srcdir=$ac_srcdir;;
13781 case $ac_srcdir in
13782 .) ac_abs_srcdir=$ac_abs_builddir;;
13783 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13784 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13785 esac;;
13786 esac
13787 case $ac_abs_builddir in
13788 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13790 case $ac_top_srcdir in
13791 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13792 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13793 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13794 esac;;
13795 esac
13798 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13799 echo "$as_me: executing $ac_dest commands" >&6;}
13800 case $ac_dest in
13801 default )
13802 case ${CONFIG_HEADERS} in
13803 *auto-host.h:config.in*)
13804 echo > cstamp-h ;;
13805 esac
13806 # Make sure all the subdirs exist.
13807 for d in $subdirs
13809 test -d $d || mkdir $d
13810 done
13811 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13812 # bootstrapping and the installation procedure can still use
13813 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13814 # FLAGS_TO_PASS has been modified to solve the problem there.
13815 # This is virtually a duplicate of what happens in configure.lang; we do
13816 # an extra check to make sure this only happens if ln -s can be used.
13817 if test "$symbolic_link" = "ln -s"; then
13818 for d in ${subdirs} fixinc ; do
13819 STARTDIR=`${PWDCMD-pwd}`
13820 cd $d
13821 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13823 rm -f $t
13824 $symbolic_link ../$t $t 2>/dev/null
13825 done
13826 cd $STARTDIR
13827 done
13828 else true ; fi
13830 esac
13831 done
13832 _ACEOF
13834 cat >>$CONFIG_STATUS <<\_ACEOF
13836 { (exit 0); exit 0; }
13837 _ACEOF
13838 chmod +x $CONFIG_STATUS
13839 ac_clean_files=$ac_clean_files_save
13842 # configure is writing to config.log, and then calls config.status.
13843 # config.status does its own redirection, appending to config.log.
13844 # Unfortunately, on DOS this fails, as config.log is still kept open
13845 # by configure, so config.status won't be able to write to it; its
13846 # output is simply discarded. So we exec the FD to /dev/null,
13847 # effectively closing config.log, so it can be properly (re)opened and
13848 # appended to by config.status. When coming back to configure, we
13849 # need to make the FD available again.
13850 if test "$no_create" != yes; then
13851 ac_cs_success=:
13852 ac_config_status_args=
13853 test "$silent" = yes &&
13854 ac_config_status_args="$ac_config_status_args --quiet"
13855 exec 5>/dev/null
13856 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13857 exec 5>>config.log
13858 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13859 # would make configure fail if this is the last instruction.
13860 $ac_cs_success || { (exit 1); exit 1; }