* pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
[official-gcc.git] / gcc / configure
blobaf887fbeb4b908758529b702a2190ec2c7a2ca9e
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 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 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 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
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-generated-files-in-srcdir
854 put copies of generated files in source dir
855 intended for creating source tarballs for users
856 without texinfo bison or flex.
857 --enable-werror-always enable -Werror always
858 --enable-werror enable -Werror in bootstrap stage2 and later
859 --enable-checking=LIST
860 enable expensive run-time checks. With LIST,
861 enable only specific categories of checks.
862 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
863 default is misc,tree,gc,rtlflag
864 --enable-coverage=LEVEL
865 enable compiler\'s code coverage collection.
866 Use to measure compiler performance and locate
867 unused parts of the compiler. With LEVEL, specify
868 optimization. Values are opt, noopt,
869 default is noopt
870 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
871 --enable-multilib enable library support for multiple ABIs
872 --enable-__cxa_atexit enable __cxa_atexit for C++
873 --enable-threads enable thread usage for target GCC
874 --enable-threads=LIB use LIB thread package for target GCC
875 --enable-objc-gc enable the use of Boehm's garbage collector with
876 the GNU Objective-C runtime
877 --disable-shared don't provide a shared libgcc
878 --enable-intermodule build the compiler in one step
879 --enable-languages=LIST specify which front-ends to build
880 --enable-initfini-array use .init_array/.fini_array sections
881 --enable-sjlj-exceptions
882 arrange to use setjmp/longjmp exception handling
883 --enable-libunwind-exceptions force use libunwind for exceptions
884 --disable-win32-registry
885 disable lookup of installation paths in the
886 Registry on Windows hosts
887 --enable-win32-registry enable registry lookup (default)
888 --enable-win32-registry=KEY
889 use KEY instead of GCC version as the last portion
890 of the registry key
891 --enable-maintainer-mode
892 enable make rules and dependencies not useful
893 (and sometimes confusing) to the casual installer
894 --enable-version-specific-runtime-libs
895 specify that runtime libraries should be
896 installed in a compiler-specific directory
898 Optional Packages:
899 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
900 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
901 --with-local-prefix=DIR specifies directory to put local include
902 --with-gxx-include-dir=DIR
903 specifies directory to put g++ header files
904 --with-cpp-install-dir=DIR
905 install the user visible C preprocessor in DIR
906 (relative to PREFIX) as well as PREFIX/bin
907 --with-gnu-ld arrange to work with GNU ld.
908 --with-ld arrange to use the specified ld (full pathname)
909 --with-gnu-as arrange to work with GNU as
910 --with-as arrange to use the specified as (full pathname)
911 --with-stabs arrange to use stabs instead of host debug format
912 --with-dwarf2 force the default debug format to be DWARF 2
913 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
914 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
915 --with-gc={page,zone} choose the garbage collection mechanism to use
916 with the compiler
917 --with-system-zlib use installed libz
918 --with-slibdir=DIR shared libraries in DIR LIBDIR
920 Some influential environment variables:
921 CC C compiler command
922 CFLAGS C compiler flags
923 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
924 nonstandard directory <lib dir>
925 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
926 headers in a nonstandard directory <include dir>
927 CPP C preprocessor
929 Use these variables to override the choices made by `configure' or to help
930 it to find libraries and programs with nonstandard names/locations.
932 _ACEOF
935 if test "$ac_init_help" = "recursive"; then
936 # If there are subdirs, report their specific --help.
937 ac_popdir=`pwd`
938 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
939 test -d $ac_dir || continue
940 ac_builddir=.
942 if test "$ac_dir" != .; then
943 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
944 # A "../" for each directory in $ac_dir_suffix.
945 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
946 else
947 ac_dir_suffix= ac_top_builddir=
950 case $srcdir in
951 .) # No --srcdir option. We are building in place.
952 ac_srcdir=.
953 if test -z "$ac_top_builddir"; then
954 ac_top_srcdir=.
955 else
956 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
957 fi ;;
958 [\\/]* | ?:[\\/]* ) # Absolute path.
959 ac_srcdir=$srcdir$ac_dir_suffix;
960 ac_top_srcdir=$srcdir ;;
961 *) # Relative path.
962 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
963 ac_top_srcdir=$ac_top_builddir$srcdir ;;
964 esac
966 # Do not use `cd foo && pwd` to compute absolute paths, because
967 # the directories may not exist.
968 case `pwd` in
969 .) ac_abs_builddir="$ac_dir";;
971 case "$ac_dir" in
972 .) ac_abs_builddir=`pwd`;;
973 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
974 *) ac_abs_builddir=`pwd`/"$ac_dir";;
975 esac;;
976 esac
977 case $ac_abs_builddir in
978 .) ac_abs_top_builddir=${ac_top_builddir}.;;
980 case ${ac_top_builddir}. in
981 .) ac_abs_top_builddir=$ac_abs_builddir;;
982 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
983 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
984 esac;;
985 esac
986 case $ac_abs_builddir in
987 .) ac_abs_srcdir=$ac_srcdir;;
989 case $ac_srcdir in
990 .) ac_abs_srcdir=$ac_abs_builddir;;
991 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
992 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
993 esac;;
994 esac
995 case $ac_abs_builddir in
996 .) ac_abs_top_srcdir=$ac_top_srcdir;;
998 case $ac_top_srcdir in
999 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1000 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1001 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1002 esac;;
1003 esac
1005 cd $ac_dir
1006 # Check for guested configure; otherwise get Cygnus style configure.
1007 if test -f $ac_srcdir/configure.gnu; then
1008 echo
1009 $SHELL $ac_srcdir/configure.gnu --help=recursive
1010 elif test -f $ac_srcdir/configure; then
1011 echo
1012 $SHELL $ac_srcdir/configure --help=recursive
1013 elif test -f $ac_srcdir/configure.ac ||
1014 test -f $ac_srcdir/configure.in; then
1015 echo
1016 $ac_configure --help
1017 else
1018 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1020 cd "$ac_popdir"
1021 done
1024 test -n "$ac_init_help" && exit 0
1025 if $ac_init_version; then
1026 cat <<\_ACEOF
1028 Copyright (C) 2003 Free Software Foundation, Inc.
1029 This configure script is free software; the Free Software Foundation
1030 gives unlimited permission to copy, distribute and modify it.
1031 _ACEOF
1032 exit 0
1034 exec 5>config.log
1035 cat >&5 <<_ACEOF
1036 This file contains any messages produced by compilers while
1037 running configure, to aid debugging if configure makes a mistake.
1039 It was created by $as_me, which was
1040 generated by GNU Autoconf 2.59. Invocation command line was
1042 $ $0 $@
1044 _ACEOF
1046 cat <<_ASUNAME
1047 ## --------- ##
1048 ## Platform. ##
1049 ## --------- ##
1051 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1052 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1053 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1054 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1055 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1057 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1058 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1060 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1061 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1062 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1063 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1064 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1065 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1066 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1068 _ASUNAME
1070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1071 for as_dir in $PATH
1073 IFS=$as_save_IFS
1074 test -z "$as_dir" && as_dir=.
1075 echo "PATH: $as_dir"
1076 done
1078 } >&5
1080 cat >&5 <<_ACEOF
1083 ## ----------- ##
1084 ## Core tests. ##
1085 ## ----------- ##
1087 _ACEOF
1090 # Keep a trace of the command line.
1091 # Strip out --no-create and --no-recursion so they do not pile up.
1092 # Strip out --silent because we don't want to record it for future runs.
1093 # Also quote any args containing shell meta-characters.
1094 # Make two passes to allow for proper duplicate-argument suppression.
1095 ac_configure_args=
1096 ac_configure_args0=
1097 ac_configure_args1=
1098 ac_sep=
1099 ac_must_keep_next=false
1100 for ac_pass in 1 2
1102 for ac_arg
1104 case $ac_arg in
1105 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 continue ;;
1109 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1110 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1111 esac
1112 case $ac_pass in
1113 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1115 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1116 if test $ac_must_keep_next = true; then
1117 ac_must_keep_next=false # Got value, back to normal.
1118 else
1119 case $ac_arg in
1120 *=* | --config-cache | -C | -disable-* | --disable-* \
1121 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1122 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1123 | -with-* | --with-* | -without-* | --without-* | --x)
1124 case "$ac_configure_args0 " in
1125 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1126 esac
1128 -* ) ac_must_keep_next=true ;;
1129 esac
1131 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1132 # Get rid of the leading space.
1133 ac_sep=" "
1135 esac
1136 done
1137 done
1138 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1139 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1141 # When interrupted or exit'd, cleanup temporary files, and complete
1142 # config.log. We remove comments because anyway the quotes in there
1143 # would cause problems or look ugly.
1144 # WARNING: Be sure not to use single quotes in there, as some shells,
1145 # such as our DU 5.0 friend, will then `close' the trap.
1146 trap 'exit_status=$?
1147 # Save into config.log some information that might help in debugging.
1149 echo
1151 cat <<\_ASBOX
1152 ## ---------------- ##
1153 ## Cache variables. ##
1154 ## ---------------- ##
1155 _ASBOX
1156 echo
1157 # The following way of writing the cache mishandles newlines in values,
1159 (set) 2>&1 |
1160 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1161 *ac_space=\ *)
1162 sed -n \
1163 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1167 sed -n \
1168 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1170 esac;
1172 echo
1174 cat <<\_ASBOX
1175 ## ----------------- ##
1176 ## Output variables. ##
1177 ## ----------------- ##
1178 _ASBOX
1179 echo
1180 for ac_var in $ac_subst_vars
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1184 done | sort
1185 echo
1187 if test -n "$ac_subst_files"; then
1188 cat <<\_ASBOX
1189 ## ------------- ##
1190 ## Output files. ##
1191 ## ------------- ##
1192 _ASBOX
1193 echo
1194 for ac_var in $ac_subst_files
1196 eval ac_val=$`echo $ac_var`
1197 echo "$ac_var='"'"'$ac_val'"'"'"
1198 done | sort
1199 echo
1202 if test -s confdefs.h; then
1203 cat <<\_ASBOX
1204 ## ----------- ##
1205 ## confdefs.h. ##
1206 ## ----------- ##
1207 _ASBOX
1208 echo
1209 sed "/^$/d" confdefs.h | sort
1210 echo
1212 test "$ac_signal" != 0 &&
1213 echo "$as_me: caught signal $ac_signal"
1214 echo "$as_me: exit $exit_status"
1215 } >&5
1216 rm -f core *.core &&
1217 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1218 exit $exit_status
1220 for ac_signal in 1 2 13 15; do
1221 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1222 done
1223 ac_signal=0
1225 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1226 rm -rf conftest* confdefs.h
1227 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1228 echo >confdefs.h
1230 # Predefined preprocessor variables.
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_NAME "$PACKAGE_NAME"
1234 _ACEOF
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1239 _ACEOF
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1244 _ACEOF
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_STRING "$PACKAGE_STRING"
1249 _ACEOF
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1254 _ACEOF
1257 # Let the site file select an alternate cache file if it wants to.
1258 # Prefer explicitly selected file to automatically selected ones.
1259 if test -z "$CONFIG_SITE"; then
1260 if test "x$prefix" != xNONE; then
1261 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1262 else
1263 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1266 for ac_site_file in $CONFIG_SITE; do
1267 if test -r "$ac_site_file"; then
1268 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1269 echo "$as_me: loading site script $ac_site_file" >&6;}
1270 sed 's/^/| /' "$ac_site_file" >&5
1271 . "$ac_site_file"
1273 done
1275 if test -r "$cache_file"; then
1276 # Some versions of bash will fail to source /dev/null (special
1277 # files actually), so we avoid doing that.
1278 if test -f "$cache_file"; then
1279 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1280 echo "$as_me: loading cache $cache_file" >&6;}
1281 case $cache_file in
1282 [\\/]* | ?:[\\/]* ) . $cache_file;;
1283 *) . ./$cache_file;;
1284 esac
1286 else
1287 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1288 echo "$as_me: creating cache $cache_file" >&6;}
1289 >$cache_file
1292 # Check that the precious variables saved in the cache have kept the same
1293 # value.
1294 ac_cache_corrupted=false
1295 for ac_var in `(set) 2>&1 |
1296 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1297 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1298 eval ac_new_set=\$ac_env_${ac_var}_set
1299 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1300 eval ac_new_val="\$ac_env_${ac_var}_value"
1301 case $ac_old_set,$ac_new_set in
1302 set,)
1303 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1304 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1305 ac_cache_corrupted=: ;;
1306 ,set)
1307 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1308 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1309 ac_cache_corrupted=: ;;
1310 ,);;
1312 if test "x$ac_old_val" != "x$ac_new_val"; then
1313 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1314 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1315 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1316 echo "$as_me: former value: $ac_old_val" >&2;}
1317 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1318 echo "$as_me: current value: $ac_new_val" >&2;}
1319 ac_cache_corrupted=:
1320 fi;;
1321 esac
1322 # Pass precious variables to config.status.
1323 if test "$ac_new_set" = set; then
1324 case $ac_new_val in
1325 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1327 *) ac_arg=$ac_var=$ac_new_val ;;
1328 esac
1329 case " $ac_configure_args " in
1330 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1331 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1332 esac
1334 done
1335 if $ac_cache_corrupted; then
1336 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1337 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1338 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1339 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1340 { (exit 1); exit 1; }; }
1343 ac_ext=c
1344 ac_cpp='$CPP $CPPFLAGS'
1345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1368 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1371 # Determine the host, build, and target systems
1372 ac_aux_dir=
1373 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1374 if test -f $ac_dir/install-sh; then
1375 ac_aux_dir=$ac_dir
1376 ac_install_sh="$ac_aux_dir/install-sh -c"
1377 break
1378 elif test -f $ac_dir/install.sh; then
1379 ac_aux_dir=$ac_dir
1380 ac_install_sh="$ac_aux_dir/install.sh -c"
1381 break
1382 elif test -f $ac_dir/shtool; then
1383 ac_aux_dir=$ac_dir
1384 ac_install_sh="$ac_aux_dir/shtool install -c"
1385 break
1387 done
1388 if test -z "$ac_aux_dir"; then
1389 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1390 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1391 { (exit 1); exit 1; }; }
1393 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1394 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1395 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1397 # Make sure we can run config.sub.
1398 $ac_config_sub sun4 >/dev/null 2>&1 ||
1399 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1400 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1401 { (exit 1); exit 1; }; }
1403 echo "$as_me:$LINENO: checking build system type" >&5
1404 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1405 if test "${ac_cv_build+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 else
1408 ac_cv_build_alias=$build_alias
1409 test -z "$ac_cv_build_alias" &&
1410 ac_cv_build_alias=`$ac_config_guess`
1411 test -z "$ac_cv_build_alias" &&
1412 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1413 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1414 { (exit 1); exit 1; }; }
1415 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1416 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1417 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1418 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1422 echo "${ECHO_T}$ac_cv_build" >&6
1423 build=$ac_cv_build
1424 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1425 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1426 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429 echo "$as_me:$LINENO: checking host system type" >&5
1430 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1431 if test "${ac_cv_host+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 else
1434 ac_cv_host_alias=$host_alias
1435 test -z "$ac_cv_host_alias" &&
1436 ac_cv_host_alias=$ac_cv_build_alias
1437 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1438 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1439 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1440 { (exit 1); exit 1; }; }
1443 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1444 echo "${ECHO_T}$ac_cv_host" >&6
1445 host=$ac_cv_host
1446 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1447 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1448 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1451 echo "$as_me:$LINENO: checking target system type" >&5
1452 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1453 if test "${ac_cv_target+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 else
1456 ac_cv_target_alias=$target_alias
1457 test "x$ac_cv_target_alias" = "x" &&
1458 ac_cv_target_alias=$ac_cv_host_alias
1459 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1460 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1461 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1462 { (exit 1); exit 1; }; }
1465 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1466 echo "${ECHO_T}$ac_cv_target" >&6
1467 target=$ac_cv_target
1468 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1469 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1470 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1473 # The aliases save the names the user supplied, while $host etc.
1474 # will get canonicalized.
1475 test -n "$target_alias" &&
1476 test "$program_prefix$program_suffix$program_transform_name" = \
1477 NONENONEs,x,x, &&
1478 program_prefix=${target_alias}-
1480 # Determine the noncanonical target name, for directory use.
1481 case ${build_alias} in
1482 "") build_noncanonical=${build} ;;
1483 *) build_noncanonical=${build_alias} ;;
1484 esac
1486 case ${host_alias} in
1487 "") host_noncanonical=${build_noncanonical} ;;
1488 *) host_noncanonical=${host_alias} ;;
1489 esac
1491 case ${target_alias} in
1492 "") target_noncanonical=${host_noncanonical} ;;
1493 *) target_noncanonical=${target_alias} ;;
1494 esac
1497 # Determine the target- and build-specific subdirectories
1498 # Prefix 'build-' so this never conflicts with target_subdir.
1499 build_subdir="build-${build_noncanonical}"
1500 # Not really a subdirectory, but here for completeness.
1501 host_subdir=.
1502 # No prefix.
1503 target_subdir=${target_noncanonical}
1506 # Set program_transform_name
1507 test "$program_prefix" != NONE &&
1508 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1509 # Use a double $ so make ignores it.
1510 test "$program_suffix" != NONE &&
1511 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1512 # Double any \ or $. echo might interpret backslashes.
1513 # By default was `s,x,x', remove it if useless.
1514 cat <<\_ACEOF >conftest.sed
1515 s/[\\$]/&&/g;s/;s,x,x,$//
1516 _ACEOF
1517 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1518 rm conftest.sed
1521 # Check for bogus environment variables.
1522 # Test if LIBRARY_PATH contains the notation for the current directory
1523 # since this would lead to problems installing/building glibc.
1524 # LIBRARY_PATH contains the current directory if one of the following
1525 # is true:
1526 # - one of the terminals (":" and ";") is the first or last sign
1527 # - two terminals occur directly after each other
1528 # - the path contains an element with a dot in it
1529 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1530 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1531 case ${LIBRARY_PATH} in
1532 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1533 library_path_setting="contains current directory"
1536 library_path_setting="ok"
1538 esac
1539 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1540 echo "${ECHO_T}$library_path_setting" >&6
1541 if test "$library_path_setting" != "ok"; then
1542 { { echo "$as_me:$LINENO: error:
1543 *** LIBRARY_PATH shouldn't contain the current directory when
1544 *** building gcc. Please change the environment variable
1545 *** and run configure again." >&5
1546 echo "$as_me: error:
1547 *** LIBRARY_PATH shouldn't contain the current directory when
1548 *** building gcc. Please change the environment variable
1549 *** and run configure again." >&2;}
1550 { (exit 1); exit 1; }; }
1553 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1554 # since this would lead to problems installing/building glibc.
1555 # GCC_EXEC_PREFIX contains the current directory if one of the following
1556 # is true:
1557 # - one of the terminals (":" and ";") is the first or last sign
1558 # - two terminals occur directly after each other
1559 # - the path contains an element with a dot in it
1560 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1561 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1562 case ${GCC_EXEC_PREFIX} in
1563 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1564 gcc_exec_prefix_setting="contains current directory"
1567 gcc_exec_prefix_setting="ok"
1569 esac
1570 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1571 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1572 if test "$gcc_exec_prefix_setting" != "ok"; then
1573 { { echo "$as_me:$LINENO: error:
1574 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1575 *** building gcc. Please change the environment variable
1576 *** and run configure again." >&5
1577 echo "$as_me: error:
1578 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1579 *** building gcc. Please change the environment variable
1580 *** and run configure again." >&2;}
1581 { (exit 1); exit 1; }; }
1584 # -----------
1585 # Directories
1586 # -----------
1588 # Specify the local prefix
1589 local_prefix=
1591 # Check whether --with-local-prefix or --without-local-prefix was given.
1592 if test "${with_local_prefix+set}" = set; then
1593 withval="$with_local_prefix"
1594 case "${withval}" in
1595 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1596 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1597 { (exit 1); exit 1; }; } ;;
1598 no) ;;
1599 *) local_prefix=$with_local_prefix ;;
1600 esac
1603 # Default local prefix if it is empty
1604 if test x$local_prefix = x; then
1605 local_prefix=/usr/local
1608 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1609 # passed in by the toplevel make and thus we'd get different behavior
1610 # depending on where we built the sources.
1611 gcc_gxx_include_dir=
1612 # Specify the g++ header file directory
1614 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1615 if test "${with_gxx_include_dir+set}" = set; then
1616 withval="$with_gxx_include_dir"
1617 case "${withval}" in
1618 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1619 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1620 { (exit 1); exit 1; }; } ;;
1621 no) ;;
1622 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1623 esac
1626 if test x${gcc_gxx_include_dir} = x; then
1627 if test x${enable_version_specific_runtime_libs} = xyes; then
1628 gcc_gxx_include_dir='${libsubdir}/include/c++'
1629 else
1630 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1631 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1636 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1637 if test "${with_cpp_install_dir+set}" = set; then
1638 withval="$with_cpp_install_dir"
1639 if test x$withval = xyes; then
1640 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1641 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1642 { (exit 1); exit 1; }; }
1643 elif test x$withval != xno; then
1644 cpp_install_dir=$withval
1648 # We would like to our source tree to be readonly. However when releases or
1649 # pre-releases are generated, the flex/bison generated files as well as the
1650 # various formats of manuals need to be included along with the rest of the
1651 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1652 # just that.
1654 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1655 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1656 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1657 if test "${enable_generated_files_in_srcdir+set}" = set; then
1658 enableval="$enable_generated_files_in_srcdir"
1659 generated_files_in_srcdir=$enableval
1660 else
1661 generated_files_in_srcdir=no
1664 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1665 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1667 if test "$generated_files_in_srcdir" = "yes"; then
1668 GENINSRC=''
1669 else
1670 GENINSRC='#'
1674 # -------------------
1675 # Find default linker
1676 # -------------------
1678 # With GNU ld
1680 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1681 if test "${with_gnu_ld+set}" = set; then
1682 withval="$with_gnu_ld"
1683 gnu_ld_flag="$with_gnu_ld"
1684 else
1685 gnu_ld_flag=no
1688 # With pre-defined ld
1690 # Check whether --with-ld or --without-ld was given.
1691 if test "${with_ld+set}" = set; then
1692 withval="$with_ld"
1693 DEFAULT_LINKER="$with_ld"
1695 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1696 if test ! -x "$DEFAULT_LINKER"; then
1697 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1698 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1699 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1700 gnu_ld_flag=yes
1703 cat >>confdefs.h <<_ACEOF
1704 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1705 _ACEOF
1709 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1710 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1711 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1712 if test x"$gnu_ld_flag" = x"no"; then
1713 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1714 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1715 else
1716 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1717 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1719 else
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1724 # ----------------------
1725 # Find default assembler
1726 # ----------------------
1728 # With GNU as
1730 # Check whether --with-gnu-as or --without-gnu-as was given.
1731 if test "${with_gnu_as+set}" = set; then
1732 withval="$with_gnu_as"
1733 gas_flag="$with_gnu_as"
1734 else
1735 gas_flag=no
1739 # Check whether --with-as or --without-as was given.
1740 if test "${with_as+set}" = set; then
1741 withval="$with_as"
1742 DEFAULT_ASSEMBLER="$with_as"
1744 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1745 if test ! -x "$DEFAULT_ASSEMBLER"; then
1746 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1747 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1748 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1749 gas_flag=yes
1752 cat >>confdefs.h <<_ACEOF
1753 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1754 _ACEOF
1758 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1759 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1760 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1761 if test x"$gas_flag" = x"no"; then
1762 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1763 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1764 else
1765 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1766 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1768 else
1769 echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6
1773 # ---------------
1774 # Find C compiler
1775 # ---------------
1777 # If a non-executable a.out is present (e.g. created by GNU as above even if
1778 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1779 # file, even when creating an executable, so an execution test fails.
1780 # Remove possible default executable files to avoid this.
1782 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1783 # Autoconf includes it.
1784 rm -f a.out a.exe b.out
1786 # Find the native compiler
1787 ac_ext=c
1788 ac_cpp='$CPP $CPPFLAGS'
1789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1792 if test -n "$ac_tool_prefix"; then
1793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1794 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_CC+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1802 else
1803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804 for as_dir in $PATH
1806 IFS=$as_save_IFS
1807 test -z "$as_dir" && as_dir=.
1808 for ac_exec_ext in '' $ac_executable_extensions; do
1809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1810 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 break 2
1814 done
1815 done
1819 CC=$ac_cv_prog_CC
1820 if test -n "$CC"; then
1821 echo "$as_me:$LINENO: result: $CC" >&5
1822 echo "${ECHO_T}$CC" >&6
1823 else
1824 echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1829 if test -z "$ac_cv_prog_CC"; then
1830 ac_ct_CC=$CC
1831 # Extract the first word of "gcc", so it can be a program name with args.
1832 set dummy gcc; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838 if test -n "$ac_ct_CC"; then
1839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1840 else
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_ac_ct_CC="gcc"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1852 done
1853 done
1857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1858 if test -n "$ac_ct_CC"; then
1859 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1860 echo "${ECHO_T}$ac_ct_CC" >&6
1861 else
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1866 CC=$ac_ct_CC
1867 else
1868 CC="$ac_cv_prog_CC"
1871 if test -z "$CC"; then
1872 if test -n "$ac_tool_prefix"; then
1873 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1874 set dummy ${ac_tool_prefix}cc; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 if test -n "$CC"; then
1881 ac_cv_prog_CC="$CC" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_CC="${ac_tool_prefix}cc"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1894 done
1895 done
1899 CC=$ac_cv_prog_CC
1900 if test -n "$CC"; then
1901 echo "$as_me:$LINENO: result: $CC" >&5
1902 echo "${ECHO_T}$CC" >&6
1903 else
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1909 if test -z "$ac_cv_prog_CC"; then
1910 ac_ct_CC=$CC
1911 # Extract the first word of "cc", so it can be a program name with args.
1912 set dummy cc; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918 if test -n "$ac_ct_CC"; then
1919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1920 else
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1924 IFS=$as_save_IFS
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928 ac_cv_prog_ac_ct_CC="cc"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 break 2
1932 done
1933 done
1937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1938 if test -n "$ac_ct_CC"; then
1939 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1940 echo "${ECHO_T}$ac_ct_CC" >&6
1941 else
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1946 CC=$ac_ct_CC
1947 else
1948 CC="$ac_cv_prog_CC"
1952 if test -z "$CC"; then
1953 # Extract the first word of "cc", so it can be a program name with args.
1954 set dummy cc; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 if test -n "$CC"; then
1961 ac_cv_prog_CC="$CC" # Let the user override the test.
1962 else
1963 ac_prog_rejected=no
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1972 ac_prog_rejected=yes
1973 continue
1975 ac_cv_prog_CC="cc"
1976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977 break 2
1979 done
1980 done
1982 if test $ac_prog_rejected = yes; then
1983 # We found a bogon in the path, so make sure we never use it.
1984 set dummy $ac_cv_prog_CC
1985 shift
1986 if test $# != 0; then
1987 # We chose a different compiler from the bogus one.
1988 # However, it has the same basename, so the bogon will be chosen
1989 # first if we set CC to just the basename; use the full file name.
1990 shift
1991 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1996 CC=$ac_cv_prog_CC
1997 if test -n "$CC"; then
1998 echo "$as_me:$LINENO: result: $CC" >&5
1999 echo "${ECHO_T}$CC" >&6
2000 else
2001 echo "$as_me:$LINENO: result: no" >&5
2002 echo "${ECHO_T}no" >&6
2006 if test -z "$CC"; then
2007 if test -n "$ac_tool_prefix"; then
2008 for ac_prog in cl
2010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2027 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 break 2
2031 done
2032 done
2036 CC=$ac_cv_prog_CC
2037 if test -n "$CC"; then
2038 echo "$as_me:$LINENO: result: $CC" >&5
2039 echo "${ECHO_T}$CC" >&6
2040 else
2041 echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2045 test -n "$CC" && break
2046 done
2048 if test -z "$CC"; then
2049 ac_ct_CC=$CC
2050 for ac_prog in cl
2052 # Extract the first word of "$ac_prog", so it can be a program name with args.
2053 set dummy $ac_prog; ac_word=$2
2054 echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059 if test -n "$ac_ct_CC"; then
2060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069 ac_cv_prog_ac_ct_CC="$ac_prog"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 break 2
2073 done
2074 done
2078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2079 if test -n "$ac_ct_CC"; then
2080 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2081 echo "${ECHO_T}$ac_ct_CC" >&6
2082 else
2083 echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6
2087 test -n "$ac_ct_CC" && break
2088 done
2090 CC=$ac_ct_CC
2096 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2097 See \`config.log' for more details." >&5
2098 echo "$as_me: error: no acceptable C compiler found in \$PATH
2099 See \`config.log' for more details." >&2;}
2100 { (exit 1); exit 1; }; }
2102 # Provide some information about the compiler.
2103 echo "$as_me:$LINENO:" \
2104 "checking for C compiler version" >&5
2105 ac_compiler=`set X $ac_compile; echo $2`
2106 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2107 (eval $ac_compiler --version </dev/null >&5) 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }
2111 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2112 (eval $ac_compiler -v </dev/null >&5) 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }
2116 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2117 (eval $ac_compiler -V </dev/null >&5) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }
2122 cat >conftest.$ac_ext <<_ACEOF
2123 /* confdefs.h. */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2130 main ()
2134 return 0;
2136 _ACEOF
2137 ac_clean_files_save=$ac_clean_files
2138 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2139 # Try to create an executable without -o first, disregard a.out.
2140 # It will help us diagnose broken compilers, and finding out an intuition
2141 # of exeext.
2142 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2143 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2144 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2145 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2146 (eval $ac_link_default) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; then
2150 # Find the output, starting from the most likely. This scheme is
2151 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2152 # resort.
2154 # Be careful to initialize this variable, since it used to be cached.
2155 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2156 ac_cv_exeext=
2157 # b.out is created by i960 compilers.
2158 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2160 test -f "$ac_file" || continue
2161 case $ac_file in
2162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2164 conftest.$ac_ext )
2165 # This is the source file.
2167 [ab].out )
2168 # We found the default executable, but exeext='' is most
2169 # certainly right.
2170 break;;
2171 *.* )
2172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173 # FIXME: I believe we export ac_cv_exeext for Libtool,
2174 # but it would be cool to find out if it's true. Does anybody
2175 # maintain Libtool? --akim.
2176 export ac_cv_exeext
2177 break;;
2179 break;;
2180 esac
2181 done
2182 else
2183 echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2186 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: C compiler cannot create executables
2189 See \`config.log' for more details." >&2;}
2190 { (exit 77); exit 77; }; }
2193 ac_exeext=$ac_cv_exeext
2194 echo "$as_me:$LINENO: result: $ac_file" >&5
2195 echo "${ECHO_T}$ac_file" >&6
2197 # Check the compiler produces executables we can run. If not, either
2198 # the compiler is broken, or we cross compile.
2199 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2200 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2201 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2202 # If not cross compiling, check that we can run a simple program.
2203 if test "$cross_compiling" != yes; then
2204 if { ac_try='./$ac_file'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 (eval $ac_try) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; }; then
2210 cross_compiling=no
2211 else
2212 if test "$cross_compiling" = maybe; then
2213 cross_compiling=yes
2214 else
2215 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2216 If you meant to cross compile, use \`--host'.
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: cannot run C compiled programs.
2219 If you meant to cross compile, use \`--host'.
2220 See \`config.log' for more details." >&2;}
2221 { (exit 1); exit 1; }; }
2225 echo "$as_me:$LINENO: result: yes" >&5
2226 echo "${ECHO_T}yes" >&6
2228 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2229 ac_clean_files=$ac_clean_files_save
2230 # Check the compiler produces executables we can run. If not, either
2231 # the compiler is broken, or we cross compile.
2232 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2233 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2234 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2235 echo "${ECHO_T}$cross_compiling" >&6
2237 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2238 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2240 (eval $ac_link) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; then
2244 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2245 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2246 # work properly (i.e., refer to `conftest.exe'), while it won't with
2247 # `rm'.
2248 for ac_file in conftest.exe conftest conftest.*; do
2249 test -f "$ac_file" || continue
2250 case $ac_file in
2251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2252 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2253 export ac_cv_exeext
2254 break;;
2255 * ) break;;
2256 esac
2257 done
2258 else
2259 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2262 See \`config.log' for more details." >&2;}
2263 { (exit 1); exit 1; }; }
2266 rm -f conftest$ac_cv_exeext
2267 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2268 echo "${ECHO_T}$ac_cv_exeext" >&6
2270 rm -f conftest.$ac_ext
2271 EXEEXT=$ac_cv_exeext
2272 ac_exeext=$EXEEXT
2273 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2274 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2275 if test "${ac_cv_objext+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278 cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h. */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2286 main ()
2290 return 0;
2292 _ACEOF
2293 rm -f conftest.o conftest.obj
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 (eval $ac_compile) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; then
2299 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2300 case $ac_file in
2301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2302 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2303 break;;
2304 esac
2305 done
2306 else
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2310 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2313 See \`config.log' for more details." >&2;}
2314 { (exit 1); exit 1; }; }
2317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2319 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2320 echo "${ECHO_T}$ac_cv_objext" >&6
2321 OBJEXT=$ac_cv_objext
2322 ac_objext=$OBJEXT
2323 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2324 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2325 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 cat >conftest.$ac_ext <<_ACEOF
2329 /* confdefs.h. */
2330 _ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h. */
2336 main ()
2338 #ifndef __GNUC__
2339 choke me
2340 #endif
2343 return 0;
2345 _ACEOF
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>conftest.er1
2349 ac_status=$?
2350 grep -v '^ *+' conftest.er1 >conftest.err
2351 rm -f conftest.er1
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 ac_compiler_gnu=yes
2368 else
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2372 ac_compiler_gnu=no
2374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2375 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2378 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2379 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2380 GCC=`test $ac_compiler_gnu = yes && echo yes`
2381 ac_test_CFLAGS=${CFLAGS+set}
2382 ac_save_CFLAGS=$CFLAGS
2383 CFLAGS="-g"
2384 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2385 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2386 if test "${ac_cv_prog_cc_g+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389 cat >conftest.$ac_ext <<_ACEOF
2390 /* confdefs.h. */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2397 main ()
2401 return 0;
2403 _ACEOF
2404 rm -f conftest.$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406 (eval $ac_compile) 2>conftest.er1
2407 ac_status=$?
2408 grep -v '^ *+' conftest.er1 >conftest.err
2409 rm -f conftest.er1
2410 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } &&
2413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; } &&
2419 { ac_try='test -s conftest.$ac_objext'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2425 ac_cv_prog_cc_g=yes
2426 else
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2430 ac_cv_prog_cc_g=no
2432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2434 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2435 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2436 if test "$ac_test_CFLAGS" = set; then
2437 CFLAGS=$ac_save_CFLAGS
2438 elif test $ac_cv_prog_cc_g = yes; then
2439 if test "$GCC" = yes; then
2440 CFLAGS="-g -O2"
2441 else
2442 CFLAGS="-g"
2444 else
2445 if test "$GCC" = yes; then
2446 CFLAGS="-O2"
2447 else
2448 CFLAGS=
2451 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2452 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2453 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456 ac_cv_prog_cc_stdc=no
2457 ac_save_CC=$CC
2458 cat >conftest.$ac_ext <<_ACEOF
2459 /* confdefs.h. */
2460 _ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h. */
2464 #include <stdarg.h>
2465 #include <stdio.h>
2466 #include <sys/types.h>
2467 #include <sys/stat.h>
2468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2469 struct buf { int x; };
2470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2471 static char *e (p, i)
2472 char **p;
2473 int i;
2475 return p[i];
2477 static char *f (char * (*g) (char **, int), char **p, ...)
2479 char *s;
2480 va_list v;
2481 va_start (v,p);
2482 s = g (p, va_arg (v,int));
2483 va_end (v);
2484 return s;
2487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2488 function prototypes and stuff, but not '\xHH' hex character constants.
2489 These don't provoke an error unfortunately, instead are silently treated
2490 as 'x'. The following induces an error, until -std1 is added to get
2491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2492 array size at least. It's necessary to write '\x00'==0 to get something
2493 that's true only with -std1. */
2494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2496 int test (int i, double x);
2497 struct s1 {int (*f) (int a);};
2498 struct s2 {int (*f) (double a);};
2499 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2500 int argc;
2501 char **argv;
2503 main ()
2505 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2507 return 0;
2509 _ACEOF
2510 # Don't try gcc -ansi; that turns off useful extensions and
2511 # breaks some systems' header files.
2512 # AIX -qlanglvl=ansi
2513 # Ultrix and OSF/1 -std1
2514 # HP-UX 10.20 and later -Ae
2515 # HP-UX older versions -Aa -D_HPUX_SOURCE
2516 # SVR4 -Xc -D__EXTENSIONS__
2517 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2519 CC="$ac_save_CC $ac_arg"
2520 rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522 (eval $ac_compile) 2>conftest.er1
2523 ac_status=$?
2524 grep -v '^ *+' conftest.er1 >conftest.err
2525 rm -f conftest.er1
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 (eval $ac_try) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 ac_cv_prog_cc_stdc=$ac_arg
2542 break
2543 else
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2548 rm -f conftest.err conftest.$ac_objext
2549 done
2550 rm -f conftest.$ac_ext conftest.$ac_objext
2551 CC=$ac_save_CC
2555 case "x$ac_cv_prog_cc_stdc" in
2556 x|xno)
2557 echo "$as_me:$LINENO: result: none needed" >&5
2558 echo "${ECHO_T}none needed" >&6 ;;
2560 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2561 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2562 CC="$CC $ac_cv_prog_cc_stdc" ;;
2563 esac
2565 # Some people use a C++ compiler to compile C. Since we use `exit',
2566 # in C++ we need to declare it. In case someone uses the same compiler
2567 # for both compiling C and C++ we need to have the C++ compiler decide
2568 # the declaration of exit, since it's the most demanding environment.
2569 cat >conftest.$ac_ext <<_ACEOF
2570 #ifndef __cplusplus
2571 choke me
2572 #endif
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>conftest.er1
2577 ac_status=$?
2578 grep -v '^ *+' conftest.er1 >conftest.err
2579 rm -f conftest.er1
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 (eval $ac_try) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 for ac_declaration in \
2596 '' \
2597 'extern "C" void std::exit (int) throw (); using std::exit;' \
2598 'extern "C" void std::exit (int); using std::exit;' \
2599 'extern "C" void exit (int) throw ();' \
2600 'extern "C" void exit (int);' \
2601 'void exit (int);'
2603 cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h. */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2609 $ac_declaration
2610 #include <stdlib.h>
2612 main ()
2614 exit (42);
2616 return 0;
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
2622 ac_status=$?
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; } &&
2634 { ac_try='test -s conftest.$ac_objext'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2641 else
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2645 continue
2647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2648 cat >conftest.$ac_ext <<_ACEOF
2649 /* confdefs.h. */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2654 $ac_declaration
2656 main ()
2658 exit (42);
2660 return 0;
2662 _ACEOF
2663 rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665 (eval $ac_compile) 2>conftest.er1
2666 ac_status=$?
2667 grep -v '^ *+' conftest.er1 >conftest.err
2668 rm -f conftest.er1
2669 cat conftest.err >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } &&
2672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; } &&
2678 { ac_try='test -s conftest.$ac_objext'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; }; then
2684 break
2685 else
2686 echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2691 done
2692 rm -f conftest*
2693 if test -n "$ac_declaration"; then
2694 echo '#ifdef __cplusplus' >>confdefs.h
2695 echo $ac_declaration >>confdefs.h
2696 echo '#endif' >>confdefs.h
2699 else
2700 echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2705 ac_ext=c
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2711 if test "x$CC" != xcc; then
2712 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2713 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2714 else
2715 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2716 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2718 set dummy $CC; ac_cc=`echo $2 |
2719 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2720 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h. */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2731 main ()
2735 return 0;
2737 _ACEOF
2738 # Make sure it works both with $CC and with simple cc.
2739 # We do the test twice because some compilers refuse to overwrite an
2740 # existing .o file with -o, though they will create one.
2741 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2742 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748 (eval $ac_try) 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); };
2752 then
2753 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2754 if test "x$CC" != xcc; then
2755 # Test first that cc exists at all.
2756 if { ac_try='cc -c conftest.$ac_ext >&5'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 (eval $ac_try) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2763 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 (eval $ac_try) 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 (eval $ac_try) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); };
2773 then
2774 # cc works too.
2776 else
2777 # cc exists but doesn't like -o.
2778 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2782 else
2783 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2785 rm -f conftest*
2788 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2789 echo "$as_me:$LINENO: result: yes" >&5
2790 echo "${ECHO_T}yes" >&6
2791 else
2792 echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2795 cat >>confdefs.h <<\_ACEOF
2796 #define NO_MINUS_C_MINUS_O 1
2797 _ACEOF
2801 # autoconf is lame and doesn't give us any substitution variable for this.
2802 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2803 NO_MINUS_C_MINUS_O=yes
2804 else
2805 OUTPUT_OPTION='-o $@'
2810 # -------------------------
2811 # Check C compiler features
2812 # -------------------------
2814 ac_ext=c
2815 ac_cpp='$CPP $CPPFLAGS'
2816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2820 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2821 # On Suns, sometimes $CPP names a directory.
2822 if test -n "$CPP" && test -d "$CPP"; then
2823 CPP=
2825 if test -z "$CPP"; then
2826 if test "${ac_cv_prog_CPP+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829 # Double quotes because CPP needs to be expanded
2830 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2832 ac_preproc_ok=false
2833 for ac_c_preproc_warn_flag in '' yes
2835 # Use a header file that comes with gcc, so configuring glibc
2836 # with a fresh cross-compiler works.
2837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2838 # <limits.h> exists even on freestanding compilers.
2839 # On the NeXT, cc -E runs the code through the compiler's parser,
2840 # not just through cpp. "Syntax error" is here to catch this case.
2841 cat >conftest.$ac_ext <<_ACEOF
2842 /* confdefs.h. */
2843 _ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2847 #ifdef __STDC__
2848 # include <limits.h>
2849 #else
2850 # include <assert.h>
2851 #endif
2852 Syntax error
2853 _ACEOF
2854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2856 ac_status=$?
2857 grep -v '^ *+' conftest.er1 >conftest.err
2858 rm -f conftest.er1
2859 cat conftest.err >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } >/dev/null; then
2862 if test -s conftest.err; then
2863 ac_cpp_err=$ac_c_preproc_warn_flag
2864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2865 else
2866 ac_cpp_err=
2868 else
2869 ac_cpp_err=yes
2871 if test -z "$ac_cpp_err"; then
2873 else
2874 echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2877 # Broken: fails on valid input.
2878 continue
2880 rm -f conftest.err conftest.$ac_ext
2882 # OK, works on sane cases. Now check whether non-existent headers
2883 # can be detected and how.
2884 cat >conftest.$ac_ext <<_ACEOF
2885 /* confdefs.h. */
2886 _ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2890 #include <ac_nonexistent.h>
2891 _ACEOF
2892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } >/dev/null; then
2900 if test -s conftest.err; then
2901 ac_cpp_err=$ac_c_preproc_warn_flag
2902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2903 else
2904 ac_cpp_err=
2906 else
2907 ac_cpp_err=yes
2909 if test -z "$ac_cpp_err"; then
2910 # Broken: success on invalid input.
2911 continue
2912 else
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2916 # Passes both tests.
2917 ac_preproc_ok=:
2918 break
2920 rm -f conftest.err conftest.$ac_ext
2922 done
2923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2924 rm -f conftest.err conftest.$ac_ext
2925 if $ac_preproc_ok; then
2926 break
2929 done
2930 ac_cv_prog_CPP=$CPP
2933 CPP=$ac_cv_prog_CPP
2934 else
2935 ac_cv_prog_CPP=$CPP
2937 echo "$as_me:$LINENO: result: $CPP" >&5
2938 echo "${ECHO_T}$CPP" >&6
2939 ac_preproc_ok=false
2940 for ac_c_preproc_warn_flag in '' yes
2942 # Use a header file that comes with gcc, so configuring glibc
2943 # with a fresh cross-compiler works.
2944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2945 # <limits.h> exists even on freestanding compilers.
2946 # On the NeXT, cc -E runs the code through the compiler's parser,
2947 # not just through cpp. "Syntax error" is here to catch this case.
2948 cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h. */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2954 #ifdef __STDC__
2955 # include <limits.h>
2956 #else
2957 # include <assert.h>
2958 #endif
2959 Syntax error
2960 _ACEOF
2961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2963 ac_status=$?
2964 grep -v '^ *+' conftest.er1 >conftest.err
2965 rm -f conftest.er1
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev/null; then
2969 if test -s conftest.err; then
2970 ac_cpp_err=$ac_c_preproc_warn_flag
2971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2972 else
2973 ac_cpp_err=
2975 else
2976 ac_cpp_err=yes
2978 if test -z "$ac_cpp_err"; then
2980 else
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2984 # Broken: fails on valid input.
2985 continue
2987 rm -f conftest.err conftest.$ac_ext
2989 # OK, works on sane cases. Now check whether non-existent headers
2990 # can be detected and how.
2991 cat >conftest.$ac_ext <<_ACEOF
2992 /* confdefs.h. */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
2997 #include <ac_nonexistent.h>
2998 _ACEOF
2999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } >/dev/null; then
3007 if test -s conftest.err; then
3008 ac_cpp_err=$ac_c_preproc_warn_flag
3009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3010 else
3011 ac_cpp_err=
3013 else
3014 ac_cpp_err=yes
3016 if test -z "$ac_cpp_err"; then
3017 # Broken: success on invalid input.
3018 continue
3019 else
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3023 # Passes both tests.
3024 ac_preproc_ok=:
3025 break
3027 rm -f conftest.err conftest.$ac_ext
3029 done
3030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3031 rm -f conftest.err conftest.$ac_ext
3032 if $ac_preproc_ok; then
3034 else
3035 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3038 See \`config.log' for more details." >&2;}
3039 { (exit 1); exit 1; }; }
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049 echo "$as_me:$LINENO: checking for inline" >&5
3050 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3051 if test "${ac_cv_c_inline+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 else
3054 ac_cv_c_inline=no
3055 for ac_kw in inline __inline__ __inline; do
3056 cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h. */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 #ifndef __cplusplus
3063 typedef int foo_t;
3064 static $ac_kw foo_t static_foo () {return 0; }
3065 $ac_kw foo_t foo () {return 0; }
3066 #endif
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3071 (eval $ac_compile) 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } &&
3078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 (eval $ac_try) 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 (eval $ac_try) 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 ac_cv_c_inline=$ac_kw; break
3091 else
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3097 done
3100 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3101 echo "${ECHO_T}$ac_cv_c_inline" >&6
3104 case $ac_cv_c_inline in
3105 inline | yes) ;;
3107 case $ac_cv_c_inline in
3108 no) ac_val=;;
3109 *) ac_val=$ac_cv_c_inline;;
3110 esac
3111 cat >>confdefs.h <<_ACEOF
3112 #ifndef __cplusplus
3113 #define inline $ac_val
3114 #endif
3115 _ACEOF
3117 esac
3120 echo "$as_me:$LINENO: checking for long long int" >&5
3121 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3122 if test "${ac_cv_c_long_long+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h. */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3133 main ()
3135 long long int i;
3137 return 0;
3139 _ACEOF
3140 rm -f conftest.$ac_objext
3141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142 (eval $ac_compile) 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 (eval $ac_try) 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 (eval $ac_try) 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 ac_cv_c_long_long=yes
3162 else
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3166 ac_cv_c_long_long=no
3168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3170 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3171 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3172 if test $ac_cv_c_long_long = yes; then
3174 cat >>confdefs.h <<\_ACEOF
3175 #define HAVE_LONG_LONG 1
3176 _ACEOF
3179 echo "$as_me:$LINENO: checking for __int64" >&5
3180 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3181 if test "${ac_cv_c___int64+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h. */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3192 main ()
3194 __int64 i;
3196 return 0;
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201 (eval $ac_compile) 2>conftest.er1
3202 ac_status=$?
3203 grep -v '^ *+' conftest.er1 >conftest.err
3204 rm -f conftest.er1
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } &&
3208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 ac_cv_c___int64=yes
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 ac_cv_c___int64=no
3227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3229 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3230 echo "${ECHO_T}$ac_cv_c___int64" >&6
3231 if test $ac_cv_c___int64 = yes; then
3233 cat >>confdefs.h <<\_ACEOF
3234 #define HAVE___INT64 1
3235 _ACEOF
3239 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3240 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3241 if test "${gcc_cv_c__bool+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244 cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h. */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3252 main ()
3254 _Bool foo;
3256 return 0;
3258 _ACEOF
3259 rm -f conftest.$ac_objext
3260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3261 (eval $ac_compile) 2>conftest.er1
3262 ac_status=$?
3263 grep -v '^ *+' conftest.er1 >conftest.err
3264 rm -f conftest.er1
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } &&
3268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 (eval $ac_try) 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 (eval $ac_try) 2>&5
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 gcc_cv_c__bool=yes
3281 else
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 gcc_cv_c__bool=no
3287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3290 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3291 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3292 if test $gcc_cv_c__bool = yes; then
3294 cat >>confdefs.h <<\_ACEOF
3295 #define HAVE__BOOL 1
3296 _ACEOF
3301 # sizeof(char) is 1 by definition.
3302 echo "$as_me:$LINENO: checking size of void *" >&5
3303 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3304 if test "${ac_cv_sizeof_void_p+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3308 cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h. */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3314 #include "confdefs.h"
3315 #include <sys/types.h>
3319 main ()
3321 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3323 return 0;
3325 _ACEOF
3326 rm -f conftest.$ac_objext
3327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3328 (eval $ac_compile) 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337 (eval $ac_try) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3347 ac_cv_sizeof_void_p=$ac_size
3348 else
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3354 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3355 done
3359 if test x$ac_cv_sizeof_void_p = x ; then
3360 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3361 echo "$as_me: error: cannot determine a size for void *" >&2;}
3362 { (exit 1); exit 1; }; }
3364 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3365 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3367 cat >>confdefs.h <<_ACEOF
3368 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3369 _ACEOF
3372 echo "$as_me:$LINENO: checking size of short" >&5
3373 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3374 if test "${ac_cv_sizeof_short+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h. */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384 #include "confdefs.h"
3385 #include <sys/types.h>
3389 main ()
3391 switch (0) case 0: case (sizeof (short) == $ac_size):;
3393 return 0;
3395 _ACEOF
3396 rm -f conftest.$ac_objext
3397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398 (eval $ac_compile) 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 ac_cv_sizeof_short=$ac_size
3418 else
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3424 if test x$ac_cv_sizeof_short != x ; then break; fi
3425 done
3429 if test x$ac_cv_sizeof_short = x ; then
3430 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3431 echo "$as_me: error: cannot determine a size for short" >&2;}
3432 { (exit 1); exit 1; }; }
3434 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3435 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3437 cat >>confdefs.h <<_ACEOF
3438 #define SIZEOF_SHORT $ac_cv_sizeof_short
3439 _ACEOF
3442 echo "$as_me:$LINENO: checking size of int" >&5
3443 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3444 if test "${ac_cv_sizeof_int+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 #include "confdefs.h"
3455 #include <sys/types.h>
3459 main ()
3461 switch (0) case 0: case (sizeof (int) == $ac_size):;
3463 return 0;
3465 _ACEOF
3466 rm -f conftest.$ac_objext
3467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3468 (eval $ac_compile) 2>conftest.er1
3469 ac_status=$?
3470 grep -v '^ *+' conftest.er1 >conftest.err
3471 rm -f conftest.er1
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } &&
3475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 (eval $ac_try) 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; } &&
3481 { ac_try='test -s conftest.$ac_objext'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483 (eval $ac_try) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 ac_cv_sizeof_int=$ac_size
3488 else
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 if test x$ac_cv_sizeof_int != x ; then break; fi
3495 done
3499 if test x$ac_cv_sizeof_int = x ; then
3500 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3501 echo "$as_me: error: cannot determine a size for int" >&2;}
3502 { (exit 1); exit 1; }; }
3504 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3505 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3507 cat >>confdefs.h <<_ACEOF
3508 #define SIZEOF_INT $ac_cv_sizeof_int
3509 _ACEOF
3512 echo "$as_me:$LINENO: checking size of long" >&5
3513 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3514 if test "${ac_cv_sizeof_long+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include "confdefs.h"
3525 #include <sys/types.h>
3529 main ()
3531 switch (0) case 0: case (sizeof (long) == $ac_size):;
3533 return 0;
3535 _ACEOF
3536 rm -f conftest.$ac_objext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538 (eval $ac_compile) 2>conftest.er1
3539 ac_status=$?
3540 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; } &&
3551 { ac_try='test -s conftest.$ac_objext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 ac_cv_sizeof_long=$ac_size
3558 else
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3564 if test x$ac_cv_sizeof_long != x ; then break; fi
3565 done
3569 if test x$ac_cv_sizeof_long = x ; then
3570 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3571 echo "$as_me: error: cannot determine a size for long" >&2;}
3572 { (exit 1); exit 1; }; }
3574 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3575 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3577 cat >>confdefs.h <<_ACEOF
3578 #define SIZEOF_LONG $ac_cv_sizeof_long
3579 _ACEOF
3582 if test $ac_cv_c_long_long = yes; then
3583 echo "$as_me:$LINENO: checking size of long long" >&5
3584 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3585 if test "${ac_cv_sizeof_long_long+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3589 cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h. */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3595 #include "confdefs.h"
3596 #include <sys/types.h>
3600 main ()
3602 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3604 return 0;
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609 (eval $ac_compile) 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 (eval $ac_try) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; } &&
3622 { ac_try='test -s conftest.$ac_objext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_sizeof_long_long=$ac_size
3629 else
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3635 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3636 done
3640 if test x$ac_cv_sizeof_long_long = x ; then
3641 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3642 echo "$as_me: error: cannot determine a size for long long" >&2;}
3643 { (exit 1); exit 1; }; }
3645 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3646 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3648 cat >>confdefs.h <<_ACEOF
3649 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3650 _ACEOF
3654 if test $ac_cv_c___int64 = yes; then
3655 echo "$as_me:$LINENO: checking size of __int64" >&5
3656 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3657 if test "${ac_cv_sizeof___int64+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3661 cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h. */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 #include "confdefs.h"
3668 #include <sys/types.h>
3672 main ()
3674 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3676 return 0;
3678 _ACEOF
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; } &&
3694 { ac_try='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 ac_cv_sizeof___int64=$ac_size
3701 else
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3707 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3708 done
3712 if test x$ac_cv_sizeof___int64 = x ; then
3713 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3714 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3715 { (exit 1); exit 1; }; }
3717 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3718 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3720 cat >>confdefs.h <<_ACEOF
3721 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3722 _ACEOF
3727 # ---------------------
3728 # Warnings and checking
3729 # ---------------------
3731 # Check $CC warning features (if it's GCC).
3732 # We want to use -pedantic, but we don't want warnings about
3733 # * 'long long'
3734 # * variadic macros
3735 # So, we only use -pedantic if we can disable those warnings.
3737 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3738 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3739 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 save_CFLAGS="$CFLAGS"
3743 CFLAGS="-Wno-long-long"
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h. */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3751 _ACEOF
3752 rm -f conftest.$ac_objext
3753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3754 (eval $ac_compile) 2>conftest.er1
3755 ac_status=$?
3756 grep -v '^ *+' conftest.er1 >conftest.err
3757 rm -f conftest.er1
3758 cat conftest.err >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } &&
3761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 (eval $ac_try) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; } &&
3767 { ac_try='test -s conftest.$ac_objext'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 (eval $ac_try) 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; }; then
3773 ac_cv_prog_cc_w_no_long_long=yes
3774 else
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3778 ac_cv_prog_cc_w_no_long_long=no
3780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3781 CFLAGS="$save_CFLAGS"
3784 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3785 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3787 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3788 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3789 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792 save_CFLAGS="$CFLAGS"
3793 CFLAGS="-Wno-variadic-macros"
3794 cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h. */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3801 _ACEOF
3802 rm -f conftest.$ac_objext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804 (eval $ac_compile) 2>conftest.er1
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 (eval $ac_try) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_cv_prog_cc_w_no_variadic_macros=yes
3824 else
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3828 ac_cv_prog_cc_w_no_variadic_macros=no
3830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3831 CFLAGS="$save_CFLAGS"
3834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3835 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3837 strict1_warn=
3838 if test $ac_cv_prog_cc_w_no_long_long = yes \
3839 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3840 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3844 # Add -Wold-style-definition if it's accepted
3845 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3846 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3847 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 save_CFLAGS="$CFLAGS"
3851 CFLAGS="-Wold-style-definition"
3852 cat >conftest.$ac_ext <<_ACEOF
3853 /* confdefs.h. */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3859 _ACEOF
3860 rm -f conftest.$ac_objext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3862 (eval $ac_compile) 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 (eval $ac_try) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_cv_prog_cc_w_old_style_definition=yes
3882 else
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 ac_cv_prog_cc_w_old_style_definition=no
3888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889 CFLAGS="$save_CFLAGS"
3892 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3893 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3894 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3895 strict1_warn="${strict1_warn} -Wold-style-definition"
3898 # Enable -Werror, period.
3899 # Check whether --enable-werror_always or --disable-werror_always was given.
3900 if test "${enable_werror_always+set}" = set; then
3901 enableval="$enable_werror_always"
3903 else
3904 enable_werror_always=no
3906 if test x${enable_werror_always} = xyes ; then
3907 strict1_warn="${strict1_warn} -Werror"
3908 WERROR=-Werror
3911 # If the native compiler is GCC, we can enable warnings even in stage1.
3912 # That's useful for people building cross-compilers, or just running a
3913 # quick `make'.
3914 warn_cflags=
3915 if test "x$GCC" = "xyes"; then
3916 warn_cflags='$(GCC_WARN_CFLAGS)'
3920 # Enable -Werror in bootstrap stage2 and later.
3921 # Change the default to "no" on release branches.
3922 # Check whether --enable-werror or --disable-werror was given.
3923 if test "${enable_werror+set}" = set; then
3924 enableval="$enable_werror"
3926 else
3927 enable_werror=yes
3929 if test x$enable_werror = xyes ; then
3930 WERROR=-Werror
3934 # Enable expensive internal checks
3935 # Check whether --enable-checking or --disable-checking was given.
3936 if test "${enable_checking+set}" = set; then
3937 enableval="$enable_checking"
3938 ac_checking=
3939 ac_tree_checking=
3940 ac_rtl_checking=
3941 ac_rtlflag_checking=
3942 ac_gc_checking=
3943 ac_gc_always_collect=
3944 ac_fold_checking=
3945 case "${enableval}" in
3946 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3947 ac_rtlflag_checking=1 ;;
3948 no) ;;
3949 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3950 set fnord $enableval; shift
3951 IFS="$ac_save_IFS"
3952 for check
3954 case $check in
3955 misc) ac_checking=1 ;;
3956 tree) ac_tree_checking=1 ;;
3957 rtlflag) ac_rtlflag_checking=1 ;;
3958 rtl) ac_rtl_checking=1 ;;
3959 gc) ac_gc_checking=1 ;;
3960 gcac) ac_gc_always_collect=1 ;;
3961 fold) ac_fold_checking=1 ;;
3962 valgrind) ac_checking_valgrind=1 ;;
3963 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3964 echo "$as_me: error: unknown check category $check" >&2;}
3965 { (exit 1); exit 1; }; } ;;
3966 esac
3967 done
3969 esac
3971 else
3972 # Enable some checks by default for development versions of GCC
3973 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3975 nocommon_flag=""
3976 if test x$ac_checking != x ; then
3978 cat >>confdefs.h <<\_ACEOF
3979 #define ENABLE_CHECKING 1
3980 _ACEOF
3982 nocommon_flag=-fno-common
3985 if test x$ac_tree_checking != x ; then
3987 cat >>confdefs.h <<\_ACEOF
3988 #define ENABLE_TREE_CHECKING 1
3989 _ACEOF
3992 if test x$ac_rtl_checking != x ; then
3994 cat >>confdefs.h <<\_ACEOF
3995 #define ENABLE_RTL_CHECKING 1
3996 _ACEOF
3999 if test x$ac_rtlflag_checking != x ; then
4001 cat >>confdefs.h <<\_ACEOF
4002 #define ENABLE_RTL_FLAG_CHECKING 1
4003 _ACEOF
4006 if test x$ac_gc_checking != x ; then
4008 cat >>confdefs.h <<\_ACEOF
4009 #define ENABLE_GC_CHECKING 1
4010 _ACEOF
4013 if test x$ac_gc_always_collect != x ; then
4015 cat >>confdefs.h <<\_ACEOF
4016 #define ENABLE_GC_ALWAYS_COLLECT 1
4017 _ACEOF
4020 if test x$ac_fold_checking != x ; then
4022 cat >>confdefs.h <<\_ACEOF
4023 #define ENABLE_FOLD_CHECKING 1
4024 _ACEOF
4027 valgrind_path_defines=
4028 valgrind_command=
4031 echo "$as_me:$LINENO: checking for egrep" >&5
4032 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4033 if test "${ac_cv_prog_egrep+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4037 then ac_cv_prog_egrep='grep -E'
4038 else ac_cv_prog_egrep='egrep'
4041 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4042 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4043 EGREP=$ac_cv_prog_egrep
4046 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4047 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4048 if test "${ac_cv_header_stdc+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051 cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h. */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4057 #include <stdlib.h>
4058 #include <stdarg.h>
4059 #include <string.h>
4060 #include <float.h>
4063 main ()
4067 return 0;
4069 _ACEOF
4070 rm -f conftest.$ac_objext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4072 (eval $ac_compile) 2>conftest.er1
4073 ac_status=$?
4074 grep -v '^ *+' conftest.er1 >conftest.err
4075 rm -f conftest.er1
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } &&
4079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 ac_cv_header_stdc=yes
4092 else
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 ac_cv_header_stdc=no
4098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4100 if test $ac_cv_header_stdc = yes; then
4101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h. */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4108 #include <string.h>
4110 _ACEOF
4111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4112 $EGREP "memchr" >/dev/null 2>&1; then
4114 else
4115 ac_cv_header_stdc=no
4117 rm -f conftest*
4121 if test $ac_cv_header_stdc = yes; then
4122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4123 cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h. */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 #include <stdlib.h>
4131 _ACEOF
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "free" >/dev/null 2>&1; then
4135 else
4136 ac_cv_header_stdc=no
4138 rm -f conftest*
4142 if test $ac_cv_header_stdc = yes; then
4143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4144 if test "$cross_compiling" = yes; then
4146 else
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h. */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #include <ctype.h>
4154 #if ((' ' & 0x0FF) == 0x020)
4155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4157 #else
4158 # define ISLOWER(c) \
4159 (('a' <= (c) && (c) <= 'i') \
4160 || ('j' <= (c) && (c) <= 'r') \
4161 || ('s' <= (c) && (c) <= 'z'))
4162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4163 #endif
4165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4167 main ()
4169 int i;
4170 for (i = 0; i < 256; i++)
4171 if (XOR (islower (i), ISLOWER (i))
4172 || toupper (i) != TOUPPER (i))
4173 exit(2);
4174 exit (0);
4176 _ACEOF
4177 rm -f conftest$ac_exeext
4178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4179 (eval $ac_link) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 (eval $ac_try) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4189 else
4190 echo "$as_me: program exited with status $ac_status" >&5
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 ( exit $ac_status )
4195 ac_cv_header_stdc=no
4197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4201 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4202 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4203 if test $ac_cv_header_stdc = yes; then
4205 cat >>confdefs.h <<\_ACEOF
4206 #define STDC_HEADERS 1
4207 _ACEOF
4211 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4221 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4222 inttypes.h stdint.h unistd.h
4224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4225 echo "$as_me:$LINENO: checking for $ac_header" >&5
4226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230 cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 $ac_includes_default
4238 #include <$ac_header>
4239 _ACEOF
4240 rm -f conftest.$ac_objext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242 (eval $ac_compile) 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 (eval $ac_try) 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; } &&
4255 { ac_try='test -s conftest.$ac_objext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 (eval $ac_try) 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4261 eval "$as_ac_Header=yes"
4262 else
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 eval "$as_ac_Header=no"
4268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4273 cat >>confdefs.h <<_ACEOF
4274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4275 _ACEOF
4279 done
4282 if test "${ac_cv_header_valgrind_h+set}" = set; then
4283 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4284 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4285 if test "${ac_cv_header_valgrind_h+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4289 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4290 else
4291 # Is the header compilable?
4292 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4293 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4294 cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h. */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 $ac_includes_default
4301 #include <valgrind.h>
4302 _ACEOF
4303 rm -f conftest.$ac_objext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4305 (eval $ac_compile) 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 (eval $ac_try) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_header_compiler=yes
4325 else
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 ac_header_compiler=no
4331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4333 echo "${ECHO_T}$ac_header_compiler" >&6
4335 # Is the header present?
4336 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4337 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h. */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 #include <valgrind.h>
4345 _ACEOF
4346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4348 ac_status=$?
4349 grep -v '^ *+' conftest.er1 >conftest.err
4350 rm -f conftest.er1
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } >/dev/null; then
4354 if test -s conftest.err; then
4355 ac_cpp_err=$ac_c_preproc_warn_flag
4356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4357 else
4358 ac_cpp_err=
4360 else
4361 ac_cpp_err=yes
4363 if test -z "$ac_cpp_err"; then
4364 ac_header_preproc=yes
4365 else
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4369 ac_header_preproc=no
4371 rm -f conftest.err conftest.$ac_ext
4372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4373 echo "${ECHO_T}$ac_header_preproc" >&6
4375 # So? What about this header?
4376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4377 yes:no: )
4378 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4379 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4380 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4381 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4382 ac_header_preproc=yes
4384 no:yes:* )
4385 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4386 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4387 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4388 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4389 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4390 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4391 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4392 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4393 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4394 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4395 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4396 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4398 cat <<\_ASBOX
4399 ## ------------------------------------------ ##
4400 ## Report this to the AC_PACKAGE_NAME lists. ##
4401 ## ------------------------------------------ ##
4402 _ASBOX
4404 sed "s/^/$as_me: WARNING: /" >&2
4406 esac
4407 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4408 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4409 if test "${ac_cv_header_valgrind_h+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 ac_cv_header_valgrind_h=$ac_header_preproc
4414 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4415 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4418 if test $ac_cv_header_valgrind_h = yes; then
4419 have_valgrind_h=yes
4420 else
4421 have_valgrind_h=no
4426 if test x$ac_checking_valgrind != x ; then
4427 # It is certainly possible that there's valgrind but no valgrind.h.
4428 # GCC relies on making annotations so we must have both.
4429 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4430 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4431 cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h. */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 #include <valgrind/memcheck.h>
4438 #ifndef VALGRIND_DISCARD
4439 #error VALGRIND_DISCARD not defined
4440 #endif
4441 _ACEOF
4442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } >/dev/null; then
4450 if test -s conftest.err; then
4451 ac_cpp_err=$ac_c_preproc_warn_flag
4452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4453 else
4454 ac_cpp_err=
4456 else
4457 ac_cpp_err=yes
4459 if test -z "$ac_cpp_err"; then
4460 gcc_cv_header_valgrind_memcheck_h=yes
4461 else
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 gcc_cv_header_valgrind_memcheck_h=no
4467 rm -f conftest.err conftest.$ac_ext
4468 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4469 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4470 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4471 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4472 cat >conftest.$ac_ext <<_ACEOF
4473 /* confdefs.h. */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 #include <memcheck.h>
4479 #ifndef VALGRIND_DISCARD
4480 #error VALGRIND_DISCARD not defined
4481 #endif
4482 _ACEOF
4483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } >/dev/null; then
4491 if test -s conftest.err; then
4492 ac_cpp_err=$ac_c_preproc_warn_flag
4493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4494 else
4495 ac_cpp_err=
4497 else
4498 ac_cpp_err=yes
4500 if test -z "$ac_cpp_err"; then
4501 gcc_cv_header_memcheck_h=yes
4502 else
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4506 gcc_cv_header_memcheck_h=no
4508 rm -f conftest.err conftest.$ac_ext
4509 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4510 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4512 # Prepare PATH_SEPARATOR.
4513 # The user is always right.
4514 if test "${PATH_SEPARATOR+set}" != set; then
4515 echo "#! /bin/sh" >conf$$.sh
4516 echo "exit 0" >>conf$$.sh
4517 chmod +x conf$$.sh
4518 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4519 PATH_SEPARATOR=';'
4520 else
4521 PATH_SEPARATOR=:
4523 rm -f conf$$.sh
4526 # Find out how to test for executable files. Don't use a zero-byte file,
4527 # as systems may use methods other than mode bits to determine executability.
4528 cat >conf$$.file <<_ASEOF
4529 #! /bin/sh
4530 exit 0
4531 _ASEOF
4532 chmod +x conf$$.file
4533 if test -x conf$$.file >/dev/null 2>&1; then
4534 ac_executable_p="test -x"
4535 else
4536 ac_executable_p="test -f"
4538 rm -f conf$$.file
4540 # Extract the first word of "valgrind", so it can be a program name with args.
4541 set dummy valgrind; ac_word=$2
4542 echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544 if test "${ac_cv_path_valgrind_path+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 case "$valgrind_path" in
4548 [\\/]* | ?:[\\/]*)
4549 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4552 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4553 for ac_dir in $PATH; do
4554 IFS="$ac_save_IFS"
4555 test -z "$ac_dir" && ac_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4558 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4559 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4560 break 2
4563 done
4564 done
4565 IFS="$ac_save_IFS"
4567 esac
4569 valgrind_path="$ac_cv_path_valgrind_path"
4570 if test -n "$valgrind_path"; then
4571 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4572 echo "${ECHO_T}$valgrind_path" >&6
4573 else
4574 echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4578 if test "x$valgrind_path" = "x" \
4579 || (test $have_valgrind_h = no \
4580 && test $gcc_cv_header_memcheck_h = no \
4581 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4582 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4583 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4584 { (exit 1); exit 1; }; }
4586 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4587 valgrind_command="$valgrind_path -q"
4589 cat >>confdefs.h <<\_ACEOF
4590 #define ENABLE_VALGRIND_CHECKING 1
4591 _ACEOF
4593 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4595 cat >>confdefs.h <<\_ACEOF
4596 #define HAVE_VALGRIND_MEMCHECK_H 1
4597 _ACEOF
4600 if test $gcc_cv_header_memcheck_h = yes; then
4602 cat >>confdefs.h <<\_ACEOF
4603 #define HAVE_MEMCHECK_H 1
4604 _ACEOF
4611 # Enable code coverage collection
4612 # Check whether --enable-coverage or --disable-coverage was given.
4613 if test "${enable_coverage+set}" = set; then
4614 enableval="$enable_coverage"
4615 case "${enableval}" in
4616 yes|noopt)
4617 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4619 opt)
4620 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4623 # a.k.a. --disable-coverage
4624 coverage_flags=""
4627 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4628 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4629 { (exit 1); exit 1; }; }
4631 esac
4632 else
4633 coverage_flags=""
4637 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4638 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4639 enableval="$enable_gather_detailed_mem_stats"
4641 else
4642 enable_gather_detailed_mem_stats=no
4644 if test x$enable_gather_detailed_mem_stats = xyes ; then
4646 cat >>confdefs.h <<\_ACEOF
4647 #define GATHER_STATISTICS 1
4648 _ACEOF
4652 # -------------------------------
4653 # Miscenalleous configure options
4654 # -------------------------------
4656 # With stabs
4658 # Check whether --with-stabs or --without-stabs was given.
4659 if test "${with_stabs+set}" = set; then
4660 withval="$with_stabs"
4661 stabs="$with_stabs"
4662 else
4663 stabs=no
4666 # Determine whether or not multilibs are enabled.
4667 # Check whether --enable-multilib or --disable-multilib was given.
4668 if test "${enable_multilib+set}" = set; then
4669 enableval="$enable_multilib"
4671 else
4672 enable_multilib=yes
4676 # Enable __cxa_atexit for C++.
4677 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4678 if test "${enable___cxa_atexit+set}" = set; then
4679 enableval="$enable___cxa_atexit"
4683 # Enable threads
4684 # Pass with no value to take the default
4685 # Pass with a value to specify a thread package
4686 # Check whether --enable-threads or --disable-threads was given.
4687 if test "${enable_threads+set}" = set; then
4688 enableval="$enable_threads"
4690 else
4691 enable_threads=''
4694 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4695 if test "${enable_objc_gc+set}" = set; then
4696 enableval="$enable_objc_gc"
4697 if test x$enable_objc_gc = xno; then
4698 objc_boehm_gc=''
4699 else
4700 objc_boehm_gc=1
4702 else
4703 objc_boehm_gc=''
4707 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4708 if test "${with_dwarf2+set}" = set; then
4709 withval="$with_dwarf2"
4710 dwarf2="$with_dwarf2"
4711 else
4712 dwarf2=no
4715 # Check whether --enable-shared or --disable-shared was given.
4716 if test "${enable_shared+set}" = set; then
4717 enableval="$enable_shared"
4719 case $enable_shared in
4720 yes | no) ;;
4722 enable_shared=no
4723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4724 for pkg in $enableval; do
4725 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4726 enable_shared=yes
4728 done
4729 IFS="$ac_save_ifs"
4731 esac
4733 else
4734 enable_shared=yes
4739 # Check whether --with-sysroot or --without-sysroot was given.
4740 if test "${with_sysroot+set}" = set; then
4741 withval="$with_sysroot"
4743 case ${with_sysroot} in
4744 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4745 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4746 esac
4748 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4749 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4751 if test "x$exec_prefix" = xNONE; then
4752 if test "x$prefix" = xNONE; then
4753 test_prefix=/usr/local
4754 else
4755 test_prefix=$prefix
4757 else
4758 test_prefix=$exec_prefix
4760 case ${TARGET_SYSTEM_ROOT} in
4761 "${test_prefix}"|"${test_prefix}/"*|\
4762 '${exec_prefix}'|'${exec_prefix}/'*)
4763 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4764 TARGET_SYSTEM_ROOT_DEFINE="$t"
4766 esac
4768 else
4770 TARGET_SYSTEM_ROOT=
4771 TARGET_SYSTEM_ROOT_DEFINE=
4772 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4779 # Build with intermodule optimisations
4780 # Check whether --enable-intermodule or --disable-intermodule was given.
4781 if test "${enable_intermodule+set}" = set; then
4782 enableval="$enable_intermodule"
4783 case ${enable_intermodule} in
4784 yes) onestep="-onestep";;
4785 *) onestep="";;
4786 esac
4787 else
4788 onestep=""
4792 # Sanity check enable_languages in case someone does not run the toplevel
4793 # configure # script.
4794 # Check whether --enable-languages or --disable-languages was given.
4795 if test "${enable_languages+set}" = set; then
4796 enableval="$enable_languages"
4797 case ,${enable_languages}, in
4798 ,,|,yes,)
4799 # go safe -- we cannot be much sure without the toplevel
4800 # configure's
4801 # analysis of which target libs are present and usable
4802 enable_languages=c
4804 *,all,*)
4805 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4806 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4807 { (exit 1); exit 1; }; }
4809 *,c,*)
4812 enable_languages=c,${enable_languages}
4814 esac
4815 else
4816 enable_languages=c
4819 subdirs=
4820 for lang in ${srcdir}/*/config-lang.in
4822 case $lang in
4823 # The odd quoting in the next line works around
4824 # an apparent bug in bash 1.12 on linux.
4825 ${srcdir}/[*]/config-lang.in) ;;
4827 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4828 if test "x$lang_alias" = x
4829 then
4830 echo "$lang doesn't set \$language." 1>&2
4831 exit 1
4833 case ",$enable_languages," in
4834 *,$lang_alias,*)
4835 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4836 esac
4838 esac
4839 done
4842 # -------------------------
4843 # Checks for other programs
4844 # -------------------------
4846 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4847 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4848 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4849 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852 cat >conftest.make <<\_ACEOF
4853 all:
4854 @echo 'ac_maketemp="$(MAKE)"'
4855 _ACEOF
4856 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4857 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4858 if test -n "$ac_maketemp"; then
4859 eval ac_cv_prog_make_${ac_make}_set=yes
4860 else
4861 eval ac_cv_prog_make_${ac_make}_set=no
4863 rm -f conftest.make
4865 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4866 echo "$as_me:$LINENO: result: yes" >&5
4867 echo "${ECHO_T}yes" >&6
4868 SET_MAKE=
4869 else
4870 echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6
4872 SET_MAKE="MAKE=${MAKE-make}"
4876 # Find some useful tools
4877 for ac_prog in gawk mawk nawk awk
4879 # Extract the first word of "$ac_prog", so it can be a program name with args.
4880 set dummy $ac_prog; ac_word=$2
4881 echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4883 if test "${ac_cv_prog_AWK+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886 if test -n "$AWK"; then
4887 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896 ac_cv_prog_AWK="$ac_prog"
4897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 break 2
4900 done
4901 done
4905 AWK=$ac_cv_prog_AWK
4906 if test -n "$AWK"; then
4907 echo "$as_me:$LINENO: result: $AWK" >&5
4908 echo "${ECHO_T}$AWK" >&6
4909 else
4910 echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6
4914 test -n "$AWK" && break
4915 done
4917 # We need awk to run opts.sh (to create options.c and options.h).
4918 # Bail out if it's missing.
4919 case ${AWK} in
4920 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4921 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4922 { (exit 1); exit 1; }; } ;;
4923 esac
4925 echo "$as_me:$LINENO: checking whether ln works" >&5
4926 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4927 if test "${gcc_cv_prog_LN+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930 rm -f conftestdata_t
4931 echo >conftestdata_f
4932 if ln conftestdata_f conftestdata_t 2>/dev/null
4933 then
4934 gcc_cv_prog_LN="ln"
4935 else
4936 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4937 then
4938 gcc_cv_prog_LN="ln -s"
4939 else
4940 gcc_cv_prog_LN=cp
4943 rm -f conftestdata_f conftestdata_t
4946 LN="$gcc_cv_prog_LN"
4947 if test "$gcc_cv_prog_LN" = "ln"; then
4948 echo "$as_me:$LINENO: result: yes" >&5
4949 echo "${ECHO_T}yes" >&6
4950 else
4951 if test "$gcc_cv_prog_LN" = "ln -s"; then
4952 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4953 echo "${ECHO_T}no, using ln -s" >&6
4954 else
4955 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4956 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4960 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4961 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4962 if test "${gcc_cv_prog_LN_S+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965 rm -f conftestdata_t
4966 echo >conftestdata_f
4967 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4968 then
4969 gcc_cv_prog_LN_S="ln -s"
4970 else
4971 if ln conftestdata_f conftestdata_t 2>/dev/null
4972 then
4973 gcc_cv_prog_LN_S=ln
4974 else
4975 gcc_cv_prog_LN_S=cp
4978 rm -f conftestdata_f conftestdata_t
4981 LN_S="$gcc_cv_prog_LN_S"
4982 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4983 echo "$as_me:$LINENO: result: yes" >&5
4984 echo "${ECHO_T}yes" >&6
4985 else
4986 if test "$gcc_cv_prog_LN_S" = "ln"; then
4987 echo "$as_me:$LINENO: result: no, using ln" >&5
4988 echo "${ECHO_T}no, using ln" >&6
4989 else
4990 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4991 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4995 if test -n "$ac_tool_prefix"; then
4996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4998 echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5000 if test "${ac_cv_prog_RANLIB+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003 if test -n "$RANLIB"; then
5004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5017 done
5018 done
5022 RANLIB=$ac_cv_prog_RANLIB
5023 if test -n "$RANLIB"; then
5024 echo "$as_me:$LINENO: result: $RANLIB" >&5
5025 echo "${ECHO_T}$RANLIB" >&6
5026 else
5027 echo "$as_me:$LINENO: result: no" >&5
5028 echo "${ECHO_T}no" >&6
5032 if test -z "$ac_cv_prog_RANLIB"; then
5033 ac_ct_RANLIB=$RANLIB
5034 # Extract the first word of "ranlib", so it can be a program name with args.
5035 set dummy ranlib; ac_word=$2
5036 echo "$as_me:$LINENO: checking for $ac_word" >&5
5037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5038 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041 if test -n "$ac_ct_RANLIB"; then
5042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5051 ac_cv_prog_ac_ct_RANLIB="ranlib"
5052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 break 2
5055 done
5056 done
5058 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5061 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5062 if test -n "$ac_ct_RANLIB"; then
5063 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5064 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5065 else
5066 echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6
5070 RANLIB=$ac_ct_RANLIB
5071 else
5072 RANLIB="$ac_cv_prog_RANLIB"
5075 # Find a good install program. We prefer a C program (faster),
5076 # so one script is as good as another. But avoid the broken or
5077 # incompatible versions:
5078 # SysV /etc/install, /usr/sbin/install
5079 # SunOS /usr/etc/install
5080 # IRIX /sbin/install
5081 # AIX /bin/install
5082 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5083 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5084 # ./install, which can be erroneously created by make from ./install.sh.
5085 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5086 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5087 if test -z "$INSTALL"; then
5088 if test "${ac_cv_path_install+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5092 for ac_dir in $PATH; do
5093 # Account for people who put trailing slashes in PATH elements.
5094 case "$ac_dir/" in
5095 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5097 # OSF1 and SCO ODT 3.0 have their own names for install.
5098 for ac_prog in ginstall scoinst install; do
5099 if test -f $ac_dir/$ac_prog; then
5100 if test $ac_prog = install &&
5101 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5102 # AIX install. It has an incompatible calling convention.
5103 # OSF/1 installbsd also uses dspmsg, but is usable.
5105 else
5106 ac_cv_path_install="$ac_dir/$ac_prog -c"
5107 break 2
5110 done
5112 esac
5113 done
5114 IFS="$ac_save_IFS"
5117 if test "${ac_cv_path_install+set}" = set; then
5118 INSTALL="$ac_cv_path_install"
5119 else
5120 # As a last resort, use the slow shell script. We don't cache a
5121 # path for INSTALL within a source directory, because that will
5122 # break other packages using the cache if that directory is
5123 # removed, or if the path is relative.
5124 INSTALL="$ac_install_sh"
5127 echo "$as_me:$LINENO: result: $INSTALL" >&5
5128 echo "${ECHO_T}$INSTALL" >&6
5130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5131 # It thinks the first close brace ends the variable substitution.
5132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5134 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5137 # See if cmp has --ignore-initial.
5138 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5139 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5140 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143 echo abfoo >t1
5144 echo cdfoo >t2
5145 gcc_cv_prog_cmp_skip=slowcompare
5146 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5147 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5149 else
5150 gcc_cv_prog_cmp_skip=gnucompare
5153 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5154 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5155 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5157 else
5158 gcc_cv_prog_cmp_skip=fastcompare
5162 rm t1 t2
5165 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5166 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5167 make_compare_target=$gcc_cv_prog_cmp_skip
5171 # See if we have the mktemp command.
5172 # Extract the first word of "mktemp", so it can be a program name with args.
5173 set dummy mktemp; ac_word=$2
5174 echo "$as_me:$LINENO: checking for $ac_word" >&5
5175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5176 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179 if test -n "$have_mktemp_command"; then
5180 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_have_mktemp_command="yes"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5193 done
5194 done
5196 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5199 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5200 if test -n "$have_mktemp_command"; then
5201 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5202 echo "${ECHO_T}$have_mktemp_command" >&6
5203 else
5204 echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6
5209 # Do we have a single-tree copy of texinfo?
5210 if test -f $srcdir/../texinfo/Makefile.in; then
5211 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5212 gcc_cv_prog_makeinfo_modern=yes
5213 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5214 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5215 else
5216 # See if makeinfo has been installed and is modern enough
5217 # that we can use it.
5218 # Extract the first word of "makeinfo", so it can be a program name with args.
5219 set dummy makeinfo; ac_word=$2
5220 echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 if test -n "$MAKEINFO"; then
5226 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235 ac_cv_prog_MAKEINFO="makeinfo"
5236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5239 done
5240 done
5244 MAKEINFO=$ac_cv_prog_MAKEINFO
5245 if test -n "$MAKEINFO"; then
5246 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5247 echo "${ECHO_T}$MAKEINFO" >&6
5248 else
5249 echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6
5253 if test -n "$MAKEINFO"; then
5254 # Found it, now check the version.
5255 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5256 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5257 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260 ac_prog_version=`$MAKEINFO --version 2>&1 |
5261 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5262 echo "configure:5262: version of makeinfo is $ac_prog_version" >&5
5263 case $ac_prog_version in
5264 '') gcc_cv_prog_makeinfo_modern=no;;
5265 4.[2-9]*)
5266 gcc_cv_prog_makeinfo_modern=yes;;
5267 *) gcc_cv_prog_makeinfo_modern=no;;
5268 esac
5271 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5272 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5273 else
5274 gcc_cv_prog_makeinfo_modern=no
5279 if test $gcc_cv_prog_makeinfo_modern = no; then
5280 { echo "$as_me:$LINENO: WARNING:
5281 *** Makeinfo is missing or too old.
5282 *** Info documentation will not be built." >&5
5283 echo "$as_me: WARNING:
5284 *** Makeinfo is missing or too old.
5285 *** Info documentation will not be built." >&2;}
5286 BUILD_INFO=
5287 else
5288 BUILD_INFO=info
5291 # Is pod2man recent enough to regenerate manpages?
5292 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5293 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5294 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5295 echo "$as_me:$LINENO: result: yes" >&5
5296 echo "${ECHO_T}yes" >&6
5297 GENERATED_MANPAGES=generated-manpages
5298 else
5299 echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6
5301 GENERATED_MANPAGES=
5304 # How about lex?
5305 if test -f $srcdir/../flex/skel.c; then
5306 FLEX='$(objdir)/../flex/flex'
5307 else
5308 # Extract the first word of "flex", so it can be a program name with args.
5309 set dummy flex; ac_word=$2
5310 echo "$as_me:$LINENO: checking for $ac_word" >&5
5311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5312 if test "${ac_cv_prog_FLEX+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315 if test -n "$FLEX"; then
5316 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_FLEX="flex"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5329 done
5330 done
5332 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5335 FLEX=$ac_cv_prog_FLEX
5336 if test -n "$FLEX"; then
5337 echo "$as_me:$LINENO: result: $FLEX" >&5
5338 echo "${ECHO_T}$FLEX" >&6
5339 else
5340 echo "$as_me:$LINENO: result: no" >&5
5341 echo "${ECHO_T}no" >&6
5346 # Bison?
5347 # The -L switch is so bison can find its skeleton file.
5348 if test -f $srcdir/../bison/bison.simple; then
5349 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5350 else
5351 # Extract the first word of "bison", so it can be a program name with args.
5352 set dummy bison; ac_word=$2
5353 echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355 if test "${ac_cv_prog_BISON+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358 if test -n "$BISON"; then
5359 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5360 else
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 ac_cv_prog_BISON="bison"
5369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5372 done
5373 done
5375 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5378 BISON=$ac_cv_prog_BISON
5379 if test -n "$BISON"; then
5380 echo "$as_me:$LINENO: result: $BISON" >&5
5381 echo "${ECHO_T}$BISON" >&6
5382 else
5383 echo "$as_me:$LINENO: result: no" >&5
5384 echo "${ECHO_T}no" >&6
5389 # --------------------
5390 # Checks for C headers
5391 # --------------------
5393 echo "$as_me:$LINENO: checking for GNU C library" >&5
5394 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5395 if test "${gcc_cv_glibc+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398 cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h. */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5404 #include <features.h>
5406 main ()
5409 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5410 #error Not a GNU C library system
5411 #endif
5413 return 0;
5415 _ACEOF
5416 rm -f conftest.$ac_objext
5417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5418 (eval $ac_compile) 2>conftest.er1
5419 ac_status=$?
5420 grep -v '^ *+' conftest.er1 >conftest.err
5421 rm -f conftest.er1
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } &&
5425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427 (eval $ac_try) 2>&5
5428 ac_status=$?
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; } &&
5431 { ac_try='test -s conftest.$ac_objext'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 (eval $ac_try) 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; }; then
5437 gcc_cv_glibc=yes
5438 else
5439 echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5442 gcc_cv_glibc=no
5444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5448 echo "${ECHO_T}$gcc_cv_glibc" >&6
5449 if test $gcc_cv_glibc = yes; then
5451 cat >>confdefs.h <<\_ACEOF
5452 #define _GNU_SOURCE 1
5453 _ACEOF
5457 # Need to reject headers which give warnings, so that the -Werror bootstrap
5458 # works later. *sigh* This needs to come before all header checks.
5460 ac_c_preproc_warn_flag=yes
5462 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5463 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5464 if test "${ac_cv_header_stdc+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467 cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h. */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 #include <stdlib.h>
5474 #include <stdarg.h>
5475 #include <string.h>
5476 #include <float.h>
5479 main ()
5483 return 0;
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 (eval $ac_try) 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; } &&
5501 { ac_try='test -s conftest.$ac_objext'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 (eval $ac_try) 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
5507 ac_cv_header_stdc=yes
5508 else
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 ac_cv_header_stdc=no
5514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5516 if test $ac_cv_header_stdc = yes; then
5517 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5518 cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h. */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 #include <string.h>
5526 _ACEOF
5527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5528 $EGREP "memchr" >/dev/null 2>&1; then
5530 else
5531 ac_cv_header_stdc=no
5533 rm -f conftest*
5537 if test $ac_cv_header_stdc = yes; then
5538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5539 cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h. */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 #include <stdlib.h>
5547 _ACEOF
5548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5549 $EGREP "free" >/dev/null 2>&1; then
5551 else
5552 ac_cv_header_stdc=no
5554 rm -f conftest*
5558 if test $ac_cv_header_stdc = yes; then
5559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5560 if test "$cross_compiling" = yes; then
5562 else
5563 cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h. */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569 #include <ctype.h>
5570 #if ((' ' & 0x0FF) == 0x020)
5571 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5572 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5573 #else
5574 # define ISLOWER(c) \
5575 (('a' <= (c) && (c) <= 'i') \
5576 || ('j' <= (c) && (c) <= 'r') \
5577 || ('s' <= (c) && (c) <= 'z'))
5578 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5579 #endif
5581 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5583 main ()
5585 int i;
5586 for (i = 0; i < 256; i++)
5587 if (XOR (islower (i), ISLOWER (i))
5588 || toupper (i) != TOUPPER (i))
5589 exit(2);
5590 exit (0);
5592 _ACEOF
5593 rm -f conftest$ac_exeext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5595 (eval $ac_link) 2>&5
5596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 (eval $ac_try) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5605 else
5606 echo "$as_me: program exited with status $ac_status" >&5
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5610 ( exit $ac_status )
5611 ac_cv_header_stdc=no
5613 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5617 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5618 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5619 if test $ac_cv_header_stdc = yes; then
5621 cat >>confdefs.h <<\_ACEOF
5622 #define STDC_HEADERS 1
5623 _ACEOF
5627 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5628 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5629 if test "${ac_cv_header_time+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <sys/types.h>
5639 #include <sys/time.h>
5640 #include <time.h>
5643 main ()
5645 if ((struct tm *) 0)
5646 return 0;
5648 return 0;
5650 _ACEOF
5651 rm -f conftest.$ac_objext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5653 (eval $ac_compile) 2>conftest.er1
5654 ac_status=$?
5655 grep -v '^ *+' conftest.er1 >conftest.err
5656 rm -f conftest.er1
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 (eval $ac_try) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; } &&
5666 { ac_try='test -s conftest.$ac_objext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 (eval $ac_try) 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 ac_cv_header_time=yes
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 ac_cv_header_time=no
5679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5681 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5682 echo "${ECHO_T}$ac_cv_header_time" >&6
5683 if test $ac_cv_header_time = yes; then
5685 cat >>confdefs.h <<\_ACEOF
5686 #define TIME_WITH_SYS_TIME 1
5687 _ACEOF
5691 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5692 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5693 if test "${ac_cv_header_stdbool_h+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696 cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #include <stdbool.h>
5704 main ()
5706 bool foo = false;
5708 return 0;
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_cv_header_stdbool_h=yes
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 ac_cv_header_stdbool_h=no
5739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5741 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5742 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5743 if test $ac_cv_header_stdbool_h = yes; then
5745 cat >>confdefs.h <<\_ACEOF
5746 #define HAVE_STDBOOL_H 1
5747 _ACEOF
5751 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5752 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5753 if test "${gcc_cv_header_string+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756 cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 #include <string.h>
5763 #include <strings.h>
5765 main ()
5769 return 0;
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>conftest.er1
5775 ac_status=$?
5776 grep -v '^ *+' conftest.er1 >conftest.err
5777 rm -f conftest.er1
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } &&
5781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; } &&
5787 { ac_try='test -s conftest.$ac_objext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 gcc_cv_header_string=yes
5794 else
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5798 gcc_cv_header_string=no
5800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5802 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5803 echo "${ECHO_T}$gcc_cv_header_string" >&6
5804 if test $gcc_cv_header_string = yes; then
5806 cat >>confdefs.h <<\_ACEOF
5807 #define STRING_WITH_STRINGS 1
5808 _ACEOF
5812 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5813 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5814 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817 cat >conftest.$ac_ext <<_ACEOF
5818 /* confdefs.h. */
5819 _ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5823 #include <sys/types.h>
5824 #include <sys/wait.h>
5825 #ifndef WEXITSTATUS
5826 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5827 #endif
5828 #ifndef WIFEXITED
5829 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5830 #endif
5833 main ()
5835 int s;
5836 wait (&s);
5837 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5839 return 0;
5841 _ACEOF
5842 rm -f conftest.$ac_objext
5843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5844 (eval $ac_compile) 2>conftest.er1
5845 ac_status=$?
5846 grep -v '^ *+' conftest.er1 >conftest.err
5847 rm -f conftest.er1
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } &&
5851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 (eval $ac_try) 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_cv_header_sys_wait_h=yes
5864 else
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5868 ac_cv_header_sys_wait_h=no
5870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5873 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5874 if test $ac_cv_header_sys_wait_h = yes; then
5876 cat >>confdefs.h <<\_ACEOF
5877 #define HAVE_SYS_WAIT_H 1
5878 _ACEOF
5903 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5904 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5905 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5906 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5909 echo "$as_me:$LINENO: checking for $ac_header" >&5
5910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 #include <$ac_header>
5921 _ACEOF
5922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } >/dev/null; then
5930 if test -s conftest.err; then
5931 ac_cpp_err=$ac_c_preproc_warn_flag
5932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5933 else
5934 ac_cpp_err=
5936 else
5937 ac_cpp_err=yes
5939 if test -z "$ac_cpp_err"; then
5940 eval "$as_ac_Header=yes"
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 eval "$as_ac_Header=no"
5947 rm -f conftest.err conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5952 cat >>confdefs.h <<_ACEOF
5953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5954 _ACEOF
5957 done
5960 # Check for thread headers.
5961 echo "$as_me:$LINENO: checking for thread.h" >&5
5962 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5963 if test "${ac_cv_header_thread_h+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <thread.h>
5973 _ACEOF
5974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } >/dev/null; then
5982 if test -s conftest.err; then
5983 ac_cpp_err=$ac_c_preproc_warn_flag
5984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5985 else
5986 ac_cpp_err=
5988 else
5989 ac_cpp_err=yes
5991 if test -z "$ac_cpp_err"; then
5992 ac_cv_header_thread_h=yes
5993 else
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_cv_header_thread_h=no
5999 rm -f conftest.err conftest.$ac_ext
6001 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6002 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6003 if test $ac_cv_header_thread_h = yes; then
6004 have_thread_h=yes
6005 else
6006 have_thread_h=
6009 echo "$as_me:$LINENO: checking for pthread.h" >&5
6010 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6011 if test "${ac_cv_header_pthread_h+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #include <pthread.h>
6021 _ACEOF
6022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6024 ac_status=$?
6025 grep -v '^ *+' conftest.er1 >conftest.err
6026 rm -f conftest.er1
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } >/dev/null; then
6030 if test -s conftest.err; then
6031 ac_cpp_err=$ac_c_preproc_warn_flag
6032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6033 else
6034 ac_cpp_err=
6036 else
6037 ac_cpp_err=yes
6039 if test -z "$ac_cpp_err"; then
6040 ac_cv_header_pthread_h=yes
6041 else
6042 echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6045 ac_cv_header_pthread_h=no
6047 rm -f conftest.err conftest.$ac_ext
6049 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6050 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6051 if test $ac_cv_header_pthread_h = yes; then
6052 have_pthread_h=yes
6053 else
6054 have_pthread_h=
6058 # These tests can't be done till we know if we have limits.h.
6059 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6060 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6061 if test "${gcc_cv_decl_char_bit+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #ifdef HAVE_LIMITS_H
6071 #include <limits.h>
6072 #endif
6073 #ifdef CHAR_BIT
6074 found
6075 #endif
6076 _ACEOF
6077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6078 $EGREP "found" >/dev/null 2>&1; then
6079 gcc_cv_decl_char_bit=yes
6080 else
6081 gcc_cv_decl_char_bit=no
6083 rm -f conftest*
6087 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6088 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6089 if test $gcc_cv_decl_char_bit = no; then
6090 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6091 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6092 if test "${gcc_cv_c_nbby+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6096 gcc_cv_c_nbby=
6097 while test $i -lt 65; do
6098 cat >conftest.$ac_ext <<_ACEOF
6099 /* confdefs.h. */
6100 _ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6106 main ()
6108 switch(0) {
6109 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6110 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6113 return 0;
6115 _ACEOF
6116 rm -f conftest.$ac_objext
6117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6118 (eval $ac_compile) 2>conftest.er1
6119 ac_status=$?
6120 grep -v '^ *+' conftest.er1 >conftest.err
6121 rm -f conftest.er1
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } &&
6125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest.$ac_objext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 gcc_cv_c_nbby=$i; break
6138 else
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6144 i=`expr $i + 1`
6145 done
6146 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6149 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6150 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6151 if test $gcc_cv_c_nbby = failed; then
6152 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6153 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6154 { (exit 1); exit 1; }; }
6155 else
6157 cat >>confdefs.h <<_ACEOF
6158 #define CHAR_BIT $gcc_cv_c_nbby
6159 _ACEOF
6163 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6164 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6165 if test "${ac_cv_c_bigendian+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168 ac_cv_c_bigendian=unknown
6169 # See if sys/param.h defines the BYTE_ORDER macro.
6170 cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h. */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176 #include <sys/types.h>
6177 #include <sys/param.h>
6179 main ()
6182 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6183 bogus endian macros
6184 #endif
6186 return 0;
6188 _ACEOF
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191 (eval $ac_compile) 2>conftest.er1
6192 ac_status=$?
6193 grep -v '^ *+' conftest.er1 >conftest.err
6194 rm -f conftest.er1
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; } &&
6204 { ac_try='test -s conftest.$ac_objext'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 (eval $ac_try) 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; }; then
6210 # It does; now see whether it defined to BIG_ENDIAN or not.
6211 cat >conftest.$ac_ext <<_ACEOF
6212 /* confdefs.h. */
6213 _ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6217 #include <sys/types.h>
6218 #include <sys/param.h>
6220 main ()
6223 #if BYTE_ORDER != BIG_ENDIAN
6224 not big endian
6225 #endif
6227 return 0;
6229 _ACEOF
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>conftest.er1
6233 ac_status=$?
6234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_c_bigendian=yes
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 ac_cv_c_bigendian=no
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259 else
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6265 if test $ac_cv_c_bigendian = unknown; then
6266 if test "$cross_compiling" = yes; then
6267 echo $ac_n "cross-compiling... " 2>&6
6268 else
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 main () {
6276 /* Are we little or big endian? From Harbison&Steele. */
6277 union
6279 long l;
6280 char c[sizeof (long)];
6281 } u;
6282 u.l = 1;
6283 exit (u.c[sizeof (long) - 1] == 1);
6285 _ACEOF
6286 rm -f conftest$ac_exeext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6288 (eval $ac_link) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_cv_c_bigendian=no
6298 else
6299 echo "$as_me: program exited with status $ac_status" >&5
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 ( exit $ac_status )
6304 ac_cv_c_bigendian=yes
6306 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6310 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6311 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6312 if test $ac_cv_c_bigendian = unknown; then
6313 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6314 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6316 cat >conftest.c <<EOF
6317 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6318 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6319 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6320 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6321 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6322 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6323 int main() { _ascii (); _ebcdic (); return 0; }
6325 if test -f conftest.c ; then
6326 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6327 if test `grep -l BIGenDianSyS conftest.o` ; then
6328 echo $ac_n ' big endian probe OK, ' 1>&6
6329 ac_cv_c_bigendian=yes
6331 if test `grep -l LiTTleEnDian conftest.o` ; then
6332 echo $ac_n ' little endian probe OK, ' 1>&6
6333 if test $ac_cv_c_bigendian = yes ; then
6334 ac_cv_c_bigendian=unknown;
6335 else
6336 ac_cv_c_bigendian=no
6339 echo $ac_n 'guessing bigendian ... ' >&6
6342 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6343 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6345 if test $ac_cv_c_bigendian = yes; then
6347 cat >>confdefs.h <<\_ACEOF
6348 #define WORDS_BIGENDIAN 1
6349 _ACEOF
6352 cat >>confdefs.h <<\_ACEOF
6353 #define HOST_WORDS_BIG_ENDIAN 1
6354 _ACEOF
6356 BYTEORDER=4321
6357 else
6358 BYTEORDER=1234
6361 cat >>confdefs.h <<_ACEOF
6362 #define BYTEORDER $BYTEORDER
6363 _ACEOF
6365 if test $ac_cv_c_bigendian = unknown; then
6366 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6367 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6368 { (exit 1); exit 1; }; }
6372 # --------
6373 # UNSORTED
6374 # --------
6376 # Stage specific cflags for build.
6377 stage1_cflags=
6378 case $build in
6379 vax-*-*)
6380 if test x$GCC = xyes
6381 then
6382 stage1_cflags="-Wa,-J"
6383 else
6384 stage1_cflags="-J"
6387 powerpc-*-darwin*)
6388 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6389 # sources; use -no-cpp-precomp to get to GNU cpp.
6390 # Apple's GCC has bugs in designated initializer handling, so disable
6391 # that too.
6392 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6394 esac
6397 # These libraries may be used by collect2.
6398 # We may need a special search path to get them linked.
6399 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6400 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6401 if test "${gcc_cv_collect2_libs+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404 save_LIBS="$LIBS"
6405 for libs in '' -lld -lmld \
6406 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6407 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6409 LIBS="$libs"
6410 cat >conftest.$ac_ext <<_ACEOF
6411 /* confdefs.h. */
6412 _ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6417 /* Override any gcc2 internal prototype to avoid an error. */
6418 #ifdef __cplusplus
6419 extern "C"
6420 #endif
6421 /* We use char because int might match the return type of a gcc2
6422 builtin and then its argument prototype would still apply. */
6423 char ldopen ();
6425 main ()
6427 ldopen ();
6429 return 0;
6431 _ACEOF
6432 rm -f conftest.$ac_objext conftest$ac_exeext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6434 (eval $ac_link) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 (eval $ac_try) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try='test -s conftest$ac_exeext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 (eval $ac_try) 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 gcc_cv_collect2_libs="$libs"; break
6454 else
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6459 rm -f conftest.err conftest.$ac_objext \
6460 conftest$ac_exeext conftest.$ac_ext
6461 done
6462 LIBS="$save_LIBS"
6463 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6465 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6466 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6467 case $gcc_cv_collect2_libs in
6468 "none required") ;;
6469 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6470 esac
6473 # When building Ada code on Alpha, we need exc_resume which is usually in
6474 # -lexc. So test for it.
6475 save_LIBS="$LIBS"
6476 LIBS=
6477 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6478 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6479 if test "${ac_cv_search_exc_resume+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 ac_func_search_save_LIBS=$LIBS
6483 ac_cv_search_exc_resume=no
6484 cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h. */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6491 /* Override any gcc2 internal prototype to avoid an error. */
6492 #ifdef __cplusplus
6493 extern "C"
6494 #endif
6495 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6497 char exc_resume ();
6499 main ()
6501 exc_resume ();
6503 return 0;
6505 _ACEOF
6506 rm -f conftest.$ac_objext conftest$ac_exeext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6508 (eval $ac_link) 2>conftest.er1
6509 ac_status=$?
6510 grep -v '^ *+' conftest.er1 >conftest.err
6511 rm -f conftest.er1
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 (eval $ac_try) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; } &&
6521 { ac_try='test -s conftest$ac_exeext'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 ac_cv_search_exc_resume="none required"
6528 else
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6533 rm -f conftest.err conftest.$ac_objext \
6534 conftest$ac_exeext conftest.$ac_ext
6535 if test "$ac_cv_search_exc_resume" = no; then
6536 for ac_lib in exc; do
6537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6538 cat >conftest.$ac_ext <<_ACEOF
6539 /* confdefs.h. */
6540 _ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6545 /* Override any gcc2 internal prototype to avoid an error. */
6546 #ifdef __cplusplus
6547 extern "C"
6548 #endif
6549 /* We use char because int might match the return type of a gcc2
6550 builtin and then its argument prototype would still apply. */
6551 char exc_resume ();
6553 main ()
6555 exc_resume ();
6557 return 0;
6559 _ACEOF
6560 rm -f conftest.$ac_objext conftest$ac_exeext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6562 (eval $ac_link) 2>conftest.er1
6563 ac_status=$?
6564 grep -v '^ *+' conftest.er1 >conftest.err
6565 rm -f conftest.er1
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 (eval $ac_try) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; } &&
6575 { ac_try='test -s conftest$ac_exeext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6581 ac_cv_search_exc_resume="-l$ac_lib"
6582 break
6583 else
6584 echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6588 rm -f conftest.err conftest.$ac_objext \
6589 conftest$ac_exeext conftest.$ac_ext
6590 done
6592 LIBS=$ac_func_search_save_LIBS
6594 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6595 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6596 if test "$ac_cv_search_exc_resume" != no; then
6597 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6601 GNAT_LIBEXC="$LIBS"
6602 LIBS="$save_LIBS"
6605 # Some systems put ldexp and frexp in libm instead of libc; assume
6606 # they're both in the same place. jcf-dump needs them.
6607 save_LIBS="$LIBS"
6608 LIBS=
6609 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6610 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6611 if test "${ac_cv_search_ldexp+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614 ac_func_search_save_LIBS=$LIBS
6615 ac_cv_search_ldexp=no
6616 cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h. */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6623 /* Override any gcc2 internal prototype to avoid an error. */
6624 #ifdef __cplusplus
6625 extern "C"
6626 #endif
6627 /* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
6629 char ldexp ();
6631 main ()
6633 ldexp ();
6635 return 0;
6637 _ACEOF
6638 rm -f conftest.$ac_objext conftest$ac_exeext
6639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6640 (eval $ac_link) 2>conftest.er1
6641 ac_status=$?
6642 grep -v '^ *+' conftest.er1 >conftest.err
6643 rm -f conftest.er1
6644 cat conftest.err >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } &&
6647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649 (eval $ac_try) 2>&5
6650 ac_status=$?
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; } &&
6653 { ac_try='test -s conftest$ac_exeext'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; }; then
6659 ac_cv_search_ldexp="none required"
6660 else
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6665 rm -f conftest.err conftest.$ac_objext \
6666 conftest$ac_exeext conftest.$ac_ext
6667 if test "$ac_cv_search_ldexp" = no; then
6668 for ac_lib in m; do
6669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6670 cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h. */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6677 /* Override any gcc2 internal prototype to avoid an error. */
6678 #ifdef __cplusplus
6679 extern "C"
6680 #endif
6681 /* We use char because int might match the return type of a gcc2
6682 builtin and then its argument prototype would still apply. */
6683 char ldexp ();
6685 main ()
6687 ldexp ();
6689 return 0;
6691 _ACEOF
6692 rm -f conftest.$ac_objext conftest$ac_exeext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6694 (eval $ac_link) 2>conftest.er1
6695 ac_status=$?
6696 grep -v '^ *+' conftest.er1 >conftest.err
6697 rm -f conftest.er1
6698 cat conftest.err >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } &&
6701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_cv_search_ldexp="-l$ac_lib"
6714 break
6715 else
6716 echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6720 rm -f conftest.err conftest.$ac_objext \
6721 conftest$ac_exeext conftest.$ac_ext
6722 done
6724 LIBS=$ac_func_search_save_LIBS
6726 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6727 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6728 if test "$ac_cv_search_ldexp" != no; then
6729 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6733 LDEXP_LIB="$LIBS"
6734 LIBS="$save_LIBS"
6737 # Use <inttypes.h> only if it exists,
6738 # doesn't clash with <sys/types.h>, and declares intmax_t.
6739 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6740 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6741 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744 cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h. */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 #include <sys/types.h>
6751 #include <inttypes.h>
6753 main ()
6755 intmax_t i = -1;
6757 return 0;
6759 _ACEOF
6760 rm -f conftest.$ac_objext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6762 (eval $ac_compile) 2>conftest.er1
6763 ac_status=$?
6764 grep -v '^ *+' conftest.er1 >conftest.err
6765 rm -f conftest.er1
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
6769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; } &&
6775 { ac_try='test -s conftest.$ac_objext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 gcc_cv_header_inttypes_h=yes
6782 else
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6786 gcc_cv_header_inttypes_h=no
6788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6791 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6792 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6793 if test $gcc_cv_header_inttypes_h = yes; then
6795 cat >>confdefs.h <<\_ACEOF
6796 #define HAVE_INTTYPES_H 1
6797 _ACEOF
6827 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6828 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6829 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6830 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6831 setlocale
6833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6834 echo "$as_me:$LINENO: checking for $ac_func" >&5
6835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6836 if eval "test \"\${$as_ac_var+set}\" = set"; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 else
6839 cat >conftest.$ac_ext <<_ACEOF
6840 /* confdefs.h. */
6841 _ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6847 #define $ac_func innocuous_$ac_func
6849 /* System header to define __stub macros and hopefully few prototypes,
6850 which can conflict with char $ac_func (); below.
6851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6852 <limits.h> exists even on freestanding compilers. */
6854 #ifdef __STDC__
6855 # include <limits.h>
6856 #else
6857 # include <assert.h>
6858 #endif
6860 #undef $ac_func
6862 /* Override any gcc2 internal prototype to avoid an error. */
6863 #ifdef __cplusplus
6864 extern "C"
6866 #endif
6867 /* We use char because int might match the return type of a gcc2
6868 builtin and then its argument prototype would still apply. */
6869 char $ac_func ();
6870 /* The GNU C library defines this for functions which it implements
6871 to always fail with ENOSYS. Some functions are actually named
6872 something starting with __ and the normal name is an alias. */
6873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6874 choke me
6875 #else
6876 char (*f) () = $ac_func;
6877 #endif
6878 #ifdef __cplusplus
6880 #endif
6883 main ()
6885 return f != $ac_func;
6887 return 0;
6889 _ACEOF
6890 rm -f conftest.$ac_objext conftest$ac_exeext
6891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6892 (eval $ac_link) 2>conftest.er1
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
6899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; } &&
6905 { ac_try='test -s conftest$ac_exeext'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6911 eval "$as_ac_var=yes"
6912 else
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6916 eval "$as_ac_var=no"
6918 rm -f conftest.err conftest.$ac_objext \
6919 conftest$ac_exeext conftest.$ac_ext
6921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6923 if test `eval echo '${'$as_ac_var'}'` = yes; then
6924 cat >>confdefs.h <<_ACEOF
6925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6926 _ACEOF
6929 done
6932 if test x$ac_cv_func_mbstowcs = xyes; then
6933 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6934 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6935 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938 if test "$cross_compiling" = yes; then
6939 gcc_cv_func_mbstowcs_works=yes
6940 else
6941 cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h. */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947 #include <stdlib.h>
6948 int main()
6950 mbstowcs(0, "", 0);
6951 return 0;
6953 _ACEOF
6954 rm -f conftest$ac_exeext
6955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6956 (eval $ac_link) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 (eval $ac_try) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6965 gcc_cv_func_mbstowcs_works=yes
6966 else
6967 echo "$as_me: program exited with status $ac_status" >&5
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6971 ( exit $ac_status )
6972 gcc_cv_func_mbstowcs_works=no
6974 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6977 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6978 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6979 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6981 cat >>confdefs.h <<\_ACEOF
6982 #define HAVE_WORKING_MBSTOWCS 1
6983 _ACEOF
6988 echo "$as_me:$LINENO: checking for ssize_t" >&5
6989 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6990 if test "${ac_cv_type_ssize_t+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
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 $ac_includes_default
7001 main ()
7003 if ((ssize_t *) 0)
7004 return 0;
7005 if (sizeof (ssize_t))
7006 return 0;
7008 return 0;
7010 _ACEOF
7011 rm -f conftest.$ac_objext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7013 (eval $ac_compile) 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 (eval $ac_try) 2>&5
7023 ac_status=$?
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try='test -s conftest.$ac_objext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 (eval $ac_try) 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 ac_cv_type_ssize_t=yes
7033 else
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7037 ac_cv_type_ssize_t=no
7039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7041 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7042 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7043 if test $ac_cv_type_ssize_t = yes; then
7045 else
7047 cat >>confdefs.h <<_ACEOF
7048 #define ssize_t int
7049 _ACEOF
7054 # Try to determine the array type of the second argument of getgroups
7055 # for the target system (int or gid_t).
7056 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7057 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7058 if test "${ac_cv_type_uid_t+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061 cat >conftest.$ac_ext <<_ACEOF
7062 /* confdefs.h. */
7063 _ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h. */
7067 #include <sys/types.h>
7069 _ACEOF
7070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7071 $EGREP "uid_t" >/dev/null 2>&1; then
7072 ac_cv_type_uid_t=yes
7073 else
7074 ac_cv_type_uid_t=no
7076 rm -f conftest*
7079 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7080 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7081 if test $ac_cv_type_uid_t = no; then
7083 cat >>confdefs.h <<\_ACEOF
7084 #define uid_t int
7085 _ACEOF
7088 cat >>confdefs.h <<\_ACEOF
7089 #define gid_t int
7090 _ACEOF
7094 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7095 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7096 if test "${ac_cv_type_getgroups+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 else
7099 if test "$cross_compiling" = yes; then
7100 ac_cv_type_getgroups=cross
7101 else
7102 cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h. */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 /* Thanks to Mike Rendell for this test. */
7109 #include <sys/types.h>
7110 #define NGID 256
7111 #undef MAX
7112 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7115 main ()
7117 gid_t gidset[NGID];
7118 int i, n;
7119 union { gid_t gval; long lval; } val;
7121 val.lval = -1;
7122 for (i = 0; i < NGID; i++)
7123 gidset[i] = val.gval;
7124 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7125 gidset);
7126 /* Exit non-zero if getgroups seems to require an array of ints. This
7127 happens when gid_t is short but getgroups modifies an array of ints. */
7128 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7130 _ACEOF
7131 rm -f conftest$ac_exeext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133 (eval $ac_link) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 (eval $ac_try) 2>&5
7139 ac_status=$?
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7142 ac_cv_type_getgroups=gid_t
7143 else
7144 echo "$as_me: program exited with status $ac_status" >&5
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7148 ( exit $ac_status )
7149 ac_cv_type_getgroups=int
7151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7153 if test $ac_cv_type_getgroups = cross; then
7154 cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h. */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 #include <unistd.h>
7162 _ACEOF
7163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7164 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7165 ac_cv_type_getgroups=gid_t
7166 else
7167 ac_cv_type_getgroups=int
7169 rm -f conftest*
7173 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7174 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7176 cat >>confdefs.h <<_ACEOF
7177 #define GETGROUPS_T $ac_cv_type_getgroups
7178 _ACEOF
7181 if test "${target}" = "${build}"; then
7182 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7183 else
7184 case "${target}" in
7185 # This condition may need some tweaking. It should include all
7186 # targets where the array type of the second argument of getgroups
7187 # is int and the type of gid_t is not equivalent to int.
7188 *-*-sunos* | *-*-ultrix*)
7189 TARGET_GETGROUPS_T=int
7192 TARGET_GETGROUPS_T=gid_t
7194 esac
7198 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7199 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7200 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 else
7203 if test "$cross_compiling" = yes; then
7204 gcc_cv_func_printf_ptr=no
7205 else
7206 cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h. */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 #include <stdio.h>
7214 int main()
7216 char buf[64];
7217 char *p = buf, *q = NULL;
7218 sprintf(buf, "%p", p);
7219 sscanf(buf, "%p", &q);
7220 return (p != q);
7222 _ACEOF
7223 rm -f conftest$ac_exeext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7225 (eval $ac_link) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 (eval $ac_try) 2>&5
7231 ac_status=$?
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7234 gcc_cv_func_printf_ptr=yes
7235 else
7236 echo "$as_me: program exited with status $ac_status" >&5
7237 echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7240 ( exit $ac_status )
7241 gcc_cv_func_printf_ptr=no
7243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7245 rm -f core core.* *.core
7247 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7248 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7249 if test $gcc_cv_func_printf_ptr = yes ; then
7251 cat >>confdefs.h <<\_ACEOF
7252 #define HAVE_PRINTF_PTR 1
7253 _ACEOF
7257 if test $ac_cv_header_sys_mman_h != yes \
7258 || test $ac_cv_func_mmap != yes; then
7259 gcc_cv_func_mmap_file=no
7260 gcc_cv_func_mmap_dev_zero=no
7261 gcc_cv_func_mmap_anon=no
7262 else
7263 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7264 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7265 if test "${gcc_cv_func_mmap_file+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268 # Add a system to this blacklist if
7269 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7270 # memory area containing the same data that you'd get if you applied
7271 # read() to the same fd. The only system known to have a problem here
7272 # is VMS, where text files have record structure.
7273 case "$host_os" in
7274 vms* | ultrix*)
7275 gcc_cv_func_mmap_file=no ;;
7277 gcc_cv_func_mmap_file=yes;;
7278 esac
7280 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7281 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7282 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7283 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7284 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287 # Add a system to this blacklist if it has mmap() but /dev/zero
7288 # does not exist, or if mmapping /dev/zero does not give anonymous
7289 # zeroed pages with both the following properties:
7290 # 1. If you map N consecutive pages in with one call, and then
7291 # unmap any subset of those pages, the pages that were not
7292 # explicitly unmapped remain accessible.
7293 # 2. If you map two adjacent blocks of memory and then unmap them
7294 # both at once, they must both go away.
7295 # Systems known to be in this category are Windows (all variants),
7296 # VMS, and Darwin.
7297 case "$host_os" in
7298 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7299 gcc_cv_func_mmap_dev_zero=no ;;
7301 gcc_cv_func_mmap_dev_zero=yes;;
7302 esac
7304 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7305 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7307 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7308 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7309 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7310 if test "${gcc_cv_decl_map_anon+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313 cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h. */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 #include <sys/types.h>
7320 #include <sys/mman.h>
7321 #include <unistd.h>
7323 #ifndef MAP_ANONYMOUS
7324 #define MAP_ANONYMOUS MAP_ANON
7325 #endif
7328 main ()
7330 int n = MAP_ANONYMOUS;
7332 return 0;
7334 _ACEOF
7335 rm -f conftest.$ac_objext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7337 (eval $ac_compile) 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } &&
7344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; } &&
7350 { ac_try='test -s conftest.$ac_objext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 (eval $ac_try) 2>&5
7353 ac_status=$?
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 gcc_cv_decl_map_anon=yes
7357 else
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7361 gcc_cv_decl_map_anon=no
7363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7365 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7366 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7368 if test $gcc_cv_decl_map_anon = no; then
7369 gcc_cv_func_mmap_anon=no
7370 else
7371 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7372 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7373 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7377 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7378 # doesn't give anonymous zeroed pages with the same properties listed
7379 # above for use of /dev/zero.
7380 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7381 case "$host_os" in
7382 vms* | cygwin* | pe | mingw* | sco* | udk* )
7383 gcc_cv_func_mmap_anon=no ;;
7385 gcc_cv_func_mmap_anon=yes;;
7386 esac
7388 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7389 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7393 if test $gcc_cv_func_mmap_file = yes; then
7395 cat >>confdefs.h <<\_ACEOF
7396 #define HAVE_MMAP_FILE 1
7397 _ACEOF
7400 if test $gcc_cv_func_mmap_dev_zero = yes; then
7402 cat >>confdefs.h <<\_ACEOF
7403 #define HAVE_MMAP_DEV_ZERO 1
7404 _ACEOF
7407 if test $gcc_cv_func_mmap_anon = yes; then
7409 cat >>confdefs.h <<\_ACEOF
7410 #define HAVE_MMAP_ANON 1
7411 _ACEOF
7416 case "${host}" in
7417 *-*-*vms*)
7418 # Under VMS, vfork works very differently than on Unix. The standard test
7419 # won't work, and it isn't easily adaptable. It makes more sense to
7420 # just force it.
7421 ac_cv_func_vfork_works=yes
7423 esac
7424 echo "$as_me:$LINENO: checking for pid_t" >&5
7425 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7426 if test "${ac_cv_type_pid_t+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429 cat >conftest.$ac_ext <<_ACEOF
7430 /* confdefs.h. */
7431 _ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h. */
7435 $ac_includes_default
7437 main ()
7439 if ((pid_t *) 0)
7440 return 0;
7441 if (sizeof (pid_t))
7442 return 0;
7444 return 0;
7446 _ACEOF
7447 rm -f conftest.$ac_objext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449 (eval $ac_compile) 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 (eval $ac_try) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; } &&
7462 { ac_try='test -s conftest.$ac_objext'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 (eval $ac_try) 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; }; then
7468 ac_cv_type_pid_t=yes
7469 else
7470 echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7473 ac_cv_type_pid_t=no
7475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7477 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7478 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7479 if test $ac_cv_type_pid_t = yes; then
7481 else
7483 cat >>confdefs.h <<_ACEOF
7484 #define pid_t int
7485 _ACEOF
7491 for ac_header in unistd.h vfork.h
7493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7494 echo "$as_me:$LINENO: checking for $ac_header" >&5
7495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499 cat >conftest.$ac_ext <<_ACEOF
7500 /* confdefs.h. */
7501 _ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7505 #include <$ac_header>
7506 _ACEOF
7507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7509 ac_status=$?
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } >/dev/null; then
7515 if test -s conftest.err; then
7516 ac_cpp_err=$ac_c_preproc_warn_flag
7517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7518 else
7519 ac_cpp_err=
7521 else
7522 ac_cpp_err=yes
7524 if test -z "$ac_cpp_err"; then
7525 eval "$as_ac_Header=yes"
7526 else
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7530 eval "$as_ac_Header=no"
7532 rm -f conftest.err conftest.$ac_ext
7534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7537 cat >>confdefs.h <<_ACEOF
7538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7539 _ACEOF
7542 done
7546 for ac_func in fork vfork
7548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7549 echo "$as_me:$LINENO: checking for $ac_func" >&5
7550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7551 if eval "test \"\${$as_ac_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7562 #define $ac_func innocuous_$ac_func
7564 /* System header to define __stub macros and hopefully few prototypes,
7565 which can conflict with char $ac_func (); below.
7566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7567 <limits.h> exists even on freestanding compilers. */
7569 #ifdef __STDC__
7570 # include <limits.h>
7571 #else
7572 # include <assert.h>
7573 #endif
7575 #undef $ac_func
7577 /* Override any gcc2 internal prototype to avoid an error. */
7578 #ifdef __cplusplus
7579 extern "C"
7581 #endif
7582 /* We use char because int might match the return type of a gcc2
7583 builtin and then its argument prototype would still apply. */
7584 char $ac_func ();
7585 /* The GNU C library defines this for functions which it implements
7586 to always fail with ENOSYS. Some functions are actually named
7587 something starting with __ and the normal name is an alias. */
7588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7589 choke me
7590 #else
7591 char (*f) () = $ac_func;
7592 #endif
7593 #ifdef __cplusplus
7595 #endif
7598 main ()
7600 return f != $ac_func;
7602 return 0;
7604 _ACEOF
7605 rm -f conftest.$ac_objext conftest$ac_exeext
7606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7607 (eval $ac_link) 2>conftest.er1
7608 ac_status=$?
7609 grep -v '^ *+' conftest.er1 >conftest.err
7610 rm -f conftest.er1
7611 cat conftest.err >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } &&
7614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 (eval $ac_try) 2>&5
7617 ac_status=$?
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; } &&
7620 { ac_try='test -s conftest$ac_exeext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 (eval $ac_try) 2>&5
7623 ac_status=$?
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7626 eval "$as_ac_var=yes"
7627 else
7628 echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7631 eval "$as_ac_var=no"
7633 rm -f conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7638 if test `eval echo '${'$as_ac_var'}'` = yes; then
7639 cat >>confdefs.h <<_ACEOF
7640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7641 _ACEOF
7644 done
7646 if test "x$ac_cv_func_fork" = xyes; then
7647 echo "$as_me:$LINENO: checking for working fork" >&5
7648 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7649 if test "${ac_cv_func_fork_works+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652 if test "$cross_compiling" = yes; then
7653 ac_cv_func_fork_works=cross
7654 else
7655 cat >conftest.$ac_ext <<_ACEOF
7656 /* By Ruediger Kuhlmann. */
7657 #include <sys/types.h>
7658 #if HAVE_UNISTD_H
7659 # include <unistd.h>
7660 #endif
7661 /* Some systems only have a dummy stub for fork() */
7662 int main ()
7664 if (fork() < 0)
7665 exit (1);
7666 exit (0);
7668 _ACEOF
7669 rm -f conftest$ac_exeext
7670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7671 (eval $ac_link) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 (eval $ac_try) 2>&5
7677 ac_status=$?
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7680 ac_cv_func_fork_works=yes
7681 else
7682 echo "$as_me: program exited with status $ac_status" >&5
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7686 ( exit $ac_status )
7687 ac_cv_func_fork_works=no
7689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7692 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7693 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7695 else
7696 ac_cv_func_fork_works=$ac_cv_func_fork
7698 if test "x$ac_cv_func_fork_works" = xcross; then
7699 case $host in
7700 *-*-amigaos* | *-*-msdosdjgpp*)
7701 # Override, as these systems have only a dummy fork() stub
7702 ac_cv_func_fork_works=no
7705 ac_cv_func_fork_works=yes
7707 esac
7708 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7709 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7711 ac_cv_func_vfork_works=$ac_cv_func_vfork
7712 if test "x$ac_cv_func_vfork" = xyes; then
7713 echo "$as_me:$LINENO: checking for working vfork" >&5
7714 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7715 if test "${ac_cv_func_vfork_works+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718 if test "$cross_compiling" = yes; then
7719 ac_cv_func_vfork_works=cross
7720 else
7721 cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h. */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 /* Thanks to Paul Eggert for this test. */
7728 #include <stdio.h>
7729 #include <stdlib.h>
7730 #include <sys/types.h>
7731 #include <sys/stat.h>
7732 #include <sys/wait.h>
7733 #if HAVE_UNISTD_H
7734 # include <unistd.h>
7735 #endif
7736 #if HAVE_VFORK_H
7737 # include <vfork.h>
7738 #endif
7739 /* On some sparc systems, changes by the child to local and incoming
7740 argument registers are propagated back to the parent. The compiler
7741 is told about this with #include <vfork.h>, but some compilers
7742 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7743 static variable whose address is put into a register that is
7744 clobbered by the vfork. */
7745 static void
7746 #ifdef __cplusplus
7747 sparc_address_test (int arg)
7748 # else
7749 sparc_address_test (arg) int arg;
7750 #endif
7752 static pid_t child;
7753 if (!child) {
7754 child = vfork ();
7755 if (child < 0) {
7756 perror ("vfork");
7757 _exit(2);
7759 if (!child) {
7760 arg = getpid();
7761 write(-1, "", 0);
7762 _exit (arg);
7768 main ()
7770 pid_t parent = getpid ();
7771 pid_t child;
7773 sparc_address_test (0);
7775 child = vfork ();
7777 if (child == 0) {
7778 /* Here is another test for sparc vfork register problems. This
7779 test uses lots of local variables, at least as many local
7780 variables as main has allocated so far including compiler
7781 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7782 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7783 reuse the register of parent for one of the local variables,
7784 since it will think that parent can't possibly be used any more
7785 in this routine. Assigning to the local variable will thus
7786 munge parent in the parent process. */
7787 pid_t
7788 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7789 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7790 /* Convince the compiler that p..p7 are live; otherwise, it might
7791 use the same hardware register for all 8 local variables. */
7792 if (p != p1 || p != p2 || p != p3 || p != p4
7793 || p != p5 || p != p6 || p != p7)
7794 _exit(1);
7796 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7797 from child file descriptors. If the child closes a descriptor
7798 before it execs or exits, this munges the parent's descriptor
7799 as well. Test for this by closing stdout in the child. */
7800 _exit(close(fileno(stdout)) != 0);
7801 } else {
7802 int status;
7803 struct stat st;
7805 while (wait(&status) != child)
7807 exit(
7808 /* Was there some problem with vforking? */
7809 child < 0
7811 /* Did the child fail? (This shouldn't happen.) */
7812 || status
7814 /* Did the vfork/compiler bug occur? */
7815 || parent != getpid()
7817 /* Did the file descriptor bug occur? */
7818 || fstat(fileno(stdout), &st) != 0
7822 _ACEOF
7823 rm -f conftest$ac_exeext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825 (eval $ac_link) 2>&5
7826 ac_status=$?
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 (eval $ac_try) 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 ac_cv_func_vfork_works=yes
7835 else
7836 echo "$as_me: program exited with status $ac_status" >&5
7837 echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7840 ( exit $ac_status )
7841 ac_cv_func_vfork_works=no
7843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7846 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7847 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7850 if test "x$ac_cv_func_fork_works" = xcross; then
7851 ac_cv_func_vfork_works=$ac_cv_func_vfork
7852 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7853 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7856 if test "x$ac_cv_func_vfork_works" = xyes; then
7858 cat >>confdefs.h <<\_ACEOF
7859 #define HAVE_WORKING_VFORK 1
7860 _ACEOF
7862 else
7864 cat >>confdefs.h <<\_ACEOF
7865 #define vfork fork
7866 _ACEOF
7869 if test "x$ac_cv_func_fork_works" = xyes; then
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_WORKING_FORK 1
7873 _ACEOF
7880 am_cv_lib_iconv_ldpath=
7882 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7883 if test "${with_libiconv_prefix+set}" = set; then
7884 withval="$with_libiconv_prefix"
7886 for dir in `echo "$withval" | tr : ' '`; do
7887 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7888 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7889 done
7894 for ac_header in iconv.h
7896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7897 echo "$as_me:$LINENO: checking for $ac_header" >&5
7898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902 cat >conftest.$ac_ext <<_ACEOF
7903 /* confdefs.h. */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7908 #include <$ac_header>
7909 _ACEOF
7910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7912 ac_status=$?
7913 grep -v '^ *+' conftest.er1 >conftest.err
7914 rm -f conftest.er1
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } >/dev/null; then
7918 if test -s conftest.err; then
7919 ac_cpp_err=$ac_c_preproc_warn_flag
7920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7921 else
7922 ac_cpp_err=
7924 else
7925 ac_cpp_err=yes
7927 if test -z "$ac_cpp_err"; then
7928 eval "$as_ac_Header=yes"
7929 else
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7933 eval "$as_ac_Header=no"
7935 rm -f conftest.err conftest.$ac_ext
7937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7940 cat >>confdefs.h <<_ACEOF
7941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7942 _ACEOF
7945 done
7948 echo "$as_me:$LINENO: checking for iconv" >&5
7949 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7950 if test "${am_cv_func_iconv+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7954 am_cv_func_iconv="no, consider installing GNU libiconv"
7955 am_cv_lib_iconv=no
7956 cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h. */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962 #include <stdlib.h>
7963 #include <iconv.h>
7965 main ()
7967 iconv_t cd = iconv_open("","");
7968 iconv(cd,NULL,NULL,NULL,NULL);
7969 iconv_close(cd);
7971 return 0;
7973 _ACEOF
7974 rm -f conftest.$ac_objext conftest$ac_exeext
7975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7976 (eval $ac_link) 2>conftest.er1
7977 ac_status=$?
7978 grep -v '^ *+' conftest.er1 >conftest.err
7979 rm -f conftest.er1
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } &&
7983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 (eval $ac_try) 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; } &&
7989 { ac_try='test -s conftest$ac_exeext'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 (eval $ac_try) 2>&5
7992 ac_status=$?
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7995 am_cv_func_iconv=yes
7996 else
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8001 rm -f conftest.err conftest.$ac_objext \
8002 conftest$ac_exeext conftest.$ac_ext
8003 if test "$am_cv_func_iconv" != yes; then
8004 am_save_LIBS="$LIBS"
8005 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 #include <stdlib.h>
8013 #include <iconv.h>
8015 main ()
8017 iconv_t cd = iconv_open("","");
8018 iconv(cd,NULL,NULL,NULL,NULL);
8019 iconv_close(cd);
8021 return 0;
8023 _ACEOF
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>conftest.er1
8027 ac_status=$?
8028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 (eval $ac_try) 2>&5
8036 ac_status=$?
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; } &&
8039 { ac_try='test -s conftest$ac_exeext'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 (eval $ac_try) 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; }; then
8045 am_cv_lib_iconv=yes
8046 am_cv_func_iconv=yes
8047 else
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8052 rm -f conftest.err conftest.$ac_objext \
8053 conftest$ac_exeext conftest.$ac_ext
8054 LIBS="$am_save_LIBS"
8058 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8059 echo "${ECHO_T}$am_cv_func_iconv" >&6
8060 if test "$am_cv_func_iconv" = yes; then
8062 cat >>confdefs.h <<\_ACEOF
8063 #define HAVE_ICONV 1
8064 _ACEOF
8066 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8067 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8068 if test "${am_cv_proto_iconv+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8072 cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h. */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8079 #include <stdlib.h>
8080 #include <iconv.h>
8081 extern
8082 #ifdef __cplusplus
8084 #endif
8085 #if defined(__STDC__) || defined(__cplusplus)
8086 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8087 #else
8088 size_t iconv();
8089 #endif
8092 main ()
8096 return 0;
8098 _ACEOF
8099 rm -f conftest.$ac_objext
8100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8101 (eval $ac_compile) 2>conftest.er1
8102 ac_status=$?
8103 grep -v '^ *+' conftest.er1 >conftest.err
8104 rm -f conftest.er1
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
8108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 (eval $ac_try) 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; } &&
8114 { ac_try='test -s conftest.$ac_objext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 (eval $ac_try) 2>&5
8117 ac_status=$?
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8120 am_cv_proto_iconv_arg1=""
8121 else
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8125 am_cv_proto_iconv_arg1="const"
8127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8128 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);"
8131 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8132 echo "$as_me:$LINENO: result: ${ac_t:-
8133 }$am_cv_proto_iconv" >&5
8134 echo "${ECHO_T}${ac_t:-
8135 }$am_cv_proto_iconv" >&6
8137 cat >>confdefs.h <<_ACEOF
8138 #define ICONV_CONST $am_cv_proto_iconv_arg1
8139 _ACEOF
8142 LIBICONV=
8143 if test "$am_cv_lib_iconv" = yes; then
8144 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8148 # Until we have in-tree GNU iconv:
8149 LIBICONV_DEP=
8153 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8154 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8155 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158 cat >conftest.$ac_ext <<_ACEOF
8159 /* confdefs.h. */
8160 _ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8164 #include <locale.h>
8166 main ()
8168 return LC_MESSAGES
8170 return 0;
8172 _ACEOF
8173 rm -f conftest.$ac_objext conftest$ac_exeext
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175 (eval $ac_link) 2>conftest.er1
8176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } &&
8182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 (eval $ac_try) 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest$ac_exeext'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 am_cv_val_LC_MESSAGES=yes
8195 else
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 am_cv_val_LC_MESSAGES=no
8201 rm -f conftest.err conftest.$ac_objext \
8202 conftest$ac_exeext conftest.$ac_ext
8204 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8205 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8206 if test $am_cv_val_LC_MESSAGES = yes; then
8208 cat >>confdefs.h <<\_ACEOF
8209 #define HAVE_LC_MESSAGES 1
8210 _ACEOF
8215 # We will need to find libiberty.h and ansidecl.h
8216 saved_CFLAGS="$CFLAGS"
8217 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8218 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8219 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8220 fprintf_unlocked strstr errno snprintf vasprintf \
8221 malloc realloc calloc free basename getopt clock
8223 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8224 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8225 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8226 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h. */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 #undef $ac_tr_decl
8236 #define $ac_tr_decl 1
8238 #include "ansidecl.h"
8239 #include "system.h"
8242 main ()
8244 #ifndef $ac_func
8245 char *(*pfn) = (char *(*)) $ac_func ;
8246 #endif
8248 return 0;
8250 _ACEOF
8251 rm -f conftest.$ac_objext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8253 (eval $ac_compile) 2>conftest.er1
8254 ac_status=$?
8255 grep -v '^ *+' conftest.er1 >conftest.err
8256 rm -f conftest.er1
8257 cat conftest.err >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } &&
8260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 (eval $ac_try) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; } &&
8266 { ac_try='test -s conftest.$ac_objext'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268 (eval $ac_try) 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8272 eval "gcc_cv_have_decl_$ac_func=yes"
8273 else
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8277 eval "gcc_cv_have_decl_$ac_func=no"
8279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8282 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8283 echo "$as_me:$LINENO: result: yes" >&5
8284 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8285 #define $ac_tr_decl 1
8286 _ACEOF
8288 else
8289 echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8291 #define $ac_tr_decl 0
8292 _ACEOF
8296 done
8297 if test x = y ; then
8299 cat >>confdefs.h <<\_ACEOF
8300 #define HAVE_DECL_GETENV 1
8301 _ACEOF
8303 cat >>confdefs.h <<\_ACEOF
8304 #define HAVE_DECL_ATOL 1
8305 _ACEOF
8307 cat >>confdefs.h <<\_ACEOF
8308 #define HAVE_DECL_SBRK 1
8309 _ACEOF
8311 cat >>confdefs.h <<\_ACEOF
8312 #define HAVE_DECL_ABORT 1
8313 _ACEOF
8315 cat >>confdefs.h <<\_ACEOF
8316 #define HAVE_DECL_ATOF 1
8317 _ACEOF
8319 cat >>confdefs.h <<\_ACEOF
8320 #define HAVE_DECL_GETCWD 1
8321 _ACEOF
8323 cat >>confdefs.h <<\_ACEOF
8324 #define HAVE_DECL_GETWD 1
8325 _ACEOF
8328 cat >>confdefs.h <<\_ACEOF
8329 #define HAVE_DECL_STRSIGNAL 1
8330 _ACEOF
8332 cat >>confdefs.h <<\_ACEOF
8333 #define HAVE_DECL_PUTC_UNLOCKED 1
8334 _ACEOF
8336 cat >>confdefs.h <<\_ACEOF
8337 #define HAVE_DECL_FPUTS_UNLOCKED 1
8338 _ACEOF
8340 cat >>confdefs.h <<\_ACEOF
8341 #define HAVE_DECL_FWRITE_UNLOCKED 1
8342 _ACEOF
8345 cat >>confdefs.h <<\_ACEOF
8346 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8347 _ACEOF
8349 cat >>confdefs.h <<\_ACEOF
8350 #define HAVE_DECL_STRSTR 1
8351 _ACEOF
8353 cat >>confdefs.h <<\_ACEOF
8354 #define HAVE_DECL_ERRNO 1
8355 _ACEOF
8357 cat >>confdefs.h <<\_ACEOF
8358 #define HAVE_DECL_SNPRINTF 1
8359 _ACEOF
8361 cat >>confdefs.h <<\_ACEOF
8362 #define HAVE_DECL_VASPRINTF 1
8363 _ACEOF
8366 cat >>confdefs.h <<\_ACEOF
8367 #define HAVE_DECL_MALLOC 1
8368 _ACEOF
8370 cat >>confdefs.h <<\_ACEOF
8371 #define HAVE_DECL_REALLOC 1
8372 _ACEOF
8374 cat >>confdefs.h <<\_ACEOF
8375 #define HAVE_DECL_CALLOC 1
8376 _ACEOF
8378 cat >>confdefs.h <<\_ACEOF
8379 #define HAVE_DECL_FREE 1
8380 _ACEOF
8382 cat >>confdefs.h <<\_ACEOF
8383 #define HAVE_DECL_BASENAME 1
8384 _ACEOF
8386 cat >>confdefs.h <<\_ACEOF
8387 #define HAVE_DECL_GETOPT 1
8388 _ACEOF
8390 cat >>confdefs.h <<\_ACEOF
8391 #define HAVE_DECL_CLOCK 1
8392 _ACEOF
8396 for ac_func in getrlimit setrlimit getrusage
8398 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8399 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8400 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8401 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404 cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h. */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8410 #undef $ac_tr_decl
8411 #define $ac_tr_decl 1
8413 #include "ansidecl.h"
8414 #include "system.h"
8415 #ifdef HAVE_SYS_RESOURCE_H
8416 #include <sys/resource.h>
8417 #endif
8421 main ()
8423 #ifndef $ac_func
8424 char *(*pfn) = (char *(*)) $ac_func ;
8425 #endif
8427 return 0;
8429 _ACEOF
8430 rm -f conftest.$ac_objext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8432 (eval $ac_compile) 2>conftest.er1
8433 ac_status=$?
8434 grep -v '^ *+' conftest.er1 >conftest.err
8435 rm -f conftest.er1
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try='test -s conftest.$ac_objext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 eval "gcc_cv_have_decl_$ac_func=yes"
8452 else
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8456 eval "gcc_cv_have_decl_$ac_func=no"
8458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8461 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8462 echo "$as_me:$LINENO: result: yes" >&5
8463 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8464 #define $ac_tr_decl 1
8465 _ACEOF
8467 else
8468 echo "$as_me:$LINENO: result: no" >&5
8469 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8470 #define $ac_tr_decl 0
8471 _ACEOF
8475 done
8476 if test x = y ; then
8478 cat >>confdefs.h <<\_ACEOF
8479 #define HAVE_DECL_GETRLIMIT 1
8480 _ACEOF
8482 cat >>confdefs.h <<\_ACEOF
8483 #define HAVE_DECL_SETRLIMIT 1
8484 _ACEOF
8486 cat >>confdefs.h <<\_ACEOF
8487 #define HAVE_DECL_GETRUSAGE 1
8488 _ACEOF
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h. */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8499 #include "ansidecl.h"
8500 #include "system.h"
8501 #ifdef HAVE_SYS_RESOURCE_H
8502 #include <sys/resource.h>
8503 #endif
8506 main ()
8508 rlim_t l = 0;
8510 return 0;
8512 _ACEOF
8513 rm -f conftest.$ac_objext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8515 (eval $ac_compile) 2>conftest.er1
8516 ac_status=$?
8517 grep -v '^ *+' conftest.er1 >conftest.err
8518 rm -f conftest.er1
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; } &&
8528 { ac_try='test -s conftest.$ac_objext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 (eval $ac_try) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8535 else
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8540 cat >>confdefs.h <<\_ACEOF
8541 #define rlim_t long
8542 _ACEOF
8545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8547 for ac_func in ldgetname
8549 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8550 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8551 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8552 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555 cat >conftest.$ac_ext <<_ACEOF
8556 /* confdefs.h. */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8561 #undef $ac_tr_decl
8562 #define $ac_tr_decl 1
8564 #include "ansidecl.h"
8565 #include "system.h"
8566 #ifdef HAVE_LDFCN_H
8567 #include <ldfcn.h>
8568 #endif
8572 main ()
8574 #ifndef $ac_func
8575 char *(*pfn) = (char *(*)) $ac_func ;
8576 #endif
8578 return 0;
8580 _ACEOF
8581 rm -f conftest.$ac_objext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583 (eval $ac_compile) 2>conftest.er1
8584 ac_status=$?
8585 grep -v '^ *+' conftest.er1 >conftest.err
8586 rm -f conftest.er1
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } &&
8590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 (eval $ac_try) 2>&5
8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; } &&
8596 { ac_try='test -s conftest.$ac_objext'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 (eval $ac_try) 2>&5
8599 ac_status=$?
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; }; then
8602 eval "gcc_cv_have_decl_$ac_func=yes"
8603 else
8604 echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8607 eval "gcc_cv_have_decl_$ac_func=no"
8609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8612 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8613 echo "$as_me:$LINENO: result: yes" >&5
8614 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8615 #define $ac_tr_decl 1
8616 _ACEOF
8618 else
8619 echo "$as_me:$LINENO: result: no" >&5
8620 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8621 #define $ac_tr_decl 0
8622 _ACEOF
8626 done
8627 if test x = y ; then
8629 cat >>confdefs.h <<\_ACEOF
8630 #define HAVE_DECL_LDGETNAME 1
8631 _ACEOF
8635 for ac_func in times
8637 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8638 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8639 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8640 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h. */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 #undef $ac_tr_decl
8650 #define $ac_tr_decl 1
8652 #include "ansidecl.h"
8653 #include "system.h"
8654 #ifdef HAVE_SYS_TIMES_H
8655 #include <sys/times.h>
8656 #endif
8660 main ()
8662 #ifndef $ac_func
8663 char *(*pfn) = (char *(*)) $ac_func ;
8664 #endif
8666 return 0;
8668 _ACEOF
8669 rm -f conftest.$ac_objext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8671 (eval $ac_compile) 2>conftest.er1
8672 ac_status=$?
8673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 (eval $ac_try) 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; } &&
8684 { ac_try='test -s conftest.$ac_objext'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 (eval $ac_try) 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 eval "gcc_cv_have_decl_$ac_func=yes"
8691 else
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8695 eval "gcc_cv_have_decl_$ac_func=no"
8697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8700 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8701 echo "$as_me:$LINENO: result: yes" >&5
8702 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8703 #define $ac_tr_decl 1
8704 _ACEOF
8706 else
8707 echo "$as_me:$LINENO: result: no" >&5
8708 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8709 #define $ac_tr_decl 0
8710 _ACEOF
8714 done
8715 if test x = y ; then
8717 cat >>confdefs.h <<\_ACEOF
8718 #define HAVE_DECL_TIMES 1
8719 _ACEOF
8723 # More time-related stuff.
8724 echo "$as_me:$LINENO: checking for struct tms" >&5
8725 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8726 if test "${ac_cv_struct_tms+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8730 cat >conftest.$ac_ext <<_ACEOF
8731 /* confdefs.h. */
8732 _ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h. */
8737 #include "ansidecl.h"
8738 #include "system.h"
8739 #ifdef HAVE_SYS_TIMES_H
8740 #include <sys/times.h>
8741 #endif
8744 main ()
8746 struct tms tms;
8748 return 0;
8750 _ACEOF
8751 rm -f conftest.$ac_objext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8753 (eval $ac_compile) 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try='test -s conftest.$ac_objext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8772 ac_cv_struct_tms=yes
8773 else
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 ac_cv_struct_tms=no
8779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8781 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8782 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8783 if test $ac_cv_struct_tms = yes; then
8785 cat >>confdefs.h <<\_ACEOF
8786 #define HAVE_STRUCT_TMS 1
8787 _ACEOF
8791 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8792 # revisit after autoconf 2.50.
8793 echo "$as_me:$LINENO: checking for clock_t" >&5
8794 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8795 if test "${gcc_cv_type_clock_t+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8799 cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h. */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8806 #include "ansidecl.h"
8807 #include "system.h"
8810 main ()
8812 clock_t x;
8814 return 0;
8816 _ACEOF
8817 rm -f conftest.$ac_objext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8819 (eval $ac_compile) 2>conftest.er1
8820 ac_status=$?
8821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -z "$ac_c_werror_flag" || 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 gcc_cv_type_clock_t=yes
8839 else
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8843 gcc_cv_type_clock_t=no
8845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8847 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8848 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8849 if test $gcc_cv_type_clock_t = yes; then
8851 cat >>confdefs.h <<\_ACEOF
8852 #define HAVE_CLOCK_T 1
8853 _ACEOF
8857 echo "$as_me:$LINENO: checking for uchar" >&5
8858 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8859 if test "${gcc_cv_type_uchar+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862 cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h. */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8869 #include "ansidecl.h"
8870 #include "system.h"
8873 main ()
8875 if ((uchar *)0) return 0;
8876 if (sizeof(uchar)) return 0;
8878 return 0;
8880 _ACEOF
8881 rm -f conftest.$ac_objext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8883 (eval $ac_compile) 2>conftest.er1
8884 ac_status=$?
8885 grep -v '^ *+' conftest.er1 >conftest.err
8886 rm -f conftest.er1
8887 cat conftest.err >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 (eval $ac_try) 2>&5
8893 ac_status=$?
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; } &&
8896 { ac_try='test -s conftest.$ac_objext'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 (eval $ac_try) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 ac_cv_type_uchar=yes
8903 else
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8907 ac_cv_type_uchar=no
8909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8911 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8912 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8913 if test $ac_cv_type_uchar = yes; then
8915 cat >>confdefs.h <<\_ACEOF
8916 #define HAVE_UCHAR 1
8917 _ACEOF
8921 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8922 CFLAGS="$saved_CFLAGS"
8924 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8925 if test "${enable_initfini_array+set}" = set; then
8926 enableval="$enable_initfini_array"
8928 else
8930 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8931 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8932 if test "${gcc_cv_initfini_array+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8934 else
8935 if test "$cross_compiling" = yes; then
8936 gcc_cv_initfini_array=no
8937 else
8938 cat >conftest.$ac_ext <<_ACEOF
8939 /* confdefs.h. */
8940 _ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8945 static int x = -1;
8946 int main (void) { return x; }
8947 int foo (void) { x = 0; }
8948 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8949 _ACEOF
8950 rm -f conftest$ac_exeext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8952 (eval $ac_link) 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 (eval $ac_try) 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
8961 gcc_cv_initfini_array=yes
8962 else
8963 echo "$as_me: program exited with status $ac_status" >&5
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 ( exit $ac_status )
8968 gcc_cv_initfini_array=no
8970 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8973 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8974 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8975 enable_initfini_array=$gcc_cv_initfini_array
8978 if test $enable_initfini_array = yes; then
8980 cat >>confdefs.h <<\_ACEOF
8981 #define HAVE_INITFINI_ARRAY 1
8982 _ACEOF
8986 # mkdir takes a single argument on some systems.
8987 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8988 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8989 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8991 else
8992 cat >conftest.$ac_ext <<_ACEOF
8993 /* confdefs.h. */
8994 _ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8999 #include <sys/types.h>
9000 #ifdef HAVE_SYS_STAT_H
9001 # include <sys/stat.h>
9002 #endif
9003 #ifdef HAVE_UNISTD_H
9004 # include <unistd.h>
9005 #endif
9006 #ifdef HAVE_DIRECT_H
9007 # include <direct.h>
9008 #endif
9010 main ()
9012 mkdir ("foo", 0);
9014 return 0;
9016 _ACEOF
9017 rm -f conftest.$ac_objext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9019 (eval $ac_compile) 2>conftest.er1
9020 ac_status=$?
9021 grep -v '^ *+' conftest.er1 >conftest.err
9022 rm -f conftest.er1
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } &&
9026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 (eval $ac_try) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; } &&
9032 { ac_try='test -s conftest.$ac_objext'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 (eval $ac_try) 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; }; then
9038 gcc_cv_mkdir_takes_one_arg=no
9039 else
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9043 gcc_cv_mkdir_takes_one_arg=yes
9045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9047 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9048 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9049 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9051 cat >>confdefs.h <<\_ACEOF
9052 #define MKDIR_TAKES_ONE_ARG 1
9053 _ACEOF
9058 # File extensions
9059 manext='.1'
9060 objext='.o'
9064 # With Setjmp/Longjmp based exception handling.
9065 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9066 if test "${enable_sjlj_exceptions+set}" = set; then
9067 enableval="$enable_sjlj_exceptions"
9068 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9070 cat >>confdefs.h <<_ACEOF
9071 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9072 _ACEOF
9076 if test x$host = x$target; then
9077 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9078 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9079 if test "${ac_cv_lib_unwind_main+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9082 ac_check_lib_save_LIBS=$LIBS
9083 LIBS="-lunwind $LIBS"
9084 cat >conftest.$ac_ext <<_ACEOF
9085 /* confdefs.h. */
9086 _ACEOF
9087 cat confdefs.h >>conftest.$ac_ext
9088 cat >>conftest.$ac_ext <<_ACEOF
9089 /* end confdefs.h. */
9093 main ()
9095 main ();
9097 return 0;
9099 _ACEOF
9100 rm -f conftest.$ac_objext conftest$ac_exeext
9101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9102 (eval $ac_link) 2>conftest.er1
9103 ac_status=$?
9104 grep -v '^ *+' conftest.er1 >conftest.err
9105 rm -f conftest.er1
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } &&
9109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 (eval $ac_try) 2>&5
9112 ac_status=$?
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; } &&
9115 { ac_try='test -s conftest$ac_exeext'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 (eval $ac_try) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; }; then
9121 ac_cv_lib_unwind_main=yes
9122 else
9123 echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9126 ac_cv_lib_unwind_main=no
9128 rm -f conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
9130 LIBS=$ac_check_lib_save_LIBS
9132 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9133 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9134 if test $ac_cv_lib_unwind_main = yes; then
9135 use_libunwind_default=yes
9136 else
9137 use_libunwind_default=no
9140 else
9141 use_libunwind_default=no
9143 # Use libunwind based exception handling.
9144 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9145 if test "${enable_libunwind_exceptions+set}" = set; then
9146 enableval="$enable_libunwind_exceptions"
9147 use_libunwind_exceptions=$enableval
9148 else
9149 use_libunwind_exceptions=$use_libunwind_default
9151 if test x"$use_libunwind_exceptions" = xyes; then
9153 cat >>confdefs.h <<\_ACEOF
9154 #define USE_LIBUNWIND_EXCEPTIONS 1
9155 _ACEOF
9159 # --------------------------------------------------------
9160 # Build, host, and target specific configuration fragments
9161 # --------------------------------------------------------
9163 # Collect build-machine-specific information.
9164 . ${srcdir}/config.build
9166 # Collect host-machine-specific information.
9167 . ${srcdir}/config.host
9169 target_gtfiles=
9171 # Collect target-machine-specific information.
9172 . ${srcdir}/config.gcc
9174 extra_objs="${host_extra_objs} ${extra_objs}"
9175 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9177 # Default the target-machine variables that were not explicitly set.
9178 if test x"$tm_file" = x
9179 then tm_file=$cpu_type/$cpu_type.h; fi
9181 if test x"$extra_headers" = x
9182 then extra_headers=; fi
9184 if test x$md_file = x
9185 then md_file=$cpu_type/$cpu_type.md; fi
9187 if test x$out_file = x
9188 then out_file=$cpu_type/$cpu_type.c; fi
9190 if test x"$tmake_file" = x
9191 then tmake_file=$cpu_type/t-$cpu_type
9194 if test x"$dwarf2" = xyes
9195 then tm_file="$tm_file tm-dwarf2.h"
9198 # Say what files are being used for the output code and MD file.
9199 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9200 echo "Using \`$srcdir/config/$md_file' as machine description file."
9202 # If any of the xm_file variables contain nonexistent files, warn
9203 # about them and drop them.
9206 for x in $build_xm_file; do
9207 if test -f $srcdir/config/$x
9208 then bx="$bx $x"
9209 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9210 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9212 done
9213 build_xm_file="$bx"
9216 for x in $host_xm_file; do
9217 if test -f $srcdir/config/$x
9218 then hx="$hx $x"
9219 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9220 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9222 done
9223 host_xm_file="$hx"
9226 for x in $xm_file; do
9227 if test -f $srcdir/config/$x
9228 then tx="$tx $x"
9229 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9230 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9232 done
9233 xm_file="$tx"
9235 count=a
9236 for f in $tm_file; do
9237 count=${count}x
9238 done
9239 if test $count = ax; then
9240 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9241 else
9242 echo "Using the following target machine macro files:"
9243 for f in $tm_file; do
9244 echo " $srcdir/config/$f"
9245 done
9248 if test x$need_64bit_hwint = xyes; then
9250 cat >>confdefs.h <<\_ACEOF
9251 #define NEED_64BIT_HOST_WIDE_INT 1
9252 _ACEOF
9256 count=a
9257 for f in $host_xm_file; do
9258 count=${count}x
9259 done
9260 if test $count = a; then
9262 elif test $count = ax; then
9263 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9264 else
9265 echo "Using the following host machine macro files:"
9266 for f in $host_xm_file; do
9267 echo " $srcdir/config/$f"
9268 done
9270 echo "Using ${out_host_hook_obj} for host machine hooks."
9272 if test "$host_xm_file" != "$build_xm_file"; then
9273 count=a
9274 for f in $build_xm_file; do
9275 count=${count}x
9276 done
9277 if test $count = a; then
9279 elif test $count = ax; then
9280 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9281 else
9282 echo "Using the following build machine macro files:"
9283 for f in $build_xm_file; do
9284 echo " $srcdir/config/$f"
9285 done
9289 # ---------
9290 # Threading
9291 # ---------
9293 # Check if a valid thread package
9294 case ${enable_threads} in
9295 "" | no)
9296 # No threads
9297 target_thread_file='single'
9299 yes)
9300 # default
9301 target_thread_file='single'
9303 aix | dce | gnat | irix | posix | rtems | \
9304 single | solaris | vxworks | win32 )
9305 target_thread_file=${enable_threads}
9308 echo "${enable_threads} is an unknown thread package" 1>&2
9309 exit 1
9311 esac
9313 if test x${thread_file} = x; then
9314 # No thread file set by target-specific clauses in config.gcc,
9315 # so use file chosen by default logic above
9316 thread_file=${target_thread_file}
9319 # Make gthr-default.h if we have a thread file.
9320 gthread_flags=
9321 if test $thread_file != single; then
9322 rm -f gthr-default.h
9323 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9324 gthread_flags=-DHAVE_GTHR_DEFAULT
9328 # --------
9329 # UNSORTED
9330 # --------
9332 if test x$enable___cxa_atexit = xyes || \
9333 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9334 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9335 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9336 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339 cat >conftest.$ac_ext <<_ACEOF
9340 /* confdefs.h. */
9341 _ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9347 #define __cxa_atexit innocuous___cxa_atexit
9349 /* System header to define __stub macros and hopefully few prototypes,
9350 which can conflict with char __cxa_atexit (); below.
9351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9352 <limits.h> exists even on freestanding compilers. */
9354 #ifdef __STDC__
9355 # include <limits.h>
9356 #else
9357 # include <assert.h>
9358 #endif
9360 #undef __cxa_atexit
9362 /* Override any gcc2 internal prototype to avoid an error. */
9363 #ifdef __cplusplus
9364 extern "C"
9366 #endif
9367 /* We use char because int might match the return type of a gcc2
9368 builtin and then its argument prototype would still apply. */
9369 char __cxa_atexit ();
9370 /* The GNU C library defines this for functions which it implements
9371 to always fail with ENOSYS. Some functions are actually named
9372 something starting with __ and the normal name is an alias. */
9373 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9374 choke me
9375 #else
9376 char (*f) () = __cxa_atexit;
9377 #endif
9378 #ifdef __cplusplus
9380 #endif
9383 main ()
9385 return f != __cxa_atexit;
9387 return 0;
9389 _ACEOF
9390 rm -f conftest.$ac_objext conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392 (eval $ac_link) 2>conftest.er1
9393 ac_status=$?
9394 grep -v '^ *+' conftest.er1 >conftest.err
9395 rm -f conftest.er1
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9411 ac_cv_func___cxa_atexit=yes
9412 else
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9416 ac_cv_func___cxa_atexit=no
9418 rm -f conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
9421 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9422 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9423 if test $ac_cv_func___cxa_atexit = yes; then
9425 cat >>confdefs.h <<\_ACEOF
9426 #define DEFAULT_USE_CXA_ATEXIT 1
9427 _ACEOF
9429 else
9430 echo "__cxa_atexit can't be enabled on this target"
9435 # Look for a file containing extra machine modes.
9436 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9437 extra_modes_file='$(srcdir)'/config/${extra_modes}
9440 cat >>confdefs.h <<_ACEOF
9441 #define EXTRA_MODES_FILE "config/$extra_modes"
9442 _ACEOF
9446 # auto-host.h is the file containing items generated by autoconf and is
9447 # the first file included by config.h.
9448 # If host=build, it is correct to have bconfig include auto-host.h
9449 # as well. If host!=build, we are in error and need to do more
9450 # work to find out the build config parameters.
9451 if test x$host = x$build
9452 then
9453 build_auto=auto-host.h
9454 FORBUILD=..
9455 else
9456 # We create a subdir, then run autoconf in the subdir.
9457 # To prevent recursion we set host and build for the new
9458 # invocation of configure to the build for this invocation
9459 # of configure.
9460 tempdir=build.$$
9461 rm -rf $tempdir
9462 mkdir $tempdir
9463 cd $tempdir
9464 case ${srcdir} in
9465 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9466 *) realsrcdir=../${srcdir};;
9467 esac
9468 saved_CFLAGS="${CFLAGS}"
9469 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9470 ${realsrcdir}/configure \
9471 --enable-languages=${enable_languages-all} \
9472 --target=$target_alias --host=$build_alias --build=$build_alias
9473 CFLAGS="${saved_CFLAGS}"
9475 # We just finished tests for the build machine, so rename
9476 # the file auto-build.h in the gcc directory.
9477 mv auto-host.h ../auto-build.h
9478 cd ..
9479 rm -rf $tempdir
9480 build_auto=auto-build.h
9481 FORBUILD=../${build_subdir}
9485 tm_file="${tm_file} defaults.h"
9486 tm_p_file="${tm_p_file} tm-preds.h"
9487 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9488 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9489 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9490 # put this back in temporarily.
9491 xm_file="ansidecl.h ${xm_file}"
9493 # --------
9494 # UNSORTED
9495 # --------
9497 # Get the version trigger filename from the toplevel
9498 if test "${with_gcc_version_trigger+set}" = set; then
9499 gcc_version_trigger=$with_gcc_version_trigger
9500 else
9501 gcc_version_trigger=${srcdir}/version.c
9503 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9504 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9506 # Compile in configure arguments.
9507 if test -f configargs.h ; then
9508 # Being re-configured.
9509 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9510 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9511 else
9512 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9515 # Double all backslashes and backslash all quotes to turn
9516 # gcc_config_arguments into a C string.
9517 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9518 $gcc_config_arguments
9520 gcc_config_arguments_str=`cat conftest.out`
9521 rm -f conftest.out
9523 cat > configargs.h <<EOF
9524 /* Generated automatically. */
9525 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9526 static const char thread_model[] = "$thread_file";
9528 static const struct {
9529 const char *name, *value;
9530 } configure_default_options[] = $configure_default_options;
9533 # Internationalization
9534 PACKAGE=gcc
9535 VERSION="$gcc_version"
9539 # If we haven't got the data from the intl directory,
9540 # assume NLS is disabled.
9541 USE_NLS=no
9542 LIBINTL=
9543 LIBINTL_DEP=
9544 INCINTL=
9545 XGETTEXT=
9546 GMSGFMT=
9547 POSUB=
9548 if test -f ../intl/config.intl; then
9549 . ../intl/config.intl
9551 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9552 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9553 if test x"$USE_NLS" != xyes; then
9554 echo "$as_me:$LINENO: result: no" >&5
9555 echo "${ECHO_T}no" >&6
9556 else
9557 echo "$as_me:$LINENO: result: yes" >&5
9558 echo "${ECHO_T}yes" >&6
9560 cat >>confdefs.h <<\_ACEOF
9561 #define ENABLE_NLS 1
9562 _ACEOF
9565 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9566 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9567 # Look for .po and .gmo files in the source directory.
9568 CATALOGS=
9569 XLINGUAS=
9570 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9571 # If there aren't any .gmo files the shell will give us the
9572 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9573 # weeded out.
9574 case "$cat" in *\**)
9575 continue;;
9576 esac
9577 # The quadruple backslash is collapsed to a double backslash
9578 # by the backticks, then collapsed again by the double quotes,
9579 # leaving us with one backslash in the sed expression (right
9580 # before the dot that mustn't act as a wildcard).
9581 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9582 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9583 # The user is allowed to set LINGUAS to a list of languages to
9584 # install catalogs for. If it's empty that means "all of them."
9585 if test "x$LINGUAS" = x; then
9586 CATALOGS="$CATALOGS $cat"
9587 XLINGUAS="$XLINGUAS $lang"
9588 else
9589 case "$LINGUAS" in *$lang*)
9590 CATALOGS="$CATALOGS $cat"
9591 XLINGUAS="$XLINGUAS $lang"
9593 esac
9595 done
9596 LINGUAS="$XLINGUAS"
9597 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9598 echo "${ECHO_T}$LINGUAS" >&6
9601 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9602 # -liconv on the link line twice.
9603 case "$LIBINTL" in *$LIBICONV*)
9604 LIBICONV= ;;
9605 esac
9607 # Windows32 Registry support for specifying GCC installation paths.
9608 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9609 if test "${enable_win32_registry+set}" = set; then
9610 enableval="$enable_win32_registry"
9613 case $host_os in
9614 win32 | pe | cygwin* | mingw32* | uwin*)
9615 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9616 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9617 if test "x$enable_win32_registry" != xno; then
9619 cat >>confdefs.h <<\_ACEOF
9620 #define ENABLE_WIN32_REGISTRY 1
9621 _ACEOF
9623 echo "$as_me:$LINENO: result: yes" >&5
9624 echo "${ECHO_T}yes" >&6
9625 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9626 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9627 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 else
9630 ac_func_search_save_LIBS=$LIBS
9631 ac_cv_search_RegOpenKeyExA=no
9632 cat >conftest.$ac_ext <<_ACEOF
9633 /* confdefs.h. */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9639 /* Override any gcc2 internal prototype to avoid an error. */
9640 #ifdef __cplusplus
9641 extern "C"
9642 #endif
9643 /* We use char because int might match the return type of a gcc2
9644 builtin and then its argument prototype would still apply. */
9645 char RegOpenKeyExA ();
9647 main ()
9649 RegOpenKeyExA ();
9651 return 0;
9653 _ACEOF
9654 rm -f conftest.$ac_objext conftest$ac_exeext
9655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9656 (eval $ac_link) 2>conftest.er1
9657 ac_status=$?
9658 grep -v '^ *+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } &&
9663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 (eval $ac_try) 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; } &&
9669 { ac_try='test -s conftest$ac_exeext'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 (eval $ac_try) 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ac_cv_search_RegOpenKeyExA="none required"
9676 else
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9681 rm -f conftest.err conftest.$ac_objext \
9682 conftest$ac_exeext conftest.$ac_ext
9683 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9684 for ac_lib in advapi32; do
9685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9686 cat >conftest.$ac_ext <<_ACEOF
9687 /* confdefs.h. */
9688 _ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9693 /* Override any gcc2 internal prototype to avoid an error. */
9694 #ifdef __cplusplus
9695 extern "C"
9696 #endif
9697 /* We use char because int might match the return type of a gcc2
9698 builtin and then its argument prototype would still apply. */
9699 char RegOpenKeyExA ();
9701 main ()
9703 RegOpenKeyExA ();
9705 return 0;
9707 _ACEOF
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710 (eval $ac_link) 2>conftest.er1
9711 ac_status=$?
9712 grep -v '^ *+' conftest.er1 >conftest.err
9713 rm -f conftest.er1
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 (eval $ac_try) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; } &&
9723 { ac_try='test -s conftest$ac_exeext'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9730 break
9731 else
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9736 rm -f conftest.err conftest.$ac_objext \
9737 conftest$ac_exeext conftest.$ac_ext
9738 done
9740 LIBS=$ac_func_search_save_LIBS
9742 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9743 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9744 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9745 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9749 else
9750 echo "$as_me:$LINENO: result: no" >&5
9751 echo "${ECHO_T}no" >&6
9754 # Check if user specified a different registry key.
9755 case "x${enable_win32_registry}" in
9756 x | xyes)
9757 # default.
9758 gcc_cv_win32_registry_key="$VERSION"
9760 xno)
9761 # no registry lookup.
9762 gcc_cv_win32_registry_key=''
9765 # user-specified key.
9766 gcc_cv_win32_registry_key="$enable_win32_registry"
9768 esac
9770 if test "x$enable_win32_registry" != xno; then
9771 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9772 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9774 cat >>confdefs.h <<_ACEOF
9775 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9776 _ACEOF
9778 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9779 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9782 esac
9784 # Get an absolute path to the GCC top-level source directory
9785 holddir=`${PWDCMD-pwd}`
9786 cd $srcdir
9787 topdir=`${PWDCMD-pwd}`
9788 cd $holddir
9790 # Conditionalize the makefile for this host machine.
9791 xmake_file=
9792 for f in ${host_xmake_file}
9794 if test -f ${srcdir}/config/$f
9795 then
9796 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9798 done
9800 # Conditionalize the makefile for this target machine.
9801 tmake_file_=
9802 for f in ${tmake_file}
9804 if test -f ${srcdir}/config/$f
9805 then
9806 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9808 done
9809 tmake_file="${tmake_file_}"
9811 symbolic_link='ln -s'
9813 # If the host doesn't support symlinks, modify CC in
9814 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9815 # Otherwise, we can use "CC=$(CC)".
9816 rm -f symtest.tem
9817 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9818 then
9819 cc_set_by_configure="\$(CC)"
9820 quoted_cc_set_by_configure="\$(CC)"
9821 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9822 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9823 else
9824 rm -f symtest.tem
9825 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9826 then
9827 symbolic_link="cp -p"
9828 else
9829 symbolic_link="cp"
9831 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9832 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9833 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9834 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9836 rm -f symtest.tem
9838 out_object_file=`basename $out_file .c`.o
9840 tm_file_list=
9841 tm_include_list=
9842 for f in $tm_file; do
9843 case $f in
9844 defaults.h )
9845 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9846 tm_include_list="${tm_include_list} $f"
9849 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9850 tm_include_list="${tm_include_list} config/$f"
9852 esac
9853 done
9855 tm_p_file_list=
9856 tm_p_include_list=
9857 for f in $tm_p_file; do
9858 case $f in
9859 tm-preds.h )
9860 tm_p_file_list="${tm_p_file_list} $f"
9861 tm_p_include_list="${tm_p_include_list} $f"
9864 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9865 tm_p_include_list="${tm_p_include_list} config/$f"
9866 esac
9867 done
9869 xm_file_list=
9870 xm_include_list=
9871 for f in $xm_file; do
9872 case $f in
9873 ansidecl.h )
9874 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9875 xm_include_list="${xm_include_list} $f"
9877 auto-host.h )
9878 xm_file_list="${xm_file_list} $f"
9879 xm_include_list="${xm_include_list} $f"
9882 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9883 xm_include_list="${xm_include_list} config/$f"
9885 esac
9886 done
9888 host_xm_file_list=
9889 host_xm_include_list=
9890 for f in $host_xm_file; do
9891 case $f in
9892 ansidecl.h )
9893 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9894 host_xm_include_list="${host_xm_include_list} $f"
9896 auto-host.h )
9897 host_xm_file_list="${host_xm_file_list} $f"
9898 host_xm_include_list="${host_xm_include_list} $f"
9901 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9902 host_xm_include_list="${host_xm_include_list} config/$f"
9904 esac
9905 done
9907 build_xm_file_list=
9908 for f in $build_xm_file; do
9909 case $f in
9910 ansidecl.h )
9911 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9912 build_xm_include_list="${build_xm_include_list} $f"
9914 auto-build.h | auto-host.h )
9915 build_xm_file_list="${build_xm_file_list} $f"
9916 build_xm_include_list="${build_xm_include_list} $f"
9919 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9920 build_xm_include_list="${build_xm_include_list} config/$f"
9922 esac
9923 done
9925 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9926 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9927 CROSS=
9928 ALL=all.internal
9929 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9930 if test x$host != x$target
9931 then
9932 CROSS="-DCROSS_COMPILE"
9933 ALL=all.cross
9934 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9935 case "$host","$target" in
9936 # Darwin crosses can use the host system's libraries and headers,
9937 # because of the fat library support. Of course, it must be the
9938 # same version of Darwin on both sides. Allow the user to
9939 # just say --target=foo-darwin without a version number to mean
9940 # "the version on this system".
9941 *-*-darwin*,*-*-darwin*)
9942 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9943 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9944 if test $hostos = $targetos -o $targetos = darwin ; then
9945 CROSS=
9946 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9947 with_headers=yes
9951 i?86-*-*,x86_64-*-* \
9952 | powerpc*-*-*,powerpc64*-*-*)
9953 CROSS="$CROSS -DNATIVE_CROSS" ;;
9954 esac
9955 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9956 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9957 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9960 # If this is a cross-compiler that does not
9961 # have its own set of headers then define
9962 # inhibit_libc
9964 # If this is using newlib, without having the headers available now,
9965 # then define inhibit_libc in LIBGCC2_CFLAGS.
9966 # This prevents libgcc2 from containing any code which requires libc
9967 # support.
9968 inhibit_libc=
9969 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9970 test x$with_newlib = xyes ; } &&
9971 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9972 inhibit_libc=-Dinhibit_libc
9976 # When building gcc with a cross-compiler, we need to adjust things so
9977 # that the generator programs are still built with the native compiler.
9978 # Also, we cannot run fixincludes or fix-header.
9980 # These are the normal (build=host) settings:
9981 BUILD_PREFIX=
9982 BUILD_PREFIX_1=ignore-
9983 CC_FOR_BUILD='$(CC)'
9984 BUILD_CFLAGS='$(ALL_CFLAGS)'
9986 STMP_FIXINC=stmp-fixinc
9988 # Possibly disable fixproto, on a per-target basis.
9989 case ${use_fixproto} in
9991 STMP_FIXPROTO=
9993 yes)
9994 STMP_FIXPROTO=stmp-fixproto
9996 esac
9999 # And these apply if build != host, or we are generating coverage data
10000 if test x$build != x$host || test "x$coverage_flags" != x
10001 then
10002 BUILD_PREFIX=build-
10003 BUILD_PREFIX_1=build-
10004 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10006 if test "x$TARGET_SYSTEM_ROOT" = x; then
10007 STMP_FIXINC=
10008 STMP_FIXPROTO=
10012 # Expand extra_headers to include complete path.
10013 # This substitutes for lots of t-* files.
10014 extra_headers_list=
10015 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10016 for file in ${extra_headers} ; do
10017 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10018 done
10020 # Define collect2 in Makefile.
10021 case $host_can_use_collect2 in
10022 no) collect2= ;;
10023 *) collect2='collect2$(exeext)' ;;
10024 esac
10027 # Add a definition of USE_COLLECT2 if system wants one.
10028 case $use_collect2 in
10029 no) use_collect2= ;;
10030 "") ;;
10032 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10033 xm_defines="${xm_defines} USE_COLLECT2"
10034 case $host_can_use_collect2 in
10036 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
10037 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
10038 { (exit 1); exit 1; }; }
10040 esac
10042 esac
10044 # ---------------------------
10045 # Assembler & linker features
10046 # ---------------------------
10048 # Identify the assembler which will work hand-in-glove with the newly
10049 # built GCC, so that we can examine its features. This is the assembler
10050 # which will be driven by the driver program.
10052 # If build != host, and we aren't building gas in-tree, we identify a
10053 # build->target assembler and hope that it will have the same features
10054 # as the host->target assembler we'll be using.
10055 echo "$as_me:$LINENO: checking what assembler to use" >&5
10056 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10057 in_tree_gas=no
10058 gcc_cv_as=
10059 gcc_cv_gas_major_version=
10060 gcc_cv_gas_minor_version=
10061 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10062 if test -x "$DEFAULT_ASSEMBLER"; then
10063 gcc_cv_as="$DEFAULT_ASSEMBLER"
10064 elif test -x "$AS"; then
10065 gcc_cv_as="$AS"
10066 elif test -x as$host_exeext; then
10067 # Build using assembler in the current directory.
10068 gcc_cv_as=./as$host_exeext
10069 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10070 && test -f ../gas/Makefile; then
10071 # Single tree build which includes gas.
10072 in_tree_gas=yes
10073 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10074 for f in $gcc_cv_as_bfd_srcdir/configure \
10075 $gcc_cv_as_gas_srcdir/configure \
10076 $gcc_cv_as_gas_srcdir/configure.in \
10077 $gcc_cv_as_gas_srcdir/Makefile.in ; do
10078 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10079 if test x$gcc_cv_gas_version != x; then
10080 break
10082 done
10083 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10084 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10085 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10086 case $gcc_cv_gas_patch_version in
10087 "") gcc_cv_gas_patch_version="0" ;;
10088 esac
10089 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10090 + $gcc_cv_gas_minor_version \) \* 1000 \
10091 + $gcc_cv_gas_patch_version`
10093 rm -f as$host_exeext
10094 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10095 in_tree_gas_is_elf=no
10096 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10097 || (grep 'obj_format = multi' ../gas/Makefile \
10098 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10099 then
10100 in_tree_gas_is_elf=yes
10104 if test "x$gcc_cv_as" = x; then
10105 # Search the same directories that the installed compiler will
10106 # search. Else we may find the wrong assembler and lose. If we
10107 # do not find a suitable assembler binary, then try the user's
10108 # path.
10110 # Also note we have to check MD_EXEC_PREFIX before checking the
10111 # user's path. Unfortunately, there is no good way to get at the
10112 # value of MD_EXEC_PREFIX here. So we do a brute force search
10113 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10114 # to be fixed as part of the make/configure rewrite too.
10116 if test "x$exec_prefix" = xNONE; then
10117 if test "x$prefix" = xNONE; then
10118 test_prefix=/usr/local
10119 else
10120 test_prefix=$prefix
10122 else
10123 test_prefix=$exec_prefix
10126 # If the loop below does not find an assembler, then use whatever
10127 # one we can find in the users's path.
10128 # user's path.
10129 if test "x$program_prefix" != xNONE; then
10130 gcc_cv_as=${program_prefix}as$host_exeext
10131 else
10132 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10135 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10136 $test_prefix/libexec/gcc/$target_noncanonical \
10137 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10138 /usr/lib/gcc/$target_noncanonical \
10139 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10140 $test_prefix/$target_noncanonical/bin"
10142 if test x$host = x$target; then
10143 test_dirs="$test_dirs \
10144 /usr/libexec \
10145 /usr/ccs/gcc \
10146 /usr/ccs/bin \
10147 /udk/usr/ccs/bin \
10148 /bsd43/usr/lib/cmplrs/cc \
10149 /usr/cross64/usr/bin \
10150 /usr/lib/cmplrs/cc \
10151 /sysv/usr/lib/cmplrs/cc \
10152 /svr4/usr/lib/cmplrs/cc \
10153 /usr/bin"
10156 for dir in $test_dirs; do
10157 if test -x $dir/as$host_exeext; then
10158 gcc_cv_as=$dir/as$host_exeext
10159 break;
10161 done
10163 case $in_tree_gas in
10164 yes)
10165 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10166 echo "${ECHO_T}\"newly built gas\"" >&6
10169 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10170 echo "${ECHO_T}$gcc_cv_as" >&6
10172 esac
10174 # Identify the linker which will work hand-in-glove with the newly
10175 # built GCC, so that we can examine its features. This is the linker
10176 # which will be driven by the driver program.
10178 # If build != host, and we aren't building gas in-tree, we identify a
10179 # build->target linker and hope that it will have the same features
10180 # as the host->target linker we'll be using.
10181 echo "$as_me:$LINENO: checking what linker to use" >&5
10182 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10183 in_tree_ld=no
10184 gcc_cv_ld=
10185 gcc_cv_gld_major_version=
10186 gcc_cv_gld_minor_version=
10187 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10188 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10189 if test -x "$DEFAULT_LINKER"; then
10190 gcc_cv_ld="$DEFAULT_LINKER"
10191 elif test -x "$LD_FOR_TARGET"; then
10192 gcc_cv_ld="$LD_FOR_TARGET"
10193 elif test -x "$LD" && test x$host = x$target; then
10194 gcc_cv_ld="$LD"
10195 elif test -x collect-ld$host_exeext; then
10196 # Build using linker in the current directory.
10197 gcc_cv_ld=./collect-ld$host_exeext
10198 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10199 && test -f ../ld/Makefile; then
10200 # Single tree build which includes ld.
10201 in_tree_ld=yes
10202 in_tree_ld_is_elf=no
10203 if (grep 'EMUL = .*elf' ../ld/Makefile \
10204 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10205 in_tree_ld_is_elf=yes
10207 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
10209 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10210 if test x$gcc_cv_gld_version != x; then
10211 break
10213 done
10214 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10215 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10216 rm -f collect-ld$host_exeext
10217 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10218 2>/dev/null
10221 if test "x$gcc_cv_ld" = x; then
10222 # Search the same directories that the installed compiler will
10223 # search. Else we may find the wrong linker and lose. If we
10224 # do not find a suitable linker binary, then try the user's
10225 # path.
10227 # Also note we have to check MD_EXEC_PREFIX before checking the
10228 # user's path. Unfortunately, there is no good way to get at the
10229 # value of MD_EXEC_PREFIX here. So we do a brute force search
10230 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10231 # to be fixed as part of the make/configure rewrite too.
10233 if test "x$exec_prefix" = xNONE; then
10234 if test "x$prefix" = xNONE; then
10235 test_prefix=/usr/local
10236 else
10237 test_prefix=$prefix
10239 else
10240 test_prefix=$exec_prefix
10243 # If the loop below does not find an linker, then use whatever
10244 # one we can find in the users's path.
10245 # user's path.
10246 if test "x$program_prefix" != xNONE; then
10247 gcc_cv_ld=${program_prefix}ld$host_exeext
10248 else
10249 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10252 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10253 $test_prefix/libexec/gcc/$target_noncanonical \
10254 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10255 /usr/lib/gcc/$target_noncanonical \
10256 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10257 $test_prefix/$target_noncanonical/bin"
10259 if test x$host = x$target; then
10260 test_dirs="$test_dirs \
10261 /usr/libexec \
10262 /usr/ccs/gcc \
10263 /usr/ccs/bin \
10264 /udk/usr/ccs/bin \
10265 /bsd43/usr/lib/cmplrs/cc \
10266 /usr/cross64/usr/bin \
10267 /usr/lib/cmplrs/cc \
10268 /sysv/usr/lib/cmplrs/cc \
10269 /svr4/usr/lib/cmplrs/cc \
10270 /usr/bin"
10273 for dir in $test_dirs; do
10274 if test -x $dir/ld$host_exeext; then
10275 gcc_cv_ld=$dir/ld$host_exeext
10276 break;
10278 done
10280 case $in_tree_ld in
10281 yes)
10282 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10283 echo "${ECHO_T}\"newly built ld\"" >&6
10286 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10287 echo "${ECHO_T}$gcc_cv_ld" >&6
10289 esac
10291 # Figure out what nm we will be using.
10292 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10293 echo "$as_me:$LINENO: checking what nm to use" >&5
10294 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10295 in_tree_nm=no
10296 if test -x nm$host_exeext; then
10297 gcc_cv_nm=./nm$host_exeext
10298 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10299 && test -f ../binutils/Makefile; then
10300 # Single tree build which includes binutils.
10301 in_tree_nm=yes
10302 gcc_cv_nm=./nm$host_exeext
10303 rm -f nm$host_exeext
10304 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10305 elif test "x$program_prefix" != xNONE; then
10306 gcc_cv_nm=${program_prefix}nm$host_exeext
10307 else
10308 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10310 case $in_tree_nm in
10311 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10312 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10313 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10314 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10315 esac
10317 # Figure out what objdump we will be using.
10318 echo "$as_me:$LINENO: checking what objdump to use" >&5
10319 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10320 in_tree_objdump=no
10321 if test -x objdump$host_exeext; then
10322 gcc_cv_objdump=./objdump$host_exeext
10323 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10324 && test -f ../binutils/Makefile; then
10325 # Single tree build which includes binutils.
10326 in_tree_objdump=yes
10327 gcc_cv_objdump=./objdump$host_exeext
10328 rm -f objdump$host_exeext
10329 $symbolic_link ../binutils/objdump$host_exeext \
10330 objdump$host_exeext 2>/dev/null
10331 elif test "x$program_prefix" != xNONE; then
10332 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10333 else
10334 gcc_cv_objdump=`echo objdump | \
10335 sed "${program_transform_name}"`$host_exeext
10337 case $in_tree_objdump in
10338 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10339 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10340 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10341 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10342 esac
10344 # Figure out what assembler alignment features are present.
10345 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10346 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10347 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10349 else
10350 gcc_cv_as_balign_and_p2align=no
10351 if test $in_tree_gas = yes; then
10352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10353 then gcc_cv_as_balign_and_p2align=yes
10355 elif test x$gcc_cv_as != x; then
10356 echo '.balign 4
10357 .p2align 2' > conftest.s
10358 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }
10364 then
10365 gcc_cv_as_balign_and_p2align=yes
10366 else
10367 echo "configure: failed program was" >&5
10368 cat conftest.s >&5
10370 rm -f conftest.o conftest.s
10373 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10374 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10375 if test $gcc_cv_as_balign_and_p2align = yes; then
10377 cat >>confdefs.h <<\_ACEOF
10378 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10379 _ACEOF
10383 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10384 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10385 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388 gcc_cv_as_max_skip_p2align=no
10389 if test $in_tree_gas = yes; then
10390 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10391 then gcc_cv_as_max_skip_p2align=yes
10393 elif test x$gcc_cv_as != x; then
10394 echo '.p2align 4,,7' > conftest.s
10395 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10398 ac_status=$?
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }
10401 then
10402 gcc_cv_as_max_skip_p2align=yes
10403 else
10404 echo "configure: failed program was" >&5
10405 cat conftest.s >&5
10407 rm -f conftest.o conftest.s
10410 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10411 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10412 if test $gcc_cv_as_max_skip_p2align = yes; then
10414 cat >>confdefs.h <<\_ACEOF
10415 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10416 _ACEOF
10420 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10421 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10422 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10424 else
10425 gcc_cv_as_subsection_m1=no
10426 if test $in_tree_gas = yes; then
10427 if test $in_tree_gas_is_elf = yes \
10428 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10429 then gcc_cv_as_subsection_m1=yes
10431 elif test x$gcc_cv_as != x; then
10432 echo 'conftest_label1: .word 0
10433 .subsection -1
10434 conftest_label2: .word 0
10435 .previous' > conftest.s
10436 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }
10442 then
10443 if test x$gcc_cv_nm != x; then
10444 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10445 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10446 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10447 then :
10448 else gcc_cv_as_subsection_m1=yes
10450 rm -f conftest.nm1 conftest.nm2
10452 else
10453 echo "configure: failed program was" >&5
10454 cat conftest.s >&5
10456 rm -f conftest.o conftest.s
10459 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10460 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10461 if test $gcc_cv_as_subsection_m1 = yes; then
10463 cat >>confdefs.h <<\_ACEOF
10464 #define HAVE_GAS_SUBSECTION_ORDERING 1
10465 _ACEOF
10469 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10470 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10471 if test "${gcc_cv_as_weak+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474 gcc_cv_as_weak=no
10475 if test $in_tree_gas = yes; then
10476 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10477 then gcc_cv_as_weak=yes
10479 elif test x$gcc_cv_as != x; then
10480 echo ' .weak foobar' > conftest.s
10481 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10484 ac_status=$?
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }
10487 then
10488 gcc_cv_as_weak=yes
10489 else
10490 echo "configure: failed program was" >&5
10491 cat conftest.s >&5
10493 rm -f conftest.o conftest.s
10496 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10497 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10498 if test $gcc_cv_as_weak = yes; then
10500 cat >>confdefs.h <<\_ACEOF
10501 #define HAVE_GAS_WEAK 1
10502 _ACEOF
10506 # .hidden needs to be supported in both the assembler and the linker,
10507 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10508 # This is irritatingly difficult to feature test for; we have to check the
10509 # date string after the version number. If we've got an in-tree
10510 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10511 # to be safe.
10512 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10513 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10514 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10515 if test "${gcc_cv_as_hidden+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518 gcc_cv_as_hidden=no
10519 if test $in_tree_gas = yes; then
10520 if test $in_tree_gas_is_elf = yes \
10521 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10522 then gcc_cv_as_hidden=yes
10524 elif test x$gcc_cv_as != x; then
10525 echo ' .hidden foobar
10526 foobar:' > conftest.s
10527 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; }
10533 then
10534 gcc_cv_as_hidden=yes
10535 else
10536 echo "configure: failed program was" >&5
10537 cat conftest.s >&5
10539 rm -f conftest.o conftest.s
10542 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10543 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10546 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10547 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10548 if test "${gcc_cv_ld_hidden+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10550 else
10551 if test $in_tree_ld = yes ; then
10552 gcc_cv_ld_hidden=no
10553 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 \
10554 && test $in_tree_ld_is_elf = yes; then
10555 gcc_cv_ld_hidden=yes
10557 else
10558 gcc_cv_ld_hidden=yes
10559 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10560 if echo "$ld_ver" | grep GNU > /dev/null; then
10561 ld_vers=`echo $ld_ver | sed -n \
10562 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10563 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10564 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10565 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10566 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10567 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10568 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'`
10569 if test 0"$ld_date" -lt 20020404; then
10570 if test -n "$ld_date"; then
10571 # If there was date string, but was earlier than 2002-04-04, fail
10572 gcc_cv_ld_hidden=no
10573 elif test -z "$ld_vers"; then
10574 # If there was no date string nor ld version number, something is wrong
10575 gcc_cv_ld_hidden=no
10576 else
10577 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10578 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10579 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10580 test -z "$ld_vers_patch" && ld_vers_patch=0
10581 if test "$ld_vers_major" -lt 2; then
10582 gcc_cv_ld_hidden=no
10583 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10584 gcc_cv_ld_hidden="no"
10585 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10586 gcc_cv_ld_hidden=no
10590 else
10591 case "${target}" in
10592 hppa64*-*-hpux* | ia64*-*-hpux*)
10593 gcc_cv_ld_hidden=yes
10596 gcc_cv_ld_hidden=no
10598 esac
10602 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10603 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10604 libgcc_visibility=no
10606 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10607 libgcc_visibility=yes
10609 cat >>confdefs.h <<\_ACEOF
10610 #define HAVE_GAS_HIDDEN 1
10611 _ACEOF
10615 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10616 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10617 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10618 if test "${gcc_cv_as_leb128+set}" = set; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10620 else
10621 gcc_cv_as_leb128=no
10622 if test $in_tree_gas = yes; then
10623 if test $in_tree_gas_is_elf = yes \
10624 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10625 then gcc_cv_as_leb128=yes
10627 elif test x$gcc_cv_as != x; then
10628 echo ' .data
10629 .uleb128 L2 - L1
10631 .uleb128 1280
10632 .sleb128 -1010
10633 L2:' > conftest.s
10634 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }
10640 then
10641 # GAS versions before 2.11 do not support uleb128,
10642 # despite appearing to.
10643 # ??? There exists an elf-specific test that will crash
10644 # the assembler. Perhaps it's better to figure out whether
10645 # arbitrary sections are supported and try the test.
10646 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10647 if echo "$as_ver" | grep GNU > /dev/null; then
10648 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10649 as_major=`echo $as_ver | sed 's/\..*//'`
10650 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10651 if test $as_major -eq 2 && test $as_minor -lt 11
10652 then :
10653 else gcc_cv_as_leb128=yes
10656 else
10657 echo "configure: failed program was" >&5
10658 cat conftest.s >&5
10660 rm -f conftest.o conftest.s
10663 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10664 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10665 if test $gcc_cv_as_leb128 = yes; then
10667 cat >>confdefs.h <<\_ACEOF
10668 #define HAVE_AS_LEB128 1
10669 _ACEOF
10673 # GAS versions up to and including 2.11.0 may mis-optimize
10674 # .eh_frame data.
10675 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10676 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10677 if test "${gcc_cv_as_eh_frame+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 else
10680 gcc_cv_as_eh_frame=no
10681 if test $in_tree_gas = yes; then
10682 if test $in_tree_gas_is_elf = yes \
10683 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10684 then gcc_cv_as_eh_frame=yes
10686 elif test x$gcc_cv_as != x; then
10687 echo ' .text
10688 .LFB1:
10689 .4byte 0
10690 .L1:
10691 .4byte 0
10692 .LFE1:
10693 .section .eh_frame,"aw",@progbits
10694 __FRAME_BEGIN__:
10695 .4byte .LECIE1-.LSCIE1
10696 .LSCIE1:
10697 .4byte 0x0
10698 .byte 0x1
10699 .ascii "z\0"
10700 .byte 0x1
10701 .byte 0x78
10702 .byte 0x1a
10703 .byte 0x0
10704 .byte 0x4
10705 .4byte 1
10706 .p2align 1
10707 .LECIE1:
10708 .LSFDE1:
10709 .4byte .LEFDE1-.LASFDE1
10710 .LASFDE1:
10711 .4byte .LASFDE1-__FRAME_BEGIN__
10712 .4byte .LFB1
10713 .4byte .LFE1-.LFB1
10714 .byte 0x4
10715 .4byte .LFE1-.LFB1
10716 .byte 0x4
10717 .4byte .L1-.LFB1
10718 .LEFDE1:' > conftest.s
10719 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }
10725 then
10726 cat > conftest.lit <<EOF
10727 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10728 0010 01000000 12000000 18000000 00000000 ................
10729 0020 08000000 04080000 0044 .........D
10731 cat > conftest.big <<EOF
10732 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10733 0010 00000001 00000012 00000018 00000000 ................
10734 0020 00000008 04000000 0844 .........D
10736 # If the assembler didn't choke, and we can objdump,
10737 # and we got the correct data, then succeed.
10738 if test x$gcc_cv_objdump != x \
10739 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10740 | tail -3 > conftest.got \
10741 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10742 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10743 then
10744 gcc_cv_as_eh_frame=yes
10745 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
10751 gcc_cv_as_eh_frame=buggy
10752 else
10753 # Uh oh, what do we do now?
10754 gcc_cv_as_eh_frame=no
10756 else
10757 echo "configure: failed program was" >&5
10758 cat conftest.s >&5
10760 rm -f conftest.o conftest.s
10763 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10764 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10767 if test $gcc_cv_as_eh_frame = buggy; then
10769 cat >>confdefs.h <<\_ACEOF
10770 #define USE_AS_TRADITIONAL_FORMAT 1
10771 _ACEOF
10775 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10776 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10777 if test "${gcc_cv_as_shf_merge+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 else
10780 gcc_cv_as_shf_merge=no
10781 if test $in_tree_gas = yes; then
10782 if test $in_tree_gas_is_elf = yes \
10783 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10784 then gcc_cv_as_shf_merge=yes
10786 elif test x$gcc_cv_as != x; then
10787 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10788 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }
10794 then
10795 gcc_cv_as_shf_merge=yes
10796 else
10797 echo "configure: failed program was" >&5
10798 cat conftest.s >&5
10800 rm -f conftest.o conftest.s
10803 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10804 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10807 cat >>confdefs.h <<_ACEOF
10808 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10809 _ACEOF
10812 # Thread-local storage - the check is heavily parametrized.
10813 conftest_s=
10814 tls_first_major=
10815 tls_first_minor=
10816 tls_as_opt=
10817 case "$target" in
10818 alpha*-*-*)
10819 conftest_s='
10820 .section ".tdata","awT",@progbits
10821 foo: .long 25
10822 .text
10823 ldq $27,__tls_get_addr($29) !literal!1
10824 lda $16,foo($29) !tlsgd!1
10825 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10826 ldq $27,__tls_get_addr($29) !literal!2
10827 lda $16,foo($29) !tlsldm!2
10828 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10829 ldq $1,foo($29) !gotdtprel
10830 ldah $2,foo($29) !dtprelhi
10831 lda $3,foo($2) !dtprello
10832 lda $4,foo($29) !dtprel
10833 ldq $1,foo($29) !gottprel
10834 ldah $2,foo($29) !tprelhi
10835 lda $3,foo($2) !tprello
10836 lda $4,foo($29) !tprel'
10837 tls_first_major=2
10838 tls_first_minor=13
10839 tls_as_opt=--fatal-warnings
10841 i[34567]86-*-*)
10842 conftest_s='
10843 .section ".tdata","awT",@progbits
10844 foo: .long 25
10845 .text
10846 movl %gs:0, %eax
10847 leal foo@TLSGD(,%ebx,1), %eax
10848 leal foo@TLSLDM(%ebx), %eax
10849 leal foo@DTPOFF(%eax), %edx
10850 movl foo@GOTTPOFF(%ebx), %eax
10851 subl foo@GOTTPOFF(%ebx), %eax
10852 addl foo@GOTNTPOFF(%ebx), %eax
10853 movl foo@INDNTPOFF, %eax
10854 movl $foo@TPOFF, %eax
10855 subl $foo@TPOFF, %eax
10856 leal foo@NTPOFF(%ecx), %eax'
10857 tls_first_major=2
10858 tls_first_minor=14
10859 tls_as_opt=--fatal-warnings
10861 x86_64-*-*)
10862 conftest_s='
10863 .section ".tdata","awT",@progbits
10864 foo: .long 25
10865 .text
10866 movq %fs:0, %rax
10867 leaq foo@TLSGD(%rip), %rdi
10868 leaq foo@TLSLD(%rip), %rdi
10869 leaq foo@DTPOFF(%rax), %rdx
10870 movq foo@GOTTPOFF(%rip), %rax
10871 movq $foo@TPOFF, %rax'
10872 tls_first_major=2
10873 tls_first_minor=14
10874 tls_as_opt=--fatal-warnings
10876 ia64-*-*)
10877 conftest_s='
10878 .section ".tdata","awT",@progbits
10879 foo: data8 25
10880 .text
10881 addl r16 = @ltoff(@dtpmod(foo#)), gp
10882 addl r17 = @ltoff(@dtprel(foo#)), gp
10883 addl r18 = @ltoff(@tprel(foo#)), gp
10884 addl r19 = @dtprel(foo#), gp
10885 adds r21 = @dtprel(foo#), r13
10886 movl r23 = @dtprel(foo#)
10887 addl r20 = @tprel(foo#), gp
10888 adds r22 = @tprel(foo#), r13
10889 movl r24 = @tprel(foo#)'
10890 tls_first_major=2
10891 tls_first_minor=13
10892 tls_as_opt=--fatal-warnings
10894 powerpc-*-*)
10895 conftest_s='
10896 .section ".tdata","awT",@progbits
10897 .align 2
10898 ld0: .space 4
10899 ld1: .space 4
10900 x1: .space 4
10901 x2: .space 4
10902 x3: .space 4
10903 .text
10904 addi 3,31,ld0@got@tlsgd
10905 bl __tls_get_addr
10906 addi 3,31,x1@got@tlsld
10907 bl __tls_get_addr
10908 addi 9,3,x1@dtprel
10909 addis 9,3,x2@dtprel@ha
10910 addi 9,9,x2@dtprel@l
10911 lwz 9,x3@got@tprel(31)
10912 add 9,9,x@tls
10913 addi 9,2,x1@tprel
10914 addis 9,2,x2@tprel@ha
10915 addi 9,9,x2@tprel@l'
10916 tls_first_major=2
10917 tls_first_minor=14
10918 tls_as_opt="-a32 --fatal-warnings"
10920 powerpc64-*-*)
10921 conftest_s='
10922 .section ".tdata","awT",@progbits
10923 .align 3
10924 ld0: .space 8
10925 ld1: .space 8
10926 x1: .space 8
10927 x2: .space 8
10928 x3: .space 8
10929 .text
10930 addi 3,2,ld0@got@tlsgd
10931 bl .__tls_get_addr
10933 addi 3,2,ld1@toc
10934 bl .__tls_get_addr
10936 addi 3,2,x1@got@tlsld
10937 bl .__tls_get_addr
10939 addi 9,3,x1@dtprel
10940 bl .__tls_get_addr
10942 addis 9,3,x2@dtprel@ha
10943 addi 9,9,x2@dtprel@l
10944 bl .__tls_get_addr
10946 ld 9,x3@got@dtprel(2)
10947 add 9,9,3
10948 bl .__tls_get_addr
10949 nop'
10950 tls_first_major=2
10951 tls_first_minor=14
10952 tls_as_opt="-a64 --fatal-warnings"
10954 s390-*-*)
10955 conftest_s='
10956 .section ".tdata","awT",@progbits
10957 foo: .long 25
10958 .text
10959 .long foo@TLSGD
10960 .long foo@TLSLDM
10961 .long foo@DTPOFF
10962 .long foo@NTPOFF
10963 .long foo@GOTNTPOFF
10964 .long foo@INDNTPOFF
10965 l %r1,foo@GOTNTPOFF(%r12)
10966 l %r1,0(%r1):tls_load:foo
10967 bas %r14,0(%r1,%r13):tls_gdcall:foo
10968 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10969 tls_first_major=2
10970 tls_first_minor=14
10971 tls_as_opt="-m31 --fatal-warnings"
10973 s390x-*-*)
10974 conftest_s='
10975 .section ".tdata","awT",@progbits
10976 foo: .long 25
10977 .text
10978 .quad foo@TLSGD
10979 .quad foo@TLSLDM
10980 .quad foo@DTPOFF
10981 .quad foo@NTPOFF
10982 .quad foo@GOTNTPOFF
10983 lg %r1,foo@GOTNTPOFF(%r12)
10984 larl %r1,foo@INDNTPOFF
10985 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10986 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10987 tls_first_major=2
10988 tls_first_minor=14
10989 tls_as_opt="-m64 -Aesame --fatal-warnings"
10991 sh-*-* | sh[34]-*-*)
10992 conftest_s='
10993 .section ".tdata","awT",@progbits
10994 foo: .long 25
10995 .text
10996 .long foo@TLSGD
10997 .long foo@TLSLDM
10998 .long foo@DTPOFF
10999 .long foo@GOTTPOFF
11000 .long foo@TPOFF'
11001 tls_first_major=2
11002 tls_first_minor=13
11003 tls_as_opt=--fatal-warnings
11005 sparc*-*-*)
11006 case "$target" in
11007 sparc*-sun-solaris2.*)
11008 on_solaris=yes
11011 on_solaris=no
11013 esac
11014 if test x$on_solaris = xyes && test x$gas_flag = xno; then
11015 conftest_s='
11016 .section ".tdata",#alloc,#write,#tls
11017 foo: .long 25
11018 .text
11019 sethi %tgd_hi22(foo), %o0
11020 add %o0, %tgd_lo10(foo), %o1
11021 add %l7, %o1, %o0, %tgd_add(foo)
11022 call __tls_get_addr, %tgd_call(foo)
11023 sethi %tldm_hi22(foo), %l1
11024 add %l1, %tldm_lo10(foo), %l2
11025 add %l7, %l2, %o0, %tldm_add(foo)
11026 call __tls_get_addr, %tldm_call(foo)
11027 sethi %tldo_hix22(foo), %l3
11028 xor %l3, %tldo_lox10(foo), %l4
11029 add %o0, %l4, %l5, %tldo_add(foo)
11030 sethi %tie_hi22(foo), %o3
11031 add %o3, %tie_lo10(foo), %o3
11032 ld [%l7 + %o3], %o2, %tie_ld(foo)
11033 add %g7, %o2, %o4, %tie_add(foo)
11034 sethi %tle_hix22(foo), %l1
11035 xor %l1, %tle_lox10(foo), %o5
11036 ld [%g7 + %o5], %o1'
11037 tls_first_major=0
11038 tls_first_minor=0
11039 else
11040 conftest_s='
11041 .section ".tdata","awT",@progbits
11042 foo: .long 25
11043 .text
11044 sethi %tgd_hi22(foo), %o0
11045 add %o0, %tgd_lo10(foo), %o1
11046 add %l7, %o1, %o0, %tgd_add(foo)
11047 call __tls_get_addr, %tgd_call(foo)
11048 sethi %tldm_hi22(foo), %l1
11049 add %l1, %tldm_lo10(foo), %l2
11050 add %l7, %l2, %o0, %tldm_add(foo)
11051 call __tls_get_addr, %tldm_call(foo)
11052 sethi %tldo_hix22(foo), %l3
11053 xor %l3, %tldo_lox10(foo), %l4
11054 add %o0, %l4, %l5, %tldo_add(foo)
11055 sethi %tie_hi22(foo), %o3
11056 add %o3, %tie_lo10(foo), %o3
11057 ld [%l7 + %o3], %o2, %tie_ld(foo)
11058 add %g7, %o2, %o4, %tie_add(foo)
11059 sethi %tle_hix22(foo), %l1
11060 xor %l1, %tle_lox10(foo), %o5
11061 ld [%g7 + %o5], %o1'
11062 tls_first_major=2
11063 tls_first_minor=14
11064 tls_as_opt="-32 --fatal-warnings"
11067 esac
11068 if test -z "$tls_first_major"; then
11069 : # If we don't have a check, assume no support.
11070 else
11071 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11072 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11073 if test "${gcc_cv_as_tls+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 else
11076 gcc_cv_as_tls=no
11077 if test $in_tree_gas = yes; then
11078 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11079 then gcc_cv_as_tls=yes
11081 elif test x$gcc_cv_as != x; then
11082 echo "$conftest_s" > conftest.s
11083 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }
11089 then
11090 gcc_cv_as_tls=yes
11091 else
11092 echo "configure: failed program was" >&5
11093 cat conftest.s >&5
11095 rm -f conftest.o conftest.s
11098 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11099 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11100 if test $gcc_cv_as_tls = yes; then
11102 cat >>confdefs.h <<\_ACEOF
11103 #define HAVE_AS_TLS 1
11104 _ACEOF
11109 # Target-specific assembler checks.
11111 case "$target" in
11112 # All TARGET_ABI_OSF targets.
11113 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11114 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11115 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11116 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119 gcc_cv_as_alpha_explicit_relocs=no
11120 if test $in_tree_gas = yes; then
11121 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11122 then gcc_cv_as_alpha_explicit_relocs=yes
11124 elif test x$gcc_cv_as != x; then
11125 echo ' .set nomacro
11126 .text
11127 extbl $3, $2, $3 !lituse_bytoff!1
11128 ldq $2, a($29) !literal!1
11129 ldq $4, b($29) !literal!2
11130 ldq_u $3, 0($2) !lituse_base!1
11131 ldq $27, f($29) !literal!5
11132 jsr $26, ($27), f !lituse_jsr!5
11133 ldah $29, 0($26) !gpdisp!3
11134 lda $0, c($29) !gprel
11135 ldah $1, d($29) !gprelhigh
11136 lda $1, d($1) !gprellow
11137 lda $29, 0($29) !gpdisp!3' > conftest.s
11138 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }
11144 then
11145 gcc_cv_as_alpha_explicit_relocs=yes
11146 else
11147 echo "configure: failed program was" >&5
11148 cat conftest.s >&5
11150 rm -f conftest.o conftest.s
11153 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11154 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11155 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11157 cat >>confdefs.h <<\_ACEOF
11158 #define HAVE_AS_EXPLICIT_RELOCS 1
11159 _ACEOF
11164 cris-*-*)
11165 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11166 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11167 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170 gcc_cv_as_cris_no_mul_bug=no
11171 if test $in_tree_gas = yes; then
11172 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11173 then gcc_cv_as_cris_no_mul_bug=yes
11175 elif test x$gcc_cv_as != x; then
11176 echo '.text' > conftest.s
11177 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; }
11183 then
11184 gcc_cv_as_cris_no_mul_bug=yes
11185 else
11186 echo "configure: failed program was" >&5
11187 cat conftest.s >&5
11189 rm -f conftest.o conftest.s
11192 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11193 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11194 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11196 cat >>confdefs.h <<\_ACEOF
11197 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11198 _ACEOF
11203 sparc*-*-*)
11204 echo "$as_me:$LINENO: checking assembler for .register" >&5
11205 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11206 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209 gcc_cv_as_sparc_register_op=no
11210 if test x$gcc_cv_as != x; then
11211 echo '.register %g2, #scratch' > conftest.s
11212 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11215 ac_status=$?
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; }
11218 then
11219 gcc_cv_as_sparc_register_op=yes
11220 else
11221 echo "configure: failed program was" >&5
11222 cat conftest.s >&5
11224 rm -f conftest.o conftest.s
11227 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11228 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11229 if test $gcc_cv_as_sparc_register_op = yes; then
11231 cat >>confdefs.h <<\_ACEOF
11232 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11233 _ACEOF
11237 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11238 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11239 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 else
11242 gcc_cv_as_sparc_relax=no
11243 if test x$gcc_cv_as != x; then
11244 echo '.text' > conftest.s
11245 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11248 ac_status=$?
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }
11251 then
11252 gcc_cv_as_sparc_relax=yes
11253 else
11254 echo "configure: failed program was" >&5
11255 cat conftest.s >&5
11257 rm -f conftest.o conftest.s
11260 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11261 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11262 if test $gcc_cv_as_sparc_relax = yes; then
11264 cat >>confdefs.h <<\_ACEOF
11265 #define HAVE_AS_RELAX_OPTION 1
11266 _ACEOF
11270 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11271 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11272 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275 gcc_cv_as_sparc_ua_pcrel=no
11276 if test x$gcc_cv_as != x; then
11277 echo '.text
11278 foo:
11280 .data
11281 .align 4
11282 .byte 0
11283 .uaword %r_disp32(foo)' > conftest.s
11284 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }
11290 then
11291 if test x$gcc_cv_ld != x \
11292 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11293 gcc_cv_as_sparc_ua_pcrel=yes
11295 rm -f conftest
11296 else
11297 echo "configure: failed program was" >&5
11298 cat conftest.s >&5
11300 rm -f conftest.o conftest.s
11303 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11304 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11305 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11307 cat >>confdefs.h <<\_ACEOF
11308 #define HAVE_AS_SPARC_UA_PCREL 1
11309 _ACEOF
11312 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11313 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11314 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 else
11317 gcc_cv_as_sparc_ua_pcrel_hidden=no
11318 if test x$gcc_cv_as != x; then
11319 echo '.data
11320 .align 4
11321 .byte 0x31
11322 .uaword %r_disp32(foo)
11323 .byte 0x32, 0x33, 0x34
11324 .global foo
11325 .hidden foo
11326 foo:
11327 .skip 4' > conftest.s
11328 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }
11334 then
11335 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11336 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11337 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11338 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11339 if $gcc_cv_objdump -R conftest 2> /dev/null \
11340 | grep 'DISP32' > /dev/null 2>&1; then
11342 else
11343 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11346 rm -f conftest
11347 else
11348 echo "configure: failed program was" >&5
11349 cat conftest.s >&5
11351 rm -f conftest.o conftest.s
11354 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11355 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11356 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11358 cat >>confdefs.h <<\_ACEOF
11359 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11360 _ACEOF
11364 fi # unaligned pcrel relocs
11366 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11367 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11368 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 else
11371 gcc_cv_as_sparc_offsetable_lo10=no
11372 if test x$gcc_cv_as != x; then
11373 echo '.text
11374 or %g1, %lo(ab) + 12, %g1
11375 or %g1, %lo(ab + 12), %g1' > conftest.s
11376 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }
11382 then
11383 if test x$gcc_cv_objdump != x \
11384 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11385 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11386 gcc_cv_as_offsetable_lo10=yes
11388 else
11389 echo "configure: failed program was" >&5
11390 cat conftest.s >&5
11392 rm -f conftest.o conftest.s
11395 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11396 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11397 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11399 cat >>confdefs.h <<\_ACEOF
11400 #define HAVE_AS_OFFSETABLE_LO10 1
11401 _ACEOF
11406 i[34567]86-*-* | x86_64-*-*)
11407 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11408 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11409 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 else
11412 gcc_cv_as_ix86_filds_fists=no
11413 if test $in_tree_gas = yes; then
11414 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11415 then gcc_cv_as_ix86_filds_fists=yes
11417 elif test x$gcc_cv_as != x; then
11418 echo 'filds mem; fists mem' > conftest.s
11419 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11422 ac_status=$?
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }
11425 then
11426 gcc_cv_as_ix86_filds_fists=yes
11427 else
11428 echo "configure: failed program was" >&5
11429 cat conftest.s >&5
11431 rm -f conftest.o conftest.s
11434 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11435 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11436 if test $gcc_cv_as_ix86_filds_fists = yes; then
11438 cat >>confdefs.h <<\_ACEOF
11439 #define HAVE_GAS_FILDS_FISTS 1
11440 _ACEOF
11444 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11445 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11446 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 else
11449 gcc_cv_as_ix86_cmov_sun_syntax=no
11450 if test x$gcc_cv_as != x; then
11451 echo 'cmovl.l %edx, %eax' > conftest.s
11452 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }
11458 then
11459 gcc_cv_as_ix86_cmov_sun_syntax=yes
11460 else
11461 echo "configure: failed program was" >&5
11462 cat conftest.s >&5
11464 rm -f conftest.o conftest.s
11467 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11468 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11469 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11471 cat >>confdefs.h <<\_ACEOF
11472 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11473 _ACEOF
11477 # This one is used unconditionally by i386.[ch]; it is to be defined
11478 # to 1 if the feature is present, 0 otherwise.
11479 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11480 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11481 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484 gcc_cv_as_ix86_gotoff_in_data=no
11485 if test $in_tree_gas = yes; then
11486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11487 then gcc_cv_as_ix86_gotoff_in_data=yes
11489 elif test x$gcc_cv_as != x; then
11490 echo ' .text
11491 .L0:
11493 .data
11494 .long .L0@GOTOFF' > conftest.s
11495 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }
11501 then
11502 gcc_cv_as_ix86_gotoff_in_data=yes
11503 else
11504 echo "configure: failed program was" >&5
11505 cat conftest.s >&5
11507 rm -f conftest.o conftest.s
11510 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11511 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11514 cat >>confdefs.h <<_ACEOF
11515 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11516 _ACEOF
11520 ia64*-*-*)
11521 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11522 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11523 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11525 else
11526 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11527 if test $in_tree_gas = yes; then
11528 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11529 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11531 elif test x$gcc_cv_as != x; then
11532 echo ' .text
11533 addl r15 = @ltoffx(x#), gp
11535 ld8.mov r16 = [r15], x#' > conftest.s
11536 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }
11542 then
11543 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11544 else
11545 echo "configure: failed program was" >&5
11546 cat conftest.s >&5
11548 rm -f conftest.o conftest.s
11551 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11552 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11553 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11555 cat >>confdefs.h <<\_ACEOF
11556 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11557 _ACEOF
11563 powerpc*-*-*)
11564 case $target in
11565 *-*-aix*) conftest_s=' .csect .text[PR]
11566 mfcr 3,128';;
11567 *-*-darwin*) conftest_s=' .text
11568 mfcr r3,128';;
11569 *) conftest_s=' .text
11570 mfcr 3,128';;
11571 esac
11573 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11574 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11575 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577 else
11578 gcc_cv_as_powerpc_mfcrf=no
11579 if test $in_tree_gas = yes; then
11580 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11581 then gcc_cv_as_powerpc_mfcrf=yes
11583 elif test x$gcc_cv_as != x; then
11584 echo "$conftest_s" > conftest.s
11585 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11588 ac_status=$?
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; }
11591 then
11592 gcc_cv_as_powerpc_mfcrf=yes
11593 else
11594 echo "configure: failed program was" >&5
11595 cat conftest.s >&5
11597 rm -f conftest.o conftest.s
11600 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11601 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11602 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11604 cat >>confdefs.h <<\_ACEOF
11605 #define HAVE_AS_MFCRF 1
11606 _ACEOF
11611 mips*-*-*)
11612 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11613 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11614 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617 gcc_cv_as_mips_explicit_relocs=no
11618 if test $in_tree_gas = yes; then
11619 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11620 then gcc_cv_as_mips_explicit_relocs=yes
11622 elif test x$gcc_cv_as != x; then
11623 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11624 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }
11630 then
11631 gcc_cv_as_mips_explicit_relocs=yes
11632 else
11633 echo "configure: failed program was" >&5
11634 cat conftest.s >&5
11636 rm -f conftest.o conftest.s
11639 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11640 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11641 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11642 if test x$target_cpu_default = x
11643 then target_cpu_default=MASK_EXPLICIT_RELOCS
11644 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11649 esac
11650 # ??? Not all targets support dwarf2 debug_line, even within a version
11651 # of gas. Moreover, we need to emit a valid instruction to trigger any
11652 # info to the output file. So, as supported targets are added to gas 2.11,
11653 # add some instruction here to (also) show we expect this might work.
11654 # ??? Once 2.11 is released, probably need to add first known working
11655 # version to the per-target configury.
11656 case "$target" in
11657 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11658 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11659 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11660 insn="nop"
11662 ia64*-*-* | s390*-*-*)
11663 insn="nop 0"
11665 mmix-*-*)
11666 insn="swym 0"
11668 esac
11669 if test x"$insn" != x; then
11670 conftest_s="\
11671 .file 1 \"conftest.s\"
11672 .loc 1 3 0
11673 $insn"
11674 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11675 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11676 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679 gcc_cv_as_dwarf2_debug_line=no
11680 if test $in_tree_gas = yes; then
11681 if test $in_tree_gas_is_elf = yes \
11682 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11683 then gcc_cv_as_dwarf2_debug_line=yes
11685 elif test x$gcc_cv_as != x; then
11686 echo "$conftest_s" > conftest.s
11687 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689 (eval $ac_try) 2>&5
11690 ac_status=$?
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; }
11693 then
11694 # ??? This fails with non-gnu grep. Maybe use objdump?
11695 if grep debug_line conftest.o > /dev/null 2>&1; then
11696 gcc_cv_as_dwarf2_debug_line=yes
11698 else
11699 echo "configure: failed program was" >&5
11700 cat conftest.s >&5
11702 rm -f conftest.o conftest.s
11705 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11706 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11709 # The .debug_line file table must be in the exact order that
11710 # we specified the files, since these indices are also used
11711 # by DW_AT_decl_file. Approximate this test by testing if
11712 # the assembler bitches if the same index is assigned twice.
11713 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11714 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11715 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718 gcc_cv_as_dwarf2_file_buggy=no
11719 if test x$gcc_cv_as != x; then
11720 echo ' .file 1 "foo.s"
11721 .file 1 "bar.s"' > conftest.s
11722 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }
11728 then
11729 gcc_cv_as_dwarf2_file_buggy=yes
11730 else
11731 echo "configure: failed program was" >&5
11732 cat conftest.s >&5
11734 rm -f conftest.o conftest.s
11737 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11738 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11741 if test $gcc_cv_as_dwarf2_debug_line = yes \
11742 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11744 cat >>confdefs.h <<\_ACEOF
11745 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11746 _ACEOF
11750 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11751 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11752 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755 gcc_cv_as_gdwarf2_flag=no
11756 if test $in_tree_gas = yes; then
11757 if test $in_tree_gas_is_elf = yes \
11758 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11759 then gcc_cv_as_gdwarf2_flag=yes
11761 elif test x$gcc_cv_as != x; then
11762 echo "$insn" > conftest.s
11763 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }
11769 then
11770 gcc_cv_as_gdwarf2_flag=yes
11771 else
11772 echo "configure: failed program was" >&5
11773 cat conftest.s >&5
11775 rm -f conftest.o conftest.s
11778 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11779 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11780 if test $gcc_cv_as_gdwarf2_flag = yes; then
11782 cat >>confdefs.h <<\_ACEOF
11783 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11784 _ACEOF
11788 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11789 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11790 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 else
11793 gcc_cv_as_gstabs_flag=no
11794 if test $in_tree_gas = yes; then
11795 if test $in_tree_gas_is_elf = yes \
11796 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11797 then gcc_cv_as_gstabs_flag=yes
11799 elif test x$gcc_cv_as != x; then
11800 echo "$insn" > conftest.s
11801 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }
11807 then
11808 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11809 # and warns about it, but still exits successfully. So check for
11810 # this.
11811 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813 (eval $ac_try) 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; }
11817 then :
11818 else gcc_cv_as_gstabs_flag=yes
11820 else
11821 echo "configure: failed program was" >&5
11822 cat conftest.s >&5
11824 rm -f conftest.o conftest.s
11827 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11828 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11829 if test $gcc_cv_as_gstabs_flag = yes; then
11831 cat >>confdefs.h <<\_ACEOF
11832 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11833 _ACEOF
11838 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11839 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11840 gcc_cv_ld_ro_rw_mix=unknown
11841 if test $in_tree_ld = yes ; then
11842 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 \
11843 && test $in_tree_ld_is_elf = yes; then
11844 gcc_cv_ld_ro_rw_mix=read-write
11846 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11847 echo '.section myfoosect, "a"' > conftest1.s
11848 echo '.section myfoosect, "aw"' > conftest2.s
11849 echo '.byte 1' >> conftest2.s
11850 echo '.section myfoosect, "a"' > conftest3.s
11851 echo '.byte 0' >> conftest3.s
11852 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11853 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11854 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11855 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11856 conftest2.o conftest3.o > /dev/null 2>&1; then
11857 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11858 | sed -e '/myfoosect/!d' -e N`
11859 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11860 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11861 gcc_cv_ld_ro_rw_mix=read-only
11862 else
11863 gcc_cv_ld_ro_rw_mix=read-write
11867 rm -f conftest.* conftest[123].*
11869 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11871 cat >>confdefs.h <<\_ACEOF
11872 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11873 _ACEOF
11876 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11877 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11879 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11880 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11881 gcc_cv_ld_eh_frame_hdr=no
11882 if test $in_tree_ld = yes ; then
11883 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 \
11884 && test $in_tree_ld_is_elf = yes; then
11885 gcc_cv_ld_eh_frame_hdr=yes
11887 elif test x$gcc_cv_ld != x; then
11888 # Check if linker supports --eh-frame-hdr option
11889 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11890 gcc_cv_ld_eh_frame_hdr=yes
11893 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11895 cat >>confdefs.h <<\_ACEOF
11896 #define HAVE_LD_EH_FRAME_HDR 1
11897 _ACEOF
11900 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11901 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11903 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11904 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11905 gcc_cv_ld_pie=no
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 15 -o "$gcc_cv_gld_major_version" -gt 2 \
11908 && test $in_tree_ld_is_elf = yes; then
11909 gcc_cv_ld_pie=yes
11911 elif test x$gcc_cv_ld != x; then
11912 # Check if linker supports -pie option
11913 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11914 gcc_cv_ld_pie=yes
11917 if test x"$gcc_cv_ld_pie" = xyes; then
11919 cat >>confdefs.h <<\_ACEOF
11920 #define HAVE_LD_PIE 1
11921 _ACEOF
11924 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11925 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11927 # --------
11928 # UNSORTED
11929 # --------
11931 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11932 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11933 gcc_cv_ld_as_needed=no
11934 if test $in_tree_ld = yes ; then
11935 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 \
11936 && test $in_tree_ld_is_elf = yes; then
11937 gcc_cv_ld_as_needed=yes
11939 elif test x$gcc_cv_ld != x; then
11940 # Check if linker supports --as-needed and --no-as-needed options
11941 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
11942 gcc_cv_ld_as_needed=yes
11945 if test x"$gcc_cv_ld_as_needed" = xyes; then
11947 cat >>confdefs.h <<\_ACEOF
11948 #define HAVE_LD_AS_NEEDED 1
11949 _ACEOF
11952 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
11953 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
11955 if test x$with_sysroot = x && test x$host = x$target \
11956 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11958 cat >>confdefs.h <<_ACEOF
11959 #define PREFIX_INCLUDE_DIR "$prefix/include"
11960 _ACEOF
11964 # Find out what GC implementation we want, or may, use.
11966 # Check whether --with-gc or --without-gc was given.
11967 if test "${with_gc+set}" = set; then
11968 withval="$with_gc"
11969 case "$withval" in
11970 page | zone)
11971 GGC=ggc-$withval
11974 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11975 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11976 { (exit 1); exit 1; }; }
11978 esac
11979 else
11980 GGC=ggc-page
11983 echo "Using $GGC for garbage collection."
11985 # Use the system's zlib library.
11986 zlibdir=-L../zlib
11987 zlibinc="-I\$(srcdir)/../zlib"
11989 # Check whether --with-system-zlib or --without-system-zlib was given.
11990 if test "${with_system_zlib+set}" = set; then
11991 withval="$with_system_zlib"
11992 zlibdir=
11993 zlibinc=
12000 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12001 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12002 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12003 if test "${enable_maintainer_mode+set}" = set; then
12004 enableval="$enable_maintainer_mode"
12005 maintainer_mode=$enableval
12006 else
12007 maintainer_mode=no
12010 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12011 echo "${ECHO_T}$maintainer_mode" >&6
12013 if test "$maintainer_mode" = "yes"; then
12014 MAINT=''
12015 else
12016 MAINT='#'
12019 # --------------
12020 # Language hooks
12021 # --------------
12023 # Make empty files to contain the specs and options for each language.
12024 # Then add #include lines to for a compiler that has specs and/or options.
12026 lang_opt_files=
12027 lang_specs_files=
12028 lang_tree_files=
12029 for subdir in . $subdirs
12031 if test -f $srcdir/$subdir/lang.opt; then
12032 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12034 if test -f $srcdir/$subdir/lang-specs.h; then
12035 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12037 if test -f $srcdir/$subdir/$subdir-tree.def; then
12038 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12040 done
12042 # These (without "all_") are set in each config-lang.in.
12043 # `language' must be a single word so is spelled singularly.
12044 all_languages=
12045 all_boot_languages=
12046 all_compilers=
12047 all_stagestuff=
12048 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
12049 # List of language makefile fragments.
12050 all_lang_makefrags=
12051 # List of language subdirectory makefiles. Deprecated.
12052 all_lang_makefiles=
12053 # Files for gengtype
12054 all_gtfiles="$target_gtfiles"
12055 # Files for gengtype with language
12056 all_gtfiles_files_langs=
12057 all_gtfiles_files_files=
12059 # Add the language fragments.
12060 # Languages are added via two mechanisms. Some information must be
12061 # recorded in makefile variables, these are defined in config-lang.in.
12062 # We accumulate them and plug them into the main Makefile.
12063 # The other mechanism is a set of hooks for each of the main targets
12064 # like `clean', `install', etc.
12066 language_hooks="Make-hooks"
12068 for s in $subdirs
12070 language=
12071 boot_language=
12072 compilers=
12073 stagestuff=
12074 outputs=
12075 gtfiles=
12076 . ${srcdir}/$s/config-lang.in
12077 if test "x$language" = x
12078 then
12079 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12080 exit 1
12082 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12083 if test -f ${srcdir}/$s/Makefile.in
12084 then all_lang_makefiles="$s/Makefile"
12086 all_languages="$all_languages $language"
12087 if test "x$boot_language" = xyes
12088 then
12089 all_boot_languages="$all_boot_languages $language"
12091 all_compilers="$all_compilers $compilers"
12092 all_stagestuff="$all_stagestuff $stagestuff"
12093 all_outputs="$all_outputs $outputs"
12094 all_gtfiles="$all_gtfiles $gtfiles"
12095 for f in $gtfiles
12097 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12098 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12099 done
12100 done
12102 # Pick up gtfiles for c
12103 gtfiles=
12104 s="c"
12105 . ${srcdir}/c-config-lang.in
12106 all_gtfiles="$all_gtfiles $gtfiles"
12107 for f in $gtfiles
12109 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12110 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12111 done
12113 check_languages=
12114 for language in $all_languages
12116 check_languages="$check_languages check-$language"
12117 done
12119 # We link each language in with a set of hooks, reached indirectly via
12120 # lang.${target}.
12122 rm -f Make-hooks
12123 touch Make-hooks
12124 target_list="all.build all.cross start.encap rest.encap tags \
12125 install-normal install-common install-man \
12126 uninstall info man srcextra srcman srcinfo \
12127 mostlyclean clean distclean maintainer-clean \
12128 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12129 for t in $target_list
12132 for lang in $all_languages
12134 x="$x $lang.$t"
12135 done
12136 echo "lang.$t: $x" >> Make-hooks
12137 done
12139 # --------
12140 # UNSORTED
12141 # --------
12143 # Create .gdbinit.
12145 echo "dir ." > .gdbinit
12146 echo "dir ${srcdir}" >> .gdbinit
12147 if test x$gdb_needs_out_file_path = xyes
12148 then
12149 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12151 if test "x$subdirs" != x; then
12152 for s in $subdirs
12154 echo "dir ${srcdir}/$s" >> .gdbinit
12155 done
12157 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12159 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12160 # absolute path for gcc_tooldir based on inserting the number of up-directory
12161 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12162 # $(libsubdir)/@(unlibsubdir) based path.
12163 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12164 # make and thus we'd get different behavior depending on where we built the
12165 # sources.
12166 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12167 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12168 else
12169 # An explanation of the sed strings:
12170 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12171 # -e 's|/$||' match a trailing forward slash and eliminates it
12172 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12173 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12175 # (*) Note this pattern overwrites the first character of the string
12176 # with a forward slash if one is not already present. This is not a
12177 # problem because the exact names of the sub-directories concerned is
12178 # unimportant, just the number of them matters.
12180 # The practical upshot of these patterns is like this:
12182 # prefix exec_prefix result
12183 # ------ ----------- ------
12184 # /foo /foo/bar ../
12185 # /foo/ /foo/bar ../
12186 # /foo /foo/bar/ ../
12187 # /foo/ /foo/bar/ ../
12188 # /foo /foo/bar/ugg ../../
12190 dollar='$$'
12191 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12196 # Find a directory in which to install a shared libgcc.
12198 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12199 if test "${enable_version_specific_runtime_libs+set}" = set; then
12200 enableval="$enable_version_specific_runtime_libs"
12205 # Check whether --with-slibdir or --without-slibdir was given.
12206 if test "${with_slibdir+set}" = set; then
12207 withval="$with_slibdir"
12208 slibdir="$with_slibdir"
12209 else
12210 if test "${enable_version_specific_runtime_libs+set}" = set; then
12211 slibdir='$(libsubdir)'
12212 elif test "$host" != "$target"; then
12213 slibdir='$(build_tooldir)/lib'
12214 else
12215 slibdir='$(libdir)'
12220 objdir=`${PWDCMD-pwd}`
12223 # Substitute configuration variables
12292 # If it doesn't already exist, create document directory
12293 echo "checking for the document directory." 1>&2
12294 if test -d doc ; then
12295 true
12296 else
12297 mkdir doc
12300 # Echo link setup.
12301 if test x${build} = x${host} ; then
12302 if test x${host} = x${target} ; then
12303 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12304 else
12305 echo "Links are now set up to build a cross-compiler" 1>&2
12306 echo " from ${host} to ${target}." 1>&2
12308 else
12309 if test x${host} = x${target} ; then
12310 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12311 echo " for ${target}." 1>&2
12312 else
12313 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12314 echo " from ${host} to ${target}." 1>&2
12318 # Configure the subdirectories
12319 # AC_CONFIG_SUBDIRS($subdirs)
12321 # Create the Makefile
12322 # and configure language subdirectories
12323 ac_config_files="$ac_config_files $all_outputs"
12326 ac_config_commands="$ac_config_commands default"
12328 cat >confcache <<\_ACEOF
12329 # This file is a shell script that caches the results of configure
12330 # tests run on this system so they can be shared between configure
12331 # scripts and configure runs, see configure's option --config-cache.
12332 # It is not useful on other systems. If it contains results you don't
12333 # want to keep, you may remove or edit it.
12335 # config.status only pays attention to the cache file if you give it
12336 # the --recheck option to rerun configure.
12338 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12339 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12340 # following values.
12342 _ACEOF
12344 # The following way of writing the cache mishandles newlines in values,
12345 # but we know of no workaround that is simple, portable, and efficient.
12346 # So, don't put newlines in cache variables' values.
12347 # Ultrix sh set writes to stderr and can't be redirected directly,
12348 # and sets the high bit in the cache file unless we assign to the vars.
12350 (set) 2>&1 |
12351 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12352 *ac_space=\ *)
12353 # `set' does not quote correctly, so add quotes (double-quote
12354 # substitution turns \\\\ into \\, and sed turns \\ into \).
12355 sed -n \
12356 "s/'/'\\\\''/g;
12357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12360 # `set' quotes correctly as required by POSIX, so do not add quotes.
12361 sed -n \
12362 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12364 esac;
12366 sed '
12367 t clear
12368 : clear
12369 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12370 t end
12371 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12372 : end' >>confcache
12373 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12374 if test -w $cache_file; then
12375 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12376 cat confcache >$cache_file
12377 else
12378 echo "not updating unwritable cache $cache_file"
12381 rm -f confcache
12383 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12384 # Let make expand exec_prefix.
12385 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12387 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12388 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12389 # trailing colons and then remove the whole line if VPATH becomes empty
12390 # (actually we leave an empty line to preserve line numbers).
12391 if test "x$srcdir" = x.; then
12392 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12393 s/:*\$(srcdir):*/:/;
12394 s/:*\${srcdir}:*/:/;
12395 s/:*@srcdir@:*/:/;
12396 s/^\([^=]*=[ ]*\):*/\1/;
12397 s/:*$//;
12398 s/^[^=]*=[ ]*$//;
12402 DEFS=-DHAVE_CONFIG_H
12404 ac_libobjs=
12405 ac_ltlibobjs=
12406 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12407 # 1. Remove the extension, and $U if already installed.
12408 ac_i=`echo "$ac_i" |
12409 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12410 # 2. Add them.
12411 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12412 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12413 done
12414 LIBOBJS=$ac_libobjs
12416 LTLIBOBJS=$ac_ltlibobjs
12420 : ${CONFIG_STATUS=./config.status}
12421 ac_clean_files_save=$ac_clean_files
12422 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12423 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12424 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12425 cat >$CONFIG_STATUS <<_ACEOF
12426 #! $SHELL
12427 # Generated by $as_me.
12428 # Run this file to recreate the current configuration.
12429 # Compiler output produced by configure, useful for debugging
12430 # configure, is in config.log if it exists.
12432 debug=false
12433 ac_cs_recheck=false
12434 ac_cs_silent=false
12435 SHELL=\${CONFIG_SHELL-$SHELL}
12436 _ACEOF
12438 cat >>$CONFIG_STATUS <<\_ACEOF
12439 ## --------------------- ##
12440 ## M4sh Initialization. ##
12441 ## --------------------- ##
12443 # Be Bourne compatible
12444 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12445 emulate sh
12446 NULLCMD=:
12447 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12448 # is contrary to our usage. Disable this feature.
12449 alias -g '${1+"$@"}'='"$@"'
12450 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12451 set -o posix
12453 DUALCASE=1; export DUALCASE # for MKS sh
12455 # Support unset when possible.
12456 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12457 as_unset=unset
12458 else
12459 as_unset=false
12463 # Work around bugs in pre-3.0 UWIN ksh.
12464 $as_unset ENV MAIL MAILPATH
12465 PS1='$ '
12466 PS2='> '
12467 PS4='+ '
12469 # NLS nuisances.
12470 for as_var in \
12471 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12472 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12473 LC_TELEPHONE LC_TIME
12475 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12476 eval $as_var=C; export $as_var
12477 else
12478 $as_unset $as_var
12480 done
12482 # Required to use basename.
12483 if expr a : '\(a\)' >/dev/null 2>&1; then
12484 as_expr=expr
12485 else
12486 as_expr=false
12489 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12490 as_basename=basename
12491 else
12492 as_basename=false
12496 # Name of the executable.
12497 as_me=`$as_basename "$0" ||
12498 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12499 X"$0" : 'X\(//\)$' \| \
12500 X"$0" : 'X\(/\)$' \| \
12501 . : '\(.\)' 2>/dev/null ||
12502 echo X/"$0" |
12503 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12504 /^X\/\(\/\/\)$/{ s//\1/; q; }
12505 /^X\/\(\/\).*/{ s//\1/; q; }
12506 s/.*/./; q'`
12509 # PATH needs CR, and LINENO needs CR and PATH.
12510 # Avoid depending upon Character Ranges.
12511 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12512 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12513 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12514 as_cr_digits='0123456789'
12515 as_cr_alnum=$as_cr_Letters$as_cr_digits
12517 # The user is always right.
12518 if test "${PATH_SEPARATOR+set}" != set; then
12519 echo "#! /bin/sh" >conf$$.sh
12520 echo "exit 0" >>conf$$.sh
12521 chmod +x conf$$.sh
12522 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12523 PATH_SEPARATOR=';'
12524 else
12525 PATH_SEPARATOR=:
12527 rm -f conf$$.sh
12531 as_lineno_1=$LINENO
12532 as_lineno_2=$LINENO
12533 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12534 test "x$as_lineno_1" != "x$as_lineno_2" &&
12535 test "x$as_lineno_3" = "x$as_lineno_2" || {
12536 # Find who we are. Look in the path if we contain no path at all
12537 # relative or not.
12538 case $0 in
12539 *[\\/]* ) as_myself=$0 ;;
12540 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541 for as_dir in $PATH
12543 IFS=$as_save_IFS
12544 test -z "$as_dir" && as_dir=.
12545 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12546 done
12549 esac
12550 # We did not find ourselves, most probably we were run as `sh COMMAND'
12551 # in which case we are not to be found in the path.
12552 if test "x$as_myself" = x; then
12553 as_myself=$0
12555 if test ! -f "$as_myself"; then
12556 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12557 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12558 { (exit 1); exit 1; }; }
12560 case $CONFIG_SHELL in
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
12567 for as_base in sh bash ksh sh5; do
12568 case $as_dir in
12570 if ("$as_dir/$as_base" -c '
12571 as_lineno_1=$LINENO
12572 as_lineno_2=$LINENO
12573 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12574 test "x$as_lineno_1" != "x$as_lineno_2" &&
12575 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12576 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12577 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12578 CONFIG_SHELL=$as_dir/$as_base
12579 export CONFIG_SHELL
12580 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12581 fi;;
12582 esac
12583 done
12584 done
12586 esac
12588 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12589 # uniformly replaced by the line number. The first 'sed' inserts a
12590 # line-number line before each line; the second 'sed' does the real
12591 # work. The second script uses 'N' to pair each line-number line
12592 # with the numbered line, and appends trailing '-' during
12593 # substitution so that $LINENO is not a special case at line end.
12594 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12595 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12596 sed '=' <$as_myself |
12597 sed '
12599 s,$,-,
12600 : loop
12601 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12602 t loop
12603 s,-$,,
12604 s,^['$as_cr_digits']*\n,,
12605 ' >$as_me.lineno &&
12606 chmod +x $as_me.lineno ||
12607 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12608 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12609 { (exit 1); exit 1; }; }
12611 # Don't try to exec as it changes $[0], causing all sort of problems
12612 # (the dirname of $[0] is not the place where we might find the
12613 # original and so on. Autoconf is especially sensible to this).
12614 . ./$as_me.lineno
12615 # Exit status is that of the last command.
12616 exit
12620 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12621 *c*,-n*) ECHO_N= ECHO_C='
12622 ' ECHO_T=' ' ;;
12623 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12624 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12625 esac
12627 if expr a : '\(a\)' >/dev/null 2>&1; then
12628 as_expr=expr
12629 else
12630 as_expr=false
12633 rm -f conf$$ conf$$.exe conf$$.file
12634 echo >conf$$.file
12635 if ln -s conf$$.file conf$$ 2>/dev/null; then
12636 # We could just check for DJGPP; but this test a) works b) is more generic
12637 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12638 if test -f conf$$.exe; then
12639 # Don't use ln at all; we don't have any links
12640 as_ln_s='cp -p'
12641 else
12642 as_ln_s='ln -s'
12644 elif ln conf$$.file conf$$ 2>/dev/null; then
12645 as_ln_s=ln
12646 else
12647 as_ln_s='cp -p'
12649 rm -f conf$$ conf$$.exe conf$$.file
12651 if mkdir -p . 2>/dev/null; then
12652 as_mkdir_p=:
12653 else
12654 test -d ./-p && rmdir ./-p
12655 as_mkdir_p=false
12658 as_executable_p="test -f"
12660 # Sed expression to map a string onto a valid CPP name.
12661 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12663 # Sed expression to map a string onto a valid variable name.
12664 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12667 # IFS
12668 # We need space, tab and new line, in precisely that order.
12669 as_nl='
12671 IFS=" $as_nl"
12673 # CDPATH.
12674 $as_unset CDPATH
12676 exec 6>&1
12678 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12679 # report actual input values of CONFIG_FILES etc. instead of their
12680 # values after options handling. Logging --version etc. is OK.
12681 exec 5>>config.log
12683 echo
12684 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12685 ## Running $as_me. ##
12686 _ASBOX
12687 } >&5
12688 cat >&5 <<_CSEOF
12690 This file was extended by $as_me, which was
12691 generated by GNU Autoconf 2.59. Invocation command line was
12693 CONFIG_FILES = $CONFIG_FILES
12694 CONFIG_HEADERS = $CONFIG_HEADERS
12695 CONFIG_LINKS = $CONFIG_LINKS
12696 CONFIG_COMMANDS = $CONFIG_COMMANDS
12697 $ $0 $@
12699 _CSEOF
12700 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12701 echo >&5
12702 _ACEOF
12704 # Files that config.status was made for.
12705 if test -n "$ac_config_files"; then
12706 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12709 if test -n "$ac_config_headers"; then
12710 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12713 if test -n "$ac_config_links"; then
12714 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12717 if test -n "$ac_config_commands"; then
12718 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12721 cat >>$CONFIG_STATUS <<\_ACEOF
12723 ac_cs_usage="\
12724 \`$as_me' instantiates files from templates according to the
12725 current configuration.
12727 Usage: $0 [OPTIONS] [FILE]...
12729 -h, --help print this help, then exit
12730 -V, --version print version number, then exit
12731 -q, --quiet do not print progress messages
12732 -d, --debug don't remove temporary files
12733 --recheck update $as_me by reconfiguring in the same conditions
12734 --file=FILE[:TEMPLATE]
12735 instantiate the configuration file FILE
12736 --header=FILE[:TEMPLATE]
12737 instantiate the configuration header FILE
12739 Configuration files:
12740 $config_files
12742 Configuration headers:
12743 $config_headers
12745 Configuration commands:
12746 $config_commands
12748 Report bugs to <bug-autoconf@gnu.org>."
12749 _ACEOF
12751 cat >>$CONFIG_STATUS <<_ACEOF
12752 ac_cs_version="\\
12753 config.status
12754 configured by $0, generated by GNU Autoconf 2.59,
12755 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12757 Copyright (C) 2003 Free Software Foundation, Inc.
12758 This config.status script is free software; the Free Software Foundation
12759 gives unlimited permission to copy, distribute and modify it."
12760 srcdir=$srcdir
12761 _ACEOF
12763 cat >>$CONFIG_STATUS <<\_ACEOF
12764 # If no file are specified by the user, then we need to provide default
12765 # value. By we need to know if files were specified by the user.
12766 ac_need_defaults=:
12767 while test $# != 0
12769 case $1 in
12770 --*=*)
12771 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12772 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12773 ac_shift=:
12776 ac_option=$1
12777 ac_optarg=$2
12778 ac_shift=shift
12780 *) # This is not an option, so the user has probably given explicit
12781 # arguments.
12782 ac_option=$1
12783 ac_need_defaults=false;;
12784 esac
12786 case $ac_option in
12787 # Handling of the options.
12788 _ACEOF
12789 cat >>$CONFIG_STATUS <<\_ACEOF
12790 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12791 ac_cs_recheck=: ;;
12792 --version | --vers* | -V )
12793 echo "$ac_cs_version"; exit 0 ;;
12794 --he | --h)
12795 # Conflict between --help and --header
12796 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12797 Try \`$0 --help' for more information." >&5
12798 echo "$as_me: error: ambiguous option: $1
12799 Try \`$0 --help' for more information." >&2;}
12800 { (exit 1); exit 1; }; };;
12801 --help | --hel | -h )
12802 echo "$ac_cs_usage"; exit 0 ;;
12803 --debug | --d* | -d )
12804 debug=: ;;
12805 --file | --fil | --fi | --f )
12806 $ac_shift
12807 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12808 ac_need_defaults=false;;
12809 --header | --heade | --head | --hea )
12810 $ac_shift
12811 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12812 ac_need_defaults=false;;
12813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12814 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12815 ac_cs_silent=: ;;
12817 # This is an error.
12818 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12819 Try \`$0 --help' for more information." >&5
12820 echo "$as_me: error: unrecognized option: $1
12821 Try \`$0 --help' for more information." >&2;}
12822 { (exit 1); exit 1; }; } ;;
12824 *) ac_config_targets="$ac_config_targets $1" ;;
12826 esac
12827 shift
12828 done
12830 ac_configure_extra_args=
12832 if $ac_cs_silent; then
12833 exec 6>/dev/null
12834 ac_configure_extra_args="$ac_configure_extra_args --silent"
12837 _ACEOF
12838 cat >>$CONFIG_STATUS <<_ACEOF
12839 if \$ac_cs_recheck; then
12840 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12841 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12844 _ACEOF
12846 cat >>$CONFIG_STATUS <<_ACEOF
12848 # INIT-COMMANDS section.
12851 subdirs='$subdirs'
12852 symbolic_link='$symbolic_link'
12855 _ACEOF
12859 cat >>$CONFIG_STATUS <<\_ACEOF
12860 for ac_config_target in $ac_config_targets
12862 case "$ac_config_target" in
12863 # Handling of arguments.
12864 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12865 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12866 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12867 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12868 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12869 { (exit 1); exit 1; }; };;
12870 esac
12871 done
12873 # If the user did not use the arguments to specify the items to instantiate,
12874 # then the envvar interface is used. Set only those that are not.
12875 # We use the long form for the default assignment because of an extremely
12876 # bizarre bug on SunOS 4.1.3.
12877 if $ac_need_defaults; then
12878 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12879 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12880 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12883 # Have a temporary directory for convenience. Make it in the build tree
12884 # simply because there is no reason to put it here, and in addition,
12885 # creating and moving files from /tmp can sometimes cause problems.
12886 # Create a temporary directory, and hook for its removal unless debugging.
12887 $debug ||
12889 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12890 trap '{ (exit 1); exit 1; }' 1 2 13 15
12893 # Create a (secure) tmp directory for tmp files.
12896 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12897 test -n "$tmp" && test -d "$tmp"
12898 } ||
12900 tmp=./confstat$$-$RANDOM
12901 (umask 077 && mkdir $tmp)
12902 } ||
12904 echo "$me: cannot create a temporary directory in ." >&2
12905 { (exit 1); exit 1; }
12908 _ACEOF
12910 cat >>$CONFIG_STATUS <<_ACEOF
12913 # CONFIG_FILES section.
12916 # No need to generate the scripts if there are no CONFIG_FILES.
12917 # This happens for instance when ./config.status config.h
12918 if test -n "\$CONFIG_FILES"; then
12919 # Protect against being on the right side of a sed subst in config.status.
12920 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12921 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12922 s,@SHELL@,$SHELL,;t t
12923 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12924 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12925 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12926 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12927 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12928 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12929 s,@exec_prefix@,$exec_prefix,;t t
12930 s,@prefix@,$prefix,;t t
12931 s,@program_transform_name@,$program_transform_name,;t t
12932 s,@bindir@,$bindir,;t t
12933 s,@sbindir@,$sbindir,;t t
12934 s,@libexecdir@,$libexecdir,;t t
12935 s,@datadir@,$datadir,;t t
12936 s,@sysconfdir@,$sysconfdir,;t t
12937 s,@sharedstatedir@,$sharedstatedir,;t t
12938 s,@localstatedir@,$localstatedir,;t t
12939 s,@libdir@,$libdir,;t t
12940 s,@includedir@,$includedir,;t t
12941 s,@oldincludedir@,$oldincludedir,;t t
12942 s,@infodir@,$infodir,;t t
12943 s,@mandir@,$mandir,;t t
12944 s,@build_alias@,$build_alias,;t t
12945 s,@host_alias@,$host_alias,;t t
12946 s,@target_alias@,$target_alias,;t t
12947 s,@DEFS@,$DEFS,;t t
12948 s,@ECHO_C@,$ECHO_C,;t t
12949 s,@ECHO_N@,$ECHO_N,;t t
12950 s,@ECHO_T@,$ECHO_T,;t t
12951 s,@LIBS@,$LIBS,;t t
12952 s,@build@,$build,;t t
12953 s,@build_cpu@,$build_cpu,;t t
12954 s,@build_vendor@,$build_vendor,;t t
12955 s,@build_os@,$build_os,;t t
12956 s,@host@,$host,;t t
12957 s,@host_cpu@,$host_cpu,;t t
12958 s,@host_vendor@,$host_vendor,;t t
12959 s,@host_os@,$host_os,;t t
12960 s,@target@,$target,;t t
12961 s,@target_cpu@,$target_cpu,;t t
12962 s,@target_vendor@,$target_vendor,;t t
12963 s,@target_os@,$target_os,;t t
12964 s,@build_subdir@,$build_subdir,;t t
12965 s,@host_subdir@,$host_subdir,;t t
12966 s,@target_subdir@,$target_subdir,;t t
12967 s,@GENINSRC@,$GENINSRC,;t t
12968 s,@CC@,$CC,;t t
12969 s,@CFLAGS@,$CFLAGS,;t t
12970 s,@LDFLAGS@,$LDFLAGS,;t t
12971 s,@CPPFLAGS@,$CPPFLAGS,;t t
12972 s,@ac_ct_CC@,$ac_ct_CC,;t t
12973 s,@EXEEXT@,$EXEEXT,;t t
12974 s,@OBJEXT@,$OBJEXT,;t t
12975 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12976 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12977 s,@CPP@,$CPP,;t t
12978 s,@strict1_warn@,$strict1_warn,;t t
12979 s,@warn_cflags@,$warn_cflags,;t t
12980 s,@WERROR@,$WERROR,;t t
12981 s,@nocommon_flag@,$nocommon_flag,;t t
12982 s,@EGREP@,$EGREP,;t t
12983 s,@valgrind_path@,$valgrind_path,;t t
12984 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12985 s,@valgrind_command@,$valgrind_command,;t t
12986 s,@coverage_flags@,$coverage_flags,;t t
12987 s,@enable_multilib@,$enable_multilib,;t t
12988 s,@enable_shared@,$enable_shared,;t t
12989 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12990 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12991 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12992 s,@onestep@,$onestep,;t t
12993 s,@SET_MAKE@,$SET_MAKE,;t t
12994 s,@AWK@,$AWK,;t t
12995 s,@LN@,$LN,;t t
12996 s,@LN_S@,$LN_S,;t t
12997 s,@RANLIB@,$RANLIB,;t t
12998 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12999 s,@INSTALL@,$INSTALL,;t t
13000 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13001 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13002 s,@make_compare_target@,$make_compare_target,;t t
13003 s,@have_mktemp_command@,$have_mktemp_command,;t t
13004 s,@MAKEINFO@,$MAKEINFO,;t t
13005 s,@BUILD_INFO@,$BUILD_INFO,;t t
13006 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13007 s,@FLEX@,$FLEX,;t t
13008 s,@BISON@,$BISON,;t t
13009 s,@stage1_cflags@,$stage1_cflags,;t t
13010 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13011 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13012 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13013 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13014 s,@LIBICONV@,$LIBICONV,;t t
13015 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13016 s,@manext@,$manext,;t t
13017 s,@objext@,$objext,;t t
13018 s,@gthread_flags@,$gthread_flags,;t t
13019 s,@extra_modes_file@,$extra_modes_file,;t t
13020 s,@FORBUILD@,$FORBUILD,;t t
13021 s,@PACKAGE@,$PACKAGE,;t t
13022 s,@VERSION@,$VERSION,;t t
13023 s,@USE_NLS@,$USE_NLS,;t t
13024 s,@LIBINTL@,$LIBINTL,;t t
13025 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13026 s,@INCINTL@,$INCINTL,;t t
13027 s,@XGETTEXT@,$XGETTEXT,;t t
13028 s,@GMSGFMT@,$GMSGFMT,;t t
13029 s,@POSUB@,$POSUB,;t t
13030 s,@CATALOGS@,$CATALOGS,;t t
13031 s,@CROSS@,$CROSS,;t t
13032 s,@ALL@,$ALL,;t t
13033 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13034 s,@inhibit_libc@,$inhibit_libc,;t t
13035 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
13036 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
13037 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13038 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13039 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13040 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13041 s,@collect2@,$collect2,;t t
13042 s,@libgcc_visibility@,$libgcc_visibility,;t t
13043 s,@GGC@,$GGC,;t t
13044 s,@zlibdir@,$zlibdir,;t t
13045 s,@zlibinc@,$zlibinc,;t t
13046 s,@MAINT@,$MAINT,;t t
13047 s,@gcc_tooldir@,$gcc_tooldir,;t t
13048 s,@dollar@,$dollar,;t t
13049 s,@slibdir@,$slibdir,;t t
13050 s,@objdir@,$objdir,;t t
13051 s,@subdirs@,$subdirs,;t t
13052 s,@srcdir@,$srcdir,;t t
13053 s,@all_boot_languages@,$all_boot_languages,;t t
13054 s,@all_compilers@,$all_compilers,;t t
13055 s,@all_gtfiles@,$all_gtfiles,;t t
13056 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13057 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13058 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13059 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13060 s,@all_languages@,$all_languages,;t t
13061 s,@all_stagestuff@,$all_stagestuff,;t t
13062 s,@build_exeext@,$build_exeext,;t t
13063 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13064 s,@build_xm_file_list@,$build_xm_file_list,;t t
13065 s,@build_xm_include_list@,$build_xm_include_list,;t t
13066 s,@build_xm_defines@,$build_xm_defines,;t t
13067 s,@check_languages@,$check_languages,;t t
13068 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13069 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13070 s,@cpp_install_dir@,$cpp_install_dir,;t t
13071 s,@xmake_file@,$xmake_file,;t t
13072 s,@tmake_file@,$tmake_file,;t t
13073 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13074 s,@extra_headers_list@,$extra_headers_list,;t t
13075 s,@extra_objs@,$extra_objs,;t t
13076 s,@extra_parts@,$extra_parts,;t t
13077 s,@extra_passes@,$extra_passes,;t t
13078 s,@extra_programs@,$extra_programs,;t t
13079 s,@float_h_file@,$float_h_file,;t t
13080 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13081 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13082 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13083 s,@gcc_version@,$gcc_version,;t t
13084 s,@gcc_version_full@,$gcc_version_full,;t t
13085 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13086 s,@host_exeext@,$host_exeext,;t t
13087 s,@host_xm_file_list@,$host_xm_file_list,;t t
13088 s,@host_xm_include_list@,$host_xm_include_list,;t t
13089 s,@host_xm_defines@,$host_xm_defines,;t t
13090 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13091 s,@install@,$install,;t t
13092 s,@lang_opt_files@,$lang_opt_files,;t t
13093 s,@lang_specs_files@,$lang_specs_files,;t t
13094 s,@lang_tree_files@,$lang_tree_files,;t t
13095 s,@local_prefix@,$local_prefix,;t t
13096 s,@md_file@,$md_file,;t t
13097 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13098 s,@out_file@,$out_file,;t t
13099 s,@out_object_file@,$out_object_file,;t t
13100 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13101 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13102 s,@symbolic_link@,$symbolic_link,;t t
13103 s,@thread_file@,$thread_file,;t t
13104 s,@tm_file_list@,$tm_file_list,;t t
13105 s,@tm_include_list@,$tm_include_list,;t t
13106 s,@tm_defines@,$tm_defines,;t t
13107 s,@tm_p_file_list@,$tm_p_file_list,;t t
13108 s,@tm_p_include_list@,$tm_p_include_list,;t t
13109 s,@xm_file_list@,$xm_file_list,;t t
13110 s,@xm_include_list@,$xm_include_list,;t t
13111 s,@xm_defines@,$xm_defines,;t t
13112 s,@target_noncanonical@,$target_noncanonical,;t t
13113 s,@c_target_objs@,$c_target_objs,;t t
13114 s,@cxx_target_objs@,$cxx_target_objs,;t t
13115 s,@target_cpu_default@,$target_cpu_default,;t t
13116 s,@LIBOBJS@,$LIBOBJS,;t t
13117 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13118 /@language_hooks@/r $language_hooks
13119 s,@language_hooks@,,;t t
13120 CEOF
13122 _ACEOF
13124 cat >>$CONFIG_STATUS <<\_ACEOF
13125 # Split the substitutions into bite-sized pieces for seds with
13126 # small command number limits, like on Digital OSF/1 and HP-UX.
13127 ac_max_sed_lines=48
13128 ac_sed_frag=1 # Number of current file.
13129 ac_beg=1 # First line for current file.
13130 ac_end=$ac_max_sed_lines # Line after last line for current file.
13131 ac_more_lines=:
13132 ac_sed_cmds=
13133 while $ac_more_lines; do
13134 if test $ac_beg -gt 1; then
13135 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13136 else
13137 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13139 if test ! -s $tmp/subs.frag; then
13140 ac_more_lines=false
13141 else
13142 # The purpose of the label and of the branching condition is to
13143 # speed up the sed processing (if there are no `@' at all, there
13144 # is no need to browse any of the substitutions).
13145 # These are the two extra sed commands mentioned above.
13146 (echo ':t
13147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13148 if test -z "$ac_sed_cmds"; then
13149 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13150 else
13151 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13153 ac_sed_frag=`expr $ac_sed_frag + 1`
13154 ac_beg=$ac_end
13155 ac_end=`expr $ac_end + $ac_max_sed_lines`
13157 done
13158 if test -z "$ac_sed_cmds"; then
13159 ac_sed_cmds=cat
13161 fi # test -n "$CONFIG_FILES"
13163 _ACEOF
13164 cat >>$CONFIG_STATUS <<\_ACEOF
13165 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13166 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13167 case $ac_file in
13168 - | *:- | *:-:* ) # input from stdin
13169 cat >$tmp/stdin
13170 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13171 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13172 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13173 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13174 * ) ac_file_in=$ac_file.in ;;
13175 esac
13177 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13178 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13179 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13180 X"$ac_file" : 'X\(//\)[^/]' \| \
13181 X"$ac_file" : 'X\(//\)$' \| \
13182 X"$ac_file" : 'X\(/\)' \| \
13183 . : '\(.\)' 2>/dev/null ||
13184 echo X"$ac_file" |
13185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13187 /^X\(\/\/\)$/{ s//\1/; q; }
13188 /^X\(\/\).*/{ s//\1/; q; }
13189 s/.*/./; q'`
13190 { if $as_mkdir_p; then
13191 mkdir -p "$ac_dir"
13192 else
13193 as_dir="$ac_dir"
13194 as_dirs=
13195 while test ! -d "$as_dir"; do
13196 as_dirs="$as_dir $as_dirs"
13197 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13199 X"$as_dir" : 'X\(//\)[^/]' \| \
13200 X"$as_dir" : 'X\(//\)$' \| \
13201 X"$as_dir" : 'X\(/\)' \| \
13202 . : '\(.\)' 2>/dev/null ||
13203 echo X"$as_dir" |
13204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13206 /^X\(\/\/\)$/{ s//\1/; q; }
13207 /^X\(\/\).*/{ s//\1/; q; }
13208 s/.*/./; q'`
13209 done
13210 test ! -n "$as_dirs" || mkdir $as_dirs
13211 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13212 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13213 { (exit 1); exit 1; }; }; }
13215 ac_builddir=.
13217 if test "$ac_dir" != .; then
13218 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13219 # A "../" for each directory in $ac_dir_suffix.
13220 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13221 else
13222 ac_dir_suffix= ac_top_builddir=
13225 case $srcdir in
13226 .) # No --srcdir option. We are building in place.
13227 ac_srcdir=.
13228 if test -z "$ac_top_builddir"; then
13229 ac_top_srcdir=.
13230 else
13231 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13232 fi ;;
13233 [\\/]* | ?:[\\/]* ) # Absolute path.
13234 ac_srcdir=$srcdir$ac_dir_suffix;
13235 ac_top_srcdir=$srcdir ;;
13236 *) # Relative path.
13237 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13238 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13239 esac
13241 # Do not use `cd foo && pwd` to compute absolute paths, because
13242 # the directories may not exist.
13243 case `pwd` in
13244 .) ac_abs_builddir="$ac_dir";;
13246 case "$ac_dir" in
13247 .) ac_abs_builddir=`pwd`;;
13248 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13249 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13250 esac;;
13251 esac
13252 case $ac_abs_builddir in
13253 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13255 case ${ac_top_builddir}. in
13256 .) ac_abs_top_builddir=$ac_abs_builddir;;
13257 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13258 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13259 esac;;
13260 esac
13261 case $ac_abs_builddir in
13262 .) ac_abs_srcdir=$ac_srcdir;;
13264 case $ac_srcdir in
13265 .) ac_abs_srcdir=$ac_abs_builddir;;
13266 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13267 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13268 esac;;
13269 esac
13270 case $ac_abs_builddir in
13271 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13273 case $ac_top_srcdir in
13274 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13275 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13276 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13277 esac;;
13278 esac
13282 # Let's still pretend it is `configure' which instantiates (i.e., don't
13283 # use $as_me), people would be surprised to read:
13284 # /* config.h. Generated by config.status. */
13285 if test x"$ac_file" = x-; then
13286 configure_input=
13287 else
13288 configure_input="$ac_file. "
13290 configure_input=$configure_input"Generated from `echo $ac_file_in |
13291 sed 's,.*/,,'` by configure."
13293 # First look for the input files in the build tree, otherwise in the
13294 # src tree.
13295 ac_file_inputs=`IFS=:
13296 for f in $ac_file_in; do
13297 case $f in
13298 -) echo $tmp/stdin ;;
13299 [\\/$]*)
13300 # Absolute (can't be DOS-style, as IFS=:)
13301 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13302 echo "$as_me: error: cannot find input file: $f" >&2;}
13303 { (exit 1); exit 1; }; }
13304 echo "$f";;
13305 *) # Relative
13306 if test -f "$f"; then
13307 # Build tree
13308 echo "$f"
13309 elif test -f "$srcdir/$f"; then
13310 # Source tree
13311 echo "$srcdir/$f"
13312 else
13313 # /dev/null tree
13314 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13315 echo "$as_me: error: cannot find input file: $f" >&2;}
13316 { (exit 1); exit 1; }; }
13317 fi;;
13318 esac
13319 done` || { (exit 1); exit 1; }
13321 if test x"$ac_file" != x-; then
13322 { echo "$as_me:$LINENO: creating $ac_file" >&5
13323 echo "$as_me: creating $ac_file" >&6;}
13324 rm -f "$ac_file"
13326 _ACEOF
13327 cat >>$CONFIG_STATUS <<_ACEOF
13328 sed "$ac_vpsub
13329 $extrasub
13330 _ACEOF
13331 cat >>$CONFIG_STATUS <<\_ACEOF
13333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13334 s,@configure_input@,$configure_input,;t t
13335 s,@srcdir@,$ac_srcdir,;t t
13336 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13337 s,@top_srcdir@,$ac_top_srcdir,;t t
13338 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13339 s,@builddir@,$ac_builddir,;t t
13340 s,@abs_builddir@,$ac_abs_builddir,;t t
13341 s,@top_builddir@,$ac_top_builddir,;t t
13342 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13343 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13344 rm -f $tmp/stdin
13345 if test x"$ac_file" != x-; then
13346 mv $tmp/out $ac_file
13347 else
13348 cat $tmp/out
13349 rm -f $tmp/out
13352 done
13353 _ACEOF
13354 cat >>$CONFIG_STATUS <<\_ACEOF
13357 # CONFIG_HEADER section.
13360 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13361 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13363 # ac_d sets the value in "#define NAME VALUE" lines.
13364 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13365 ac_dB='[ ].*$,\1#\2'
13366 ac_dC=' '
13367 ac_dD=',;t'
13368 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13369 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13370 ac_uB='$,\1#\2define\3'
13371 ac_uC=' '
13372 ac_uD=',;t'
13374 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13375 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13376 case $ac_file in
13377 - | *:- | *:-:* ) # input from stdin
13378 cat >$tmp/stdin
13379 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13380 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13381 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13382 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13383 * ) ac_file_in=$ac_file.in ;;
13384 esac
13386 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13387 echo "$as_me: creating $ac_file" >&6;}
13389 # First look for the input files in the build tree, otherwise in the
13390 # src tree.
13391 ac_file_inputs=`IFS=:
13392 for f in $ac_file_in; do
13393 case $f in
13394 -) echo $tmp/stdin ;;
13395 [\\/$]*)
13396 # Absolute (can't be DOS-style, as IFS=:)
13397 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13398 echo "$as_me: error: cannot find input file: $f" >&2;}
13399 { (exit 1); exit 1; }; }
13400 # Do quote $f, to prevent DOS paths from being IFS'd.
13401 echo "$f";;
13402 *) # Relative
13403 if test -f "$f"; then
13404 # Build tree
13405 echo "$f"
13406 elif test -f "$srcdir/$f"; then
13407 # Source tree
13408 echo "$srcdir/$f"
13409 else
13410 # /dev/null tree
13411 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13412 echo "$as_me: error: cannot find input file: $f" >&2;}
13413 { (exit 1); exit 1; }; }
13414 fi;;
13415 esac
13416 done` || { (exit 1); exit 1; }
13417 # Remove the trailing spaces.
13418 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13420 _ACEOF
13422 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13423 # `conftest.undefs', that substitutes the proper values into
13424 # config.h.in to produce config.h. The first handles `#define'
13425 # templates, and the second `#undef' templates.
13426 # And first: Protect against being on the right side of a sed subst in
13427 # config.status. Protect against being in an unquoted here document
13428 # in config.status.
13429 rm -f conftest.defines conftest.undefs
13430 # Using a here document instead of a string reduces the quoting nightmare.
13431 # Putting comments in sed scripts is not portable.
13433 # `end' is used to avoid that the second main sed command (meant for
13434 # 0-ary CPP macros) applies to n-ary macro definitions.
13435 # See the Autoconf documentation for `clear'.
13436 cat >confdef2sed.sed <<\_ACEOF
13437 s/[\\&,]/\\&/g
13438 s,[\\$`],\\&,g
13439 t clear
13440 : clear
13441 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13442 t end
13443 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13444 : end
13445 _ACEOF
13446 # If some macros were called several times there might be several times
13447 # the same #defines, which is useless. Nevertheless, we may not want to
13448 # sort them, since we want the *last* AC-DEFINE to be honored.
13449 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13450 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13451 rm -f confdef2sed.sed
13453 # This sed command replaces #undef with comments. This is necessary, for
13454 # example, in the case of _POSIX_SOURCE, which is predefined and required
13455 # on some systems where configure will not decide to define it.
13456 cat >>conftest.undefs <<\_ACEOF
13457 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13458 _ACEOF
13460 # Break up conftest.defines because some shells have a limit on the size
13461 # of here documents, and old seds have small limits too (100 cmds).
13462 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13463 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13464 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13465 echo ' :' >>$CONFIG_STATUS
13466 rm -f conftest.tail
13467 while grep . conftest.defines >/dev/null
13469 # Write a limited-size here document to $tmp/defines.sed.
13470 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13471 # Speed up: don't consider the non `#define' lines.
13472 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13473 # Work around the forget-to-reset-the-flag bug.
13474 echo 't clr' >>$CONFIG_STATUS
13475 echo ': clr' >>$CONFIG_STATUS
13476 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13477 echo 'CEOF
13478 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13479 rm -f $tmp/in
13480 mv $tmp/out $tmp/in
13481 ' >>$CONFIG_STATUS
13482 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13483 rm -f conftest.defines
13484 mv conftest.tail conftest.defines
13485 done
13486 rm -f conftest.defines
13487 echo ' fi # grep' >>$CONFIG_STATUS
13488 echo >>$CONFIG_STATUS
13490 # Break up conftest.undefs because some shells have a limit on the size
13491 # of here documents, and old seds have small limits too (100 cmds).
13492 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13493 rm -f conftest.tail
13494 while grep . conftest.undefs >/dev/null
13496 # Write a limited-size here document to $tmp/undefs.sed.
13497 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13498 # Speed up: don't consider the non `#undef'
13499 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13500 # Work around the forget-to-reset-the-flag bug.
13501 echo 't clr' >>$CONFIG_STATUS
13502 echo ': clr' >>$CONFIG_STATUS
13503 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13504 echo 'CEOF
13505 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13506 rm -f $tmp/in
13507 mv $tmp/out $tmp/in
13508 ' >>$CONFIG_STATUS
13509 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13510 rm -f conftest.undefs
13511 mv conftest.tail conftest.undefs
13512 done
13513 rm -f conftest.undefs
13515 cat >>$CONFIG_STATUS <<\_ACEOF
13516 # Let's still pretend it is `configure' which instantiates (i.e., don't
13517 # use $as_me), people would be surprised to read:
13518 # /* config.h. Generated by config.status. */
13519 if test x"$ac_file" = x-; then
13520 echo "/* Generated by configure. */" >$tmp/config.h
13521 else
13522 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13524 cat $tmp/in >>$tmp/config.h
13525 rm -f $tmp/in
13526 if test x"$ac_file" != x-; then
13527 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13528 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13529 echo "$as_me: $ac_file is unchanged" >&6;}
13530 else
13531 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13533 X"$ac_file" : 'X\(//\)[^/]' \| \
13534 X"$ac_file" : 'X\(//\)$' \| \
13535 X"$ac_file" : 'X\(/\)' \| \
13536 . : '\(.\)' 2>/dev/null ||
13537 echo X"$ac_file" |
13538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13539 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13540 /^X\(\/\/\)$/{ s//\1/; q; }
13541 /^X\(\/\).*/{ s//\1/; q; }
13542 s/.*/./; q'`
13543 { if $as_mkdir_p; then
13544 mkdir -p "$ac_dir"
13545 else
13546 as_dir="$ac_dir"
13547 as_dirs=
13548 while test ! -d "$as_dir"; do
13549 as_dirs="$as_dir $as_dirs"
13550 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13551 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13552 X"$as_dir" : 'X\(//\)[^/]' \| \
13553 X"$as_dir" : 'X\(//\)$' \| \
13554 X"$as_dir" : 'X\(/\)' \| \
13555 . : '\(.\)' 2>/dev/null ||
13556 echo X"$as_dir" |
13557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13559 /^X\(\/\/\)$/{ s//\1/; q; }
13560 /^X\(\/\).*/{ s//\1/; q; }
13561 s/.*/./; q'`
13562 done
13563 test ! -n "$as_dirs" || mkdir $as_dirs
13564 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13565 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13566 { (exit 1); exit 1; }; }; }
13568 rm -f $ac_file
13569 mv $tmp/config.h $ac_file
13571 else
13572 cat $tmp/config.h
13573 rm -f $tmp/config.h
13575 done
13576 _ACEOF
13577 cat >>$CONFIG_STATUS <<\_ACEOF
13580 # CONFIG_COMMANDS section.
13582 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13583 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13584 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13585 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13586 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13587 X"$ac_dest" : 'X\(//\)[^/]' \| \
13588 X"$ac_dest" : 'X\(//\)$' \| \
13589 X"$ac_dest" : 'X\(/\)' \| \
13590 . : '\(.\)' 2>/dev/null ||
13591 echo X"$ac_dest" |
13592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13594 /^X\(\/\/\)$/{ s//\1/; q; }
13595 /^X\(\/\).*/{ s//\1/; q; }
13596 s/.*/./; q'`
13597 { if $as_mkdir_p; then
13598 mkdir -p "$ac_dir"
13599 else
13600 as_dir="$ac_dir"
13601 as_dirs=
13602 while test ! -d "$as_dir"; do
13603 as_dirs="$as_dir $as_dirs"
13604 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13606 X"$as_dir" : 'X\(//\)[^/]' \| \
13607 X"$as_dir" : 'X\(//\)$' \| \
13608 X"$as_dir" : 'X\(/\)' \| \
13609 . : '\(.\)' 2>/dev/null ||
13610 echo X"$as_dir" |
13611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13613 /^X\(\/\/\)$/{ s//\1/; q; }
13614 /^X\(\/\).*/{ s//\1/; q; }
13615 s/.*/./; q'`
13616 done
13617 test ! -n "$as_dirs" || mkdir $as_dirs
13618 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13619 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13620 { (exit 1); exit 1; }; }; }
13622 ac_builddir=.
13624 if test "$ac_dir" != .; then
13625 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13626 # A "../" for each directory in $ac_dir_suffix.
13627 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13628 else
13629 ac_dir_suffix= ac_top_builddir=
13632 case $srcdir in
13633 .) # No --srcdir option. We are building in place.
13634 ac_srcdir=.
13635 if test -z "$ac_top_builddir"; then
13636 ac_top_srcdir=.
13637 else
13638 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13639 fi ;;
13640 [\\/]* | ?:[\\/]* ) # Absolute path.
13641 ac_srcdir=$srcdir$ac_dir_suffix;
13642 ac_top_srcdir=$srcdir ;;
13643 *) # Relative path.
13644 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13645 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13646 esac
13648 # Do not use `cd foo && pwd` to compute absolute paths, because
13649 # the directories may not exist.
13650 case `pwd` in
13651 .) ac_abs_builddir="$ac_dir";;
13653 case "$ac_dir" in
13654 .) ac_abs_builddir=`pwd`;;
13655 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13656 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13657 esac;;
13658 esac
13659 case $ac_abs_builddir in
13660 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13662 case ${ac_top_builddir}. in
13663 .) ac_abs_top_builddir=$ac_abs_builddir;;
13664 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13665 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13666 esac;;
13667 esac
13668 case $ac_abs_builddir in
13669 .) ac_abs_srcdir=$ac_srcdir;;
13671 case $ac_srcdir in
13672 .) ac_abs_srcdir=$ac_abs_builddir;;
13673 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13674 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13675 esac;;
13676 esac
13677 case $ac_abs_builddir in
13678 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13680 case $ac_top_srcdir in
13681 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13682 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13683 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13684 esac;;
13685 esac
13688 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13689 echo "$as_me: executing $ac_dest commands" >&6;}
13690 case $ac_dest in
13691 default )
13692 case ${CONFIG_HEADERS} in
13693 *auto-host.h:config.in*)
13694 echo > cstamp-h ;;
13695 esac
13696 # Make sure all the subdirs exist.
13697 for d in $subdirs
13699 test -d $d || mkdir $d
13700 done
13701 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13702 # bootstrapping and the installation procedure can still use
13703 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13704 # FLAGS_TO_PASS has been modified to solve the problem there.
13705 # This is virtually a duplicate of what happens in configure.lang; we do
13706 # an extra check to make sure this only happens if ln -s can be used.
13707 if test "$symbolic_link" = "ln -s"; then
13708 for d in ${subdirs} fixinc ; do
13709 STARTDIR=`${PWDCMD-pwd}`
13710 cd $d
13711 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13713 rm -f $t
13714 $symbolic_link ../$t $t 2>/dev/null
13715 done
13716 cd $STARTDIR
13717 done
13718 else true ; fi
13720 esac
13721 done
13722 _ACEOF
13724 cat >>$CONFIG_STATUS <<\_ACEOF
13726 { (exit 0); exit 0; }
13727 _ACEOF
13728 chmod +x $CONFIG_STATUS
13729 ac_clean_files=$ac_clean_files_save
13732 # configure is writing to config.log, and then calls config.status.
13733 # config.status does its own redirection, appending to config.log.
13734 # Unfortunately, on DOS this fails, as config.log is still kept open
13735 # by configure, so config.status won't be able to write to it; its
13736 # output is simply discarded. So we exec the FD to /dev/null,
13737 # effectively closing config.log, so it can be properly (re)opened and
13738 # appended to by config.status. When coming back to configure, we
13739 # need to make the FD available again.
13740 if test "$no_create" != yes; then
13741 ac_cs_success=:
13742 ac_config_status_args=
13743 test "$silent" = yes &&
13744 ac_config_status_args="$ac_config_status_args --quiet"
13745 exec 5>/dev/null
13746 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13747 exec 5>>config.log
13748 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13749 # would make configure fail if this is the last instruction.
13750 $ac_cs_success || { (exit 1); exit 1; }